| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/Microsoft Office/root/Office16/ |
Upload File : |
/*
* Office JavaScript API library
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Your use of this file is governed by the license terms for the Microsoft Office JavaScript (Office.js) API library: https://github.com/OfficeDev/office-js/blob/release/LICENSE.md
*
* This file also contains the following Promise implementation (with a few small modifications):
* * @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 OSFPerformance,CustomFunctionMappings,CustomFunctions,Strings;!function(e){e.now=function(){return"undefined"!=typeof performance&&performance.now?performance.now():0},e.getTotalJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.totalJSHeapSize:0},e.getUsedJSHeapSize=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.usedJSHeapSize:0},e.getJSHeapSizeLimit=function(){return"undefined"!=typeof performance&&performance.memory?performance.memory.jsHeapSizeLimit:0},e.officeExecuteStartDate=e.officeExecuteStartDate||Date.now(),e.officeExecuteStart=e.officeExecuteStart||0,e.officeExecuteEnd=e.officeExecuteEnd||0,e.hostInitializationStart=0,e.hostInitializationEnd=0,e.totalJSHeapSize=0,e.usedJSHeapSize=0,e.jsHeapSizeLimit=0,e.createOMEnd=0,e.hostSpecificFileName="",e.getAppContextStart=0,e.getAppContextEnd=0,e.getAppContextXdmStart=0,e.getAppContextXdmEnd=0,e.officeOnReady=0}(OSFPerformance=OSFPerformance||{}),(OSF||(OSF={})).definePropertyOnNamespace=function(e,t,n){Object.defineProperty(e,t,{get:function(){return n()},configurable:!0,enumerable:!0})},OSFPerformance.hostInitializationStart=OSFPerformance.now(),function(e){var t;function n(){return t.m_association||(t.m_association=new OSF.Association),t.m_association}(t=e.actions||(e.actions={})).m_association=t.m_association,t.associate=function(){OTel&&OTel.OTelLogger&&OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.ApiCall",dataFields:[oteljs.makeStringDataField("Api","Office.actions.associate")],eventFlags:{dataCategories:2,diagnosticLevel:110}})}),n().associate.apply(n(),arguments)},OSF.definePropertyOnNamespace(t,"_association",n)}(Office=Office||{}),function(e){var t;(t=e.AgaveHostAction||(e.AgaveHostAction={}))[t.Select=0]="Select",t[t.UnSelect=1]="UnSelect",t[t.CancelDialog=2]="CancelDialog",t[t.InsertAgave=3]="InsertAgave",t[t.CtrlF6In=4]="CtrlF6In",t[t.CtrlF6Exit=5]="CtrlF6Exit",t[t.CtrlF6ExitShift=6]="CtrlF6ExitShift",t[t.SelectWithError=7]="SelectWithError",t[t.NotifyHostError=8]="NotifyHostError",t[t.RefreshAddinCommands=9]="RefreshAddinCommands",t[t.PageIsReady=10]="PageIsReady",t[t.TabIn=11]="TabIn",t[t.TabInShift=12]="TabInShift",t[t.TabExit=13]="TabExit",t[t.TabExitShift=14]="TabExitShift",t[t.EscExit=15]="EscExit",t[t.F2Exit=16]="F2Exit",t[t.ExitNoFocusable=17]="ExitNoFocusable",t[t.ExitNoFocusableShift=18]="ExitNoFocusableShift",t[t.MouseEnter=19]="MouseEnter",t[t.MouseLeave=20]="MouseLeave",t[t.UpdateTargetUrl=21]="UpdateTargetUrl",t[t.InstallCustomFunctions=22]="InstallCustomFunctions",t[t.SendTelemetryEvent=23]="SendTelemetryEvent",t[t.UninstallCustomFunctions=24]="UninstallCustomFunctions",t[t.SendMessage=25]="SendMessage",t[t.LaunchExtensionComponent=26]="LaunchExtensionComponent",t[t.StopExtensionComponent=27]="StopExtensionComponent",t[t.RestartExtensionComponent=28]="RestartExtensionComponent",t[t.EnableTaskPaneHeaderButton=29]="EnableTaskPaneHeaderButton",t[t.DisableTaskPaneHeaderButton=30]="DisableTaskPaneHeaderButton",t[t.TaskPaneHeaderButtonClicked=31]="TaskPaneHeaderButtonClicked",t[t.RemoveAppCommandsAddin=32]="RemoveAppCommandsAddin",t[t.RefreshRibbonGallery=33]="RefreshRibbonGallery",t[t.GetOriginalControlId=34]="GetOriginalControlId",t[t.OfficeJsReady=35]="OfficeJsReady",t[t.InsertDevManifest=36]="InsertDevManifest",t[t.InsertDevManifestError=37]="InsertDevManifestError",t[t.SendCustomerContent=38]="SendCustomerContent",t[t.KeyboardShortcuts=39]="KeyboardShortcuts",t[t.CloseSDXDialog=42]="CloseSDXDialog",t[t.ResizeSDXDialog=43]="ResizeSDXDialog",t[t.SendNonStandardEvent=44]="SendNonStandardEvent",t[t.Interactive=48]="Interactive"}(OSF=OSF||{}),function(i){var e=(t.prototype.initializeEventHandler=function(e){var t=this;this.addHandlerAsync(i.EventType.AppCommandInvoked,function(e){t._processAppCommandInvocation(e)},e)},t.prototype.appCommandInvocationCompletedAsync=function(t,n,r,e){i._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(94,{fromSafeArrayHost:function(e){return e},fromWebHost:function(e){return e},toSafeArrayHost:function(){return[t,n,r]},toWebHost:function(){var e={};return e[0]=t,e[1]=n,e[2]=r,e}},e)},t.prototype.addHandlerAsync=function(e,t,n){i.EventHelper.addEventHandler(e,t,n,this._eventDispatch,void 0,i.OUtil.isPopupWindow())},t.prototype._verifyManifestCallback=function(e){var t={callback:null,errorCode:11101};e=e.trim();try{var n=this._getCallbackFunc(e);if("function"!=typeof n)return t}catch(e){return t}return{callback:n,errorCode:0}},t.prototype._getCallbackFuncFromActionAssociateTable=function(e){var t=e.toUpperCase();return Office.actions._association.mappings[t]},t.prototype._getCallbackFunc=function(e){return this._getCallbackFuncFromActionAssociateTable(e)},t.prototype._invokeAppCommandCompletedMethod=function(e,t,n){this.appCommandInvocationCompletedAsync(e,t,n,function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Failed to notify the host thta app command is completed")})},t.prototype._constructEventObjectForCallback=function(n){var e,r,i=this;try{e=JSON.parse(n.eventObjStr),r=JSON.parse(n.eventObjStr)}catch(e){}return r=r||{},(e=e||{}).completed=function(e){r.completedContext=e;var t=JSON.stringify(r);i._invokeAppCommandCompletedMethod(n.appCommandId,0,t)},e},t.initialize=function(){null==t._instance&&(t._instance=new t).initializeEventHandler(function(e){e.status!==Office.AsyncResultStatus.Succeeded&&console.error("Cannot initialize app command: "+JSON.stringify(e))})},t._instance=null,t);function t(){var r=this;this._processAppCommandInvocation=function(e){var t=r._verifyManifestCallback(e.callbackName);if(0==t.errorCode){var n=r._constructEventObjectForCallback(e);n?window.setTimeout(function(){t.callback(n)},0):r._invokeAppCommandCompletedMethod(e.appCommandId,5001,"")}else r._invokeAppCommandCompletedMethod(e.appCommandId,t.errorCode,"")},this._eventDispatch=new i.EventDispatch([{type:i.EventType.AppCommandInvoked,id:i.EventDispId.dispidAppCommandInvokedEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:i.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}},fromWebHost:function(e){return{type:i.EventType.AppCommandInvoked,appCommandId:e[0],callbackName:e[1],eventObjStr:e[2]}}}])}i.AppCommandManager=e}(OSF=OSF||{}),function(e){var t;(t=e.AppName||(e.AppName={}))[t.Unsupported=0]="Unsupported",t[t.Excel=1]="Excel",t[t.Word=2]="Word",t[t.PowerPoint=4]="PowerPoint",t[t.Outlook=8]="Outlook",t[t.ExcelWebApp=16]="ExcelWebApp",t[t.WordWebApp=32]="WordWebApp",t[t.OutlookWebApp=64]="OutlookWebApp",t[t.Project=128]="Project",t[t.AccessWebApp=256]="AccessWebApp",t[t.PowerpointWebApp=512]="PowerpointWebApp",t[t.ExcelIOS=1024]="ExcelIOS",t[t.Sway=2048]="Sway",t[t.WordIOS=4096]="WordIOS",t[t.PowerPointIOS=8192]="PowerPointIOS",t[t.Access=16384]="Access",t[t.Lync=32768]="Lync",t[t.OutlookIOS=65536]="OutlookIOS",t[t.OneNoteWebApp=131072]="OneNoteWebApp",t[t.OneNote=262144]="OneNote",t[t.ExcelWinRT=524288]="ExcelWinRT",t[t.WordWinRT=1048576]="WordWinRT",t[t.PowerpointWinRT=2097152]="PowerpointWinRT",t[t.OutlookAndroid=4194304]="OutlookAndroid",t[t.OneNoteWinRT=8388608]="OneNoteWinRT",t[t.ExcelAndroid=8388609]="ExcelAndroid",t[t.VisioWebApp=8388610]="VisioWebApp",t[t.OneNoteIOS=8388611]="OneNoteIOS",t[t.WordAndroid=8388613]="WordAndroid",t[t.PowerpointAndroid=8388614]="PowerpointAndroid",t[t.Visio=8388615]="Visio",t[t.OneNoteAndroid=4194305]="OneNoteAndroid"}(OSF=OSF||{}),function(e){var t=(n.prototype.associate=function(e,t){function n(e){"undefined"!=typeof console&&console.warn&&console.warn(e)}if(1==arguments.length&&"object"==typeof e&&e){var r=e;for(var i in r)this.associate(i,r[i])}else if(2==arguments.length){var o=e,a=t;if("string"!=typeof o)return void n("[InvalidArg] Function=associate");if("function"!=typeof a)return void n("[InvalidArg] Function=associate");var s=o.toUpperCase();this.m_mappings[s]&&n("[DuplicatedName] Function="+o),this.m_mappings[s]=a;for(var c=0;c<this.m_onchangeHandlers.length;c++)this.m_onchangeHandlers[c]()}else n("[InvalidArg] Function=associate")},n.prototype.onchange=function(e){e&&this.m_onchangeHandlers.push(e)},Object.defineProperty(n.prototype,"mappings",{get:function(){return this.m_mappings},enumerable:!0,configurable:!0}),n);function n(){this.m_mappings={},this.m_onchangeHandlers=[]}e.Association=t}(OSF=OSF||{}),function(e){var t=(n.prototype.invokeCallback=function(e,t,n,r,i){if(0==n){var o={status:Office.AsyncResultStatus.Succeeded,value:r,asyncContext:i};"function"==typeof t&&t(o)}else{var a={status:Office.AsyncResultStatus.Failed,error:{code:n},asyncContext:i};"function"==typeof t&&t(a)}},n);function n(){}e.AsyncMethodExecutor=t}(OSF=OSF||{}),function(d){var e=(t.prototype.handleSafeArrayHostResponse=function(e,t,n,r,i,o,a){var s,c;if(1==(c="number"==typeof(e=d.Utility.fromSafeArray(e))?(s=[],e):(s=e)[0]))return null!=(l=s[1])&&(n[l[0]]=l[1]),!1;if(r){var l;if(0==c){if(2<s.length){l=[];for(var u=1;u<s.length;u++)l[u-1]=s[u]}else l=s[1];if(0<n.length&&null!=l){var p=l[l.length-1];n.length==p?l[l.length-1]=n:c=5001}}else l=s[1];var f=null;0==c&&(f=i.fromSafeArrayHost(l)),this._asyncMethodExecutor.invokeCallback(o,r,c,f,a)}return!0},t.prototype.handleWebHostResponse=function(e,t,n,r,i,o){var a=null;0==t&&(a=r.fromWebHost(e)),this._asyncMethodExecutor.invokeCallback(i,n,t,a,o)},t);function t(e){this._asyncMethodExecutor=e}d.AsyncMethodExecutorHelper=e}(OSF=OSF||{}),function(e){!function(e){var t,n,r,i;t=e.AsyncResultEnum||(e.AsyncResultEnum={}),(n=t.Properties||(t.Properties={})).Context="Context",n.Value="Value",n.Status="Status",n.Error="Error",(r=t.ErrorCode||(t.ErrorCode={}))[r.Success=0]="Success",r[r.Failed=1]="Failed",(i=t.ErrorProperties||(t.ErrorProperties={})).Name="Name",i.Message="Message",i.Code="Code";function o(e,t){this.value=e.Value,this.status=t?Office.AsyncResultStatus.Failed:Office.AsyncResultStatus.Succeeded,e.Context&&(this.asyncContext=e.Context),t&&(this.error=new a(t.Name,t.Message,t.Code))}e.AsyncResult=o;var a=function(e,t,n){this.name=e,this.message=t,this.code=n};e.Error=a}(e.DDA||(e.DDA={}))}(OSF=OSF||{}),function(n){var e;(e=n.BootStrapExtension||(n.BootStrapExtension={})).createWebClientHostControllerHelper=function(e,t){return new n.WebClientHostControllerHelper(e,t)},e.createAsyncMethodExecutorHelper=function(e){return new n.AsyncMethodExecutorHelper(e)}}(OSF=OSF||{}),function(e){var t;(t=e.ConstantNames||(e.ConstantNames={})).DefaultLocale="en-us",t.OfficeJS="office.js",t.OfficeDebugJS="office.debug.js",t.OfficeStringsId="OFFICESTRINGS",t.OfficeJsId="OFFICEJS",t.HostFileId="HOST",t.OfficeStringJS="office_strings.js",t.OfficeStringDebugJS="office_strings.debug.js",t.FileVersion="0.0.0.0"}(OSF=OSF||{}),function(e){var t=(n.NotificationConversationIdSuffix="_ntf",n);function n(){}e.Constants=t}(OSF=OSF||{}),CustomFunctionMappings=CustomFunctionMappings||{},function(e){e.delayInitialization=function(){CustomFunctionMappings.__delay__=!0},e._association=e._association||new OSF.Association,e.associate=function(){e._association.associate.apply(e._association,arguments),delete CustomFunctionMappings.__delay__}}(CustomFunctions=CustomFunctions||{}),function(n){var e,t,r,i;e=n.DDA||(n.DDA={}),t=e.ErrorCodeManager||(e.ErrorCodeManager={}),i=!(r={}),t.getErrorArgs=function(e){i||(r[1e3]={name:n.ErrorNames.InvalidCoercion},r[1001]={name:n.ErrorNames.DataReadError},r[1002]={name:n.ErrorNames.InvalidCoercion},r[1003]={name:n.ErrorNames.DataReadError},r[1004]={name:n.ErrorNames.DataReadError},r[1005]={name:n.ErrorNames.DataReadError},r[1006]={name:n.ErrorNames.DataReadError},r[1008]={name:n.ErrorNames.DataReadError},r[1009]={name:n.ErrorNames.DataReadError},r[1010]={name:n.ErrorNames.DataReadError},r[1011]={name:n.ErrorNames.DataReadError},r[1012]={name:n.ErrorNames.DataReadError},r[1013]={name:n.ErrorNames.DataReadError},r[2e3]={name:n.ErrorNames.DataWriteError},r[2001]={name:n.ErrorNames.DataWriteError},r[2002]={name:n.ErrorNames.DataWriteError},r[2003]={name:n.ErrorNames.DataWriteError},r[2004]={name:n.ErrorNames.DataWriteError},r[2005]={name:n.ErrorNames.DataWriteError},r[2006]={name:n.ErrorNames.InvalidFormat},r[2007]={name:n.ErrorNames.InvalidDataObject},r[2008]={name:n.ErrorNames.InvalidDataObject},r[2009]={name:n.ErrorNames.DataWriteError},r[2010]={name:n.ErrorNames.DataWriteError},r[2011]={name:n.ErrorNames.DataWriteError},r[2012]={name:n.ErrorNames.DataWriteError},r[2013]={name:n.ErrorNames.DataWriteError},r[3e3]={name:n.ErrorNames.BindingCreationError},r[3002]={name:n.ErrorNames.InvalidBindingError},r[3003]={name:n.ErrorNames.BindingCreationError},r[3004]={name:n.ErrorNames.BindingCreationError},r[3005]={name:n.ErrorNames.InvalidBindingOperation},r[3006]={name:n.ErrorNames.BindingCreationError},r[3007]={name:n.ErrorNames.BindingCreationError},r[3008]={name:n.ErrorNames.BindingCreationError},r[3009]={name:n.ErrorNames.InvalidBinding},r[3010]={name:n.ErrorNames.InvalidBindingOperation},r[3011]={name:n.ErrorNames.InvalidBinding},r[4e3]={name:n.ErrorNames.ReadSettingsError},r[4001]={name:n.ErrorNames.SaveSettingsError},r[4002]={name:n.ErrorNames.SettingsStaleError},r[5e3]={name:n.ErrorNames.HostError},r[5001]={name:n.ErrorNames.InternalError},r[5002]={name:n.ErrorNames.PermissionDenied},r[5003]={name:n.ErrorNames.EventRegistrationError},r[5004]={name:n.ErrorNames.InvalidAPICall},r[5005]={name:n.ErrorNames.ShuttingDown},r[5007]={name:n.ErrorNames.UnsupportedEnumeration},r[5008]={name:n.ErrorNames.IndexOutOfRange},r[5009]={name:n.ErrorNames.APINotSupported},r[5011]={name:n.ErrorNames.APICallFailed},r[5012]={name:n.ErrorNames.InvalidOrTimedOutSession},r[5013]={name:n.ErrorNames.APICallFailed},r[5015]={name:n.ErrorNames.APICallFailed},r[5016]={name:n.ErrorNames.APICallFailed},r[5017]={name:n.ErrorNames.APICallFailed},r[5018]={name:n.ErrorNames.APICallFailed},r[5100]={name:n.ErrorNames.APICallFailed},r[5101]={name:n.ErrorNames.APICallFailed},r[5102]={name:n.ErrorNames.APICallFailed},r[5103]={name:n.ErrorNames.APICallFailed},r[5104]={name:n.ErrorNames.APICallFailed},r[6e3]={name:n.ErrorNames.InvalidNode},r[6100]={name:n.ErrorNames.CustomXmlError},r[6101]={name:n.ErrorNames.CustomXmlExceedQuotaName},r[6102]={name:n.ErrorNames.CustomXmlOutOfDateName},r[7e3]={name:n.ErrorNames.PermissionDenied},r[7001]={name:n.ErrorNames.CannotNavigateTo},r[7002]={name:n.ErrorNames.SpecifiedIdNotExist},r[7004]={name:n.ErrorNames.NavOutOfBounds},r[2014]={name:n.ErrorNames.DataWriteReminder},r[8e3]={name:n.ErrorNames.MissingParameter},r[8001]={name:n.ErrorNames.PermissionDenied},r[8010]={name:n.ErrorNames.InvalidValue},r[8011]={name:n.ErrorNames.InvalidValue},r[8012]={name:n.ErrorNames.InvalidValue},r[8020]={name:n.ErrorNames.OutOfRange},r[8021]={name:n.ErrorNames.OutOfRange},r[8022]={name:n.ErrorNames.OutOfRange},r[8023]={name:n.ErrorNames.FormattingReminder},r[1e4]={name:n.ErrorNames.UserNotSignedIn},r[11e3]={name:n.ErrorNames.MemoryLimitExceeded},r[11001]={name:n.ErrorNames.NetworkProblem},r[11002]={name:n.ErrorNames.InvalidValue},r[12007]={name:n.ErrorNames.DisplayDialogError},r[12e3]={name:n.ErrorNames.IndexOutOfRange},r[12001]={name:n.ErrorNames.IndexOutOfRange},r[12002]={name:n.ErrorNames.DisplayDialogError},r[12003]={name:n.ErrorNames.DialogNavigateError},r[12004]={name:n.ErrorNames.DisplayDialogError},r[12005]={name:n.ErrorNames.DisplayDialogError},r[12009]={name:n.ErrorNames.DisplayDialogError},r[12011]={name:n.ErrorNames.DisplayDialogError},r[13e3]={name:n.ErrorNames.APINotSupported},r[13001]={name:n.ErrorNames.UserNotSignedIn},r[13002]={name:n.ErrorNames.UserAborted},r[13003]={name:n.ErrorNames.UnsupportedUserIdentity},r[13004]={name:n.ErrorNames.InvalidResourceUrl},r[13005]={name:n.ErrorNames.InvalidGrant},r[13006]={name:n.ErrorNames.SSOClientError},r[13007]={name:n.ErrorNames.SSOServerError},r[13008]={name:n.ErrorNames.AddinIsAlreadyRequestingToken},r[13009]={name:n.ErrorNames.SSOUserConsentNotSupportedByCurrentAddinCategory},r[13010]={name:n.ErrorNames.SSOConnectionLostError},r[13012]={name:n.ErrorNames.APINotSupported},r[13013]={name:n.ErrorNames.APICallFailed},r[5014]={name:n.ErrorNames.OperationCancelledError},i=!0);var t=r[e];return(t=t||r[5001]).name||(t.name=r[5001].name),t.message||(t.message=t.name),t},t.addErrorMessage=function(e,t){r[e]=t}}(OSF=OSF||{}),(OSF||(OSF={})).ErrorNames={AddinIsAlreadyRequestingToken:"AddinIsAlreadyRequestingToken",APICallFailed:"APICallFailed",APINotSupported:"APINotSupported",BindingCreationError:"BindingCreationError",CallbackNotFunction:"CallbackNotFunction",CannotNavigateTo:"CannotNavigateTo",CustomXmlError:"CustomXmlError",CustomXmlExceedQuotaName:"CustomXmlExceedQuota",CustomXmlOutOfDateName:"CustomXmlOutOfDate",DataReadError:"DataReadError",DataWriteError:"DataWriteError",DataWriteReminder:"DataWriteReminder",DialogNavigateError:"DialogNavigateError",DisplayDialogError:"DisplayDialogError",EventRegistrationError:"EventRegistrationError",FormattingReminder:"FormattingReminder",HostError:"HostError",IndexOutOfRange:"IndexOutOfRange",InternalError:"InternalError",InvalidAPICall:"InvalidAPICall",InvalidBinding:"InvalidBinding",InvalidBindingError:"InvalidBindingError",InvalidBindingOperation:"InvalidBindingOperation",InvalidCoercion:"InvalidCoercion",InvalidDataObject:"InvalidDataObject",InvalidFormat:"InvalidFormat",InvalidGrant:"InvalidGrant",InvalidNode:"InvalidNode",InvalidOptionalArgument:"InvalidOptionalArgument",InvalidOrTimedOutSession:"InvalidOrTimedOutSession",InvalidResourceUrl:"InvalidResourceUrl",InvalidValue:"InvalidValue",MemoryLimitExceeded:"MemoryLimitExceeded",MissingParameter:"MissingParameter",MissingRequiredArguments:"MissingRequiredArguments",NavOutOfBounds:"NavOutOfBounds",NetworkProblem:"NetworkProblem",OperationCancelledError:"OperationCancelledError",OutOfRange:"OutOfRange",PermissionDenied:"PermissionDenied",ReadSettingsError:"ReadSettingsError",RedundantCallbackSpecification:"RedundantCallbackSpecification",SaveSettingsError:"SaveSettingsError",SettingsStaleError:"SettingsStaleError",ShuttingDown:"ShuttingDown",SSOClientError:"SSOClientError",SSOConnectionLostError:"SSOConnectionLostError",SSOServerError:"SSOServerError",SSOUserConsentNotSupportedByCurrentAddinCategory:"SSOUserConsentNotSupportedByCurrentAddinCategory",SpecifiedIdNotExist:"SpecifiedIdNotExist",TooManyArguments:"TooManyArguments",TooManyOptionalFunctions:"TooManyOptionalFunctions",TooManyOptionalObjects:"TooManyOptionalObjects",UnsupportedEnumeration:"UnsupportedEnumeration",UnsupportedUserIdentity:"UnsupportedUserIdentity",UserAborted:"UserAborted",UserNotSignedIn:"UserNotSignedIn"},function(e){var t=(n.prototype.getSupportedEvents=function(){var e=[];for(var t in this._eventHandlers)e.push(t);return e},n.prototype.supportsEvent=function(e){for(var t in this._eventHandlers)if(e==t)return!0;return!1},n.prototype.hasEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&0<n.length)for(var r=0;r<n.length;r++)if(n[r]===t)return!0;return!1},n.prototype.addEventHandler=function(e,t){if("function"!=typeof t)return!1;var n=this._eventHandlers[e];return!(!n||this.hasEventHandler(e,t)||(n.push(t),0))},n.prototype.addEventHandlerAndFireQueuedEvent=function(e,t){var n=this._eventHandlers[e],r=!n||0==n.length,i=this.addEventHandler(e,t);return r&&i&&this.fireQueuedEvent(e),i},n.prototype.removeEventHandler=function(e,t){var n=this._eventHandlers[e];if(n&&0<n.length)for(var r=0;r<n.length;r++)if(n[r]===t)return n.splice(r,1),!0;return!1},n.prototype.clearEventHandlers=function(e){return void 0!==this._eventHandlers[e]&&0<this._eventHandlers[e].length&&(this._eventHandlers[e]=[],!0)},n.prototype.getEventHandlerCount=function(e){return null!=this._eventHandlers[e]?this._eventHandlers[e].length:-1},n.prototype.getEventInfo=function(e){return this._eventInfos[e]},n.prototype.fireEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){for(var n=this._eventHandlers[t],r=0;r<n.length;r++)n[r](e);return!0}return!1},n.prototype.fireOrQueueEvent=function(e){if(null==e.type)return!1;var t=e.type;if(t&&this._eventHandlers[t]){var n=this._eventHandlers[t],r=this._queuedEventsArgs[t];return 0==n.length?r.push(e):this.fireEvent(e),!0}return!1},n.prototype.fireQueuedEvent=function(e){if(e&&this._eventHandlers[e]){var t=this._eventHandlers[e],n=this._queuedEventsArgs[e];if(0<t.length){for(var r=t[0];0<n.length;)r(n.shift());return!0}}return!1},n.prototype.clearQueuedEvent=function(e){e&&this._eventHandlers[e]&&this._queuedEventsArgs[e]&&(this._queuedEventsArgs[e]=[])},n);function n(e){if(this._eventInfos={},this._queuedEventsArgs={},this._eventHandlers={},this._queuedEventsArgs={},null!=e)for(var t=0;t<e.length;t++)if("string"==typeof e[t]){var n=e[t];this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}else{n=e[t].type;this._eventInfos[n]=e[t],this._eventHandlers[n]=[],this._queuedEventsArgs[n]=[]}}e.EventDispatch=t}(OSF=OSF||{}),function(e){var t;(t=e.EventDispId||(e.EventDispId={})).dispidEventMin=0,t.dispidInitializeEvent=0,t.dispidSettingsChangedEvent=1,t.dispidDocumentSelectionChangedEvent=2,t.dispidBindingSelectionChangedEvent=3,t.dispidBindingDataChangedEvent=4,t.dispidDocumentOpenEvent=5,t.dispidDocumentCloseEvent=6,t.dispidActiveViewChangedEvent=7,t.dispidDocumentThemeChangedEvent=8,t.dispidOfficeThemeChangedEvent=9,t.dispidDialogMessageReceivedEvent=10,t.dispidDialogNotificationShownInAddinEvent=11,t.dispidDialogParentMessageReceivedEvent=12,t.dispidObjectDeletedEvent=13,t.dispidObjectSelectionChangedEvent=14,t.dispidObjectDataChangedEvent=15,t.dispidContentControlAddedEvent=16,t.dispidLiveShareStateChangedEvent=17,t.dispidActivationStatusChangedEvent=32,t.dispidRichApiMessageEvent=33,t.dispidAppCommandInvokedEvent=39,t.dispidOnSdxSendMessageEvent=40,t.dispidDataNodeAddedEvent=60,t.dispidDataNodeReplacedEvent=61,t.dispidDataNodeDeletedEvent=62}(OSF=OSF||{}),function(d){var e=(h.addEventHandler=function(t,n,r,i,o,e){var a=0;function s(e){0==e&&(i.hasEventHandler(t,n)||i.addEventHandler(t,n)||(e=5010)),d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,r,e,null,o)}var c=i.getEventInfo(t);if(c)try{if(e)return void s(0);a=c.id;var l=c.getTargetId();0==i.getEventHandlerCount(t)?d._OfficeAppFactory.getAsyncMethodExecutor().registerEventAsync(a,c.type,l,function(e){i.fireEvent(e)},c,function(e){s(d.Utility.getErrorCodeFromAsyncResult(e))},o):s(0)}catch(e){h.onException(a,e,r)}else s(5010)},h.removeEventHandler=function(e,t,n,r,i,o){var a=0;function s(e){d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(a,n,e,null,i)}var c=r.getEventInfo(e);if(c)try{a=c.id;var l=c.getTargetId(),u=0,p=!0;u=null===t?(p=r.clearEventHandlers(e),0):(p=r.removeEventHandler(e,t))?0:5003;var f=r.getEventHandlerCount(e);p&&0==f?d._OfficeAppFactory.getAsyncMethodExecutor().unregisterEventAsync(a,c.type,l,function(e){s(d.Utility.getErrorCodeFromAsyncResult(e))},i):s(u)}catch(e){h.onException(a,e,n)}else s(5010)},h.onException=function(e,t,n){if("number"!=typeof t)throw t;d._OfficeAppFactory.getAsyncMethodExecutor().invokeCallback(e,n,t,null)},h);function h(){}d.EventHelper=e}(OSF=OSF||{}),function(e){var t;(t=e.EventType||(e.EventType={})).ActiveViewChanged="activeViewChanged",t.AppCommandInvoked="appCommandInvoked",t.RichApiMessage="richApiMessage",t.DocumentSelectionChanged="documentSelectionChanged",t.BindingSelectionChanged="bindingSelectionChanged",t.BindingDataChanged="bindingDataChanged",t.OfficeThemeChanged="officeThemeChanged",t.DocumentThemeChanged="documentThemeChanged",t.LiveShareStateChanged="liveShareStateChanged",t.DataNodeDeleted="nodeDeleted",t.DataNodeInserted="nodeInserted",t.DataNodeReplaced="nodeReplaced",t.DialogMessageReceived="dialogMessageReceived",t.DialogParentMessageReceived="dialogParentMessageReceived",t.DialogParentEventReceived="dialogParentEventReceived",t.DialogEventReceived="dialogEventReceived",t.NodeDeleted="nodeDeleted",t.NodeInserted="nodeInserted",t.NodeReplaced="nodeReplaced",t.SettingsChanged="settingsChanged"}(OSF=OSF||{}),function(e){var t,n;function r(){this.platformRemappings={web:Office.PlatformType.OfficeOnline,winrt:Office.PlatformType.Universal,win32:Office.PlatformType.PC,mac:Office.PlatformType.Mac,ios:Office.PlatformType.iOS,android:Office.PlatformType.Android},this.camelCaseMappings={powerpoint:Office.HostType.PowerPoint,onenote:Office.HostType.OneNote},this.hostInfo=e._OfficeAppFactory.getHostInfo()}t=e.HostName||(e.HostName={}),r.prototype.capitalizeFirstLetter=function(e){return e?e[0].toUpperCase()+e.slice(1).toLowerCase():e},r.getInstance=function(){return void 0===r.hostObj&&(r.hostObj=new r),r.hostObj},r.prototype.getPlatform=function(e){if(this.hostInfo&&this.hostInfo.hostPlatform){var t=this.hostInfo.hostPlatform.toLowerCase();if(this.platformRemappings[t])return this.platformRemappings[t]}return null},r.prototype.getHost=function(e){if(this.hostInfo&&this.hostInfo.hostType){var t=this.hostInfo.hostType.toLowerCase();if(this.camelCaseMappings[t])return this.camelCaseMappings[t];if(t=this.capitalizeFirstLetter(this.hostInfo.hostType),Office.HostType[t])return Office.HostType[t]}return null},r.prototype.getDefaultVersion=function(){return this.getHost()?"16.0.0000.0000":null},r.prototype.getDiagnostics=function(e){return{host:this.getHost(),version:e||this.getDefaultVersion(),platform:this.getPlatform()}},n=r,t.Host=n}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoFlags||(e.HostInfoFlags={}))[t.SharedApp=1]="SharedApp",t[t.CustomFunction=2]="CustomFunction",t[t.ProtectedDocDisable=4]="ProtectedDocDisable",t[t.ExperimentJsEnabled=8]="ExperimentJsEnabled",t[t.PublicAddin=16]="PublicAddin",t[t.BundleJsEnabled=32]="BundleJsEnabled",t[t.IsMos=64]="IsMos",t[t.IsMonarch=128]="IsMonarch",t[t.CustomFunctionsInitAfterCFRuntimeReady=256]="CustomFunctionsInitAfterCFRuntimeReady"}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoHostType||(e.HostInfoHostType={})).excel="excel",t.word="word"}(OSF=OSF||{}),function(e){var t;(t=e.HostInfoPlatform||(e.HostInfoPlatform={})).web="web",t.winrt="winrt",t.win32="win32",t.mac="mac",t.ios="ios",t.android="android"}(OSF=OSF||{}),function(o){var e=(t.prototype.saveAndSetDialogInfo=function(e){},t.prototype.setAgaveHostCommunication=function(){},t.prototype.createClientHostController=function(){return null},t.prototype.createAsyncMethodExecutor=function(){return null},t.prototype.createClientSettingsManager=function(){return null},t.prototype.createSettings=function(e){var t=o.OUtil.getSessionStorage();if(t){var n=t.getItem(o._OfficeAppFactory.getCachedSessionSettingsKey());n?e=JSON.parse(n):(n=JSON.stringify(e),t.setItem(o._OfficeAppFactory.getCachedSessionSettingsKey(),n))}var r=o.OUtil.deserializeSettings(e),i=this.createClientSettingsManager();return new Office.Settings(r,i)},t.prototype.prepareApiSurface=function(e){var t=e.get_featureGates();t&&(Microsoft.Office.WebExtension.FeatureGates=t),o.BootStrapExtension.prepareApiSurface&&o.BootStrapExtension.prepareApiSurface(),o.BootStrapExtension.prepareHostSpecificSurface&&o.BootStrapExtension.prepareHostSpecificSurface(),OSFPerformance.createOMEnd=OSFPerformance.now()},t.prototype.getTabbableElements=function(){return null},t.prototype.setupNestedAppAuthDependencies=function(){},t.prototype.setCreateNaaBridge=function(e){this._createNaaBridge=e},t);function t(e,t,n,r){this._hostInfo=e,this._webAppState=t,this._context=n,this._hostFacade=r}o.InitializationHelper=e}(OSF=OSF||{}),function(e){var t;(t=e.InitializationReason||(e.InitializationReason={})).Inserted="inserted",t.DocumentOpened="documentOpened"}(OSF=OSF||{}),function(p){var f;p.DisabledChangeGates=[],function(e){var t=0,r="resources.office.net",i="officeapps.live.com";e.getLibraryReleaseVehicle=function(){return t},e.setLibraryReleaseVehicle=function(e){t=e},e.isChangeGateEnabled=function(e){return!p.DisabledChangeGates||-1===p.DisabledChangeGates.indexOf(e)};var n=null,o=null;function a(){if(!o&&n&&n.officeCdnEndpoint)if(n.officeCdnEndpoint.origin&&0<n.officeCdnEndpoint.origin.length){var e="";e=n.officeCdnEndpoint.isOCDICompliant?"/"===n.officeCdnEndpoint.origin[n.officeCdnEndpoint.origin.length-1]?"beta/":"/beta/":"/"===n.officeCdnEndpoint.origin[n.officeCdnEndpoint.origin.length-1]?"appsforoffice/lib/beta/hosted/":"/appsforoffice/lib/beta/hosted/",o=n.officeCdnEndpoint.origin+e}else{var t=function(e){var t=new URL(e).hostname.toLowerCase();if(-1!==t.indexOf(r,t.length-r.length))return r;if(-1!==t.indexOf(i,t.length-i.length))return i;var n=t.split(".");return n.length<5||"mro1cdnstorage"!==n[1]?void 0:n.slice(2).join(".")}(window.location.href);o=t&&"public.onecdn.static.microsoft"!==t?"public.cdn.office.net"===t||t===r||t===i?(n.officeCdnEndpoint.isOCDICompliant=!1,n.officeCdnEndpoint.isSovereign=!1,"https://appsforoffice.microsoft.com/lib/beta/hosted/"):(n.officeCdnEndpoint.isOCDICompliant=!1,n.officeCdnEndpoint.isSovereign=!0,"https://appsforoffice."+t+"/appsforoffice/lib/beta/hosted/"):(n.officeCdnEndpoint.isOCDICompliant=!0,n.officeCdnEndpoint.isSovereign=!1,"https://officeapis.public.onecdn.static.microsoft/beta/")}}function s(){if(!p.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList"))return"object"==typeof officeInitializationSettings&&officeInitializationSettings?officeInitializationSettings:{};if(!n){var e="officeInitializationSettings";if(window.hasOwnProperty(e)){var t=window[e];"object"==typeof t&&null!==t&&(n=t)}1!==p.OUtil.getLibraryReleaseVehicle()?n?n.officeCdnEndpoint={}:n={trustAllCloudEnvironments:!1,officeCdnEndpoint:{}}:(n&&n.officeCdnEndpoint&&"object"==typeof n.officeCdnEndpoint||(n={trustAllCloudEnvironments:!1,officeCdnEndpoint:{origin:"",isSovereign:!1,isOCDICompliant:!1,isSdx:!0,trustedTypesOptIn:!1}}),"string"==typeof n.officeCdnEndpoint.origin?n.officeCdnEndpoint.origin=n.officeCdnEndpoint.origin.trim():n.officeCdnEndpoint.origin="",n.officeCdnEndpoint.isSdx=!0,a())}return n}e.getCustomOfficeInitializationSettings=s,e.getAppsForOfficeBaseForNpm=function(){return o||s(),o||""}}(f=p.OUtil||(p.OUtil={})),function(e){var s,n=null,r=!1,d=["excel","word","powerpoint","onenote","outlook","visio","office-common","office.common","office","officebase"],h=[".js",".debug.js"],g="_osfDisableHostCheck",c=function(){try{return document.currentScript}catch(e){return null}}();function i(){return 1===p.OUtil.getLibraryReleaseVehicle()?p.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.trustedTypesOptIn:(o(),s.trustedTypesOptIn)}function l(e,t){var n=null!=e?e.src:null;if(!n)return null;var r=n.toLowerCase(),i="",o=!1,a=!0,s=void 0,c=!1;if(t){var l=r.indexOf(t);if(!(0<=l)||0!==l&&"/"!==n.charAt(l-1)&&"\\"!==n.charAt(l-1)||l+t.length!==n.length&&"?"!==n.charAt(l+t.length))a=!1;else{i=n.substring(0,l),o=0<r.indexOf(".debug.js",l);var u=e.getAttribute("data-is-sdx");c="1"===u||"true"===u;var p=e.getAttribute("data-enable-trusted-types");s=null!=p?"1"===p||"true"===p:void 0}}return a?{basePath:i,name:t||"",isDebugJs:o,isSdx:c,disableHostCheck:window.hasOwnProperty(g)&&!0===window[g],trustedTypesOptIn:s}:null}function o(){if(!s){if(p.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")){function e(e){for(var t=0;t<d.length;t++)for(var n=0;n<h.length;n++){var r=l(e,d[t]+h[n]);if(r)return r}return null}if(1===p.OUtil.getLibraryReleaseVehicle())return void(s=l(c,null));if(s=e(c))return;for(var t=document.getElementsByTagName("script"),n=t.length,r=0;r<n;r++)if(s=e(t[r]))return}else{function i(e){var t=null!=e?e.src:null;if(!t)return null;for(var n=t.toLowerCase(),r=0;r<d.length;r++)for(var i=0;i<h.length;i++){var o=d[r]+h[i],a=n.indexOf(o);if(0<=a&&(0===a||"/"===t.charAt(a-1)||"\\"===t.charAt(a-1))&&(a+o.length===t.length||"?"===t.charAt(a+o.length))){var s=t.substring(0,a),c=0<n.indexOf(".debug.js",a),l=e.getAttribute("data-is-sdx"),u="1"===l||"true"===l,p=e.getAttribute("data-enable-trusted-types"),f=null!=p?"1"===p||"true"===p:void 0;return{basePath:s,name:o,isDebugJs:c,isSdx:u,disableHostCheck:window.hasOwnProperty(g)&&!0===window[g],trustedTypesOptIn:f}}}return null}if(s=i(c))return;var o=document.getElementsByTagName("script"),a=o.length;for(r=0;r<a;r++)if(s=i(o[r]))return}s={basePath:"",name:"",isDebugJs:!1,isSdx:!1,disableHostCheck:!1,trustedTypesOptIn:!1}}}e.getHostBundleJsBasePath=function(){return p.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")&&1===p.OUtil.getLibraryReleaseVehicle()?p.OUtil.getAppsForOfficeBaseForNpm():(o(),s.basePath)},e.getHostBundleJsName=function(){return o(),s.name},e.getOfficeStringJsName=function(){return o(),s.isDebugJs?p.ConstantNames.OfficeStringDebugJS:p.ConstantNames.OfficeStringJS},e.isSdx=function(){return 1===p.OUtil.getLibraryReleaseVehicle()?p.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.isSdx:(o(),s.isSdx)},e.disableHostCheck=function(){return o(),s.disableHostCheck},e.getTrustedTypesOptIn=i,e.loadScriptWithBasename=function(e,t,n){o();var r=e+(s.isDebugJs?".debug.js":".js");r=r.toLowerCase();var i=s.basePath+r;f.loadScript(i,t,u())};var a=["https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js"];function u(){if(!r){r=!0;try{var e=i();if(!(null!=e?e:p.OUtil.isSecureDefaultsEnabled())||!window.trustedTypes||!window.trustedTypes.createPolicy)return null;var t=c.src,o=new URL(t).origin.toLowerCase();if(!o)return null;n=window.trustedTypes.createPolicy("officejs",{createScriptURL:function(e){var t=e.toLowerCase(),n=new URL(t).origin;if(o&&o===n)return e;for(var r=0,i=a;r<i.length;r++){if(t===i[r])return e}throw new Error("Untrusted script URL")}})}catch(e){}}return n}e.getTrustedTypesPolicy=u}(p.LoadScriptHelper||(p.LoadScriptHelper={}))}(OSF=(OSF=OSF||{})||{}),function(e){var t,n;(n=t=e.LiveShareStateParams||(e.LiveShareStateParams={}))[n.MaxLiveShareStateDataSizeInBytes=1024]="MaxLiveShareStateDataSizeInBytes";var r=(i.prototype.get=function(){return this._liveShareState},i.prototype.set=function(e){if((new TextEncoder).encode(e).length>t.MaxLiveShareStateDataSizeInBytes)throw new Error("State data size is limited to "+t.MaxLiveShareStateDataSizeInBytes+" bytes.");this._liveShareState=e},i.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},i.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},i);function i(e){var t=this;e=e||null,this._liveShareState=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidLiveShareStateChangedEvent,type:OSF.EventType.LiveShareStateChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}},fromWebHost:function(e){return{type:OSF.EventType.LiveShareStateChanged,liveShareState:t}}}])}e.LiveShareState=r}(Office=Office||{}),function(e){var i={"ar-sa":!0,"bg-bg":!0,"bn-in":!0,"ca-es":!0,"cs-cz":!0,"da-dk":!0,"de-de":!0,"el-gr":!0,"en-us":!0,"es-es":!0,"et-ee":!0,"eu-es":!0,"fa-ir":!0,"fi-fi":!0,"fr-fr":!0,"gl-es":!0,"he-il":!0,"hi-in":!0,"hr-hr":!0,"hu-hu":!0,"id-id":!0,"it-it":!0,"ja-jp":!0,"kk-kz":!0,"ko-kr":!0,"lo-la":!0,"lt-lt":!0,"lv-lv":!0,"ms-my":!0,"nb-no":!0,"nl-nl":!0,"nn-no":!0,"pl-pl":!0,"pt-br":!0,"pt-pt":!0,"ro-ro":!0,"ru-ru":!0,"sk-sk":!0,"sl-si":!0,"sr-cyrl-cs":!0,"sr-cyrl-rs":!0,"sr-latn-cs":!0,"sr-latn-rs":!0,"sv-se":!0,"th-th":!0,"tr-tr":!0,"uk-ua":!0,"ur-pk":!0,"vi-vn":!0,"zh-cn":!0,"zh-tw":!0},o={ar:"ar-sa",bg:"bg-bg",bn:"bn-in",ca:"ca-es",cs:"cs-cz",da:"da-dk",de:"de-de",el:"el-gr",en:"en-us",es:"es-es",et:"et-ee",eu:"eu-es",fa:"fa-ir",fi:"fi-fi",fr:"fr-fr",gl:"gl-es",he:"he-il",hi:"hi-in",hr:"hr-hr",hu:"hu-hu",id:"id-id",it:"it-it",ja:"ja-jp",kk:"kk-kz",ko:"ko-kr",lo:"lo-la",lt:"lt-lt",lv:"lv-lv",ms:"ms-my",nb:"nb-no",nl:"nl-nl",nn:"nn-no",pl:"pl-pl",pt:"pt-br",ro:"ro-ro",ru:"ru-ru",sk:"sk-sk",sl:"sl-si",sr:"sr-cyrl-cs",sv:"sv-se",th:"th-th",tr:"tr-tr",uk:"uk-ua",ur:"ur-pk",vi:"vi-vn",zh:"zh-cn"};e.getSupportedLocale=function(e,t){if(void 0===t&&(t="en-us"),!e)return t;var n;if((e=e.toLowerCase())in i)n=e;else{var r=e.split("-",1);r&&0<r.length&&(n=o[r[0]])}return n=n||t}}(OSF=OSF||{}),function(e){e.OfficeOM||(e.OfficeOM={})}(Strings=Strings||{}),function(i){var o,e;(o=i.OUtil||(i.OUtil={})).ensureOfficeStringsJs=function(){return e=e||(1==i.OUtil.getLibraryReleaseVehicle()?new Office.Promise(function(e,t){e()}):new Office.Promise(function(n,r){if(i.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_9441111_DefaultLocaleOfficeStrings")){var e=i.LoadScriptHelper.getHostBundleJsBasePath()+i.ConstantNames.DefaultLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();i.OUtil.loadScript(e,function(e){e?n():r(new Error("Cannot load "+i.ConstantNames.OfficeStringJS))},i.LoadScriptHelper.getTrustedTypesPolicy())}else{if(!i._OfficeAppFactory.getHostInfo().hostLocale)return void r(new Error("No host locale"));e=i.LoadScriptHelper.getHostBundleJsBasePath()+i._OfficeAppFactory.getHostInfo().hostLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();i.OUtil.loadScript(e,function(e){if(e)n();else{var t=i.LoadScriptHelper.getHostBundleJsBasePath()+i.ConstantNames.DefaultLocale+"/"+i.LoadScriptHelper.getOfficeStringJsName();o.loadScript(t,function(e){e?n():r(new Error("Cannot load "+i.ConstantNames.OfficeStringJS))},i.LoadScriptHelper.getTrustedTypesPolicy())}},i.LoadScriptHelper.getTrustedTypesPolicy())}}))}}(OSF=OSF||{}),function(u){var e,t,n;e=u.context||(u.context={}),t=e.document||(e.document={}),OSF.definePropertyOnNamespace(t,"url",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_docUrl()}),OSF.definePropertyOnNamespace(t,"mode",function(){return 0==OSF._OfficeAppFactory.getOfficeAppContext().get_clientMode()?u.DocumentMode.ReadOnly:u.DocumentMode.ReadWrite}),OSF.definePropertyOnNamespace(t,"settings",function(){if(!n){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_settingsFunc()();n=OSF._OfficeAppFactory.getInitializationHelper().createSettings(e)}return n}),t.goToByIdAsync=function(e,t,n,r){var i={};i[u.GoToType.Binding]=0,i[u.GoToType.NamedItem]=1,i[u.GoToType.Slide]=2,i[u.GoToType.Index]=3;var o={};o[u.SelectionMode.Default]=0,o[u.SelectionMode.Selected]=1,o[u.SelectionMode.None]=2;var a=i[t],s=0,c=r;"function"==typeof n?c=n:void 0!==n&&(s=o[n]);var l={toSafeArrayHost:function(){return[e,a,s]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaGoToByIdMethod:{Id:e,GoToType:a,SelectionMode:s}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(82,l,c)}}(Office=Office||{}),function(e){var t,n;t=e.context||(e.context={}),(n=t.messaging||(t.messaging={})).sendMessage=function(e){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web){var t=OSF._OfficeAppFactory.getWebAppState();t.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[t.id,OSF.AgaveHostAction.SendMessage,e])}else{var n=JSON.stringify(e);OSF._OfficeAppFactory.getClientHostController().execute(208,[n],null)}},n.registerOnMessageEventHandler=function(r){if(OSF._OfficeAppFactory.getHostInfo().hostPlatform==OSF.HostInfoPlatform.web)n.onMessage=r;else{OSF._OfficeAppFactory.getClientHostController().registerEvent(OSF.EventDispId.dispidOnSdxSendMessageEvent,"","",function(e,t){var n=t.toArray();r(JSON.parse(n[0]))},null)}}}(Office=Office||{}),function(r){var e,t,i;e=r.context||(r.context={}),OSF.definePropertyOnNamespace(e,"contentLanguage",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_dataLocale()}),OSF.definePropertyOnNamespace(e,"displayLanguage",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_appUILocale()}),OSF.definePropertyOnNamespace(e,"partitionKey",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_partitionKey()}),OSF.definePropertyOnNamespace(e,"isDialog",function(){return OSF._OfficeAppFactory.getHostInfo().isDialog}),OSF.definePropertyOnNamespace(e,"touchEnabled",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_touchEnabled()}),OSF.definePropertyOnNamespace(e,"commerceAllowed",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_commerceAllowed()}),OSF.definePropertyOnNamespace(e,"host",function(){return OSF.HostName.Host.getInstance().getHost()}),OSF.definePropertyOnNamespace(e,"platform",function(){return OSF.HostName.Host.getInstance().getPlatform()}),OSF.definePropertyOnNamespace(e,"diagnostics",function(){return OSF.HostName.Host.getInstance().getDiagnostics(OSF._OfficeAppFactory.getOfficeAppContext().get_hostFullVersion())}),OSF.definePropertyOnNamespace(e,"requirements",function(){if(!t){var e=OSF._OfficeAppFactory.getOfficeAppContext();e&&(t=e.get_isDialog()?OSF.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(e):OSF.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(e))}return t}),OSF.definePropertyOnNamespace(e,"officeTheme",function(){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_officeThemeFunc();return e?"function"==typeof e?e():e:void 0}),OSF.definePropertyOnNamespace(e,"webAuth",function(){if(OSF.DDA.WebAuth)return OSF.DDA.WebAuth}),OSF.definePropertyOnNamespace(e,"auth",function(){if(OSF.DDA.Auth)return OSF.DDA.Auth}),OSF.definePropertyOnNamespace(e,"license",function(){return OSF._OfficeAppFactory.getOfficeAppContext().get_eToken()}),OSF.definePropertyOnNamespace(e,"hostSettings",function(){if(!i){var e=OSF._OfficeAppFactory.getOfficeAppContext().get_hostSettingsFunc();if(void 0!==e){var t=e(),n=OSF.OUtil.deserializeSettings(t);i=new r.Settings(n,void 0)}}return i})}(Office=Office||{}),function(e){var t;((t=e.context||(e.context={})).ribbonGallery||(t.ribbonGallery={})).refreshRibbon=function(e){OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getWebAppState().id,OSF.AgaveHostAction.RefreshRibbonGallery,e])}}(Office=Office||{}),function(e){var t,n;t=e.context||(e.context={}),(n=t.ui||(t.ui={})).taskPaneAction||(n.taskPaneAction={})}(Office=Office||{});var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(r){function i(){r._officeOnReadyState.officeOnReadyPromise||(r._officeOnReadyState.officeOnReadyPromise=new r.Promise(function(e,t){r._officeOnReadyState.officeOnReadyPromiseResolve=e,r._officeOnReadyState.officeOnReadyPromiseReject=t}))}function t(){if(!r._officeOnReadyState.onReadyAllowsRejection||!r._officeOnReadyState.officeOnReadyRejected){for(OSFPerformance.officeOnReady||(OSFPerformance.officeOnReady=OSFPerformance.now()),r._officeOnReadyState.officeOnReadyPromiseResolve(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo),r._officeOnReadyState.officeOnReadyPromiseReject=null;0<r._officeOnReadyState.officeOnReadyExternalCallbacks.length;)r._officeOnReadyState.officeOnReadyExternalCallbacks.shift()(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo);r._officeOnReadyState.isOfficeOnReadyCalled||OSF.OUtil.waitForFunction(function(){return"function"==typeof r.initialize},function(e){e&&r.initialize(OSF._OfficeAppFactory.getOfficeAppContext().get_reason())},400,50)}}function n(e,t){i();var n=r._officeOnReadyState.officeOnReadyFired&&(!t||0===Object.keys(r._officeOnReadyState.heldLocks).length);return t&&r._officeOnReadyState.onReadyAllowsRejection&&r._officeOnReadyState.officeOnReadyRejected||e&&(n?e(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo):t?r._officeOnReadyState.officeOnReadyExternalCallbacks.push(e):r._officeOnReadyState.officeOnReadyInternalCallbacks.push(e)),r._officeOnReadyState.officeOnReadyPromise}r.OnReadyLockId=r.OnReadyLockId||{CustomFunctionsRuntimeReady:"CustomFunctionsRuntimeReady"},r._officeOnReadyState=r._officeOnReadyState||{isOfficeOnReadyCalled:!1,officeOnReadyPromise:null,officeOnReadyPromiseResolve:null,officeOnReadyPromiseReject:null,officeOnReadyInternalCallbacks:[],officeOnReadyExternalCallbacks:[],officeOnReadyHostAndPlatformInfo:null,officeOnReadyFired:!1,officeOnReadyRejected:!1,officeOnReadyRejectionError:null,heldLocks:{},onReadyAllowsRejection:!1},r.initialize=r.initialize,r.onReadyInternal=function(e){return n(e,!1)},r.onReady=function(e){return n(e,r._officeOnReadyState.isOfficeOnReadyCalled=!0)},r.onReadyOptions=r.onReadyOptions||{setRejectionEnabled:function(){r._officeOnReadyState.onReadyAllowsRejection=!0}},r.rejectOfficeOnReady=function(e){r._officeOnReadyState.officeOnReadyRejected||(r._officeOnReadyState.officeOnReadyRejectionError=e,r._officeOnReadyState.officeOnReadyRejected=!0,r._officeOnReadyState.onReadyAllowsRejection&&(i(),r._officeOnReadyState.officeOnReadyPromiseReject&&(r._officeOnReadyState.officeOnReadyPromiseReject(e),r._officeOnReadyState.officeOnReadyExternalCallbacks=[])))},r.fireOnReady=function(e){i(),r._officeOnReadyState.officeOnReadyHostAndPlatformInfo=__assign({},e),r._officeOnReadyState.officeOnReadyFired=!0,function(){for(;0<r._officeOnReadyState.officeOnReadyInternalCallbacks.length;)r._officeOnReadyState.officeOnReadyInternalCallbacks.shift()(r._officeOnReadyState.officeOnReadyHostAndPlatformInfo)}(),0<Object.keys(r._officeOnReadyState.heldLocks).length||t()},r.acquireOnReadyLock=function(t){return Object.keys(r.OnReadyLockId).some(function(e){return r.OnReadyLockId[e]===t})?(r._officeOnReadyState.heldLocks[t]=!0,t):null},r.releaseOnReadyLock=function(e){r._officeOnReadyState.heldLocks[e]&&(delete r._officeOnReadyState.heldLocks[e],0===Object.keys(r._officeOnReadyState.heldLocks).length&&r._officeOnReadyState.officeOnReadyPromise&&r._officeOnReadyState.officeOnReadyFired&&t())}}(Office=Office||{}),function(j){var e=(t.prototype.get_id=function(){return this._id},t.prototype.get_appName=function(){return this._appName},t.prototype.get_appVersion=function(){return this._appVersion},t.prototype.get_appUILocale=function(){return this._appUILocale},t.prototype.get_dataLocale=function(){return this._dataLocale},t.prototype.get_docUrl=function(){return this._docUrl},t.prototype.get_clientMode=function(){return this._isWeb?this._clientMode:0==this._clientMode?Office.DocumentMode.ReadWrite:Office.DocumentMode.ReadOnly},t.prototype.get_settingsFunc=function(){return this._settingsFunc},t.prototype.get_reason=function(){return this._reason},t.prototype.get_osfControlType=function(){return this._osfControlType},t.prototype.get_eToken=function(){return this._eToken},t.prototype.get_correlationId=function(){return this._correlationId},t.prototype.get_appInstanceId=function(){return this._appInstanceId},t.prototype.get_touchEnabled=function(){return this._touchEnabled},t.prototype.get_commerceAllowed=function(){return this._commerceAllowed},t.prototype.get_appMinorVersion=function(){return this._appMinorVersion},t.prototype.get_requirementMatrix=function(){return this._requirementMatrix},t.prototype.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix},t.prototype.get_hostCustomMessage=function(){return this._hostCustomMessage},t.prototype.get_hostFullVersion=function(){return this._hostFullVersion},t.prototype.get_isDialog=function(){return this._isDialog},t.prototype.get_clientWindowHeight=function(){return this._clientWindowHeight},t.prototype.get_clientWindowWidth=function(){return this._clientWindowWidth},t.prototype.get_addinName=function(){return this._addinName},t.prototype.get_appDomains=function(){return this._appDomains},t.prototype.get_taskpaneUrl=function(){return this._taskpaneUrl},t.prototype.set_taskpaneUrl=function(e){this._taskpaneUrl=e},t.prototype.get_featureGates=function(){return this._featureGates},t.prototype.get_officeThemeFunc=function(){return this._officeThemeFunc},t.prototype.get_initialDisplayMode=function(){return this._initialDisplayMode?this._initialDisplayMode:0},t.prototype.get_isFromWacAutomation=function(){return this._isFromWacAutomation},t.prototype.get_wopiHostOriginForSingleSignOn=function(){return this._wopiHostOriginForSingleSignOn},t.prototype.get_hostSettingsFunc=function(){return this._hostSettingsFunc},t.prototype.get_isWeb=function(){return this._isWeb},t.prototype.get_nestedAppAuthBridgeType=function(){return this._nestedAppAuthBridgeType},t.prototype.get_partitionKey=function(){return this._partitionKey},t.prototype.get_topFrameOrigin=function(){return this._topFrameOrigin},t);function t(e,t,n,r,i,o,a,s,c,l,u,p,f,d,h,g,y,m,_,b,v,O,P,C,R,S,I,A,T,N,D,x,E,k){this._id=e,this._appName=t,this._appVersion=n,this._appUILocale=r,this._dataLocale=i,this._docUrl=o,this._clientMode=a,this._settingsFunc=s,this._reason=c,this._osfControlType=l,this._eToken=u,this._correlationId=p,this._appInstanceId=f,this._touchEnabled=d,this._commerceAllowed=h,this._appMinorVersion=g,this._requirementMatrix=y,this._hostCustomMessage=m,this._hostFullVersion=_,this._isDialog=j.OUtil.isDialog(),this._clientWindowHeight=b,this._clientWindowWidth=v,this._addinName=O,this._appDomains=P,this._dialogRequirementMatrix=C,this._featureGates=R,this._officeThemeFunc=S,this._initialDisplayMode=I,this._isFromWacAutomation=A,this._wopiHostOriginForSingleSignOn=T,this._hostSettingsFunc=N,this._isWeb=D,this._nestedAppAuthBridgeType=x,this._partitionKey=E,this._topFrameOrigin=k}j.OfficeAppContext=e}(OSF=OSF||{}),function(l){(l._OfficeAppFactory||(l._OfficeAppFactory={})).retrieveHostInfo=function(){var e={isO15:!0,isRichClient:!0,hostType:"",hostPlatform:"",hostSpecificFileVersion:"",hostLocale:"",osfControlAppCorrelationId:"",isDialog:!1,disableLogging:!1,flags:0},t="_host_Info",n=null;try{if(window.external=window.external||{},"undefined"!=typeof agaveHost&&agaveHost.GetHostInfo&&(window.external.GetHostInfo=function(){return agaveHost.GetHostInfo()}),window.external.GetHostInfo){var r=window.external.GetHostInfo();if("isDialog"==r)e.isO15=!0,e.isDialog=!0;else{var i=r.split(t+"=");n=1<i.length?i[1]:r}}}catch(e){l.Utility.log(JSON.stringify(e))}if(!n)try{var o=window.name;if(o){var a=JSON.parse(o);n=a?a.hostInfo:null}}catch(e){l.Utility.log(JSON.stringify(e))}n=n||l.Utility.getQueryStringValue(t);var s=l.OUtil.getSessionStorage();if(!n&&s.getItem("hostInfoValue")&&(n=s.getItem("hostInfoValue")),n){n=decodeURIComponent(n),e.isO15=!1;var c=n.split("$");void 0===c[2]&&(c=n.split("|")),e.hostType=void 0===c[0]?"":c[0].toLowerCase(),e.hostPlatform=void 0===c[1]?"":c[1].toLowerCase(),e.hostSpecificFileVersion=void 0===c[2]?"":c[2].toLowerCase(),e.hostLocale=void 0===c[3]?"":c[3].toLowerCase(),e.osfControlAppCorrelationId=void 0===c[4]?"":c[4],"telemetry"==e.osfControlAppCorrelationId&&(e.osfControlAppCorrelationId=""),e.isDialog=void 0!==c[5]&&"isDialog"==c[5],e.disableLogging=void 0!==c[6]&&"disableLogging"==c[6],e.flags="string"==typeof c[7]&&0<c[7].length?parseInt(c[7]):0,s.setItem("hostInfoValue",n)}else e.isO15=!0,e.hostLocale=l.Utility.getQueryStringValue("locale");return e}}(OSF=OSF||{}),function(f){var e;!function(e){var t,n,r,o,a,i,s,c,l;"undefined"!=typeof window&&(window.location&&(t=window.location.hash,n=window.location.search),r=window.name);var u={0:"Unknown",1:"Hidden",2:"Taskpane",3:"Dialog"};function p(e,t){f.AppCommandManager.initialize();var n=e.get_appName(),r=null;0!=(o.flags&f.HostInfoFlags.SharedApp)&&(r={visibilityMode:u[e.get_initialDisplayMode()]});var i={host:f.HostName.Host.getInstance().getHost(n),platform:f.HostName.Host.getInstance().getPlatform(n),addin:r};0==(o.flags&f.HostInfoFlags.CustomFunctionsInitAfterCFRuntimeReady)||0==(o.flags&f.HostInfoFlags.CustomFunction)||e.get_isDialog()||"function"==typeof Office.acquireOnReadyLock&&Office.OnReadyLockId,o.hostPlatform!=f.HostInfoPlatform.web||Microsoft.Office.WebExtension.Interactive||(Microsoft.Office.WebExtension.Interactive=function(e){null!=a.clientEndPoint&&a.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[a.id,f.AgaveHostAction.Interactive,{isInteractive:e,timestamp:Date.now()}])}),Office.fireOnReady(i),o.hostPlatform==f.HostInfoPlatform.web&&null!=a.clientEndPoint&&a.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[a.id,f.AgaveHostAction.OfficeJsReady,Date.now()]),t(e)}e.bootstrap=function(t,n){if(a={id:null,webAppUrl:null,conversationID:null,clientEndPoint:null,wnd:window.parent,focused:!1,serviceEndPoint:null},o=e.retrieveHostInfo(),function(){0;try{if(o.disableLogging)return 0;window.external=window.external||{},void 0===window.external.GetLoggingAllowed||window.external.GetLoggingAllowed()}catch(e){}}(),function(){if(o.hostPlatform===f.HostInfoPlatform.web)i=new f.WebInitializationHelper(o,a,null,null);else if(o.hostPlatform===f.HostInfoPlatform.win32)i=new f.RichClientInitializationHelper(o,a,null,null);else if(o.hostPlatform===f.HostInfoPlatform.ios||o.hostPlatform===f.HostInfoPlatform.mac){if(!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.Agave))throw f.Utility.createNotImplementedException();i=new f.WebkitInitializationHelper(o,a,null,null)}else o.hostPlatform===f.HostInfoPlatform.android||o.hostPlatform===f.HostInfoPlatform.winrt?i=new f.WebViewInitializationHelper(o,a,null,null):console.warn("Office.js is loaded inside in unknown host or platform "+o.hostPlatform)}(),i){o.hostPlatform===f.HostInfoPlatform.web&&i.saveAndSetDialogInfo(f.Utility.getQueryStringValue("_host_Info")),i.setAgaveHostCommunication(),i.setupNestedAppAuthDependencies(),OSFPerformance.getAppContextStart=OSFPerformance.now();i.getAppContext(window,function(e){OSFPerformance.getAppContextEnd=OSFPerformance.now(),f.AppTelemetry.initialize(e),c=e,l=i.createClientHostController(),s=i.createAsyncMethodExecutor(),i.prepareApiSurface(e),f.BootStrapExtension.onGetAppContext?f.BootStrapExtension.onGetAppContext(e,a.wnd).then(function(){p(e,t)}):p(e,t)},function(e){n(e)})}else n(new Error("Office.js cannot be initialized."))},e.getWindowName=function(){return r},e.getWindowLocationHash=function(){return t},e.getWindowLocationSearch=function(){return n},e.getAsyncMethodExecutor=function(){return s},e.getOfficeAppContext=function(){return c},e.getHostInfo=function(){return o},e.getCachedSessionSettingsKey=function(){return(null!=a.conversationID?a.conversationID:c.get_appInstanceId())+"CachedSessionSettings"},e.getWebAppState=function(){return a},e.getId=function(){return a.id},e.getInitializationHelper=function(){return i},e.getClientHostController=function(){return l}}(e=f._OfficeAppFactory||(f._OfficeAppFactory={})),f.getClientEndPoint=function(){return e.getWebAppState().clientEndPoint}}(OSF=OSF||{}),function(e){var t,n,r,i,o,a,s,c,l,u,p,f,d,h;(t=e.AsyncResultStatus||(e.AsyncResultStatus={})).Succeeded="succeeded",t.Failed="failed",(n=e.DocumentMode||(e.DocumentMode={})).ReadOnly="readOnly",n.ReadWrite="readWrite",(r=e.HostType||(e.HostType={})).Word="Word",r.Excel="Excel",r.PowerPoint="PowerPoint",r.Outlook="Outlook",r.OneNote="OneNote",r.Project="Project",r.Access="Access",r.Visio="Visio",(i=e.InitializationReason||(e.InitializationReason={})).Inserted="inserted",i.DocumentOpened="documentOpened",(o=e.PlatformType||(e.PlatformType={})).PC="PC",o.OfficeOnline="OfficeOnline",o.Mac="Mac",o.iOS="iOS",o.Android="Android",o.Universal="Universal",(a=e.GoToType||(e.GoToType={})).Binding="binding",a.NamedItem="namedItem",a.Slide="slide",a.Index="index",(s=e.SelectionMode||(e.SelectionMode={})).Default="default",s.Selected="selected",s.None="none",(c=e.ValueFormat||(e.ValueFormat={})).Unformatted="unformatted",c.Formatted="formatted",(l=e.FileType||(e.FileType={})).Text="text",l.Compressed="compressed",l.Pdf="pdf",e.CoercionType={Html:"html",Matrix:"matrix",Ooxml:"ooxml",OoxmlPackage:"ooxmlPackage",PdfFile:"pdfFile",SlideRange:"slideRange",Table:"table",Text:"text"},(u=e.BindingType||(e.BindingType={})).Table="table",u.Text="text",u.Matrix="matrix",(p=e.FilterType||(e.FilterType={})).OnlyVisible="onlyVisible",p.All="all",(f=e.Table||(e.Table={}))[f.All=0]="All",f[f.Data=1]="Data",f[f.Headers=2]="Headers",(d=e.ActiveView||(e.ActiveView={})).Read="read",d.Edit="edit",(h=e.UndoStackChangedReason||(e.UndoStackChangedReason={}))[h.None=0]="None",h[h.EditOccurred=1]="EditOccurred",h[h.NewUndoEntry=2]="NewUndoEntry",h[h.UndoPerformed=4]="UndoPerformed",h[h.RedoPerformed=8]="RedoPerformed",h[h.UndoStackCleared=16]="UndoStackCleared"}(Office=Office||{});var OSFPerfUtil,OSFWebkit,SDX,OTel,Microsoft,__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};(OfficeExt||(OfficeExt={})).appSpecificCheckOrigin=function(e,t,n,r){return!1},function(R){var a=(e.prototype.getMethod=function(){return this._method},e.prototype.getInvokeType=function(){return this._invokeType},e.prototype.getBlockingFlag=function(){return this._blockingOthers},e);function e(e,t,n){this._method=e,this._invokeType=t,this._blockingOthers=n}R.XdmMethodObject=a;var s=(t.prototype.getRegisterMethodObject=function(){return this._registerMethodObject},t.prototype.getUnregisterMethodObject=function(){return this._unregisterMethodObject},t);function t(e,t){this._registerMethodObject=e,this._unregisterMethodObject=t}R.XdmEventMethodObject=s;var n=(r.prototype.registerMethod=function(e,t,n,r){if(0!==n&&1!==n)throw R.Utility.createArgumentException("invokeType");var i=new a(t,n,r);this._methodObjectList[e]=i},r.prototype.unregisterMethod=function(e){delete this._methodObjectList[e]},r.prototype.registerEvent=function(e,t,n){var r=new s(new a(t,4,!1),new a(n,5,!1));this._methodObjectList[e]=r},r.prototype.registerEventEx=function(e,t,n,r,i){var o=new s(new a(t,n,!1),new a(r,i,!1));this._methodObjectList[e]=o},r.prototype.unregisterEvent=function(e){this.unregisterMethod(e)},r.prototype.registerConversation=function(e,t,n){if(R.Utility.xdmDebugLog("registerConversation: cId="+e+" Url="+t),n){if(!Array.isArray(n))throw R.Utility.createArgumentException("appDomains");this._appDomains[e]=n}this._conversations[e]={url:t}},r.prototype.unregisterConversation=function(e){delete this._conversations[e]},r.prototype.setPolicyManager=function(e){if(!e.checkPermission)throw R.Utility.createArgumentException("policyManager");this._policyManager=e},r.prototype.getPolicyManager=function(){return this._policyManager},r.prototype.dispose=function(){this._methodObjectList=null,this._eventHandlerProxyList=null,this._Id=null,this._conversations=null,this._policyManager=null,this._appDomains=null,this._onHandleRequestError=null},r);function r(e){this._methodObjectList={},this._eventHandlerProxyList={},this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null,this._methodObjectList={},this._eventHandlerProxyList={},this._Id=e,this._conversations={},this._policyManager=null,this._appDomains={},this._onHandleRequestError=null}R.XdmServiceEndPoint=n;var l,i,o,c,S,I,A,T,u,p,f,d=(Object.defineProperty(h.prototype,"targetUrl",{get:function(){return this._targetUrl},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"hostTrustCheckStatus",{get:function(){return this._hostTrustCheckStatus},set:function(e){this._hostTrustCheckStatus=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"fHostTrusted",{get:function(){return this._fHostTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"checkStatusLogged",{get:function(){return this._checkStatusLogged},set:function(e){this._checkStatusLogged=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"checkReceiverOriginAndRun",{get:function(){return this._checkReceiverOriginAndRun},set:function(e){this._checkReceiverOriginAndRun=e},enumerable:!0,configurable:!0}),h.prototype.invoke=function(o,a,s){function e(){var t=c._callingIndex++,e=new Date,n={callback:a,createdOn:e.getTime()};s&&"object"==typeof s&&"number"==typeof s.__timeout__&&(n.timeout=s.__timeout__,delete s.__timeout__),c._callbackList[t]=n;try{if(3!==c._hostTrustCheckStatus&&"ContextActivationManager_getAppContextAsync"!==o)throw"Access Denied";var r=new U(o,0,c._conversationId,t,s),i=q.envelope(r);c._targetWindow.postMessage(i,c._targetUrl),l._startMethodTimeoutTimer()}catch(e){try{null!==a&&a(-1,e)}finally{delete c._callbackList[t]}}}var c=this;this._checkReceiverOriginAndRun?this._checkReceiverOriginAndRun(e):(this._hostTrustCheckStatus=3,e())},h.prototype.registerForEvent=function(e,t,n,r){var i=this._callingIndex++,o=new Date;this._callbackList[i]={callback:n,createdOn:o.getTime()};try{var a=new U(e,1,this._conversationId,i,r),s=q.envelope(a);this._targetWindow.postMessage(s,this._targetUrl),l._startMethodTimeoutTimer(),this._eventHandlerList[e]=t}catch(e){try{null!==n&&n(-1,e)}finally{delete this._callbackList[i]}}},h.prototype.unregisterForEvent=function(e,t,n){var r=this._callingIndex++,i=new Date;this._callbackList[r]={callback:t,createdOn:i.getTime()};try{var o=new U(e,2,this._conversationId,r,n),a=q.envelope(o);this._targetWindow.postMessage(a,this._targetUrl),l._startMethodTimeoutTimer()}catch(e){try{null!==t&&t(-1,e)}finally{delete this._callbackList[r]}}finally{delete this._eventHandlerList[e]}},h);function h(e,t,n){this._callbackList={},this._eventHandlerList={},this._hostTrustCheckStatus=0,this._checkStatusLogged=!1,this._fHostTrusted=!1,this._conversationId=e,this._targetWindow=t,this._targetUrl=n,this._callingIndex=0,this._callbackList={},this._eventHandlerList={},this._checkReceiverOriginAndRun=null}function N(e){for(var t in u)if(u[t]._conversations[e])return u[t];throw R.Utility.createArgumentException("conversationId")}function D(e){var t=p[e];return t||R.Utility.xdmDebugLog("Unknown conversation Id."),t}function x(e,t){var n=e._methodObjectList[t._actionName];if(!n)throw R.Utility.xdmDebugLog("The specified method is not registered on service endpoint:"+t._actionName),R.Utility.createArgumentException("messageObject");return 0===t._actionType?n:1===t._actionType?n.getRegisterMethodObject():n.getUnregisterMethodObject()}function E(e){c.push(e)}function k(){null!==I?T||(0<c.length?j(c.shift()):(clearInterval(I),I=null)):R.Utility.xdmDebugLog("channel is not ready.")}function j(e){T=e.getInvokeBlockingFlag(),e.invoke(),S=(new Date).getTime()}function w(){T=!1}function g(e){if(window.addEventListener)window.addEventListener("message",e,!1);else{if(!(-1<navigator.userAgent.indexOf("MSIE")&&window.attachEvent))throw R.Utility.xdmDebugLog("Browser doesn't support the required API."),R.Utility.createArgumentException("Browser");window.attachEvent("onmessage",e)}}function F(e,t){return e&&t&&"null"!==e&&"null"!==t&&e.length&&t.length&&m(R.OUtil.parseUrl(e,!0),R.OUtil.parseUrl(t,!0))}function L(e,t){var n=!1;if(!(t&&"null"!==t&&t.length&&e&&e instanceof Array&&e.length))return n;for(var r=0;r<e.length&&!n;r++)if(-1!==e[r].indexOf("://")){var i=R.OUtil.parseUrl(t,!0);n=m(R.OUtil.parseUrl(e[r],!0),i)}return n}function v(e){if(!e||"null"===e)return!1;var t=new Array("^outlook\\.office\\.com$","^outlook-sdf\\.office\\.com$","^outlook\\.live\\.com$","^outlook-sdf\\.live\\.com$","^consumer\\.live-int\\.com$","^outlook-tdf\\.live\\.com$","^sdfpilot\\.live\\.com$","^outlook\\.office365\\.us$","^outlook\\.office365\\.com$","^exchangelabs\\.live-int\\.com$","^.*\\.dod\\.online\\.office365\\.us$","^.*\\.gov\\.online\\.office365\\.us$","^.*\\.officeapps\\.live\\.com$","^.*\\.officeapps-df\\.live\\.com$","^"+document.domain.replace(new RegExp("\\.","g"),"\\.")+"$");return!0===R.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments&&t.push("^partner\\.outlook\\.cn$","^.*\\.partner\\.officewebapps\\.cn$"),new RegExp(t.join("|")).test(e)}function y(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return o=o||new R.SovereignHelper,[4,(t=o).isConfigAvailable()];case 1:return e.sent()?[4,t.isSovereignHostTrusted(n)]:[2,!1];case 2:return[2,e.sent()]}})})}function M(e,t){if(!e||!t||"null"===e||"null"===t)return!1;var n=R.OUtil.parseUrl(e,!0),r=R.OUtil.parseUrl(t,!0);if(null==n||null==r)return!1;var i=n.protocol===r.protocol,o=n.port===r.port,a=r.hostname,s=n.hostname,c=a===s,l=!1;return!c&&a.length>s.length+1&&(l=a.slice(-(s.length+1))==="."+s),o&&i&&(c||l)}function m(e,t){return e.hostname==t.hostname&&e.protocol==t.protocol&&e.port==t.port}function _(C){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s,c,l,u,p,f,d,h,g,y,m,_,b,v,O,P;return __generator(this,function(e){switch(e.label){case 0:if(""==C.data)return[3,10];n=C.data;try{t=q.unenvelope(n)}catch(e){return[2]}if(R.Utility.xdmDebugLog(n),0!==t._messageType)return[3,9];r=null==C.origin||"null"===C.origin?t._origin:C.origin,e.label=1;case 1:if(e.trys.push([1,2,,8]),i=N(t._conversationId),R.Utility.xdmDebugLog("_receiveAsync: request, origin="+r+" sourceURL:"+i._conversations[t._conversationId]),o=i._conversations[t._conversationId],R.Utility.xdmDebugLog("_receiveAsync: request, origin="+r+" sourceURL:"+o.url),!L(a=[o.url].concat(i._appDomains[t._conversationId]),C.origin)&&!OfficeExt.appSpecificCheckOrigin(a,C,t._origin,L)&&!M(o.url,C.origin))throw"Failed origin check";if((s=i.getPolicyManager())&&!s.checkPermission(t._conversationId,t._actionName,t._data))throw"Access Denied";return c=x(i,t),l=new Y(C.source,r,t._actionName,t._conversationId,t._correlationId,w),u=new $(c,t._data,l,i._eventHandlerProxyList,t._conversationId,t._actionName),p=!0,null==I&&((null==S||(new Date).getTime()-S>A)&&!T?(j(u),p=!1):I=setInterval(k,A)),p&&E(u),[3,8];case 2:f=e.sent(),i&&i._onHandleRequestError&&i._onHandleRequestError(t,f),d=-2,"Access Denied"==f&&(d=-5),h=new V(t._actionName,t._conversationId,t._correlationId,d,0,f),g=q.envelope(h),y=!1;try{y=!(!C.source||!C.source.postMessage)}catch(e){}return(m=!1,window.location.href&&C.origin&&"null"!==C.origin&&M(window.location.href,C.origin))?(m=!0,[3,7]):[3,3];case 3:if(!C.origin||"null"===C.origin)return[3,7];_=R.OUtil.parseUrl(C.origin,!0).hostname,e.label=4;case 4:return e.trys.push([4,6,,7]),[4,B(_,null)];case 5:return m=e.sent(),[3,7];case 6:return b=e.sent(),R.Utility.xdmDebugLog("isHostNameValidWacDomainAsync failed with exception: "+b),m=!1,[3,7];case 7:return y&&m&&C.source.postMessage(g,r),[3,8];case 8:return[3,10];case 9:if(1!==t._messageType)return[2];if(!(v=D(t._conversationId)))return[2];if(R.Utility.xdmDebugLog("_receiveAsync: response, origin="+C.origin+" targetURL:"+v._targetUrl),!F(v._targetUrl,C.origin))throw"Failed orgin check";if(3==v._hostTrustCheckStatus&&(v._fHostTrusted=!0),0===t._responseType){if(O=v._callbackList[t._correlationId])try{O.callback&&O.callback(t._errorCode,t._data)}finally{delete v._callbackList[t._correlationId]}}else null!=(P=v._eventHandlerList[t._actionName])&&P(t._data);e.label=10;case 10:return[2]}})})}function b(t){if(""!=t.data){var n,e=t.data;try{n=q.unenvelope(e)}catch(e){return}if(R.Utility.xdmDebugLog(e),0===n._messageType){var r=null==t.origin||"null"===t.origin?n._origin:t.origin;try{var i=N(n._conversationId);R.Utility.xdmDebugLog("_receive: request, origin="+r+" sourceURL:"+i._conversations[n._conversationId]);var o=i._conversations[n._conversationId];R.Utility.xdmDebugLog("_receive: request, origin="+r+" sourceURL:"+o.url);var a=[o.url].concat(i._appDomains[n._conversationId]);if(!L(a,t.origin))if(!OfficeExt.appSpecificCheckOrigin(a,t,n._origin,L))if(!M(o.url,t.origin))throw"Failed origin check";var s=i.getPolicyManager();if(s&&!s.checkPermission(n._conversationId,n._actionName,n._data))throw"Access Denied";var c=x(i,n),l=new Y(t.source,r,n._actionName,n._conversationId,n._correlationId,w),u=new $(c,n._data,l,i._eventHandlerProxyList,n._conversationId,n._actionName),p=!0;null==I&&((null==S||(new Date).getTime()-S>A)&&!T?(j(u),p=!1):I=setInterval(k,A)),p&&E(u)}catch(e){i&&i._onHandleRequestError&&i._onHandleRequestError(n,e);var f=-2;"Access Denied"==e&&(f=-5);var d=new V(n._actionName,n._conversationId,n._correlationId,f,0,e),h=q.envelope(d),g=!1;try{g=!(!t.source||!t.source.postMessage)}catch(e){}var y=!1;if(window.location.href&&t.origin&&"null"!==t.origin&&M(window.location.href,t.origin))y=!0;else if(t.origin&&"null"!==t.origin)y=v(R.OUtil.parseUrl(t.origin,!0).hostname);g&&y&&t.source.postMessage(h,r)}}else{if(1!==n._messageType)return;var m=D(n._conversationId);if(!m)return;if(R.Utility.xdmDebugLog("_receive: response, origin="+t.origin+" targetURL:"+m._targetUrl),!F(m._targetUrl,t.origin))throw"Failed orgin check";if(3==m._hostTrustCheckStatus&&(m._fHostTrusted=!0),0===n._responseType){var _=m._callbackList[n._correlationId];if(_)try{_.callback&&_.callback(n._errorCode,n._data)}finally{delete m._callbackList[n._correlationId]}}else{var b=m._eventHandlerList[n._actionName];null!=b&&b(n._data)}}}}function O(){f||(R.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")?g(_):g(b),f=!0)}function B(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return(t=!1,1===R.OUtil.getLibraryReleaseVehicle())?[3,3]:((n=R.SovereignHelper.isSovereignVersion())&&!0!==R.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(t=v(r),i&&(t=t||i(r))),t||!n?[3,2]:[4,y(r)]);case 1:t=e.sent(),e.label=2;case 2:return[3,5];case 3:return[4,y(r)];case 4:(t=e.sent())||!R.LoadScriptHelper.isSdx()||R.SovereignHelper.isSovereignVersion()||(t=v(r)),e.label=5;case 5:return[2,t]}})})}R.XdmClientEndPoint=d,i=l=R.XdmCommunicationManager||(R.XdmCommunicationManager={}),c=[],I=S=null,T=!(A=10),u={},f=!(p={}),i.connect=function(e,t,n){var r=p[e];return r||(O(),r=new d(e,t,n),p[e]=r),r},i.getClientEndPoint=function(e){return p[e]},i.createServiceEndPoint=function(e){O();var t=new n(e);return u[e]=t},i.getServiceEndPoint=function(e){return u[e]},i.deleteClientEndPoint=function(e){delete p[e]},i.deleteServiceEndPoint=function(e){delete u[e]},i.checkUrlWithAppDomains=function(e,t){return L(e,t)},i.isTargetSubdomainOfSourceLocation=function(e,t){return M(e,t)},i._setMethodTimeout=function(e){0},i._startMethodTimeoutTimer=function(){},i.isHostNameValidWacDomain=function(e){return v(e)},i.isHostNameValidWacDomainAsync=B;var P=(C.prototype.getActionName=function(){return this._actionName},C.prototype.getConversationId=function(){return this._conversationId},C.prototype.getCorrelationId=function(){return this._correlationId},C.prototype.getOrigin=function(){return this._origin},C.prototype.getData=function(){return this._data},C.prototype.getMessageType=function(){return this._messageType},C);function C(e,t,n,r,i){this._messageType=e,this._actionName=t,this._conversationId=n,this._correlationId=r,this._origin=window.location.origin,this._data=void 0===i?null:i}var H,U=(__extends(W,H=P),W.prototype.getActionType=function(){return this._actionType},W);function W(e,t,n,r,i){var o=H.call(this,0,e,n,r,i)||this;return o._actionType=t,o}var G,V=(__extends(z,G=P),z.prototype.getErrorCode=function(){return this._errorCode},z.prototype.getResponseType=function(){return this._responseType},z);function z(e,t,n,r,i,o){var a=G.call(this,1,e,t,n,o)||this;return a._errorCode=r,a._responseType=i,a}var q=(K.envelope=function(e){return JSON.stringify(e)},K.unenvelope=function(e){return JSON.parse(e)},K);function K(){}var J=(X.prototype.getRequesterWindow=function(){return this._requesterWindow},X.prototype.getRequesterUrl=function(){return this._requesterUrl},X.prototype.getActionName=function(){return this._actionName},X.prototype.getConversationId=function(){return this._conversationId},X.prototype.getCorrelationId=function(){return this._correlationId},X.prototype.getSend=function(){return this._send},X.prototype.setResultCode=function(e){this._invokeResultCode=e},X);function X(e,t,n,r,i,o){var a=this;this._invokeResultCode=0,this._requesterWindow=e,this._requesterUrl=t,this._actionName=n,this._conversationId=r,this._correlationId=i,this._invokeResultCode=0,this._responseType=o,this._send=function(e){try{var t=new V(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),n=q.envelope(t);a._requesterWindow.postMessage(n,a._requesterUrl),R.Utility.xdmDebugLog("_send: requestUrl="+a._requesterUrl+" _actionName:"+a._actionName)}catch(e){R.Utility.xdmDebugLog("ResponseSender._send error:"+e.message)}}}var Q,Y=(__extends(Z,Q=J),Z);function Z(e,t,n,r,i,o){var a=Q.call(this,e,t,n,r,i,0)||this;return a._postCallbackHandler=o,a._send=function(e,t){null!=t&&(a._invokeResultCode=t);try{var n=new V(a._actionName,a._conversationId,a._correlationId,a._invokeResultCode,a._responseType,e),r=q.envelope(n);a._requesterWindow.postMessage(r,a._requesterUrl),a._postCallbackHandler()}catch(e){R.Utility.xdmDebugLog("InvokeCompleteCallback._send error:"+e.message)}},a}var $=(ee.prototype.invoke=function(){try{var e;switch(this._methodObject.getInvokeType()){case 0:this._methodObject.getMethod()(this._param,this._invokeCompleteCallback.getSend());break;case 1:e=this._methodObject.getMethod()(this._param),this._invokeCompleteCallback.getSend()(e);break;case 4:var t=this._createEventHandlerProxyObject(this._invokeCompleteCallback);e=this._methodObject.getMethod()(t.getSend(),this._param),this._eventHandlerProxyList[this._conversationId+this._eventName]=t.getSend(),this._invokeCompleteCallback.getSend()(e);break;case 5:var n=this._eventHandlerProxyList[this._conversationId+this._eventName];e=this._methodObject.getMethod()(n,this._param),delete this._eventHandlerProxyList[this._conversationId+this._eventName],this._invokeCompleteCallback.getSend()(e);break;case 2:var r=this._createEventHandlerProxyObject(this._invokeCompleteCallback);this._methodObject.getMethod()(r.getSend(),this._invokeCompleteCallback.getSend(),this._param),this._eventHandlerProxyList[this._callerId+this._eventName]=r.getSend();break;case 3:var i=this._eventHandlerProxyList[this._callerId+this._eventName];this._methodObject.getMethod()(i,this._invokeCompleteCallback.getSend(),this._param),delete this._eventHandlerProxyList[this._callerId+this._eventName]}}catch(e){this._invokeCompleteCallback.setResultCode(-3),this._invokeCompleteCallback.getSend()(e)}},ee.prototype.getInvokeBlockingFlag=function(){return this._methodObject.getBlockingFlag()},ee.prototype._createEventHandlerProxyObject=function(e){return new J(e.getRequesterWindow(),e.getRequesterUrl(),e.getActionName(),e.getConversationId(),e.getCorrelationId(),1)},ee);function ee(e,t,n,r,i,o){this._callerId="",this._methodObject=e,this._param=t,this._invokeCompleteCallback=n,this._eventHandlerProxyList=r,this._conversationId=i,this._eventName=o}}(OSF=OSF||{}),function(){function t(e,t){return t+="_Resource",void 0!==oteljs?[oteljs.makeDoubleDataField(t+"_responseEnd",e.responseEnd),oteljs.makeDoubleDataField(t+"_responseStart",e.responseStart),oteljs.makeDoubleDataField(t+"_startTime",e.startTime),oteljs.makeDoubleDataField(t+"_transferSize",e.transferSize)]:[]}(OSFPerfUtil||(OSFPerfUtil={})).sendPerformanceTelemetry=function(){if(OSF.AppTelemetry.enableTelemetry&&"undefined"!=typeof performance&&performance.getEntriesByType){var n,r,i=OSF.LoadScriptHelper.getHostBundleJsName().toLowerCase();performance.getEntriesByType("resource").forEach(function(e){var t=e.name.toLowerCase();OSF.Utility.stringEndsWith(t,i)?n=e:(OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeDebugJS)||OSF.Utility.stringEndsWith(t,OSF.ConstantNames.OfficeJS))&&(r=e)}),OTel.OTelLogger.onTelemetryLoaded(function(){var e=[];n&&(e=e.concat(t(n,"HostJs"))),r&&(e=e.concat(t(r,"OfficeJs"))),e=e.concat([oteljs.makeDoubleDataField("officeExecuteStartDate",OSFPerformance.officeExecuteStartDate),oteljs.makeDoubleDataField("officeExecuteStart",OSFPerformance.officeExecuteStart),oteljs.makeDoubleDataField("officeExecuteEnd",OSFPerformance.officeExecuteEnd),oteljs.makeDoubleDataField("hostInitializationStart",OSFPerformance.hostInitializationStart),oteljs.makeDoubleDataField("hostInitializationEnd",OSFPerformance.hostInitializationEnd),oteljs.makeDoubleDataField("totalJSHeapSize",OSFPerformance.totalJSHeapSize),oteljs.makeDoubleDataField("usedJSHeapSize",OSFPerformance.usedJSHeapSize),oteljs.makeDoubleDataField("jsHeapSizeLimit",OSFPerformance.jsHeapSizeLimit),oteljs.makeDoubleDataField("getAppContextStart",OSFPerformance.getAppContextStart),oteljs.makeDoubleDataField("getAppContextEnd",OSFPerformance.getAppContextEnd),oteljs.makeDoubleDataField("getAppContextXdmStart",OSFPerformance.getAppContextXdmStart),oteljs.makeDoubleDataField("getAppContextXdmEnd",OSFPerformance.getAppContextXdmEnd),oteljs.makeDoubleDataField("createOMEnd",OSFPerformance.createOMEnd),oteljs.makeDoubleDataField("officeOnReady",OSFPerformance.officeOnReady),oteljs.makeBooleanDataField("isSharedRuntime",0!=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)),oteljs.makeBooleanDataField("isExperimentJsEnabled",0!=(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.ExperimentJsEnabled))]),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.JSPerformanceTelemetryV06",dataFields:e,eventFlags:{dataCategories:2,diagnosticLevel:110}})})}}}(),function(e){var t,n,r,i,o,l,u;function a(n,e,t,r){if(n&&e){var i=window.document,o=l[n];if(o)o.loaded?e(!0):o.pendingCallbacks.push(e);else{var a=i.createElement("script");a.type="text/javascript",o={loaded:!1,pendingCallbacks:[e],timer:null},l[n]=o;function s(){null!=o.timer&&(clearTimeout(o.timer),delete o.timer),o.loaded=!0;for(var e=o.pendingCallbacks.length,t=0;t<e;t++){o.pendingCallbacks.shift()(!0)}}function c(){delete l[n],null!=o.timer&&(clearTimeout(o.timer),delete o.timer);for(var e=o.pendingCallbacks.length,t=0;t<e;t++){o.pendingCallbacks.shift()(!1)}}a.readyState?a.onreadystatechange=function(){"loaded"!=a.readyState&&"complete"!=a.readyState||(a.onreadystatechange=null,s())}:a.onload=s,a.onerror=c,r=r||u,o.timer=setTimeout(c,r),a.setAttribute("crossOrigin","anonymous"),a.src=t?t.createScriptURL(n):n,i.getElementsByTagName("head")[0].appendChild(a)}}}t=e.OUtil||(e.OUtil={}),l={},u=3e4,i=t.Guid||(t.Guid={}),o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i.generateNewGuid=function(){for(var e="",t=(new Date).getTime(),n=0;n<32&&0<t;n++)8!=n&&12!=n&&16!=n&&20!=n||(e+="-"),e+=o[t%16],t=Math.floor(t/16);for(;n<32;n++)8!=n&&12!=n&&16!=n&&20!=n||(e+="-"),e+=o[Math.floor(16*Math.random())];return e},t.loadScriptPromise=function(n,r,i){return new Promise(function(t,e){a(n,function(e){t(e)},r,i)})},t.loadScript=a,t.getSessionStorage=function(){if(!n){try{var t=window.sessionStorage}catch(e){t=null}n=new e.SafeStorage(t)}return n},t.getLocalStorage=function(){if(!r){try{var t=window.localStorage}catch(e){t=null}r=new e.SafeStorage(t)}return r},t.waitForFunction=function(e,t,n,r){var i,o=n,a=function(){o--,e()?t(!0):0<o?(i=window.setTimeout(a,r),o--):(window.clearTimeout(i),t(!1))};a()},t.isSecureDefaultsEnabled=function(){return"undefined"!=typeof isOsfSecurityDefaultsEnabled&&!0===isOsfSecurityDefaultsEnabled}}(OSF=OSF||{}),function(_){_.Flights=[];!function(p){var a="&_flights=",s="&_disabledChangeGates=",c="_flights=",l="_disabledChangeGates=",f="&";function i(e,t){return e.substr(0,t.length)===t}function u(e,t,n,r){return i(e,t+"//"+n+":"+r)||i(e,n+":"+r)}p.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},p.isFunction=function(e){return"[object Function]"===Object.prototype.toString.apply(e)},p.isDate=function(e){return"[object Date]"===Object.prototype.toString.apply(e)},p.addEventListener=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else{if(!e.attachEvent)throw new Error("Cannot attach event");e.attachEvent("on"+t,n)}},p.removeEventListener=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else{if(!e.detachEvent)throw new Error("Cannot remove event");e.detachEvent("on"+t,n)}};function d(e){var t=[];try{t=JSON.parse(e)}catch(e){}return Array.isArray(t)||(t=[]),t}function h(e,t,n){try{var r=JSON.parse(t),i=null!=r?r[n]:null,o=p.getSessionStorage();if(!e&&o&&null!=r){var a=r.baseFrameName+n;i?o.setItem(a,i):i=o.getItem(a)}return i}catch(e){return null}}function g(e,t,n,r,i){var o=i.split(e),a=1<o.length?o[o.length-1]:null;n&&null!=a&&(0<=a.indexOf(f)&&(a=a.split(f)[0]),a=decodeURIComponent(a));var s=p.getSessionStorage();if(!r&&s){var c=window.name.indexOf(t);if(-1<c){var l=window.name.indexOf(";",c);-1==l&&(l=window.name.length);var u=window.name.substring(c,l);a?s.setItem(u,a):a=s.getItem(u)}}return a}function n(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)===t){if(n+1>=e.length)return this.removeChar(e,n);if("/"===t){if("?"===e.charAt(n+1)||"#"===e.charAt(n+1))return this.removeChar(e,n)}else if("?"===t&&"#"===e.charAt(n+1))return this.removeChar(e,n)}return e}function y(e){if(e=n(e,"/"),e=n(e,"?"),"https://"==(e=n(e,"#")).substr(0,8))-1!=(t=e.indexOf(":443"))&&(t!=e.length-4&&"/"!=e.charAt(t+4)&&"?"!=e.charAt(t+4)&&"#"!=e.charAt(t+4)||(e=e.substring(0,t)+e.substring(t+4)));else if("http://"==e.substr(0,7)){var t;-1!=(t=e.indexOf(":80"))&&(t!=e.length-3&&"/"!=e.charAt(t+3)&&"?"!=e.charAt(t+3)&&"#"!=e.charAt(t+3)||(e=e.substring(0,t)+e.substring(t+3)))}return e}function m(e){var t,n,r=[],i=[],o=e.length;for(t=0;t<o;t++)(n=e[t]).tabIndex?0<n.tabIndex?i.push(n):0===n.tabIndex&&r.push(n):r.push(n);return i=i.sort(function(e,t){var n=e.tabIndex-t.tabIndex;return 0===n&&(n=i.indexOf(e)-i.indexOf(t)),n}),[].concat(i,r)}p.serializeSettings=function(e){var t={};for(var n in e){var r=e[n];try{r=JSON.stringify(r,function(e,t){return _.OUtil.isDate(this[e])?"Date("+this[e].getTime()+")":t}),t[n]=r}catch(e){}}return t},p.deserializeSettings=function(e){var t={};for(var n in e=e||{}){var r=e[n];try{r=JSON.parse(r,function(e,t){var n;return"string"==typeof t&&t&&6<t.length&&"Date("===t.slice(0,5)&&")"===t.slice(-1)&&(n=new Date(parseInt(t.slice(5,-1))))?n:t}),t[n]=r}catch(e){}}return t},p.convertIntToCssHexColor=function(e){return"#"+(Number(e)+16777216).toString(16).slice(-6)},p.parseAppContextFromWindowName=function(e,t){return p.parseInfoFromWindowName(e,t,"appContext")},p.parseHostInfoFromWindowName=function(e,t){return _.OUtil.parseInfoFromWindowName(e,t,"hostInfo")},p.parseXdmInfo=function(e){var t=p.parseXdmInfoWithGivenFragment(e,window.location.hash);return t=t||p.parseXdmInfoFromWindowName(e,window.name)},p.parseXdmInfoFromWindowName=function(e,t){return _.OUtil.parseInfoFromWindowName(e,t,"xdmInfo")},p.parseXdmInfoWithGivenFragment=function(e,t){return _.OUtil.parseInfoWithGivenFragment("&_xdm_Info=","_xdm_",!1,e,t)},p.parseFlights=function(e){var t,n,r,i,o=(t=e,n=window.location.hash,d(g(a,c,!0,t,n)));return 0==o.length&&(r=e,i=window.name,o=d(h(r,i,"flights"))),o},p.parseDisabledChangeGates=function(e){var t,n,r,i,o=(t=e,n=window.location.hash,d(g(s,l,!0,t,n)));return 0==o.length&&(r=e,i=window.name,o=d(h(r,i,"disabledChangeGates"))),o},p.checkFlight=function(e){return _.Flights&&0<=_.Flights.indexOf(e)},p.parseInfoFromWindowName=h,p.parseInfoWithGivenFragment=g,p.getConversationId=function(){var e=window.location.search,t=null;if(e){var n=e.indexOf("&");(t=0<n?e.substring(1,n):e.substr(1))&&"="===t.charAt(t.length-1)&&(t=(t=t.substring(0,t.length-1))&&decodeURIComponent(t))}return t},p.getInfoItems=function(e){var t=e.split("$");return void 0===t[1]&&(t=e.split("|")),void 0===t[1]&&(t=e.split("%7C")),t},p.getXdmFieldValue=function(e,t){var n="",r=_.OUtil.parseXdmInfo(t);if(r){var i=_.OUtil.getInfoItems(r);if(null!=i&&3<=i.length)switch(e){case"ConversationUrl":n=i[2];break;case"AppId":n=i[1]}}return n},p.parseUrl=function(e,t){if(void 0===t&&(t=!1),void 0!==e&&e){var n,r,i="NotHttps",o="undefined"!=typeof window&&void 0!==window.navigator&&0<window.navigator.userAgent.indexOf("Trident"),a=("undefined"!=typeof window&&void 0!==window.navigator&&window.navigator.userAgent.indexOf("Edge"),{protocol:void 0,hostname:void 0,host:void 0,port:void 0,pathname:void 0,search:void 0,hash:void 0,isPortPartOfUrl:void 0});try{if(o){var s=document.createElement("a");if(s.href=e,!(s&&s.protocol&&s.host&&s.hostname&&s.href&&y(s.href).toLowerCase()===y(e).toLowerCase()))throw"InvalidUrl";if(_.OUtil.checkFlight(2)&&t&&"https:"!=s.protocol)throw new Error(i);var c=(r=s,(n=e)&&r?"https:"==r.protocol&&u(n,"https:",r.hostname,"443")?":443":"http:"==r.protocol&&u(n,"http:",r.hostname,"80")?":80":"":"");a.protocol=s.protocol,a.hostname=s.hostname,a.port=c?"":s.port,a.host=c?s.hostname:s.host,a.pathname=(o?"/":"")+s.pathname,a.search=s.search,a.hash=s.hash,a.isPortPartOfUrl=u(e,s.protocol,s.hostname,s.port)}else{var l=new URL(e);if(l&&l.protocol&&l.host&&l.hostname){if(_.OUtil.checkFlight(2)&&t&&"https:"!=l.protocol)throw new Error(i);a.protocol=l.protocol,a.hostname=l.hostname,a.port=l.port,a.host=l.host,a.pathname=l.pathname,a.search=l.search,a.hash=l.hash,a.isPortPartOfUrl=l.host.lastIndexOf(":"+l.port)==l.host.length-l.port.length-1}}}catch(e){if(e.message===i)throw e}return a}},p.focusToFirstTabbable=function(e,t){function n(e){c=!0}var r,i,o,a,s,c=!1;if(e=m(e),r=t?e.length-1:0,0===e.length)return null;for(;!c&&0<=r&&r<e.length;)i=e[r],window.focus(),i.addEventListener("focus",n),i.focus(),i.removeEventListener("focus",n),o=e.length,s=t,r=(a=r)<0||o<a||0===a&&s||a===o-1&&!s?-1:s?a-1:a+1,c||i!==document.activeElement||(c=!0);return c?i:null},p.focusToNextTabbable=function(e,t,n){function r(e){c=!0}function i(e,t,n){return!(t<0||e<t)&&(0!==t||!n)&&(t!==e-1||n)?n?t-1:t+1:-1}var o,a,s,c=!1;if(o=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}(e=m(e),t),(a=i(e.length,o,n))<0)return null;for(;!c&&0<=a&&a<e.length;)(s=e[a]).addEventListener("focus",r),s.focus(),s.removeEventListener("focus",r),a=i(e.length,a,n),c||s!==document.activeElement||(c=!0);return c?s:null},p.defineMethodOnNamespace=function(e,t,n){e[t]=n},p.isDialog=function(){return _._OfficeAppFactory.getHostInfo().isDialog},p.isPopupWindow=function(){return _.OUtil.isDialog()&&_._OfficeAppFactory.getHostInfo().hostPlatform==_.HostInfoPlatform.web&&null!=window.opener},p.getHostPlatform=function(){return _._OfficeAppFactory.getHostInfo().hostPlatform}}(_.OUtil||(_.OUtil={}))}(OSF=OSF||{}),function(e){var t;(t=e.ParameterNames||(e.ParameterNames={})).Callback="callback",t.AsyncContext="asyncContext",t.Data="data",t.MessageToParent="messageToParent",t.MessageContent="messageContent",t.MessageOrigin="messageOrigin",t.TargetOrigin="targetOrigin",t.AppCommandInvocationCompletedData="appCommandInvocationCompletedData"}(OSF=OSF||{}),function(h){!function(e){function t(){}e.RequirementVersion=t;var c=(n.prototype.isSetSupported=function(e,t){if(null==e)return!1;null==t&&(t=0);var n=this._setMap._sets;if(n.hasOwnProperty(e.toLowerCase())){var r=n[e.toLowerCase()];try{var i=this._getVersion(r+"");t+="";var o=this._getVersion(t);if(0<i.major&&i.major>o.major)return!0;if(0<i.major&&0<=i.minor&&i.major==o.major&&i.minor>=o.minor)return!0}catch(e){return!1}}return!1},n.prototype._getVersion=function(e){var t=(e+="").split("."),n=0,r=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(r=Number(t[1])),isNaN(n)||isNaN(r))throw"version format incorrect";return{minor:r,major:n}},n);function n(e){this._setMap=e}e.RequirementMatrix=c;var l=(r.prototype._addSetMap=function(e){for(var t in e)this._sets[t]=e[t]},r);function r(e){this._sets=e}e.DefaultSetRequirement=l;var i,u=(__extends(o,i=l),o);function o(){return i.call(this,{dialogapi:1.1})||this}e.DefaultRequiredDialogSetRequirement=u;var a,p=(__extends(s,a=l),s);function s(){return a.call(this,{dialogorigin:1.1})||this}e.DefaultOptionalDialogSetRequirement=p;var f=(d.getDefaultRequirementMatrix=function(e){var t=void 0,n=e.get_requirementMatrix();if(null!=n&&0<n.length){var r=JSON.parse(e.get_requirementMatrix().toLowerCase());if(h._OfficeAppFactory.getHostInfo().hostPlatform==h.HostInfoPlatform.web)try{var i="dialogorigin";r.hasOwnProperty(i)||(r[i]=1.1)}catch(e){}t=new c(new l(r))}else t=new c(new l({}));return t},d.getDefaultDialogRequirementMatrix=function(e){var t=void 0,n=e.get_dialogRequirementMatrix();if(null!=n&&0<n.length){var r=JSON.parse(e.get_requirementMatrix().toLowerCase());t=new l(r)}else{t=new u;var i=e.get_requirementMatrix();if(null!=i&&0<i.length&&"undefined"!=typeof JSON){for(var o in r=JSON.parse(i.toLowerCase()),t._sets)r.hasOwnProperty(o)&&(t._sets[o]=r[o]);var a=new p;for(var o in a._sets)r.hasOwnProperty(o)&&(t._sets[o]=r[o])}}if(h._OfficeAppFactory.getHostInfo().hostPlatform==h.HostInfoPlatform.web)try{var s="dialogorigin";!t._sets.hasOwnProperty(s)&&window.opener&&(t._sets[s]=1.1)}catch(e){}return new c(t)},d);function d(){}e.RequirementsMatrixFactory=f}(h.Requirement||(h.Requirement={}))}(OSF=OSF||{}),function(r){var e,t,n;e=r.DDA||(r.DDA={}),(t=e.RichApi||(e.RichApi={})).executeRichApiRequestAsync=function(e,t){var n={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){return{data:e}},toWebHost:function(){return{ArrayData:e}},fromWebHost:function(e){return{data:e.Data}}};r._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(93,n,t)},Object.defineProperty(t,"richApiMessageManager",{get:function(){return n=n||new r.RichApiMessageManager}})}(OSF=OSF||{}),function(i){var e=(n.transferEventArgument=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];r.toArray&&(r=r.toArray()),t.push({messageCategory:r[0],messageType:r[1],targetId:r[2],message:r[3],id:r[4],isRemoteOverride:r[5]})}return{type:i.EventType.RichApiMessage,entries:t}},n.prototype.addHandlerAsync=function(e,t,n){i.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},n.prototype.removeHandlerAsync=function(e,t,n){i.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},n.prototype.register=function(e){var r=this;return this._registerPromise||(this._registerPromise=new Office.Promise(function(t,n){r.addHandlerAsync(i.EventType.RichApiMessage,function(t){r._registerHandlers.forEach(function(e){e&&e(t)})},function(e){"failed"==e.status?n(e.error):t()})})),this._registerPromise.then(function(){r._registerHandlers.push(e)})},n);function n(){this._registerHandlers=[],this._eventDispatch=new i.EventDispatch([{type:i.EventType.RichApiMessage,id:i.EventDispId.dispidRichApiMessageEvent,getTargetId:function(){return""},fromSafeArrayHost:function(e){return n.transferEventArgument(e)},fromWebHost:function(e){var t=e.ArrayData;return n.transferEventArgument(t)}}])}i.RichApiMessageManager=e}(OSF=OSF||{}),function(n){var e=(t.prototype.execute=function(e,t,n){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.Execute(e,t,n,OsfOMToken):window.external.Execute(e,t,n)},t.prototype.registerEvent=function(e,t,n,r,i){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.RegisterEvent(e,n,r,i,OsfOMToken):window.external.RegisterEvent(e,n,r,i)},t.prototype.unregisterEvent=function(e,t,n,r){"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.UnregisterEvent(e,n,r,OsfOMToken):window.external.UnregisterEvent(e,n,r)},t.prototype.closeSdxDialog=function(e){throw n.Utility.createNotImplementedException()},t.prototype.resizeSdxDialog=function(e,t){throw n.Utility.createNotImplementedException()},t);function t(){}n.RichClientHostController=e}(OSF=OSF||{}),function(w){var t,e=(t=w.InitializationHelper,__extends(n,t),n.prototype.getOsfControlContext=function(){if(!this._osfControlContext){var t="Warning: Office.js is loaded outside of Office client";try{if(!window.external)return console.error("There is no window.external."),w.Utility.trace(t),null;this._osfControlContext=window.external.GetContext()}catch(e){return console.error("Error when call window.external.GetContext() :"+JSON.stringify(e)),w.Utility.trace(t),null}}return this._osfControlContext},n.prototype.getAppContext=function(e,t,n){var r=this,i=this.getOsfControlContext();if(i){var o,a,s,c,l,u,p,f,d,h,g,y,m,_,b,v,O,P,C,R,S,I,A,T,N,D,x=0,E=!1;if((k=w.Utility.externalNativeFunctionExists)(typeof i.GetContextDataInJson)&&"undefined"!=typeof OsfOMToken&&OsfOMToken?((N=i.GetContextDataInJson(OsfOMToken))&&(D=JSON.parse(N)),D?(o=D.appType,a=D.solutionRef,s=D.versionMajor,c=D.versionMinor,l=D.uiLocale,u=D.dataLocale,p=D.docUrl,f=D.clientMode,d=D.activationMode,g=D.controlType,y=D.eToken,m=D.correlationId,_=D.appInstanceId,b=D.touchEnabled,v=i.commerceAllowed,O=D.requirementMatrix,C=D.hostFullVersion,R=D.requirementMatrix,(j=D.featureGates)&&(S=JSON.parse(j)),x=D.initialDisplayMode,I=function(){var e={};if(D.settings)try{var t=JSON.parse(D.settings);if(t)for(var n=[t.names,t.values],r=n[0],i=n[1],o=0;o<r.length;o++)e[r[o]]=i[o]}catch(e){w.Utility.trace("Exception while parsing settings. Details: "+e)}return e},A=function(){var e=D.themeInfo;return r.getOfficeThemeFromInfoString(e)}):E=!0):E=!0,E){o=i.GetAppType(),a=i.GetSolutionRef(),s=i.GetAppVersionMajor(),c=i.GetAppVersionMinor(),l=i.GetAppUILocale(),u=i.GetAppDataLocale(),p=i.GetDocUrl(),f=i.GetAppCapabilities(),d=i.GetActivationMode(),g=i.GetControlIntegrationLevel();try{y=i.GetSolutionToken()}catch(e){}var k;if((k=w.Utility.externalNativeFunctionExists)(typeof i.GetCorrelationId)&&(m=i.GetCorrelationId()),k(typeof i.GetInstanceId)&&(_=i.GetInstanceId()),k(typeof i.GetTouchEnabled)&&(b=i.GetTouchEnabled()),k(typeof i.GetCommerceAllowed)&&(v=i.GetCommerceAllowed()),k(typeof i.GetSupportedMatrix)&&(O=i.GetSupportedMatrix()),k(typeof i.GetHostCustomMessage)&&(P=i.GetHostCustomMessage()),k(typeof i.GetHostFullVersion)&&(C=i.GetHostFullVersion()),k(typeof i.GetDialogRequirementMatrix)&&(R=i.GetDialogRequirementMatrix()),k(typeof i.GetFeaturesForSolution))try{var j;(j=i.GetFeaturesForSolution())&&(S=JSON.parse(j))}catch(e){w.Utility.trace("Exception while creating the SDX FeatureGates object. Details: "+e)}k(typeof i.GetInitialDisplayMode)&&(x=i.GetInitialDisplayMode()),I=function(){return r.getSerializedSettings()},A=function(){return r.getOfficeTheme()},T=function(){return r.getSerializedHostSettings()}}h=2===d?Office.InitializationReason.DocumentOpened:Office.InitializationReason.Inserted,y=y?y.toString():"",t(new w.OfficeAppContext(a,o,s,l,u,p,f,I,h,g,y,m,_,b,v,c,O,P,C,void 0,void 0,void 0,void 0,R,S,A,x,void 0,void 0,T,!1,void 0,void 0,void 0))}else n(new Error("The Office.js is loaded outside of Office client"))},n.prototype.createClientHostController=function(){if(!this._clientHostController){if(this._hostInfo.hostPlatform!==w.HostInfoPlatform.win32)throw w.Utility.createNotImplementedException();this._clientHostController=new w.Win32RichClientHostController}return this._clientHostController},n.prototype.createAsyncMethodExecutor=function(){return new w.SafeArrayAsyncMethodExecutor(this._clientHostController)},n.prototype.createClientSettingsManager=function(){return new w.RichClientSettingsManager(this.getOsfControlContext())},n.prototype.getSerializedSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).Read(t,n):e.GetSettings().Read(t,n);for(var r={},i=0;i<t.length;i++)r[t[i]]=n[i];return r},n.prototype.getOfficeTheme=function(){var e=this.getOsfControlContext();if(e){if(!(this.officeTheme&&this.officeThemeTimeStamp&&(new Date).getTime()-this.officeThemeTimeStamp<n.officeThemeCacheValidPeriod)){var t=e.GetOfficeThemeInfo();this.officeTheme=this.getOfficeThemeFromInfoString(t),this.officeThemeTimeStamp=(new Date).getTime()}return this.officeTheme}},n.prototype.getOfficeThemeFromInfoString=function(e){var t=null;if(e)try{t=JSON.parse(e)}catch(e){w.AppTelemetry&&w.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var n={};if(t){var r={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var i in t){var o=!1,a=i;r[i]&&(a=r[i].name,o=r[i].convertToHex),n[a]=o?w.OUtil.convertIntToCssHexColor(t[i]):t[i]}}return n},n.prototype.getSerializedHostSettings=function(){var e=this.getOsfControlContext(),t=[],n=[];"function"==typeof e.GetSettings().ReadHost&&("undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken).ReadHost(t,n):e.GetSettings().ReadHost(t,n));for(var r={},i=0;i<t.length;i++)r[t[i]]=n[i];return r},n.officeThemeCacheValidPeriod=5e3,n);function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.officeThemeTimeStamp=null,e.officeTheme=null,e}w.RichClientInitializationHelper=e}(OSF=OSF||{}),function(e){var t=(n.prototype.read=function(i){var o,e=this._osfClientContext;function t(){var e=[],t=[];o.Read(e,t);for(var n={},r=0;r<e.length;r++)n[e[r]]=t[r];i&&i(0,n)}(o="undefined"!=typeof OsfOMToken&&OsfOMToken?e.GetSettings(OsfOMToken):e.GetSettings()).RefreshAsync?o.RefreshAsync(function(){t()}):t()},n.prototype.write=function(e,t){var n=[],r=[];for(var i in e)n.push(i),r.push(e[i]);var o,a=this._osfClientContext;void 0!==(o="undefined"!=typeof OsfOMToken&&OsfOMToken?a.GetSettings(OsfOMToken):a.GetSettings()).WriteAsync?o.WriteAsync(n,r,t):(o.Write(n,r),t(0))},n);function n(e){this._osfClientContext=e}e.RichClientSettingsManager=t}(OSF=OSF||{}),function(l){var n,e=(n=l.AsyncMethodExecutor,__extends(t,n),t.prototype.executeAsync=function(r,i,o,a){var s=this;try{var c=new Array;this._clientHostController.execute(r,i.toSafeArrayHost(),function(e,t){var n=l.Utility.fromSafeArray(e);return s._asyncMethodExecutorHelper.handleSafeArrayHostResponse(n,t,c,o,i,r,a)})}catch(e){this.onException(e,r,o)}},t.prototype.registerEventAsync=function(r,e,t,i,o,a,s){var c=this;try{this._clientHostController.registerEvent(r,e,t,function(e,t){var n=l.Utility.fromSafeArray(t),r=o.fromSafeArrayHost(n);i(r)},function(e){var t,n=l.Utility.fromSafeArray(e);return t="number"==typeof n?n:n[0],c.invokeCallback(r,a,t,null,s),!0})}catch(e){this.onException(e,r,a)}},t.prototype.unregisterEventAsync=function(i,e,t,o,a){var s=this;try{this._clientHostController.unregisterEvent(i,e,t,function(e,t){var n,r=l.Utility.fromSafeArray(e);return n="number"==typeof r?r:r[0],s.invokeCallback(i,o,n,null,a),!0})}catch(e){this.onException(e,i,o)}},t.prototype.onException=function(e,t,n){var r,i=e.number;if(i)switch(i){case-2146828218:r=7e3;break;case-2147467259:r=t==l.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:r=5010;break;case-2147208704:r=5100;break;case-2146827850:default:r=5001}n&&this.invokeCallback(t,n,r||5001,null)},t);function t(e){var t=n.call(this)||this;return t._clientHostController=e,t._asyncMethodExecutorHelper=l.BootStrapExtension.createAsyncMethodExecutorHelper(t),t}l.SafeArrayAsyncMethodExecutor=e}(OSF=OSF||{}),function(e){var t=(n.prototype.getItem=function(e){try{return this._internalStorage&&this._internalStorage.getItem(e)}catch(e){return null}},n.prototype.setItem=function(e,t){try{this._internalStorage&&this._internalStorage.setItem(e,t)}catch(e){}},n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(e){}},n.prototype.removeItem=function(e){try{this._internalStorage&&this._internalStorage.removeItem(e)}catch(e){}},n.prototype.getKeysWithPrefix=function(e){var t=[];try{for(var n=this._internalStorage&&this._internalStorage.length||0,r=0;r<n;r++){var i=this._internalStorage.key(r);0===i.indexOf(e)&&t.push(i)}}catch(e){}return t},n);function n(e){this._internalStorage=e}e.SafeStorage=t}(OSF=OSF||{}),function(o){var e=(t.prototype.cacheSessionSettings=function(e){var t=OSF.OUtil.getSessionStorage();if(t){var n=OSF.OUtil.serializeSettings(e),r=JSON.stringify(n);t.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),r)}},t.prototype.get=function(e){var t=this._settings[e];return void 0===t?null:t},t.prototype.set=function(e,t){this._settings[e]=t,this.cacheSessionSettings(this._settings)},t.prototype.remove=function(e){delete this._settings[e],this.cacheSessionSettings(this._settings)},t.prototype.saveAsync=function(n){var e=this._clientSettingsManager,t=OSF.OUtil.serializeSettings(this._settings);e.write(t,function(e){var t=OSF.Utility.asyncResultFromErrorCode(e);n&&n(t)})},t.prototype.refreshAsync=function(r){var i=this;this._clientSettingsManager.read(function(e,t){var n=OSF.Utility.asyncResultFromErrorCode(e);n.status===o.AsyncResultStatus.Succeeded&&(i._settings=OSF.OUtil.deserializeSettings(t),n.value=i),r&&r(n)})},t.prototype.addHandlerAsync=function(e,t,n){OSF.EventHelper.addEventHandler(e,t,n,this._eventDispatch)},t.prototype.removeHandlerAsync=function(e,t,n){OSF.EventHelper.removeEventHandler(e,t,n,this._eventDispatch)},t.prototype.toJSON=function(){return this._settings},t);function t(e,t){var n=this;this._clientSettingsManager=t,e=e||{},this._settings=e,this._eventDispatch=new OSF.EventDispatch([{id:OSF.EventDispId.dispidSettingsChangedEvent,type:OSF.EventType.SettingsChanged,getTargetId:function(){return""},fromSafeArrayHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}},fromWebHost:function(e){return{type:OSF.EventType.SettingsChanged,settings:n}}}])}o.Settings=e}(Office=Office||{}),function(c){var e=(t.isSovereignVersion=function(){return 1!==c.OUtil.getLibraryReleaseVehicle()?"undefined"!=typeof isOsfSovereignVersion&&!0===isOsfSovereignVersion:c.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.isSovereign},t.prototype.getEnvironmentName=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())&&t.envName?t.envName:null]}})})},t.prototype.getEnvironmentType=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())&&t.envType?t.envType:null]}})})},t.prototype.getTrustedHostOrigins=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,null!=(t=e.sent())?t.trustedHostOrigins:null]}})})},t.prototype.isConfigAvailable=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.getConfig()];case 1:return[2,!!e.sent()]}})})},t.prototype.isSovereignHostTrusted=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return n?n===window.location.hostname?[2,!0]:[4,this.getTrustedHostOrigins()]:[2,!1];case 1:return(t=e.sent())&&0!=t.length?[2,new RegExp(t.join("|")).test(n)]:[2,!1]}})})},t.prototype.getConfigPath=function(){var e=c.LoadScriptHelper.getHostBundleJsBasePath(),t="undefined"!=typeof isOsfSecurityDefaultsEnabled&&!0===isOsfSecurityDefaultsEnabled;if(e){if(e=e.toLowerCase(),c.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")&&1===c.OUtil.getLibraryReleaseVehicle()){if(c.OUtil.getCustomOfficeInitializationSettings().officeCdnEndpoint.isOCDICompliant){var n=e.indexOf("beta/");return-1<n?e.substring(0,n)+"officeconfig.json":""}return-1<(r=e.indexOf("/lib/"))?e.substring(0,r+"/lib/".length)+"officeconfig.json":""}var r;if(t)try{return new URL(e).origin.toLowerCase()+"/officeconfig.json"}catch(e){}else if(-1<(r=e.indexOf("/lib/")))return e.toLowerCase().substring(0,r+"/lib/".length)+"officeconfig.json"}return""},t.prototype.getConfig=function(){return this._configPromise||(this._configPromise=this.tryLoadConfig()),this._configPromise},t.prototype.tryLoadConfig=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(!(t=this.getConfigPath()))return[3,2];if(n=c.OUtil.getLocalStorage(),r=t+"_cache",i=n.getItem(r),o=null,i){try{o=JSON.parse(i)}catch(e){}if(a=(new Date).getTime(),o&&o.config&&o.createTime<=a&&o.createTime+864e5>=a)return[2,o.config]}return[4,this.downloadConfig(t)];case 1:return(s=e.sent())?(o={createTime:(new Date).getTime(),config:s},n.setItem(r,JSON.stringify(o))):o&&(s=o.config),[2,s];case 2:return[2,null]}})})},t.prototype.downloadConfig=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),[4,fetch(t)];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()];case 3:return e.sent(),[3,4];case 4:return[2,null]}})})},t);function t(){}c.SovereignHelper=e}(OSF=OSF||{}),function(e){var t;function n(e){return void 0===e||null===e}(t=e.Utility||(e.Utility={})).createParameterException=function(e){return new Error("Parameter count mismatch: "+e)},t.createArgumentException=function(e){return new Error("Invalid argument "+e)},t.createNotImplementedException=function(){return new Error("Not implemented yet")},t.log=function(e){console.log(e)},t.trace=function(e){console.log(e)},t.debugLog=function(e){console.log(e)},t.getQueryStringValue=function(e){if("undefined"!=typeof window&&window.location&&window.location.search){var t=new RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);if(t)return t[1]}return null},t.isNullOrUndefined=n,t.isNullOrEmpty=function(e){return!!n(e)||0===e.length},t.isInUnittest=function(){return"boolean"==typeof g_osfUnittest&&g_osfUnittest}}(OSF=OSF||{}),function(e){var n;function t(e){return new Promise(e)}function o(e){var t=e,n=1;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray)if(e.dimensions&&(n=e.dimensions()),2===n)t=a(e);else{var r=e.toArray();t=new Array(r.length);for(var i=0;i<r.length;i++)t[i]=o(r[i])}return t}function a(e){var t;try{var n=e.ubound(1),r=e.ubound(2);if(e=e.toArray(),1==n&&1==r)t=[e];else{t=[];for(var i=0;i<n;i++){for(var o=[],a=0;a<r;a++){var s=e[i*r+a];"{66e7831f-81b2-42e2-823c-89e872d541b3}"!=s&&o.push(s)}0<o.length&&t.push(o)}}}catch(e){}return t}e.isOfficeReactNative=function(){try{return"undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka}catch(e){return!1}},(n=e.Utility||(e.Utility={})).xdmDebugLog=function(e){n._DebugXdm&&console.log(e)},n.enableDebugXdm=function(){n._DebugXdm=!0},n.createPromiseFromResult=function(e){return Promise.resolve(e)},n.createPromise=t,n.promisify=function(e,r){return t(function(t,n){e(function(e){(0===e?t:n)()}),setTimeout(function(){n()},r)})},n.compareVersions=function(e,t){var n,r=e.split("."),i=t.split(".");for(n in r){if(parseInt(r[n])<parseInt(i[n]))return!1;if(parseInt(r[n])>parseInt(i[n]))return!0}return!1},n.getErrorCodeFromAsyncResult=function(e){return e.status===Office.AsyncResultStatus.Succeeded?0:e.error&&e.error.code?e.error.code:5001},n.externalNativeFunctionExists=function(e){return"unknown"===e||"undefined"!==e},n.stringEndsWith=function(e,t){if(n.isNullOrUndefined(e))throw n.createArgumentException("value");if(n.isNullOrUndefined(t))throw n.createArgumentException("subString");return!(t.length>e.length)&&e.substr(e.length-t.length)===t},n.fromSafeArray=function(e){var t=e;if(("object"==typeof e||"unknown"==typeof e)&&null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var r=0;r<n.length;r++)t[r]=o(n[r])}return t},n.twoDVBArrayToJaggedArray=a,n.asyncResultFromErrorCode=function(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),0===e?{status:Office.AsyncResultStatus.Succeeded}:{status:Office.AsyncResultStatus.Failed,error:{code:e}}},n._DebugXdm=!1}(OSF=OSF||{}),function(n){var r,e=(r=n.AsyncMethodExecutor,__extends(t,r),t.prototype.executeAsync=function(n,r,i,o){var a=this;this._clientHostController.execute(n,r.toWebHost(),function(e,t){return i&&a._asyncMethodExecutorHelper.handleWebHostResponse(t,e,i,r,n,o),!0})},t.prototype.registerEventAsync=function(n,e,t,r,i,o,a){var s=this;this._clientHostController.registerEvent(n,e,t,function(e){var t=e,n=i.fromWebHost(t);r(n)},function(e,t){return o&&s.invokeCallback(n,o,e,null,a),!0})},t.prototype.unregisterEventAsync=function(n,e,t,r,i){var o=this;this._clientHostController.unregisterEvent(n,e,t,function(e,t){return r&&o.invokeCallback(n,r,e,null,i),!0})},t);function t(e){var t=r.call(this)||this;return t._clientHostController=e,t._asyncMethodExecutorHelper=n.BootStrapExtension.createAsyncMethodExecutorHelper(t),t}n.WebAsyncMethodExecutor=e}(OSF=OSF||{}),function(p){var e;((e=p.DDA||(p.DDA={})).WebAuth||(e.WebAuth={})).getAuthContextAsync=function(e){p._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(99,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.authContext}},e)},function(a){var s,e;(e=s=a.AuthFlow||(a.AuthFlow={})).AuthCode="authcode",e.Broker="broker",e.Implicit="implicit",a.loadAttempts=0;var o="webauth/",c="webauth.browserauth.debug.js",l="webauth.browserauth.js",t=!0,u=!1;a.load=function(i){return a.config&&a.config.authFlow===s.AuthCode?(a.loadAttempts++,a.config&&!0===a.config.useMsal5?(c="webauth.browserauth.msal5.debug.js",l="webauth.browserauth.msal5.js",u=!0):(a.config&&!1===a.config.useMsal3&&(t=!1),t&&(c="webauth.browserauth.msal3.debug.js",l="webauth.browserauth.msal3.js",u=!0)),new Promise(function(t,n){function e(o,a,s){return new Promise(function(r,i){o?p.OUtil.loadScript(o,function(e){if("boolean"!=typeof e||e)if(e instanceof Event&&e)i(new Event("loadScript: "+e.type+" '"+o+"'"));else if(s&&!a())var t=0,n=setInterval(function(){t+=500,!(a()||s<t)||(clearInterval(n),a())||i(new Event("Missing expected object after loaded."))},500);else r(null);else i(new Event("loadScript: failed to load '"+o+"'"))},p.LoadScriptHelper.getTrustedTypesPolicy(),s):r(null)})}var r=[e(a.config&&a.config.authVersion?p.LoadScriptHelper.getHostBundleJsBasePath()+o+a.config.authVersion+"/"+(a.config&&a.config.debugging?c:l):p.LoadScriptHelper.getHostBundleJsBasePath()+o+(a.config&&a.config.debugging?c:l),function(){return BrowserAuth},a.config.delayWebAuth)];u||r.push(e(a.config.msal,function(){return msal},a.config.delayMsal)),Promise.all(r).then(function(){if(a.config){var e=__assign({},a.config);i&&(e.appIds=i.appIds,e.redirectUri=i.redirectUri,e.prefetch=i.prefetch,e.clientCapabilities=i.clientCapabilities,e.usePairwiseBroker=i.usePairwiseBroker,e.trustedBrokerDomain=i.trustedBrokerDomain),BrowserAuth.Load(e,p._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId).then(function(e){t(e)},function(e){n(e)})}else n(new Event("config is empty."))},function(e){n(e)})})):new Promise(function(e,t){return t(new Event("'authcode' as authFlow is only supported"))})},a.getToken=function(e,t,n,r,i,o){return a.config&&a.config.authFlow===s.AuthCode?u?BrowserAuth.GetToken({resource:e,scopes:t,applicationId:n,correlationId:r,popup:!!i,claims:o}):BrowserAuth.GetToken(e,n,r,!!i,!!i,!1,o):Promise.reject(new Event("'authcode' as authFlow is only supported"))}}(p.WebAuth||(p.WebAuth={}))}(OSF=OSF||{}),function(s){var e=(t.prototype.execute=function(r,e,i){var o=this,t=this._webClientHostControllerHelper.getHostCallArgs(r,e),n=this._webClientHostControllerHelper.getTargetMethodName(r);this._webAppState.clientEndPoint.invoke(n,function(e,t){var n=0;if(0==e)o._delegateVersion=t.Version,n=o._webClientHostControllerHelper.parseErrorFromPayload(r,t);else switch(e){case-5:n=7e3;break;default:n=5001}i&&i(n,t)},t)},t.prototype.registerEvent=function(e,t,n,r,i){this._webAppState.clientEndPoint.registerForEvent(this.getXdmEventName(n,t),function(e){r&&r(e)},this._getOnAfterRegisterEvent(!0,e,i),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.unregisterEvent=function(e,t,n,r){this._webAppState.clientEndPoint.unregisterForEvent(this.getXdmEventName(n,t),this._getOnAfterRegisterEvent(!1,e,r),{controlId:this._webAppState.id,eventDispId:e,targetId:n,__timeout__:-1})},t.prototype.messageParent=function(e){throw s.Utility.createNotImplementedException()},t.prototype.openDialog=function(e,t,n,r,i){throw s.Utility.createNotImplementedException()},t.prototype.closeDialog=function(e,t,n,r){throw s.Utility.createNotImplementedException()},t.prototype.sendMessage=function(e){throw s.Utility.createNotImplementedException()},t.prototype.closeSdxDialog=function(e){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,s.AgaveHostAction.CloseSDXDialog,{InstanceId:this._webAppState.id,DialogCloseCallbackParam:e}])},t.prototype.resizeSdxDialog=function(e,t){this._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[this._webAppState.id,s.AgaveHostAction.ResizeSDXDialog,{InstanceId:this._webAppState.id,DialogWidth:e+"px",DialogHeight:t+"px"}])},t.prototype.getXdmEventName=function(e,t){return t==s.EventType.BindingSelectionChanged||t==s.EventType.BindingDataChanged||t==s.EventType.DataNodeDeleted||t==s.EventType.DataNodeInserted||t==s.EventType.DataNodeReplaced?e+"_"+t:t},t.prototype._getOnAfterRegisterEvent=function(r,i,o){var a=(new Date).getTime();return function(e,t){var n;if(0!=e)switch(e){case-5:n=7e3;break;default:n=5001}else n=t?t.Error?t.Error:0:5001;o&&o(n),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(r,i,Math.abs((new Date).getTime()-a),n)}},t);function t(e){this._delegateVersion=1,this._webAppState=e,this._webClientHostControllerHelper=s.BootStrapExtension.createWebClientHostControllerHelper(this._webAppState,this._delegateVersion)}s.WebClientHostController=e}(OSF=OSF||{}),function(e){var t=(n.prototype.getHostCallArgs=function(e,t){var n=t;return(n=n||{}).DdaMethod={ControlId:this.getControlId(),DispatchId:e,Version:this._delegateVersion},n.__timeout__=-1,n},n.prototype.getTargetMethodName=function(e){return"executeMethod"},n.prototype.parseErrorFromPayload=function(e,t){return t.Error},n.prototype.getControlId=function(){return this._webAppState.id},n);function n(e,t){this._webAppState=e,this._delegateVersion=t}e.WebClientHostControllerHelper=t}(OSF=OSF||{}),function(s){var e=(t.prototype.read=function(o){s._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(75,{toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{}},fromWebHost:function(e){return e.Properties.Settings}},function(e){if(e.status===Office.AsyncResultStatus.Succeeded){for(var t={},n=0;n<e.value.length;n++){var r=e.value[n];Array.isArray(r)?t[r[0]]=r[1]:t[r.Name]=r.Value}o(0,t)}else{var i=e.error.code;o(i,{})}})},t.prototype.write=function(e,n){var t=s._OfficeAppFactory.getAsyncMethodExecutor(),r=[];for(var i in e){var o=[];o.push(i),o.push(e[i]),r.push(o)}var a={toSafeArrayHost:function(){return null},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{DdaSettingsMethod:{OverwriteIfStale:!0,Properties:r}}},fromWebHost:function(e){return null}};t.executeAsync(76,a,function(e){if(e.status===Office.AsyncResultStatus.Succeeded)n(0);else{var t=e.error.code;n(t)}})},t);function t(){}s.WebClientSettingsManager=e}(OSF=OSF||{}),function(v){var o,e=(o=v.InitializationHelper,__extends(t,o),Object.defineProperty(t.prototype,"isHostOriginTrusted",{get:function(){return this._isHostOriginTrustedFunc},set:function(e){this._isHostOriginTrustedFunc=e},enumerable:!0,configurable:!0}),t.prototype.saveAndSetDialogInfo=function(e){var t,n=v.OUtil.getSessionStorage();if(n){if((e=e||v.OUtil.parseHostInfoFromWindowName(!0,v._OfficeAppFactory.getWindowName()))&&-1<e.indexOf("isDialog")){var r=(t=v.OUtil.parseXdmInfo(!0))?t.split("|")[1]:null;return null!=r&&n.setItem(r+"IsDialog","true"),void(this._hostInfo.isDialog=!0)}this._hostInfo.isDialog=null!=n.getItem(v.OUtil.getXdmFieldValue("AppId",!1)+"IsDialog")}},t.prototype.checkReceiverOriginAndRun=function(p){return __awaiter(this,void 0,void 0,function(){var a,t,s,c,l,n,r,i,o,u;return __generator(this,function(e){switch(e.label){case 0:return 3===(a=this)._webAppState.clientEndPoint.hostTrustCheckStatus?(p(),[2]):(t=v.OUtil.parseUrl(a._webAppState.clientEndPoint.targetUrl,!1),s="https:"==t.protocol,c=t.hostname,l="NotHttps",0!==a._webAppState.clientEndPoint.hostTrustCheckStatus?[3,6]:(s||(a._webAppState.clientEndPoint.hostTrustCheckStatus=2),2==a._webAppState.clientEndPoint.hostTrustCheckStatus?[3,6]:(n=!1,v.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")?[4,v.XdmCommunicationManager.isHostNameValidWacDomainAsync(c,a.isHostOriginTrusted)]:[3,2])));case 1:return n=e.sent(),[3,5];case 2:return(r=v.SovereignHelper.isSovereignVersion())&&!0!==v.OUtil.getCustomOfficeInitializationSettings().trustAllCloudEnvironments||(n=v.XdmCommunicationManager.isHostNameValidWacDomain(c),a.isHostOriginTrusted&&(n=n||a.isHostOriginTrusted(c))),n||!r?[3,5]:(a._sovereignHelper||(a._sovereignHelper=new v.SovereignHelper),[4,(i=a._sovereignHelper).isConfigAvailable()]);case 3:return e.sent()?[4,i.isSovereignHostTrusted(c)]:[2];case 4:n=e.sent(),e.label=5;case 5:n&&(a._webAppState.clientEndPoint.hostTrustCheckStatus=3),e.label=6;case 6:if(a._webAppState.clientEndPoint.checkStatusLogged||null==a._hostInfo||void 0===a._hostInfo||(v.AppTelemetry.onCheckWACHost(a._webAppState.clientEndPoint.hostTrustCheckStatus,a._webAppState.id,a._hostInfo.hostType,a._hostInfo.hostPlatform,a._webAppState.clientEndPoint.targetUrl),a._webAppState.clientEndPoint.checkStatusLogged=!0),3===a._webAppState.clientEndPoint.hostTrustCheckStatus||v.LoadScriptHelper.disableHostCheck())p();else{if(v.LoadScriptHelper.isSdx())throw new Error("Not supported host");o=function(){var t=v.LoadScriptHelper.getHostBundleJsBasePath().match(/^https?:\/\/[^:/?#]*(?::([0-9]+))?/);if(t&&t[0]){var n=v.LoadScriptHelper.getHostBundleJsBasePath()+"AgaveErrorUX/index.html#",r={error:"NotTrustedWAC",locale:v.getSupportedLocale(a._hostInfo.hostLocale,v.ConstantNames.DefaultLocale),hostname:c,noHttps:!s,validate:!1},i=document.createElement("iframe");i.style.visibility="hidden",i.style.height="0",i.style.width="0";var o=function(e){if(e.source==i.contentWindow&&e.origin==t[0])try{!0===JSON.parse(e.data).hostUserTrusted?(a._webAppState.clientEndPoint.hostTrustCheckStatus=3,v.OUtil.removeEventListener(window,"message",o),document.body.removeChild(i)):(r.validate=!1,window.location.replace(n+encodeURIComponent(JSON.stringify(r)))),p()}catch(e){v.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC})}};v.OUtil.addEventListener(window,"message",o),r.validate=!0,i.setAttribute("src",n+encodeURIComponent(JSON.stringify(r))),i.onload=function(){var e={hostname:c,noHttps:!s};i.contentWindow.postMessage(JSON.stringify(e),t[0])},document.body.appendChild(i)}else v.OUtil.ensureOfficeStringsJs().then(function(){document.body.textContent=Strings.OfficeOM.L_NotTrustedWAC});if(v.OUtil.checkFlight(2)&&!s)throw new Error(l)},document.body?o():(u=!1,document.addEventListener("DOMContentLoaded",function(){u||(u=!0,o())}))}return[2]}})})},t.prototype.setAgaveHostCommunication=function(){try{var i=this,e=v.OUtil.parseXdmInfoWithGivenFragment(!1,v._OfficeAppFactory.getWindowLocationHash());if(e=e||v.OUtil.parseXdmInfoFromWindowName(!1,v._OfficeAppFactory.getWindowName())){var t=v.OUtil.getInfoItems(e);null!=t&&3<=t.length&&(i._webAppState.conversationID=t[0],i._webAppState.id=t[1],i._webAppState.webAppUrl=0<=t[2].indexOf(":")?t[2]:decodeURIComponent(t[2]))}if(i._webAppState.wnd=null!=window.opener?window.opener:window.parent,this._hostInfo.isDialog&&null!=window.opener)return;i._webAppState.clientEndPoint=v.XdmCommunicationManager.connect(i._webAppState.conversationID,i._webAppState.wnd,i._webAppState.webAppUrl),i._webAppState.serviceEndPoint=v.XdmCommunicationManager.createServiceEndPoint(i._webAppState.id),i._webAppState.clientEndPoint.checkReceiverOriginAndRun=function(e){i.checkReceiverOriginAndRun(e)};var n=i._webAppState.conversationID+v.Constants.NotificationConversationIdSuffix;i._webAppState.serviceEndPoint.registerConversation(n,i._webAppState.webAppUrl),i._webAppState.serviceEndPoint.registerMethod("Office_notifyAgave",function(e){var t;switch(t="string"==typeof e?e:e[0]){case v.AgaveHostAction.Select:i._webAppState.focused=!0;break;case v.AgaveHostAction.UnSelect:i._webAppState.focused=!1;break;case v.AgaveHostAction.TabIn:case v.AgaveHostAction.CtrlF6In:window.focus();var n=document.querySelectorAll(i._tabbableElements);v.OUtil.focusToFirstTabbable(n,!1)||(window.blur(),i._webAppState.focused=!1,i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,v.AgaveHostAction.ExitNoFocusable]));break;case v.AgaveHostAction.TabInShift:window.focus(),n=document.querySelectorAll(i._tabbableElements),v.OUtil.focusToFirstTabbable(n,!0)||(window.blur(),i._webAppState.focused=!1,i._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[i._webAppState.id,v.AgaveHostAction.ExitNoFocusableShift]));break;case v.AgaveHostAction.SendMessage:if(Office.context.messaging.onMessage){var r=e[1];Office.context.messaging.onMessage(r)}break;case v.AgaveHostAction.TaskPaneHeaderButtonClicked:Office.context.ui.taskPaneAction.onHeaderButtonClick&&Office.context.ui.taskPaneAction.onHeaderButtonClick();break;default:v.Utility.trace("actionId "+t+" notifyAgave is wrong.")}},0,!1),i.addOrRemoveEventListenersForWindow(!0)}catch(e){throw v.AppTelemetry&&v.AppTelemetry.logAppException("Exception thrown in setAgaveHostCommunication. Exception:["+e+"]"),e}},t.prototype.getAppContext=function(e,y,m){function t(e,t){if(OSFPerformance.getAppContextXdmEnd=OSFPerformance.now(),t._appName===v.AppName.ExcelWebApp&&Array.isArray(t._settings))for(var n=0,r=t._settings;n<r.length;n++){var i=r[n],o=i[0],a=i[1];_._serializedSettings[o]=a}else _._serializedSettings=t._settings||{};if(t._appName===v.AppName.ExcelWebApp&&Array.isArray(t._hostSettings))for(var s=0,c=t._hostSettings;s<c.length;s++){var l=c[s];o=l[0],a=l[1],_._serializedHostSettings[o]=a}else _._serializedHostSettings=t._hostSettings||{};if(t._appAndHostSettingsEqual&&(_._serializedHostSettings=__assign({},_._serializedSettings)),!b._hostInfo.isDialog||null==window.opener){var u=window.location.origin;b._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[b._webAppState.id,v.AgaveHostAction.UpdateTargetUrl,u])}if(0===e&&null!=t._id&&null!=t._appName&&null!=t._appVersion&&null!=t._appUILocale&&null!=t._dataLocale&&null!=t._docUrl&&null!=t._clientMode&&null!=t._reason){var p=(b._appContext=t)._appInstanceId?t._appInstanceId:t._id,f=0;null!=t._appMinorVersion&&(f=t._appMinorVersion);var d=void 0;null!=t._requirementMatrix&&(d=t._requirementMatrix),t.eToken=t.eToken?t.eToken:"";var h=new v.OfficeAppContext(t._id,t._appName,t._appVersion,t._appUILocale,t._dataLocale,t._docUrl,t._clientMode,function(){return _._serializedSettings},t._reason,t._osfControlType,t._eToken,t._correlationId,p,!1,!0,f,d,t._hostCustomMessage,t._hostFullVersion,t._clientWindowHeight,t._clientWindowWidth,t._addinName,t._appDomains,t._dialogRequirementMatrix,t._featureGates,t._officeTheme,t._initialDisplayMode,t._isFromWacAutomation,t._wopiHostOriginForSingleSignOn,function(){return _._serializedHostSettings},!0,t._nestedAppAuthBridgeType,t._partitionKey,t._topFrameOrigin);h.set_taskpaneUrl(t._taskpaneUrl),y(h)}else{var g="Function ContextActivationManager_getAppContextAsync call failed. ErrorCode is "+e+", exception: "+t;v.AppTelemetry&&v.AppTelemetry.logAppException(g),m(g)}}var _=this,b=this;try{var n=!0;this._hostInfo.isDialog&&null!=window.opener&&(n=!1);var r=v.OUtil.parseAppContextFromWindowName(n,v._OfficeAppFactory.getWindowName());r?t(0,r):(OSFPerformance.getAppContextXdmStart=OSFPerformance.now(),this._webAppState.clientEndPoint.invoke("ContextActivationManager_getAppContextAsync",t,this._webAppState.id))}catch(e){v.AppTelemetry&&v.AppTelemetry.logAppException("Exception thrown when trying to invoke getAppContextAsync. Exception:["+e+"]"),m(e)}},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new v.WebClientHostController(this._webAppState)),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new v.WebAsyncMethodExecutor(this._clientHostController)},t.prototype.createClientSettingsManager=function(){return new v.WebClientSettingsManager},t.prototype.addOrRemoveEventListenersForWindow=function(e){function t(){o._webAppState.focused||(o._webAppState.focused=!0),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.Select])}function n(){v&&(o._webAppState.focused&&(o._webAppState.focused=!1),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.UnSelect]))}function r(e){if(e.preventDefault=e.preventDefault||function(){e.returnValue=!1},117==e.keyCode&&(e.ctrlKey||e.metaKey)){e.preventDefault();var t=v.AgaveHostAction.CtrlF6Exit;e.shiftKey&&(t=v.AgaveHostAction.CtrlF6ExitShift),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(o._tabbableElements);v.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(o._hostInfo.isDialog?v.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.TabExitShift]):o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var r={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};o._webAppState.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,v.AgaveHostAction.KeyboardShortcuts,r])}}function i(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var o=this;v.Utility._DebugXdm||(e?(v.OUtil.addEventListener(window,"focus",t),v.OUtil.addEventListener(window,"blur",n),v.OUtil.addEventListener(window,"keydown",r),v.OUtil.addEventListener(window,"keypress",i)):(v.OUtil.removeEventListener(window,"focus",t),v.OUtil.removeEventListener(window,"blur",n),v.OUtil.removeEventListener(window,"keydown",r),v.OUtil.removeEventListener(window,"keypress",i)))},t.prototype.getTabbableElements=function(){return this._tabbableElements},t.prototype.setupNestedAppAuthDependencies=function(){var e=this;window.__initializeNestedAppAuth=function(){return e._initializeNestedAppAuthPromise||(e._initializeNestedAppAuthPromise=__awaiter(e,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,Office.onReadyInternal()];case 1:return e.sent(),this._createNaaBridge?[4,this._createNaaBridge()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})),e._initializeNestedAppAuthPromise}},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i._initializeNestedAppAuthPromise=null,i._appContext={},i._tabbableElements="a[href]:not([tabindex='-1']),area[href]:not([tabindex='-1']),button:not([disabled]):not([tabindex='-1']),input:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),textarea:not([disabled]):not([tabindex='-1']),*[tabindex]:not([tabindex='-1']),*[contenteditable]:not([disabled]):not([tabindex='-1'])",i}v.WebInitializationHelper=e}(OSF=OSF||{}),function(a){var e=(t.prototype.read=function(n){this._initializationHelper.getAppContext(null,function(e){if(n){var t=e.get_settingsFunc()();n(0,t)}},function(e){n&&n(5001,{})})},t.prototype.write=function(e,t){var n={},r=[],i=[];for(var o in e)r.push(o),i.push(e[o]);n.keys=r,n.values=i,this._scriptMessager.invokeMethod(a.Webkit.MessageHandlerName,a.Webkit.MethodId.WriteSettings,n,function(e){t&&t(e[0])})},t);function t(e,t){this._initializationHelper=e,this._scriptMessager=t}a.WebkitClientSettingsManager=e}(OSF=OSF||{}),function(d){!function(e){var t,n;e.MessageHandlerName="Agave",e.PopupMessageHandlerName="WefPopupHandler",(t=e.AppContextProperties||(e.AppContextProperties={}))[t.Settings=0]="Settings",t[t.SolutionReferenceId=1]="SolutionReferenceId",t[t.AppType=2]="AppType",t[t.MajorVersion=3]="MajorVersion",t[t.MinorVersion=4]="MinorVersion",t[t.RevisionVersion=5]="RevisionVersion",t[t.APIVersionSequence=6]="APIVersionSequence",t[t.AppCapabilities=7]="AppCapabilities",t[t.APPUILocale=8]="APPUILocale",t[t.AppDataLocale=9]="AppDataLocale",t[t.BindingCount=10]="BindingCount",t[t.DocumentUrl=11]="DocumentUrl",t[t.ActivationMode=12]="ActivationMode",t[t.ControlIntegrationLevel=13]="ControlIntegrationLevel",t[t.SolutionToken=14]="SolutionToken",t[t.APISetVersion=15]="APISetVersion",t[t.CorrelationId=16]="CorrelationId",t[t.InstanceId=17]="InstanceId",t[t.TouchEnabled=18]="TouchEnabled",t[t.CommerceAllowed=19]="CommerceAllowed",t[t.RequirementMatrix=20]="RequirementMatrix",t[t.HostCustomMessage=21]="HostCustomMessage",t[t.HostFullVersion=22]="HostFullVersion",t[t.InitialDisplayMode=23]="InitialDisplayMode",t[t.FeatureGates=24]="FeatureGates",t[t.HostSettings=25]="HostSettings",t[t.OfficeThemeInfo=26]="OfficeThemeInfo",(n=e.MethodId||(e.MethodId={}))[n.Execute=1]="Execute",n[n.RegisterEvent=2]="RegisterEvent",n[n.UnregisterEvent=3]="UnregisterEvent",n[n.WriteSettings=4]="WriteSettings",n[n.GetContext=5]="GetContext",n[n.SendMessage=6]="SendMessage",n[n.MessageParent=7]="MessageParent",n[n.SendMessage2=8]="SendMessage2",n[n.MessageParent2=9]="MessageParent2",n[n.CloseSdxDialog=10]="CloseSdxDialog",n[n.ResizeSdxDialog=11]="ResizeSdxDialog";var r=(f.prototype.execute=function(e,t,i){var n={id:e,apiArgs:t};this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,d.Webkit.MethodId.Execute,n,function(e){if(i){var t=[];if(d.OUtil.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];d.OUtil.isArray(r)&&(r=new d.WebkitSafeArray(r)),t.unshift(r)}return i.apply(null,t)}})},f.prototype.registerEvent=function(e,t,n,r,i){this.hostScriptProxy.registerEvent(d.Webkit.MessageHandlerName,d.Webkit.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;d.OUtil.isArray(e)&&2<=e.length&&(t=e[0],n=e[1]),r&&r(n,new d.WebkitSafeArray(t))},function(e){if(i)return i(new d.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,r){this.hostScriptProxy.unregisterEvent(d.Webkit.MessageHandlerName,d.Webkit.MethodId.UnregisterEvent,e,n,function(e){return r(new d.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t,n;if(n=this.osfSupportsDialogOrigin&&e[d.ParameterNames.TargetOrigin]?(t=this.useFullDialogAPI?JSON.stringify(e):e[d.ParameterNames.MessageToParent],d.Webkit.MethodId.MessageParent2):(t=e[d.ParameterNames.MessageToParent],d.Webkit.MethodId.MessageParent),this.useFullDialogAPI)this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null);else{var r={dialogMessage:{messageType:0,messageContent:t}},i=n==d.Webkit.MethodId.MessageParent2?e[d.ParameterNames.TargetOrigin]:window.location.origin;window.opener.postMessage(JSON.stringify(r),i)}},f.prototype.openDialog=function(n,e,t,r,i){if(this.useFullDialogAPI)this.registerEvent(n,e,t,r,i);else if(!f.popup||f.popup.closed){f.OpenDialogCallback=void 0;var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u=s.join("#");f.popup=window.open(u,"",l),f.DialogEventListener=function(t){if(t.origin==window.location.origin)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent,t.origin])}catch(e){d.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},f.OpenDialogCallback=function(e){0==e&&(window.addEventListener("message",f.DialogEventListener),f.interval=window.setInterval(p,1e3),f.NotifyError=function(e){r(n,[e])}),i(e)}}else i(12003)}else i(12007);function p(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(f.interval),window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,f.popup=null,r(n,[12006]))}catch(e){d.Utility.trace("Error happened when popup window closed.")}}},f.prototype.closeDialog=function(e,t,n,r){this.useFullDialogAPI?this.unregisterEvent(e,t,n,r):f.popup?(f.interval&&window.clearInterval(f.interval),f.popup.close(),f.popup=null,window.removeEventListener("message",f.DialogEventListener),f.NotifyError=null,r(0)):r(5001)},f.prototype.sendMessage=function(e){var t,n;this.osfSupportsDialogOrigin&&e[d.ParameterNames.TargetOrigin]?(t=JSON.stringify(e),n=d.Webkit.MethodId.SendMessage2):(t=e[d.ParameterNames.MessageContent],n=d.Webkit.MethodId.SendMessage,!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString())),this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null)},f.prototype.closeSdxDialog=function(e){var t=[e],n=d.Webkit.MethodId.CloseSdxDialog;this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,n,t,null)},f.prototype.resizeSdxDialog=function(e,t){var n=[e,t],r=d.Webkit.MethodId.ResizeSdxDialog;this.hostScriptProxy.invokeMethod(d.Webkit.MessageHandlerName,r,n,null)},f);function f(e){this.hostScriptProxy=e,this.useFullDialogAPI=!!window._enableFullDialogAPI,this.osfSupportsDialogOrigin=!!window._osfEnableDialogOrigin}e.WebkitHostController=r}(d.Webkit||(d.Webkit={}))}(OSF=OSF||{}),function(L){var o,e=(o=L.InitializationHelper,__extends(t,o),t.prototype.initializeWebkitMessaging=function(){L.ScriptMessaging=OSFWebkit.ScriptMessaging},t.prototype.getAppContext=function(e,w,t){var n,F=this;n=this._hostInfo.isDialog&&window.webkit.messageHandlers[L.Webkit.PopupMessageHandlerName]?L.Webkit.PopupMessageHandlerName:L.Webkit.MessageHandlerName,L.ScriptMessaging.GetScriptMessenger().invokeMethod(n,L.Webkit.MethodId.GetContext,[],function(e){var t,n=L.Webkit.AppContextProperties,r=e[n.AppType],i=e[n.Settings];if(i&&2===i.length)for(var o=i[0],a=i[1],s=0;s<o.length;s++)F._serializedSettings[o[s]]=a[s];var c=e[n.HostSettings];if(c&&2===c.length)for(o=c[0],a=c[1],s=0;s<o.length;s++)F._serializedHostSettings[o[s]]=a[s];var l=e[n.SolutionReferenceId],u=e[n.MajorVersion],p=e[n.MinorVersion],f=e[n.AppCapabilities],d=e[n.APPUILocale],h=e[n.AppDataLocale],g=e[n.DocumentUrl],y=e[n.ActivationMode],m=e[n.ControlIntegrationLevel],_=e[n.SolutionToken];_=_?_.toString():"";var b,v=e[n.CorrelationId],O=e[n.InstanceId],P=e[n.TouchEnabled],C=e[n.CommerceAllowed],R=e[n.RequirementMatrix],S=e[n.HostCustomMessage],I=e[n.HostFullVersion],A=e[n.InitialDisplayMode],T=e[n.FeatureGates];if(T)try{b=JSON.parse(T)}catch(e){L.AppTelemetry&&L.AppTelemetry.logAppException("Exception trying to parse FeatureGates."+e)}var N=null;if(e[n.OfficeThemeInfo])try{N=JSON.parse(e[n.OfficeThemeInfo])}catch(e){L.AppTelemetry&&L.AppTelemetry.logAppException("Exception while parsing officeThemeInfo. Details: "+e)}var D={};if(N){var x={bodyBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},bodyForegroundColor:{name:"bodyForegroundColor",convertToHex:!0},controlBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},controlForegroundColor:{name:"controlForegroundColor",convertToHex:!0},primaryFontColor:{name:"bodyForegroundColor",convertToHex:!0},primaryBackgroundColor:{name:"bodyBackgroundColor",convertToHex:!0},secondaryFontColor:{name:"controlForegroundColor",convertToHex:!0},secondaryBackgroundColor:{name:"controlBackgroundColor",convertToHex:!0},fluentThemeData:{name:"fluentThemeData",convertToHex:!1}};for(var E in N){var k=!1,j=E;x[E]&&(j=x[E].name,k=x[E].convertToHex),D[j]=k?L.OUtil.convertIntToCssHexColor(N[E]):N[E]}}t=new L.OfficeAppContext(l,r,u,d,h,g,f,function(){return F._serializedSettings},y,m,_,v,O,P,C,p,R,S,I,void 0,void 0,void 0,void 0,void 0,b,D,A,void 0,void 0,function(){return F._serializedHostSettings},!1,void 0,void 0,void 0),w(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new L.Webkit.WebkitHostController(L.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new L.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new L.WebkitClientSettingsManager(this,L.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i._serializedHostSettings={},i.initializeWebkitMessaging(),i}L.WebkitInitializationHelper=e}(OSF=OSF||{}),function(s){var e=(r.prototype.dimensions=function(){var e=0;return this.safeArrayFlag?e=this.data[0][0]:this.isArray()&&(e=2),e},r.prototype.getItem=function(){var e=null;e=this.safeArrayFlag?this.toArray():this.data;for(var t=0;t<arguments.length;t++)e=e[arguments[t]];return e},r.prototype.lbound=function(e){return 0},r.prototype.ubound=function(e){var t=0;if(this.safeArrayFlag)t=this.data[0][e];else if(this.isArray()){if(1==e)return this.data.length;if(2==e){if(s.OUtil.isArray(this.data[0]))return this.data[0].length;if(null!=this.data[0])return 1}}return t},r.prototype.toArray=function(){if(0==this.isArray())return this.data;for(var e=[],t=this.safeArrayFlag?1:0;t<this.data.length;t++){var n=this.data[t];this.isSafeArray(n)?e.push(new r(n)):e.push(n)}return e},r.prototype.isArray=function(){return s.OUtil.isArray(this.data)},r.prototype.isSafeArray=function(e){var t=!1;if(s.OUtil.isArray(e)&&s.OUtil.isArray(e[0])){var n=e[0],r=n[0];if(n.length!=r+1)return!1;for(var i=1,o=1;o<n.length;o++){var a=n[o];if(0==isFinite(a))return!1;i*=a}t=++i==e.length}return t},r);function r(e){this.data=e,this.safeArrayFlag=this.isSafeArray(e)}s.WebkitSafeArray=e}(OSF=OSF||{}),function(e){!function(e){var n=null;e.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},e.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},e.GetScriptMessenger=function(){return null==n&&(n=t.IsSupportedByHost()?new t:new i("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback")),n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(r.IsSupportedByHost=function(){return!!window._osfHostAPI},r.prototype.invokeMethod=function(e,t,n,r){window._osfHostAPI(e,this.constructMessagingArgs(t,n),function(e){var t=r(e);return void 0===t||!0===t})},r.prototype.registerEvent=function(e,t,n,r,i,o){var a={id:n,targetId:r},s=window._osfHostRegisterEvent(e,this.constructMessagingArgs(t,a),function(e){return i(e),!1},function(e){return o(e),!0});this.eventHandlers.push({targetId:r,dispId:n,callbackId:s.eventCallbackId})},r.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};window._osfHostAPI(e,this.constructMessagingArgs(t,o),function(e){return i(e),!0});for(var a=this.eventHandlers.length-1;0<=a;a--){var s=this.eventHandlers[a];s.dispId===n&&s.targetId===r&&(this.eventHandlers.splice(a,1),window._osfHostUnregisterCallback(s.callbackId))}},r.prototype.agaveHostCallback=function(e,t){},r.prototype.agaveHostEventCallback=function(e,t){},r.prototype.constructMessagingArgs=function(e,t){return{params:t,methodId:e}},r);function r(){this.eventHandlers=[]}var i=(c.prototype.invokeMethod=function(e,t,n,r){this.postWebkitMessage({},e,t,n,r)},c.prototype.registerEvent=function(e,t,n,r,i,o){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:r},c=this.postWebkitMessage(a,e,t,s,o);this.eventHandlerList[c]=new l(n,r,i)},c.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,o,i)},c.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},c.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},c.prototype.postWebkitMessage=function(e,t,n,r,i){e.methodId=n,e.params=r;var o="";function a(){window.webkit.messageHandlers[t].postMessage(JSON.stringify(e))}i&&(o=this.generateCorrelationId(),this.callbackList[o]=i,e.callbackId=o,e.callbackFunction=this.asyncMethodCallbackFunctionName);var s=c.getCurrentTimeMS();return null==this.lastMessageTimestamp||s-this.lastMessageTimestamp>=c.MESSAGE_TIME_DELTA?(a(),this.lastMessageTimestamp=s):(this.lastMessageTimestamp+=c.MESSAGE_TIME_DELTA,setTimeout(function(){a()},this.lastMessageTimestamp-s)),o},c.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},c.getCurrentTimeMS=function(){return(new Date).getTime()},c.MESSAGE_TIME_DELTA=10,c);function c(e,t){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=e,this.eventCallbackFunctionName=t,this.conversationId=c.getCurrentTimeMS().toString()}}(e.ScriptMessaging||(e.ScriptMessaging={}))}(OSFWebkit=OSFWebkit||{}),function(a){var e=(t.prototype.read=function(n){this._initializationHelper.getAppContext(null,function(e){if(n){var t=e.get_settingsFunc()();n(0,t)}},function(e){n&&n(5001,{})})},t.prototype.write=function(e,t){var n={},r=[],i=[];for(var o in e)r.push(o),i.push(e[o]);n.keys=r,n.values=i,this._scriptMessager.invokeMethod(a.WebView.MessageHandlerName,a.WebView.MethodId.WriteSettings,n,function(e){t&&t(e[0])})},t);function t(e,t){this._initializationHelper=e,this._scriptMessager=t}a.WebViewClientSettingsManager=e}(OSF=OSF||{}),function(d){!function(e){var t,n;e.MessageHandlerName="Agave",e.PopupMessageHandlerName="WefPopupHandler",(t=e.AppContextProperties||(e.AppContextProperties={}))[t.Settings=0]="Settings",t[t.SolutionReferenceId=1]="SolutionReferenceId",t[t.AppType=2]="AppType",t[t.MajorVersion=3]="MajorVersion",t[t.MinorVersion=4]="MinorVersion",t[t.RevisionVersion=5]="RevisionVersion",t[t.APIVersionSequence=6]="APIVersionSequence",t[t.AppCapabilities=7]="AppCapabilities",t[t.APPUILocale=8]="APPUILocale",t[t.AppDataLocale=9]="AppDataLocale",t[t.BindingCount=10]="BindingCount",t[t.DocumentUrl=11]="DocumentUrl",t[t.ActivationMode=12]="ActivationMode",t[t.ControlIntegrationLevel=13]="ControlIntegrationLevel",t[t.SolutionToken=14]="SolutionToken",t[t.APISetVersion=15]="APISetVersion",t[t.CorrelationId=16]="CorrelationId",t[t.InstanceId=17]="InstanceId",t[t.TouchEnabled=18]="TouchEnabled",t[t.CommerceAllowed=19]="CommerceAllowed",t[t.RequirementMatrix=20]="RequirementMatrix",t[t.OfficeThemeInfo=21]="OfficeThemeInfo",(n=e.MethodId||(e.MethodId={}))[n.Execute=1]="Execute",n[n.RegisterEvent=2]="RegisterEvent",n[n.UnregisterEvent=3]="UnregisterEvent",n[n.WriteSettings=4]="WriteSettings",n[n.GetContext=5]="GetContext",n[n.OnKeydown=6]="OnKeydown",n[n.AddinInitialized=7]="AddinInitialized",n[n.OpenWindow=8]="OpenWindow",n[n.MessageParent=9]="MessageParent",n[n.SendMessage=10]="SendMessage";var r=(f.prototype.execute=function(e,t,n){var r=t;null==r&&(r=[]);var i={id:e,apiArgs:r};this.hostScriptProxy.invokeMethod(d.WebView.MessageHandlerName,d.WebView.MethodId.Execute,i,function(e){var t=e;if(d.OUtil.isArray(e)&&2<=e.length&&(e[0],t=e[1]),n)return n(new d.WebkitSafeArray(t))})},f.prototype.registerEvent=function(e,t,n,r,i){this.hostScriptProxy.registerEvent(d.WebView.MessageHandlerName,d.WebView.MethodId.RegisterEvent,e,n,function(e){var t=e,n=0;d.OUtil.isArray(e)&&2<=e.length&&(n=e[0],t=e[1]),r&&r(n,new d.WebkitSafeArray(t))},function(e){if(i)return i(new d.WebkitSafeArray(e))})},f.prototype.unregisterEvent=function(e,t,n,r){this.hostScriptProxy.unregisterEvent(d.WebView.MessageHandlerName,d.WebView.MethodId.UnregisterEvent,e,n,function(e){return r(new d.WebkitSafeArray(e))})},f.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[d.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},f.prototype.openDialog=function(n,e,t,r,i){var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<a.indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u,p=s.join("#");f.popup=window.open(p,"",l),window.addEventListener("message",function(t){if(t.source==f.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent])}catch(e){d.Utility.trace("messages received cannot be handled. Message:"+t.data)}}),u=window.setInterval(function(){try{null!=f.popup&&!f.popup.closed||(window.clearInterval(u),r(n,[12006]))}catch(e){d.Utility.trace("Error happened when popup window closed.")}},1e3),i(0)}},f.prototype.closeDialog=function(e,t,n,r){f.popup?(f.popup.close(),f.popup=null,r(0)):r(5001)},f.prototype.sendMessage=function(e){var t=e[d.ParameterNames.MessageContent];!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString()),this.hostScriptProxy.invokeMethod(d.WebView.MessageHandlerName,d.WebView.MethodId.SendMessage,t,null)},f.prototype.closeSdxDialog=function(e){throw d.Utility.createNotImplementedException()},f.prototype.resizeSdxDialog=function(e,t){throw d.Utility.createNotImplementedException()},f);function f(e){this.hostScriptProxy=e}e.WebViewHostController=r}(d.WebView||(d.WebView={}))}(OSF=OSF||{}),function(T){var o,e=(o=T.InitializationHelper,__extends(t,o),t.prototype.initializeWebViewMessaging=function(){T.ScriptMessaging=T.WebView.ScriptMessaging},t.prototype.getAppContext=function(e,I,t){var n,A=this;n=this._hostInfo.isDialog?T.WebView.PopupMessageHandlerName:T.WebView.MessageHandlerName,T.ScriptMessaging.GetScriptMessenger().invokeMethod(n,T.WebView.MethodId.GetContext,[],function(e){var t,n=T.Webkit.AppContextProperties,r=e[n.AppType],i=e[n.Settings];if(i&&2===i.length)for(var o=i[0],a=i[1],s=0;s<o.length;s++)A._serializedSettings[o[s]]=a[s];var c=e[n.SolutionReferenceId],l=e[n.MajorVersion],u=e[n.MinorVersion],p=e[n.AppCapabilities],f=e[n.APPUILocale],d=e[n.AppDataLocale],h=e[n.DocumentUrl],g=e[n.ActivationMode],y=e[n.ControlIntegrationLevel],m=e[n.SolutionToken];m=m?m.toString():"";var _=e[n.CorrelationId],b=e[n.InstanceId],v=e[n.TouchEnabled],O=e[n.CommerceAllowed],P=e[n.RequirementMatrix],C=e[n.HostCustomMessage],R=e[n.HostFullVersion],S=e[n.InitialDisplayMode];t=new T.OfficeAppContext(c,r,l,f,d,h,p,function(){return A._serializedSettings},g,y,m,_,b,v,O,u,P,C,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S,void 0,void 0,void 0,!1,void 0,void 0,void 0),I(t)})},t.prototype.createClientHostController=function(){return this._clientHostController||(this._clientHostController=new T.WebView.WebViewHostController(T.ScriptMessaging.GetScriptMessenger())),this._clientHostController},t.prototype.createAsyncMethodExecutor=function(){return new T.SafeArrayAsyncMethodExecutor(this.createClientHostController())},t.prototype.createClientSettingsManager=function(){return new T.WebViewClientSettingsManager(this,T.ScriptMessaging.GetScriptMessenger())},t);function t(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i._serializedSettings={},i.initializeWebViewMessaging(),i}T.WebViewInitializationHelper=e}(OSF=OSF||{}),function(n){var r,e,t,i,o;function a(){}function s(){window.addEventListener("message",this.OnReceiveMessage.bind(this))}!function(e){var t;(t=e.CallbackType||(e.CallbackType={}))[t.MethodCallback=0]="MethodCallback",t[t.EventCallback=1]="EventCallback";function n(e,t,n){this.callbackType=e,this.callbackId=t,this.params=n}e.CallbackData=n}(r=r||{}),e=n.Android||(n.Android={}),a.getInstance=function(){return null==a.uniqueInstance&&(a.uniqueInstance=new a),a.uniqueInstance},a.prototype.postMessage=function(e,t){agaveHost.postMessage(t)},a.prototype.ReceiveMessage=function(e){switch(e.callbackType){case r.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(e.callbackId,e.params);break;case r.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(e.callbackId,e.params)}},t=a,e.Poster=t,i=n.WinRT||(n.WinRT={}),s.prototype.postMessage=function(e,t){window.parent.postMessage(t,"*")},s.prototype.OnReceiveMessage=function(e){if(e.source==window.parent&&window.parent==window.top&&e.origin.startsWith("ms-appx-web://")){var t;try{t=JSON.parse(e.data)}catch(e){return}switch(t.callbackType){case r.CallbackType.MethodCallback:n.WebView.ScriptMessaging.agaveHostCallback(t.callbackId,JSON.parse(t.params));break;case r.CallbackType.EventCallback:n.WebView.ScriptMessaging.agaveHostEventCallback(t.callbackId,JSON.parse(t.params))}}},o=s,i.Poster=o}(OSF=OSF||{}),function(i){var e;(function(e){var n=null;e.agaveHostCallback=function(e,t){n.agaveHostCallback(e,t)},e.agaveHostEventCallback=function(e,t){n.agaveHostEventCallback(e,t)},e.GetScriptMessenger=function(){if(null==n){var e=i._OfficeAppFactory.getHostInfo().hostPlatform;if(e===i.HostInfoPlatform.android)n=new t("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback",i.Android.Poster.getInstance());else{if(e!==i.HostInfoPlatform.winrt)throw i.Utility.createNotImplementedException();n=new t("agaveHostCallback","agaveHostEventCallback",new i.WinRT.Poster)}}return n};var l=function(e,t,n){this.id=e,this.targetId=t,this.handler=n},t=(r.prototype.invokeMethod=function(e,t,n,r){this.postMessage({},e,t,n,r)},r.prototype.registerEvent=function(e,t,n,r,i,o){var a={eventCallbackFunction:this.eventCallbackFunctionName},s={id:n,targetId:r},c=this.postMessage(a,e,t,s,o);this.eventHandlerList[c]=new l(n,r,i)},r.prototype.unregisterEvent=function(e,t,n,r,i){var o={id:n,targetId:r};for(var a in this.eventHandlerList)if(this.eventHandlerList.hasOwnProperty(a)){var s=this.eventHandlerList[a];s.id==n&&s.targetId==r&&delete this.eventHandlerList[a]}this.invokeMethod(e,t,o,i)},r.prototype.agaveHostCallback=function(e,t){var n=this.callbackList[e];if(n){var r=n(t);void 0!==r&&!0!==r||delete this.callbackList[e]}},r.prototype.agaveHostEventCallback=function(e,t){var n=this.eventHandlerList[e];n&&n.handler(t)},r.prototype.postMessage=function(e,t,n,r,i){var o=this.generateCorrelationId();return this.callbackList[o]=i,e.methodId=n,e.params=r,e.callbackId=o,e.callbackFunction=this.asyncMethodCallbackFunctionName,this.poster.postMessage(t,JSON.stringify(e)),o},r.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},r.getCurrentTimeMS=function(){return(new Date).getTime()},r.MESSAGE_TIME_DELTA=10,r);function r(e,t,n){this.callingIndex=0,this.callbackList={},this.eventHandlerList={},this.asyncMethodCallbackFunctionName=e,this.eventCallbackFunctionName=t,this.poster=n,this.conversationId=r.getCurrentTimeMS().toString()}})((e=i.WebView||(i.WebView={})).ScriptMessaging||(e.ScriptMessaging={}))}(OSF=OSF||{}),function(n){var e,t=(e=n.RichClientHostController,__extends(r,e),r.prototype.messageParent=function(e){if(n.Utility.externalNativeFunctionExists(typeof window.external.MessageParent2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageParent2(JSON.stringify(e),OsfOMToken):window.external.MessageParent2(JSON.stringify(e));else{var t=e[n.ParameterNames.MessageToParent];window.external.MessageParent(t)}},r.prototype.openDialog=function(e,t,n,r,i){this.registerEvent(e,t,n,r,i)},r.prototype.closeDialog=function(e,t,n,r){this.unregisterEvent(e,t,n,r)},r.prototype.sendMessage=function(e){if(n.Utility.externalNativeFunctionExists(typeof window.external.MessageChild2))"undefined"!=typeof OsfOMToken&&OsfOMToken?window.external.MessageChild2(JSON.stringify(e),OsfOMToken):window.external.MessageChild2(JSON.stringify(e));else{var t=e[n.ParameterNames.MessageContent];window.external.MessageChild(t)}},r.prototype.closeSdxDialog=function(e){n.Utility.externalNativeFunctionExists(typeof window.external.closeSdxDialog)&&window.external.closeSdxDialog(e)},r.prototype.resizeSdxDialog=function(e,t){n.Utility.externalNativeFunctionExists(typeof window.external.resizeSdxDialog)&&window.external.resizeSdxDialog(e,t)},r);function r(){return null!==e&&e.apply(this,arguments)||this}n.Win32RichClientHostController=t}(OSF=OSF||{}),function(f){var e,t=(e=f.Webkit.WebkitHostController,__extends(d,e),d.prototype.openDialog=function(n,e,t,r,i){if(!d.popup||d.popup.closed){window.dialogAPIErrorCode=void 0;var o=JSON.parse(t),a=o.url;if(a){var s=a.split("#"),c="?";-1<s[0].indexOf("?")&&(c="&");var l="width="+screen.width*o.width/100+", height="+screen.height*o.height/100;s[0]=s[0].concat(c).concat("action=displayDialog");var u=s.join("#");if(d.popup=window.open(u,"",l),d.DialogEventListener=function(t){if(t.source==d.popup)try{var e=JSON.parse(t.data);e.dialogMessage&&r(n,[0,e.dialogMessage.messageContent])}catch(e){f.Utility.trace("messages received cannot be handlered. Message:"+t.data)}},null!=d.popup&&null==window.dialogAPIErrorCode)window.addEventListener("message",d.DialogEventListener),d.interval=window.setInterval(function(){try{null!=d.popup&&!d.popup.closed||(window.clearInterval(d.interval),window.removeEventListener("message",d.DialogEventListener),d.NotifyError=null,r(n,[12006]))}catch(e){f.Utility.trace("Error happened when popup window closed.")}},500),d.NotifyError=function(e){r(n,[e])},i(0);else{var p=5001;window.dialogAPIErrorCode&&(p=window.dialogAPIErrorCode),i(p)}}else i(12003)}else i(12007)},d.prototype.messageParent=function(e){var t={dialogMessage:{messageType:0,messageContent:e[f.ParameterNames.MessageToParent]}};window.opener.postMessage(JSON.stringify(t),window.location.origin)},d.prototype.closeDialog=function(e,t,n,r){d.popup?(d.interval&&window.clearInterval(d.interval),d.popup.close(),d.popup=null,window.removeEventListener("message",d.DialogEventListener),d.NotifyError=null,r(0)):r(5001)},d);function d(){return null!==e&&e.apply(this,arguments)||this}f.MacRichClientHostController=t}(OSF=OSF||{}),function(e){var t,n,r;((n=e._Internal||(e._Internal={})).PromiseImpl||(n.PromiseImpl={})).Init=function(){return function(){"use strict";function l(e){return"function"==typeof e}var n,a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,s=function(e,t){p[r]=e,p[r+1]=t,2===(r+=2)&&(n?n(f):i())};var e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),t="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var i,o,c,u,p=new Array(1e3);function f(){for(var e=0;e<r;e+=2){(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0}r=0}function d(){}i=e?(c=process.nextTick,u=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(u)&&"0"===u[1]&&"10"===u[2]&&(c=setImmediate),function(){c(f)}):t?((o=new MessageChannel).port1.onmessage=f,function(){o.port2.postMessage(0)}):function(){setTimeout(f,1)};var h=void 0,g=1,y=2,m=new I;function _(e,r,i){s(function(t){var n=!1,e=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(i,r,function(e){n||(n=!0,(r!==e?v:P)(t,e))},function(e){n||(n=!0,C(t,e))},t._label);!n&&e&&(n=!0,C(t,e))},e)}function b(e,t){if(t.constructor===e.constructor)r=e,(i=t)._state===g?P(r,i._result):i._state===y?C(r,i._result):R(i,void 0,function(e){v(r,e)},function(e){C(r,e)});else{var n=function(e){try{return e.then}catch(e){return m.error=e,m}}(t);n===m?C(e,m.error):void 0!==n&&l(n)?_(e,t,n):P(e,t)}var r,i}function v(e,t){var n;e===t?C(e,new TypeError("You cannot resolve a promise with itself")):("function"==typeof(n=t)||"object"==typeof n&&null!==n?b:P)(e,t)}function O(e){e._onerror&&e._onerror(e._result),S(e)}function P(e,t){e._state===h&&(e._result=t,e._state=g,0!==e._subscribers.length&&s(S,e))}function C(e,t){e._state===h&&(e._state=y,e._result=t,s(O,e))}function R(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+g]=n,i[o+y]=r,0===o&&e._state&&s(S,e)}function S(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,i,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?T(n,r,i,o):i(o);e._subscribers.length=0}}function I(){this.error=null}var A=new I;function T(e,t,n,r){var i,o,a,s,c=l(n);if(c){if((i=function(e,t){try{return e(t)}catch(e){return A.error=e,A}}(n,r))===A?(s=!0,o=i.error,i=null):a=!0,t===i)return void C(t,new TypeError("A promises callback cannot return that same promise."))}else i=r,a=!0;t._state!==h||(c&&a?v(t,i):s?C(t,o):e===g?P(t,i):e===y&&C(t,i))}function N(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(d),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),0===n.length?P(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&P(n.promise,n._result))):C(n.promise,n._validationError())}N.prototype._validateInput=function(e){return a(e)},N.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},N.prototype._init=function(){this._result=new Array(this.length)};var D=N;N.prototype._enumerate=function(){for(var e=this.length,t=this.promise,n=this._input,r=0;t._state===h&&r<e;r++)this._eachEntry(n[r],r)},N.prototype._eachEntry=function(e,t){var n,r=this,i=r._instanceConstructor;"object"==typeof(n=e)&&null!==n?e.constructor===i&&e._state!==h?(e._onerror=null,r._settledAt(e._state,t,e._result)):r._willSettleAt(i.resolve(e),t):(r._remaining--,r._result[t]=e)},N.prototype._settledAt=function(e,t,n){var r=this,i=r.promise;i._state===h&&(r._remaining--,e===y?C(i,n):r._result[t]=n),0===r._remaining&&P(i,r._result)},N.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,function(e){n._settledAt(g,t,e)},function(e){n._settledAt(y,t,e)})};function x(e){var t=new this(d);if(!a(e))return C(t,new TypeError("You must pass an array to race.")),t;var n=e.length;function r(e){v(t,e)}function i(e){C(t,e)}for(var o=0;t._state===h&&o<n;o++)R(this.resolve(e[o]),void 0,r,i);return t}function E(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(d);return v(t,e),t}function k(e){var t=new this(d);return C(t,e),t}var j=0;var w=F;function F(e){this._id=j++,this._state=void 0,this._result=void 0,this._subscribers=[],d!==e&&(l(e)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof F||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}(),function(t,e){try{e(function(e){v(t,e)},function(e){C(t,e)})}catch(e){C(t,e)}}(this,e))}return F.all=function(e){return new D(this,e).promise},F.race=x,F.resolve=E,F.reject=k,F._setScheduler=function(e){n=e},F._setAsap=function(e){s=e},F._asap=s,F.prototype={constructor:F,then:function(e,t){var n=this._state;if(n===g&&!e||n===y&&!t)return this;var r=new this.constructor(d),i=this._result;if(n){var o=arguments[n-1];s(function(){T(n,r,o,i)})}else R(this,r,e,t);return r},catch:function(e){return this.then(null,e)}},w}.call(this)},(r=t=e._Internal||(e._Internal={})).OfficePromise=function(){if("undefined"==typeof window&&"function"==typeof Promise)return Promise;if("undefined"!=typeof window){if(window.Promise)return window.Promise;var e=r.PromiseImpl.Init();return window.Promise=e}}(),e.OfficePromise=t.OfficePromise,e.Promise=e.OfficePromise}(Office=Office||{}),(SDX||(SDX={})).getFields=function(e,t){var n=[];return void 0!==t.id&&n.push(oteljs.makeStringDataField(e+".Id",t.id)),void 0!==t.version&&n.push(oteljs.makeStringDataField(e+".Version",t.version)),void 0!==t.instanceId&&n.push(oteljs.makeStringDataField(e+".InstanceId",t.instanceId)),void 0!==t.name&&n.push(oteljs.makeStringDataField(e+".Name",t.name)),void 0!==t.marketplaceType&&n.push(oteljs.makeStringDataField(e+".MarketplaceType",t.marketplaceType)),void 0!==t.sessionId&&n.push(oteljs.makeStringDataField(e+".SessionId",t.sessionId)),void 0!==t.browserToken&&n.push(oteljs.makeStringDataField(e+".BrowserToken",t.browserToken)),void 0!==t.osfRuntimeVersion&&n.push(oteljs.makeStringDataField(e+".OsfRuntimeVersion",t.osfRuntimeVersion)),void 0!==t.officeJsVersion&&n.push(oteljs.makeStringDataField(e+".OfficeJsVersion",t.officeJsVersion)),void 0!==t.hostJsVersion&&n.push(oteljs.makeStringDataField(e+".HostJsVersion",t.hostJsVersion)),void 0!==t.assetId&&n.push(oteljs.makeStringDataField(e+".AssetId",t.assetId)),void 0!==t.providerName&&n.push(oteljs.makeStringDataField(e+".ProviderName",t.providerName)),void 0!==t.type&&n.push(oteljs.makeStringDataField(e+".Type",t.type)),void 0!==t.officeJSSource&&n.push(oteljs.makeInt64DataField(e+".OfficeJSSource",t.officeJSSource)),void 0!==t.isSecureDefaultsEnabled&&n.push(oteljs.makeBooleanDataField(e+".IsSecureDefaultsEnabled",t.isSecureDefaultsEnabled)),n},function(_){!function(o){var a,s=_.OUtil.Guid.generateNewGuid(),c=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i"),l=!1,u="PRIVATE";o.enableTelemetry=!0;var p=function(){};o.AppInfo=p;var f=(e.prototype.getClientId=function(){var e=this.getValue(this.clientIDKey);return(!e||e.length<=0||40<e.length)&&(e=_.OUtil.Guid.generateNewGuid(),this.setValue(this.clientIDKey,e)),e},e.prototype.getValue=function(e){var t=_.OUtil.getLocalStorage(),n="";return t&&(n=t.getItem(e)),n},e.prototype.setValue=function(e,t){var n=_.OUtil.getLocalStorage();n&&n.setItem(e,t)},e);function e(){this.clientIDKey="Office API client",this.logIdSetKey="Office App Log Id Set"}function d(e){return(e=e&&e.replace(/[{}]/g,"").toLowerCase())||""}function h(t){try{return JSON.parse(t)}catch(e){return t}}function t(){a&&(l||OTel.OTelLogger.onTelemetryLoaded(function(){var e=[],t=a.isMos?1:0;e=e.concat([oteljs.makeStringDataField("Browser",a.browser),oteljs.makeInt64DataField("AppSizeWidth",window.innerWidth),oteljs.makeInt64DataField("AppSizeHeight",window.innerHeight),oteljs.makeInt64DataField("IsMOS",t)]),_.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")&&a.launchSource&&a.launchReason&&(e.push(oteljs.makeStringDataField("LaunchSource",a.launchSource)),e.push(oteljs.makeStringDataField("LaunchReason",a.launchReason))),Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AppActivatedX",dataFields:e,eventFlags:{dataCategories:2,diagnosticLevel:110,samplingPolicy:191}})}))}function n(e,t){}function g(){var e=0!=(_._OfficeAppFactory.getHostInfo().flags&_.HostInfoFlags.PublicAddin);return e||!!a&&r(_._OfficeAppFactory.getHostInfo().hostPlatform,a.hostVersion)}function y(e,t){return g()||t!==e?t:u}function r(e,t){var n=!1,r=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(t);if(r){var i=parseInt(r[1]),o=parseInt(r[2]),a=parseInt(r[3]);e==_.HostInfoPlatform.win32?(i<16||16==i&&a<14225)&&(n=!0):e==_.HostInfoPlatform.mac&&(i<16||16==i&&(o<52||52==o&&a<808))&&(n=!0)}return n}function m(){return 0!=(_._OfficeAppFactory.getHostInfo().flags&_.HostInfoFlags.IsMos)}o.initialize=function(e){if(o.enableTelemetry&&!a){a=new p,e.get_hostFullVersion()?a.hostVersion=e.get_hostFullVersion():a.hostVersion=e.get_appVersion(),a.appId=g()?e.get_id():u,a.marketplaceType=e._marketplaceType,a.host=""+e.get_appName(),a.browser=window.navigator.userAgent,a.correlationId=d(e.get_correlationId()),a.clientId=(new f).getClientId(),a.appInstanceId=e.get_appInstanceId(),a.appInstanceId&&(a.appInstanceId=d(a.appInstanceId),a.appInstanceId=y(e.get_id(),a.appInstanceId)),a.message=e.get_hostCustomMessage(),a.officeJSVersion=_.ConstantNames.FileVersion,a.hostJSVersion="NA",e._wacHostEnvironment&&(a.wacHostEnvironment=e._wacHostEnvironment);var t=e.get_isFromWacAutomation();null!=t&&(a.isFromWacAutomation=t.toString().toLowerCase()),a.officeJSSource=_.OUtil.getLibraryReleaseVehicle(),a.isSecureDefaultsEnabled="undefined"!=typeof isOsfSecurityDefaultsEnabled&&!0===isOsfSecurityDefaultsEnabled;var n=e.get_docUrl();a.docUrl=c.test(n)?n:"";var r=location.href;if(r&&(a.isPreload=-1!==r.indexOf("preload=1"),r=r.split("?")[0].split("#")[0]),a.isMos=m(),_.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10045620_CopilotAgentTelSettings")){var i=e.get_settingsFunc()();i&&i.LaunchSource&&i.LaunchReason&&(a.launchSource=h(i.LaunchSource),a.launchReason=h(i.LaunchReason))}!function(e,t){t.assetId="",t.userId="";try{if(!_.Utility.isNullOrEmpty(e)){var n=decodeURIComponent(e),r=new DOMParser,i=void 0,o=_.LoadScriptHelper.getTrustedTypesOptIn();if((null!=o?o:_.OUtil.isSecureDefaultsEnabled())&&window.trustedTypes&&window.trustedTypes.createPolicy)i=window.trustedTypes.createPolicy("officejs-domparser",{createHTML:function(e){return e}}).createHTML(n);else i=n;var a=r.parseFromString(i,"text/xml"),s=a.getElementsByTagName("t")[0].attributes.getNamedItem("cid"),c=a.getElementsByTagName("t")[0].attributes.getNamedItem("oid");s&&s.nodeValue?t.userId=s.nodeValue:c&&c.nodeValue&&(t.userId=c.nodeValue),t.assetId=a.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}}catch(e){}}(e.get_eToken(),a),a.sessionId=s,OTel.OTelLogger.initialize(a),a.isPreload?(l=!0,function(){try{Microsoft.Office.WebExtension.onReadyInternal().then(function(){var t=Office,n=OfficeCore;t.addin&&t.addin.onVisibilityModeChanged&&t.addin.onVisibilityModeChanged(function(e){e.visibilityMode===t.VisibilityMode.taskpane&&_.AppTelemetry.CallOnAppActivatedIfPending()}),t.addin&&t.addin._getState&&t.addin._getState().then(function(e){n.AppRuntimeState&&e===n.AppRuntimeState.visible&&_.AppTelemetry.CallOnAppActivatedIfPending()})})}catch(e){_.AppTelemetry&&_.AppTelemetry.logAppException("Exception happens at registerVisibilityEventOnPreload"+e)}}()):o.onAppActivated()}},o.onAppActivated=t,o.onScriptDone=function(e,t,n,r){},o.onCallDone=function(e,t,n,r,i){},o.onMethodDone=function(e,t,n,r){},o.onPropertyDone=function(e,t){_.AppTelemetry.onCallDone("property",-1,e,t,0)},o.onCheckWACHost=function(e,t,n,r,i){},o.onEventDone=function(e,t){_.AppTelemetry.onCallDone("event",e,null,0,t)},o.onRegisterDone=function(e,t,n,r){_.AppTelemetry.onCallDone(e?"registerevent":"unregisterevent",t,null,n,r)},o.onAppClosed=function(e,t){},o.setOsfControlAppCorrelationId=function(e){d(e)},o.doAppInitializationLogging=n,o.logAppCommonMessage=function(e){},o.logAppException=function(e){},o.CallOnAppActivatedIfPending=function(){l&&(l=!1,t())},o.canSendAddinId=g,o.getCompliantAppInstanceId=y,o._isComplianceExceptedHost=r,o.isMos=m}(_.AppTelemetry||(_.AppTelemetry={}))}(OSF=OSF||{}),function(s){var e=(c.loaded=function(){return!(void 0===c.logger)},c.ensureValue=function(e,t){return e||t},c.create=function(e){var t,n={id:e.appId,marketplaceType:e.marketplaceType,assetId:e.assetId,officeJsVersion:e.officeJSVersion,hostJsVersion:e.hostJSVersion,browserToken:e.clientId,instanceId:e.appInstanceId,sessionId:e.sessionId,officeJSSource:e.officeJSSource,isSecureDefaultsEnabled:e.isSecureDefaultsEnabled},r=SDX.getFields("SDX",n),i=OSF._OfficeAppFactory.getHostInfo().hostPlatform;if("web"===i)t=new s.SdxWacSink;else if(Office.context.requirements.isSetSupported("Telemetry","1.2"))t=new s.RichApiSink,this.richApiSink=t;else{if(!oteljs.AgaveSink)return console.error("Cannot create telemetry sink successfully"),null;var o={"App.Name":OSF._OfficeAppFactory.getHostInfo().hostType,"App.Platform":i,"App.Version":e.hostVersion,"Session.Id":c.ensureValue(e.correlationId,"00000000-0000-0000-0000-000000000000")};t=oteljs.AgaveSink.createInstance(o)}var a=new oteljs.SimpleTelemetryLogger(void 0,r);return a.addSink(t),a.setTenantToken("Office.Extensibility.OfficeJs","db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",1755),oteljs.onNotification().addListener(function(e){OSF.Utility.debugLog(e.message())}),a},c.checkAndResolvePromises=function(){c.loaded()&&(c.promises.forEach(function(e){e()}),c.promises=[])},c.initialize=function(e){c.Enabled?Office.onReadyInternal().then(function(){c.loaded()||(OSF.Utility.debugLog("Creating OTelLogger"),c.logger=c.create(e),c.checkAndResolvePromises())}):c.promises=[]},c.sendTelemetryEvent=function(e){c.onTelemetryLoaded(function(){try{c.logger.sendTelemetryEvent(e)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}})},c.sendNonStandardEvent=function(e,t){c.onTelemetryLoaded(function(){try{c.logger.sendNonStandardEvent(e,t)}catch(e){console.error("Cannot send telemetry event: "+JSON.stringify(e))}})},c.flushTelemetryQueue=function(){var t=this;return new Office.Promise(function(e){c.onTelemetryLoaded(function(){t.richApiSink?t.richApiSink.flushTelemetryQueue().then(function(){e()}):e()})})},c.onTelemetryLoaded=function(e){c.Enabled&&(c.loaded()?e():c.promises.push(e))},c.promises=[],c.Enabled=!0,c);function c(){}s.OTelLogger=e}(OTel=OTel||{}),function(e){var t=(n.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push([e,1]),this._requestIsPending||this.processWorkBacklog()},n.prototype.sendNonStandardEvent=function(e,t){this._telemetryQueue.push([e,t]),this._requestIsPending||this.processWorkBacklog()},n.prototype.flushTelemetryQueue=function(){var n=this;return new Office.Promise(function(e){var t=n._telemetryQueue;n._telemetryQueue=[],n.processTelemetryEvents(t).then(function(){e()})})},n.prototype.processWorkBacklog=function(){var t=this;this._requestIsPending=!0;var e=this._telemetryQueue;this._telemetryQueue=[],this.processTelemetryEvents(e).then(this.waitAndProcessMore.bind(this)).catch(function(e){oteljs.logError(1,"RichApiSink Error",e),t.waitAndProcessMore.bind(t)()})},n.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then(function(){0<e._telemetryQueue.length&&setTimeout(function(){return e.processWorkBacklog()},0),e._requestIsPending=!1}).catch(function(){})},n.prototype.processTelemetryEvents=function(e){var o=this,a=new OfficeCore.RequestContext;return e.forEach(function(e){var t=e[0],n=e[1];if(t.telemetryProperties){var r=[];o.addDataFields(r,t.dataFields);var i=t.eventContract?t.eventContract.name:"";t.eventContract&&o.addDataFields(r,t.eventContract.dataFields),1===n?a.telemetry.sendTelemetryEvent(t.telemetryProperties,t.eventName,i,oteljs.getEffectiveEventFlags(t),r):a.telemetry.sendNonStandardEvent(t.telemetryProperties,t.eventName,i,oteljs.getEffectiveEventFlags(t),r,n)}}),a.sync().catch(function(){oteljs.logNotification(2,1,function(){return"RichApi telemetry call failed."})})},n.prototype.addDataFields=function(t,e){e&&e.forEach(function(e){t.push({name:e.name,value:e.value,classification:e.classification?e.classification:4,type:e.dataType})})},n.prototype.pause=function(t){return new Office.Promise(function(e){return setTimeout(e,t)})},n);function n(){var t=this;this._requestIsPending=!0,this._telemetryQueue=[],this.pause(1e3).then(function(){var e=t._telemetryQueue;t._telemetryQueue=[],t._requestIsPending=!1,t.processTelemetryEvents(e)})}e.RichApiSink=t}(OTel=OTel||{}),function(e){var t=(n.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},n.prototype.sendNonStandardEvent=function(e,t){try{if(1===t)throw new Error("Please call sendTelemetryEvent for events of type "+t);if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t&&2048!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendNonStandardEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){oteljs.logError(1,"AgaveWacSink",e)}},n);function n(){}e.SdxWacSink=t}(OTel=OTel||{}),function(){var t,e=[];function p(e,t,n){OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionRequest",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeStringDataField("methodPath",t),oteljs.makeStringDataField("params",n)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}function f(e,t,n){OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionResponse",dataFields:[oteljs.makeStringDataField("invocationId",e),oteljs.makeBooleanDataField("isSuccessful",t),oteljs.makeStringDataField("error",n?JSON.stringify({name:n.name,code:n.code,message:n.message}):void 0)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}try{function n(i){var o=Navigator.prototype[i];o&&(Navigator.prototype[i]=function(e,t,n){if(3===arguments.length&&Function.prototype.isPrototypeOf(t)&&Function.prototype.isPrototypeOf(n)){var r=(d++).toString();return p(r,"Navigator.prototype."+i,JSON.stringify([{audio:!!e.audio,video:!!e.video}])),o.apply(this,[e,function(){return f(r,!0),t.apply(this,arguments)},function(){return f(r,!1,arguments[0]),n.apply(this,arguments)}])}return o.apply(this,arguments)},e.push("Navigator.prototype."+i))}for(var d=0,r=0,i=["getUserMedia","webkitGetUserMedia","mozGetUserMedia"];r<i.length;r++){n(i[r])}var o=MediaDevices.prototype.getUserMedia;o&&(MediaDevices.prototype.getUserMedia=function(e){var t=(d++).toString();return 1===arguments.length&&void 0!==e?(p(t,"MediaDevices.prototype.getUserMedia",JSON.stringify([{audio:!!e.audio,video:!!e.video}])),o.apply(this,arguments).then(function(){return f(t,!0),arguments[0]},function(){throw f(t,!1,arguments[0]),arguments[0]})):o.apply(this,arguments)},e.push("MediaDevices.prototype.getUserMedia"));function a(l){var u=Geolocation.prototype[l];u&&(Geolocation.prototype[l]=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o=(d++).toString(),a=!1;p(o,"Geolocation.prototype."+l,JSON.stringify([]));var s=Function.prototype.isPrototypeOf(e)?function(){return a||(f(o,!0),a=!0),e.apply(this,arguments)}:e,c=Function.prototype.isPrototypeOf(t)?function(){return a||(f(o,!1,arguments[0]),a=!0),t.apply(this,arguments)}:t;return u.apply(this,[s,c,n].concat(r))},e.push("Geolocation.prototype."+l))}for(var s=0,c=["getCurrentPosition","watchPosition"];s<c.length;s++){a(c[s])}}catch(e){t=e.toString()}OTel.OTelLogger.onTelemetryLoaded(function(){Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.AddinSpecialPermissionHookInstall",dataFields:[oteljs.makeStringDataField("hooksInstalled",JSON.stringify(e)),oteljs.makeStringDataField("error",t)],eventFlags:{dataCategories:2,diagnosticLevel:110}})})}(Office=Office||{}),function(e){var t,n;t=e.Office||(e.Office={}),(n=t.WebExtension||(t.WebExtension={})).FeatureGates={},n.EventType=OSF.EventType,n.sendTelemetryEvent=function(e){OTel.OTelLogger.sendTelemetryEvent(e)},n.sendNonStandardEvent=function(e,t){OTel.OTelLogger.sendNonStandardEvent(e,t)},n.flushTelemetryQueue=function(){return OTel.OTelLogger.flushTelemetryQueue()},n.telemetrySink=OTel.OTelLogger}(Microsoft=Microsoft||{}),function(a){a.sendTelemetryEvent=function(e){Microsoft.Office.WebExtension.sendTelemetryEvent(e)},a.sendNonStandardEvent=function(e,t){Microsoft.Office.WebExtension.sendNonStandardEvent(e,t)},a.flushTelemetryQueue=function(){return Microsoft.Office.WebExtension.flushTelemetryQueue()},a.telemetrySink=Microsoft.Office.WebExtension.telemetrySink,a.isTrustedHost=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,10,,11]),OSF._OfficeAppFactory.getHostInfo().hostPlatform===OSF.HostInfoPlatform.web?[3,2]:[4,a.onReady()];case 1:return e.sent(),[2,!0];case 2:return null!=(t=OSF._OfficeAppFactory.getWebAppState().clientEndPoint)&&t.fHostTrusted?[2,!0]:null==document.referrer?[3,6]:(n=OSF.OUtil.parseUrl(document.referrer,!1),r="https:"==n.protocol,i=!1,OSF.OUtil.isChangeGateEnabled("Microsoft.Office.SharedOnline.ChangeGate.OfficeVSO_10910853_OfficeJsNPMDownloadTrustedDomainList")?[4,OSF.XdmCommunicationManager.isHostNameValidWacDomainAsync(n.hostname,null)]:[3,4]);case 3:return i=e.sent(),[3,5];case 4:i=OSF.XdmCommunicationManager.isHostNameValidWacDomain(n.hostname),e.label=5;case 5:if(r&&i&&!new RegExp("^"+document.domain.replace(new RegExp("\\.","g"),"\\.")+"$").test(n.hostname))return[2,!0];e.label=6;case 6:return null==t?[3,8]:[4,OSF.Utility.promisify(function(e){t.invoke("ContextActivationManager_getAppContextAsync",e,OSF._OfficeAppFactory.getWebAppState().id)},1e4)];case 7:return e.sent(),[2,!0];case 8:return[2,!1];case 9:return[3,11];case 10:return o=e.sent(),OSF.AppTelemetry&&OSF.AppTelemetry.logAppException("Exception happens at Office.isTrustedHost."+o),[2,!1];case 11:return[2]}})})},Microsoft.Office.WebExtension.onReadyInternal=a.onReadyInternal}(Office=Office||{});var OfficeExtension;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(m){var a,e;(e=a=m.RemoteEndpointType||(m.RemoteEndpointType={})).graph="graph",e.wfe="wfe";var _=(t.prototype._resolveRequestUrlAndHeaderInfo=function(){return C._createPromiseFromResult(null)},t.prototype._createRequestExecutorOrNull=function(){return null},t.prototype.getEventRegistration=function(e){return null},t);function t(){}m.SessionBase=_;var s=(n.setCustomSendRequestFunc=function(e){n.s_customSendRequestFunc=e},n.xhrSendRequestFunc=function(i){return C.createPromise(function(t,e){var n=new XMLHttpRequest;if(n.open(i.method,i.url),n.onload=function(){var e={statusCode:n.status,headers:C._parseHttpResponseHeaders(n.getAllResponseHeaders()),body:n.responseText};t(e)},n.onerror=function(){e(new h.RuntimeError({code:g.connectionFailure,httpStatusCode:n.status,message:C._getResourceString(y.connectionFailureWithStatus,n.statusText)}))},i.headers)for(var r in i.headers)n.setRequestHeader(r,i.headers[r]);n.send(C._getRequestBodyText(i))})},n.fetchSendRequestFunc=function(e){var t=C._getRequestBodyText(e);return""===t&&(t=void 0),fetch(e.url,{method:e.method,headers:e.headers,body:t}).then(function(r){return r.text().then(function(e){var t=r.status,n={};return r.headers.forEach(function(e,t){n[t]=e}),{statusCode:t,headers:n,body:e}})})},n.sendRequest=function(e){n.validateAndNormalizeRequest(e);var t=n.s_customSendRequestFunc;return(t=t||("undefined"!=typeof fetch?n.fetchSendRequestFunc:n.xhrSendRequestFunc))(e)},n.setCustomSendLocalDocumentRequestFunc=function(e){n.s_customSendLocalDocumentRequestFunc=e},n.sendLocalDocumentRequest=function(e){return n.validateAndNormalizeRequest(e),(n.s_customSendLocalDocumentRequestFunc||n.officeJsSendLocalDocumentRequestFunc)(e)},n.officeJsSendLocalDocumentRequestFunc=function(e){e=C._validateLocalDocumentRequest(e);var t=C._buildRequestMessageSafeArray(e);return C.createPromise(function(n,e){OSF.DDA.RichApi.executeRichApiRequestAsync(t,function(e){var t;t="succeeded"==e.status?{statusCode:O.getResponseStatusCode(e),headers:O.getResponseHeaders(e),body:O.getResponseBody(e)}:O.buildHttpResponseFromOfficeJsError(e.error.code,e.error.message),C.log("Response:"),C.log(JSON.stringify(t)),n(t)})})},n.validateAndNormalizeRequest=function(e){if(C.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:"request"});C.isNullOrEmptyString(e.method)&&(e.method="GET"),e.method=e.method.toUpperCase();var t=!1;if("object"==typeof e.headers&&e.headers[d.testRequestNameHeader]&&(t=!0),!t){var n=S._getCurrentTestNameWithSequenceId();n&&(e.headers||(e.headers={}),e.headers[d.testRequestNameHeader]=n)}},n.logRequest=function(e){if(C._logEnabled){if(C.log("---HTTP Request---"),C.log(e.method+" "+e.url),e.headers)for(var t in e.headers)C.log(t+": "+e.headers[t]);n._logBodyEnabled&&C.log(C._getRequestBodyText(e))}},n.logResponse=function(e){if(C._logEnabled){if(C.log("---HTTP Response---"),C.log(""+e.statusCode),e.headers)for(var t in e.headers)C.log(t+": "+e.headers[t]);n._logBodyEnabled&&C.log(e.body)}},n._logBodyEnabled=!1,n);function n(){}m.HttpUtility=s;var h,r,i,o,c=(l.init=function(e){if("object"==typeof e&&e){var a=new l(e);l.s_instance=a,s.setCustomSendLocalDocumentRequestFunc(function(e){e=C._validateLocalDocumentRequest(e);var t=0;C.isReadonlyRestRequest(e.method)||(t=1);var n=e.url.indexOf("?");if(0<=n){var r=e.url.substr(n+1),i=C._parseRequestFlagsAndCustomDataFromQueryStringIfAny(r);0<=i.flags&&(t=i.flags)}"string"==typeof e.body&&(e.body=JSON.parse(e.body));var o={id:l.nextId(),type:1,flags:t,message:e};return a.sendMessageToHostAndExpectResponse(o).then(function(e){return e.message})});for(var t=0;t<l.s_onInitedHandlers.length;t++)l.s_onInitedHandlers[t](a)}},Object.defineProperty(l,"instance",{get:function(){return l.s_instance},enumerable:!0,configurable:!0}),l.prototype.sendMessageToHost=function(e){this.m_bridge.sendMessageToHost(JSON.stringify(e))},l.prototype.sendMessageToHostAndExpectResponse=function(n){var r=this,e=C.createPromise(function(e,t){r.m_promiseResolver[n.id]=e});return this.m_bridge.sendMessageToHost(JSON.stringify(n)),e},l.prototype.addHostMessageHandler=function(e){this.m_handlers.push(e)},l.prototype.removeHostMessageHandler=function(e){var t=this.m_handlers.indexOf(e);0<=t&&this.m_handlers.splice(t,1)},l.onInited=function(e){l.s_onInitedHandlers.push(e),l.s_instance&&e(l.s_instance)},l.prototype.dispatchMessage=function(e){if("number"==typeof e.id){var t=this.m_promiseResolver[e.id];if(t)return t(e),void delete this.m_promiseResolver[e.id]}for(var n=0;n<this.m_handlers.length;n++)this.m_handlers[n](e)},l.nextId=function(){return l.s_nextId++},l.s_onInitedHandlers=[],l.s_nextId=1,l);function l(e){var a=this;this.m_bridge=e,this.m_promiseResolver={},this.m_handlers=[],this.m_bridge.onMessageFromHost=function(e){var t=JSON.parse(e);if(3==t.type){var n=t.message;if(n&&n.entries)for(var r=0;r<n.entries.length;r++){var i=n.entries[r];if(Array.isArray(i)){var o={messageCategory:i[0],messageType:i[1],targetId:i[2],message:i[3],id:i[4]};n.entries[r]=o}}}a.dispatchMessage(t)}}function u(e){var t=i.call(this,"string"==typeof e?e:e.message)||this;if(Object.setPrototypeOf(t,u.prototype),t.name="RichApi.Error","string"==typeof e?t.message=e:(t.code=e.code,t.message=e.message,t.traceMessages=e.traceMessages||[],t.innerError=e.innerError||null,t.debugInfo=t._createDebugInfo(e.debugInfo||{}),t.httpStatusCode=e.httpStatusCode,t.data=e.data),C.isNullOrUndefined(t.httpStatusCode)||200===t.httpStatusCode){var n={};n[g.accessDenied]=401,n[g.connectionFailure]=500,n[g.generalException]=500,n[g.invalidArgument]=400,n[g.invalidObjectPath]=400,n[g.invalidOrTimedOutSession]=408,n[g.invalidRequestContext]=400,n[g.timeout]=408,n[g.valueNotLoaded]=400,t.httpStatusCode=n[t.code]}return C.isNullOrUndefined(t.httpStatusCode)&&(t.httpStatusCode=500),t}m.HostBridge=c,"object"==typeof _richApiNativeBridge&&_richApiNativeBridge&&c.init(_richApiNativeBridge),r=h=m._Internal||(m._Internal={}),i=Error,__extends(u,i),u.prototype.toString=function(){return this.code+": "+this.message},u.prototype._createDebugInfo=function(e){var t={code:this.code,message:this.message,toString:function(){return JSON.stringify(this)}};for(var n in e)t[n]=e[n];return this.innerError&&(this.innerError instanceof r.RuntimeError?t.innerError=this.innerError.debugInfo:t.innerError=this.innerError),t},u._createInvalidArgError=function(e){return new r.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C.isNullOrEmptyString(e.argumentName)?C._getResourceString(y.invalidArgumentGeneric):C._getResourceString(y.invalidArgument,e.argumentName),debugInfo:e.errorLocation?{errorLocation:e.errorLocation}:{},innerError:e.innerError})},o=u,r.RuntimeError=o,m.Error=h.RuntimeError;var g=(p.apiNotFound="ApiNotFound",p.accessDenied="AccessDenied",p.generalException="GeneralException",p.activityLimitReached="ActivityLimitReached",p.invalidArgument="InvalidArgument",p.connectionFailure="ConnectionFailure",p.timeout="Timeout",p.invalidOrTimedOutSession="InvalidOrTimedOutSession",p.invalidObjectPath="InvalidObjectPath",p.invalidRequestContext="InvalidRequestContext",p.valueNotLoaded="ValueNotLoaded",p.requestPayloadSizeLimitExceeded="RequestPayloadSizeLimitExceeded",p.responsePayloadSizeLimitExceeded="ResponsePayloadSizeLimitExceeded",p.writeNotSupportedWhenModalDialogOpen="WriteNotSupportedWhenModalDialogOpen",p.undoNotSupported="UndoNotSupported",p);function p(){}m.CoreErrorCodes=g;var y=(f.apiNotFoundDetails="ApiNotFoundDetails",f.connectionFailureWithStatus="ConnectionFailureWithStatus",f.connectionFailureWithDetails="ConnectionFailureWithDetails",f.invalidArgument="InvalidArgument",f.invalidArgumentGeneric="InvalidArgumentGeneric",f.timeout="Timeout",f.invalidOrTimedOutSessionMessage="InvalidOrTimedOutSessionMessage",f.invalidSheetName="InvalidSheetName",f.invalidObjectPath="InvalidObjectPath",f.invalidRequestContext="InvalidRequestContext",f.valueNotLoaded="ValueNotLoaded",f);function f(){}m.CoreResourceStrings=y;var d=(b.flags="flags",b.sourceLibHeader="SdkVersion",b.processQuery="ProcessQuery",b.localDocument="http://document.localhost/",b.localDocumentApiPrefix="http://document.localhost/_api/",b.customData="customdata",b.testRequestNameHeader="x-test-request-name",b);function b(){}m.CoreConstants=d;var v,O=(P.buildMessageArrayForIRequestExecutor=function(e,t,n,r,i){var o=JSON.stringify(n.Body);C.log("Request:"),C.log(o);var a={};return C._copyHeaders(n.Headers,a),a[d.sourceLibHeader]=r,P.buildRequestMessageSafeArray(e,t,"POST",d.processQuery,a,o,i)},P.buildResponseOnSuccess=function(e,t){var n={HttpStatusCode:200,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.Body=JSON.parse(e),n.Headers=t,n},P.buildResponseOnError=function(e,t){var n={HttpStatusCode:500,ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return n.ErrorCode=g.generalException,n.ErrorMessage=t,e==P.OfficeJsErrorCode_ooeNoCapability?(n.ErrorCode=g.accessDenied,n.HttpStatusCode=401):e==P.OfficeJsErrorCode_ooeActivityLimitReached?(n.ErrorCode=g.activityLimitReached,n.HttpStatusCode=429):e==P.OfficeJsErrorCode_ooeInvalidOrTimedOutSession?(n.ErrorCode=g.invalidOrTimedOutSession,n.HttpStatusCode=408,n.ErrorMessage=C._getResourceString(y.invalidOrTimedOutSessionMessage)):e==P.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded?(n.ErrorCode=g.requestPayloadSizeLimitExceeded,n.HttpStatusCode=400):e==P.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded?(n.ErrorCode=g.responsePayloadSizeLimitExceeded,n.HttpStatusCode=400):e==P.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen?(n.ErrorCode=g.writeNotSupportedWhenModalDialogOpen,n.HttpStatusCode=400):e==P.OfficeJsErrorCode_ooeInvalidSheetName?(n.ErrorCode=g.invalidRequestContext,n.HttpStatusCode=400,n.ErrorMessage=C._getResourceString(y.invalidSheetName)):e==P.OfficeJsErrorCode_ooeUndoNotSupported&&(n.ErrorCode=g.undoNotSupported,n.HttpStatusCode=400),n},P.buildHttpResponseFromOfficeJsError=function(e,t){var n=500,r={error:{}};return r.error.code=g.generalException,r.error.message=t,e===P.OfficeJsErrorCode_ooeNoCapability?(n=403,r.error.code=g.accessDenied):e===P.OfficeJsErrorCode_ooeActivityLimitReached&&(n=429,r.error.code=g.activityLimitReached),{statusCode:n,headers:{},body:JSON.stringify(r)}},P.buildRequestMessageSafeArray=function(e,t,n,r,i,o,a){var s=[];if(i)for(var c in i)s.push(c),s.push(i[c]);return[e,n,r,s,o,0,t,"","","","","",""].concat(a?["",a]:[])},P.getResponseBody=function(e){return P.getResponseBodyFromSafeArray(e.value.data)},P.getResponseHeaders=function(e){return P.getResponseHeadersFromSafeArray(e.value.data)},P.getResponseBodyFromSafeArray=function(e){var t=e[2];return"string"==typeof t?t:t.join("")},P.getResponseHeadersFromSafeArray=function(e){var t=e[1];if(!t)return null;for(var n={},r=0;r<t.length-1;r+=2)n[t[r]]=t[r+1];return n},P.getResponseStatusCode=function(e){return P.getResponseStatusCodeFromSafeArray(e.value.data)},P.getResponseStatusCodeFromSafeArray=function(e){return e[0]},P.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012,P.OfficeJsErrorCode_ooeActivityLimitReached=5102,P.OfficeJsErrorCode_ooeNoCapability=7e3,P.OfficeJsErrorCode_ooeRequestPayloadSizeLimitExceeded=5103,P.OfficeJsErrorCode_ooeResponsePayloadSizeLimitExceeded=5104,P.OfficeJsErrorCode_ooeWriteNotSupportedWhenModalDialogOpen=5016,P.OfficeJsErrorCode_ooeInvalidSheetName=1014,P.OfficeJsErrorCode_ooeUndoNotSupported=5017,P);function P(){}m.RichApiMessageUtility=O,(v=h=m._Internal||(m._Internal={})).getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;if(void 0!==OfficeExtension&&OfficeExtension.Promise)return OfficeExtension.Promise;throw new v.Error("No Promise implementation found")};var C=(R.log=function(e){R._logEnabled&&"undefined"!=typeof console&&console.log&&console.log(e)},R.checkArgumentNull=function(e,t){if(R.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:t})},R.isNullOrUndefined=function(e){return null==e},R.isUndefined=function(e){return void 0===e},R.isNullOrEmptyString=function(e){return null==e||0==e.length},R.isPlainJsonObject=function(e){if(R.isNullOrUndefined(e))return!1;if("object"!=typeof e)return!1;if("[object Object]"!==Object.prototype.toString.apply(e))return!1;if(e.constructor&&!Object.prototype.hasOwnProperty.call(e,"constructor")&&!Object.prototype.hasOwnProperty.call(e.constructor.prototype,"hasOwnProperty"))return!1;for(var t in e)if(!Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},R.trim=function(e){return e.replace(new RegExp("^\\s+|\\s+$","g"),"")},R.caseInsensitiveCompareString=function(e,t){return R.isNullOrUndefined(e)?R.isNullOrUndefined(t):!R.isNullOrUndefined(t)&&e.toUpperCase()==t.toUpperCase()},R.isReadonlyRestRequest=function(e){return R.caseInsensitiveCompareString(e,"GET")},R._getResourceString=function(e,t){var n;if("undefined"!=typeof window&&window.Strings&&window.Strings.OfficeOM){var r="L_"+e,i=window.Strings.OfficeOM[r];i&&(n=i)}return n=(n=n||R.s_resourceStringValues[e])||e,R.isNullOrUndefined(t)||(n=Array.isArray(t)?R._formatString(n,t):n.replace("{0}",t)),n},R._formatString=function(e,n){return e.replace(/\{\d\}/g,function(e){var t=parseInt(e.substr(1,e.length-2));if(t<n.length)return n[t];throw h.RuntimeError._createInvalidArgError({argumentName:"format"})})},Object.defineProperty(R,"Promise",{get:function(){return h.getPromiseType()},enumerable:!0,configurable:!0}),R.createPromise=function(e){return new R.Promise(e)},R._createPromiseFromResult=function(n){return R.createPromise(function(e,t){e(n)})},R._createPromiseFromException=function(n){return R.createPromise(function(e,t){t(n)})},R._createTimeoutPromise=function(n){return R.createPromise(function(e,t){setTimeout(function(){e(null)},n)})},R._createInvalidArgError=function(e){return h.RuntimeError._createInvalidArgError(e)},R._isLocalDocumentUrl=function(e){return 0<R._getLocalDocumentUrlPrefixLength(e)},R._getLocalDocumentUrlPrefixLength=function(e){for(var t=["http://document.localhost","https://document.localhost","//document.localhost"],n=e.toLowerCase().trim(),r=0;r<t.length;r++){if(n===t[r])return t[r].length;if(n.substr(0,t[r].length+1)===t[r]+"/")return t[r].length+1}return 0},R._validateLocalDocumentRequest=function(e){var t=R._getLocalDocumentUrlPrefixLength(e.url);if(t<=0)throw h.RuntimeError._createInvalidArgError({argumentName:"request"});var n=e.url.substr(t),r=n.toLowerCase();return"_api"===r?n="":"_api/"===r.substr(0,"_api/".length)&&(n=n.substr("_api/".length)),{method:e.method,url:n,headers:e.headers,body:e.body}},R._parseRequestFlagsAndCustomDataFromQueryStringIfAny=function(e){for(var t={flags:-1,customData:""},n=e.split("&"),r=0;r<n.length;r++){var i=n[r].split("=");if(i[0].toLowerCase()===d.flags){var o=parseInt(i[1]);o&=65535,t.flags=o}else i[0].toLowerCase()===d.customData&&(t.customData=decodeURIComponent(i[1]))}return t},R._getRequestBodyText=function(e){var t="";return"string"==typeof e.body?t=e.body:e.body&&"object"==typeof e.body&&(t=JSON.stringify(e.body)),t},R._parseResponseBody=function(e){if("string"!=typeof e.body)return e.body;var t=R.trim(e.body);return JSON.parse(t)},R._buildRequestMessageSafeArray=function(e){var t=0;R.isReadonlyRestRequest(e.method)||(t=1);var n="";if(e.url.substr(0,d.processQuery.length).toLowerCase()===d.processQuery.toLowerCase()){var r=e.url.indexOf("?");if(0<r){var i=e.url.substr(r+1),o=R._parseRequestFlagsAndCustomDataFromQueryStringIfAny(i);0<=o.flags&&(t=o.flags),n=o.customData}}return O.buildRequestMessageSafeArray(n,t,e.method,e.url,e.headers,R._getRequestBodyText(e))},R._parseHttpResponseHeaders=function(e){var t={};if(!R.isNullOrEmptyString(e))for(var n=new RegExp("\r?\n"),r=e.split(n),i=0;i<r.length;i++){var o=r[i];if(null!=o){var a=o.indexOf(":");if(0<a){var s=o.substr(0,a),c=o.substr(a+1);s=R.trim(s),c=R.trim(c),t[s.toUpperCase()]=c}}}return t},R._parseErrorResponse=function(e){var t=R._parseErrorResponseBody(e),n=e.statusCode.toString();if(R.isNullOrUndefined(t)||"object"!=typeof t||!t.error)return R._createDefaultErrorResponse(n);var r=t.error,i=r.innerError;return i&&i.code?R._createErrorResponse(i.code,n,i.message):r.code?R._createErrorResponse(r.code,n,r.message):R._createDefaultErrorResponse(n)},R._parseErrorResponseBody=function(e){if(R.isPlainJsonObject(e.body))return e.body;if(!R.isNullOrEmptyString(e.body)){var t=R.trim(e.body);try{return JSON.parse(t)}catch(e){R.log("Error when parse "+t)}}},R._createDefaultErrorResponse=function(e){return{errorCode:g.connectionFailure,errorMessage:R._getResourceString(y.connectionFailureWithStatus,e)}},R._createErrorResponse=function(e,t,n){return{errorCode:e,errorMessage:R._getResourceString(y.connectionFailureWithDetails,[t,e,n])}},R._copyHeaders=function(e,t){if(e&&t)for(var n in e)t[n]=e[n]},R.addResourceStringValues=function(e){for(var t in e)R.s_resourceStringValues[t]=e[t]},R._logEnabled=!1,R.s_resourceStringValues={ApiNotFoundDetails:"The method or property {0} is part of the {1} requirement set, which is not available in your version of {2}.",ConnectionFailureWithStatus:"The request failed with status code of {0}.",ConnectionFailureWithDetails:"The request failed with status code of {0}, error code {1} and the following error message: {2}",InvalidArgument:"The argument '{0}' doesn't work for this situation, is missing, or isn't in the right format.",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.',InvalidRequestContext:"Cannot use the object across different request contexts.",Timeout:"The operation has timed out.",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.'},R);function R(){}m.CoreUtility=C;var S=(I.setMock=function(e){I.s_isMock=e},I.isMock=function(){return I.s_isMock},I._setCurrentTestName=function(e){I.s_currentTestName=e,I.s_currentTestSequenceId=0},I._getCurrentTestNameWithSequenceId=function(){return I.s_currentTestName?I.s_currentTestName+"."+ ++I.s_currentTestSequenceId:null},I);function I(){}m.TestUtility=S,m._internalConfig={showDisposeInfoInDebugInfo:!1,showInternalApiInDebugInfo:!1,enableEarlyDispose:!0,alwaysPolyfillClientObjectUpdateMethod:!1,alwaysPolyfillClientObjectRetrieveMethod:!1,enableConcurrentFlag:!0,enableUndoableFlag:!0,appendTypeNameToObjectPathInfo:!1,enablePreviewExecution:!1},m.config={extendedErrorLogging:!1};var A=(T.createSetPropertyAction=function(e,t,n,r,i){Y.validateObjectPath(t);var o={Id:e._nextId(),ActionType:4,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},a=[r],s=Y.setMethodArguments(e,o.ArgumentInfo,a);Y.validateReferencedObjectPaths(s);var c=new x(o,0,i);if(c.referencedObjectPath=t._objectPath,c.referencedArgumentObjectPaths=s,m._internalConfig.enablePreviewExecution&&0!=(16&i)){var l={Id:e._nextId(),ActionType:4,Name:n,ObjectId:"",ObjectType:"",Arguments:[r]};t._addPreviewExecutionAction(l)}return t._addAction(c)},T.createQueryAction=function(e,t,n,r){Y.validateObjectPath(t);var i={Id:e._nextId(),ActionType:2,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},o=new x(i,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,r)},T.createQueryAsJsonAction=function(e,t,n,r){Y.validateObjectPath(t);var i={Id:e._nextId(),ActionType:7,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,QueryInfo:n},o=new x(i,1,4);return o.referencedObjectPath=t._objectPath,t._addAction(o,r)},T.createUpdateAction=function(e,t,n){Y.validateObjectPath(t);var r={Id:e._nextId(),ActionType:9,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},i=new x(r,0,0);return i.referencedObjectPath=t._objectPath,t._addAction(i)},T);function T(){}m.CommonActionFactory=A;var N=(Object.defineProperty(D.prototype,"_objectPath",{get:function(){return this.m_objectPath},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"_context",{get:function(){return this.m_contextBase},enumerable:!0,configurable:!0}),D.prototype._addAction=function(n,r){var i=this;return void 0===r&&(r=null),C.createPromise(function(e,t){i._context._addServiceApiAction(n,r,e,t)})},D.prototype._addPreviewExecutionAction=function(e){},D.prototype._retrieve=function(e,t){var n=m._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!Y.isSetSupported("RichApiRuntime","1.1");var r=w._parseQueryOption(e);return n?A.createQueryAction(this._context,this,r,t):A.createQueryAsJsonAction(this._context,this,r,t)},D.prototype._recursivelyUpdate=function(e){var t=m._internalConfig.alwaysPolyfillClientObjectUpdateMethod;t=t||!Y.isSetSupported("RichApiRuntime","1.2");try{var n=this[J.scalarPropertyNames];n=n||[];var r=this[J.scalarPropertyUpdateable];if(!r){r=[];for(var i=0;i<n.length;i++)r.push(!1)}var o=this[J.navigationPropertyNames];o=o||[];var a={},s={},c=0;for(var l in e){var u=n.indexOf(l);if(0<=u){if(!r[u])throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.attemptingToSetReadOnlyProperty,l),debugInfo:{errorLocation:l}});a[l]=e[l],++c}else{if(!(0<=o.indexOf(l)))throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.propertyDoesNotExist,l),debugInfo:{errorLocation:l}});s[l]=e[l]}}if(0<c)if(t)for(i=0;i<n.length;i++){var p=a[l=n[i]];Y.isUndefined(p)||A.createSetPropertyAction(this._context,this,l,p)}else A.createUpdateAction(this._context,this,a);for(var l in s){var f=this[l],d=s[l];f._recursivelyUpdate(d)}}catch(e){throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(y.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:e})}},D);function D(e,t){this.m_contextBase=e,this.m_objectPath=t}m.ClientObjectBase=N;var x=(Object.defineProperty(E.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),E);function E(e,t,n){this.m_actionInfo=e,this.m_operationType=t,this.m_flags=n}m.Action=x;var k=(Object.defineProperty(j.prototype,"id",{get:function(){var e=this.m_objectPathInfo.ArgumentInfo;if(e){var t=e.Arguments;if(t)return t[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"parent",{get:function(){var e=this.m_parentObjectPath;if(e)return e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"parentId",{get:function(){return this.parent?this.parent.id:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(e){this.m_argumentObjectPaths=e},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"isValid",{get:function(){return this.m_isValid},set:function(e){!(this.m_isValid=e)&&6===this.m_objectPathInfo.ObjectPathType&&this.m_savedObjectPathInfo&&(j.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(j.prototype,"originalObjectPathInfo",{get:function(){return this.m_originalObjectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(j.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(e){this.m_getByIdMethodName=e},enumerable:!0,configurable:!0}),j.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=7,this.m_objectPathInfo.Name="",this.m_parentObjectPath=null},j.prototype.saveOriginalObjectPathInfo=function(){m.config.extendedErrorLogging&&!this.m_originalObjectPathInfo&&(this.m_originalObjectPathInfo={},j.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo))},j.prototype.updateUsingObjectData=function(e,t){var n=e[J.referenceId];if(!C.isNullOrEmptyString(n)){if(!this.m_savedObjectPathInfo&&!this.isInvalidAfterRequest&&j.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)){var r={};j.copyObjectPathInfo(this.m_objectPathInfo,r),this.m_savedObjectPathInfo={pathInfo:r,parent:this.m_parentObjectPath}}return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_objectPathInfo.ObjectPathType=6,this.m_objectPathInfo.Name=n,delete this.m_objectPathInfo.ParentObjectPathId,void(this.m_parentObjectPath=null)}if(t){var i=t[J.collectionPropertyPath];if(!C.isNullOrEmptyString(i)&&t.context){var o=Y.tryGetObjectIdFromLoadOrRetrieveResult(e);if(!C.isNullOrUndefined(o)){for(var a=i.split("."),s=t.context[a[0]],c=1;c<a.length;c++)s=s[a[c]];return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),this.m_parentObjectPath=s._objectPath,this.m_objectPathInfo.ParentObjectPathId=this.m_parentObjectPath.objectPathInfo.Id,this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name="",void(this.m_objectPathInfo.ArgumentInfo.Arguments=[o])}}}var l=this.parentObjectPath&&this.parentObjectPath.isCollection,u=this.getByIdMethodName;if((l||!C.isNullOrEmptyString(u))&&(o=Y.tryGetObjectIdFromLoadOrRetrieveResult(e),!C.isNullOrUndefined(o)))return this.saveOriginalObjectPathInfo(),this.resetForUpdateUsingObjectData(),C.isNullOrEmptyString(u)?(this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name=""):(this.m_objectPathInfo.ObjectPathType=3,this.m_objectPathInfo.Name=u),void(this.m_objectPathInfo.ArgumentInfo.Arguments=[o])},j.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,this.m_getByIdMethodName=null},j.isRestorableObjectPath=function(e){return 1===e||5===e||3===e||4===e},j.copyObjectPathInfo=function(e,t){t.Id=e.Id,t.ArgumentInfo=e.ArgumentInfo,t.Name=e.Name,t.ObjectPathType=e.ObjectPathType,t.ParentObjectPathId=e.ParentObjectPathId},j);function j(e,t,n,r,i,o){this.m_objectPathInfo=e,this.m_parentObjectPath=t,this.m_isCollection=n,this.m_isInvalidAfterRequest=r,this.m_isValid=!0,this.m_operationType=i,this.m_flags=o}m.ObjectPath=k;var w=(F.prototype._nextId=function(){return++this.m_nextId},F.prototype._addServiceApiAction=function(e,t,n,r){this.m_serviceApiQueue||(this.m_serviceApiQueue=new G(this)),this.m_serviceApiQueue.add(e,t,n,r)},F._parseQueryOption=function(e){var t={};if("string"==typeof e){var n=e;t.Select=Y._parseSelectExpand(n)}else if(Array.isArray(e))t.Select=Y._parseSelectExpand(e);else if("object"==typeof e){var r=e;if(F.isLoadOption(r)){if("string"==typeof r.select)t.Select=Y._parseSelectExpand(r.select);else if(Array.isArray(r.select))t.Select=Y._parseSelectExpand(r.select);else if(!Y.isNullOrUndefined(r.select))throw h.RuntimeError._createInvalidArgError({argumentName:"option.select"});if("string"==typeof r.expand)t.Expand=Y._parseSelectExpand(r.expand);else if(Array.isArray(r.expand))t.Expand=Y._parseSelectExpand(r.expand);else if(!Y.isNullOrUndefined(r.expand))throw h.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if("number"==typeof r.top)t.Top=r.top;else if(!Y.isNullOrUndefined(r.top))throw h.RuntimeError._createInvalidArgError({argumentName:"option.top"});if("number"==typeof r.skip)t.Skip=r.skip;else if(!Y.isNullOrUndefined(r.skip))throw h.RuntimeError._createInvalidArgError({argumentName:"option.skip"})}else t=F.parseStrictLoadOption(e)}else if(!Y.isNullOrUndefined(e))throw h.RuntimeError._createInvalidArgError({argumentName:"option"});return t},F.isLoadOption=function(e){if(!Y.isUndefined(e.select)&&("string"==typeof e.select||Array.isArray(e.select)))return!0;if(!Y.isUndefined(e.expand)&&("string"==typeof e.expand||Array.isArray(e.expand)))return!0;if(!Y.isUndefined(e.top)&&"number"==typeof e.top)return!0;if(!Y.isUndefined(e.skip)&&"number"==typeof e.skip)return!0;for(var t in e)return!1;return!0},F.parseStrictLoadOption=function(e){var t={Select:[]};return F.parseStrictLoadOptionHelper(t,"","option",e),t},F.combineQueryPath=function(e,t,n){return 0===e.length?t:e+n+t},F.parseStrictLoadOptionHelper=function(e,t,n,r){for(var i in r){var o=r[i];if("$all"===i){if("boolean"!=typeof o)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});o&&e.Select.push(F.combineQueryPath(t,"*","/"))}else if("$top"===i){if("number"!=typeof o||0<t.length)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});e.Top=o}else if("$skip"===i){if("number"!=typeof o||0<t.length)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});e.Skip=o}else if("boolean"==typeof o)o&&e.Select.push(F.combineQueryPath(t,i,"/"));else{if("object"!=typeof o)throw h.RuntimeError._createInvalidArgError({argumentName:F.combineQueryPath(n,i,".")});F.parseStrictLoadOptionHelper(e,F.combineQueryPath(t,i,"/"),F.combineQueryPath(n,i,"."),o)}}},F);function F(){this.m_nextId=0}m.ClientRequestContextBase=w;var L=(M.prototype._handleResult=function(e){C.isNullOrUndefined(e)?this.m_objectPath._updateAsNullObject():this.m_objectPath.updateUsingObjectData(e,null)},M);function M(e){this.m_objectPath=e}var B=(H.prototype.addAction=function(e){this.m_actions.push(e),1==e.actionInfo.ActionType&&(this.m_instantiatedObjectPaths[e.actionInfo.ObjectPathId]=e)},H.prototype.addPreviewExecutionAction=function(e){this.m_previewExecutionActions.push(e)},Object.defineProperty(H.prototype,"hasActions",{get:function(){return 0<this.m_actions.length},enumerable:!0,configurable:!0}),H.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]},H.prototype.ensureInstantiateObjectPath=function(e){if(e){if(this.m_instantiatedObjectPaths[e.objectPathInfo.Id])return;if(this.ensureInstantiateObjectPath(e.parentObjectPath),this.ensureInstantiateObjectPaths(e.argumentObjectPaths),!this.m_instantiatedObjectPaths[e.objectPathInfo.Id]){var t={Id:this.m_contextBase._nextId(),ActionType:1,Name:"",ObjectPathId:e.objectPathInfo.Id},n=new x(t,1,4);n.referencedObjectPath=e,this.addReferencedObjectPath(e),this.addAction(n);var r=new L(e);this.addActionResultHandler(n,r)}}},H.prototype.ensureInstantiateObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.ensureInstantiateObjectPath(e[t])},H.prototype.addReferencedObjectPath=function(e){if(e&&!this.m_referencedObjectPaths[e.objectPathInfo.Id]){if(!e.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:C._getResourceString(y.invalidObjectPath,Y.getObjectPathExpression(e)),debugInfo:{errorLocation:Y.getObjectPathExpression(e)}});for(;e;)3==(this.m_referencedObjectPaths[e.objectPathInfo.Id]=e).objectPathInfo.ObjectPathType&&this.addReferencedObjectPaths(e.argumentObjectPaths),e=e.parentObjectPath}},H.prototype.addReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)this.addReferencedObjectPath(e[t])},H.prototype.addActionResultHandler=function(e,t){this.m_actionResultHandler[e.actionInfo.Id]=t},H.prototype.aggregrateRequestFlags=function(e,t,n){return 0===t&&(e|=1,0==(2&n)&&(e&=-17),0==(8&n)&&(e&=-257),e&=-5),1&n&&(e|=2),0==(4&n)&&(e&=-5),e},H.prototype.finallyNormalizeFlags=function(e){return 0==(1&e)&&(e&=-17,e&=-257),m._internalConfig.enableConcurrentFlag||(e&=-5),m._internalConfig.enableUndoableFlag||(e&=-17),Y.isSetSupported("RichApiRuntimeFlag","1.1")||(e&=-5,e&=-17),Y.isSetSupported("RichApiRuntimeFlag","1.2")||(e&=-257),"number"==typeof this.m_flagsForTesting&&(e=this.m_flagsForTesting),e},H.prototype.buildRequestMessageBodyAndRequestFlags=function(){m._internalConfig.enableEarlyDispose&&H._calculateLastUsedObjectPathIds(this.m_actions);var e=276,t={};for(var n in this.m_referencedObjectPaths)e=this.aggregrateRequestFlags(e,this.m_referencedObjectPaths[n].operationType,this.m_referencedObjectPaths[n].flags),t[n]=this.m_referencedObjectPaths[n].objectPathInfo;for(var r=[],i=!1,o=0;o<this.m_actions.length;o++){var a=this.m_actions[o];3===a.actionInfo.ActionType&&a.actionInfo.Name===J.keepReference&&(i=!0),e=this.aggregrateRequestFlags(e,a.operationType,a.flags),r.push(a.actionInfo)}e=this.finallyNormalizeFlags(e);var s={AutoKeepReference:this.m_contextBase._autoCleanup&&i,Actions:r,ObjectPaths:t};return 0<this.m_previewExecutionActions.length&&(s.PreviewExecutionActions=this.m_previewExecutionActions,e|=4096),{body:s,flags:e}},H.prototype.processResponse=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t],r=this.m_actionResultHandler[n.ActionId];r&&r._handleResult(n.Value)}},H.prototype.invalidatePendingInvalidObjectPaths=function(){for(var e in this.m_referencedObjectPaths)this.m_referencedObjectPaths[e].isInvalidAfterRequest&&(this.m_referencedObjectPaths[e].isValid=!1)},H.prototype._addPreSyncPromise=function(e){this.m_preSyncPromises.push(e)},Object.defineProperty(H.prototype,"_preSyncPromises",{get:function(){return this.m_preSyncPromises},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"_actions",{get:function(){return this.m_actions},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"_objectPaths",{get:function(){return this.m_referencedObjectPaths},enumerable:!0,configurable:!0}),H.prototype._removeKeepReferenceAction=function(e){for(var t=this.m_actions.length-1;0<=t;t--){var n=this.m_actions[t].actionInfo;if(n.ObjectPathId===e&&3===n.ActionType&&n.Name===J.keepReference){this.m_actions.splice(t,1);break}}},H._updateLastUsedActionIdOfObjectPathId=function(e,t,n){for(;t;){if(e[t.objectPathInfo.Id])return;e[t.objectPathInfo.Id]=n;var r=t.argumentObjectPaths;if(r)for(var i=r.length,o=0;o<i;o++)H._updateLastUsedActionIdOfObjectPathId(e,r[o],n);t=t.parentObjectPath}},H._calculateLastUsedObjectPathIds=function(e){for(var t={},n=e.length,r=n-1;0<=r;--r){var i=(p=e[r]).actionInfo.Id;p.referencedObjectPath&&H._updateLastUsedActionIdOfObjectPathId(t,p.referencedObjectPath,i);var o=p.referencedArgumentObjectPaths;if(o)for(var a=o.length,s=0;s<a;s++)H._updateLastUsedActionIdOfObjectPathId(t,o[s],i)}var c={};for(var l in t){var u=c[i=t[l]];u||(u=[],c[i]=u),u.push(parseInt(l))}for(r=0;r<n;r++){var p,f=c[(p=e[r]).actionInfo.Id];f&&0<f.length?p.actionInfo.L=f:p.actionInfo.L&&delete p.actionInfo.L}},H);function H(e){this.m_contextBase=e,this.m_actions=[],this.m_actionResultHandler={},this.m_referencedObjectPaths={},this.m_instantiatedObjectPaths={},this.m_preSyncPromises=[],this.m_previewExecutionActions=[]}m.ClientRequestBase=B;var U=(Object.defineProperty(W.prototype,"value",{get:function(){if(!this.m_isLoaded)throw new h.RuntimeError({code:g.valueNotLoaded,httpStatusCode:400,message:C._getResourceString(y.valueNotLoaded),debugInfo:{errorLocation:"clientResult.value"}});return this.m_value},enumerable:!0,configurable:!0}),W.prototype._handleResult=function(e){this.m_isLoaded=!0,"object"==typeof e&&e&&e._IsNull||(1===this.m_type?this.m_value=Y.adjustToDateTime(e):this.m_value=e)},W);function W(e){this.m_type=e}m.ClientResult=U;var G=(V.prototype.add=function(e,t,n,r){var i=this;this.m_actions.push({action:e,resultHandler:t,resolve:n,reject:r}),1===this.m_actions.length&&setTimeout(function(){return i.processActions()},0)},V.prototype.processActions=function(){var t=this;if(0!==this.m_actions.length){var n=this.m_actions;this.m_actions=[];for(var r=new B(this.m_context),e=0;e<n.length;e++){var i=n[e];r.ensureInstantiateObjectPath(i.action.referencedObjectPath),r.ensureInstantiateObjectPaths(i.action.referencedArgumentObjectPaths),r.addAction(i.action),r.addReferencedObjectPath(i.action.referencedObjectPath),r.addReferencedObjectPaths(i.action.referencedArgumentObjectPaths)}var o=r.buildRequestMessageBodyAndRequestFlags(),a=o.body,s=o.flags,c={Url:d.localDocumentApiPrefix,Headers:null,Body:a};C.log("Request:"),C.log(JSON.stringify(a)),(new z).executeAsync(this.m_context._customData,s,c).then(function(e){t.processResponse(r,n,e)}).catch(function(e){for(var t=0;t<n.length;t++)n[t].reject(e)})}},V.prototype.processResponse=function(e,t,n){var r=this.getErrorFromResponse(n),i=null;n.Body.Results?i=n.Body.Results:n.Body.ProcessedResults&&n.Body.ProcessedResults.Results&&(i=n.Body.ProcessedResults.Results),i=i||[],this.processActionResults(e,t,i,r)},V.prototype.getErrorFromResponse=function(e){return C.isNullOrEmptyString(e.ErrorCode)?e.Body&&e.Body.Error?new h.RuntimeError({code:e.Body.Error.Code,httpStatusCode:e.Body.Error.HttpStatusCode,message:e.Body.Error.Message}):null:new h.RuntimeError({code:e.ErrorCode,httpStatusCode:e.HttpStatusCode,message:e.ErrorMessage})},V.prototype.processActionResults=function(e,t,n,r){e.processResponse(n);for(var i=0;i<t.length;i++){for(var o=t[i],a=o.action.actionInfo.Id,s=!1,c=0;c<n.length;c++)if(a==n[c].ActionId){var l=n[c].Value;o.resultHandler&&(o.resultHandler._handleResult(l),l=o.resultHandler.value),o.resolve&&o.resolve(l),s=!0;break}!s&&o.reject&&(r?o.reject(r):o.reject("No response for the action."))}},V);function V(e){this.m_context=e,this.m_actions=[]}var z=(q.prototype.getRequestUrl=function(e,t,n){void 0===n&&(n=a.graph.toString());var r=d.flags+"="+t.toString();switch(n){case a.graph.toString():"/"!=e.charAt(e.length-1)&&(e+="/"),e=(e+=d.processQuery)+"?"+r;break;case a.wfe.toString():e=(e=e+"&"+r)+"&wdRestPart=_api/"+d.processQuery}return e},q.prototype.executeAsync=function(e,t,n){var r=n.Headers?n.Headers[J.remoteEndpointTypeHeaderKey]:a.graph.toString(),i={method:"POST",url:this.getRequestUrl(n.Url,t,r),headers:{},body:n.Body};if(i.headers[d.sourceLibHeader]=q.SourceLibHeaderValue,i.headers["CONTENT-TYPE"]="application/json",n.Headers)for(var o in n.Headers)i.headers[o]=n.Headers[o];return(C._isLocalDocumentUrl(i.url)?s.sendLocalDocumentRequest:s.sendRequest)(i).then(function(e){var t;if(200===e.statusCode)t={HttpStatusCode:e.statusCode,ErrorCode:null,ErrorMessage:null,Headers:e.headers,Body:C._parseResponseBody(e)};else{C.log("Error Response:"+e.body);var n=C._parseErrorResponse(e);t={HttpStatusCode:e.statusCode,ErrorCode:n.errorCode,ErrorMessage:n.errorMessage,Headers:e.headers,Body:null,RawErrorResponseBody:C._parseErrorResponseBody(e)}}return t})},q.SourceLibHeaderValue="officejs-rest",q);function q(){}m.HttpRequestExecutor=z;var K,J=(__extends(X,K=d),X.collectionPropertyPath="_collectionPropertyPath",X.id="Id",X.idLowerCase="id",X.idPrivate="_Id",X.keepReference="_KeepReference",X.objectPathIdPrivate="_ObjectPathId",X.referenceId="_ReferenceId",X.items="_Items",X.itemsLowerCase="items",X.scalarPropertyNames="_scalarPropertyNames",X.scalarPropertyOriginalNames="_scalarPropertyOriginalNames",X.navigationPropertyNames="_navigationPropertyNames",X.scalarPropertyUpdateable="_scalarPropertyUpdateable",X.previewExecutionObjectId="_previewExecutionObjectId",X.remoteEndpointTypeHeaderKey="X-EndpointType",X);function X(){return null!==K&&K.apply(this,arguments)||this}m.CommonConstants=J;var Q,Y=(__extends(Z,Q=C),Z.validateObjectPath=function(e){for(var t=e._objectPath;t;){if(!t.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:C._getResourceString(y.invalidObjectPath,Z.getObjectPathExpression(t)),debugInfo:{errorLocation:Z.getObjectPathExpression(t)}});t=t.parentObjectPath}},Z.validateReferencedObjectPaths=function(e){if(e)for(var t=0;t<e.length;t++)for(var n=e[t];n;){if(!n.isValid)throw new h.RuntimeError({code:g.invalidObjectPath,httpStatusCode:400,message:C._getResourceString(y.invalidObjectPath,Z.getObjectPathExpression(n))});n=n.parentObjectPath}},Z._toCamelLowerCase=function(e){if(C.isNullOrEmptyString(e))return e;for(var t=0;t<e.length&&65<=e.charCodeAt(t)&&e.charCodeAt(t)<=90;)t++;return t<e.length?e.substr(0,t).toLowerCase()+e.substr(t):e.toLowerCase()},Z.adjustToDateTime=function(e){if(C.isNullOrUndefined(e))return null;if("string"==typeof e)return new Date(e);if(Array.isArray(e)){for(var t=e,n=0;n<t.length;n++)t[n]=Z.adjustToDateTime(t[n]);return t}throw C._createInvalidArgError({argumentName:"date"})},Z.tryGetObjectIdFromLoadOrRetrieveResult=function(e){var t=e[J.id];return C.isNullOrUndefined(t)&&(t=e[J.idLowerCase]),C.isNullOrUndefined(t)&&(t=e[J.idPrivate]),t},Z.getObjectPathExpression=function(e){for(var t="";e;){switch(e.objectPathInfo.ObjectPathType){case 1:t=t;break;case 2:t="new()"+(0<t.length?".":"")+t;break;case 3:t=Z.normalizeName(e.objectPathInfo.Name)+"()"+(0<t.length?".":"")+t;break;case 4:t=Z.normalizeName(e.objectPathInfo.Name)+(0<t.length?".":"")+t;break;case 5:t="getItem()"+(0<t.length?".":"")+t;break;case 6:t="_reference()"+(0<t.length?".":"")+t}e=e.parentObjectPath}return t},Z.setMethodArguments=function(e,t,n){if(C.isNullOrUndefined(n))return null;var r=new Array,i=new Array,o=Z.collectObjectPathInfos(e,n,r,i);return t.Arguments=n,o&&(t.ReferencedObjectPathIds=i),r},Z.validateContext=function(e,t){if(e&&t&&t._context!==e)throw new h.RuntimeError({code:g.invalidRequestContext,httpStatusCode:400,message:C._getResourceString(y.invalidRequestContext)})},Z.isSetSupported=function(e,t){return"function"==typeof Z.isSetSupportedOverride?Z.isSetSupportedOverride(e,t):!("undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements)||window.Office.context.requirements.isSetSupported(e,t)},Z.throwIfApiNotSupported=function(e,t,n,r){if(Z._doApiNotSupportedCheck&&!Z.isSetSupported(t,n)){var i=C._getResourceString(y.apiNotFoundDetails,[e,t+" "+n,r]);throw new h.RuntimeError({code:g.apiNotFound,httpStatusCode:404,message:i,debugInfo:{errorLocation:e}})}},Z.calculateApiFlags=function(e,t,n){var r="undefined"!=typeof window&&window&&window.location&&window.location.href&&-1!==window.location.href.indexOf("eed0a086-3498-4f91-a377-1e0265ecc0cc");return("function"==typeof Z.isSetSupportedOverride?Z.isSetSupportedOverride(t,n):!r&&Z.isSetSupported(t,n))||(e&=-3),e},Z._parseSelectExpand=function(e){var t,n=[];if(Array.isArray(e))t=e;else{if(C.isNullOrEmptyString(e))return n;t=e.split(",")}for(var r=0;r<t.length;r++){var i=t[r];if("string"!=typeof i)throw h.RuntimeError._createInvalidArgError({argumentName:"select"});0<(i=o(i.trim())).length&&n.push(i)}return n;function o(e){var t=e.toLowerCase();return"items"===t||"items/"===t?"*":("items/"!==t.substr(0,6)&&"items."!==t.substr(0,6)||(e=e.substr(6)),e.replace(new RegExp("[/.]items[/.]","gi"),"/"))}},Z.changePropertyNameToCamelLowerCase=function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.changePropertyNameToCamelLowerCase(e[n]));return t}if("object"!=typeof e||null===e)return e;for(var r in t={},e){var i=e[r];if(r===J.items){(t={})[J.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(i);break}t[Z._toCamelLowerCase(r)]=this.changePropertyNameToCamelLowerCase(i)}return t},Z.purifyJson=function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.purifyJson(e[n]));return t}if("object"!=typeof e||null===e)return e;for(var r in t={},e)if(95!==r.charCodeAt(0)){var i=e[r];"object"==typeof i&&null!==i&&Array.isArray(i.items)&&(i=i.items),t[r]=this.purifyJson(i)}return t},Z.collectObjectPathInfos=function(e,t,n,r){for(var i=!1,o=0;o<t.length;o++)if(t[o]instanceof N){var a=t[o];Z.validateContext(e,a),t[o]=a._objectPath.objectPathInfo.Id,r.push(a._objectPath.objectPathInfo.Id),n.push(a._objectPath),i=!0}else if(Array.isArray(t[o])){var s=new Array;Z.collectObjectPathInfos(e,t[o],n,s)?(r.push(s),i=!0):r.push(0)}else C.isPlainJsonObject(t[o])?(r.push(0),Z.replaceClientObjectPropertiesWithObjectPathIds(t[o],n)):r.push(0);return i},Z.replaceClientObjectPropertiesWithObjectPathIds=function(e,t){var n,r;for(var i in e){var o=e[i];if(o instanceof N)t.push(o._objectPath),e[i]=((n={})[J.objectPathIdPrivate]=o._objectPath.objectPathInfo.Id,n);else if(Array.isArray(o))for(var a=0;a<o.length;a++)if(o[a]instanceof N){var s=o[a];t.push(s._objectPath),o[a]=((r={})[J.objectPathIdPrivate]=s._objectPath.objectPathInfo.Id,r)}else C.isPlainJsonObject(o[a])&&Z.replaceClientObjectPropertiesWithObjectPathIds(o[a],t);else C.isPlainJsonObject(o)&&Z.replaceClientObjectPropertiesWithObjectPathIds(o,t)}},Z.normalizeName=function(e){return e.substr(0,1).toLowerCase()+e.substr(1)},Z._doApiNotSupportedCheck=!1,Z);function Z(){return null!==Q&&Q.apply(this,arguments)||this}m.CommonUtility=Y;var $,ee=(__extends(te,$=y),te.propertyDoesNotExist="PropertyDoesNotExist",te.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty",te);function te(){return null!==$&&$.apply(this,arguments)||this}m.CommonResourceStrings=ee;var ne,re=(__extends(ie,ne=g),ie.propertyNotLoaded="PropertyNotLoaded",ie.runMustReturnPromise="RunMustReturnPromise",ie.cannotRegisterEvent="CannotRegisterEvent",ie.invalidOrTimedOutSession="InvalidOrTimedOutSession",ie.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",ie);function ie(){return null!==ne&&ne.apply(this,arguments)||this}m.ErrorCodes=re;var oe=(ae.prototype._handleResult=function(e){this.m_callback&&this.m_callback()},ae);function ae(e){this.m_callback=e}var se,ce=(__extends(le,se=A),le.createMethodAction=function(e,t,n,r,i,o){rt.validateObjectPath(t);var a={Id:e._nextId(),ActionType:3,Name:n,ObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},s=rt.setMethodArguments(e,a.ArgumentInfo,i);rt.validateReferencedObjectPaths(s);var c=rt._fixupApiFlags(o),l=new x(a,r,c);if(l.referencedObjectPath=t._objectPath,l.referencedArgumentObjectPaths=s,t._addAction(l),m._internalConfig.enablePreviewExecution&&0!=(16&c)){var u={Id:e._nextId(),ActionType:3,Name:n,Arguments:i,ObjectId:"",ObjectType:""};t._addPreviewExecutionAction(u)}return l},le.createRecursiveQueryAction=function(e,t,n){rt.validateObjectPath(t);var r={Id:e._nextId(),ActionType:6,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,RecursiveQueryInfo:n},i=new x(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i),i},le.createEnsureUnchangedAction=function(e,t,n){rt.validateObjectPath(t);var r={Id:e._nextId(),ActionType:8,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id,ObjectState:n},i=new x(r,1,4);return i.referencedObjectPath=t._objectPath,t._addAction(i),i},le.createInstantiateAction=function(e,t){rt.validateObjectPath(t),e._pendingRequest.ensureInstantiateObjectPath(t._objectPath.parentObjectPath),e._pendingRequest.ensureInstantiateObjectPaths(t._objectPath.argumentObjectPaths);var n={Id:e._nextId(),ActionType:1,Name:"",ObjectPathId:t._objectPath.objectPathInfo.Id},r=new x(n,1,4);return r.referencedObjectPath=t._objectPath,t._addAction(r,new Ge(t),!0),r},le.createTraceAction=function(e,t,n){var r={Id:e._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},i=new x(r,1,4);return e._pendingRequest.addAction(i),n&&e._pendingRequest.addTrace(r.Id,t),i},le.createTraceMarkerForCallback=function(e,t){var n=le.createTraceAction(e,null,!1);e._pendingRequest.addActionResultHandler(n,new oe(t))},le);function le(){return null!==se&&se.apply(this,arguments)||this}m.ActionFactory=ce;var ue,pe=(__extends(fe,ue=N),Object.defineProperty(fe.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"isNull",{get:function(){return(void 0!==this.m_isNull||!S.isMock())&&(rt.throwIfNotLoaded("isNull",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"isNullObject",{get:function(){return(void 0!==this.m_isNull||!S.isMock())&&(rt.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull),this._isNull)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"_isNull",{get:function(){return this.m_isNull},set:function(e){(this.m_isNull=e)&&this._objectPath&&this._objectPath._updateAsNullObject()},enumerable:!0,configurable:!0}),fe.prototype._addAction=function(e,t,n){return void 0===t&&(t=null),n||(this.context._pendingRequest.ensureInstantiateObjectPath(this._objectPath),this.context._pendingRequest.ensureInstantiateObjectPaths(e.referencedArgumentObjectPaths)),this.context._pendingRequest.addAction(e),this.context._pendingRequest.addReferencedObjectPath(this._objectPath),this.context._pendingRequest.addReferencedObjectPaths(e.referencedArgumentObjectPaths),this.context._pendingRequest.addActionResultHandler(e,t),C._createPromiseFromResult(null)},fe.prototype._addPreviewExecutionAction=function(e){if(!rt.isUndefined(this._className)){e.ObjectType=this._className;var t=rt._getPropertyValueWithoutCheckLoaded(this,Re.idLowerCase);rt.isUndefined(t)&&(t=rt._getPropertyValueWithoutCheckLoaded(this,Re.idPrivate)),rt.isUndefined(t)&&(t=rt._getPropertyValueWithoutCheckLoaded(this,Re.previewExecutionObjectId)),e.ObjectId=t,this.context._pendingRequest.addPreviewExecutionAction(e)}},fe.prototype._handleResult=function(e){this._isNull=rt.isNullOrUndefined(e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},fe.prototype._handleIdResult=function(e){this._isNull=rt.isNullOrUndefined(e),rt.fixObjectPathIfNecessary(this,e),this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,e)},fe.prototype._handleRetrieveResult=function(e,t){this._handleIdResult(e)},fe.prototype._recursivelySet=function(e,t,n,r,i){var o=e instanceof fe,a=e;if(o){if(Object.getPrototypeOf(this)!==Object.getPrototypeOf(e))throw h.RuntimeError._createInvalidArgError({argumentName:"properties",errorLocation:this._className+".set"});e=JSON.parse(JSON.stringify(e))}try{for(var s,c=0;c<n.length;c++)s=n[c],e.hasOwnProperty(s)&&void 0!==e[s]&&(this[s]=e[s]);for(c=0;c<r.length;c++)if(s=r[c],e.hasOwnProperty(s)&&void 0!==e[s]){var l=o?a[s]:e[s];this[s].set(l,t)}var u=!o;for(t&&!rt.isNullOrUndefined(u)&&(u=t.throwOnReadOnly),c=0;c<i.length;c++)if(s=i[c],e.hasOwnProperty(s)&&void 0!==e[s]&&u)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(et.cannotApplyPropertyThroughSetMethod,s),debugInfo:{errorLocation:s}});for(s in e)if(n.indexOf(s)<0&&r.indexOf(s)<0){var p=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),s);if(!p)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.propertyDoesNotExist,s),debugInfo:{errorLocation:s}});if(u&&!p.set)throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(ee.attemptingToSetReadOnlyProperty,s),debugInfo:{errorLocation:s}})}}catch(e){throw new h.RuntimeError({code:g.invalidArgument,httpStatusCode:400,message:C._getResourceString(y.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:e})}},fe);function fe(e,t){var n=ue.call(this,e,t)||this;return rt.checkArgumentNull(e,"context"),n.m_context=e,n._objectPath&&(!e._processingResult&&e._pendingRequest&&(ce.createInstantiateAction(e,n),e._autoCleanup&&n._KeepReference&&e.trackedObjects._autoAdd(n)),m._internalConfig.appendTypeNameToObjectPathInfo&&n._objectPath.objectPathInfo&&n._className&&(n._objectPath.objectPathInfo.T=n._className)),n}m.ClientObject=pe;var de=(he.prototype.executeAsync=function(e,t,n){var r={url:d.processQuery,method:"POST",headers:n.Headers,body:n.Body},i="";n.Headers&&(i=n.Headers[Re.officeControlId]);var o={id:c.nextId(),type:1,flags:t,controlId:i,message:r,customData:e};return C.log(JSON.stringify(o)),this.m_session.sendMessageToHost(o).then(function(e){C.log("Received response: "+JSON.stringify(e));var t,n=e.message;if(200===n.statusCode)t={HttpStatusCode:n.statusCode,ErrorCode:null,ErrorMessage:null,Headers:n.headers,Body:C._parseResponseBody(n)};else{C.log("Error Response:"+n.body);var r=C._parseErrorResponse(n);t={HttpStatusCode:n.statusCode,ErrorCode:r.errorCode,ErrorMessage:r.errorMessage,Headers:n.headers,Body:null}}return t})},he);function he(e){this.m_session=e}var ge,ye=(__extends(me,ge=_),me.getInstanceIfHostBridgeInited=function(){return c.instance?(!C.isNullOrUndefined(me.s_instance)&&me.s_instance.m_bridge===c.instance||(me.s_instance=new me(c.instance)),me.s_instance):null},me.prototype._resolveRequestUrlAndHeaderInfo=function(){return C._createPromiseFromResult(null)},me.prototype._createRequestExecutorOrNull=function(){return C.log("NativeBridgeSession::CreateRequestExecutor"),new de(this)},me.prototype.getEventRegistration=function(e){return Me.getGenericEventRegistration(e)},me.prototype.sendMessageToHost=function(e){return this.m_bridge.sendMessageToHostAndExpectResponse(e)},me);function me(e){var t=ge.call(this)||this;return t.m_bridge=e,t.m_bridge.addHostMessageHandler(function(e){if(3===e.type){var t=e.controlId;if(C.isNullOrEmptyString(t))Me.getGenericEventRegistration(t)._handleRichApiMessage(e.message);else{var n=Me.peekGenericEventRegistrationOrNull(t);n&&n._handleRichApiMessage(e.message),(n=Me.peekGenericEventRegistrationOrNull(""))&&n._handleRichApiMessage(e.message)}}}),t}m.HostBridgeSession=ye;var _e,be=(__extends(ve,_e=w),Object.defineProperty(ve.prototype,"session",{get:function(){return this.m_session},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"eventRegistration",{get:function(){return this.m_session?this.m_session.getEventRegistration(this._controlId):h.officeJsEventRegistration},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"_url",{get:function(){return this.m_requestUrlAndHeaderInfo?this.m_requestUrlAndHeaderInfo.url:null},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"_pendingRequest",{get:function(){return null==this.m_pendingRequest&&(this.m_pendingRequest=new Ae(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"_controlId",{get:function(){var e=this.m_customRequestHeaders[Re.officeControlId];return C.isNullOrUndefined(e)&&(e=""),e},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"debugInfo",{get:function(){return{pendingStatements:new Ye(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,m._internalConfig.showDisposeInfoInDebugInfo).process()}},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new Xe(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"requestHeaders",{get:function(){return this.m_customRequestHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"batchMode",{get:function(){return this.m_batchMode},enumerable:!0,configurable:!0}),Object.defineProperty(ve.prototype,"getAdditionalHeaders",{set:function(e){this.m_getAdditionalHeaders=e},enumerable:!0,configurable:!0}),ve.prototype.ensureInProgressBatchIfBatchMode=function(){if(1===this.m_batchMode&&!this.m_explicitBatchInProgress)throw rt.createRuntimeError(g.generalException,C._getResourceString(et.notInsideBatch),null)},ve.prototype.load=function(e,t){rt.validateContext(this,e);var n=ve._parseQueryOption(t);A.createQueryAction(this,e,n,e)},ve.prototype.loadRecursive=function(e,t,n){if(!rt.isPlainJsonObject(t))throw h.RuntimeError._createInvalidArgError({argumentName:"options"});var r={};for(var i in t)r[i]=ve._parseQueryOption(t[i]);var o=ce.createRecursiveQueryAction(this,e,{Queries:r,MaxDepth:n});this._pendingRequest.addActionResultHandler(o,e)},ve.prototype.trace=function(e){ce.createTraceAction(this,e,!0)},ve.prototype._processOfficeJsErrorResponse=function(e,t){},ve.prototype.ensureRequestUrlAndHeaderInfo=function(){var n=this;return rt._createPromiseFromResult(null).then(function(){if(!n.m_requestUrlAndHeaderInfo)return n.m_requestUrlAndHeaderInfoResolver._resolveRequestUrlAndHeaderInfo().then(function(e){if(n.m_requestUrlAndHeaderInfo=e,n.m_requestUrlAndHeaderInfo||(n.m_requestUrlAndHeaderInfo={url:d.localDocument,headers:{}}),rt.isNullOrEmptyString(n.m_requestUrlAndHeaderInfo.url)&&(n.m_requestUrlAndHeaderInfo.url=d.localDocument),n.m_requestUrlAndHeaderInfo.headers||(n.m_requestUrlAndHeaderInfo.headers={}),"function"==typeof n.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull){var t=n.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull();t&&(n._requestExecutor=t)}})})},ve.prototype.syncPrivateMain=function(){var t=this;return this.ensureRequestUrlAndHeaderInfo().then(function(){var e=t._pendingRequest;return t.m_pendingRequest=null,t.processPreSyncPromises(e).then(function(){return t.syncPrivate(e)})})},ve.prototype.syncPrivate=function(n){var t=this;if(S.isMock())return C._createPromiseFromResult(null);if(!n.hasActions)return this.processPendingEventHandlers(n);var e=n.buildRequestMessageBodyAndRequestFlags(),r=e.body,i=e.flags;this._requestFlagModifier&&(i|=this._requestFlagModifier),this._requestExecutor||(C._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?this._requestExecutor=new Ke(this):this._requestExecutor=new z);var o=this._requestExecutor,a={};C._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,a),C._copyHeaders(this.m_customRequestHeaders,a),delete this.m_customRequestHeaders[Re.officeScriptEventId],this.m_getAdditionalHeaders&&C._copyHeaders(this.m_getAdditionalHeaders(),a);var s=S._getCurrentTestNameWithSequenceId();s&&(a[d.testRequestNameHeader]=s);var c={Url:this.m_requestUrlAndHeaderInfo.url,Headers:a,Body:r};n.invalidatePendingInvalidObjectPaths();var l=null,u=null;return this._lastSyncStart="undefined"==typeof performance?Date.now():performance.now(),this._lastRequestFlags=i,o.executeAsync(this._customData,i,c,this._invocationId).then(function(e){return t._lastSyncEnd="undefined"==typeof performance?Date.now():performance.now(),m.config.executePerfLogFunc&&m.config.executePerfLogFunc({syncStart:t._lastSyncStart,syncEnd:t._lastSyncEnd}),l=t.processRequestExecutorResponseMessage(n,e),t.processPendingEventHandlers(n).catch(function(e){C.log("Error in processPendingEventHandlers"),C.log(JSON.stringify(e)),u=e})}).then(function(){if(l)throw C.log("Throw error from response: "+JSON.stringify(l)),l;if(u){C.log("Throw error from ProcessEventHandler: "+JSON.stringify(u));var e=null;if(u instanceof h.RuntimeError)(e=u).traceMessages=n._responseTraceMessages;else{var t=null;t="string"==typeof u?u:u.message,rt.isNullOrEmptyString(t)&&(t=C._getResourceString(et.cannotRegisterEvent)),e=new h.RuntimeError({code:re.cannotRegisterEvent,httpStatusCode:400,message:t,traceMessages:n._responseTraceMessages})}throw e}})},ve.prototype.processRequestExecutorResponseMessage=function(e,t){t.Body&&t.Body.TraceIds&&e._setResponseTraceIds(t.Body.TraceIds);var n=e._responseTraceMessages,r=null;if(t.Body){if(t.Body.Error&&0<=t.Body.Error.ActionIndex){var i=new Ye(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!0),o=i.processForDebugStatementInfo(t.Body.Error.ActionIndex);r={statement:o.statement,surroundingStatements:o.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]},m.config.extendedErrorLogging&&(i=new Ye(this._rootObjectPropertyName,e._objectPaths,e._actions,!1,!1),r.fullStatements=i.process())}var a=null;if(t.Body.Results?a=t.Body.Results:t.Body.ProcessedResults&&t.Body.ProcessedResults.Results&&(a=t.Body.ProcessedResults.Results),a){this._processingResult=!0;try{e.processResponse(a)}finally{this._processingResult=!1}}}if(!rt.isNullOrEmptyString(t.ErrorCode))return new h.RuntimeError({code:t.ErrorCode,httpStatusCode:t.HttpStatusCode,message:t.ErrorMessage,traceMessages:n,data:{responseBody:t.RawErrorResponseBody}});if(t.Body&&t.Body.Error){var s={errorLocation:t.Body.Error.Location};return r&&(s.statement=r.statement,s.surroundingStatements=r.surroundingStatements,s.fullStatements=r.fullStatements),new h.RuntimeError({code:t.Body.Error.Code,httpStatusCode:t.Body.Error.HttpStatusCode,message:t.Body.Error.Message,traceMessages:n,debugInfo:s})}return null},ve.prototype.processPendingEventHandlers=function(e){for(var t=rt._createPromiseFromResult(null),n=0;n<e._pendingProcessEventHandlers.length;n++){var r=e._pendingProcessEventHandlers[n];t=t.then(this.createProcessOneEventHandlersFunc(r,e))}return t},ve.prototype.createProcessOneEventHandlersFunc=function(e,t){return function(){return e._processRegistration(t)}},ve.prototype.processPreSyncPromises=function(e){for(var t=rt._createPromiseFromResult(null),n=0;n<e._preSyncPromises.length;n++){var r=e._preSyncPromises[n];t=t.then(this.createProcessOneProSyncFunc(r))}return t},ve.prototype.createProcessOneProSyncFunc=function(e){return function(){return e}},ve.prototype.sync=function(e){return S.isMock()?C._createPromiseFromResult(e):this.syncPrivateMain().then(function(){return e})},ve.prototype.batch=function(e){var t=this;if(1!==this.m_batchMode)return C._createPromiseFromException(rt.createRuntimeError(g.generalException,null,null));if(this.m_explicitBatchInProgress)return C._createPromiseFromException(rt.createRuntimeError(g.generalException,C._getResourceString(et.pendingBatchInProgress),null));if(rt.isNullOrUndefined(e))return rt._createPromiseFromResult(null);this.m_explicitBatchInProgress=!0;var n,r,i=this.m_pendingRequest;this.m_pendingRequest=new Ae(this);try{n=e(this._rootObject,this)}catch(e){return this.m_explicitBatchInProgress=!1,this.m_pendingRequest=i,C._createPromiseFromException(e)}return("object"==typeof n&&n&&"function"==typeof n.then?rt._createPromiseFromResult(null).then(function(){return n}).then(function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,e}).catch(function(e){return t.m_explicitBatchInProgress=!1,r=t.m_pendingRequest,t.m_pendingRequest=i,C._createPromiseFromException(e)}):(this.m_explicitBatchInProgress=!1,r=this.m_pendingRequest,this.m_pendingRequest=i,rt._createPromiseFromResult(n))).then(function(e){return t.ensureRequestUrlAndHeaderInfo().then(function(){return t.syncPrivate(r)}).then(function(){return e})})},ve._run=function(e,t,n,r,i,o){return void 0===n&&(n=3),void 0===r&&(r=5e3),ve._runCommon("run",null,e,0,t,n,r,null,null,i,o)},ve.isValidRequestInfo=function(e){return"string"==typeof e||ve.isRequestUrlAndHeaderInfo(e)||ve.isRequestUrlAndHeaderInfoResolver(e)},ve.isRequestUrlAndHeaderInfo=function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})&&!rt.isNullOrUndefined(e.url)},ve.isRequestUrlAndHeaderInfoResolver=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e._resolveRequestUrlAndHeaderInfo},ve._runBatch=function(e,t,n,r,i,o,a,s,c){return void 0===o&&(o=3),void 0===a&&(a=5e3),ve._runBatchCommon(0,e,t,n,o,a,r,i,s,c)},ve._runExplicitBatch=function(e,t,n,r,i,o,a,s,c){return void 0===o&&(o=3),void 0===a&&(a=5e3),ve._runBatchCommon(1,e,t,n,o,a,r,i,s,c)},ve._runBatchCommon=function(e,t,n,r,i,o,a,s,c,l){var u,p;void 0===i&&(i=3),void 0===o&&(o=5e3);var f=null,d=null,h=null,g=0,y=null;if(0<n.length)if(ve.isValidRequestInfo(n[0]))f=n[0],g=1;else if(rt.isPlainJsonObject(n[0])){if(null!=(f=(y=n[0]).session)&&!ve.isValidRequestInfo(f))return ve.createErrorPromise(t);d=y.getAdditionalHeaders,h=y.previousObjects,g=1}if(n.length==g+1)p=n[g+0];else{if(null!=y||n.length!=g+2)return ve.createErrorPromise(t);h=n[g+0],p=n[g+1]}if(null!=h)if(h instanceof pe)u=function(){return h.context};else if(h instanceof ve)u=function(){return h};else{if(!Array.isArray(h))return ve.createErrorPromise(t);var m=h;if(0==m.length)return ve.createErrorPromise(t);for(var _=0;_<m.length;_++){if(!(m[_]instanceof pe))return ve.createErrorPromise(t);if(m[_].context!=m[0].context)return ve.createErrorPromise(t,et.invalidRequestContext)}u=function(){return m[0].context}}else u=r;var b=null;a&&(b=function(e){return a(y||{},e)});var v=null;return s&&(v=function(e){return s(y||{},e)}),ve._runCommon(t,f,u,e,p,i,o,b,v,c,l,d)},ve.createErrorPromise=function(e,t){return void 0===t&&(t=y.invalidArgument),C._createPromiseFromException(rt.createRuntimeError(t,C._getResourceString(t),e))},ve._runCommon=function(t,n,e,r,i,s,c,o,l,u,p,a){_._overrideSession&&(n=_._overrideSession);var f,d,h,g=C.createPromise(function(e,t){e()}),y=!1;return g.then(function(){if((f=e(n)).getAdditionalHeaders=a,f._autoCleanup)return new m.Promise(function(e,t){f._onRunFinishedNotifiers.push(function(){f._autoCleanup=!0,e()})});f._autoCleanup=!0}).then(function(){return"function"!=typeof i?ve.createErrorPromise(t):(h=f.m_batchMode,f.m_batchMode=r,o&&o(f),e=i(1==r?f.batch.bind(f):f),!rt.isNullOrUndefined(e)&&"function"==typeof e.then||rt.throwError(et.runMustReturnPromise),e);var e}).then(function(e){return 1===r?e:f.sync(e)}).then(function(e){y=!0,d=e}).catch(function(e){d=e}).then(function(){var i=f.trackedObjects._retrieveAndClearAutoCleanupList();for(var e in f._autoCleanup=!1,f.m_batchMode=h,i)i[e]._objectPath.isValid=!1;var o=0;if(rt._synchronousCleanup||ve.isRequestUrlAndHeaderInfoResolver(n))return a();function a(){o++;var e=f.m_pendingRequest,t=f.m_batchMode,n=new Ae(f);f.m_pendingRequest=n,f.m_batchMode=0;try{for(var r in i)f.trackedObjects.remove(i[r]);l&&l(f)}finally{f.m_batchMode=t,f.m_pendingRequest=e}return f.syncPrivate(n).then(function(){u&&u(o)}).catch(function(){p&&p(o),o<s&&setTimeout(function(){a()},c)})}a()}).then(function(){if(f._onRunFinishedNotifiers&&0<f._onRunFinishedNotifiers.length&&f._onRunFinishedNotifiers.shift()(),y)return d;throw d})},ve);function ve(e){var t=_e.call(this)||this;if(t.m_customRequestHeaders={},t.m_batchMode=0,t._onRunFinishedNotifiers=[],_._overrideSession)t.m_requestUrlAndHeaderInfoResolver=_._overrideSession;else if((rt.isNullOrUndefined(e)||"string"==typeof e&&0===e.length)&&(e=(e=ve.defaultRequestUrlAndHeaders)||{url:d.localDocument,headers:{}}),"string"==typeof e)t.m_requestUrlAndHeaderInfo={url:e,headers:{}};else if(ve.isRequestUrlAndHeaderInfoResolver(e))t.m_requestUrlAndHeaderInfoResolver=e;else{if(!ve.isRequestUrlAndHeaderInfo(e))throw h.RuntimeError._createInvalidArgError({argumentName:"url"});var n=e;t.m_requestUrlAndHeaderInfo={url:n.url,headers:{}},C._copyHeaders(n.headers,t.m_requestUrlAndHeaderInfo.headers)}return!t.m_requestUrlAndHeaderInfoResolver&&t.m_requestUrlAndHeaderInfo&&C._isLocalDocumentUrl(t.m_requestUrlAndHeaderInfo.url)&&ye.getInstanceIfHostBridgeInited()&&(t.m_requestUrlAndHeaderInfo=null,t.m_requestUrlAndHeaderInfoResolver=ye.getInstanceIfHostBridgeInited()),t.m_requestUrlAndHeaderInfoResolver instanceof _&&(t.m_session=t.m_requestUrlAndHeaderInfoResolver),t._processingResult=!1,t._customData=Re.iterativeExecutor,t.sync=t.sync.bind(t),t}m.ClientRequestContext=be;var Oe=(Object.defineProperty(Pe.prototype,"$proxy",{get:function(){return this.m_proxy},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"$isNullObject",{get:function(){if(!this.m_isLoaded)throw new h.RuntimeError({code:re.valueNotLoaded,httpStatusCode:400,message:C._getResourceString(et.valueNotLoaded),debugInfo:{errorLocation:"retrieveResult.$isNullObject"}});return this.m_isNullObject},enumerable:!0,configurable:!0}),Pe.prototype.toJSON=function(){if(this.m_isLoaded)return this.m_isNullObject?null:(rt.isUndefined(this.m_json)&&(this.m_json=rt.purifyJson(this.m_value)),this.m_json)},Pe.prototype.toString=function(){return JSON.stringify(this.toJSON())},Pe.prototype._handleResult=function(e){this.m_isLoaded=!0,null===e||"object"==typeof e&&e&&e._IsNull?(this.m_isNullObject=!0,e=null):this.m_isNullObject=!1,this.m_shouldPolyfill&&(e=rt.changePropertyNameToCamelLowerCase(e)),this.m_value=e,this.m_proxy._handleRetrieveResult(e,this)},Pe);function Pe(e,t){this.m_proxy=e,this.m_shouldPolyfill=t;var n=e[Re.scalarPropertyNames],r=e[Re.navigationPropertyNames],i=e[Re.className],o=e[Re.isCollection];if(n)for(var a=0;a<n.length;a++)rt.definePropertyThrowUnloadedException(this,i,n[a]);if(r)for(a=0;a<r.length;a++)rt.definePropertyThrowUnloadedException(this,i,r[a]);o&&rt.definePropertyThrowUnloadedException(this,i,Re.itemsLowerCase)}var Ce,Re=(__extends(Se,Ce=J),Se.getItemAt="GetItemAt",Se.index="_Index",Se.iterativeExecutor="IterativeExecutor",Se.isTracked="_IsTracked",Se.eventMessageCategory=65536,Se.eventWorkbookId="Workbook",Se.eventSourceRemote="Remote",Se.proxy="$proxy",Se.className="_className",Se.isCollection="_isCollection",Se.collectionPropertyPath="_collectionPropertyPath",Se.objectPathInfoDoNotKeepReferenceFieldName="D",Se.officeScriptEventId="X-OfficeScriptEventId",Se.officeScriptFireRecordingEvent="X-OfficeScriptFireRecordingEvent",Se.officeControlId="X-OfficeControlId",Se);function Se(){return null!==Ce&&Ce.apply(this,arguments)||this}m.Constants=Re;var Ie,Ae=(__extends(Te,Ie=B),Object.defineProperty(Te.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),Te.prototype._setResponseTraceIds=function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];this.m_responseTraceIds[n]=n;var r=this.m_traceInfos[n];C.isNullOrUndefined(r)||this.m_responseTraceMessages.push(r)}},Te.prototype.addTrace=function(e,t){this.m_traceInfos[e]=t},Te.prototype._addPendingEventHandlerAction=function(e,t){this.m_pendingEventHandlerActions[e._id]||(this.m_pendingEventHandlerActions[e._id]=[],this.m_pendingProcessEventHandlers.push(e)),this.m_pendingEventHandlerActions[e._id].push(t)},Object.defineProperty(Te.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),Te.prototype._getPendingEventHandlerActions=function(e){return this.m_pendingEventHandlerActions[e._id]},Te);function Te(e){var t=Ie.call(this,e)||this;return t.m_context=e,t.m_pendingProcessEventHandlers=[],t.m_pendingEventHandlerActions={},t.m_traceInfos={},t.m_responseTraceIds={},t.m_responseTraceMessages=[],t}m.ClientRequest=Ae;var Ne=(Object.defineProperty(De.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"_context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(De.prototype,"_callback",{get:function(){return this.m_callback},enumerable:!0,configurable:!0}),De.prototype.add=function(e){var t=ce.createTraceAction(this.m_context,null,!1);return this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:0}),new ke(this.m_context,this,e)},De.prototype.remove=function(e){var t=ce.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:e,operation:1})},De.prototype.removeAll=function(){var e=ce.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:e.actionInfo.Id,handler:null,operation:2})},De.prototype._processRegistration=function(e){var t=this,n=C._createPromiseFromResult(null),r=e._getPendingEventHandlerActions(this);if(!r)return n;for(var i=[],o=0;o<this.m_handlers.length;o++)i.push(this.m_handlers[o]);var a=!1;for(o=0;o<r.length;o++)if(e._responseTraceIds[r[o].id])switch(a=!0,r[o].operation){case 0:i.push(r[o].handler);break;case 1:for(var s=i.length-1;0<=s;s--)if(i[s]===r[o].handler){i.splice(s,1);break}break;case 2:i=[]}return a&&(!this.m_registered&&0<i.length?n=n.then(function(){return t.m_eventInfo.registerFunc(t.m_callback)}).then(function(){return t.m_registered=!0}):this.m_registered&&0==i.length&&(n=n.then(function(){return t.m_eventInfo.unregisterFunc(t.m_callback)}).catch(function(e){C.log("Error when unregister event: "+JSON.stringify(e))}).then(function(){return t.m_registered=!1})),n=n.then(function(){return t.m_handlers=i})),n},De.prototype.fireEvent=function(e){for(var t=[],n=0;n<this.m_handlers.length;n++){var r=this.m_handlers[n],i=C._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(r,e)).catch(function(e){C.log("Error when invoke handler: "+JSON.stringify(e))});t.push(i)}C.Promise.all(t)},De.prototype.createFireOneEventHandlerFunc=function(e,t){return function(){return e(t)}},De);function De(e,t,n,r){var i=this;this.m_id=e._nextId(),this.m_context=e,this.m_name=n,this.m_handlers=[],this.m_registered=!1,this.m_eventInfo=r,this.m_callback=function(e){i.m_eventInfo.eventArgsTransformFunc(e).then(function(e){return i.fireEvent(e)})}}m.EventHandlers=Ne;var xe,Ee,ke=(Object.defineProperty(je.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),je.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},je);function je(e,t,n){this.m_context=e,this.m_allHandlers=t,this.m_handler=n}function we(){}m.EventHandlerResult=ke,xe=h=m._Internal||(m._Internal={}),we.prototype.register=function(e,t,n){switch(e){case 4:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingDataChanged,n,e)})});case 3:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.addHandlerAsync(Office.EventType.BindingSelectionChanged,n,e)})});case 2:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,n,e)});case 1:return rt.promisify(function(e){return Office.context.document.settings.addHandlerAsync(Office.EventType.SettingsChanged,n,e)});case 5:return OSF.DDA.RichApi.richApiMessageManager.register(n);case 13:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,n,{id:t},e)});case 14:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,n,{id:t},e)});case 15:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,n,{id:t},e)});case 16:return rt.promisify(function(e){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,n,{id:t},e)});default:throw xe.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},we.prototype.unregister=function(e,t,n){switch(e){case 4:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:n},e)})});case 3:return rt.promisify(function(e){return Office.context.document.bindings.getByIdAsync(t,e)}).then(function(t){return rt.promisify(function(e){return t.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:n},e)})});case 2:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:n},e)});case 1:return rt.promisify(function(e){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:n},e)});case 5:return rt.promisify(function(e){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:n},e)});case 13:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:t,handler:n},e)});case 14:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:t,handler:n},e)});case 15:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:t,handler:n},e)});case 16:return rt.promisify(function(e){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:t,handler:n},e)});default:throw xe.RuntimeError._createInvalidArgError({argumentName:"eventId"})}},Ee=we,xe.officeJsEventRegistration=new Ee;var Fe=(Le.getTargetIdOrDefault=function(e){return rt.isNullOrUndefined(e)?"":e},Le.prototype.getHandlers=function(e,t){t=Le.getTargetIdOrDefault(t);var n=this.m_handlersByEventByTarget[e];n||(n={},this.m_handlersByEventByTarget[e]=n);var r=n[t];return r||(r=[],n[t]=r),r},Le.prototype.callHandlers=function(e,t,n){for(var r=this.getHandlers(e,t),i=0;i<r.length;i++)r[i](n)},Le.prototype.hasHandlers=function(e,t){return 0<this.getHandlers(e,t).length},Le.prototype.register=function(e,t,n){if(!n)throw h.RuntimeError._createInvalidArgError({argumentName:"handler"});var r=this.getHandlers(e,t);return r.push(n),1===r.length?this.m_registerEventImpl(e,t):rt._createPromiseFromResult(null)},Le.prototype.unregister=function(e,t,n){if(!n)throw h.RuntimeError._createInvalidArgError({argumentName:"handler"});for(var r=this.getHandlers(e,t),i=r.length-1;0<=i;i--)if(r[i]===n){r.splice(i,1);break}return 0===r.length?this.m_unregisterEventImpl(e,t):rt._createPromiseFromResult(null)},Le);function Le(e,t){this.m_handlersByEventByTarget={},this.m_registerEventImpl=e,this.m_unregisterEventImpl=t}m.EventRegistration=Fe;var Me=(Be.prototype.ready=function(){var e=this;return this.m_ready||(Be._testReadyImpl?this.m_ready=Be._testReadyImpl().then(function(){e.m_isReady=!0}):c.instance?this.m_ready=rt._createPromiseFromResult(null).then(function(){e.m_isReady=!0}):this.m_ready=h.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then(function(){e.m_isReady=!0})),this.m_ready},Object.defineProperty(Be.prototype,"isReady",{get:function(){return this.m_isReady},enumerable:!0,configurable:!0}),Be.prototype.register=function(e,t,n){var r=this;return this.ready().then(function(){return r.m_eventRegistration.register(e,t,n)})},Be.prototype.unregister=function(e,t,n){var r=this;return this.ready().then(function(){return r.m_eventRegistration.unregister(e,t,n)})},Be.prototype._registerEventImpl=function(e,t){return rt._createPromiseFromResult(null)},Be.prototype._unregisterEventImpl=function(e,t){return rt._createPromiseFromResult(null)},Be.prototype._handleRichApiMessage=function(e){if(e&&e.entries)for(var t=0;t<e.entries.length;t++){var n=e.entries[t];if(n.messageCategory==Re.eventMessageCategory){C._logEnabled&&C.log(JSON.stringify(n));var r=n.messageType,i=n.targetId;if(this.m_eventRegistration.hasHandlers(r,i)){var o=JSON.parse(n.message);n.isRemoteOverride&&(o.source=Re.eventSourceRemote),this.m_eventRegistration.callHandlers(r,i,o)}}}},Be.getGenericEventRegistration=function(e){C.isNullOrUndefined(e)&&(e="");var t=Be.s_genericEventRegistrations[e];return t||(t=new Be,Be.s_genericEventRegistrations[e]=t),t},Be.peekGenericEventRegistrationOrNull=function(e){return C.isNullOrUndefined(e)&&(e=""),Be.s_genericEventRegistrations[e]},Be.richApiMessageEventCategory=65536,Be.s_genericEventRegistrations={},Be);function Be(){this.m_eventRegistration=new Fe(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this)),this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}m.GenericEventRegistration=Me,m._testSetRichApiMessageReadyImpl=function(e){Me._testReadyImpl=e},m._testTriggerRichApiMessageEvent=function(e){Me.getGenericEventRegistration("")._handleRichApiMessage(e)};var He,Ue=(__extends(We,He=Ne),We.prototype.add=function(e){var t=this;0==this._handlers.length&&this.m_genericEventInfo.registerFunc&&this.m_genericEventInfo.registerFunc();var n=this._context._controlId;return Me.getGenericEventRegistration(n).isReady||this._context._pendingRequest._addPreSyncPromise(Me.getGenericEventRegistration(n).ready()),ce.createTraceMarkerForCallback(this._context,function(){t._handlers.push(e),1==t._handlers.length&&Me.getGenericEventRegistration(n).register(t.m_genericEventInfo.eventType,t.m_genericEventInfo.getTargetIdFunc(),t._callback)}),new ke(this._context,this,e)},We.prototype.remove=function(n){var r=this;1==this._handlers.length&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();var i=this._context._controlId;ce.createTraceMarkerForCallback(this._context,function(){for(var e=r._handlers,t=e.length-1;0<=t;t--)if(e[t]===n){e.splice(t,1);break}0==e.length&&Me.getGenericEventRegistration(i).unregister(r.m_genericEventInfo.eventType,r.m_genericEventInfo.getTargetIdFunc(),r._callback)})},We.prototype.removeAll=function(){},We);function We(e,t,n,r){var i=He.call(this,e,t,n,r)||this;return i.m_genericEventInfo=r,i}m.GenericEventHandlers=Ue;var Ge=(Ve.prototype._handleResult=function(e){this.m_clientObject._handleIdResult(e)},Ve);function Ve(e){this.m_clientObject=e}var ze=(qe.createGlobalObjectObjectPath=function(e){var t={Id:e._nextId(),ObjectPathType:1,Name:""};return new k(t,null,!1,!1,1,4)},qe.createNewObjectObjectPath=function(e,t,n,r){var i={Id:e._nextId(),ObjectPathType:2,Name:t};return new k(i,null,n,!1,1,rt._fixupApiFlags(r))},qe.createPropertyObjectPath=function(e,t,n,r,i,o){var a={Id:e._nextId(),ObjectPathType:4,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id};return new k(a,t._objectPath,r,i,1,rt._fixupApiFlags(o))},qe.createIndexerObjectPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new k(r,t._objectPath,!1,!1,1,4)},qe.createIndexerObjectPathUsingParentPath=function(e,t,n){var r={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t.objectPathInfo.Id,ArgumentInfo:{}};return r.ArgumentInfo.Arguments=n,new k(r,t,!1,!1,1,4)},qe.createMethodObjectPath=function(e,t,n,r,i,o,a,s,c){var l={Id:e._nextId(),ObjectPathType:3,Name:n,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}},u=rt.setMethodArguments(e,l.ArgumentInfo,i),p=new k(l,t._objectPath,o,a,r,rt._fixupApiFlags(c));return p.argumentObjectPaths=u,p.getByIdMethodName=s,p},qe.createReferenceIdObjectPath=function(e,t){var n={Id:e._nextId(),ObjectPathType:6,Name:t,ArgumentInfo:{}};return new k(n,null,!1,!1,1,4)},qe.createChildItemObjectPathUsingIndexerOrGetItemAt=function(e,t,n,r,i){var o=rt.tryGetObjectIdFromLoadOrRetrieveResult(r);return e&&!rt.isNullOrUndefined(o)?qe.createChildItemObjectPathUsingIndexer(t,n,r):qe.createChildItemObjectPathUsingGetItemAt(t,n,r,i)},qe.createChildItemObjectPathUsingIndexer=function(e,t,n){var r=rt.tryGetObjectIdFromLoadOrRetrieveResult(n),i=i={Id:e._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return i.ArgumentInfo.Arguments=[r],new k(i,t._objectPath,!1,!1,1,4)},qe.createChildItemObjectPathUsingGetItemAt=function(e,t,n,r){var i=n[Re.index];i&&(r=i);var o={Id:e._nextId(),ObjectPathType:3,Name:Re.getItemAt,ParentObjectPathId:t._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return o.ArgumentInfo.Arguments=[r],new k(o,t._objectPath,!1,!1,1,4)},qe);function qe(){}m.ObjectPathFactory=ze;var Ke=(Je.prototype.executeAsync=function(e,t,n,r){var i=this,o=O.buildMessageArrayForIRequestExecutor(e,t,n,Je.SourceLibHeaderValue,r),a=this.m_context._blockWrite&&0!=(1&t);if(a)throw"Block Write: "+a;return new m.Promise(function(n,e){OSF.DDA.RichApi.executeRichApiRequestAsync(o,function(e){var t;C.log("Response:"),C.log(JSON.stringify(e)),"succeeded"==e.status?t=O.buildResponseOnSuccess(O.getResponseBody(e),O.getResponseHeaders(e)):(t=O.buildResponseOnError(e.error.code,e.error.message),i.m_context._processOfficeJsErrorResponse(e.error.code,t)),n(t)})})},Je.SourceLibHeaderValue="officejs",Je);function Je(e){this.m_context=e}var Xe=(Qe.prototype.add=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t._addCommon(e,!0)}):this._addCommon(e,!0)},Qe.prototype._autoAdd=function(e){this._addCommon(e,!1),this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e},Qe.prototype._autoTrackIfNecessaryWhenHandleObjectResultValue=function(e,t){this.m_context._autoCleanup&&!e[Re.isTracked]&&e!==this.m_context._rootObject&&t&&!rt.isNullOrEmptyString(t[Re.referenceId])&&((this._autoCleanupList[e._objectPath.objectPathInfo.Id]=e)[Re.isTracked]=!0)},Qe.prototype._addCommon=function(e,t){if(e[Re.isTracked])t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id];else{var n=e[Re.referenceId];if(e._objectPath.objectPathInfo[Re.objectPathInfoDoNotKeepReferenceFieldName])throw rt.createRuntimeError(g.generalException,C._getResourceString(et.objectIsUntracked),null);rt.isNullOrEmptyString(n)&&e._KeepReference&&(e._KeepReference(),ce.createInstantiateAction(this.m_context,e),t&&this.m_context._autoCleanup&&delete this._autoCleanupList[e._objectPath.objectPathInfo.Id],e[Re.isTracked]=!0)}},Qe.prototype.remove=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t._removeCommon(e)}):this._removeCommon(e)},Qe.prototype._removeCommon=function(e){e._objectPath.objectPathInfo[Re.objectPathInfoDoNotKeepReferenceFieldName]=!0,e.context._pendingRequest._removeKeepReferenceAction(e._objectPath.objectPathInfo.Id);var t=e[Re.referenceId];if(!rt.isNullOrEmptyString(t)){var n=this.m_context._rootObject;n._RemoveReference&&n._RemoveReference(t)}delete e[Re.isTracked]},Qe.prototype._retrieveAndClearAutoCleanupList=function(){var e=this._autoCleanupList;return this._autoCleanupList={},e},Qe);function Qe(e){this._autoCleanupList={},this.m_context=e}m.TrackedObjects=Xe;var Ye=(Ze.prototype.process=function(){this.m_showDispose&&Ae._calculateLastUsedObjectPathIds(this.m_actions);for(var e=0;e<this.m_actions.length;e++)this.processOneAction(this.m_actions[e]);return this.m_statements},Ze.prototype.processForDebugStatementInfo=function(e){this.m_showDispose&&Ae._calculateLastUsedObjectPathIds(this.m_actions),this.m_statements=[];for(var t=-1,n=0;n<this.m_actions.length&&(this.processOneAction(this.m_actions[n]),e==n&&(t=this.m_statements.length-1),!(0<=t&&this.m_statements.length>t+5+1));n++);if(t<0)return null;var r=t-5;r<0&&(r=0);var i=t+1+5;i>this.m_statements.length&&(i=this.m_statements.length);var o=[];0!=r&&o.push("...");for(var a=r;a<t;a++)o.push(this.m_statements[a]);o.push("// >>>>>"),o.push(this.m_statements[t]),o.push("// <<<<<");for(var s=t+1;s<i;s++)o.push(this.m_statements[s]);return i<this.m_statements.length&&o.push("..."),{statement:this.m_statements[t],surroundingStatements:o}},Ze.prototype.processOneAction=function(e){switch(e.actionInfo.ActionType){case 1:this.processInstantiateAction(e);break;case 3:this.processMethodAction(e);break;case 2:this.processQueryAction(e);break;case 7:this.processQueryAsJsonAction(e);break;case 6:this.processRecursiveQueryAction(e);break;case 4:this.processSetPropertyAction(e);break;case 5:this.processTraceAction(e);break;case 8:this.processEnsureUnchangedAction(e);break;case 9:this.processUpdateAction(e)}},Ze.prototype.processInstantiateAction=function(e){var t=e.actionInfo.ObjectPathId,n=this.m_referencedObjectPaths[t],r=this.getObjVarName(t);if(this.m_declaredObjectPathMap[t])i="// Instantiate {"+r+"}",i=this.appendDisposeCommentIfRelevant(i,e),this.m_statements.push(i);else{var i="var "+r+" = "+this.buildObjectPathExpressionWithParent(n)+";";i=this.appendDisposeCommentIfRelevant(i,e),this.m_statements.push(i),this.m_declaredObjectPathMap[t]=r}},Ze.prototype.processMethodAction=function(e){var t=e.actionInfo.Name;if("_KeepReference"===t){if(!m._internalConfig.showInternalApiInDebugInfo)return;t="track"}var n=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+rt._toCamelLowerCase(t)+"("+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processQueryAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".load("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processQueryAsJsonAction=function(e){var t=this.buildQueryExpression(e),n=this.getObjVarName(e.actionInfo.ObjectPathId)+".retrieve("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processRecursiveQueryAction=function(e){var t="";e.actionInfo.RecursiveQueryInfo&&(t=JSON.stringify(e.actionInfo.RecursiveQueryInfo));var n=this.getObjVarName(e.actionInfo.ObjectPathId)+".loadRecursive("+t+");";n=this.appendDisposeCommentIfRelevant(n,e),this.m_statements.push(n)},Ze.prototype.processSetPropertyAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+"."+rt._toCamelLowerCase(e.actionInfo.Name)+" = "+this.buildArgumentsExpression(e.actionInfo.ArgumentInfo)+";";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processTraceAction=function(e){var t="context.trace();";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processEnsureUnchangedAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".ensureUnchanged("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.processUpdateAction=function(e){var t=this.getObjVarName(e.actionInfo.ObjectPathId)+".update("+JSON.stringify(e.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,e),this.m_statements.push(t)},Ze.prototype.appendDisposeCommentIfRelevant=function(e,t){var n=this;if(this.m_showDispose){var r=t.actionInfo.L;if(r&&0<r.length)return e+" // And then dispose {"+r.map(function(e){return n.getObjVarName(e)}).join(", ")+"}"}return e},Ze.prototype.buildQueryExpression=function(e){if(e.actionInfo.QueryInfo){var t={};return t.select=e.actionInfo.QueryInfo.Select,t.expand=e.actionInfo.QueryInfo.Expand,t.skip=e.actionInfo.QueryInfo.Skip,t.top=e.actionInfo.QueryInfo.Top,void 0===t.top&&void 0===t.skip&&void 0===t.expand?void 0===t.select?"":JSON.stringify(t.select):JSON.stringify(t)}return""},Ze.prototype.buildObjectPathExpressionWithParent=function(e){return 5!=e.objectPathInfo.ObjectPathType&&3!=e.objectPathInfo.ObjectPathType&&4!=e.objectPathInfo.ObjectPathType||!e.objectPathInfo.ParentObjectPathId?this.buildObjectPathExpression(e):this.getObjVarName(e.objectPathInfo.ParentObjectPathId)+"."+this.buildObjectPathExpression(e)},Ze.prototype.buildObjectPathExpression=function(e){var t=this.buildObjectPathInfoExpression(e.objectPathInfo),n=e.originalObjectPathInfo;return n&&(t=t+" /* originally "+this.buildObjectPathInfoExpression(n)+" */"),t},Ze.prototype.buildObjectPathInfoExpression=function(e){switch(e.ObjectPathType){case 1:return"context."+this.m_globalObjName;case 5:return"getItem("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 3:return rt._toCamelLowerCase(e.Name)+"("+this.buildArgumentsExpression(e.ArgumentInfo)+")";case 2:return e.Name+".newObject()";case 7:return"null";case 4:return rt._toCamelLowerCase(e.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(e.Name)+")"}},Ze.prototype.buildArgumentsExpression=function(e){var t="";if(!e.Arguments||0===e.Arguments.length)return t;if(this.m_removePII)return void 0===e.Arguments[0]?t:"...";for(var n=0;n<e.Arguments.length;n++)0<n&&(t+=", "),t+=this.buildArgumentLiteral(e.Arguments[n],e.ReferencedObjectPathIds?e.ReferencedObjectPathIds[n]:null);return"undefined"===t&&(t=""),t},Ze.prototype.buildArgumentLiteral=function(e,t){return"number"==typeof e&&e===t?this.getObjVarName(t):JSON.stringify(e)},Ze.prototype.getObjVarNameBase=function(e){var t="v",n=this.m_referencedObjectPaths[e];if(n)switch(n.objectPathInfo.ObjectPathType){case 1:t=this.m_globalObjName;break;case 4:t=rt._toCamelLowerCase(n.objectPathInfo.Name);break;case 3:var r=n.objectPathInfo.Name;3<r.length&&"Get"===r.substr(0,3)&&(r=r.substr(3)),t=rt._toCamelLowerCase(r);break;case 5:var i=this.getObjVarNameBase(n.objectPathInfo.ParentObjectPathId);t="s"===i.charAt(i.length-1)?i.substr(0,i.length-1):i+"Item"}return t},Ze.prototype.getObjVarName=function(e){if(this.m_variableNameForObjectPathMap[e])return this.m_variableNameForObjectPathMap[e];var t=this.getObjVarNameBase(e);if(!this.m_variableNameToObjectPathMap[t])return this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t;for(var n=1;this.m_variableNameToObjectPathMap[t+n.toString()];)n++;return t+=n.toString(),this.m_variableNameForObjectPathMap[e]=t,this.m_variableNameToObjectPathMap[t]=e,t},Ze);function Ze(e,t,n,r,i){e=e||"root",this.m_globalObjName=e,this.m_referencedObjectPaths=t,this.m_actions=n,this.m_statements=[],this.m_variableNameForObjectPathMap={},this.m_variableNameToObjectPathMap={},this.m_declaredObjectPathMap={},this.m_showDispose=r,this.m_removePII=i}var $e,et=(__extends(tt,$e=ee),tt.cannotRegisterEvent="CannotRegisterEvent",tt.connectionFailureWithStatus="ConnectionFailureWithStatus",tt.connectionFailureWithDetails="ConnectionFailureWithDetails",tt.propertyNotLoaded="PropertyNotLoaded",tt.runMustReturnPromise="RunMustReturnPromise",tt.moreInfoInnerError="MoreInfoInnerError",tt.cannotApplyPropertyThroughSetMethod="CannotApplyPropertyThroughSetMethod",tt.invalidOperationInCellEditMode="InvalidOperationInCellEditMode",tt.objectIsUntracked="ObjectIsUntracked",tt.customFunctionDefintionMissing="CustomFunctionDefintionMissing",tt.customFunctionImplementationMissing="CustomFunctionImplementationMissing",tt.customFunctionNameContainsBadChars="CustomFunctionNameContainsBadChars",tt.customFunctionNameCannotSplit="CustomFunctionNameCannotSplit",tt.customFunctionUnexpectedNumberOfEntriesInResultBatch="CustomFunctionUnexpectedNumberOfEntriesInResultBatch",tt.customFunctionCancellationHandlerMissing="CustomFunctionCancellationHandlerMissing",tt.customFunctionInvalidFunction="CustomFunctionInvalidFunction",tt.customFunctionInvalidFunctionMapping="CustomFunctionInvalidFunctionMapping",tt.customFunctionWindowMissing="CustomFunctionWindowMissing",tt.customFunctionDefintionMissingOnWindow="CustomFunctionDefintionMissingOnWindow",tt.pendingBatchInProgress="PendingBatchInProgress",tt.notInsideBatch="NotInsideBatch",tt.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",tt);function tt(){return null!==$e&&$e.apply(this,arguments)||this}m.ResourceStrings=et,C.addResourceStringValues({CannotRegisterEvent:"The event handler cannot be registered.",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.",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()".',InvalidOrTimedOutSessionMessage:"Your Office Online session has expired or is invalid. To continue, refresh the page.",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.",InvalidSheetName:"The request cannot be processed because the specified worksheet cannot be found. Please try again.",CustomFunctionDefintionMissing:"A property with the name '{0}' that represents the function's definition must exist on Excel.Script.CustomFunctions.",CustomFunctionDefintionMissingOnWindow:"A property with the name '{0}' that represents the function's definition must exist on the window object.",CustomFunctionImplementationMissing:"The property with the name '{0}' on Excel.Script.CustomFunctions that represents the function's definition must contain a 'call' property that implements the function.",CustomFunctionNameContainsBadChars:"The function name may only contain letters, digits, underscores, and periods.",CustomFunctionNameCannotSplit:"The function name must contain a non-empty namespace and a non-empty short name.",CustomFunctionUnexpectedNumberOfEntriesInResultBatch:"The batching function returned a number of results that doesn't match the number of parameter value sets that were passed into it.",CustomFunctionCancellationHandlerMissing:"The cancellation handler onCanceled is missing in the function. The handler must be present as the function is defined as cancelable.",CustomFunctionInvalidFunction:"The property with the name '{0}' that represents the function's definition is not a valid function.",CustomFunctionInvalidFunctionMapping:"The property with the name '{0}' on CustomFunctionMappings that represents the function's definition is not a valid function.",CustomFunctionWindowMissing:"The window object was not found.",PendingBatchInProgress:"There is a pending batch in progress. The batch method may not be called inside another batch, or simultaneously with another batch.",NotInsideBatch:"Operations may not be invoked outside of a batch method.",CannotUpdateReadOnlyProperty:"The property '{0}' is read-only and it cannot be updated.",ObjectIsUntracked:"The object is untracked."});var nt,rt=(__extends(it,nt=Y),it.fixObjectPathIfNecessary=function(e,t){e&&e._objectPath&&t&&e._objectPath.updateUsingObjectData(t,e)},it.load=function(e,t){return e.context.load(e,t),e},it.loadAndSync=function(e,t){return e.context.load(e,t),e.context.sync().then(function(){return e})},it.retrieve=function(e,t){var n=m._internalConfig.alwaysPolyfillClientObjectRetrieveMethod;n=n||!it.isSetSupported("RichApiRuntime","1.1");var r=new Oe(e,n);return e._retrieve(t,r),r},it.retrieveAndSync=function(e,t){var n=it.retrieve(e,t);return e.context.sync().then(function(){return n})},it.toJson=function(e,t,n,r){var i={};for(var o in t)void 0!==(a=t[o])&&(i[o]=a);for(var o in n){var a;void 0!==(a=n[o])&&(a[it.fieldName_isCollection]&&void 0!==a[it.fieldName_m__items]?i[o]=a.toJSON().items:i[o]=a.toJSON())}return r&&(i.items=r.map(function(e){return e.toJSON()})),i},it.throwError=function(e,t,n){throw new h.RuntimeError({code:e,httpStatusCode:400,message:C._getResourceString(e,t),debugInfo:n?{errorLocation:n}:void 0})},it.createRuntimeError=function(e,t,n,r,i){return new h.RuntimeError({code:e,httpStatusCode:r,message:t,debugInfo:{errorLocation:n},data:i})},it.throwIfNotLoaded=function(e,t,n,r){if(!r&&C.isUndefined(t)&&e.charCodeAt(0)!=it.s_underscoreCharCode&&!it.s_suppressPropertyNotLoadedException)throw it.createPropertyNotLoadedException(n,e)},it._getPropertyValueWithoutCheckLoaded=function(e,t){it.s_suppressPropertyNotLoadedException=!0;try{return e[t]}finally{it.s_suppressPropertyNotLoadedException=!1}},it.createPropertyNotLoadedException=function(e,t){return new h.RuntimeError({code:re.propertyNotLoaded,httpStatusCode:400,message:C._getResourceString(et.propertyNotLoaded,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},it.createCannotUpdateReadOnlyPropertyException=function(e,t){return new h.RuntimeError({code:re.cannotUpdateReadOnlyProperty,httpStatusCode:400,message:C._getResourceString(et.cannotUpdateReadOnlyProperty,t),debugInfo:e?{errorLocation:e+"."+t}:void 0})},it.promisify=function(e){return new m.Promise(function(t,n){e(function(e){"failed"==e.status?n(e.error):t(e.value)})})},it._addActionResultHandler=function(e,t,n){e.context._pendingRequest.addActionResultHandler(t,n)},it._handleNavigationPropertyResults=function(e,t,n){for(var r=0;r<n.length-1;r+=2)C.isUndefined(t[n[r+1]])||e[n[r]]._handleResult(t[n[r+1]])},it._fixupApiFlags=function(e){return"boolean"==typeof e&&(e=e?1:0),e},it.definePropertyThrowUnloadedException=function(e,t,n){Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){throw it.createPropertyNotLoadedException(t,n)},set:function(){throw it.createCannotUpdateReadOnlyPropertyException(t,n)}})},it.defineReadOnlyPropertyWithValue=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n},set:function(){throw it.createCannotUpdateReadOnlyPropertyException(null,t)}})},it.processRetrieveResult=function(e,t,n,r){if(!C.isNullOrUndefined(t))if(r){var i=t[Re.itemsLowerCase];if(Array.isArray(i)){for(var o=[],a=0;a<i.length;a++){var s=r(i[a],a),c={};(c[Re.proxy]=s)._handleRetrieveResult(i[a],c),o.push(c)}it.defineReadOnlyPropertyWithValue(n,Re.itemsLowerCase,o)}}else{var l=e[Re.scalarPropertyNames],u=e[Re.navigationPropertyNames],p=e[Re.className];if(l)for(a=0;a<l.length;a++){var f=t[d=l[a]];C.isUndefined(f)?it.definePropertyThrowUnloadedException(n,p,d):it.defineReadOnlyPropertyWithValue(n,d,f)}if(u)for(a=0;a<u.length;a++){var d;if(f=t[d=u[a]],C.isUndefined(f))it.definePropertyThrowUnloadedException(n,p,d);else{var h=e[d],g={};h._handleRetrieveResult(f,g),g[Re.proxy]=h,Array.isArray(g[Re.itemsLowerCase])&&(g=g[Re.itemsLowerCase]),it.defineReadOnlyPropertyWithValue(n,d,g)}}}},it.setMockData=function(e,t,n,r){if(C.isNullOrUndefined(t))e._handleResult(t);else{if(e[Re.scalarPropertyOriginalNames]){for(var i={},o=e[Re.scalarPropertyOriginalNames],a=e[Re.scalarPropertyNames],s=0;s<a.length;s++)void 0!==t[a[s]]&&(i[o[s]]=t[a[s]]);e._handleResult(i)}if(e[Re.navigationPropertyNames]){var c=e[Re.navigationPropertyNames];for(s=0;s<c.length;s++)if(void 0!==t[c[s]]){var l=e[c[s]];l.setMockData&&l.setMockData(t[c[s]])}}if(e[Re.isCollection]&&n){var u=Array.isArray(t)?t:t[Re.itemsLowerCase];if(Array.isArray(u)){var p=[];for(s=0;s<u.length;s++){var f=n(u,s);it.setMockData(f,u[s]),p.push(f)}r(p)}}}},it.applyMixin=function(t,n){Object.getOwnPropertyNames(n.prototype).forEach(function(e){"constructor"!==e&&Object.defineProperty(t.prototype,e,Object.getOwnPropertyDescriptor(n.prototype,e))})},it.ensureTypeInitialized=function(e){var t=new be;new e(t,ze.createNewObjectObjectPath(t,"Temp",!1,0))},it.fieldName_m__items="m__items",it.fieldName_isCollection="_isCollection",it._synchronousCleanup=!1,it.s_underscoreCharCode="_".charCodeAt(0),it.s_suppressPropertyNotLoadedException=!1,it);function it(){return null!==nt&&nt.apply(this,arguments)||this}m.Utility=rt;var ot=(at.invokeMethod=function(e,t,n,r,i,o){var a=ce.createMethodAction(e.context,e,t,n,r,i),s=new U(o);return rt._addActionResultHandler(e,a,s),s},at.invokeEnsureUnchanged=function(e,t){ce.createEnsureUnchangedAction(e.context,e,t)},at.invokeSetProperty=function(e,t,n,r){ce.createSetPropertyAction(e.context,e,t,n,r)},at.createRootServiceObject=function(e,t){return new e(t,ze.createGlobalObjectObjectPath(t))},at.createObjectFromReferenceId=function(e,t,n){return new e(t,ze.createReferenceIdObjectPath(t,n))},at.createTopLevelServiceObject=function(e,t,n,r,i){return new e(t,ze.createNewObjectObjectPath(t,n,r,i))},at.createPropertyObject=function(e,t,n,r,i){var o=ze.createPropertyObjectPath(t.context,t,n,r,!1,i);return new e(t.context,o)},at.createIndexerObject=function(e,t,n){var r=ze.createIndexerObjectPath(t.context,t,n);return new e(t.context,r)},at.createMethodObject=function(e,t,n,r,i,o,a,s,c){var l=ze.createMethodObjectPath(t.context,t,n,r,i,o,a,s,c);return new e(t.context,l)},at.createChildItemObject=function(e,t,n,r,i){var o=ze.createChildItemObjectPathUsingIndexerOrGetItemAt(t,n.context,n,r,i);return new e(n.context,o)},at);function at(){}m.BatchApiHelper=ot;var st=(ct.prototype.ensureArraySize=function(e,t){for(var n=t-e.length;0<n;)e.push(0),n--},ct.prototype.getString=function(e){return"number"==typeof e?0<e?this.m_strings[e-1]:null:e},ct.prototype.buildEnumType=function(e){var t;if(Array.isArray(e)){(t={name:e[0],fields:e[2]}).fields||(t.fields={});var n=e[1];if(Array.isArray(n))for(var r=0;r<n.length;r++)t.fields[n[r]]=this.toSimpleCamelUpperCase(n[r])}else t=e;this.m_targetNamespaceObject[t.name]=t.fields},ct.prototype.buildClientObjectType=function(n,e){function t(e,t){pe.apply(this,arguments),r.m_targetNamespaceObject[n.name]._typeInited||(r.buildPrototype(r.m_targetNamespaceObject[n.name],n),r.m_targetNamespaceObject[n.name]._typeInited=!0),m._internalConfig.appendTypeNameToObjectPathInfo&&this._objectPath&&this._objectPath.objectPathInfo&&this._className&&(this._objectPath.objectPathInfo.T=this._className)}var r=this;this.m_targetNamespaceObject[n.name]=t,this.extendsType(t,pe),this.buildNewObject(t,n),0!=(2&n.behaviorFlags)&&(t.prototype._KeepReference=function(){ot.invokeMethod(this,"_KeepReference",1,[],0,0)}),0!=(32&n.behaviorFlags)&&this.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_StaticCustomize").call(null,t),e&&(this.buildPrototype(t,n),t._typeInited=!0)},ct.prototype.extendsType=function(e,t){function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ct.prototype.findObjectUnderPath=function(e,t,n){for(var r=e,i=n;i<t.length;i++){if("object"!=typeof r)throw new m.Error("Cannot find "+t.join("."));r=r[t[i]]}return r},ct.prototype.getFunction=function(e){var t=this.resolveObjectByFullName(e);if("function"!=typeof t)throw new m.Error("Cannot find function or type: "+e);return t},ct.prototype.resolveObjectByFullName=function(e){var t=e.split(".");if(1===t.length)return this.m_targetNamespaceObject[t[0]];var n=t[0];return n===this.m_namespace?this.findObjectUnderPath(this.m_targetNamespaceObject,t,1):this.m_namespaceMap[n]?this.findObjectUnderPath(this.m_namespaceMap[n],t,1):this.findObjectUnderPath(this.m_targetNamespaceObject,t,0)},ct.prototype.evaluateSimpleExpression=function(e,t){if(rt.isNullOrUndefined(e))return null;var n=e.split(".");if(3===n.length&&"OfficeExtension"===n[0]&&"Constants"===n[1])return Re[n[2]];if("this"!==n[0])throw new m.Error("Cannot evaluate: "+e);for(var r=t,i=1;i<n.length;i++)r="toString()"==n[i]?r.toString():"()"===n[i].substr(n[i].length-2)?r[n[i].substr(0,n[i].length-2)]():r[n[i]];return r},ct.prototype.evaluateEventTargetId=function(e,t){return rt.isNullOrEmptyString(e)?"":this.evaluateSimpleExpression(e,t)},ct.prototype.isAllDigits=function(e){for(var t="0".charCodeAt(0),n="9".charCodeAt(0),r=0;r<e.length;r++)if(e.charCodeAt(r)<t||e.charCodeAt(r)>n)return!1;return!0},ct.prototype.evaluateEventType=function(e){if(rt.isNullOrEmptyString(e))return 0;if(this.isAllDigits(e))return parseInt(e);var t=this.resolveObjectByFullName(e);if("number"!=typeof t)throw new m.Error("Invalid event type: "+e);return t},ct.prototype.buildPrototype=function(e,t){this.buildScalarProperties(e,t),this.buildNavigationProperties(e,t),this.buildScalarMethods(e,t),this.buildNavigationMethods(e,t),this.buildEvents(e,t),this.buildHandleResult(e,t),this.buildHandleIdResult(e,t),this.buildHandleRetrieveResult(e,t),this.buildLoad(e,t),this.buildRetrieve(e,t),this.buildSetMockData(e,t),this.buildEnsureUnchanged(e,t),this.buildUpdate(e,t),this.buildSet(e,t),this.buildToJSON(e,t),this.buildItems(e,t),this.buildTypeMetadataInfo(e,t),this.buildTrackUntrack(e,t),this.buildMixin(e,t)},ct.prototype.toSimpleCamelUpperCase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1)},ct.prototype.ensureOriginalName=function(e){null===e.originalName&&(e.originalName=this.toSimpleCamelUpperCase(e.name))},ct.prototype.getFieldName=function(e){return"m_"+e.name},ct.prototype.throwIfApiNotSupported=function(e,t){if(this.m_apiSets&&0<t.apiSetInfoOrdinal){var n=this.m_apiSets[t.apiSetInfoOrdinal-1];n&&rt.throwIfApiNotSupported(e.name+"."+t.name,n.name,n.version,this.m_hostName)}},ct.prototype.buildScalarProperties=function(e,t){if(Array.isArray(t.scalarProperties))for(var n=0;n<t.scalarProperties.length;n++){var r=t.scalarProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,6),t.scalarProperties[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],originalName:this.getString(r[3]),setMethodApiFlags:r[4],undoableApiSetInfoOrdinal:r[5]}),this.buildScalarProperty(e,t,t.scalarProperties[n])}},ct.prototype.calculateApiFlags=function(e,t){if(0<t){var n=this.m_apiSets[t-1];n&&(e=Y.calculateApiFlags(e,n.name,n.version))}return e},ct.prototype.buildScalarProperty=function(e,n,r){this.ensureOriginalName(r);var i=this,o=this.getFieldName(r),t={get:function(){return rt.throwIfNotLoaded(r.name,this[o],n.name,this._isNull),i.throwIfApiNotSupported(n,r),this[o]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(t.set=function(e){if(!(4&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)){this[o]=e;var t=i.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);ot.invokeSetProperty(this,r.originalName,e,t)}}),Object.defineProperty(e.prototype,r.name,t)},ct.prototype.buildNavigationProperties=function(e,t){if(Array.isArray(t.navigationProperties))for(var n=0;n<t.navigationProperties.length;n++){var r=t.navigationProperties[n];Array.isArray(r)&&(this.ensureArraySize(r,8),t.navigationProperties[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[4]),getMethodApiFlags:r[5],setMethodApiFlags:r[6],propertyTypeFullName:this.getString(r[1]),undoableApiSetInfoOrdinal:r[7]}),this.buildNavigationProperty(e,t,t.navigationProperties[n])}},ct.prototype.buildNavigationProperty=function(e,n,r){this.ensureOriginalName(r);var i=this,o=this.getFieldName(r),t={get:function(){return this[i.getFieldName(r)]||(i.throwIfApiNotSupported(n,r),this[o]=ot.createPropertyObject(i.getFunction(r.propertyTypeFullName),this,r.originalName,0!=(16&r.behaviorFlags),r.getMethodApiFlags)),64&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Get").call(this,this,this[o]),this[o]},enumerable:!0,configurable:!0};0==(2&r.behaviorFlags)&&(t.set=function(e){if(!(4&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+n.name+"_"+r.originalName+"_Set").call(this,this,e).handled)){this[o]=e;var t=i.calculateApiFlags(r.setMethodApiFlags,r.undoableApiSetInfoOrdinal);ot.invokeSetProperty(this,r.originalName,e,t)}}),Object.defineProperty(e.prototype,r.name,t)},ct.prototype.buildScalarMethods=function(e,t){if(Array.isArray(t.scalarMethods))for(var n=0;n<t.scalarMethods.length;n++){var r=t.scalarMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.scalarMethods[n]={name:this.getString(r[0]),behaviorFlags:r[2],apiSetInfoOrdinal:r[3],originalName:this.getString(r[5]),apiFlags:r[4],parameterCount:r[1],undoableApiSetInfoOrdinal:r[6]}),this.buildScalarMethod(e,t,t.scalarMethods[n])}},ct.prototype.buildScalarMethod=function(e,p,f){this.ensureOriginalName(f);var d=this;e.prototype[f.name]=function(){var e=[];if(64&f.behaviorFlags&&0<f.parameterCount){for(var t=0;t<f.parameterCount-1;t++)e.push(arguments[t]);var n=[];for(t=f.parameterCount-1;t<arguments.length;t++)n.push(arguments[t]);e.push(n)}else for(t=0;t<arguments.length;t++)e.push(arguments[t]);if(1&f.behaviorFlags){var r=d.getFunction(ct.CustomizationCodeNamespace+"."+p.name+"_"+f.originalName),i=[this];for(t=0;t<e.length;t++)i.push(e[t]);var o=r.apply(this,i),a=o.handled,s=o.result;if(a)return s}d.throwIfApiNotSupported(p,f);var c=0;32&f.behaviorFlags&&(c=1);var l=0;2&f.behaviorFlags&&(l=1);var u=d.calculateApiFlags(f.apiFlags,f.undoableApiSetInfoOrdinal);return ot.invokeMethod(this,f.originalName,l,e,u,c)}},ct.prototype.buildNavigationMethods=function(e,t){if(Array.isArray(t.navigationMethods))for(var n=0;n<t.navigationMethods.length;n++){var r=t.navigationMethods[n];Array.isArray(r)&&(this.ensureArraySize(r,9),t.navigationMethods[n]={name:this.getString(r[0]),behaviorFlags:r[3],apiSetInfoOrdinal:r[4],originalName:this.getString(r[6]),apiFlags:r[5],parameterCount:r[2],returnTypeFullName:this.getString(r[1]),returnObjectGetByIdMethodName:this.getString(r[7]),undoableApiSetInfoOrdinal:r[8]}),this.buildNavigationMethod(e,t,t.navigationMethods[n])}},ct.prototype.buildNavigationMethod=function(e,u,p){this.ensureOriginalName(p);var f=this;e.prototype[p.name]=function(){var e=[];if(64&p.behaviorFlags&&0<p.parameterCount){for(var t=0;t<p.parameterCount-1;t++)e.push(arguments[t]);var n=[];for(t=p.parameterCount-1;t<arguments.length;t++)n.push(arguments[t]);e.push(n)}else for(t=0;t<arguments.length;t++)e.push(arguments[t]);if(1&p.behaviorFlags){var r=f.getFunction(ct.CustomizationCodeNamespace+"."+u.name+"_"+p.originalName),i=[this];for(t=0;t<e.length;t++)i.push(e[t]);var o=r.apply(this,i),a=o.handled,s=o.result;if(a)return s}if(f.throwIfApiNotSupported(u,p),0!=(16&p.behaviorFlags))return ot.createIndexerObject(f.getFunction(p.returnTypeFullName),this,e);var c=0;2&p.behaviorFlags&&(c=1);var l=f.calculateApiFlags(p.apiFlags,p.undoableApiSetInfoOrdinal);return ot.createMethodObject(f.getFunction(p.returnTypeFullName),this,p.originalName,c,e,0!=(4&p.behaviorFlags),0!=(8&p.behaviorFlags),p.returnObjectGetByIdMethodName,l)}},ct.prototype.buildHandleResult=function(e,l){var u=this;e.prototype._handleResult=function(e){if(pe.prototype._handleResult.call(this,e),!rt.isNullOrUndefined(e)){if(rt.fixObjectPathIfNecessary(this,e),8&l.behaviorFlags&&u.getFunction(ct.CustomizationCodeNamespace+"."+l.name+"_HandleResult").call(this,this,e),l.scalarProperties)for(var t=0;t<l.scalarProperties.length;t++)rt.isUndefined(e[l.scalarProperties[t].originalName])||(0!=(8&l.scalarProperties[t].behaviorFlags)?this[u.getFieldName(l.scalarProperties[t])]=rt.adjustToDateTime(e[l.scalarProperties[t].originalName]):this[u.getFieldName(l.scalarProperties[t])]=e[l.scalarProperties[t].originalName]);if(l.navigationProperties){for(var n=[],r=0;r<l.navigationProperties.length;r++)n.push(l.navigationProperties[r].name),n.push(l.navigationProperties[r].originalName);rt._handleNavigationPropertyResults(this,e,n)}if(0!=(1&l.behaviorFlags)){var i=u.hasIndexMethod(l);if(!rt.isNullOrUndefined(e[Re.items])){this.m__items=[];for(var o=e[Re.items],a=u.getFunction(l.childItemTypeFullName),s=0;s<o.length;s++){var c=ot.createChildItemObject(a,i,this,o[s],s);c._handleResult(o[s]),this.m__items.push(c)}}}}}},ct.prototype.buildHandleRetrieveResult=function(e,a){var s=this;e.prototype._handleRetrieveResult=function(e,t){if(pe.prototype._handleRetrieveResult.call(this,e,t),!rt.isNullOrUndefined(e)){if(a.scalarProperties)for(var n=0;n<a.scalarProperties.length;n++)8&a.scalarProperties[n].behaviorFlags&&(rt.isNullOrUndefined(e[a.scalarProperties[n].name])||(e[a.scalarProperties[n].name]=rt.adjustToDateTime(e[a.scalarProperties[n].name])));if(1&a.behaviorFlags){var r=s.hasIndexMethod(a),i=s.getFunction(a.childItemTypeFullName),o=this;rt.processRetrieveResult(o,e,t,function(e,t){return ot.createChildItemObject(i,r,o,e,t)})}else rt.processRetrieveResult(this,e,t)}}},ct.prototype.buildHandleIdResult=function(e,r){var i=this;e.prototype._handleIdResult=function(e){if(pe.prototype._handleIdResult.call(this,e),!rt.isNullOrUndefined(e)&&(16&r.behaviorFlags&&i.getFunction(ct.CustomizationCodeNamespace+"."+r.name+"_HandleIdResult").call(this,this,e),r.scalarProperties))for(var t=0;t<r.scalarProperties.length;t++){var n=r.scalarProperties[t].originalName;"Id"!==n&&"_Id"!==n&&"_ReferenceId"!==n||rt.isNullOrUndefined(e[r.scalarProperties[t].originalName])||(this[i.getFieldName(r.scalarProperties[t])]=e[r.scalarProperties[t].originalName])}}},ct.prototype.buildLoad=function(e,t){e.prototype.load=function(e){return rt.load(this,e)}},ct.prototype.buildRetrieve=function(e,t){e.prototype.retrieve=function(e){return rt.retrieve(this,e)}},ct.prototype.buildNewObject=function(t,n){rt.isNullOrEmptyString(n.newObjectServerTypeFullName)||(t.newObject=function(e){return ot.createTopLevelServiceObject(t,e,n.newObjectServerTypeFullName,0!=(1&n.behaviorFlags),n.newObjectApiFlags)})},ct.prototype.buildSetMockData=function(e,r){var i=this;if(1&r.behaviorFlags){var o=i.hasIndexMethod(r);e.prototype.setMockData=function(e){var n=this;rt.setMockData(n,e,function(e,t){return ot.createChildItemObject(i.getFunction(r.childItemTypeFullName),o,n,e,t)},function(e){n.m__items=e})}}else e.prototype.setMockData=function(e){rt.setMockData(this,e)}},ct.prototype.buildEnsureUnchanged=function(e,t){e.prototype.ensureUnchanged=function(e){ot.invokeEnsureUnchanged(this,e)}},ct.prototype.buildUpdate=function(e,t){e.prototype.update=function(e){this._recursivelyUpdate(e)}},ct.prototype.buildSet=function(e,t){if(0==(1&t.behaviorFlags)){var n=[],r=[];if(t.scalarProperties)for(var i=0;i<t.scalarProperties.length;i++)0==(2&t.scalarProperties[i].behaviorFlags)&&0!=(1&t.scalarProperties[i].behaviorFlags)?r.push(t.scalarProperties[i].name):n.push(t.scalarProperties[i].name);var o=[];if(t.navigationProperties)for(i=0;i<t.navigationProperties.length;i++)0!=(16&t.navigationProperties[i].behaviorFlags)||0==(1&t.navigationProperties[i].behaviorFlags)||0==(32&t.navigationProperties[i].behaviorFlags)?n.push(t.navigationProperties[i].name):o.push(t.navigationProperties[i].name);0===o.length&&0===r.length||(e.prototype.set=function(e,t){this._recursivelySet(e,t,r,o,n)})}},ct.prototype.buildItems=function(e,t){0!=(1&t.behaviorFlags)&&Object.defineProperty(e.prototype,"items",{get:function(){return rt.throwIfNotLoaded("items",this.m__items,t.name,this._isNull),this.m__items},enumerable:!0,configurable:!0})},ct.prototype.buildToJSON=function(e,r){var i=this;0==(1&r.behaviorFlags)?e.prototype.toJSON=function(){var e={};if(r.scalarProperties)for(var t=0;t<r.scalarProperties.length;t++)0!=(1&r.scalarProperties[t].behaviorFlags)&&(e[r.scalarProperties[t].name]=this[i.getFieldName(r.scalarProperties[t])]);var n={};if(r.navigationProperties)for(t=0;t<r.navigationProperties.length;t++)0!=(1&r.navigationProperties[t].behaviorFlags)&&(n[r.navigationProperties[t].name]=this[i.getFieldName(r.navigationProperties[t])]);return rt.toJson(this,e,n)}:e.prototype.toJSON=function(){return rt.toJson(this,{},{},this.m__items)}},ct.prototype.buildTypeMetadataInfo=function(e,t){Object.defineProperty(e.prototype,"_className",{get:function(){return t.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isCollection",{get:function(){return 0!=(1&t.behaviorFlags)},enumerable:!0,configurable:!0}),rt.isNullOrEmptyString(t.collectionPropertyPath)||Object.defineProperty(e.prototype,"_collectionPropertyPath",{get:function(){return t.collectionPropertyPath},enumerable:!0,configurable:!0}),t.scalarProperties&&0<t.scalarProperties.length&&(Object.defineProperty(e.prototype,"_scalarPropertyNames",{get:function(){return this.m__scalarPropertyNames||(this.m__scalarPropertyNames=t.scalarProperties.map(function(e){return e.name})),this.m__scalarPropertyNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyOriginalNames",{get:function(){return this.m__scalarPropertyOriginalNames||(this.m__scalarPropertyOriginalNames=t.scalarProperties.map(function(e){return e.originalName})),this.m__scalarPropertyOriginalNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scalarPropertyUpdateable",{get:function(){return this.m__scalarPropertyUpdateable||(this.m__scalarPropertyUpdateable=t.scalarProperties.map(function(e){return 0==(2&e.behaviorFlags)})),this.m__scalarPropertyUpdateable},enumerable:!0,configurable:!0})),t.navigationProperties&&0<t.navigationProperties.length&&Object.defineProperty(e.prototype,"_navigationPropertyNames",{get:function(){return this.m__navigationPropertyNames||(this.m__navigationPropertyNames=t.navigationProperties.map(function(e){return e.name})),this.m__navigationPropertyNames},enumerable:!0,configurable:!0})},ct.prototype.buildTrackUntrack=function(e,t){2&t.behaviorFlags&&(e.prototype.track=function(){return this.context.trackedObjects.add(this),this},e.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this})},ct.prototype.buildMixin=function(e,t){if(4&t.behaviorFlags){var n=this.getFunction(t.name+"Custom");rt.applyMixin(e,n)}},ct.prototype.getOnEventName=function(e){return"_"===e[0]?"_on"+e.substr(1):"on"+e},ct.prototype.buildEvents=function(e,t){if(t.events)for(var n=0;n<t.events.length;n++){var r=t.events[n];Array.isArray(r)&&(this.ensureArraySize(r,7),t.events[n]={name:this.getString(r[0]),behaviorFlags:r[1],apiSetInfoOrdinal:r[2],typeExpression:this.getString(r[3]),targetIdExpression:this.getString(r[4]),register:this.getString(r[5]),unregister:this.getString(r[6])}),this.buildEvent(e,t,t.events[n])}},ct.prototype.buildEvent=function(e,t,n){1&n.behaviorFlags?this.buildV0Event(e,t,n):this.buildV2Event(e,t,n)},ct.prototype.buildV2Event=function(e,o,a){var s=this,t=this.getOnEventName(a.name),c=this.getFieldName(a);Object.defineProperty(e.prototype,t,{get:function(){if(!this[c]){s.throwIfApiNotSupported(o,a);var t=this,e=null;"null"!==a.register&&(e=this[a.register].bind(this));var n=null;"null"!==a.unregister&&(n=this[a.unregister].bind(this));var r=null;2&a.behaviorFlags&&(r=s.getFunction(ct.CustomizationCodeNamespace+"."+o.name+"_"+a.name+"_EventArgsTransform"));var i=s.evaluateEventType(a.typeExpression);this[c]=new Ue(this.context,this,a.name,{eventType:i,getTargetIdFunc:function(){return s.evaluateEventTargetId(a.targetIdExpression,t)},registerFunc:e,unregisterFunc:n,eventArgsTransformFunc:function(e){return r&&(e=r.call(t,t,e)),rt._createPromiseFromResult(e)}})}return this[c]},enumerable:!0,configurable:!0})},ct.prototype.buildV0Event=function(e,c,l){var u=this,t=this.getOnEventName(l.name),p=this.getFieldName(l);Object.defineProperty(e.prototype,t,{get:function(){if(!this[p]){u.throwIfApiNotSupported(c,l);var n=this,e=null;if(rt.isNullOrEmptyString(l.register)){var r=u.evaluateEventType(l.typeExpression);e=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.register(r,t,e)}}else if("null"!==l.register){var t=u.getFunction(l.register);e=function(e){return t.call(n,n,e)}}var i=null;if(rt.isNullOrEmptyString(l.unregister)){var o=u.evaluateEventType(l.typeExpression);i=function(e){var t=u.evaluateEventTargetId(l.targetIdExpression,n);return n.context.eventRegistration.unregister(o,t,e)}}else if("null"!==l.unregister){var a=u.getFunction(l.unregister);i=function(e){return a.call(n,n,e)}}var s=null;2&l.behaviorFlags&&(s=u.getFunction(ct.CustomizationCodeNamespace+"."+c.name+"_"+l.name+"_EventArgsTransform")),this[p]=new Ne(this.context,this,l.name,{registerFunc:e,unregisterFunc:i,eventArgsTransformFunc:function(e){return s&&(e=s.call(n,n,e)),rt._createPromiseFromResult(e)}})}return this[p]},enumerable:!0,configurable:!0})},ct.prototype.hasIndexMethod=function(e){var t=!1;if(e.navigationMethods)for(var n=0;n<e.navigationMethods.length;n++)if(0!=(16&e.navigationMethods[n].behaviorFlags)){t=!0;break}return t},ct.CustomizationCodeNamespace="_CC",ct);function ct(e){if(this.m_namespaceMap={},this.m_namespace=e.metadata.name,this.m_targetNamespaceObject=e.targetNamespaceObject,this.m_namespaceMap[this.m_namespace]=e.targetNamespaceObject,e.namespaceMap)for(var t in e.namespaceMap)this.m_namespaceMap[t]=e.namespaceMap[t];this.m_defaultApiSetName=e.metadata.defaultApiSetName,this.m_hostName=e.metadata.hostName;var n=e.metadata;if(n.enumTypes)for(var r=0;r<n.enumTypes.length;r++)this.buildEnumType(n.enumTypes[r]);if(n.apiSets){for(r=0;r<n.apiSets.length;r++){var i=n.apiSets[r];Array.isArray(i)&&(n.apiSets[r]={version:i[0],name:i[1]||this.m_defaultApiSetName})}this.m_apiSets=n.apiSets}if(this.m_strings=n.strings,n.clientObjectTypes)for(r=0;r<n.clientObjectTypes.length;r++){i=n.clientObjectTypes[r];Array.isArray(i)&&(this.ensureArraySize(i,11),n.clientObjectTypes[r]={name:this.getString(i[0]),behaviorFlags:i[1],collectionPropertyPath:this.getString(i[6]),newObjectServerTypeFullName:this.getString(i[9]),newObjectApiFlags:i[10],childItemTypeFullName:this.getString(i[7]),scalarProperties:i[2],navigationProperties:i[3],scalarMethods:i[4],navigationMethods:i[5],events:i[8]}),this.buildClientObjectType(n.clientObjectTypes[r],e.fullyInitialize)}}m.LibraryBuilder=st}(OfficeExtension=OfficeExtension||{}),function(e){var t;(t||(t={})).getPromiseType=function(){if("undefined"!=typeof Promise)return Promise;if(void 0!==Office&&Office.Promise)return Office.Promise;throw new e.Error("No Promise implementation found")},Object.defineProperty(e,"Promise",{get:function(){return t.getPromiseType()},enumerable:!0,configurable:!0})}(OfficeExtension=OfficeExtension||{});try{if("undefined"!=typeof OfficePlatformGlobal&&void 0!==OfficePlatformGlobal.ReactNativeReka){var RichApiBridgeImpl=function(){function e(){}return e.prototype.sendMessageToHost=function(e){OfficePlatformGlobal.ReactNativeReka.RekaInstance.InvokeNative("RichApiDataService","ProcessMessageToHost",e)},e}(),RichApiBridge_1=new RichApiBridgeImpl,RichApiDataService_1=function(){function e(){}return e.prototype.Invoke=function(e,t){"ProcessMessageFromHost"===e&&RichApiBridge_1.onMessageFromHost&&RichApiBridge_1.onMessageFromHost(t)},e}();OfficePlatformGlobal.ReactNativeReka.initReka(),OfficePlatformGlobal.ReactNativeReka.RekaInstance.RegisterService("RichApiDataService",function(){return new RichApiDataService_1}),OfficeExtension.HostBridge.init(RichApiBridge_1),OfficeExtension.HostBridgeSession.getInstanceIfHostBridgeInited()}}catch(e){}var oteljs;__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(e){function r(e,t,n,r){return{name:e,dataType:t,value:n,classification:r||4}}e.makeBooleanDataField=function(e,t,n){return r(e,1,t,n)},e.makeInt64DataField=function(e,t,n){return r(e,2,t,n)},e.makeDoubleDataField=function(e,t,n){return r(e,3,t,n)},e.makeStringDataField=function(e,t,n){return r(e,0,t,n)},e.makeGuidDataField=function(e,t,n){return r(e,4,t,n)}}(oteljs=oteljs||{}),function(e){var t,n,r,i,o,a,s,c,l,u,p,f,d;(t=e.DataClassification||(e.DataClassification={}))[t.EssentialServiceMetadata=1]="EssentialServiceMetadata",t[t.AccountData=2]="AccountData",t[t.SystemMetadata=4]="SystemMetadata",t[t.OrganizationIdentifiableInformation=8]="OrganizationIdentifiableInformation",t[t.EndUserIdentifiableInformation=16]="EndUserIdentifiableInformation",t[t.CustomerContent=32]="CustomerContent",t[t.AccessControl=64]="AccessControl",t[t.PublicNonPersonalData=128]="PublicNonPersonalData",t[t.EndUserPseudonymousInformation=256]="EndUserPseudonymousInformation",t[t.PublicPersonalData=512]="PublicPersonalData",t[t.SupportData=1024]="SupportData",t[t.DirectMeasurementData=2048]="DirectMeasurementData",t[t.Everything=65535]="Everything",(n=e.DataFieldType||(e.DataFieldType={}))[n.String=0]="String",n[n.Boolean=1]="Boolean",n[n.Int64=2]="Int64",n[n.Double=3]="Double",n[n.Guid=4]="Guid",(r=e.SamplingPolicy||(e.SamplingPolicy={}))[r.NotSet=0]="NotSet",r[r.Measure=1]="Measure",r[r.Diagnostics=2]="Diagnostics",r[r.CriticalBusinessImpact=191]="CriticalBusinessImpact",r[r.CriticalCensus=192]="CriticalCensus",r[r.CriticalExperimentation=193]="CriticalExperimentation",r[r.CriticalUsage=194]="CriticalUsage",(i=e.PersistencePriority||(e.PersistencePriority={}))[i.NotSet=0]="NotSet",i[i.Normal=1]="Normal",i[i.High=2]="High",(o=e.CostPriority||(e.CostPriority={}))[o.NotSet=0]="NotSet",o[o.Normal=1]="Normal",o[o.High=2]="High",(a=e.DataCategories||(e.DataCategories={}))[a.NotSet=0]="NotSet",a[a.SoftwareSetup=1]="SoftwareSetup",a[a.ProductServiceUsage=2]="ProductServiceUsage",a[a.ProductServicePerformance=4]="ProductServicePerformance",a[a.DeviceConfiguration=8]="DeviceConfiguration",a[a.InkingTypingSpeech=16]="InkingTypingSpeech",(s=e.DiagnosticLevel||(e.DiagnosticLevel={}))[s.ReservedDoNotUse=0]="ReservedDoNotUse",s[s.Required=10]="Required",s[s.BasicEvent=10]="BasicEvent",s[s.Optional=100]="Optional",s[s.FullEvent=100]="FullEvent",s[s.RequiredServiceData=110]="RequiredServiceData",s[s.NecessaryServiceDataEvent=110]="NecessaryServiceDataEvent",s[s.RequiredServiceDataForEssentialServices=120]="RequiredServiceDataForEssentialServices",s[s.AlwaysOnNecessaryServiceDataEvent=120]="AlwaysOnNecessaryServiceDataEvent",(c=e.CustomerContentType||(e.CustomerContentType={}))[c.None=0]="None",c[c.MocaAddIn=1]="MocaAddIn",(l=e.LogLevel||(e.LogLevel={}))[l.Error=0]="Error",l[l.Warning=1]="Warning",l[l.Info=2]="Info",l[l.Verbose=3]="Verbose",(u=e.Category||(e.Category={}))[u.Core=0]="Core",u[u.Sink=1]="Sink",u[u.Transport=2]="Transport",(p=e.DnmInterval||(e.DnmInterval={}))[p.Hourly=1]="Hourly",p[p.Daily=2]="Daily",(f=e.AllowedPartA||(e.AllowedPartA={}))[f.ReleaseAudienceGroup=1]="ReleaseAudienceGroup",f[f.WacRing=2]="WacRing",f[f.AppName=3]="AppName",f[f.AppPlatform=4]="AppPlatform",f[f.AppVersion=5]="AppVersion",(d=e.EventType||(e.EventType={}))[d.SendTelemetryEvent=1]="SendTelemetryEvent",d[d.CustomerContent=2]="CustomerContent",d[d.DirectNumericEvent=3]="DirectNumericEvent"}(oteljs=oteljs||{}),function(n){n.getEffectiveEventFlags=function(e){var t={costPriority:1,samplingPolicy:1,persistencePriority:1,dataCategories:0,diagnosticLevel:100};return e.eventFlags&&e.eventFlags.dataCategories||n.logNotification(0,0,function(){return"DataCategories"}),e.eventFlags&&(e.eventFlags.costPriority&&(t.costPriority=e.eventFlags.costPriority),e.eventFlags.samplingPolicy&&(t.samplingPolicy=e.eventFlags.samplingPolicy),e.eventFlags.persistencePriority&&(t.persistencePriority=e.eventFlags.persistencePriority),e.eventFlags.dataCategories&&(t.dataCategories=e.eventFlags.dataCategories),e.eventFlags.diagnosticLevel&&(t.diagnosticLevel=e.eventFlags.diagnosticLevel)),t}}(oteljs=oteljs||{}),function(e){var n,r=(n=[],{fireEvent:function(t){n.forEach(function(e){return e(t)})},addListener:function(e){e&&n.push(e)}});function i(e,t,n){r.fireEvent({level:e,category:t,message:n})}e.onNotification=function(){return r},e.logNotification=i,e.logError=function(e,t,n){i(0,e,function(){var e=n instanceof Error?n.message:"";return"".concat(t,": ").concat(e)})}}(oteljs=oteljs||{}),function(a){var e,t;function i(e){var t={eventName:e.eventName,eventFlags:e.eventFlags||{},telemetryProperties:e.telemetryProperties?__assign({},e.telemetryProperties):{},dataFields:e.dataFields?e.dataFields.slice():[],timestamp:e.timestamp||(new Date).getTime()};return e.eventContract&&(t.eventContract={name:e.eventContract.name,dataFields:e.eventContract.dataFields.slice()}),t}(t=e=e||{})[t.TelemetryData=0]="TelemetryData",t[t.AnonymousData=1]="AnonymousData",t[t.CustomerContent=2]="CustomerContent",a.SuppressNexus=-1,a.cloneEvent=i;var n=(r.prototype.addEventContentType=function(e,t){e.push(a.makeInt64DataField("EventContent.Type",t))},r.prototype.sendTelemetryEvent=function(e){var t=i(e),n=t.telemetryProperties;n.nexusTenantToken=a.SuppressNexus;var r=n.ariaTenantToken;r||a.fillTenantTokens(t.eventName,n)||r?this.sendTelemetryEventInternal(t,1):a.logNotification(0,0,function(){return"No tenant token: "+e.eventName})},r.prototype.sendNonStandardEvent=function(e,t){var n=i(e);this.sendTelemetryEventInternal(n,t)},r.prototype.sendCustomerContent=function(e){var t=i(e),n=t.telemetryProperties,r=n.customerContentVersion;return(!r||2<r)&&(n.customerContentVersion=2),n.ariaTenantToken=void 0,n.nexusTenantToken=void 0,n.dnmToken=void 0,this.addEventContentType(t.dataFields,2),this.sendTelemetryEventInternal(t,2)},r.prototype.sendDirectNumericEvent=function(e){var t=i(e),n=t.telemetryProperties;n.dnmToken||a.fillTenantTokens(t.eventName,n)||n.dnmToken?(this.addEventContentType(t.dataFields,1),this.sendTelemetryEventInternal(t,3)):a.logNotification(0,0,function(){return"No dnm token: "+t.eventName})},r.prototype.sendTelemetryEventInternal=function(t,n){if(2===n||!t.telemetryProperties.customerContentVersion&&!t.telemetryProperties.customerContentType){try{if(0===this.telemetrySinks.length)return void(this.config.enableQueue&&this.eventQueue.length<1e3?this.eventQueue.push([t,n]):a.logNotification(1,0,function(){return"No telemetry sinks are attached."}));this.processTelemetryEvent(t,n)}catch(e){return void a.logError(0,"SendTelemetryEvent",e)}this.telemetrySinks.forEach(function(e){try{3===n||2===n?e.sendNonStandardEvent&&e.sendNonStandardEvent(t,n):e.sendTelemetryEvent(t)}catch(e){}})}else a.logNotification(0,0,function(){return"Customer content"})},r.prototype.processTelemetryEvent=function(e,t){var n,r,i;if(e.dataFields&&(null!==(i=e.dataFields)&&void 0!==i&&i.unshift(a.makeStringDataField("OTelJS.Version",a.oteljsVersion)),3!==t&&this.persistentDataFields&&(n=e.dataFields).unshift.apply(n,this.persistentDataFields)),0<this.partAFields.length){var o=e.eventContract||{name:"",dataFields:[]};(r=o.dataFields).push.apply(r,this.partAFields),e.eventContract=o}this.config.disableValidation||a.validateTelemetryEvent(e)},r.prototype.addSink=function(e){this.telemetrySinks.push(e),this.flushQueue()},r.prototype.flushQueue=function(){var e=this.eventQueue;if(this.eventQueue=[],0<this.telemetrySinks.length)for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r[0],o=r[1];this.sendTelemetryEventInternal(i,o)}},r.prototype.setTenantToken=function(e,t,n){a.setTenantTokens(e,{ariaTenantToken:t,nexusTenantToken:n})},r.prototype.setDNMToken=function(e,t){a.setTenantTokens(e,{dnmToken:t})},r.prototype.cloneEvent=function(e){return i(e)},r.prototype.getConfig=function(){return this.config},r);function r(e,t,n){var r,i,o;this.telemetrySinks=[],this.persistentDataFields=[],this.partAFields=[],this.eventQueue=[],this.config=n||{},e&&(this.telemetrySinks=e.telemetrySinks,(r=this.persistentDataFields).push.apply(r,e.persistentDataFields),this.config=__assign(__assign({},e.getConfig()),this.config),(i=this.partAFields).push.apply(i,e.partAFields)),t&&(o=this.persistentDataFields).push.apply(o,t)}a.SimpleTelemetryLogger=n}(oteljs=oteljs||{}),function(e){var t=9007199254740991,n=-t,r=98,i=/^Office(\.[A-Z][a-zA-Z0-9]*){2,}$/,o=/^[a-zA-Z0-9_\.]{1,95}$/;function a(e){return o.test(e)}function s(e){e&&e.forEach(function(e){if("string"!=typeof e.name||!a(e.name))throw new Error("Invalid dataField name");2===e.dataType&&c(e.value)})}function c(e){if("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e<n||t<e)throw new Error("Invalid integer ".concat(JSON.stringify(e)))}e.validateTelemetryEvent=function(e){if(!function(e){if(!e||e.length>r)return;return i.test(e)}(e.eventName))throw new Error("Invalid eventName");var t=e.eventContract;if(t){if(t.name&&!a(t.name))throw new Error("Invalid eventContract");s(t.dataFields)}s(e.dataFields)},e.validateInt=c}(oteljs=oteljs||{}),function(n){var o={};n.setTenantTokens=function(e,t){"Office."===e.substring(0,7)&&"."!==e[e.length-1]?o[e]?(t.ariaTenantToken&&(o[e].ariaTenantToken=t.ariaTenantToken),t.dnmToken&&(o[e].dnmToken=t.dnmToken)):o[e]=t:n.logNotification(0,0,function(){return"Namespace: ".concat(e)})},n.fillTenantTokens=function(e,t){for(var n=e.length;0<n;){var r=e.substr(0,n);if(o[r]){var i=o[r];return t.ariaTenantToken=i.ariaTenantToken,t.dnmToken=i.dnmToken,!0}n=e.lastIndexOf(".",n-1)}return!1},n.clear=function(){o={}}}(oteljs=oteljs||{}),(oteljs||(oteljs={})).oteljsVersion="4.18.0",function(n){var e="AppTelemetry is disabled for this platform.",r="AgaveSink has no available sink",t=(i.createInstance=function(e){void 0===e&&(e={});var t=new i(e);if(t._sink)return t},i.prototype.initialize=function(){if(!this.isTelemetryEnabled())return this.failToInitialize(e);if(n.RichApiSink.isSupportedByDeclaration())this.connectRichApiSink();else if(n.OutlookSink.isSupported())this.connectSink("OutlookSink",new n.OutlookSink);else{if(!n.TelemetryContext.isWacAgave()||!n.SdxWacSink.isSupported())return this.failToInitialize();this.connectSink("SdxWacSink",new n.SdxWacSink)}},i.prototype.failToInitialize=function(e){this._sink=void 0;var t=e||r;n.logNotification(0,1,function(){return t})},i.prototype.sendTelemetryEvent=function(e){if(this._sink)try{this._sink.sendTelemetryEvent(e)}catch(e){n.logError(1,"AgaveSink",e)}else n.logNotification(0,1,function(){return r})},i.prototype.sendCustomerContent=function(e){if(this._sink&&this._sink.sendCustomerContent)try{this._sink.sendCustomerContent(e)}catch(e){n.logError(1,"AgaveSink",e)}else n.logNotification(0,1,function(){return r})},i.prototype.connectSink=function(e,t){this._sink=t,n.logNotification(2,1,function(){return"AgaveSink is using "+e})},i.prototype.connectRichApiSink=function(){this.connectSink("RichApiSink",new n.RichApiSink)},i.prototype.isTelemetryEnabled=function(){return!(void 0===OSF||void 0===OSF.AppTelemetry||"boolean"!=typeof OSF.AppTelemetry.enableTelemetry||!OSF.AppTelemetry.enableTelemetry)||(n.logNotification(1,0,function(){return e}),!1)},i);function i(e){n.TelemetryContext.setTelemetryContext(e),this.initialize()}n.AgaveSink=t}(oteljs=oteljs||{}),function(t){function n(e){return Office.context.requirements.isSetSupported("OutlookTelemetry",e)}var e=(r.isSupported=function(){try{return n()}catch(e){return!1}},r.prototype.sendTelemetryEvent=function(e){this._supportsAllEvents||e.eventName.match(/^Office\.Extensibility\.OfficeJs\.[a-zA-Z]*$/)?(this.addAdditionalDataFields(e),Office.context.mailbox.logTelemetry(JSON.stringify(e))):t.logNotification(2,1,function(){return"This version of Outlook only accepts OfficeJS telemetry events"})},r.prototype.sendCustomerContent=function(e){n("1.2")&&(this.addAdditionalDataFields(e),Office.context.mailbox.logCustomerContentTelemetry(JSON.stringify(e)))},r.prototype.addAdditionalDataFields=function(e){var t;e.dataFields=e.dataFields||[],(t=e.dataFields).push.apply(t,this._contextDataFields)},r);function r(){this._supportsAllEvents=!1,this._contextDataFields=[],this._supportsAllEvents=n("1.1");var e=t.TelemetryContext.getAppPlatform();"iOS"!==e&&"Android"!==e||(this._contextDataFields=t.TelemetryContext.getDataFieldsFromContext())}t.OutlookSink=e}(oteljs=oteljs||{}),function(a){var e=(t.isSupportedByDeclaration=function(){return t.isSupportedVersion("1.2")},t.isSupportedVersion=function(e){return Office.context.requirements.isSetSupported("Telemetry",e)},t.prototype.sendCustomerContent=function(e){t.isSupportedVersion("1.3")&&(this._customerContentQueue.push(e),this.processWorkBacklog())},t.prototype.sendTelemetryEvent=function(e){this._telemetryQueue.push(e),this.processWorkBacklog()},t.prototype.processWorkBacklog=function(){var t=this;this._requestIsPending||(this._requestIsPending=!0,this.processTelemetryEvents().then(function(){t.waitAndProcessMore()}).catch(function(e){a.logError(1,"RichApiSink Error",e),t.waitAndProcessMore()}))},t.prototype.waitAndProcessMore=function(){var e=this;this.pause(1e3).then(function(){e._requestIsPending=!1,0<e._telemetryQueue.length&&setTimeout(function(){return e.processWorkBacklog()},0)}).catch(function(){e._requestIsPending=!1})},t.prototype.processTelemetryEvents=function(){var i=this,e=this._telemetryQueue;this._telemetryQueue=[];var t=this._customerContentQueue;function n(e,t){if(e.telemetryProperties){var n=[];i.addDataFields(n,e.dataFields);var r=e.eventContract?e.eventContract.name:"";e.eventContract&&i.addDataFields(n,e.eventContract.dataFields),t(e.telemetryProperties,e.eventName,r,a.getEffectiveEventFlags(e),n)}}this._customerContentQueue=[];var o=new OfficeCore.RequestContext;return e.forEach(function(e){n(e,function(e,t,n,r,i){o.telemetry.sendTelemetryEvent(e,t,n,r,i)})}),t.forEach(function(e){n(e,function(e,t,n,r,i){o.telemetry.sendCustomerContent(e,t,n,r,i)})}),o.sync().catch(function(e){a.logError(1,"RichApi telemetry failed.",e)})},t.prototype.addDataFields=function(t,e){e&&e.forEach(function(e){t.push({name:e.name,value:e.value,classification:e.classification?e.classification:4,type:4===e.dataType?0:e.dataType})})},t.prototype.pause=function(t){return new Office.Promise(function(e){return setTimeout(e,t)})},t);function t(){var e=this;this._requestIsPending=!0,this._telemetryQueue=[],this._customerContentQueue=[],this.pause(1e3).then(function(){return e._requestIsPending=!1,e.processTelemetryEvents()}).catch()}a.RichApiSink=e}(oteljs=oteljs||{}),function(r){var e,t,n;e=r.Contracts||(r.Contracts={}),t=e.Office||(e.Office={}),((n=t.System||(t.System={})).SDX||(n.SDX={})).getFields=function(e,t){var n=[];return void 0!==t.id&&n.push(r.makeStringDataField("".concat(e,".Id"),t.id)),void 0!==t.version&&n.push(r.makeStringDataField("".concat(e,".Version"),t.version)),void 0!==t.instanceId&&n.push(r.makeStringDataField("".concat(e,".InstanceId"),t.instanceId)),void 0!==t.name&&n.push(r.makeStringDataField("".concat(e,".Name"),t.name)),void 0!==t.marketplaceType&&n.push(r.makeStringDataField("".concat(e,".MarketplaceType"),t.marketplaceType)),void 0!==t.sessionId&&n.push(r.makeStringDataField("".concat(e,".SessionId"),t.sessionId)),void 0!==t.browserToken&&n.push(r.makeStringDataField("".concat(e,".BrowserToken"),t.browserToken)),void 0!==t.osfRuntimeVersion&&n.push(r.makeStringDataField("".concat(e,".OsfRuntimeVersion"),t.osfRuntimeVersion)),void 0!==t.officeJsVersion&&n.push(r.makeStringDataField("".concat(e,".OfficeJsVersion"),t.officeJsVersion)),void 0!==t.hostJsVersion&&n.push(r.makeStringDataField("".concat(e,".HostJsVersion"),t.hostJsVersion)),void 0!==t.assetId&&n.push(r.makeStringDataField("".concat(e,".AssetId"),t.assetId)),void 0!==t.providerName&&n.push(r.makeStringDataField("".concat(e,".ProviderName"),t.providerName)),void 0!==t.type&&n.push(r.makeStringDataField("".concat(e,".Type"),t.type)),n}}(oteljs=oteljs||{}),function(i){var e=(t.isSupported=function(){return Office.context&&Office.context.platform?Office.context.platform===Office.PlatformType.OfficeOnline:OfficeExt&&OfficeExt.HostName&&OfficeExt.HostName.Host&&OfficeExt.HostName.Host.getInstance().getPlatform()===Office.PlatformType.OfficeOnline},t.prototype.sendTelemetryEvent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendTelemetryEvent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){i.logError(1,"AgaveWacSink",e)}},t.prototype.sendCustomerContent=function(e,t){try{if(e.dataFields&&0<e.dataFields.filter(function(e){var t=e.classification;return t&&4!==t&&1!==t&&32!==t}).length)return;var n=OSF._OfficeAppFactory.getId(),r=OSF.AgaveHostAction.SendCustomerContent;OSF.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[n,r,e])}catch(e){i.logError(1,"AgaveWacSink",e)}},t);function t(){}i.SdxWacSink=e}(oteljs=oteljs||{}),function(e){var t=(n.setTelemetryContext=function(e){this._steContext=e},n.getDataFieldsFromContext=function(){var t=this,n=[];return Object.keys(this._steContext).forEach(function(e){n.push({name:e,value:t._steContext[e],dataType:0})}),n},n.getAppName=function(){return this._steContext["App.Name"]},n.getAppPlatform=function(){return this._steContext["App.Platform"]},n.getAppVersion=function(){return this._steContext["App.Version"]},n.isWacAgave=function(){return"Web"===this._steContext["App.Platform"]},n._steContext={},n);function n(){}e.TelemetryContext=t}(oteljs=oteljs||{}),function(e){var t;function n(){try{if(void 0!==OSF&&void 0!==OSF.isOfficeReactNative&&OSF.isOfficeReactNative())return 1}catch(e){}}function r(){var e="web";try{void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo&&(e=OSF._OfficeAppFactory.getHostInfo().hostPlatform)}catch(e){}return e}(t=e.ApiHelper||(e.ApiHelper={})).isNativeStorage=function(){var e=r();return!(function(){try{if(void 0!==OSF&&void 0!==OSF._OfficeAppFactory&&void 0!==OSF._OfficeAppFactory.getHostInfo)if(OSF._OfficeAppFactory.getHostInfo().flags&OSF.HostInfoFlags.SharedApp)return 1}catch(e){}}()||!(n()||"win32"===e||"mac"===e&&window._useSDXSandbox))},t.isNativeApiInfomation=function(){var e=r();return!!(n()||"win32"===e||"mac"===e&&window._useSDXSandbox)},t.isNativeDialog=function(){var e=r();return!(!n()&&"win32"!==e)}}(OfficeRuntime=OfficeRuntime||{}),function(e){e.ApiHelper.isNativeApiInfomation()?e.apiInformation=t:e.apiInformation=n;var t={isSetSupported:function(e,t){if("string"!=typeof e)return!1;if(null==t&&(t="0.0.0"),void 0===global.__apiSets)return!1;var n=global.__apiSets,r=Object.keys(n).map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase());if(-1<r){var i=n[Object.keys(n)[r]];try{var o=s(t),a=void 0;if(0<(a=Array.isArray(i)?function(e,t){for(var n=0;n<e.length;n++){var r=s(e[n]);if(r.major==t)return r}return{major:0,minor:0,patch:0}}(i,o.major):s(i)).major){if(a.major>o.major)return!0;if(a.major==o.major&&a.minor>o.minor)return!0;if(a.major==o.major&&a.minor==o.minor&&a.patch>=o.patch)return!0}}catch(e){return!1}}return!1}},n={isSetSupported:function(e,t){try{return!!(Office&&Office.context&&Office.context.requirements)&&Office.context.requirements.isSetSupported(e,Number(t))}catch(e){return!1}}};function s(e){var t=e.split("."),n=0,r=0,i=0;if(t.length<2&&isNaN(Number(e)))throw"version format incorrect";if(n=Number(t[0]),2<=t.length&&(r=Number(t[1])),3<=t.length&&(i=Number(t[2])),isNaN(n)||isNaN(r)||isNaN(i))throw"version format incorrect";return{major:n,minor:r,patch:i}}}(OfficeRuntime=OfficeRuntime||{});var OfficeRuntime;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(o){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;function e(e){this._dialogService=e}var t=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,n=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),r=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),i=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult);OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;o.Dialog=e;var c,l=(__extends(u,c=e),u.prototype.close=function(){return this._dialogService.close(),OfficeExtension.CoreUtility.Promise.resolve()},u);function u(){return null!==c&&c.apply(this,arguments)||this}var p,f=(__extends(d,p=e),d.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},d);function d(){return null!==p&&p.apply(this,arguments)||this}function h(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}function g(e){var t,n=((t={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},t[12003]={code:"InvalidUrl",message:"HTTPS is required."},t[12004]={code:"Untrusted",message:"Domain is not trusted."},t[12005]={code:"InvalidUrl",message:"HTTPS is required."},t[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},t);return n[e]?n[e]:{code:"Unknown",message:"An unknown error has occured with code: "+e}}o.displayWebDialog=function(r,i){return void 0===i&&(i={}),new OfficeExtension.CoreUtility.Promise(function(e,t){if(i.width&&i.height&&(!h(i.width)||!h(i.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var n={width:i.width?parseInt(i.width):50,height:i.height?parseInt(i.height):50,displayInIFrame:i.displayInIFrame};(o.ApiHelper.isNativeDialog()?function(e,t,n,r,i){void 0===i&&(i={});var o=new OfficeExtension.ClientRequestContext,a=b.newObject(o),s=new f(a),c=a.onDialogMessage.add(function(e){switch(OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e)),e.type){case 17:e.error?n(e.error):t(s);break;case 12:i.onMessage&&i.onMessage(e.message,s);break;case 10:default:12006===e.originalErrorCode?(c&&(c.remove(),o.sync()),i.onClose&&i.onClose()):i.onRuntimeError&&(i.onRuntimeError(e.error,s),n(e.error))}return OfficeExtension.CoreUtility.Promise.resolve()});o.sync().then(function(){return a.displayDialog(r,e),o.sync()}).catch(function(e){n(e)})}:function(e,t,n,r,i){void 0===i&&(i={});var o;function a(e){i.onMessage&&i.onMessage(e.message,o,e.origin)}function s(e){12006===e.error?i.onClose&&i.onClose():i.onRuntimeError&&i.onRuntimeError(new OfficeExtension.Error(g(e.error)),o)}Office.context.ui.displayDialogAsync(r,e,function(e){"failed"===e.status?n(new OfficeExtension.Error(g(e.error.code))):((o=e.value).addEventHandler(Office.EventType.DialogMessageReceived,a),o.addEventHandler(Office.EventType.DialogEventReceived,s),t(new l(o)))})})(n,e,t,r,i)})};var y,m,_,b=(y=OfficeExtension.ClientObject,__extends(v,y),Object.defineProperty(v.prototype,"_className",{get:function(){return"DialogService"},enumerable:!0,configurable:!0}),v.prototype.close=function(){n(this,"Close",1,[],4,0)},v.prototype.displayDialog=function(e,t){n(this,"DisplayDialog",1,[e,t],4,0)},v.prototype._handleResult=function(e){y.prototype._handleResult.call(this,e),r(e)||a(this,e)},v.prototype._handleRetrieveResult=function(e,t){y.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},v.newObject=function(e){return t(o.DialogService,e,"Microsoft.Dialog.DialogService",!1,4)},Object.defineProperty(v.prototype,"onDialogMessage",{get:function(){return this.m_dialogMessage||(this.m_dialogMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"DialogMessage",{eventType:65536,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t;try{var n=JSON.parse(e.message),r=n.errorCode?new OfficeExtension.Error(g(n.errorCode)):null;t={originalErrorCode:n.errorCode,type:n.type,error:r,message:n.message,origin:n.origin}}catch(e){t={originalErrorCode:null,type:17,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"}),message:e.message}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_dialogMessage},enumerable:!0,configurable:!0}),v.prototype.toJSON=function(){return i(this,{},{})},v);function v(){return null!==y&&y.apply(this,arguments)||this}o.DialogService=b,(_=m=m||{})[_.dialogMessageReceived=0]="dialogMessageReceived",_[_.dialogEventReceived=1]="dialogEventReceived",(o.DialogErrorCodes||(o.DialogErrorCodes={})).generalException="GeneralException"}(OfficeRuntime=OfficeRuntime||{}),function(e){var t;function n(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:"true"===n.toString().toLowerCase()}catch(e){return t}}function r(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates,r=parseInt(n[e]);return isNaN(r)?t:r}catch(e){return t}}function i(e,t){try{var n=Microsoft.Office.WebExtension.FeatureGates[e];return null==n?t:n}catch(e){return t}}(t=e.experimentation||(e.experimentation={})).getBooleanFeatureGate=n,t.getIntFeatureGate=r,t.getStringFeatureGate=i,t.getBooleanFeatureGateAsync=function(e,t){return Promise.resolve(n(e,t))},t.getIntFeatureGateAsync=function(e,t){return Promise.resolve(r(e,t))},t.getStringFeatureGateAsync=function(e,t){return Promise.resolve(i(e,t))}}(OfficeRuntime=OfficeRuntime||{}),function(e){var t,i;t=e.message||(e.message={}),i={},t.on=function(e,t){return function(e,t){i.hasOwnProperty(e)||(i[e]=new n,function(){Office&&Office.context&&Office.context.messaging&&!Office.context.messaging.onMessage&&(Office.context.messaging.onMessage=function(e){var t=e.eventName,n=e.message;i.hasOwnProperty(t)&&i[t].call(n)}.bind(this))}());i[e].add(t)}(e,t),new Promise(function(e){e()})},t.off=function(e,t){var n,r;return n=e,r=t,i.hasOwnProperty(n)&&(r?i[n].remove(r):delete i[n]),new Promise(function(e){e()})},t.emit=function(e,t){var n;return n={eventName:e,message:t},Office&&Office.context&&Office.context.messaging&&Office.context.messaging.sendMessage&&Office.context.messaging.sendMessage(n),new Promise(function(e){e()})};var n=(r.prototype.add=function(e){this.listeners.push(e)},r.prototype.remove=function(e){var t=this.listeners.lastIndexOf(e);-1!==t&&this.listeners.splice(t,1)},r.prototype.call=function(t){this.listeners.forEach(function(e){return e(t)})},r);function r(){this.listeners=[]}e.ListenerManager=n}(OfficeRuntime=OfficeRuntime||{}),function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),i=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),e=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),o=OfficeExtension.Utility.fixObjectPathIfNecessary,a=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),s=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,"_Office_AsyncStorage_"),c=s+"|_unusedKey_",l={getItem:function(n){return d(function(e,t){return e.multiGet(t,JSON.stringify([n]))},function(e){var t=JSON.parse(e);return t&&t[0]&&t[0][1]?t[0][1]:null})},setItem:function(n,r){return d(function(e,t){return e.multiSet(t,JSON.stringify([[n,r]]))},function(){return null})},removeItem:function(n){return d(function(e,t){return e.multiRemove(t,JSON.stringify([n]))},function(){return null})},getItems:function(n){return d(function(e,t){return e.multiGet(t,JSON.stringify(n))},function(e){var t=JSON.parse(e),r={};return t&&t.forEach(function(e){var t=e[0],n=e[1];return r[t]=n}),n&&n.forEach(function(e){r[e]&&r[e]}),r})},setItems:function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push([t,e[t]]);return d(function(e,t){return e.multiSet(t,JSON.stringify(n))},function(){return null})},removeItems:function(n){return d(function(e,t){return e.multiRemove(t,JSON.stringify(n))},function(){return null})},getKeys:function(){return d(function(e,t){return e.getAllKeys(t)},function(e){return JSON.parse(e)})}},u={getItem:function(e){return y(function(){return p(e)})},setItem:function(e,t){return g(function(){return f(e,t)})},removeItem:function(e){return g(function(){return window.localStorage.removeItem(s+e)})},getItems:function(i){return new Promise(function(e,t){var n={},r=[];try{h()}catch(e){t(e)}i.forEach(function(e){try{var t=p(e);n[e]=t||null}catch(e){r.push(e)}}),0<r.length?t(new Error("Unknown error.")):e(n)})},setItems:function(t){return m(t,function(e){return f(e,t[e])})},removeItems:function(e){return m(e,function(e){return window.localStorage.removeItem(s+e)})},getKeys:function(){return y(function(){return Object.keys(window.localStorage).filter(function(e){return 0===e.indexOf(s)}).map(function(e){return e.substr(s.length)})})}};function p(e){return window.localStorage.getItem(s+e)}function f(e,t){window.localStorage.setItem(s+e,t)}function d(o,a){return new OfficeExtension.CoreUtility.Promise(function(r,i){var t=_.getInstance(),n=t.setCallBack(function(e,t){if(t)i(t);else{var n=a(e);r(n)}});t.ctx.sync().then(function(){var e=t.getPersistentKvStorageService();return o(e,n),t.ctx.sync()}).catch(function(e){i(e)})})}function h(){f(c,null),window.localStorage.removeItem(c)}function g(n,r){return void 0===r&&(r=function(){}),new Promise(function(e,t){try{h(),n(),r(null),e()}catch(e){r(e),t(e)}})}function y(r,i){return void 0===i&&(i=function(){}),new Promise(function(e,t){try{h();var n=r();i(null,n),e(n)}catch(e){i(e,null),t(e)}})}function m(i,o,a){return void 0===a&&(a=function(){}),new Promise(function(e,t){var n=[];try{h()}catch(e){n.push(e)}for(var r in i)if(i.hasOwnProperty(r)||Array.isArray(i))try{Array.isArray(i)?o(i[r]):o(r)}catch(e){n.push(e)}a(n),0<n.length?t(n):e()})}t.ApiHelper.isNativeStorage()?t.storage=l:t.storage=u;var _=(b.getInstance=function(){return void 0===b.instance?b.instance=new b:b.instance._perkvstorService=O.newObject(b.instance.ctx),b.instance},b.prototype.getPersistentKvStorageService=function(){return this._perkvstorService},b.prototype.getCallBack=function(e){return this._callDict[e]},b.prototype.setCallBack=function(e){var t=this._invokeId;return this._callDict[this._invokeId++]=e,t},b);function b(){var n=this;this._invokeId=0,this._callDict={},this.ctx=new OfficeExtension.ClientRequestContext,this._perkvstorService=O.newObject(this.ctx),this._eventResult=this._perkvstorService.onPersistentStorageMessage.add(function(e){OfficeExtension.Utility.log("persistentKvStoragegMessageHandler:"+JSON.stringify(e));var t=n._callDict[e.invokeId];t&&(t(e.message,e.error),delete n._callDict[e.invokeId])})}var v,O=(v=OfficeExtension.ClientObject,__extends(P,v),Object.defineProperty(P.prototype,"_className",{get:function(){return"PersistentKvStorageService"},enumerable:!0,configurable:!0}),P.prototype.clear=function(e){r(this,"Clear",1,[e],4,0)},P.prototype.getAllKeys=function(e){r(this,"GetAllKeys",1,[e],4,0)},P.prototype.multiGet=function(e,t){r(this,"MultiGet",1,[e,t],4,0)},P.prototype.multiRemove=function(e,t){r(this,"MultiRemove",1,[e,t],4,0)},P.prototype.multiSet=function(e,t){r(this,"MultiSet",1,[e,t],4,0)},P.prototype._handleResult=function(e){v.prototype._handleResult.call(this,e),i(e)||o(this,e)},P.prototype._handleRetrieveResult=function(e,t){v.prototype._handleRetrieveResult.call(this,e,t),a(this,e,t)},P.newObject=function(e){return n(t.PersistentKvStorageService,e,"Microsoft.PersistentKvStorage.PersistentKvStorageService",!1,4)},Object.defineProperty(P.prototype,"onPersistentStorageMessage",{get:function(){return this.m_persistentStorageMessage||(this.m_persistentStorageMessage=new OfficeExtension.GenericEventHandlers(this.context,this,"PersistentStorageMessage",{eventType:65537,registerFunc:function(){},unregisterFunc:function(){},getTargetIdFunc:function(){return null},eventArgsTransformFunc:function(e){var t,n,r,i;try{var o=JSON.parse(e.message),a=parseInt(o.errorCode),s=0!=a?new OfficeExtension.Error((n=a,(r={})[16389]={code:"GenericException",message:"Unknown error."},r[65535]={code:"Unexcepted",message:"Catastrophic failure."},r[14]={code:"OutOfMemory",message:"Ran out of memory."},r[87]={code:"InvalidArg",message:"One or more arguments are invalid."},r[16385]={code:"NotImplemented",message:"Not implemented."},r[6]={code:"BadHandle",message:"File Handle is not Set."},r[5]={code:"AccessDenied",message:"Can't read the Storage File."},(i=r)[n]?i[n]:{code:"Unknown",message:"An unknown error has occured"})):null;t={invokeId:o.invokeId,message:o.message,error:s}}catch(e){t={invokeId:-1,message:e.message,error:new OfficeExtension.Error({code:"GenericException",message:"Unknown error"})}}return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_persistentStorageMessage},enumerable:!0,configurable:!0}),P.prototype.toJSON=function(){return e(this,{},{})},P);function P(){return null!==v&&v.apply(this,arguments)||this}t.PersistentKvStorageService=O,(t.ErrorCodes||(t.ErrorCodes={})).generalException="GeneralException"}(OfficeRuntime=OfficeRuntime||{});var OfficeFirstPartyDialog,OfficeFirstPartyAuth,OfficeCore,OfficeFirstParty;__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n,r=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,i=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),e=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),a=OfficeExtension.Utility.fixObjectPathIfNecessary,s=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),c=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags),l=(n=OfficeExtension.ClientObject,__extends(u,n),Object.defineProperty(u.prototype,"_className",{get:function(){return"BiShim"},enumerable:!0,configurable:!0}),u.prototype.initialize=function(e){i(this,"Initialize",0,[e],c(2,"SharedApiUndo","1.5"),0)},u.prototype.getData=function(){return i(this,"getData",1,[],4,0)},u.prototype.setVisualObjects=function(e){i(this,"setVisualObjects",0,[e],2,0)},u.prototype.setVisualObjectsToPersist=function(e){i(this,"setVisualObjectsToPersist",0,[e],2,0)},u.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),o(e)||a(this,e)},u.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),s(this,e,t)},u.newObject=function(e){return r(t.BiShim,e,"Microsoft.AgaveVisual.BiShim",!1,4)},u.prototype.toJSON=function(){return e(this,{},{})},u);function u(){return null!==n&&n.apply(this,arguments)||this}t.BiShim=l,(t.AgaveVisualErrorCodes||(t.AgaveVisualErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(i){OfficeExtension.BatchApiHelper.createPropertyObject;var n,o=OfficeExtension.BatchApiHelper.createMethodObject,t=(OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),r=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),a=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,s=(OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),c=OfficeExtension.Utility.isUndefined,e=OfficeExtension.Utility.throwIfNotLoaded,l=(OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load),u=OfficeExtension.Utility.retrieve,p=OfficeExtension.Utility.toJson,f=OfficeExtension.Utility.fixObjectPathIfNecessary,d=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),h=(n=OfficeExtension.ClientObject,__extends(g,n),Object.defineProperty(g.prototype,"_className",{get:function(){return"FlightingService"},enumerable:!0,configurable:!0}),g.prototype.getClientSessionId=function(){return r(this,"GetClientSessionId",1,[],4,0)},g.prototype.getDeferredFlights=function(){return r(this,"GetDeferredFlights",1,[],4,0)},g.prototype.getFeature=function(e,t,n,r){return o(i.ABType,this,"GetFeature",1,[e,t,n,r],!1,!1,null,4)},g.prototype.getFeatureGate=function(e,t){return o(i.ABType,this,"GetFeatureGate",1,[e,t],!1,!1,null,4)},g.prototype.resetOverride=function(e){r(this,"ResetOverride",0,[e],0,0)},g.prototype.setOverride=function(e,t,n){r(this,"SetOverride",0,[e,t,n],0,0)},g.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),s(e)||f(this,e)},g.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),d(this,e,t)},g.newObject=function(e){return t(i.FlightingService,e,"Microsoft.Experiment.FlightingService",!1,4)},g.prototype.toJSON=function(){return p(this,{},{})},g);function g(){return null!==n&&n.apply(this,arguments)||this}i.FlightingService=h;var y,m,_=(y=OfficeExtension.ClientObject,__extends(b,y),Object.defineProperty(b.prototype,"_className",{get:function(){return"ABType"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"_scalarPropertyNames",{get:function(){return["value"]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"value",{get:function(){return e("value",this._V,"ABType",this._isNull),this._V},enumerable:!0,configurable:!0}),b.prototype._handleResult=function(e){if(y.prototype._handleResult.call(this,e),!s(e)){var t=e;f(this,t),c(t.Value)||(this._V=t.Value)}},b.prototype.load=function(e){return l(this,e)},b.prototype.retrieve=function(e){return u(this,e)},b.prototype._handleRetrieveResult=function(e,t){y.prototype._handleRetrieveResult.call(this,e,t),d(this,e,t)},b.prototype.toJSON=function(){return p(this,{value:this._V},{})},b.prototype.ensureUnchanged=function(e){a(this,e)},b);function b(){return null!==y&&y.apply(this,arguments)||this}i.ABType=_,(m=i.FeatureType||(i.FeatureType={})).boolean="Boolean",m.integer="Integer",m.string="String",(i.ExperimentErrorCodes||(i.ExperimentErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(r){var e,t,n=(i.prototype.close=function(){return this._dialogService.close(),this._dialogService.context.sync()},i.prototype.messageChild=function(e,t){DialogApiManager&&DialogApiManager.messageChildRichApiBridge&&DialogApiManager.messageChildRichApiBridge(e,t)},i);function i(e){this._dialogService=e}r.Dialog=n,r.displayWebDialog=function(n,h){return void 0===h&&(h={}),new OfficeExtension.CoreUtility.Promise(function(l,u){if(h.width&&h.height&&(!e(h.width)||!e(h.height)))throw new OfficeExtension.Error({code:"InvalidArgument",message:'Dimensions must be "number%" or number.'});var p=new OfficeExtension.ClientRequestContext,t=OfficeCore.FirstPartyDialogService.newObject(p),f=new r.Dialog(t),d=t.onDialogMessage.add(function(e){OfficeExtension.Utility.log("dialogMessageHandler:"+JSON.stringify(e));var t,n,r,i=JSON.parse(e.message),o=i.errorCode?new OfficeExtension.Error((t=i.errorCode,(n={})[12002]={code:"InvalidUrl",message:"Cannot load URL, no such page or bad URL syntax."},n[12003]={code:"InvalidUrl",message:"HTTPS is required."},n[12004]={code:"Untrusted",message:"Domain is not trusted."},n[12005]={code:"InvalidUrl",message:"HTTPS is required."},n[12007]={code:"FailedToOpen",message:"Another dialog is already opened."},(r=n)[t]?r[t]:{code:"Unknown",message:"An unknown error has occured with code: "+t})):null,a=i.type,s=i.origin,c=i.message;switch(a){case 17:o?u(o):l(f);break;case 12:h.onMessage&&h.onMessage(c,f,s);break;case 10:default:12006===i.errorCode?(d&&(d.remove(),p.sync()),h.onClose&&h.onClose()):h.onRuntimeError&&(h.onRuntimeError(o,f),u(o))}return OfficeExtension.CoreUtility.Promise.resolve()});return p.sync().then(function(){var e={width:h.width?parseInt(h.width):50,height:h.height?parseInt(h.height):50,displayInIFrame:h.displayInIFrame,dialogTitle:h.dialogTitle,escKeyCloseDialog:void 0===h.escKeyCloseDialog||h.escKeyCloseDialog};return t.displayDialog(n,e),p.sync()}).catch(function(e){u(e)})});function e(e){return/^(\-|\+)?([0-9]+)%?$/.test(e)}},(t=e=e||{})[t.dialogMessageReceived=0]="dialogMessageReceived",t[t.dialogEventReceived=1]="dialogEventReceived"}(OfficeFirstPartyDialog=OfficeFirstPartyDialog||{}),function(n){n.OfficeOnlineDomainList=["*.dod.online.office365.us","*.gov.online.office365.us","*.officeapps-df.live.com","*.officeapps.live.com","*.online.office.de","*.partner.officewebapps.cn"],n.isHostOriginTrusted=function(){if(void 0!==window.external&&void 0!==window.external.GetContext)return!0;var e=OSF.getClientEndPoint()._targetUrl,t=e.split("/")[2].split(":")[0].split("?")[0];return 0!=e.indexOf("https:")||n.OfficeOnlineDomainList.forEach(function(e){if(0==e.indexOf("*.")&&(e=e.substring(2)),t.indexOf(e)==t.length-e.length)return!0}),!1}}(OfficeCore=OfficeCore||{}),function(n){var e=(Object.defineProperty(t.prototype,"roamingSettings",{get:function(){return this.m_roamingSettings||(this.m_roamingSettings=n.AuthenticationService.newObject(this.context).roamingSettings),this.m_roamingSettings},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tap",{get:function(){return this.m_tap||(this.m_tap=n.Tap.newObject(this.context)),this.m_tap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skill",{get:function(){return this.m_skill||(this.m_skill=n.Skill.newObject(this.context)),this.m_skill},enumerable:!0,configurable:!0}),t);function t(e){this.context=e}n.FirstPartyApis=e;var r,i=(r=OfficeExtension.ClientRequestContext,__extends(o,r),Object.defineProperty(o.prototype,"firstParty",{get:function(){return this.m_firstPartyApis||(this.m_firstPartyApis=new e(this)),this.m_firstPartyApis},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flighting",{get:function(){return this.flightingService},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"telemetry",{get:function(){return this.m_telemetry||(this.m_telemetry=n.TelemetryService.newObject(this)),this.m_telemetry},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"ribbon",{get:function(){return this.m_ribbon||(this.m_ribbon=n.DynamicRibbon.newObject(this)),this.m_ribbon},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"bi",{get:function(){return this.m_biShim||(this.m_biShim=n.BiShim.newObject(this)),this.m_biShim},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"flightingService",{get:function(){return this.m_flightingService||(this.m_flightingService=n.FlightingService.newObject(this)),this.m_flightingService},enumerable:!0,configurable:!0}),o);function o(e){return r.call(this,e)||this}n.RequestContext=i,n.run=function(e,t){return OfficeExtension.ClientRequestContext._runBatch("OfficeCore.run",arguments,function(e){return new n.RequestContext(e)})}}(OfficeCore=OfficeCore||{}),function(e){var t;function s(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}(t=e.license||(e.license={})).isFeatureEnabled=function(i,o){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.isFeatureEnabled(i,o),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.getFeatureTier=function(i,o){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.getFeatureTier(i,o),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.isFreemiumUpsellEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.isFreemiumUpsellEnabled(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.launchUpsellExperience=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.License.newObject(t).launchUpsellExperience(n,r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onFeatureStateChanged=function(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),(r=n.getLicenseFeature(o)).onStateChanged.add(a),i=function(){return r.onStateChanged.remove(a),null},[4,t.sync()];case 1:return e.sent(),[2,i]}})})},t.getMsaDeviceTicket=function(i,o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=s(),n=OfficeCore.License.newObject(t),r=n.getMsaDeviceTicket(i,o,a),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(Office=Office||{}),function(e){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(e._CC||(e._CC={})).Skill_HostSkillEvent_EventArgsTransform=function(e,t){return{type:t.type,data:t.data}},(e.SkillErrorCodes||(e.SkillErrorCodes={})).generalException="GeneralException";new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[["1.1","SharedApiUndo"]],strings:["Skill","registerHostSkillEvent","unregisterHostSkillEvent"],enumTypes:[],clientObjectTypes:[[1,0,0,0,[["executeAction",3,2,0,5],["notifyPaneEvent",2,2,0,5],[2,0,0,0,3,0,1],[3,0,0,0,3,0,1],["testFireEvent",0,0,0,3,0,1]],0,0,0,[["HostSkillEvent",2,0,"65538","",2,3]],"Microsoft.SkillApi.Skill",4]]},targetNamespaceObject:e})}(OfficeCore=OfficeCore||{}),function(t){OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject;var n,e,r,i=OfficeExtension.BatchApiHelper.createTopLevelServiceObject,a=(OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod),o=(OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined),s=(OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported),c=(OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson),l=OfficeExtension.Utility.fixObjectPathIfNecessary,u=(OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult),p=(OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags,n=OfficeExtension.ClientObject,__extends(f,n),Object.defineProperty(f.prototype,"_className",{get:function(){return"TelemetryService"},enumerable:!0,configurable:!0}),f.prototype.sendNonStandardEvent=function(e,t,n,r,i,o){s("TelemetryService.sendNonStandardEvent","Telemetry","1.4","OfficeCore"),a(this,"SendNonStandardEvent",1,[e,t,n,r,i,o],4,0)},f.prototype.sendTelemetryEvent=function(e,t,n,r,i){a(this,"SendTelemetryEvent",1,[e,t,n,r,i],4,0)},f.prototype._handleResult=function(e){n.prototype._handleResult.call(this,e),o(e)||l(this,e)},f.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),u(this,e,t)},f.newObject=function(e){return i(t.TelemetryService,e,"Microsoft.Telemetry.TelemetryService",!1,4)},f.prototype.toJSON=function(){return c(this,{},{})},f);function f(){return null!==n&&n.apply(this,arguments)||this}t.TelemetryService=p,(e=t.DataFieldType||(t.DataFieldType={})).unset="Unset",e.string="String",e.boolean="Boolean",e.int64="Int64",e.double="Double",(r=t.EventType||(t.EventType={})).sendTelemetryEvent="SendTelemetryEvent",r.customerContent="CustomerContent",r.directNumericEvent="DirectNumericEvent",(t.TelemetryErrorCodes||(t.TelemetryErrorCodes={})).generalException="GeneralException"}(OfficeCore=OfficeCore||{}),function(p){var f="officeWebAuthReplyUrls",b=!1,i=null;function e(n){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=n.apply(void 0,e)}var i=null,o=null;return{immediateCall:r,delayCall:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o=function(){return r.apply(void 0,e)}},waitForPromise:function(){return o&&(o(),o=null),i||Promise.resolve()}}}function v(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return(t=!1,r&&p.supportsTeamsTokenFlow)?(t=!0,[3,3]):[3,1];case 1:return[4,o()];case 2:(n=e.sent()).supportsAuthToken?t=!0:r&&(t=!n.hostPageSupportsAuth),e.label=3;case 3:return[2,t]}})})}function o(){return Office&&Office.context&&Office.context.webAuth?i?Promise.resolve(i):new Promise(function(n,r){Office.context.webAuth.getAuthContextAsync(function(e){if("succeeded"===e.status){var t=e.value;if(!t||t.isAnonymous)return void r({code:"CannotGetAuthContext",message:t?t.Error:void 0,loggableErrorMessage:"Anonymous user"});if(!t.appId)return void r({code:"CannotGetAuthContext",message:"App ID is missing from getAuthContextAsync. Please verify the WebApplicationInfo node in app manifest."});n(i=t)}else r({code:"CannotGetAuthContext",message:e.status,loggableErrorMessage:String(e.error.code)})})}):Promise.reject({code:"GetAuthContextAsyncMissing",message:"Office:["+!Office+"],Office.context:["+!Office.context+"],Office.context.webAuth:["+!Office.context.webAuth+"]"})}p.authFlow="authcode",p.autoPopup=!1,p.upnCheck=!0,p.timeout=void 0,p.clientCapabilities=[],p.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",p.debugging=!1,p.useMsal3=void 0,p.useMsal5=void 0,p.delay=0,p.delayMsal=0,p.supportsOauthManager=!1,p.supportsTeamsTokenFlow=!0,p.supportsBrowserAuth=!0,p.supportsPairWiseBroker=!1;var O=e(function(l,u){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(e){switch(e.label){case 0:return p.supportsBrowserAuth?[4,o()]:[2,Promise.reject({code:"PackageNotLoaded"})];case 1:return c=e.sent(),[2,new Promise(function(t,n){try{var e="msa"===c.authorityType.toLowerCase(),r=!0===p.supportsPairWiseBroker?OSF.pairwiseBrokerConfig:void 0,i=null!=r&&!0===r.enabled,o=null!=r?r.trustedBrokerDomain:void 0;if(OSF.WebAuth.config={authFlow:p.authFlow,authVersion:p.authVersion?p.authVersion:null,msal:p.msal,delayWebAuth:p.delay,delayMsal:p.delayMsal,debugging:p.debugging,useMsal3:p.useMsal3,useMsal5:p.useMsal5,authority:p.authorityOverride?p.authorityOverride:c.authority,idp:c.authorityType.toLowerCase(),appIds:[e&&c.msaAppId?c.msaAppId:c.appId],redirectUri:l||null,upn:c.upn,puid:c.userId,prefetch:u,telemetryInstance:"otel",autoPopup:p.autoPopup,enableUpnCheck:p.upnCheck,enableConsoleLogging:p.debugging,tenantId:c.tenantId,timeout:p.timeout,clientCapabilities:p.clientCapabilities,usePairwiseBroker:i,trustedBrokerDomain:o},OSF.WebAuth.load().then(function(e){d(e,b=!0),t()}).catch(function(e){n({code:"PackageNotLoaded",message:e instanceof Event?e.type:e,telemetryResult:e})}),"implicit"===p.authFlow){var a=l||window.location.href.split("?")[0],s=sessionStorage.getItem(f);s||""===s?s=a:s+=", "+a,s&&sessionStorage.setItem(f,s)}}catch(e){OSF.WebAuth.config=null,OSF.WebAuth.load().then(function(){t()}).catch(function(){n({code:"FailedToLoad",message:e})})}})]}})})});var n=e(function(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:if(!OSF.WebAuth||"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform)return[3,6];e.label=1;case 1:return e.trys.push([1,5,,6]),O.delayCall(r,i),[4,v(p.supportsOauthManager)];case 2:return e.sent()?[3,4]:[4,O.waitForPromise()];case 3:e.sent(),e.label=4;case 4:return[3,6];case 5:throw t=e.sent(),d((n=t).result,!1,n),delete n.result,delete n.loggableErrorMessage,n;case 6:return[2]}})})});function t(e,t){return n.immediateCall(e,t)}function d(o,a,s){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=OSF.WebAuth.config?[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("UseMsal3",!0===OSF.WebAuth.config.useMsal3),oteljs.makeBooleanDataField("UseMsal5",!0===OSF.WebAuth.config.useMsal5),oteljs.makeBooleanDataField("UsePairwiseBroker",!0===OSF.WebAuth.config.usePairwiseBroker)]:[],t=s&&s.loggableErrorMessage?s.loggableErrorMessage:"",n=a?[]:[oteljs.makeStringDataField("ApiErrorCode",s&&s.code?s.code:""),oteljs.makeStringDataField("Error",t||(o instanceof Event?o.type:""))],r=e.concat(n,[oteljs.makeBooleanDataField("Result",a)]);if(o&&!(o instanceof Event)&&o.Telemetry)for(var i in o.Telemetry)if(o.Telemetry[i])switch(i){case"succeeded":r.push(oteljs.makeBooleanDataField(i,o.Telemetry[i]));break;case"loadedApplicationCount":case"timeToLoad":r.push(oteljs.makeInt64DataField(i,o.Telemetry[i]));break;default:r.push(oteljs.makeStringDataField(i,o.Telemetry[i]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.Load",dataFields:r,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}function P(i,o,a,s,c){void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=OSF.WebAuth.config?[oteljs.makeStringDataField("IdentityProvider",OSF.WebAuth.config.idp),oteljs.makeStringDataField("AppId",OSF.WebAuth.config.appIds[0]),oteljs.makeStringDataField("Target",{authFlow:OSF.WebAuth.config.authFlow,authVersion:OSF.WebAuth.config.authVersion,msal:OSF.WebAuth.config.msal,autoPopup:OSF.WebAuth.config.autoPopup,enableUpnCheck:OSF.WebAuth.config.upnCheck}),oteljs.makeBooleanDataField("UseMsal5",!0===OSF.WebAuth.config.useMsal5),oteljs.makeBooleanDataField("UsePairwiseBroker",!0===OSF.WebAuth.config.usePairwiseBroker)]:[],t="";i instanceof Event?t=i.type||"":i&&(t=i.ErrorCode||i.code||"");var n=e.concat([oteljs.makeStringDataField("CorrelationId",a),oteljs.makeBooleanDataField("Popup","boolean"==typeof s&&s),oteljs.makeBooleanDataField("Result",o),oteljs.makeStringDataField("Error",t),oteljs.makeBooleanDataField("UseOauthManager",!0===c)]);if(i&&!(i instanceof Event)&&i.Telemetry)for(var r in i.Telemetry)if(i.Telemetry[r])switch(r){case"succeeded":n.push(oteljs.makeBooleanDataField(r,i.Telemetry[r]));break;case"timeToGetToken":n.push(oteljs.makeInt64DataField(r,i.Telemetry[r]));break;default:n.push(oteljs.makeStringDataField(r,i.Telemetry[r]))}OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.GetAccessToken",dataFields:n,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})}p.load=t,p.getAccessToken=function(m,_){var e=this;return n.waitForPromise().then(function(){return new Promise(function(g,y){return __awaiter(e,void 0,void 0,function(){var r,i,o,a,s,c,l,u,p,f,d,h;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,12,,13]),"web"!=OSF._OfficeAppFactory.getHostInfo().hostPlatform?[3,8]:[4,v(!!m.appName)];case 1:return e.sent()?[3,3]:[4,O.waitForPromise()];case 2:return e.sent(),OSF.WebAuth&&b?(r=m.correlationId||OSF._OfficeAppFactory.getHostInfo().osfControlAppCorrelationId,OSF.WebAuth.config.appIds[0]&&OSF.WebAuth.getToken(m.resource,null,OSF.WebAuth.config.appIds[0],r,_&&_.popup?_.popup:null,m&&m.authChallenge?m.authChallenge:null).then(function(e){P(e,!0,r,!(!_||!_.popup)&&_.popup),g({accessToken:e.Token,tokenIdenityType:"msa"==OSF.WebAuth.config.idp.toLowerCase()?OfficeCore.IdentityType.microsoftAccount:OfficeCore.IdentityType.organizationAccount})}).catch(function(e){P(e,!1,r,!(!_||!_.popup)&&_.popup),y({code:e.ErrorCode,message:e instanceof Event?e.type:e.ErrorMessage})})):(t=b,n=OSF.WebAuth.loadAttempts,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeBooleanDataField("Loaded",t),oteljs.makeInt64DataField("LoadAttempts","number"==typeof n?n:0)];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.OfficeFirstPartyAuth.UnexpectedAcquire",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage}})})),[3,7];case 3:i=new OfficeCore.RequestContext,u=OfficeCore.AuthenticationService.newObject(i),i._customData="WacPartition",o=!!m.appName,a=m.correlationId,e.label=4;case 4:return e.trys.push([4,6,,7]),s=u.getAccessToken(m,null),[4,i.sync()];case 5:return e.sent(),o&&P(s.value,!0,a,void 0,!0),g(s.value),[3,7];case 6:throw c=e.sent(),o&&P(c,!1,a,void 0,!0),c;case 7:return[3,11];case 8:return l=new OfficeCore.RequestContext,u=OfficeCore.AuthenticationService.newObject(l),p=u.onTokenReceived.add(function(t){if(!OfficeExtension.CoreUtility.isNullOrUndefined(t))if(p.remove(),l.sync().catch(function(){}),0==t.code)g(t.tokenValue);else if(OfficeExtension.CoreUtility.isNullOrUndefined(t.errorInfo))y({code:t.code});else try{y(JSON.parse(t.errorInfo))}catch(e){y({code:t.code,message:t.errorInfo})}return null}),[4,l.sync()];case 9:return e.sent(),f=u.getAccessToken(m,u._targetId),[4,l.sync()];case 10:if(e.sent(),OfficeExtension.CoreUtility.isNullOrUndefined(f.value))return[2,null];d=f.value.accessToken,OfficeExtension.CoreUtility.isNullOrUndefined(d)||g(f.value),e.label=11;case 11:return[3,13];case 12:return h=e.sent(),y(h),[3,13];case 13:return[2]}var t,n})})})})},p.getPrimaryIdentityInfo=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e);e._customData="WacPartition";var n=t.getPrimaryIdentityInfo();return e.sync().then(function(){return n.value})},p.getIdentities=function(){var e=new OfficeCore.RequestContext,t=OfficeCore.AuthenticationService.newObject(e).getIdentities();return e.sync().then(function(){return t.value})},p.onIdentityChanged=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r=this;return __generator(this,function(e){switch(e.label){case 0:return(e.trys.push([0,3,,4]),"web"===OSF._OfficeAppFactory.getHostInfo().hostPlatform)?[3,2]:(t=new OfficeCore.RequestContext,n=OfficeCore.AuthenticationService.newObject(t),n.onIdentityChanged.add(i),[4,t.sync()]);case 1:return e.sent(),[2,function(){return __awaiter(r,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return n.onIdentityChanged.remove(i),[4,t.sync()];case 1:return e.sent(),[2]}})})}];case 2:return[3,4];case 3:return e.sent(),[3,4];case 4:return[2,function(){return Promise.resolve()}]}})})},"undefined"!=typeof window&&window.OSF&&function(){try{if("undefined"==typeof window||!window.sessionStorage)return;var e=sessionStorage.getItem(f);null!==e&&-1!==e.indexOf(window.location.origin+window.location.pathname)&&t()}catch(e){console.error(e)}}()}(OfficeFirstPartyAuth=OfficeFirstPartyAuth||{}),function(e){!function(d){var r,e,p,t;(e=r=d.PopupOptions||(d.PopupOptions={}))[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Force=2]="Force",(t=p=d.AuthErrorCode||(d.AuthErrorCode={}))[t.UnsupportedUserIdentity=13003]="UnsupportedUserIdentity",t[t.UserAborted=13004]="UserAborted",t[t.InteractionRequired=13005]="InteractionRequired",t[t.ClientError=13006]="ClientError",t[t.ServerError=13007]="ServerError",t[t.NotAvailable=13012]="NotAvailable",t[t.PopupAuthFlowNotSupported=13014]="PopupAuthFlowNotSupported",t[t.InternalError=5001]="InternalError",t[t.InvalidApiArguments=5013]="InvalidApiArguments";var f={ACCOUNT_UNAVAILABLE:p.UnsupportedUserIdentity,USER_CANCEL:p.UserAborted,USER_INTERACTION_REQUIRED:p.InteractionRequired,PERSISTENT_ERROR:p.ClientError,NO_NETWORK:p.ServerError,TRANSIENT_ERROR:p.ServerError,NESTED_APP_AUTH_UNAVAILABLE:p.NotAvailable},i={POPUP_WINDOW_ERROR:p.ClientError,USER_CANCELLED:p.UserAborted,POPUP_AUTH_FLOW_NOT_SUPPORTED:p.PopupAuthFlowNotSupported},l={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},u=0,h=!1,n={};function g(e){return n[e]||(n[e]={loaded:!1,usePairwiseBroker:!1}),n[e]}var y=void 0;d.clientCapabilities=[],d.upnCheck=!0,d.timeout=void 0,d.msal="https://alcdn.msauth.net/browser-1p/2.28.1/js/msal-browser-1p.min.js",d.debugging=!1,d.delay=0,d.delayMsal=0,d.useMsal3=void 0;var m=d.useMsal5=void 0,_={},b=function(e){try{var t="string"==typeof e?e:e.data,n=JSON.parse(t);if(n.requestId){var r=n.requestId;if(_.hasOwnProperty(r)){var i=p.InternalError,o=_[r],a=o[0],s=o[1];delete _[r];var c=n.token;if(c&&!0===n.success&&c.access_token&&"number"==typeof c.expires_in)return void a({accessToken:c.access_token,idToken:c.id_token,expiresOn:new Date(Date.now()+1e3*c.expires_in)});var l=n.error;if(l){var u=l.status;f[u]&&(i=f[u])}s({code:i})}}}catch(e){}},v={code:p.NotAvailable};function o(o,a){var s=o.clientId||y;if(!s)return Promise.reject({code:p.InvalidApiArguments});function e(e){function t(e,t){var n=Date.now()-r;!function(t,n,r,i,o){if(0<u&&!r)return;u++,void 0!==OTel&&OTel.OTelLogger.onTelemetryLoaded(function(){var e=[oteljs.makeStringDataField("NestedClientId",t),oteljs.makeStringDataField("CorrelationId",n),oteljs.makeBooleanDataField("Popup",r),oteljs.makeInt64DataField("Duration",i),oteljs.makeInt64DataField("ErrorCode",o?o.code:0),oteljs.makeBooleanDataField("BridgeAvailable",O()),oteljs.makeBooleanDataField("UseMsal5",!0===d.useMsal5),oteljs.makeBooleanDataField("UsePairwiseBroker",!0===g(t).usePairwiseBroker)];OTel.OTelLogger.sendTelemetryEvent({eventName:"Office.Extensibility.OfficeJs.NestedAppAuth.GetAccessToken",dataFields:e,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.NecessaryServiceDataEvent}})})}(s,c,a,n,t)}return e.then(function(e){t(0,null)}).catch(function(e){t(0,e)}),e}var c=o.correlationId||OSF.OUtil.Guid.generateNewGuid(),r=Date.now();if(O())return e(new Promise(function(e,t){var n=OSF.OUtil.Guid.generateNewGuid(),r=o.scopes.join(" "),i={messageType:"NestedAppAuthRequest",method:a?"GetTokenPopup":"GetToken",requestId:n,clientLibrary:"officejs",sendTime:Date.now(),tokenParams:{clientId:s,scope:r,correlationId:c,claims:function(e){if(0===d.clientCapabilities.length)return e;var t={};if(e)try{t=JSON.parse(e)}catch(e){}return t.hasOwnProperty(l.ACCESS_TOKEN)||(t[l.ACCESS_TOKEN]={}),t[l.ACCESS_TOKEN][l.XMS_CC]={values:d.clientCapabilities},JSON.stringify(t)}(o.claims)}};h||(nestedAppAuthBridge.addEventListener("message",b),h=!0),_[n]=[e,t],nestedAppAuthBridge.postMessage(JSON.stringify(i))}));var t=g(s);return t.loadPromise?e(t.loadPromise.then(function(){if(!t.loaded)return Promise.reject(v);var e=o.scopes.join(" ");return e=e.replace(/(\/.default)$/,""),OSF.WebAuth.getToken(e,o.scopes,s,c,a,o.claims).then(function(e){return{accessToken:e.Token,expiresOn:e.MsalResult?e.MsalResult.expiresOn:void 0}}).catch(function(e){var t=p.InternalError,n=void 0;if(e)if(n=e.ErrorMessage,e.MsalResult&&"InteractionRequiredAuthError"===e.MsalResult.name)t=p.InteractionRequired;else if(e.ErrorCode){var r=e.ErrorCode.toUpperCase();i[r]&&(t=i[r])}return Promise.reject({code:t,description:n})})})):e(Promise.reject(v))}function a(){return O()||"function"!=typeof __initializeNestedAppAuth?Promise.resolve():__initializeNestedAppAuth()}function O(){return"undefined"!=typeof nestedAppAuthBridge}function P(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,a()];case 1:return e.sent(),[2,O()]}})})}d.isBridgeAvailable=O,d.isBridgeAvailableAsync=P,d.load=function(e,t,n,r,i){var o=g(e);return o.loadPromise=o.loadPromise||function(c,l,u,p,f){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:return y=c,t=p||d.clientCapabilities,p&&0===d.clientCapabilities.length&&(d.clientCapabilities=p),Office&&Office.context&&Office.context.auth&&OSF.WebAuth?[4,P()]:[2];case 1:return e.sent()?[2]:[4,m=m||function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,new Promise(function(t){Office.context.auth.getAuthContextAsync(function(e){"succeeded"===e.status?t(e.value):t(null)})}).catch(function(){return null})]})})}()];case 2:if(!(n=e.sent()))throw v;OSF.WebAuth.config={authFlow:"authcode",authVersion:d.authVersion?d.authVersion:null,msal:d.msal,delayWebAuth:d.delay,delayMsal:d.delayMsal,debugging:d.debugging,useMsal3:d.useMsal3,useMsal5:d.useMsal5,authority:d.authorityOverride?d.authorityOverride:n.authorityBaseUrl,idp:"msa"===n.authorityType.toLowerCase()?"msa":"aad",appIds:[c],redirectUri:l||null,upn:n.userPrincipalName,prefetch:u,telemetryInstance:"otel",enableUpnCheck:d.upnCheck,enableConsoleLogging:d.debugging,checkActiveAccount:!0,tenantId:n.tenantId,timeout:d.timeout,clientCapabilities:t},r=OSF.pairwiseBrokerConfig,i=!0===f&&null!=r&&!0===r.enabled,o=null!=r?r.trustedBrokerDomain:void 0,(a=g(c)).usePairwiseBroker=i,e.label=3;case 3:return e.trys.push([3,5,,6]),[4,OSF.WebAuth.load({appIds:[c],redirectUri:l||null,prefetch:u,clientCapabilities:t,usePairwiseBroker:i,trustedBrokerDomain:o})];case 4:return e.sent(),a.loaded=!0,[3,6];case 5:throw s=e.sent(),__assign({},v,{description:s instanceof Event?s.type:void 0});case 6:return[2]}})})}(e,t,n,r,i),o.loadPromise},d.getAccessToken=function(t){var n=null==t.popup?r.None:t.popup;if(n===r.Auto&&!t.directUserActionCallback)throw{code:p.InvalidApiArguments};return a().then(function(){return o(t,n===r.Force).catch(function(e){if(e.code==p.InteractionRequired&&n===r.Auto&&t.directUserActionCallback)return t.directUserActionCallback().then(function(e){if(e)return o(t,!0);throw{code:p.UserAborted}}).catch(function(){throw{code:p.UserAborted}});throw e})})}}(e.NestedAppAuth||(e.NestedAppAuth={}))}(OfficeFirstPartyAuth=OfficeFirstPartyAuth||{}),function(o){var n,e;OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(o._CC||(o._CC={})).LicenseFeature_StateChanged_EventArgsTransform=function(e,t){var n={feature:t.featureName,isEnabled:t.isEnabled,tier:t.tierName};return t.tierName&&(n.tier=0==t.tierName?LicenseFeatureTier.unknown:1==t.tierName?LicenseFeatureTier.basic:2==t.tierName?LicenseFeatureTier.premium:t.tierName),n},(o._CC||(o._CC={})).ThemeService_OfficeThemeChanged_EventArgsTransform=function(e,t){return{bodyBackgroundColor:t.bodyBackgroundColor,bodyForegroundColor:t.bodyForegroundColor,controlBackgroundColor:t.controlBackgroundColor,controlForegroundColor:t.controlForegroundColor,themeId:t.themeId,isDarkTheme:t.isDarkTheme,fluentThemeData:t.fluentThemeData}},(e=n=o.PersonaPromiseType||(o.PersonaPromiseType={}))[e.immediate=0]="immediate",e[e.load=3]="load";var a=function(){};o.PersonaInfoAndSource=a;var t=(r.prototype.performAsyncOperation=function(e,l,u,p){var t=this;e!=n.immediate?p().then(function(e){if(e)u();else{var c=t;c.load("hostId"),c.context.sync().then(function(){var s=c.hostId;t.getPersonaLifetime().then(function(o){var a=function(i){return new OfficeExtension.CoreUtility.Promise(function(t,e){if(i.sendingPersonaHostId==s)for(var n=0;n<i.dataUpdated.length;++n){var r=i.dataUpdated[n];if(l==r)return void p().then(function(e){e&&(u(),o.onPersonaUpdated.remove(a),c.context.sync()),t(e)})}t(!1)})};o.onPersonaUpdated.add(a),c.context.sync()})})}}):u()},r.prototype.getOrganizationAsync=function(n){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var r=i;i.performAsyncOperation(n,PersonaDataUpdated.organization,function(){var e=r.organization;e.load("*"),r.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.organization;n.load("isWarmedUp"),r.context.sync().then(function(){e(n.isWarmedUp)})})})})},r.prototype.getIsPersonaInfoResolvedCheck=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.personaInfo;n.load("isPersonResolved"),r.context.sync().then(function(){e(n.isPersonResolved)})})},r.prototype.getPersonaInfoAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.personaInfo;e.load(),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getPersonaInfoWithSourceAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=new a;e.info=n.personaInfo,e.info.load(),e.source=n.personaInfo.sources,e.source.load(),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getUnifiedCommunicationInfo=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedCommunicationInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getUnifiedGroupInfoAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.unifiedGroupInfo;e.load("*"),n.context.sync().then(function(){t(e)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getTypeAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){n.load("type"),n.context.sync().then(function(){e(o.PersonaType[n.type.valueOf()])})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getCustomizationsAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.personaInfo,function(){var e=n.getCustomizations();n.context.sync().then(function(){t(e.value)})},function(){return i.getIsPersonaInfoResolvedCheck()})})},r.prototype.getMembersAsync=function(n){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var r=i;i.performAsyncOperation(n,PersonaDataUpdated.members,function(){var e=r.getMembers();e.load("isWarmedUp"),r.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.getMembers();n.load("isWarmedUp"),r.context.sync().then(function(){e(n.isWarmedUp)})})})})},r.prototype.getMembershipAsync=function(r){var i=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=i;i.performAsyncOperation(r,PersonaDataUpdated.membership,function(){var e=n.getMembership();e.load("*"),n.context.sync().then(function(){t(e)})},function(){return new OfficeExtension.CoreUtility.Promise(function(e){var t=n.getMembership();t.load("isWarmedUp"),n.context.sync().then(function(){e(t.isWarmedUp)})})})})},r.prototype.getPersonaLifetime=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(t,e){var n=r;n.load("instanceId"),n.context.sync().then(function(){new i(n.context,n.instanceId).getPersonaLifetime().then(function(e){t(e)})})})},r);function r(){}o.PersonaCustom=t;var i=(Object.defineProperty(s.prototype,"serviceContext",{get:function(){return this.m_serviceConext||(this.m_serviceConext=o.ServiceContext.newObject(this.context)),this.m_serviceConext},enumerable:!0,configurable:!0}),s.prototype.getPersonaLifetime=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getPersonaLifetime(r.instanceId);r.context.sync().then(function(){n.load("instanceId"),r.context.sync().then(function(){e(n)})})})},s.prototype.getInitialPersona=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getInitialPersona(r.instanceId);r.context.sync().then(function(){e(n)})})},s.prototype.getLokiTokenProvider=function(){var r=this;return new OfficeExtension.CoreUtility.Promise(function(e,t){var n=r.serviceContext.getLokiTokenProvider(r.instanceId);r.context.sync().then(function(){n.load("instanceId"),r.context.sync().then(function(){e(n)})})})},s);function s(e,t){this.context=e,this.instanceId=t}o.PeopleApiContext=i,(o._CC||(o._CC={})).FirstPartyDialogService_DialogMessage_EventArgsTransform=function(e,t){return{message:t.message}};var c,l,u=(Object.defineProperty(p.prototype,"_targetId",{get:function(){return null==this.m_targetId&&(void 0!==OSF&&OSF.OUtil?this.m_targetId=OSF.OUtil.Guid.generateNewGuid():this.m_targetId=""+this.context._nextId()),this.m_targetId},enumerable:!0,configurable:!0}),p);function p(){}o.AuthenticationServiceCustom=u,(o._CC||(o._CC={})).AuthenticationService_TokenReceived_EventArgsTransform=function(e,t){return{tokenValue:t.tokenValue,code:t.code,errorInfo:t.errorInfo}},(c=o._CC||(o._CC={})).ExternalCodeService_ExternalCodeExecutionCompleted_EventArgsTransform=function(e,t){return{result:t.result}},c.ExternalCodeService_ExternalCodeServiceRequestCompleted_EventArgsTransform=function(e,t){return t},c.ExternalCodeService_ExternalCodeServiceResult_EventArgsTransform=function(e,t){return t},(o._CC||(o._CC={})).AddinSkillActionService_ReplyReceived_EventArgsTransform=function(e,t){return{actionCorrelationId:t.actionCorrelationId,replyMessage:t.replyMessage,resultCode:t.resultCode}},(l=o.ErrorCodes||(o.ErrorCodes={})).apiNotAvailable="ApiNotAvailable",l.clientError="ClientError",l.clpSessionError="ClpSessionError",l.controlIdNotFound="ControlIdNotFound",l.docCookieError="DocCookieError",l.entryIdRequired="EntryIdRequired",l.errorPointer="ErrorPointer",l.generalException="GeneralException",l.hostIntegrationManagerError="HostIntegrationManagerError",l.hostRestartNeeded="HostRestartNeeded",l.instanceNotFound="InstanceNotFound",l.interactiveFlowAborted="InteractiveFlowAborted",l.invalidArgument="InvalidArgument",l.invalidGrant="InvalidGrant",l.invalidResourceUrl="InvalidResourceUrl",l.invalidRibbonDefinition="InvalidRibbonDefinition",l.labelingDisabledAppguard="LabelingDisabledAppguard",l.labelingDisabledNoSignedInClpCompatibleUsers="LabelingDisabledNoSignedInClpCompatibleUsers",l.labelingDisabledPrivacySettings="LabelingDisabledPrivacySettings",l.labelingDisabledProtectedView="LabelingDisabledProtectedView",l.labelingDisabledUnsupportedLabelClient="LabelingDisabledUnsupportedLabelClient",l.msoOLDocumentError="MsoOLDocumentError",l.notImplement="NotImplement",l.objectNotFound="ObjectNotFound",l.officeJSItemLabelForIdentityError="OfficeJSItemLabelForIdentityError",l.officeJSRMSLicenseError="OfficeJSRMSLicenseError",l.officeJSSessionOrDocError="OfficeJSSessionOrDocError",l.officeSolutionFrameworkHostError="OfficeSolutionFrameworkHostError",l.omworkflowUserNotFound="OMWorkflowUserNotFound",l.osfControlContainerError="OsfControlContainerError",l.outOfMemory="OutOfMemory",l.resourceNotSupported="ResourceNotSupported",l.sensitivityDocumentReadOnly="SensitivityDocumentReadOnly",l.sensitivityInsufficientPermission="SensitivityInsufficientPermission",l.sensitivityLabelDisabled="SensitivityLabelDisabled",l.sensitivityLabelingDisabled="SensitivityLabelingDisabled",l.sensitivityLabelNotFound="SensitivityLabelNotFound",l.sensitivityNewLabelSensitivityOrder="SensitivityNewLabelSensitivityOrder",l.sensitivityUnsupportedContentType="SensitivityUnsupportedContentType",l.sensitivityUnsupportedCrossTenant="SensitivityUnsupportedCrossTenant",l.sensitivityUnsupportedDke="SensitivityUnsupportedDke",l.sensitivityUnsupportedUdp="SensitivityUnsupportedUdp",l.serverError="ServerError",l.serviceUrlNotFound="ServiceUrlNotFound",l.sharedRuntimeNotAvailable="SharedRuntimeNotAvailable",l.ticketInvalidParams="TicketInvalidParams",l.ticketNetworkError="TicketNetworkError",l.ticketUnauthorized="TicketUnauthorized",l.ticketUninitialized="TicketUninitialized",l.ticketUnknownError="TicketUnknownError",l.unexpectedError="UnexpectedError",l.unsupportedUserIdentity="UnsupportedUserIdentity",l.userNotSignedIn="UserNotSignedIn",o.Interfaces||(o.Interfaces={});new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[["1.2","SharedApiUndo"],["1.2","SharedRuntimeInternal"],["1.1","SnapshotControl"],["1.1","SharedApiUndo"],["1.4","SharedApiUndo"],["1.2","DynamicRibbon"],["1.4","DynamicRibbon"],["1.1","DynamicRibbonUndo"],["1.3","DynamicRibbon"],["1.2","FirstPartyAuthentication"],["1.3","FirstPartyAuthentication"],["1.5","FirstPartyAuthentication"],["1.1","SensitivityUndo"],["1.2","SensitivityService"],["1.2","SensitivityUndo"],["1.3","SensitivityService"],["1.3","SensitivityUndo"],["1.3","SharedApiUndo"],["1.2","CopilotService"],["1.1","PrivateAPI"],["1.1","ExternalCodeServiceUndo"],["1.1","TaskPaneApi"]],strings:["DialogPage","License","LicenseFeature","MsaDeviceTicketOptions","AppRuntimePersistenceService","AppRuntimeService","ThemeService","Tap","MemberInfoList","PersonaActions","PersonaInfoSource","PersonaInfo","PersonaUnifiedCommunicationInfo","PersonaPhotoInfo","PersonaCollection","PersonaOrganizationInfo","UnifiedGroupInfo","Persona","PersonaLifetime","LokiTokenProvider","LokiTokenProviderFactory","ServiceContext","RichapiPcxFeatureChecks","Comment","CommentCollection","ExtensionLifeCycle","OfficeServicesManagerApi","LocaleApi","FirstPartyDialogService","DynamicRibbon","RibbonTab","RibbonButton","RibbonButtonCollection","ServiceUrlProvider","LinkedIn","NetworkUsage","BeforeDocumentCloseNotification","AuthenticationService","RoamingSetting","RoamingSettingCollection","SharedFilePicker","ActionService","Auth","AugLoopEventService","UndoService","UserFeedbackService","NotificationService","SensitivityService","CopilotService","PrivateApiService","ExternalCodeService","BusinessBarService","ShowSimpleDialog","DispatchApiService","DevicePermissionService","TaskpaneService","AddinSkillActionService","UnifiedStoreService","SdxMessaging","HostMcpService","close","registerOnShow","unregisterOnShow","id","_RegisterStateChange","_UnregisterStateChange","","null","registerOfficeThemeChangedEvent","unregisterOfficeThemeChangedEvent","isWarmedUp","isWarmingUp","displayName","email","emailAddresses","sipAddresses","birthday","birthdays","title","jobInfoDepartment","companyName","office","linkedTitles","linkedDepartments","linkedCompanyNames","linkedOffices","webSites","notes","getImageUri","setPlaceholderColor","getPlaceholderUri","getImageUriWithMetadata","getCount","getItem","instanceId","dispose","_RegisterPersonaUpdatedEvent","_UnregisterPersonaUpdatedEvent","this.instanceId","_RegisterLokiTokenAvailableEvent","_UnregisterLokiTokenAvailableEvent","_RegisterIdentityUniqueIdAvailableEvent","_UnregisterIdentityUniqueIdAvailableEvent","_RegisterClientAccessTokenAvailableEvent","_UnregisterClientAccessTokenAvailableEvent","getLokiTokenProvider","registerIdentityChangedEvent","unregisterIdentityChangedEvent","sendMessage","_RegisterHostMessageReceivedEvent","_UnregisterHostMessageReceivedEvent","_RegisterUndoStackChangedEvent","_UnregisterUndoStackChangedEvent","_RegisterUserFeedbackUIDismissedEvent","_UnregisterUserFeedbackUIDismissedEvent","_RegisterUserFeedbackResponseEvent","_UnregisterUserFeedbackResponseEvent","_RegisterSensitivityLabelChangedEvent","_UnregisterSensitivityLabelChangedEvent","execute","_RegisterPrivateApiEvent","_UnregisterPrivateApiEvent","registerExternalCodeExecutionCompletedEvent","unregisterExternalCodeExecutionCompletedEvent","registerExternalCodeServiceRequestCompletedEvent","unregisterExternalCodeServiceRequestCompletedEvent","registerExternalCodeServiceResultEvent","unregisterExternalCodeServiceResultEvent","_RegisterReplyReceivedEvent","_UnregisterReplyReceivedEvent","_RegisterCopilotAgentEvent","_UnregisterCopilotAgentEvent","_RegisterRefreshedAcquisitionStateEvent","_UnregisterRefreshedAcquisitionStateEvent","_RegisterMessageReceived","_UnregisterMessageReceived","_RegisterSubscriberChanged","_UnregisterSubscriberChanged","_RegisterSdxReady","_UnregisterSdxReady"],enumTypes:[["DialogPageEventType",[],{onShow:1}],["LicenseFeatureTier",["unknown","basic","premium"]],["LicenseEventType",[],{featureStateChanged:1}],["AppRuntimeState",["inactive","background","visible"]],["Visibility",["hidden","visible"]],["VisualSurface",["default","menus","panes","statusBar","backstage","dialogs"],{qat:"QAT"}],["ObjectType",["unknown","chart","smartArt","table","image","slide","text"],{ole:"OLE"}],["PersonaCardPerfPoint",["placeHolderRendered","initialCardRendered"]],["MessageType",[],{personaLifetimePersonaUpdatedEvent:3502,lokiTokenProviderLokiTokenAvailableEvent:3503,lokiTokenProviderIdentityUniqueIdAvailableEvent:3504,lokiTokenProviderClientAccessTokenAvailableEvent:3505}],["UnifiedCommunicationAvailability",["notSet","free","idle","busy","idleBusy","doNotDisturb","unalertable","unavailable"]],["UnifiedCommunicationStatus",["online","notOnline","away","busy","beRightBack","onThePhone","outToLunch","inAMeeting","outOfOffice","doNotDisturb","inAConference","getting","notABuddy","disconnected","notInstalled","urgentInterruptionsOnly","mayBeAvailable","idle","inPresentation"]],["UnifiedCommunicationPresence",["free","busy","idle","doNotDistrub","blocked","notSet","outOfOffice"]],["FreeBusyCalendarState",["unknown","free","busy","elsewhere","tentative","outOfOffice"]],["PersonaType",["unknown","enterprise","contact","bot","phoneOnly","oneOff","distributionList","personalDistributionList","anonymous","unifiedGroup"]],["PhoneType",["workPhone","homePhone","mobilePhone","businessFax","otherPhone"]],["AddressType",["workAddress","homeAddress","otherAddress"]],["MemberType",["unknown","individual","group"]],["PersonaDataUpdated",["hostId","type","photo","personaInfo","unifiedCommunicationInfo","organization","unifiedGroupInfo","members","membership","capabilities","customizations","viewableSources","placeholder"]],["CustomizedData",["email","workPhone","workPhone2","workFax","mobilePhone","homePhone","homePhone2","otherPhone","sipAddress","profile","office","company","workAddress","homeAddress","otherAddress","birthday"]],["CommentTextFormat",["plain","markdown","delta"]],["TimeStringFormat",["shortTime","longTime","shortDate","longDate"]],["ServiceProvider",["ariaBrowserPipeUrl","ariaUploadUrl","ariaVNextUploadUrl","lokiAutoDiscoverUrl"]],["IdentityType",["organizationAccount","microsoftAccount","unsupported"]],["AugLoopEventType",[],{onHostMessageReceivedEvent:65542}],["UndoType",[],{onUndoStackChangedEvent:65543,onCopilotOperationStartedEvent:65544}],["TriStateOption",["notSet","true","false"]],["UserFeedbackType",["like","dislike","idea","unclassified"]],["UserFeedbackUIType",["modalDialog","taskpane"]],["UserFeedbackEventType",[],{onUserFeedbackUIDismissedEvent:65546,onUserFeedbackResponseEvent:65550}],["UserFeedbackScreenshotInfoSourceType",["autoCapture","autoCaptureWithHtml2Canvas","providedAtInitialization","dynamicallyProvided"]],["UserFeedbackScreenshotInfoImageFormat",[],{jpeg:"jpeg",png:"png"}],["LabelMessageContext",[],{generic:0,firstPerson:1}],["LabelResultSeverity",[],{info:0,warning:1,error:2}],["SensitivityLabelEventType",[],{onLabelChangedEvent:65549}],["EncryptionType",[],{none:0,irmtemplate:1,irmuserDefinedPermission:2,irmencryptOnly:3,irmdoNotForward:4}],["TryUpgradeLabelError",[],{s_APPLYLABEL_OK:0,e_APPLYLABEL_FAIL:2147467259,e_APPLYLABEL_UNSUPPORTED_CROSSTENANT:2147205120,e_APPLYLABEL_DOCUMENT_READONLY:2147205119,e_APPLYLABEL_INSUFFICIENTPERMISSION:2147205118,e_APPLYLABEL_LABELDISABLED:2147205117,e_APPLYLABEL_UNSUPPORTED_UDP:2147205116,e_APPLYLABEL_LABELING_DISABLED:2147205115,e_APPLYLABEL_UNSUPPORTED_CONTENTTYPE:2147205114,e_APPLYLABEL_UNSUPPORTED_DKE:2147205113,e_APPLYLABEL_LABELNOTFOUND:2147205112,e_APPLYLABEL_USERNOTFOUND:2147220727,e_APPLYLABEL_NEWLABELSENSITIVITYORDER:2147205105}],["PrivateApiEventType",[],{onPrivateEvent:65552}],["RequestMethod",["get","post","patch","delete"]],["ResultType",["executionResult","runtimeInfo","serviceResponse"]],["ErrorCategory",["other","environment","runtime","license","user","auth","billing","invalidArg","python","service","unsupported","dataUpload"]],["BusinessBarType",["info","error","blocked","severeWarning","success","warning"]],["SimpleDialogState",[],{cancel:0,confirm:1,checkedConfirm:2}],["SimpleDialogCategory",[],{information:"information",error:"error",warning:"warning",question:"question",other:"other"}],["DevicePermissionType",[],{camera:"camera",microphone:"microphone",geolocation:"geolocation"}],["CopilotAgentEventType",[],{onCopilotAgentEvent:65556}],["UnifiedStoreEventType",[],{onRefreshedAcquisitionStateEvent:65557}]],clientObjectTypes:[[1,0,[["_Id",2]],0,[[61,0,2,0,4],["readyToShow",0,2,0,4],[62,0,2,0,4],[63,0,2,0,4],["sendMessageToHost",1,2,0,4]],0,0,0,[["OnShowEvent",0,0,"DialogPageEventType.onShow","this._Id",62,63]],"Microsoft.Office.DialogPage.DialogPage",4],[2,0,0,0,[["isFeatureEnabled",2,2,0,4],["getFeatureTier",2,2,0,4],["isFreemiumUpsellEnabled",0,2,0,4],["launchUpsellExperience",2,2,0,4],["_TestFireStateChangedEvent",1,0,0,3,0,1],["getMsaDeviceTicket",3,2,0,5]],[["getLicenseFeature",3,1,2,0,4]],0,0,0,"Microsoft.Office.Licensing.License",4],[3,0,[[64,3]],0,[[65,0,2,0,4],[66,0,2,0,4]],0,0,0,[["StateChanged",2,0,"LicenseEventType.featureStateChanged","this.id",65,66]]],[4,0,[["scopes",1,0,0,2,1]],0,0,0,0,0,0,"Microsoft.Office.Licensing.MsaDeviceTicketOptions",4],[5,0,0,0,[["setAppRuntimeStartState",1,0,0,2,0,2],["getAppRuntimeStartState",0,2,0,4]],0,0,0,0,"Microsoft.AppRuntime.AppRuntimePersistenceService",4],[6,0,0,0,[["setAppRuntimeState",1,0,0,2,0,2],["getAppRuntimeState",0,2,0,4],["setSnapshotEnabled",1,2,3,4],["getSnapshotEnabled",0,2,3,4],["getContentSnapshotAsBase64",0,2,3,4]],0,0,0,[["SnapshotImageReady",0,3,"65547",67,68,68],["VisibilityChanged",0,0,"65539",67,68,68]],"Microsoft.AppRuntime.AppRuntimeService",4],[7,0,0,0,[[69,0,0,0,2,0,4],[70,0,0,0,2,0,4],["getOfficeThemeDataForVisualSurface",1,2,0,5]],0,0,0,[["OfficeThemeChanged",2,0,"65548",67,69,70]],"Microsoft.Theme.ThemeService",4],[8,0,0,0,[["getEnterpriseUserInfo",0,2,0,5],["getMruFriendlyPath",1,2,0,5],["launchFileUrlInOfficeApp",2,2,0,5],["performLocalSearch",4,2,0,5],["readSearchCache",3,2,0,5],["writeSearchCache",3,2,0,5]],0,0,0,0,"Microsoft.TapRichApi.Tap",4],[9,0,[[71,3],[72,3]],0,[["items",0,2,0,4]],[["getPersonaForMember",18,1,2,0,4]]],[10,0,0,0,[["addContact",0,0,0,2,0,5],["editContact",0,0,0,2,0,5],["composeEmail",1,0,0,2,0,5],["composeInstantMessage",1,0,0,2,0,5],["callPhoneNumber",1,0,0,2,0,5],["pinPersonaToQuickContacts",0,0,0,2,0,5],["toggleTagForAlerts",0,0,0,2,0,5],["scheduleMeeting",0,0,0,2,0,5],["openLinkContactUx",0,0,0,2,0,5],["editContactByIdentifier",1,0,0,2,0,5],["showHoverCardForPersona",6,0,0,2,0,5],["hideHoverCardForPersona",0,0,0,2,0,5],["showContextMenu",6,0,0,2,0,5],["showContactCard",6,0,0,2,0,5],["showExpandedCard",6,0,0,2,0,5],["openGroupCalendar",0,0,0,2,0,5],["subscribeToGroup",0,0,0,2,0,5],["unsubscribeFromGroup",0,0,0,2,0,5],["getChangePhotoUrlAndOpenInBrowser",0,0,0,2,0,5],["startAudioCall",0,0,0,2,0,5],["startVideoCall",0,0,0,2,0,5],["openOutlookProperties",0,0,0,2,0,5],["editUnifiedGroup",0,0,0,2,0,5],["joinUnifiedGroup",0,0,0,2,0,5],["leaveUnifiedGroup",0,0,0,2,0,5]]],[11,0,[[73,3],[74,3],[75,3],[76,3],[77,3],[78,3],[79,3],[80,3],[81,3],[82,3],[83,3],[84,3],[85,3],[86,3],["phones",3],["addresses",3],[87,3],[88,3]]],[12,0,[[73,3],[74,3],[75,3],[76,3],[77,11],[78,11],[79,3],[80,3],[81,3],[82,3],[83,3],[84,3],[85,3],[86,3],[87,3],[88,3],["isPersonResolved",3]],[["sources",11,3,0,0,4]],[["getPhones",0,2,0,4],["getAddresses",0,2,0,4]]],[13,0,[["availability",3],["status",3],["isSelf",3],["isTagged",3],["customStatusString",3],["isBlocked",3],["presenceTooltip",3],["isOutOfOffice",3],["outOfOfficeNote",3],["timezone",3],["meetingLocation",3],["meetingSubject",3],["timezoneBias",3],["idleStartTime",11],["overallCapability",3],["isOnBuddyList",3],["presenceNote",3],["voiceMailUri",3],["availabilityText",3],["availabilityTooltip",3],["isDurationInAvailabilityText",3],["freeBusyStatus",3],["calendarState",3],["presence",3]]],[14,0,0,0,[[89,1,2,0,4,89],[90,1,0,0,2,90,5],[91,1,2,0,4,91],[92,1,2,0,4,92]]],[15,1,0,0,[[93,0,2,0,4]],[[94,18,1,18,0,4]],0,18],[16,0,[[71,3],[72,3]],[["hierarchy",15,18,0,0,4],["manager",18,2,0,0,4],["directReports",15,18,0,0,4]]],[17,0,[["description",1,0,0,2,5],["oneDrive",1,0,0,2,5],["oneNote",1,0,0,2,5],["isPublic",1,0,0,2,5],["amIOwner",1,0,0,2,5],["amIMember",1,0,0,2,5],["amISubscribed",1,0,0,2,5],["memberCount",1,0,0,2,5],["ownerCount",1,0,0,2,5],["hasGuests",1,0,0,2,5],["site",1,0,0,2,5],["planner",1,0,0,2,5],["classification",1,0,0,2,5],["subscriptionEnabled",1,0,0,2,5]]],[18,4,[["hostId",3],["type",3],["capabilities",3],["diagnosticId",3],[95,3]],[["photo",14,3,0,0,4],["personaInfo",12,3,0,0,4],["unifiedCommunicationInfo",13,3,0,0,4],["organization",16,3,0,0,4],["unifiedGroupInfo",17,35,0,0,4],["actions",10,2,0,0,4]],[["getCustomizations",0,2,0,4],["warmup",1,0,0,2,0,5],[96,0,0,0,2,0,5],["getViewableSources",0,2,0,4],["reportTimeForRender",2,0,0,2,0,5]],[["getMembers",9,0,2,0,4],["getMembership",9,0,2,0,4]]],[19,0,[[95,3]],0,[["getPolicies",0,2,0,4],[97,0,0,0,2,0,5],[98,0,0,0,2,0,5],["getTextScaleFactor",0,2,0,4]],[["getPersona",18,1,2,0,4],["getPersonaForOrgEntry",18,4,2,0,4],["getPersonaForOrgByEntryId",18,4,2,0,4]],0,0,[["PersonaUpdated",0,0,"MessageType.personaLifetimePersonaUpdatedEvent",99,97,98]]],[20,0,[["emailOrUpn",3],[95,3]],0,[["requestToken",0,0,0,2,0,5],[100,0,0,0,2,0,5],[101,0,0,0,2,0,5],["requestIdentityUniqueId",0,0,0,2,0,5],[102,0,0,0,2,0,5],[103,0,0,0,2,0,5],["requestClientAccessToken",0,0,0,2,0,5],[104,0,0,0,2,0,5],[105,0,0,0,2,0,5]],0,0,0,[["ClientAccessTokenAvailable",0,0,"MessageType.lokiTokenProviderClientAccessTokenAvailableEvent",99,104,105],["IdentityUniqueIdAvailable",0,0,"MessageType.lokiTokenProviderIdentityUniqueIdAvailableEvent",99,102,103],["LokiTokenAvailable",0,0,"MessageType.lokiTokenProviderLokiTokenAvailableEvent",99,100,101]]],[21,0,0,0,0,[[106,20,1,2,0,4]],0,0,0,"Microsoft.People.LokiTokenProviderFactory",4],[22,0,0,0,[[96,1,0,0,2,0,5],["accountEmailOrUpn",1,2,0,4],["getPersonaPolicies",0,2,0,4]],[[106,20,1,2,0,4],["getPersonaLifetime",19,1,2,0,4],["getInitialPersona",18,1,2,0,4]],0,0,0,"Microsoft.People.ServiceContext",4],[23,0,0,0,[["isAddChangePhotoLinkOnLpcPersonaImageFlightEnabled",0,2,0,4]],0,0,0,0,"Microsoft.People.RichapiPcxFeatureChecks",4],[24,0,[[64,3],["text",1,0,0,2,5],["created",11],["level",3],["resolved",1,0,0,2,5],["author",3],["mentions",3]],[["parent",24,2,0,0,4],["parentOrNullObject",24,2,0,0,4],["replies",25,19,0,0,4]],[["getRichText",1,2,0,4],["setRichText",2,0,0,2,0,5],["delete",0,0,0,2,0,5]],[["getParentOrSelf",24,0,2,0,4],["reply",24,2,0,0,2,0,0,5]]],[25,1,0,0,[[93,0,2,0,4]],[[94,24,1,18,0,4]],0,24],[26,0,0,0,[["launchExtensionComponent",3,2,0,5],["launchAgent",2,2,0,4]],0,0,0,0,"Microsoft.OfficeSharedApi.ExtensionLifeCycle",4],[27,0,0,0,[["bindServiceToProfile",3,0,0,2,0,5]],0,0,0,0,"Microsoft.OfficeServicesManager.OfficeServicesManagerApi",4],[28,0,0,0,[["getLocaleDateTimeFormattingInfo",1,2,0,4],["formatDateTimeString",3,2,0,4]],0,0,0,0,"Microsoft.LocaleApi.LocaleApi",4],[29,0,0,0,[["displayDialog",2,2,0,5],[61,0,2,0,5]],0,0,0,[["DialogMessage",2,0,"65536",67,68,68]],"Microsoft.FirstPartyDialog.FirstPartyDialogService",4],[30,0,0,[["buttons",33,19,0,0,4]],[["executeRequestUpdate",1,2,0,4],["executeRequestCreate",1,2,6,4],["executeSaveState",0,2,7,4]],[["getButton",32,1,2,0,4],["getTab",31,1,2,0,4]],0,0,0,"Microsoft.DynamicRibbon.DynamicRibbon",4],[31,0,[[64,3]],0,[["setVisibility",1,0,0,2,0,8]]],[32,0,[[64,3],["enabled",1,0,0,2,8],["label",3],["visible",1,9,0,2,8]],0,[["setEnabled",1,0,0,2,0,8]]],[33,1,0,0,[[93,0,2,0,4]],[[94,32,1,18,0,4]],0,32],[34,0,0,0,[["getServiceUrl",2,2,0,4]],0,0,0,0,"Microsoft.DesktopCompliance.ServiceUrlProvider",4],[35,0,0,0,[["isEnabledForOffice",0,2,0,4],["recordLinkedInSettingsCompliance",2,0,0,2,0,5]],0,0,0,0,"Microsoft.DesktopCompliance.LinkedIn",4],[36,0,0,0,[["isInOnlineMode",0,2,0,4],["isInDisconnectedMode",0,2,0,4]],0,0,0,0,"Microsoft.DesktopCompliance.NetworkUsage",4],[37,0,0,0,[["enable",0,2,0,4],["disable",0,2,0,4]],0,0,0,[["BeforeCloseNotificationCancelled",0,0,"65540",67,68,68]],"Microsoft.BeforeDocumentCloseNotification.BeforeDocumentCloseNotification",4],[38,4,0,[["roamingSettings",40,2,0,0,4]],[["getAccessToken",2,2,0,5],["getPrimaryIdentityInfo",0,2,10,5],["getIdentities",0,2,11,5],[107,0,0,12,3,0,4],[108,0,0,12,3,0,4]],0,0,0,[["IdentityChanged",0,12,"65545",67,107,108],["TokenReceived",2,10,"3001","this._targetId",68,68]],"Microsoft.Authentication.AuthenticationService",4],[39,0,[[64,3],["value",1,0,0,2,4]]],[40,0,0,0,0,[[94,39,1,2,0,4],["getItemOrNullObject",39,1,2,0,4]]],[41,0,0,0,[["getSharedFilePickerResponse",1,2,0,4]],0,0,0,0,"Microsoft.Office.SharedFilePicker",4],[42,0,0,0,[["getShortcuts",0,2,0,4],["replaceShortcuts",1,0,0,2,0,4],["areShortcutsInUse",1,0,0,2,0,4]],0,0,0,0,"Microsoft.Office.ActionService",4],[43,0,0,0,[["getAccessTokenFirstPartyOAuth",2,2,0,5]],0,0,0,0,"Microsoft.Office.Auth",5],[44,0,0,0,[[109,1,2,0,5],[110,0,2,0,5],[111,0,2,0,5]],0,0,0,[["HostMessageReceived",0,0,"AugLoopEventType.onHostMessageReceivedEvent",67,110,111]],"Microsoft.Office.AugLoopEventService",5],[45,0,0,0,[["undo",0,0,0,3,0,5],[112,0,2,0,5],[113,0,2,0,5],["startCopilotOperation",1,0,0,3,0,5],["endCopilotOperation",1,0,0,3,0,5]],0,0,0,[["CopilotOperationStarted",0,0,"UndoType.onCopilotOperationStartedEvent",67,68,68],["UndoStackChanged",0,0,"UndoType.onUndoStackChangedEvent",67,112,113]],"Microsoft.Office.UndoService",5],[46,0,0,0,[["collectUserFeedback",4,2,0,5],[114,0,2,0,5],[115,0,2,0,5],["canCollectUserFeedback",0,2,0,5],[116,0,2,0,5],[117,0,2,0,5],["getInitializationData",0,2,0,5],["getHostScreenshot",0,2,0,5],["invokeDiagnosticsLogsUpload",1,2,0,5],["canCollectCopilotFeedback",0,2,0,5],["collectFeedbackEligibility",0,2,0,5],["checkFeedbackEligibility",1,2,0,5]],0,0,0,[["UserFeedbackResponse",0,0,"UserFeedbackEventType.onUserFeedbackResponseEvent",67,116,117],["UserFeedbackUIDismissed",0,0,"UserFeedbackEventType.onUserFeedbackUIDismissedEvent",67,114,115]],"Microsoft.Office.UserFeedbackService",5],[47,0,0,0,[["addNotification",2,0,0,3,0,1],["updateNotification",2,0,0,3,0,1],["removeNotification",1,0,0,3,0,1]],0,0,0,0,"Microsoft.Office.NotificationService",5],[48,0,0,0,[["getLabel",0,0,0,3,0,13],["tryUpgradeLabel",2,0,0,3,0,13],["getHighestSensitivityLabel",1,0,0,3,0,13],[118,0,2,0,5],[119,0,2,0,5],["getSensitivityResultDetails",2,0,14,3,0,15],["getSensitivityResultDetailsByStringErrorCode",2,0,16,3,0,17]],0,0,0,[["LabelChanged",0,0,"SensitivityLabelEventType.onLabelChangedEvent",67,118,119]],"Microsoft.Office.SensitivityService",5],[49,0,0,0,[["launchHelpPaneByQuery",1,0,0,3,0,18],["launchHelpPaneByArticleId",1,0,0,3,0,18],["launchHelpPaneByArticleIdString",1,0,0,3,0,18],["launchTaskPaneByAgentId",1,0,19,3],["getWindowClientWidth",0,0,0,3,0,18]],0,0,0,0,"Microsoft.Office.CopilotService",5],[50,0,0,0,[[120,1,0,0,3,0,20],[121,0,2,0,5],[122,0,2,0,5]],0,0,0,[["OnPrivateEvent",0,0,"PrivateApiEventType.onPrivateEvent",67,121,122]],"Microsoft.Office.PrivateApiService",5],[51,0,0,0,[["executePythonCode",1,0,0,3,0,21],["executePythonCodeAsync",1,0,0,3,0,21],[123,0,0,0,3,0,21],[124,0,0,0,3,0,21],["executePythonCodeAsync2",2,0,0,3,0,21],["sendRequestAsync",4,2,0,5],[125,0,2,0,5],[126,0,2,0,5],["getRuntimeInfoAsync",0,2,0,5],[127,0,0,0,3,0,21],[128,0,0,0,3,0,21],["getRuntimeInfoAsync2",1,2,0,5]],0,0,0,[["ExternalCodeExecutionCompleted",2,0,"65551",67,123,124],["ExternalCodeServiceRequestCompleted",2,0,"65553",67,125,126],["ExternalCodeServiceResult",2,0,"65554",67,127,128]],"Microsoft.Office.ExternalCodeService",5],[52,0,0,0,[["show",2,0,0,3,0,4],["hide",1,0,0,3,0,4]],0,0,0,0,"Microsoft.Office.BusinessBarService",5],[53,0,0,0,[["launchSimpleDialog",8,0,0,3]],0,0,0,0,"Microsoft.Office.ShowSimpleDialog",5],[54,0,0,0,[[120,2,2,0,5]],0,0,0,0,"Microsoft.Office.DispatchApiService",5],[55,0,0,0,[["requestPermissions",1,2,0,5]],0,0,0,0,"Microsoft.Office.DevicePermissionService",5],[56,0,0,0,[["notifyHeaderLoaded",0,0,0,3,0,22],[61,0,0,0,3,0,22],["move",0,0,0,3,0,22],["setWidth",1,0,0,2,0,22]],0,0,0,0,"Microsoft.Office.TaskpaneService",4],[57,0,0,0,[["invokeAction",4,2,0,5],[129,0,2,0,5],[130,0,2,0,5]],0,0,0,[["ReplyReceived",2,0,"65555",67,129,130]],"Microsoft.Office.AddinSkillActionService",5],[58,0,0,0,[["launchStoreDialogWithCopilotAgentPageShown",0,0,0,3],["refreshAcquisitionState",0,0,0,1],["getAcquisitionState",0,0,0,1],[131,0,2,0,5],[132,0,2,0,5],[133,0,2,0,5],[134,0,2,0,5]],0,0,0,[["CopilotAgentEvent",0,0,"CopilotAgentEventType.onCopilotAgentEvent",67,131,132],["RefreshedAcquisitionStateEvent",0,0,"UnifiedStoreEventType.onRefreshedAcquisitionStateEvent",67,133,134]],"Microsoft.Office.UnifiedStoreService",5],[59,0,0,0,[[109,2,2,0,5],["setSubscriptions",1,2,0,5],["getSubscriptions",0,2,0,5],["getSubscribers",0,2,0,5],["launch",1,2,0,5],["ready",0,2,0,4],["isReady",1,2,0,5],[135,0,2,0,4],[136,0,2,0,4],[137,0,2,0,4],[138,0,2,0,4],[139,0,2,0,4],[140,0,2,0,4]],0,0,0,[["MessageReceived",0,0,"65541",67,135,136],["SdxReady",0,0,"65543",67,139,140],["SubscriberChanged",0,0,"65542",67,137,138]],"Microsoft.Office.SdxMessaging",4],[60,0,0,0,[["listServers",0,2,0,5],["executeTool",3,0,0,3]],0,0,0,0,"Microsoft.Office.HostMcpService",5]]},targetNamespaceObject:o})}(OfficeCore=OfficeCore||{}),function(e){var o,t,a,n,r,s,i;function c(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}function l(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),OfficeCore.AppRuntimeService.newObject(t).setAppRuntimeState(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}function u(e){var t=new OfficeCore.RequestContext;return t._requestFlagModifier|=64,e&&(t._customData="WacPartition"),t}(t=o=e.VisibilityMode||(e.VisibilityMode={})).hidden="Hidden",t.taskpane="Taskpane",(n=a=e.StartupBehavior||(e.StartupBehavior={})).none="None",n.load="Load",(r=e.addin||(e.addin={})).setStartupBehavior=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:if(r!==a.load&&r!==a.none)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return t=r==a.load?OfficeCore.AppRuntimeState.background:OfficeCore.AppRuntimeState.inactive,n=c(!1),OfficeCore.AppRuntimePersistenceService.newObject(n).setAppRuntimeStartState(t),[4,n.sync()];case 1:return e.sent(),[2]}})})},r.getStartupBehavior=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return t=c(!1),n=OfficeCore.AppRuntimePersistenceService.newObject(t),r=n.getAppRuntimeStartState(),[4,t.sync()];case 1:return e.sent(),i=r.value,[2,i==OfficeCore.AppRuntimeState.inactive?a.none:a.load]}})})},r.setSnapshotEnabled=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),OfficeCore.AppRuntimeService.newObject(t).setSnapshotEnabled(n),[4,t.sync()];case 1:return e.sent(),[2,Promise.resolve()]}})})},r.getSnapshotEnabled=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),r=n.getSnapshotEnabled(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},r.getContentSnapshotAsBase64=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,new OfficeExtension.CoreUtility.Promise(function(t,n){var r=c(!0),e=OfficeCore.AppRuntimeService.newObject(r),i=setTimeout(function(){o.remove(),r.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"timeout","getContentSnapshotAsBase64"))},7e3),o=e.onSnapshotImageReady.add(function(e){return clearTimeout(i),o.remove(),OfficeExtension.CoreUtility.isNullOrUndefined(e)?(r.sync().catch(function(){}),n(OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.generalException,"execution failed","getContentSnapshotAsBase64"))):(r.sync().catch(function(){}),t(e.imageBase64)),null});r.sync().then(function(){e.getContentSnapshotAsBase64();return r.sync().then(function(){return null})}).catch(function(e){n(e)})})]})})},r._getState=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=c(!0),n=OfficeCore.AppRuntimeService.newObject(t),r=n.getAppRuntimeState(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},r.showAsTaskpane=function(){return l(OfficeCore.AppRuntimeState.visible)},r.hide=function(){return l(OfficeCore.AppRuntimeState.background)},r.onVisibilityModeChanged=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(){if(!s){var e=c(!0);s=OfficeCore.AppRuntimeService.newObject(e)}return s}(),n=t.onVisibilityChanged.add(function(e){if(i){var t={visibilityMode:e.visibility===OfficeCore.Visibility.visible?o.taskpane:o.hidden};i(t)}return null}),[4,t.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(r,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return n.remove(),[4,t.context.sync()];case 1:return e.sent(),[2]}})})}]}})})},(i=r.beforeDocumentCloseNotification||(r.beforeDocumentCloseNotification={})).enable=function(){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),OfficeCore.BeforeDocumentCloseNotification.newObject(n).enable(),[4,n.sync()];case 1:return e.sent(),[2]}})})},i.disable=function(){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),OfficeCore.BeforeDocumentCloseNotification.newObject(n).disable(),[4,n.sync()];case 1:return e.sent(),[2]}})})},i.onCloseActionCancelled=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o=this;return __generator(this,function(e){switch(e.label){case 0:return t=!1,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t=!0),n=u(t),r=OfficeCore.BeforeDocumentCloseNotification.newObject(n),i=r.onBeforeCloseNotificationCancelled.add(function(e){return a&&a(),null}),[4,n.sync()];case 1:return e.sent(),[2,function(){return __awaiter(o,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return i.remove(),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(Office=Office||{}),function(s){var c,e,t,n,r;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function l(){return new OfficeCore.RequestContext}(e=c=c||{}).taskpane="Taskpane",e.dialog="Dialog",n=t=s.ExtensionLifeCycle||(s.ExtensionLifeCycle={}),(r=n.taskpane||(n.taskpane={})).close=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).close(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.move=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).move(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.notifyHeaderLoaded=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).notifyHeaderLoaded(),[4,t.sync()];case 1:return e.sent(),[2]}})})},r.setWidth=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.TaskpaneService.newObject(t).setWidth(n),[4,t.sync()];case 1:return e.sent(),[2]}})})},n.launchTaskpane=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return s.context.platform&&"OfficeOnline"===s.context.platform?(t={SharedRuntimeId:a.sharedRuntimeId,SourceLocationOverrideResourceId:a.sourceLocationOverride,TaskPaneTitle:a.taskpaneTitle,TaskPaneWidth:a.taskpaneWidth},n={OptionalProperties:t,DevProperties:a.settings},s.context.extensionLifeCycle.launchExtensionComponent(null,"Taskpane",null,null,n),[3,3]):[3,1];case 1:return r=l(),i=OfficeCore.ExtensionLifeCycle.newObject(r),o=a.settings,a.settings=o&&OSF.OUtil.serializeSettings(o),i.launchExtensionComponent("",c.taskpane,a),[4,r.sync()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},n.launchDialog=function(a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:return s.context.platform&&"OfficeOnline"===s.context.platform?(t={SharedRuntimeId:a.sharedRuntimeId,SourceLocationOverrideResourceId:a.sourceLocationOverride},n={OptionalProperties:t,DevProperties:a.settings},s.context.extensionLifeCycle.launchExtensionComponent(null,"SDXDialog",null,null,n),[3,3]):[3,1];case 1:return r=l(),i=OfficeCore.ExtensionLifeCycle.newObject(r),o=a.settings,a.settings=o&&OSF.OUtil.serializeSettings(o),i.launchExtensionComponent("",c.dialog,a),[4,r.sync()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},n.launchAgent=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=l(),OfficeCore.ExtensionLifeCycle.newObject(t).launchAgent(n,r),[4,t.sync()];case 1:return e.sent(),[2]}})})},s.extensionLifeCycle=t}(Office=Office||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(e._customData="WacPartition"),e}(t=e.ribbon||(e.ribbon={})).requestUpdate=function(e){var t=i(),n=t.ribbon;function r(e){void 0!==e.controls&&void 0!==e.controls.length&&e.controls.length&&e.controls.filter(function(e){return!!e.id}).forEach(function(e){var t=n.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled),void 0!==e.visible&&null!==e.visible&&(t.visible=e.visible)})}return e.tabs.filter(function(e){return!!e.id}).forEach(function(e){var t=n.getTab(e.id);void 0!==e.visible&&null!==e.visible&&t.setVisibility(e.visible),e.groups&&e.groups.length?e.groups.filter(function(e){return!!e.id}).forEach(function(e){void 0!==e.visible&&null!==e.visible&&(n.getButton(e.id).visible=e.visible),r(e)}):r(e)}),t.sync()},t.requestCreateControls=function(e){var n,t=i();return t.ribbon.executeRequestCreate(JSON.stringify(e)),n=250,new Promise(function(e,t){return setTimeout(function(){return e()},n)}).then(function(){return t.sync()})},t.saveState=function(){var e=i();return e.ribbon.executeSaveState(),e.sync()}}(Office=Office||{}),function(e){(e.contextMenu||(e.contextMenu={})).requestUpdate=function(e){if(OfficeExtension&&OfficeExtension.Utility&&!OfficeExtension.Utility.isSetSupported("ContextMenuApi","1.1"))throw OfficeExtension.Utility.createRuntimeError(OfficeCore.ErrorCodes.apiNotAvailable,null,null);var t,n=(t=new OfficeCore.RequestContext,"web"==OSF._OfficeAppFactory.getHostInfo().hostPlatform&&(t._customData="WacPartition"),t),r=n.ribbon;return e.controls.filter(function(e){return!!e.id}).forEach(function(e){var t=r.getButton(e.id);void 0!==e.enabled&&null!==e.enabled&&(t.enabled=e.enabled)}),n.sync()}}(Office=Office||{}),function(e){var t;OfficeExtension.BatchApiHelper.createPropertyObject,OfficeExtension.BatchApiHelper.createMethodObject,OfficeExtension.BatchApiHelper.createIndexerObject,OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject,OfficeExtension.BatchApiHelper.createChildItemObject,OfficeExtension.BatchApiHelper.invokeMethod,OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,OfficeExtension.BatchApiHelper.invokeSetProperty,OfficeExtension.Utility.isNullOrUndefined,OfficeExtension.Utility.isUndefined,OfficeExtension.Utility.throwIfNotLoaded,OfficeExtension.Utility.throwIfApiNotSupported,OfficeExtension.Utility.load,OfficeExtension.Utility.retrieve,OfficeExtension.Utility.toJson,OfficeExtension.Utility.fixObjectPathIfNecessary,OfficeExtension.Utility._handleNavigationPropertyResults,OfficeExtension.Utility.adjustToDateTime,OfficeExtension.Utility.processRetrieveResult,OfficeExtension.Utility.setMockData,OfficeExtension.CommonUtility.calculateApiFlags;(t||(t={})).generalException="GeneralException";new OfficeExtension.LibraryBuilder({metadata:{version:"1.0.0",name:"OfficeCore",defaultApiSetName:"OfficeSharedApi",hostName:"Office",apiSets:[],strings:["AddinInternalService"],enumTypes:[],clientObjectTypes:[[1,0,0,0,[["notifyActionHandlerReady",0,2,0,4]],0,0,0,0,"Microsoft.InternalService.AddinInternalService",4]]},targetNamespaceObject:e})}(OfficeCore=OfficeCore||{}),function(e){var r,t,d,h,g,y;function m(e){if(e){var t=e.toUpperCase(),n=r.mappings[t];if(!d(n)&&"function"==typeof n)return n}throw OfficeExtension.Utility.createRuntimeError("invalidOperation","sourceData","ActionProxy._getFunction")}function _(e,t,n,r){var i=OSF._OfficeAppFactory.getHostInfo();if(i&&"web"===i.hostPlatform.toLowerCase())OSF._OfficeAppFactory.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[OSF._OfficeAppFactory.getId(),OSF.AgaveHostAction.ReportAddinSkillResult,{actionCorrelationId:e,resultCode:t,replyMessage:r}]);else{if(d(OSF.ClientHostController)||d(OSF.ClientHostController.execute))throw new OfficeExtension.Error({code:"GenericException",message:"API currently unsupported."});var o=d(OSF.MethodDispId)?OSF.DDA.MethodDispId.dispidAddinSkillActionReply:OSF.MethodDispId.dispidAddinSkillActionReply;OSF.ClientHostController.execute(o,[e,r,t],null)}var a,s,c=[oteljs.makeStringDataField("CorrelationId",e),oteljs.makeStringDataField("Message",n),oteljs.makeInt64DataField("ResultCode",t)];a="Office.Extensibility.OfficeJs.AddinSkill.ExecuteAction",s=c,Microsoft.Office.WebExtension.sendTelemetryEvent({eventName:a,dataFields:s,eventFlags:{dataCategories:oteljs.DataCategories.ProductServiceUsage,diagnosticLevel:oteljs.DiagnosticLevel.Optional,samplingPolicy:oteljs.SamplingPolicy.CriticalBusinessImpact}})}function n(e){try{OfficeExtension.Utility.log("ActionProxy._handleMessage"),OfficeExtension.Utility.checkArgumentNull(e,"args");function t(e){if(f[e].messageCategory!==h)return"continue";if("string"==typeof f[e].message&&(f[e].message=JSON.parse(f[e].message)),f[e].messageType===g){var t=null,n=m(i=f[e].message[0]);if(2<=f[e].message.length){var r=f[e].message[1];r&&("string"==typeof(p=r)&&"{"===p[0]?"autorunEventType"in(t=JSON.parse(r))&&"autorunEventHost"in t&&"autorunEventPlatform"in t&&("win32"!==t.autorunEventPlatform&&"mac"!==t.autorunEventPlatform||("word"===t.autorunEventHost?t.completed=function(r){return __awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(e){switch(e.label){case 0:return r.autorunEventType=this.autorunEventType,[4,Word.run(function(t){return __awaiter(n,void 0,void 0,function(){return __generator(this,function(e){return t.document.autorunEventCompleted(r),[2]})})})];case 1:return e.sent(),[2]}})})}:"excel"===t.autorunEventHost?t.completed=function(r){return __awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(e){switch(e.label){case 0:return r.autorunEventType=this.autorunEventType,[4,Excel.run(function(t){return __awaiter(n,void 0,void 0,function(){return __generator(this,function(e){return t.workbook.autorunEventCompleted(r),[2]})})})];case 1:return e.sent(),[2]}})})}:"powerpoint"===t.autorunEventHost&&(t.completed=function(r){return __awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(e){switch(e.label){case 0:return r.autorunEventType=this.autorunEventType,[4,PowerPoint.run(function(t){return __awaiter(n,void 0,void 0,function(){return __generator(this,function(e){return t.presentation.autorunEventCompleted(r),[2]})})})];case 1:return e.sent(),[2]}})})}))):t=r)}n.apply(null,[t])}else if(f[e].messageType===y){t=null;var i=f[e].message[0],o=f[e].message[1],a=JSON.parse(o);t=a.message;var s=a.correlationId,c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess,l=null,u="";n=null;try{n=m(i)}catch(e){c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoActionFunctionMapping,u="ActionProxy._handleMessage failed to get function",b(e)}if(c==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&n)try{l=n.apply(null,[t])}catch(e){c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,u="ActionProxy._handleMessage failed to execute function",b(e)}if(c==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess&&d(l)?(c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,u="No result generated"):c!=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess||"object"==typeof l&&"function"==typeof l.then||(c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,u="Invalid result generated"),c==OfficeFirstParty.AddinInvokeResult.AddinInvokeResultSuccess)try{l.then(function(e){u="Successfully executed function",d(e)?(e="",c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultNoResultGenerated,u="No result generated"):"string"!=typeof e&&(e="",c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,u="Invalid result generated"),_(s,c,u,e)},function(e){var t="";c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvocationFailed,u="Failed to execute function","string"==typeof e?t=e:b(e),_(s,c,u,t)})}catch(e){c=OfficeFirstParty.AddinInvokeResult.AddinInvokeResultInvalidResultGenerated,u="Invalid result generated",b(e),_(s,c,u,"")}else try{_(s,c,u,"")}catch(e){b(e)}}else OfficeExtension.Utility.log("ActionProxy._handleMessage unknown message type "+f[e].messageType);var p}for(var f=e.entries,n=0;n<f.length;n++)t(n)}catch(e){throw b(e),e}return OfficeExtension.Utility._createPromiseFromResult(null)}function b(e){var t=function(e){var t="Unknown Error";if(e)try{e.toString&&(t=e.toString()),t=t+" "+JSON.stringify(e)}catch(e){t="Unexpected Error"}return t}(e);OfficeExtension.Utility.log(t)}function i(){try{Microsoft.Office.WebExtension.onReadyInternal().then(function(){return function(){if(void 0!==OSF&&OSF.DDA&&OSF.DDA.RichApi&&OSF.DDA.RichApi.richApiMessageManager)return(new OfficeExtension.ClientRequestContext).eventRegistration.register(5,"",n)}()}).then(function(){var e,t,n=OSF._OfficeAppFactory.getHostInfo();return!0===n.isDialog||"web"===n.hostPlatform.toLowerCase()&&"word"!==n.hostType&&"excel"!==n.hostType&&"powerpoint"!==n.hostType?void 0:(e=new OfficeExtension.ClientRequestContext,t=OfficeCore.AddinInternalService.newObject(e),e._customData="WacPartition",t.notifyActionHandlerReady(),e.sync())})}catch(e){}}d=OfficeExtension.Utility.isNullOrUndefined,h=2,g=1e3,y=1001,OfficeExtension.Utility.log("ActionProxy.initOnce"),void 0!==e.actions&&(t=e.actions._association,r=t),"undefined"!=typeof document&&(document.readyState&&"loading"!==document.readyState?(OfficeExtension.Utility.log("ActionProxy.initOnce: document.readyState is not loading state"),i()):document.addEventListener&&document.addEventListener("DOMContentLoaded",function(){OfficeExtension.Utility.log("ActionProxy.initOnce: DOMContentLoaded event triggered"),i()})),OfficeExtension.HostBridge.onInited(function(e){e.addHostMessageHandler(function(e){3===e.type&&n(e.message)})})}(Office=Office||{}),function(e){var t;function c(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.AugLoop||(e.AugLoop={})).SendMessage=function(r,i){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=void 0!==i?i:r,n=c(void 0!==i?r:void 0),OfficeCore.AugLoopEventService.newObject(n).sendMessage(t),[4,n.sync()];case 1:return e.sent(),[2]}})})},t.onHostMessageReceived=function(a,s){return __awaiter(this,void 0,void 0,function(){var n,t,r,i,o=this;return __generator(this,function(e){switch(e.label){case 0:return n=void 0!==s?s:a,t=c(void 0!==s?a:void 0),r=OfficeCore.AugLoopEventService.newObject(t),i=function(e){if(n){var t=e.data;n(t)}return null},r.onHostMessageReceived.add(i),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(o,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onHostMessageReceived.remove(i),[4,t.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,u,p;function f(e){return"object"==typeof e&&"string"==typeof e.controlId?e.controlId:void 0}function d(e){var t=new OfficeCore.RequestContext;return e&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e),t._customData="SkipUndoRecording",t}t=e.Undo||(e.Undo={}),p={},t.undo=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=d(f(i)),n=OfficeCore.UndoService.newObject(t),r=n.undo(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.onUndoStackChanged=function(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=a||o,n=d(f(a?o:void 0)),(r=OfficeCore.UndoService.newObject(n)).onUndoStackChanged.add(t),[4,n.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUndoStackChanged.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.startCopilotOperation=function(l){return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s,c;return __generator(this,function(e){switch(e.label){case 0:if(void 0===(t=f(l))){if(void 0!==u)throw new Error("startCopilotOperation is already inprogress")}else if(p[t])throw new Error("startCopilotOperation is already in progress");n=function(){},r=new Promise(function(e){void 0===t?u=e:p[t]=e}),e.label=1;case 1:return e.trys.push([1,4,,5]),i=d(t),o=OfficeCore.UndoService.newObject(i),a=function(){return function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return void 0===t?void 0!==u&&(u(),u=void 0):p[t]&&(p[t](),delete p[t]),[2]})})}(t)},n=function(){try{o.onCopilotOperationStarted.remove(a),i.sync()}catch(e){}},o.onCopilotOperationStarted.add(a),[4,i.sync()];case 2:return e.sent(),s=o.startCopilotOperation(""),[4,i.sync()];case 3:return(e.sent(),s.value)?(void 0!==t&&r.then(function(){n()}),[2,r]):(void 0===t?u=void 0:(n(),delete p[t]),[3,5]);case 4:throw c=e.sent(),void 0===t?u=void 0:(n(),delete p[t]),c;case 5:return[2]}})})},t.endCopilotOperation=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=d(f(n)),OfficeCore.UndoService.newObject(t).endCopilotOperation(""),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;(t=e.dialogPage||(e.dialogPage={})).close=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).close(),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.readyToShow=function(){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).readyToShow(),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onShow=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,(n=OfficeCore.DialogPage.newObject(t)).onOnShowEvent.add(i),r=function(){return n.onOnShowEvent.remove(i),null},[4,t.sync()];case 1:return e.sent(),[2,r]}})})},t.sendMessageToHost=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=new OfficeCore.RequestContext,OfficeCore.DialogPage.newObject(t).sendMessageToHost(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(Office=Office||{}),function(e){var t;function a(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.UserFeedback||(e.UserFeedback={})).CollectUserFeedback=function(n,r,i,o){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=a(),OfficeCore.UserFeedbackService.newObject(t).collectUserFeedback(n,r,i,o),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.onUserFeedbackUIDismissed=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=e.isFeedbackSent;o(t)}return null},n=a(),(r=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackUIDismissed.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUserFeedbackUIDismissed.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.CanCollectUserFeedback=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.canCollectUserFeedback(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.onUserFeedbackResponse=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=e.responseData;o(t)}return null},n=a(),(r=OfficeCore.UserFeedbackService.newObject(n)).onUserFeedbackResponse.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onUserFeedbackResponse.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.InvokeDiagnosticsLogsUpload=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=a(),OfficeCore.UserFeedbackService.newObject(t).invokeDiagnosticsLogsUpload(n),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.GetInitializationData=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.getInitializationData(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.GetHostScreenshot=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.getHostScreenshot(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CanCollectCopilotFeedback=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.canCollectCopilotFeedback(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CollectFeedbackEligibility=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.collectFeedbackEligibility(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.CheckFeedbackEligibility=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=a(),n=OfficeCore.UserFeedbackService.newObject(t),r=n.checkFeedbackEligibility(i),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,n;function s(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function c(e){return JSON.stringify(e instanceof n?{type:"callout",params:e.params}:{type:"custom",props:e})}t=e.Notification||(e.Notification={}),n=function(){},t.callout=function(e){var t=new n;return t.params=e,t},t.addNotification=function(o,a){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return n=s(),r=OfficeCore.NotificationService.newObject(n),i=r.addNotification(c(o),(t=a,JSON.stringify(t))),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})},t.updateNotification=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.NotificationService.newObject(t).updateNotification(n,c(r)),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.removeNotification=function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=s(),OfficeCore.NotificationService.newObject(t).removeNotification(n),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function l(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.Sensitivity||(e.Sensitivity={})).getLabel=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=l(i),n=OfficeCore.SensitivityService.newObject(t),r=n.getLabel(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})},t.tryUpgradeLabel=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o;return __generator(this,function(e){switch(e.label){case 0:if(t=3===a.length,2!==a.length&&3!==a.length)throw new Error("tryUpgradeLabel: Invalid number of parameters ("+a.length+")");return n=t?a[0]:void 0,r=t?a[1]:a[0],i=t?a[2]:a[1],o=l(n),OfficeCore.SensitivityService.newObject(o).tryUpgradeLabel(r,i),[4,o.sync()];case 1:return e.sent(),[2]}})})},t.getHighestSensitivityLabel=function(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator(this,function(e){switch(e.label){case 0:if(t=2===s.length,1!==s.length&&2!==s.length)throw new Error("getHighestSensitivityLabel: Invalid number of parameters ("+s.length+")");return n=t?s[0]:void 0,r=t?s[1]:s[0],i=l(n),o=OfficeCore.SensitivityService.newObject(i),a=o.getHighestSensitivityLabel(r),[4,i.sync()];case 1:return e.sent(),[2,a.value]}})})},t.getSensitivityResultDetails=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(t=3===c.length,2!==c.length&&3!==c.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,r=t?c[1]:c[0],i=t?c[2]:c[1],o=l(n),a=OfficeCore.SensitivityService.newObject(o),s=a.getSensitivityResultDetails(r,i),[4,o.sync()];case 1:return e.sent(),[2,s.value]}})})},t.getSensitivityResultDetailsByStringErrorCode=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return __generator(this,function(e){switch(e.label){case 0:if(t=3===c.length,2!==c.length&&3!==c.length)throw new Error("getSensitivityResultDetails: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,r=t?c[1]:c[0],i=t?c[2]:c[1],o=l(n),a=OfficeCore.SensitivityService.newObject(o),s=a.getSensitivityResultDetailsByStringErrorCode(r,i),[4,o.sync()];case 1:return e.sent(),[2,s.value]}})})},t.onLabelChangedEvent=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,o,r,i,a,s=this;return __generator(this,function(e){switch(e.label){case 0:if(t=2===c.length,1!==c.length&&2!==c.length)throw new Error("onLabelChangedEvent: Invalid number of parameters ("+c.length+")");return n=t?c[0]:void 0,o=t?c[1]:c[0],r=function(e){if(o){var t=e.previousLabel,n=e.newLabel,r=e.context,i=e.error;o(t,n,r,i)}return null},i=l(n),(a=OfficeCore.SensitivityService.newObject(i)).onLabelChanged.add(r),[4,a.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(s,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return a.onLabelChanged.remove(r),[4,i.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.Copilot||(e.Copilot={})).launchHelpPaneByQuery=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByQuery(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleId=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleId(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchHelpPaneByArticleIdString=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchHelpPaneByArticleIdString(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.launchTaskPaneByAgentId=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),n.launchTaskPaneByAgentId(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.getWindowClientWidth=function(){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.CopilotService.newObject(t),r=n.getWindowClientWidth(),[4,t.sync()];case 1:return e.sent(),[2,r.value]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function l(e){var t=new OfficeCore.RequestContext;return e&&e.controlId&&(t.requestHeaders[OfficeExtension.Constants.officeControlId]=e.controlId),t._customData="WacPartition",t}(t=e.PrivateApi||(e.PrivateApi={})).execute=function(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a;return __generator(this,function(e){switch(e.label){case 0:return t=2<=s.length,n=t?s[0]:void 0,r=t?s[1]:s[0],i=l(n),o=OfficeCore.PrivateApiService.newObject(i),a=o.execute(r),[4,i.sync()];case 1:return e.sent(),[2,a.value]}})})},t.onPrivateEvent=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return __awaiter(this,void 0,void 0,function(){var t,n,r,i,o,a,s=this;return __generator(this,function(e){switch(e.label){case 0:return t=2<=c.length,n=t?c[0]:void 0,r=t?c[1]:c[0],i=function(e){if(r){var t=e.messageData;r(t)}return null},o=l(n),(a=OfficeCore.PrivateApiService.newObject(o)).onOnPrivateEvent.add(i),[4,a.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(s,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return a.onOnPrivateEvent.remove(i),[4,o.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t,o,n,r;function a(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}t=e.UnifiedStore||(e.UnifiedStore={}),(o=t.DefaultPageType||(t.DefaultPageType={})).copilotAgentsPage="CopilotAgentsPage",(n=t.CopilotAgentActionType||(t.CopilotAgentActionType={})).activated="Activated",n.removed="Removed",(r=t.RefreshAcquisitionStateTriggerType||(t.RefreshAcquisitionStateTriggerType={})).host="Host",r.api="Api",t.launchStore=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){switch(e.label){case 0:if(i!==o.copilotAgentsPage)throw OfficeExtension.Utility.createRuntimeError(OfficeExtension.ErrorCodes.invalidArgument,null,null);return(t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),i!=o.copilotAgentsPage)?[3,2]:(r=n.launchStoreDialogWithCopilotAgentPageShown(),[4,t.sync()]);case 1:return e.sent(),[2,r];case 2:return[2]}})})},t.refreshAcquisitionState=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){return t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),r=n.refreshAcquisitionState(),t.sync().then(function(){var e=JSON.parse(r.value);i(e)}),[2,null]})})},t.getAcquisitionState=function(i){return __awaiter(this,void 0,void 0,function(){var t,n,r;return __generator(this,function(e){return t=a(),n=OfficeCore.UnifiedStoreService.newObject(t),r=n.getAcquisitionState(),t.sync().then(function(){var e=JSON.parse(r.value);i(e)}),[2,null]})})},t.onCopilotAgentEvent=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=JSON.parse(e.messageData),n=t.actionType,r=t.titleId;o({actionType:n,titleId:r})}return null},n=a(),(r=OfficeCore.UnifiedStoreService.newObject(n)).onCopilotAgentEvent.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onCopilotAgentEvent.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})},t.onRefreshedAcquisitionState=function(o){return __awaiter(this,void 0,void 0,function(){var t,n,r,i=this;return __generator(this,function(e){switch(e.label){case 0:return t=function(e){if(o){var t=JSON.parse(e.messageData);o(t)}return null},n=a(),(r=OfficeCore.UnifiedStoreService.newObject(n)).onRefreshedAcquisitionStateEvent.add(t),[4,r.context.sync()];case 1:return e.sent(),[2,function(){return __awaiter(i,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return r.onRefreshedAcquisitionStateEvent.remove(t),[4,n.sync()];case 1:return e.sent(),[2]}})})}]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;function i(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}(t=e.BusinessBar||(e.BusinessBar={})).hide=function(r){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(e){switch(e.label){case 0:return t=i(),n=OfficeCore.BusinessBarService.newObject(t),n.hide(r),[4,t.sync()];case 1:return e.sent(),[2]}})})},t.show=function(n,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return t=i(),OfficeCore.BusinessBarService.newObject(t).show(n,r),[4,t.sync()];case 1:return e.sent(),[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.SimpleDialog||(e.SimpleDialog={})).launchSimpleDialog=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.ShowSimpleDialog.newObject(n),i=r.launchSimpleDialog(o.title,o.description,o.telemetryid,o.category,o.hasButton,o.buttonLabel,o.hasCheckbox,o.checkboxLabel),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.DispatchApi||(e.DispatchApi={})).execute=function(o,a){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.DispatchApiService.newObject(n),i=r.execute(o,a),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){var t;(t=e.DevicePermissionType||(e.DevicePermissionType={})).camera="camera",t.microphone="microphone",t.geolocation="geolocation",(e.devicePermission||(e.devicePermission={})).requestPermissions=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.DevicePermissionService.newObject(n),i=r.requestPermissions(o),[4,n.sync()];case 1:return e.sent(),[2,i.value]}var t})})}}(Office=Office||{}),function(e){var c,t,n,l,r;function u(){var e=new OfficeCore.RequestContext;return e._customData="WacPartition",e}function p(e){!function(){if(null==r){r=function(e){var t=e.actionCorrelationId,n=(e.replyMessage,e.resultCode,l[t]);return null!=n&&(n.replyMessage=e.replyMessage,n.resultCode=e.resultCode,n.replyPromiseResolver()),null};var e=u();OfficeCore.AddinSkillActionService.newObject(e).onReplyReceived.add(r),e.sync().then(null,function(e){console.log("There was an error registering the reply event listener!")})}}();var t={correlationId:e,replyPromise:null,replyPromiseResolver:null,replyMessage:null,resultCode:0};return t.replyPromise=new Promise(function(e){t.replyPromiseResolver=e}),l[e]=t}(t=c=e.AddinInvokeResult||(e.AddinInvokeResult={}))[t.AddinInvokeResultNotInstalled=-1]="AddinInvokeResultNotInstalled",t[t.AddinInvokeResultSkillNotFound=-2]="AddinInvokeResultSkillNotFound",t[t.AddinInvokeResultLaunchFailed=-3]="AddinInvokeResultLaunchFailed",t[t.AddinInvokeResultSuccess=0]="AddinInvokeResultSuccess",t[t.AddinInvokeResultInvocationFailed=1]="AddinInvokeResultInvocationFailed",t[t.AddinInvokeResultNoResultGenerated=2]="AddinInvokeResultNoResultGenerated",t[t.AddinInvokeResultInvalidResultGenerated=3]="AddinInvokeResultInvalidResultGenerated",t[t.AddinInvokeResultNoActionFunctionMapping=4]="AddinInvokeResultNoActionFunctionMapping",n=e.AddinSkillAction||(e.AddinSkillAction={}),l={},r=null,n.InvokeAction=function(o,a,s){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:t=u(),n=OfficeCore.AddinSkillActionService.newObject(t),r=OSF.OUtil.Guid.generateNewGuid(),i=p(r),e.label=1;case 1:return e.trys.push([1,,4,5]),n.invokeAction(o,a,s,r),[4,t.sync()];case 2:return e.sent(),[4,i.replyPromise];case 3:return e.sent(),[3,5];case 4:return delete l[r],[7];case 5:if(i.resultCode==c.AddinInvokeResultSuccess){if("string"==typeof i.replyMessage)return[2,i.replyMessage];i.resultCode=c.AddinInvokeResultInvalidResultGenerated}switch(i.resultCode){case c.AddinInvokeResultNotInstalled:throw new OfficeExtension.Error({code:"AddinNotInstalled",message:"Add-in not installed."});case c.AddinInvokeResultSkillNotFound:throw new OfficeExtension.Error({code:"SkillNotFound",message:"Skill not found in the add-in manifest."});case c.AddinInvokeResultLaunchFailed:throw new OfficeExtension.Error({code:"LaunchFailed",message:"Add-in launch failed."});case c.AddinInvokeResultInvocationFailed:throw new OfficeExtension.Error({code:"InvocationFailed",message:"Skill invocation failed."});case c.AddinInvokeResultNoResultGenerated:throw new OfficeExtension.Error({code:"NoResultGenerated",message:"No result generated."});case c.AddinInvokeResultInvalidResultGenerated:throw new OfficeExtension.Error({code:"InvalidResultGenerated",message:"Invalid result generated."});case c.AddinInvokeResultNoActionFunctionMapping:throw new OfficeExtension.Error({code:"NoActionFunctionMapping",message:"No action function mapping."});default:throw new OfficeExtension.Error({code:"UnknownError",message:"Unknown error (code = "+i.resultCode+")."})}return[2]}})})}}(OfficeFirstParty=OfficeFirstParty||{}),function(e){(e.ThemeService||(e.ThemeService={})).getofficethemedataforvisualsurface=function(o){return __awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(e){switch(e.label){case 0:return(t=new OfficeCore.RequestContext)._customData="WacPartition",n=t,r=OfficeCore.ThemeService.newObject(n),i=r.getOfficeThemeDataForVisualSurface(o),[4,n.sync()];case 1:return e.sent(),[2,JSON.parse(i.value)]}var t})})}}(OfficeFirstParty=OfficeFirstParty||{});var Word;__extends=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(a){function o(e,t){if(OfficeExtension.Utility.isNullOrUndefined(t))return null;if("object"!=typeof t&&OfficeExtension.Utility.throwError(OfficeExtension.ResourceStrings.invalidArgument,"searchOptions"),t instanceof a.SearchOptions)return t;var n=a.SearchOptions.newObject(e);for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function s(){return"undefined"!=typeof window&&window.Office&&window.Office.context&&window.Office.context.requirements&&window.Office.context.requirements.isSetSupported("WordApiSearchFlags","1.1")}function c(e){if(OfficeExtension.Utility.isNullOrUndefined(e))return 0;"object"!=typeof e&&OfficeExtension.Utility.throwError(OfficeExtension.ResourceStrings.invalidArgument,"searchOptions");var t=0;return e instanceof a.SearchOptions&&(e=e.toJSON()),e.ignorePunct&&(t|=32),e.ignoreSpace&&(t|=64),e.matchCase&&(t|=1),e.matchPrefix&&(t|=8),e.matchSuffix&&(t|=16),e.matchWildcards&&(t|=4),e.matchWholeWord&&(t|=2),t}var n,l="Word",u="WordApi",e=OfficeExtension.BatchApiHelper.createPropertyObject,p=OfficeExtension.BatchApiHelper.createMethodObject,t=OfficeExtension.BatchApiHelper.createIndexerObject,r=(OfficeExtension.BatchApiHelper.createRootServiceObject,OfficeExtension.BatchApiHelper.createTopLevelServiceObject),f=OfficeExtension.BatchApiHelper.createChildItemObject,i=OfficeExtension.BatchApiHelper.invokeMethod,d=OfficeExtension.BatchApiHelper.invokeEnsureUnchanged,h=OfficeExtension.BatchApiHelper.invokeSetProperty,g=OfficeExtension.Utility.isNullOrUndefined,y=OfficeExtension.Utility.isUndefined,m=OfficeExtension.Utility.throwIfNotLoaded,_=OfficeExtension.Utility.throwIfApiNotSupported,b=OfficeExtension.Utility.load,v=OfficeExtension.Utility.retrieve,O=OfficeExtension.Utility.toJson,P=OfficeExtension.Utility.fixObjectPathIfNecessary,C=OfficeExtension.Utility._handleNavigationPropertyResults,R=OfficeExtension.Utility.adjustToDateTime,S=OfficeExtension.Utility.processRetrieveResult,I=OfficeExtension.Utility.setMockData,A=(OfficeExtension.CommonUtility.calculateApiFlags,n=OfficeExtension.ClientObject,__extends(T,n),Object.defineProperty(T.prototype,"_className",{get:function(){return"EditorCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"EditorCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),T.prototype.addById=function(e){return p(a.Editor,this,"AddById",0,[e],!1,!1,null,0)},T.prototype.addByType=function(e){return p(a.Editor,this,"AddByType",0,[e],!1,!1,null,0)},T.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},T.prototype.getItemAt=function(e){return p(a.Editor,this,"GetItemAt",1,[e],!1,!1,null,4)},T.prototype._KeepReference=function(){i(this,"_KeepReference",0,[],0,0)},T.prototype._handleResult=function(e){if(n.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},T.prototype.load=function(e){return b(this,e)},T.prototype._handleIdResult=function(e){n.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},T.prototype._handleRetrieveResult=function(e,t){n.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},T.prototype.track=function(){return this.context.trackedObjects.add(this),this},T.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},T.prototype.toJSON=function(){return O(this,{},{})},T);function T(){return null!==n&&n.apply(this,arguments)||this}a.EditorCollection=A;var N,D="Editor",x=(N=OfficeExtension.ClientObject,__extends(E,N),Object.defineProperty(E.prototype,"_className",{get:function(){return"Editor"},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"_navigationPropertyNames",{get:function(){return["range","nextRange"]},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"nextRange",{get:function(){return this._Ne||(this._Ne=e(a.Range,this,"NextRange",!1,4)),this._Ne},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"id",{get:function(){return m("id",this._I,D,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"name",{get:function(){return m("name",this._N,D,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,D,this._isNull),this.__R},enumerable:!0,configurable:!0}),E.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range","nextRange"],[])},E.prototype.update=function(e){this._recursivelyUpdate(e)},E.prototype.delete=function(){i(this,"Delete",0,[],0,0)},E.prototype.removeAllPermissions=function(){i(this,"RemoveAllPermissions",0,[],0,0)},E.prototype.selectAllShapes=function(){i(this,"SelectAllShapes",0,[],0,0)},E.prototype._KeepReference=function(){i(this,"_KeepReference",0,[],0,0)},E.prototype._handleResult=function(e){if(N.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Id)||(this._I=t.Id),y(t.Name)||(this._N=t.Name),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["nextRange","NextRange","range","Range"])}},E.prototype.load=function(e){return b(this,e)},E.prototype.retrieve=function(e){return v(this,e)},E.prototype._handleIdResult=function(e){N.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},E.prototype._handleRetrieveResult=function(e,t){N.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},E.prototype.track=function(){return this.context.trackedObjects.add(this),this},E.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},E.prototype.toJSON=function(){return O(this,{id:this._I,name:this._N},{nextRange:this._Ne,range:this._R})},E.prototype.setMockData=function(e){I(this,e)},E.prototype.ensureUnchanged=function(e){d(this,e)},E);function E(){return null!==N&&N.apply(this,arguments)||this}a.Editor=x;var k,j="ConflictCollection",w=(k=OfficeExtension.ClientObject,__extends(F,k),Object.defineProperty(F.prototype,"_className",{get:function(){return"ConflictCollection"},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["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"items",{get:function(){return m("items",this.m__items,j,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,j,this._isNull),this.__R},enumerable:!0,configurable:!0}),F.prototype.acceptAll=function(){i(this,"AcceptAll",0,[],0,0)},F.prototype.rejectAll=function(){i(this,"RejectAll",0,[],0,0)},F.prototype._KeepReference=function(){i(this,"_KeepReference",0,[],0,0)},F.prototype._handleResult=function(e){if(k.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Conflict,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},F.prototype.load=function(e){return b(this,e)},F.prototype.retrieve=function(e){return v(this,e)},F.prototype._handleIdResult=function(e){k.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},F.prototype._handleRetrieveResult=function(e,t){var n=this;k.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Conflict,!1,n,e,t)})},F.prototype.track=function(){return this.context.trackedObjects.add(this),this},F.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},F.prototype.toJSON=function(){return O(this,{},{},this.m__items)},F.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Conflict,!1,n,e,t)},function(e){return n.m__items=e})},F);function F(){return null!==k&&k.apply(this,arguments)||this}a.ConflictCollection=w;var L,M=(L=OfficeExtension.ClientObject,__extends(B,L),Object.defineProperty(B.prototype,"_className",{get:function(){return"Conflict"},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"type",{get:function(){return m("type",this._T,"Conflict",this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"Conflict",this._isNull),this.__R},enumerable:!0,configurable:!0}),B.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range"],[])},B.prototype.update=function(e){this._recursivelyUpdate(e)},B.prototype.accept=function(){i(this,"Accept",0,[],0,0)},B.prototype.reject=function(){i(this,"Reject",0,[],0,0)},B.prototype._KeepReference=function(){i(this,"_KeepReference",0,[],0,0)},B.prototype._handleResult=function(e){if(L.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Type)||(this._T=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},B.prototype.load=function(e){return b(this,e)},B.prototype.retrieve=function(e){return v(this,e)},B.prototype._handleIdResult=function(e){L.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},B.prototype._handleRetrieveResult=function(e,t){L.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},B.prototype.track=function(){return this.context.trackedObjects.add(this),this},B.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},B.prototype.toJSON=function(){return O(this,{type:this._T},{range:this._R})},B.prototype.setMockData=function(e){I(this,e)},B.prototype.ensureUnchanged=function(e){d(this,e)},B);function B(){return null!==L&&L.apply(this,arguments)||this}a.Conflict=M;var H,U,W="AugloopAnnotation",G=(H=OfficeExtension.ClientObject,__extends(V,H),Object.defineProperty(V.prototype,"_className",{get:function(){return"AugloopAnnotation"},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"_scalarPropertyNames",{get:function(){return["content","id","_ReferenceId","_State"]},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Content","Id","_ReferenceId","_State"]},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"content",{get:function(){return m("content",this._C,W,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"id",{get:function(){return m("id",this._I,W,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,W,this._isNull),this.__R},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"_State",{get:function(){return m("_State",this.__S,W,this._isNull),this.__S},set:function(e){this.__S=e,h(this,"_State",e,0)},enumerable:!0,configurable:!0}),V.prototype.delete=function(){i(this,"Delete",0,[],0,0)},V.prototype.getParentAsAnnotation=function(){return p(a.AugloopAnnotation,this,"GetParentAsAnnotation",1,[],!1,!1,null,4)},V.prototype.getParentAsParagraph=function(){return p(a.Paragraph,this,"GetParentAsParagraph",1,[],!1,!1,null,4)},V.prototype.getParentType=function(){return i(this,"GetParentType",1,[],4,0)},V.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},V.prototype._handleResult=function(e){if(H.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Content)||(this._C=t.Content),y(t.Id)||(this._I=t.Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),y(t._State)||(this.__S=t._State)}},V.prototype.load=function(e){return b(this,e)},V.prototype.retrieve=function(e){return v(this,e)},V.prototype._handleIdResult=function(e){H.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},V.prototype._handleRetrieveResult=function(e,t){H.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},V.prototype.track=function(){return this.context.trackedObjects.add(this),this},V.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},V.prototype.toJSON=function(){return O(this,{content:this._C,id:this._I},{})},V.prototype.setMockData=function(e){I(this,e)},V.prototype.ensureUnchanged=function(e){d(this,e)},V);function V(){return null!==H&&H.apply(this,arguments)||this}a.AugloopAnnotation=G,(U=a.CritiqueColorScheme||(a.CritiqueColorScheme={})).red="Red",U.green="Green",U.blue="Blue",U.lavender="Lavender",U.berry="Berry";var z,q,K="CritiqueAnnotation",J=(z=OfficeExtension.ClientObject,__extends(X,z),Object.defineProperty(X.prototype,"_className",{get:function(){return"CritiqueAnnotation"},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","critique"]},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Critique"]},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"critique",{get:function(){return m("critique",this._C,K,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,K,this._isNull),this.__R},enumerable:!0,configurable:!0}),X.prototype.accept=function(){i(this,"Accept",0,[],0,0)},X.prototype.reject=function(){i(this,"Reject",0,[],0,0)},X.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},X.prototype._handleResult=function(e){if(z.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Critique)||(this._C=t.Critique),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},X.prototype.load=function(e){return b(this,e)},X.prototype.retrieve=function(e){return v(this,e)},X.prototype._handleIdResult=function(e){z.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},X.prototype._handleRetrieveResult=function(e,t){z.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},X.prototype.track=function(){return this.context.trackedObjects.add(this),this},X.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},X.prototype.toJSON=function(){return O(this,{critique:this._C},{})},X.prototype.setMockData=function(e){I(this,e)},X.prototype.ensureUnchanged=function(e){d(this,e)},X);function X(){return null!==z&&z.apply(this,arguments)||this}a.CritiqueAnnotation=J,(q=a.AnnotationState||(a.AnnotationState={})).created="Created",q.accepted="Accepted",q.rejected="Rejected";var Q,Y="Annotation",Z=(Q=OfficeExtension.ClientObject,__extends($,Q),Object.defineProperty($.prototype,"_className",{get:function(){return"Annotation"},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"_scalarPropertyNames",{get:function(){return["id","_ReferenceId","state"]},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","_ReferenceId","State"]},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"_navigationPropertyNames",{get:function(){return["critiqueAnnotation"]},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"critiqueAnnotation",{get:function(){return this._C||(this._C=e(a.CritiqueAnnotation,this,"CritiqueAnnotation",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"id",{get:function(){return m("id",this._I,Y,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"state",{get:function(){return m("state",this._S,Y,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Y,this._isNull),this.__R},enumerable:!0,configurable:!0}),$.prototype.delete=function(){i(this,"Delete",0,[],0,0)},$.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},$.prototype._handleResult=function(e){if(Q.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Id)||(this._I=t.Id),y(t.State)||(this._S=t.State),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["critiqueAnnotation","CritiqueAnnotation"])}},$.prototype.load=function(e){return b(this,e)},$.prototype.retrieve=function(e){return v(this,e)},$.prototype._handleIdResult=function(e){Q.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},$.prototype._handleRetrieveResult=function(e,t){Q.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},$.prototype.track=function(){return this.context.trackedObjects.add(this),this},$.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},$.prototype.toJSON=function(){return O(this,{id:this._I,state:this._S},{})},$.prototype.setMockData=function(e){I(this,e)},$.prototype.ensureUnchanged=function(e){d(this,e)},$);function $(){return null!==Q&&Q.apply(this,arguments)||this}a.Annotation=Z;var ee,te="AnnotationCollection",ne=(ee=OfficeExtension.ClientObject,__extends(re,ee),Object.defineProperty(re.prototype,"_className",{get:function(){return"AnnotationCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"items",{get:function(){return m("items",this.m__items,te,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,te,this._isNull),this.__R},enumerable:!0,configurable:!0}),re.prototype.getFirst=function(){return p(a.Annotation,this,"GetFirst",0,[],!1,!1,null,0)},re.prototype.getFirstOrNullObject=function(){return p(a.Annotation,this,"GetFirstOrNullObject",0,[],!1,!1,null,0)},re.prototype._GetItem=function(e){return t(a.Annotation,this,[e])},re.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},re.prototype._handleResult=function(e){if(ee.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Annotation,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},re.prototype.load=function(e){return b(this,e)},re.prototype.retrieve=function(e){return v(this,e)},re.prototype._handleIdResult=function(e){ee.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},re.prototype._handleRetrieveResult=function(e,t){var n=this;ee.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Annotation,!0,n,e,t)})},re.prototype.track=function(){return this.context.trackedObjects.add(this),this},re.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},re.prototype.toJSON=function(){return O(this,{},{},this.m__items)},re.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Annotation,!0,n,e,t)},function(e){return n.m__items=e})},re);function re(){return null!==ee&&ee.apply(this,arguments)||this}a.AnnotationCollection=ne;var ie,oe="AugloopAnnotationCollection",ae=(ie=OfficeExtension.ClientObject,__extends(se,ie),Object.defineProperty(se.prototype,"_className",{get:function(){return"AugloopAnnotationCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"items",{get:function(){return m("items",this.m__items,oe,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,oe,this._isNull),this.__R},enumerable:!0,configurable:!0}),se.prototype.getFirst=function(){return p(a.AugloopAnnotation,this,"GetFirst",1,[],!1,!1,null,4)},se.prototype.getFirstOrNullObject=function(){return p(a.AugloopAnnotation,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},se.prototype.getItem=function(e){return t(a.AugloopAnnotation,this,[e])},se.prototype.refresh=function(){i(this,"Refresh",1,[],4,0)},se.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},se.prototype._handleResult=function(e){if(ie.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.AugloopAnnotation,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},se.prototype.load=function(e){return b(this,e)},se.prototype.retrieve=function(e){return v(this,e)},se.prototype._handleIdResult=function(e){ie.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},se.prototype._handleRetrieveResult=function(e,t){var n=this;ie.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.AugloopAnnotation,!0,n,e,t)})},Object.defineProperty(se.prototype,"onAnnotationAdded",{get:function(){var n=this;return this.m_annotationAdded||(this.m_annotationAdded=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationAdded",{eventType:4,registerFunc:function(){return n._RegisterAddedEvent()},unregisterFunc:function(){return n._UnregisterAddedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.AugloopAnnotationCollection_AnnotationAdded_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationAdded},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"onAnnotationChanged",{get:function(){var n=this;return this.m_annotationChanged||(this.m_annotationChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationChanged",{eventType:5,registerFunc:function(){return n._RegisterChangedEvent()},unregisterFunc:function(){return n._UnregisterChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.AugloopAnnotationCollection_AnnotationChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationChanged},enumerable:!0,configurable:!0}),Object.defineProperty(se.prototype,"onAnnotationDeleted",{get:function(){var n=this;return this.m_annotationDeleted||(this.m_annotationDeleted=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationDeleted",{eventType:6,registerFunc:function(){return n._RegisterDeletedEvent()},unregisterFunc:function(){return n._UnregisterDeletedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.AugloopAnnotationCollection_AnnotationDeleted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationDeleted},enumerable:!0,configurable:!0}),se.prototype.track=function(){return this.context.trackedObjects.add(this),this},se.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},se.prototype.toJSON=function(){return O(this,{},{},this.m__items)},se.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.AugloopAnnotation,!0,n,e,t)},function(e){return n.m__items=e})},se);function se(){return null!==ie&&ie.apply(this,arguments)||this}a.AugloopAnnotationCollection=ae;var ce,le,ue=(pe.prototype.getDocument=function(){return g(this._document)&&(this._document=this.context.document),this._document},pe.prototype.getReferenceId=function(){return g(this._refId)&&(this._refId=this._ReferenceId),this._refId},pe.prototype._RegisterAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationAdded")},pe.prototype._UnregisterAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationAdded")},pe.prototype._RegisterChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationChanged")},pe.prototype._UnregisterChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationChanged")},pe.prototype._RegisterDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"AnnotationDeleted")},pe.prototype._UnregisterDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"AnnotationDeleted")},pe);function pe(){}a.AugloopAnnotationCollectionCustom=ue,OfficeExtension.Utility.applyMixin(ae,ue),(le=ce=a._CC||(a._CC={})).AugloopAnnotationCollection_AnnotationAdded_EventArgsTransform=function(e,t){var n={eventType:a.EventType.annotationAdded,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(a.AugloopAnnotation,e.context,t)};return n.annotation.load(),n},le.AugloopAnnotationCollection_AnnotationChanged_EventArgsTransform=function(e,t){var n={eventType:a.EventType.annotationChanged,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(a.AugloopAnnotation,e.context,t)};return n.annotation.load(),n},le.AugloopAnnotationCollection_AnnotationDeleted_EventArgsTransform=function(e,t){var n={eventType:a.EventType.annotationDeleted,annotation:OfficeExtension.BatchApiHelper.createObjectFromReferenceId(a.AugloopAnnotation,e.context,t)};return n.annotation.load(),n};var fe,de="Application",he=(fe=OfficeExtension.ClientObject,__extends(ge,fe),Object.defineProperty(ge.prototype,"_className",{get:function(){return"Application"},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_scalarPropertyNames",{get:function(){return["checkLanguage","language"]},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_scalarPropertyOriginalNames",{get:function(){return["CheckLanguage","Language"]},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"_navigationPropertyNames",{get:function(){return["templates","bibliography","listTemplateGalleries","fontNames"]},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"bibliography",{get:function(){return _("Application.bibliography","WordApiDesktop","1.3",l),this._B||(this._B=e(a.Bibliography,this,"Bibliography",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"fontNames",{get:function(){return _("Application.fontNames","WordApiDesktop","1.4",l),this._F||(this._F=e(a.FontNameCollection,this,"FontNames",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"listTemplateGalleries",{get:function(){return _("Application.listTemplateGalleries","WordApiDesktop","1.4",l),this._Li||(this._Li=e(a.ListTemplateGalleryCollection,this,"ListTemplateGalleries",!0,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"templates",{get:function(){return _("Application.templates","WordApiDesktop","1.3",l),this._T||(this._T=e(a.TemplateCollection,this,"Templates",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"checkLanguage",{get:function(){return m("checkLanguage",this._C,de,this._isNull),_("Application.checkLanguage","WordApiDesktop","1.3",l),this._C},set:function(e){this._C=e,h(this,"CheckLanguage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"language",{get:function(){return m("language",this._L,de,this._isNull),_("Application.language","WordApiDesktop","1.3",l),this._L},enumerable:!0,configurable:!0}),ge.prototype.set=function(e,t){this._recursivelySet(e,t,["checkLanguage"],["bibliography"],["fontNames","listTemplateGalleries","templates"])},ge.prototype.update=function(e){this._recursivelyUpdate(e)},ge.prototype.createDocument=function(e){return p(a.DocumentCreated,this,"CreateDocument",1,[e],!1,!1,null,4)},ge.prototype.getEnterpriseUserInfo=function(){return i(this,"GetEnterpriseUserInfo",1,[],5,0)},ge.prototype.getMruFriendlyPath=function(e){return i(this,"GetMruFriendlyPath",1,[e],5,0)},ge.prototype.getSharePointTenantRoot=function(){return i(this,"GetSharePointTenantRoot",1,[],5,0)},ge.prototype.isTapEnabled=function(){return i(this,"IsTapEnabled",1,[],5,0)},ge.prototype.launchFileUrlInOfficeApp=function(e,t){return i(this,"LaunchFileUrlInOfficeApp",1,[e,t],5,0)},ge.prototype.openDocument=function(e){_("Application.openDocument",u,"1.6",l),i(this,"OpenDocument",1,[e],4,0)},ge.prototype.retrieveStylesFromBase64=function(e){return _("Application.retrieveStylesFromBase64",u,"1.5",l),i(this,"RetrieveStylesFromBase64",1,[e],4,0)},ge.prototype._handleResult=function(e){if(fe.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.CheckLanguage)||(this._C=t.CheckLanguage),y(t.Language)||(this._L=t.Language),C(this,t,["bibliography","Bibliography","fontNames","FontNames","listTemplateGalleries","ListTemplateGalleries","templates","Templates"])}},ge.prototype.load=function(e){return b(this,e)},ge.prototype.retrieve=function(e){return v(this,e)},ge.prototype._handleRetrieveResult=function(e,t){fe.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ge.newObject=function(e){return r(a.Application,e,"Microsoft.WordServices.Application",!1,4)},ge.prototype.toJSON=function(){return O(this,{checkLanguage:this._C,language:this._L},{bibliography:this._B,listTemplateGalleries:this._Li})},ge.prototype.setMockData=function(e){I(this,e)},ge.prototype.ensureUnchanged=function(e){d(this,e)},ge);function ge(){return null!==fe&&fe.apply(this,arguments)||this}a.Application=he;var ye,me="Body",_e=(ye=OfficeExtension.ClientObject,__extends(be,ye),Object.defineProperty(be.prototype,"_className",{get:function(){return"Body"},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","style","text","type","styleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Style","Text","Type","StyleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_navigationPropertyNames",{get:function(){return["paragraphs","contentControls","parentContentControl","font","inlinePictures","parentBody","lists","tables","parentSection","parentContentControlOrNullObject","parentBodyOrNullObject","parentSectionOrNullObject","footnotes","endnotes","fields","shapes"]},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"contentControls",{get:function(){return this._C||(this._C=e(a.ContentControlCollection,this,"ContentControls",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"endnotes",{get:function(){return _("Body.endnotes",u,"1.5",l),this._E||(this._E=e(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"fields",{get:function(){return _("Body.fields",u,"1.4",l),this._F||(this._F=e(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"font",{get:function(){return this._Fo||(this._Fo=e(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"footnotes",{get:function(){return _("Body.footnotes",u,"1.5",l),this._Foo||(this._Foo=e(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"inlinePictures",{get:function(){return this._I||(this._I=e(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"lists",{get:function(){return _("Body.lists",u,"1.3",l),this._L||(this._L=e(a.ListCollection,this,"Lists",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"paragraphs",{get:function(){return this._P||(this._P=e(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"parentBody",{get:function(){return _("Body.parentBody",u,"1.3",l),this._Pa||(this._Pa=e(a.Body,this,"ParentBody",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"parentBodyOrNullObject",{get:function(){return _("Body.parentBodyOrNullObject",u,"1.3",l),this._Par||(this._Par=e(a.Body,this,"ParentBodyOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"parentContentControl",{get:function(){return this._Pare||(this._Pare=e(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"parentContentControlOrNullObject",{get:function(){return _("Body.parentContentControlOrNullObject",u,"1.3",l),this._Paren||(this._Paren=e(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"parentSection",{get:function(){return _("Body.parentSection",u,"1.3",l),this._Parent||(this._Parent=e(a.Section,this,"ParentSection",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"parentSectionOrNullObject",{get:function(){return _("Body.parentSectionOrNullObject",u,"1.3",l),this._ParentS||(this._ParentS=e(a.Section,this,"ParentSectionOrNullObject",!1,4)),this._ParentS},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"shapes",{get:function(){return _("Body.shapes","WordApiDesktop","1.2",l),this._S||(this._S=e(a.ShapeCollection,this,"Shapes",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"tables",{get:function(){return _("Body.tables",u,"1.3",l),this._T||(this._T=e(a.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"style",{get:function(){return m("style",this._St,me,this._isNull),this._St},set:function(e){this._St=e,h(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"styleBuiltIn",{get:function(){return m("styleBuiltIn",this._Sty,me,this._isNull),_("Body.styleBuiltIn",u,"1.3",l),this._Sty},set:function(e){this._Sty=e,h(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"text",{get:function(){return m("text",this._Te,me,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"type",{get:function(){return m("type",this._Ty,me,this._isNull),_("Body.type",u,"1.3",l),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,me,this._isNull),this.__R},enumerable:!0,configurable:!0}),be.prototype.set=function(e,t){this._recursivelySet(e,t,["style","styleBuiltIn"],["font"],["contentControls","endnotes","fields","footnotes","inlinePictures","lists","paragraphs","parentBody","parentBodyOrNullObject","parentContentControl","parentContentControlOrNullObject","parentSection","parentSectionOrNullObject","shapes","tables"])},be.prototype.update=function(e){this._recursivelyUpdate(e)},be.prototype.clear=function(){i(this,"Clear",0,[],0,0)},be.prototype.getComments=function(){return _("Body.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},be.prototype.getContentControls=function(e){return _("Body.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},be.prototype.getHtml=function(){return i(this,"GetHtml",1,[],4,0)},be.prototype.getOoxml=function(){return i(this,"GetOoxml",1,[],4,0)},be.prototype.getRange=function(e){return _("Body.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},be.prototype.getReviewedText=function(e){return _("Body.getReviewedText",u,"1.4",l),i(this,"GetReviewedText",1,[e],4,0)},be.prototype.getTrackedChanges=function(){return _("Body.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},be.prototype.insertBreak=function(e,t){i(this,"InsertBreak",0,[e,t],0,0)},be.prototype.insertContentControl=function(e){return p(a.ContentControl,this,"InsertContentControl",0,[e],!1,!0,null,0)},be.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},be.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},be.prototype.insertInlinePictureFromBase64=function(e,t){return _("Body.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},be.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},be.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},be.prototype.insertTable=function(e,t,n,r){return _("Body.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},be.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},be.prototype.search=function(e,t){var n=ce.Body_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},be.prototype.select=function(e){i(this,"Select",1,[e],4,0)},be.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},be.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},be.prototype._handleResult=function(e){if(ye.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Style)||(this._St=t.Style),y(t.StyleBuiltIn)||(this._Sty=t.StyleBuiltIn),y(t.Text)||(this._Te=t.Text),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["contentControls","ContentControls","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","inlinePictures","InlinePictures","lists","Lists","paragraphs","Paragraphs","parentBody","ParentBody","parentBodyOrNullObject","ParentBodyOrNullObject","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentSection","ParentSection","parentSectionOrNullObject","ParentSectionOrNullObject","shapes","Shapes","tables","Tables"])}},be.prototype.load=function(e){return b(this,e)},be.prototype.retrieve=function(e){return v(this,e)},be.prototype._handleIdResult=function(e){ye.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},be.prototype._handleRetrieveResult=function(e,t){ye.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},be.prototype.track=function(){return this.context.trackedObjects.add(this),this},be.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},be.prototype.toJSON=function(){return O(this,{style:this._St,styleBuiltIn:this._Sty,text:this._Te,type:this._Ty},{contentControls:this._C,fields:this._F,font:this._Fo,inlinePictures:this._I,lists:this._L,paragraphs:this._P,shapes:this._S,tables:this._T})},be.prototype.setMockData=function(e){I(this,e)},be.prototype.ensureUnchanged=function(e){d(this,e)},be);function be(){return null!==ye&&ye.apply(this,arguments)||this}a.Body=_e;var ve=(Oe.prototype.getDocument=function(){return g(this._document)&&(this._document=this.context.document),this._document},Oe.prototype.getReferenceId=function(){return g(this._refId)&&(this._refId=this._ReferenceId),this._refId},Oe.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},Oe.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},Oe.prototype._RegisterCommentDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeleted")},Oe.prototype._UnregisterCommentDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeleted")},Oe.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},Oe.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},Oe.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},Oe.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},Oe.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},Oe.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},Oe);function Oe(){}a.BodyCustom=ve,OfficeExtension.Utility.applyMixin(_e,ve),(ce=a._CC||(a._CC={})).Body_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var Pe,Ce="Border",Re=(Pe=OfficeExtension.ClientObject,__extends(Se,Pe),Object.defineProperty(Se.prototype,"_className",{get:function(){return"Border"},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","color","type","width","visible","location"]},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Color","Type","Width","Visible","Location"]},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"color",{get:function(){return m("color",this._C,Ce,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"location",{get:function(){return m("location",this._L,Ce,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"type",{get:function(){return m("type",this._T,Ce,this._isNull),this._T},set:function(e){this._T=e,h(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"visible",{get:function(){return m("visible",this._V,Ce,this._isNull),this._V},set:function(e){this._V=e,h(this,"Visible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"width",{get:function(){return m("width",this._W,Ce,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Se.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ce,this._isNull),this.__R},enumerable:!0,configurable:!0}),Se.prototype.set=function(e,t){this._recursivelySet(e,t,["color","type","width","visible"],[],[])},Se.prototype.update=function(e){this._recursivelyUpdate(e)},Se.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Se.prototype._handleResult=function(e){if(Pe.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Color)||(this._C=t.Color),y(t.Location)||(this._L=t.Location),y(t.Type)||(this._T=t.Type),y(t.Visible)||(this._V=t.Visible),y(t.Width)||(this._W=t.Width),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Se.prototype.load=function(e){return b(this,e)},Se.prototype.retrieve=function(e){return v(this,e)},Se.prototype._handleIdResult=function(e){Pe.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Se.prototype._handleRetrieveResult=function(e,t){Pe.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Se.prototype.track=function(){return this.context.trackedObjects.add(this),this},Se.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Se.prototype.toJSON=function(){return O(this,{color:this._C,location:this._L,type:this._T,visible:this._V,width:this._W},{})},Se.prototype.setMockData=function(e){I(this,e)},Se.prototype.ensureUnchanged=function(e){d(this,e)},Se);function Se(){return null!==Pe&&Pe.apply(this,arguments)||this}a.Border=Re;var Ie,Ae="BorderUniversal",Te=(Ie=OfficeExtension.ClientObject,__extends(Ne,Ie),Object.defineProperty(Ne.prototype,"_className",{get:function(){return"BorderUniversal"},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","isVisible","artStyle","artWidth","color","colorIndex","inside","lineStyle","lineWidth"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","IsVisible","ArtStyle","ArtWidth","Color","ColorIndex","Inside","LineStyle","LineWidth"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"artStyle",{get:function(){return m("artStyle",this._A,Ae,this._isNull),this._A},set:function(e){this._A=e,h(this,"ArtStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"artWidth",{get:function(){return m("artWidth",this._Ar,Ae,this._isNull),this._Ar},set:function(e){this._Ar=e,h(this,"ArtWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"color",{get:function(){return m("color",this._C,Ae,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"colorIndex",{get:function(){return m("colorIndex",this._Co,Ae,this._isNull),this._Co},set:function(e){this._Co=e,h(this,"ColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"inside",{get:function(){return m("inside",this._I,Ae,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"isVisible",{get:function(){return m("isVisible",this._Is,Ae,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"lineStyle",{get:function(){return m("lineStyle",this._L,Ae,this._isNull),this._L},set:function(e){this._L=e,h(this,"LineStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"lineWidth",{get:function(){return m("lineWidth",this._Li,Ae,this._isNull),this._Li},set:function(e){this._Li=e,h(this,"LineWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ae,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ne.prototype.set=function(e,t){this._recursivelySet(e,t,["isVisible","artStyle","artWidth","color","colorIndex","lineStyle","lineWidth"],[],[])},Ne.prototype.update=function(e){this._recursivelyUpdate(e)},Ne.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ne.prototype._handleResult=function(e){if(Ie.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.ArtStyle)||(this._A=t.ArtStyle),y(t.ArtWidth)||(this._Ar=t.ArtWidth),y(t.Color)||(this._C=t.Color),y(t.ColorIndex)||(this._Co=t.ColorIndex),y(t.Inside)||(this._I=t.Inside),y(t.IsVisible)||(this._Is=t.IsVisible),y(t.LineStyle)||(this._L=t.LineStyle),y(t.LineWidth)||(this._Li=t.LineWidth),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ne.prototype.load=function(e){return b(this,e)},Ne.prototype.retrieve=function(e){return v(this,e)},Ne.prototype._handleIdResult=function(e){Ie.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ne.prototype._handleRetrieveResult=function(e,t){Ie.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ne.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ne.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ne.prototype.toJSON=function(){return O(this,{artStyle:this._A,artWidth:this._Ar,color:this._C,colorIndex:this._Co,inside:this._I,isVisible:this._Is,lineStyle:this._L,lineWidth:this._Li},{})},Ne.prototype.setMockData=function(e){I(this,e)},Ne.prototype.ensureUnchanged=function(e){d(this,e)},Ne);function Ne(){return null!==Ie&&Ie.apply(this,arguments)||this}a.BorderUniversal=Te;var De,xe="BorderCollection",Ee=(De=OfficeExtension.ClientObject,__extends(ke,De),Object.defineProperty(ke.prototype,"_className",{get:function(){return"BorderCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"_scalarPropertyNames",{get:function(){return["insideBorderColor","insideBorderType","insideBorderWidth","outsideBorderColor","outsideBorderType","outsideBorderWidth","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"_scalarPropertyOriginalNames",{get:function(){return["InsideBorderColor","InsideBorderType","InsideBorderWidth","OutsideBorderColor","OutsideBorderType","OutsideBorderWidth","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"items",{get:function(){return m("items",this.m__items,xe,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"insideBorderColor",{get:function(){return m("insideBorderColor",this._I,xe,this._isNull),this._I},set:function(e){this._I=e,h(this,"InsideBorderColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"insideBorderType",{get:function(){return m("insideBorderType",this._In,xe,this._isNull),this._In},set:function(e){this._In=e,h(this,"InsideBorderType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"insideBorderWidth",{get:function(){return m("insideBorderWidth",this._Ins,xe,this._isNull),this._Ins},set:function(e){this._Ins=e,h(this,"InsideBorderWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"outsideBorderColor",{get:function(){return m("outsideBorderColor",this._O,xe,this._isNull),this._O},set:function(e){this._O=e,h(this,"OutsideBorderColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"outsideBorderType",{get:function(){return m("outsideBorderType",this._Ou,xe,this._isNull),this._Ou},set:function(e){this._Ou=e,h(this,"OutsideBorderType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"outsideBorderWidth",{get:function(){return m("outsideBorderWidth",this._Out,xe,this._isNull),this._Out},set:function(e){this._Out=e,h(this,"OutsideBorderWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,xe,this._isNull),this.__R},enumerable:!0,configurable:!0}),ke.prototype.getByLocation=function(e){return p(a.Border,this,"GetByLocation",1,[e],!1,!1,null,4)},ke.prototype.getFirst=function(){return p(a.Border,this,"GetFirst",1,[],!1,!1,null,4)},ke.prototype.getFirstOrNullObject=function(){return p(a.Border,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ke.prototype.getItem=function(e){return t(a.Border,this,[e])},ke.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ke.prototype._handleResult=function(e){if(De.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t.InsideBorderColor)||(this._I=t.InsideBorderColor),y(t.InsideBorderType)||(this._In=t.InsideBorderType),y(t.InsideBorderWidth)||(this._Ins=t.InsideBorderWidth),y(t.OutsideBorderColor)||(this._O=t.OutsideBorderColor),y(t.OutsideBorderType)||(this._Ou=t.OutsideBorderType),y(t.OutsideBorderWidth)||(this._Out=t.OutsideBorderWidth),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Border,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ke.prototype.load=function(e){return b(this,e)},ke.prototype.retrieve=function(e){return v(this,e)},ke.prototype._handleIdResult=function(e){De.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ke.prototype._handleRetrieveResult=function(e,t){var n=this;De.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Border,!0,n,e,t)})},ke.prototype.track=function(){return this.context.trackedObjects.add(this),this},ke.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ke.prototype.toJSON=function(){return O(this,{insideBorderColor:this._I,insideBorderType:this._In,insideBorderWidth:this._Ins,outsideBorderColor:this._O,outsideBorderType:this._Ou,outsideBorderWidth:this._Out},{},this.m__items)},ke.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Border,!0,n,e,t)},function(e){return n.m__items=e})},ke);function ke(){return null!==De&&De.apply(this,arguments)||this}a.BorderCollection=Ee;var je,we="BorderUniversalCollection",Fe=(je=OfficeExtension.ClientObject,__extends(Le,je),Object.defineProperty(Le.prototype,"_className",{get:function(){return"BorderUniversalCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"items",{get:function(){return m("items",this.m__items,we,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,we,this._isNull),this.__R},enumerable:!0,configurable:!0}),Le.prototype.applyPageBordersToAllSections=function(){i(this,"ApplyPageBordersToAllSections",0,[],0,0)},Le.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Le.prototype._handleResult=function(e){if(je.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.BorderUniversal,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Le.prototype.load=function(e){return b(this,e)},Le.prototype.retrieve=function(e){return v(this,e)},Le.prototype._handleIdResult=function(e){je.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Le.prototype._handleRetrieveResult=function(e,t){var n=this;je.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.BorderUniversal,!1,n,e,t)})},Le.prototype.track=function(){return this.context.trackedObjects.add(this),this},Le.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Le.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Le.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.BorderUniversal,!1,n,e,t)},function(e){return n.m__items=e})},Le);function Le(){return null!==je&&je.apply(this,arguments)||this}a.BorderUniversalCollection=Fe;var Me,Be=(Me=OfficeExtension.ClientObject,__extends(He,Me),Object.defineProperty(He.prototype,"_className",{get:function(){return"Break"},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","pageIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","PageIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"pageIndex",{get:function(){return m("pageIndex",this._P,"Break",this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"Break",this._isNull),this.__R},enumerable:!0,configurable:!0}),He.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range"],[])},He.prototype.update=function(e){this._recursivelyUpdate(e)},He.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},He.prototype._handleResult=function(e){if(Me.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.PageIndex)||(this._P=t.PageIndex),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},He.prototype.load=function(e){return b(this,e)},He.prototype.retrieve=function(e){return v(this,e)},He.prototype._handleIdResult=function(e){Me.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},He.prototype._handleRetrieveResult=function(e,t){Me.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},He.prototype.track=function(){return this.context.trackedObjects.add(this),this},He.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},He.prototype.toJSON=function(){return O(this,{pageIndex:this._P},{range:this._R})},He.prototype.setMockData=function(e){I(this,e)},He.prototype.ensureUnchanged=function(e){d(this,e)},He);function He(){return null!==Me&&Me.apply(this,arguments)||this}a.Break=Be;var Ue,We="BreakCollection",Ge=(Ue=OfficeExtension.ClientObject,__extends(Ve,Ue),Object.defineProperty(Ve.prototype,"_className",{get:function(){return"BreakCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"items",{get:function(){return m("items",this.m__items,We,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,We,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ve.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ve.prototype._handleResult=function(e){if(Ue.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Break,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ve.prototype.load=function(e){return b(this,e)},Ve.prototype.retrieve=function(e){return v(this,e)},Ve.prototype._handleIdResult=function(e){Ue.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ve.prototype._handleRetrieveResult=function(e,t){var n=this;Ue.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Break,!1,n,e,t)})},Ve.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ve.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ve.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Ve.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Break,!1,n,e,t)},function(e){return n.m__items=e})},Ve);function Ve(){return null!==Ue&&Ue.apply(this,arguments)||this}a.BreakCollection=Ge;var ze,qe="BuildingBlock",Ke=(ze=OfficeExtension.ClientObject,__extends(Je,ze),Object.defineProperty(Je.prototype,"_className",{get:function(){return"BuildingBlock"},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","index","name","description","id","value","insertType"]},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Index","Name","Description","Id","Value","InsertType"]},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"_navigationPropertyNames",{get:function(){return["type","category"]},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"category",{get:function(){return this._C||(this._C=e(a.BuildingBlockCategory,this,"Category",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"type",{get:function(){return this._T||(this._T=e(a.BuildingBlockTypeItem,this,"Type",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"description",{get:function(){return m("description",this._D,qe,this._isNull),this._D},set:function(e){this._D=e,h(this,"Description",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"id",{get:function(){return m("id",this._I,qe,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"index",{get:function(){return m("index",this._In,qe,this._isNull),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"insertType",{get:function(){return m("insertType",this._Ins,qe,this._isNull),this._Ins},set:function(e){this._Ins=e,h(this,"InsertType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"name",{get:function(){return m("name",this._N,qe,this._isNull),this._N},set:function(e){this._N=e,h(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"value",{get:function(){return m("value",this._V,qe,this._isNull),this._V},set:function(e){this._V=e,h(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,qe,this._isNull),this.__R},enumerable:!0,configurable:!0}),Je.prototype.set=function(e,t){this._recursivelySet(e,t,["name","description","value","insertType"],[],["category","type"])},Je.prototype.update=function(e){this._recursivelyUpdate(e)},Je.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Je.prototype.insert=function(e,t){return p(a.Range,this,"Insert",0,[e,t],!1,!1,null,0)},Je.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Je.prototype._handleResult=function(e){if(ze.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Description)||(this._D=t.Description),y(t.Id)||(this._I=t.Id),y(t.Index)||(this._In=t.Index),y(t.InsertType)||(this._Ins=t.InsertType),y(t.Name)||(this._N=t.Name),y(t.Value)||(this._V=t.Value),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["category","Category","type","Type"])}},Je.prototype.load=function(e){return b(this,e)},Je.prototype.retrieve=function(e){return v(this,e)},Je.prototype._handleIdResult=function(e){ze.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},Je.prototype._handleRetrieveResult=function(e,t){ze.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Je.prototype.track=function(){return this.context.trackedObjects.add(this),this},Je.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Je.prototype.toJSON=function(){return O(this,{description:this._D,id:this._I,index:this._In,insertType:this._Ins,name:this._N,value:this._V},{})},Je.prototype.setMockData=function(e){I(this,e)},Je.prototype.ensureUnchanged=function(e){d(this,e)},Je);function Je(){return null!==ze&&ze.apply(this,arguments)||this}a.BuildingBlock=Ke;var Xe,Qe=(Xe=OfficeExtension.ClientObject,__extends(Ye,Xe),Object.defineProperty(Ye.prototype,"_className",{get:function(){return"BuildingBlockCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"BuildingBlockCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),Ye.prototype.add=function(e,t,n,r){return p(a.BuildingBlock,this,"Add",0,[e,t,n,r],!1,!0,null,0)},Ye.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Ye.prototype.getItemAt=function(e){return p(a.BuildingBlock,this,"GetItemAt",1,[e],!1,!1,null,4)},Ye.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ye.prototype._handleResult=function(e){if(Xe.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ye.prototype.load=function(e){return b(this,e)},Ye.prototype._handleIdResult=function(e){Xe.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ye.prototype._handleRetrieveResult=function(e,t){Xe.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ye.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ye.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ye.prototype.toJSON=function(){return O(this,{},{})},Ye);function Ye(){return null!==Xe&&Xe.apply(this,arguments)||this}a.BuildingBlockCollection=Qe;var Ze,$e=(Ze=OfficeExtension.ClientObject,__extends(et,Ze),Object.defineProperty(et.prototype,"_className",{get:function(){return"BuildingBlockEntryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"BuildingBlockEntryCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),et.prototype.add=function(e,t,n,r,i,o){return p(a.BuildingBlock,this,"Add",0,[e,t,n,r,i,o],!1,!0,null,0)},et.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},et.prototype.getItemAt=function(e){return p(a.BuildingBlock,this,"GetItemAt",1,[e],!1,!1,null,4)},et.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},et.prototype._handleResult=function(e){if(Ze.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},et.prototype.load=function(e){return b(this,e)},et.prototype._handleIdResult=function(e){Ze.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},et.prototype._handleRetrieveResult=function(e,t){Ze.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},et.prototype.track=function(){return this.context.trackedObjects.add(this),this},et.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},et.prototype.toJSON=function(){return O(this,{},{})},et);function et(){return null!==Ze&&Ze.apply(this,arguments)||this}a.BuildingBlockEntryCollection=$e;var tt,nt="BuildingBlockCategory",rt=(tt=OfficeExtension.ClientObject,__extends(it,tt),Object.defineProperty(it.prototype,"_className",{get:function(){return"BuildingBlockCategory"},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","index","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Index","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_navigationPropertyNames",{get:function(){return["buildingBlocks","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"buildingBlocks",{get:function(){return this._B||(this._B=e(a.BuildingBlockCollection,this,"BuildingBlocks",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"type",{get:function(){return this._T||(this._T=e(a.BuildingBlockTypeItem,this,"Type",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"index",{get:function(){return m("index",this._I,nt,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"name",{get:function(){return m("name",this._N,nt,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,nt,this._isNull),this.__R},enumerable:!0,configurable:!0}),it.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},it.prototype._handleResult=function(e){if(tt.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Index)||(this._I=t.Index),y(t.Name)||(this._N=t.Name),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["buildingBlocks","BuildingBlocks","type","Type"])}},it.prototype.load=function(e){return b(this,e)},it.prototype.retrieve=function(e){return v(this,e)},it.prototype._handleIdResult=function(e){tt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},it.prototype._handleRetrieveResult=function(e,t){tt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},it.prototype.track=function(){return this.context.trackedObjects.add(this),this},it.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},it.prototype.toJSON=function(){return O(this,{index:this._I,name:this._N},{})},it.prototype.setMockData=function(e){I(this,e)},it.prototype.ensureUnchanged=function(e){d(this,e)},it);function it(){return null!==tt&&tt.apply(this,arguments)||this}a.BuildingBlockCategory=rt;var ot,at=(ot=OfficeExtension.ClientObject,__extends(st,ot),Object.defineProperty(st.prototype,"_className",{get:function(){return"BuildingBlockCategoryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(st.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(st.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(st.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"BuildingBlockCategoryCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),st.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},st.prototype.getItemAt=function(e){return p(a.BuildingBlockCategory,this,"GetItemAt",1,[e],!1,!1,null,4)},st.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},st.prototype._handleResult=function(e){if(ot.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},st.prototype.load=function(e){return b(this,e)},st.prototype._handleIdResult=function(e){ot.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},st.prototype._handleRetrieveResult=function(e,t){ot.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},st.prototype.track=function(){return this.context.trackedObjects.add(this),this},st.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},st.prototype.toJSON=function(){return O(this,{},{})},st);function st(){return null!==ot&&ot.apply(this,arguments)||this}a.BuildingBlockCategoryCollection=at;var ct,lt="BuildingBlockTypeItem",ut=(ct=OfficeExtension.ClientObject,__extends(pt,ct),Object.defineProperty(pt.prototype,"_className",{get:function(){return"BuildingBlockTypeItem"},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","index","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Index","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"_navigationPropertyNames",{get:function(){return["categories"]},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"categories",{get:function(){return this._C||(this._C=e(a.BuildingBlockCategoryCollection,this,"Categories",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"index",{get:function(){return m("index",this._I,lt,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"name",{get:function(){return m("name",this._N,lt,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,lt,this._isNull),this.__R},enumerable:!0,configurable:!0}),pt.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},pt.prototype._handleResult=function(e){if(ct.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Index)||(this._I=t.Index),y(t.Name)||(this._N=t.Name),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["categories","Categories"])}},pt.prototype.load=function(e){return b(this,e)},pt.prototype.retrieve=function(e){return v(this,e)},pt.prototype._handleIdResult=function(e){ct.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},pt.prototype._handleRetrieveResult=function(e,t){ct.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},pt.prototype.track=function(){return this.context.trackedObjects.add(this),this},pt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},pt.prototype.toJSON=function(){return O(this,{index:this._I,name:this._N},{})},pt.prototype.setMockData=function(e){I(this,e)},pt.prototype.ensureUnchanged=function(e){d(this,e)},pt);function pt(){return null!==ct&&ct.apply(this,arguments)||this}a.BuildingBlockTypeItem=ut;var ft,dt=(ft=OfficeExtension.ClientObject,__extends(ht,ft),Object.defineProperty(ht.prototype,"_className",{get:function(){return"BuildingBlockTypeItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ht.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"BuildingBlockTypeItemCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),ht.prototype.getByType=function(e){return p(a.BuildingBlockTypeItem,this,"GetByType",1,[e],!1,!1,null,4)},ht.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},ht.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ht.prototype._handleResult=function(e){if(ft.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},ht.prototype.load=function(e){return b(this,e)},ht.prototype._handleIdResult=function(e){ft.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ht.prototype._handleRetrieveResult=function(e,t){ft.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ht.prototype.track=function(){return this.context.trackedObjects.add(this),this},ht.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ht.prototype.toJSON=function(){return O(this,{},{})},ht);function ht(){return null!==ft&&ft.apply(this,arguments)||this}a.BuildingBlockTypeItemCollection=dt;var gt,yt="CheckboxContentControl",mt=(gt=OfficeExtension.ClientObject,__extends(_t,gt),Object.defineProperty(_t.prototype,"_className",{get:function(){return"CheckboxContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"_scalarPropertyNames",{get:function(){return["isChecked","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsChecked","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"isChecked",{get:function(){return m("isChecked",this._I,yt,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsChecked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_t.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,yt,this._isNull),this.__R},enumerable:!0,configurable:!0}),_t.prototype.set=function(e,t){this._recursivelySet(e,t,["isChecked"],[],[])},_t.prototype.update=function(e){this._recursivelyUpdate(e)},_t.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},_t.prototype._handleResult=function(e){if(gt.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.IsChecked)||(this._I=t.IsChecked),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},_t.prototype.load=function(e){return b(this,e)},_t.prototype.retrieve=function(e){return v(this,e)},_t.prototype._handleIdResult=function(e){gt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},_t.prototype._handleRetrieveResult=function(e,t){gt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},_t.prototype.track=function(){return this.context.trackedObjects.add(this),this},_t.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},_t.prototype.toJSON=function(){return O(this,{isChecked:this._I},{})},_t.prototype.setMockData=function(e){I(this,e)},_t.prototype.ensureUnchanged=function(e){d(this,e)},_t);function _t(){return null!==gt&>.apply(this,arguments)||this}a.CheckboxContentControl=mt;var bt,vt="CoauthoringLock",Ot=(bt=OfficeExtension.ClientObject,__extends(Pt,bt),Object.defineProperty(Pt.prototype,"_className",{get:function(){return"CoauthoringLock"},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"_navigationPropertyNames",{get:function(){return["owner","range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"owner",{get:function(){return this._O||(this._O=e(a.Coauthor,this,"Owner",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"type",{get:function(){return m("type",this._T,vt,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,vt,this._isNull),this.__R},enumerable:!0,configurable:!0}),Pt.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range"],["owner"])},Pt.prototype.update=function(e){this._recursivelyUpdate(e)},Pt.prototype.unlock=function(){i(this,"Unlock",0,[],0,0)},Pt.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Pt.prototype._handleResult=function(e){if(bt.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Type)||(this._T=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["owner","Owner","range","Range"])}},Pt.prototype.load=function(e){return b(this,e)},Pt.prototype.retrieve=function(e){return v(this,e)},Pt.prototype._handleIdResult=function(e){bt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Pt.prototype._handleRetrieveResult=function(e,t){bt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Pt.prototype.track=function(){return this.context.trackedObjects.add(this),this},Pt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Pt.prototype.toJSON=function(){return O(this,{type:this._T},{owner:this._O,range:this._R})},Pt.prototype.setMockData=function(e){I(this,e)},Pt.prototype.ensureUnchanged=function(e){d(this,e)},Pt);function Pt(){return null!==bt&&bt.apply(this,arguments)||this}a.CoauthoringLock=Ot;var Ct,Rt="CoauthoringLockCollection",St=(Ct=OfficeExtension.ClientObject,__extends(It,Ct),Object.defineProperty(It.prototype,"_className",{get:function(){return"CoauthoringLockCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(It.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(It.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(It.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(It.prototype,"items",{get:function(){return m("items",this.m__items,Rt,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(It.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Rt,this._isNull),this.__R},enumerable:!0,configurable:!0}),It.prototype.add=function(e){return p(a.CoauthoringLock,this,"Add",0,[e],!1,!0,null,0)},It.prototype.unlockEphemeralLocks=function(){i(this,"UnlockEphemeralLocks",0,[],0,0)},It.prototype._GetItem=function(e){return _("CoauthoringLockCollection._GetItem",u,"1.1",l),t(a.CoauthoringLock,this,[e])},It.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},It.prototype._handleResult=function(e){if(Ct.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CoauthoringLock,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},It.prototype.load=function(e){return b(this,e)},It.prototype.retrieve=function(e){return v(this,e)},It.prototype._handleIdResult=function(e){Ct.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},It.prototype._handleRetrieveResult=function(e,t){var n=this;Ct.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CoauthoringLock,!0,n,e,t)})},It.prototype.track=function(){return this.context.trackedObjects.add(this),this},It.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},It.prototype.toJSON=function(){return O(this,{},{},this.m__items)},It.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CoauthoringLock,!0,n,e,t)},function(e){return n.m__items=e})},It);function It(){return null!==Ct&&Ct.apply(this,arguments)||this}a.CoauthoringLockCollection=St;var At,Tt="Coauthor",Nt=(At=OfficeExtension.ClientObject,__extends(Dt,At),Object.defineProperty(Dt.prototype,"_className",{get:function(){return"Coauthor"},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","emailAddress","id","isMe","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","EmailAddress","Id","IsMe","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"_navigationPropertyNames",{get:function(){return["locks"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"locks",{get:function(){return this._L||(this._L=e(a.CoauthoringLockCollection,this,"Locks",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"emailAddress",{get:function(){return m("emailAddress",this._E,Tt,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"id",{get:function(){return m("id",this._I,Tt,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"isMe",{get:function(){return m("isMe",this._Is,Tt,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"name",{get:function(){return m("name",this._N,Tt,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Tt,this._isNull),this.__R},enumerable:!0,configurable:!0}),Dt.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Dt.prototype._handleResult=function(e){if(At.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.EmailAddress)||(this._E=t.EmailAddress),y(t.Id)||(this._I=t.Id),y(t.IsMe)||(this._Is=t.IsMe),y(t.Name)||(this._N=t.Name),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["locks","Locks"])}},Dt.prototype.load=function(e){return b(this,e)},Dt.prototype.retrieve=function(e){return v(this,e)},Dt.prototype._handleIdResult=function(e){At.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},Dt.prototype._handleRetrieveResult=function(e,t){At.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Dt.prototype.track=function(){return this.context.trackedObjects.add(this),this},Dt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Dt.prototype.toJSON=function(){return O(this,{emailAddress:this._E,id:this._I,isMe:this._Is,name:this._N},{locks:this._L})},Dt.prototype.setMockData=function(e){I(this,e)},Dt.prototype.ensureUnchanged=function(e){d(this,e)},Dt);function Dt(){return null!==At&&At.apply(this,arguments)||this}a.Coauthor=Nt;var xt,Et="CoauthorCollection",kt=(xt=OfficeExtension.ClientObject,__extends(jt,xt),Object.defineProperty(jt.prototype,"_className",{get:function(){return"CoauthorCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"items",{get:function(){return m("items",this.m__items,Et,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Et,this._isNull),this.__R},enumerable:!0,configurable:!0}),jt.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},jt.prototype._handleResult=function(e){if(xt.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Coauthor,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},jt.prototype.load=function(e){return b(this,e)},jt.prototype.retrieve=function(e){return v(this,e)},jt.prototype._handleIdResult=function(e){xt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},jt.prototype._handleRetrieveResult=function(e,t){var n=this;xt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Coauthor,!1,n,e,t)})},jt.prototype.track=function(){return this.context.trackedObjects.add(this),this},jt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},jt.prototype.toJSON=function(){return O(this,{},{},this.m__items)},jt.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Coauthor,!1,n,e,t)},function(e){return n.m__items=e})},jt);function jt(){return null!==xt&&xt.apply(this,arguments)||this}a.CoauthorCollection=kt;var wt,Ft="Coauthoring",Lt=(wt=OfficeExtension.ClientObject,__extends(Mt,wt),Object.defineProperty(Mt.prototype,"_className",{get:function(){return"Coauthoring"},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","canMerge","canCoauthor","pendingUpdates"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","CanMerge","CanCoauthor","PendingUpdates"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"_navigationPropertyNames",{get:function(){return["authors","conflicts","locks","me","updates"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"authors",{get:function(){return this._A||(this._A=e(a.CoauthorCollection,this,"Authors",!0,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"conflicts",{get:function(){return this._Co||(this._Co=e(a.ConflictCollection,this,"Conflicts",!0,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"locks",{get:function(){return this._L||(this._L=e(a.CoauthoringLockCollection,this,"Locks",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"me",{get:function(){return this._M||(this._M=e(a.Coauthor,this,"Me",!1,4)),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"updates",{get:function(){return this._U||(this._U=e(a.CoauthoringUpdateCollection,this,"Updates",!0,4)),this._U},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"canCoauthor",{get:function(){return m("canCoauthor",this._C,Ft,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"canMerge",{get:function(){return m("canMerge",this._Ca,Ft,this._isNull),this._Ca},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"pendingUpdates",{get:function(){return m("pendingUpdates",this._P,Ft,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ft,this._isNull),this.__R},enumerable:!0,configurable:!0}),Mt.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Mt.prototype._handleResult=function(e){if(wt.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.CanCoauthor)||(this._C=t.CanCoauthor),y(t.CanMerge)||(this._Ca=t.CanMerge),y(t.PendingUpdates)||(this._P=t.PendingUpdates),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["authors","Authors","conflicts","Conflicts","locks","Locks","me","Me","updates","Updates"])}},Mt.prototype.load=function(e){return b(this,e)},Mt.prototype.retrieve=function(e){return v(this,e)},Mt.prototype._handleIdResult=function(e){wt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Mt.prototype._handleRetrieveResult=function(e,t){wt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Mt.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mt.prototype.toJSON=function(){return O(this,{canCoauthor:this._C,canMerge:this._Ca,pendingUpdates:this._P},{authors:this._A,conflicts:this._Co,locks:this._L,me:this._M,updates:this._U})},Mt.prototype.setMockData=function(e){I(this,e)},Mt.prototype.ensureUnchanged=function(e){d(this,e)},Mt);function Mt(){return null!==wt&&wt.apply(this,arguments)||this}a.Coauthoring=Lt;var Bt,Ht=(Bt=OfficeExtension.ClientObject,__extends(Ut,Bt),Object.defineProperty(Ut.prototype,"_className",{get:function(){return"CoauthoringUpdate"},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"CoauthoringUpdate",this._isNull),this.__R},enumerable:!0,configurable:!0}),Ut.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range"],[])},Ut.prototype.update=function(e){this._recursivelyUpdate(e)},Ut.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ut.prototype._handleResult=function(e){if(Bt.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},Ut.prototype.load=function(e){return b(this,e)},Ut.prototype.retrieve=function(e){return v(this,e)},Ut.prototype._handleIdResult=function(e){Bt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ut.prototype._handleRetrieveResult=function(e,t){Bt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ut.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ut.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ut.prototype.toJSON=function(){return O(this,{},{range:this._R})},Ut.prototype.setMockData=function(e){I(this,e)},Ut.prototype.ensureUnchanged=function(e){d(this,e)},Ut);function Ut(){return null!==Bt&&Bt.apply(this,arguments)||this}a.CoauthoringUpdate=Ht;var Wt,Gt="CoauthoringUpdateCollection",Vt=(Wt=OfficeExtension.ClientObject,__extends(zt,Wt),Object.defineProperty(zt.prototype,"_className",{get:function(){return"CoauthoringUpdateCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"items",{get:function(){return m("items",this.m__items,Gt,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Gt,this._isNull),this.__R},enumerable:!0,configurable:!0}),zt.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},zt.prototype._handleResult=function(e){if(Wt.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CoauthoringUpdate,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},zt.prototype.load=function(e){return b(this,e)},zt.prototype.retrieve=function(e){return v(this,e)},zt.prototype._handleIdResult=function(e){Wt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},zt.prototype._handleRetrieveResult=function(e,t){var n=this;Wt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CoauthoringUpdate,!1,n,e,t)})},zt.prototype.track=function(){return this.context.trackedObjects.add(this),this},zt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},zt.prototype.toJSON=function(){return O(this,{},{},this.m__items)},zt.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CoauthoringUpdate,!1,n,e,t)},function(e){return n.m__items=e})},zt);function zt(){return null!==Wt&&Wt.apply(this,arguments)||this}a.CoauthoringUpdateCollection=Vt;var qt,Kt="Comment",Jt=(qt=OfficeExtension.ClientObject,__extends(Xt,qt),Object.defineProperty(Xt.prototype,"_className",{get:function(){return"Comment"},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"_scalarPropertyNames",{get:function(){return["authorEmail","authorName","content","creationDate","id","_ReferenceId","resolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AuthorEmail","AuthorName","Content","CreationDate","Id","_ReferenceId","Resolved"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"_navigationPropertyNames",{get:function(){return["replies","contentRange"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"contentRange",{get:function(){return this._Co||(this._Co=e(a.CommentContentRange,this,"ContentRange",!1,4)),this._Co},set:function(e){this._Co=e,h(this,"ContentRange",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"replies",{get:function(){return this._R||(this._R=e(a.CommentReplyCollection,this,"Replies",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"authorEmail",{get:function(){return m("authorEmail",this._A,Kt,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"authorName",{get:function(){return m("authorName",this._Au,Kt,this._isNull),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"content",{get:function(){return m("content",this._C,Kt,this._isNull),this._C},set:function(e){this._C=e,h(this,"Content",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"creationDate",{get:function(){return m("creationDate",this._Cr,Kt,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"id",{get:function(){return m("id",this._I,Kt,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"resolved",{get:function(){return m("resolved",this._Re,Kt,this._isNull),this._Re},set:function(e){this._Re=e,h(this,"Resolved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xt.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Kt,this._isNull),this.__R},enumerable:!0,configurable:!0}),Xt.prototype.set=function(e,t){this._recursivelySet(e,t,["content","resolved"],["contentRange"],["replies"])},Xt.prototype.update=function(e){this._recursivelyUpdate(e)},Xt.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Xt.prototype.getRange=function(){return p(a.Range,this,"GetRange",0,[],!1,!1,null,0)},Xt.prototype.reply=function(e){return p(a.CommentReply,this,"Reply",0,[e],!1,!1,null,0)},Xt.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Xt.prototype._handleResult=function(e){if(qt.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AuthorEmail)||(this._A=t.AuthorEmail),y(t.AuthorName)||(this._Au=t.AuthorName),y(t.Content)||(this._C=t.Content),y(t.CreationDate)||(this._Cr=R(t.CreationDate)),y(t.Id)||(this._I=t.Id),y(t.Resolved)||(this._Re=t.Resolved),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["contentRange","ContentRange","replies","Replies"])}},Xt.prototype.load=function(e){return b(this,e)},Xt.prototype.retrieve=function(e){return v(this,e)},Xt.prototype._handleIdResult=function(e){qt.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},Xt.prototype._handleRetrieveResult=function(e,t){if(qt.prototype._handleRetrieveResult.call(this,e,t),!g(e)){var n=e;y(n.CreationDate)||(n.creationDate=R(n.creationDate)),S(this,e,t)}},Xt.prototype.track=function(){return this.context.trackedObjects.add(this),this},Xt.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Xt.prototype.toJSON=function(){return O(this,{authorEmail:this._A,authorName:this._Au,content:this._C,creationDate:this._Cr,id:this._I,resolved:this._Re},{contentRange:this._Co,replies:this._R})},Xt.prototype.setMockData=function(e){I(this,e)},Xt.prototype.ensureUnchanged=function(e){d(this,e)},Xt);function Xt(){return null!==qt&&qt.apply(this,arguments)||this}a.Comment=Jt;var Qt,Yt="CommentCollection",Zt=(Qt=OfficeExtension.ClientObject,__extends($t,Qt),Object.defineProperty($t.prototype,"_className",{get:function(){return"CommentCollection"},enumerable:!0,configurable:!0}),Object.defineProperty($t.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty($t.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty($t.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty($t.prototype,"items",{get:function(){return m("items",this.m__items,Yt,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty($t.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Yt,this._isNull),this.__R},enumerable:!0,configurable:!0}),$t.prototype.getFirst=function(){return p(a.Comment,this,"GetFirst",1,[],!1,!1,null,4)},$t.prototype.getFirstOrNullObject=function(){return p(a.Comment,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},$t.prototype._GetItem=function(e){return t(a.Comment,this,[e])},$t.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},$t.prototype._handleResult=function(e){if(Qt.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Comment,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},$t.prototype.load=function(e){return b(this,e)},$t.prototype.retrieve=function(e){return v(this,e)},$t.prototype._handleIdResult=function(e){Qt.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},$t.prototype._handleRetrieveResult=function(e,t){var n=this;Qt.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Comment,!0,n,e,t)})},$t.prototype.track=function(){return this.context.trackedObjects.add(this),this},$t.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},$t.prototype.toJSON=function(){return O(this,{},{},this.m__items)},$t.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Comment,!0,n,e,t)},function(e){return n.m__items=e})},$t);function $t(){return null!==Qt&&Qt.apply(this,arguments)||this}a.CommentCollection=Zt;var en,tn="CommentContentRange",nn=(en=OfficeExtension.ClientObject,__extends(rn,en),Object.defineProperty(rn.prototype,"_className",{get:function(){return"CommentContentRange"},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","text","isEmpty","hyperlink","bold","italic","strikeThrough","underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Text","IsEmpty","Hyperlink","Bold","Italic","StrikeThrough","Underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"bold",{get:function(){return m("bold",this._B,tn,this._isNull),this._B},set:function(e){this._B=e,h(this,"Bold",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"hyperlink",{get:function(){return m("hyperlink",this._H,tn,this._isNull),this._H},set:function(e){this._H=e,h(this,"Hyperlink",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"isEmpty",{get:function(){return m("isEmpty",this._I,tn,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"italic",{get:function(){return m("italic",this._It,tn,this._isNull),this._It},set:function(e){this._It=e,h(this,"Italic",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"strikeThrough",{get:function(){return m("strikeThrough",this._S,tn,this._isNull),this._S},set:function(e){this._S=e,h(this,"StrikeThrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"text",{get:function(){return m("text",this._T,tn,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"underline",{get:function(){return m("underline",this._U,tn,this._isNull),this._U},set:function(e){this._U=e,h(this,"Underline",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(rn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,tn,this._isNull),this.__R},enumerable:!0,configurable:!0}),rn.prototype.set=function(e,t){this._recursivelySet(e,t,["hyperlink","bold","italic","strikeThrough","underline"],[],[])},rn.prototype.update=function(e){this._recursivelyUpdate(e)},rn.prototype.insertText=function(e,t){return p(a.CommentContentRange,this,"InsertText",0,[e,t],!1,!1,null,0)},rn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},rn.prototype._handleResult=function(e){if(en.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Bold)||(this._B=t.Bold),y(t.Hyperlink)||(this._H=t.Hyperlink),y(t.IsEmpty)||(this._I=t.IsEmpty),y(t.Italic)||(this._It=t.Italic),y(t.StrikeThrough)||(this._S=t.StrikeThrough),y(t.Text)||(this._T=t.Text),y(t.Underline)||(this._U=t.Underline),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},rn.prototype.load=function(e){return b(this,e)},rn.prototype.retrieve=function(e){return v(this,e)},rn.prototype._handleIdResult=function(e){en.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},rn.prototype._handleRetrieveResult=function(e,t){en.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},rn.prototype.track=function(){return this.context.trackedObjects.add(this),this},rn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},rn.prototype.toJSON=function(){return O(this,{bold:this._B,hyperlink:this._H,isEmpty:this._I,italic:this._It,strikeThrough:this._S,text:this._T,underline:this._U},{})},rn.prototype.setMockData=function(e){I(this,e)},rn.prototype.ensureUnchanged=function(e){d(this,e)},rn);function rn(){return null!==en&&en.apply(this,arguments)||this}a.CommentContentRange=nn;var on,an="CommentReply",sn=(on=OfficeExtension.ClientObject,__extends(cn,on),Object.defineProperty(cn.prototype,"_className",{get:function(){return"CommentReply"},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_scalarPropertyNames",{get:function(){return["authorEmail","authorName","content","creationDate","id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["AuthorEmail","AuthorName","Content","CreationDate","Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_navigationPropertyNames",{get:function(){return["parentComment","contentRange"]},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"contentRange",{get:function(){return this._Co||(this._Co=e(a.CommentContentRange,this,"ContentRange",!1,4)),this._Co},set:function(e){this._Co=e,h(this,"ContentRange",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"parentComment",{get:function(){return this._P||(this._P=e(a.Comment,this,"ParentComment",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"authorEmail",{get:function(){return m("authorEmail",this._A,an,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"authorName",{get:function(){return m("authorName",this._Au,an,this._isNull),this._Au},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"content",{get:function(){return m("content",this._C,an,this._isNull),this._C},set:function(e){this._C=e,h(this,"Content",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"creationDate",{get:function(){return m("creationDate",this._Cr,an,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"id",{get:function(){return m("id",this._I,an,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(cn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,an,this._isNull),this.__R},enumerable:!0,configurable:!0}),cn.prototype.set=function(e,t){this._recursivelySet(e,t,["content"],["parentComment","contentRange"],[])},cn.prototype.update=function(e){this._recursivelyUpdate(e)},cn.prototype.delete=function(){i(this,"Delete",0,[],0,0)},cn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},cn.prototype._handleResult=function(e){if(on.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AuthorEmail)||(this._A=t.AuthorEmail),y(t.AuthorName)||(this._Au=t.AuthorName),y(t.Content)||(this._C=t.Content),y(t.CreationDate)||(this._Cr=R(t.CreationDate)),y(t.Id)||(this._I=t.Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["contentRange","ContentRange","parentComment","ParentComment"])}},cn.prototype.load=function(e){return b(this,e)},cn.prototype.retrieve=function(e){return v(this,e)},cn.prototype._handleIdResult=function(e){on.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},cn.prototype._handleRetrieveResult=function(e,t){if(on.prototype._handleRetrieveResult.call(this,e,t),!g(e)){var n=e;y(n.CreationDate)||(n.creationDate=R(n.creationDate)),S(this,e,t)}},cn.prototype.track=function(){return this.context.trackedObjects.add(this),this},cn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},cn.prototype.toJSON=function(){return O(this,{authorEmail:this._A,authorName:this._Au,content:this._C,creationDate:this._Cr,id:this._I},{contentRange:this._Co,parentComment:this._P})},cn.prototype.setMockData=function(e){I(this,e)},cn.prototype.ensureUnchanged=function(e){d(this,e)},cn);function cn(){return null!==on&&on.apply(this,arguments)||this}a.CommentReply=sn;var ln,un="CommentReplyCollection",pn=(ln=OfficeExtension.ClientObject,__extends(fn,ln),Object.defineProperty(fn.prototype,"_className",{get:function(){return"CommentReplyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(fn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(fn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(fn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(fn.prototype,"items",{get:function(){return m("items",this.m__items,un,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(fn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,un,this._isNull),this.__R},enumerable:!0,configurable:!0}),fn.prototype.getFirst=function(){return p(a.CommentReply,this,"GetFirst",1,[],!1,!1,null,4)},fn.prototype.getFirstOrNullObject=function(){return p(a.CommentReply,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},fn.prototype._GetItem=function(e){return t(a.CommentReply,this,[e])},fn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},fn.prototype._handleResult=function(e){if(ln.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CommentReply,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},fn.prototype.load=function(e){return b(this,e)},fn.prototype.retrieve=function(e){return v(this,e)},fn.prototype._handleIdResult=function(e){ln.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},fn.prototype._handleRetrieveResult=function(e,t){var n=this;ln.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CommentReply,!0,n,e,t)})},fn.prototype.track=function(){return this.context.trackedObjects.add(this),this},fn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},fn.prototype.toJSON=function(){return O(this,{},{},this.m__items)},fn.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CommentReply,!0,n,e,t)},function(e){return n.m__items=e})},fn);function fn(){return null!==ln&&ln.apply(this,arguments)||this}a.CommentReplyCollection=pn;var dn,hn="ConditionalStyle",gn=(dn=OfficeExtension.ClientObject,__extends(yn,dn),Object.defineProperty(yn.prototype,"_className",{get:function(){return"ConditionalStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","bottomPadding","leftPadding","rightPadding","topPadding"]},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BottomPadding","LeftPadding","RightPadding","TopPadding"]},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_navigationPropertyNames",{get:function(){return["borders","font","paragraphFormat","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"borders",{get:function(){return this._B||(this._B=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"font",{get:function(){return this._F||(this._F=e(a.Font,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"paragraphFormat",{get:function(){return this._P||(this._P=e(a.ParagraphFormat,this,"ParagraphFormat",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"shading",{get:function(){return this._S||(this._S=e(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"bottomPadding",{get:function(){return m("bottomPadding",this._Bo,hn,this._isNull),this._Bo},set:function(e){this._Bo=e,h(this,"BottomPadding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"leftPadding",{get:function(){return m("leftPadding",this._L,hn,this._isNull),this._L},set:function(e){this._L=e,h(this,"LeftPadding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"rightPadding",{get:function(){return m("rightPadding",this._R,hn,this._isNull),this._R},set:function(e){this._R=e,h(this,"RightPadding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"topPadding",{get:function(){return m("topPadding",this._T,hn,this._isNull),this._T},set:function(e){this._T=e,h(this,"TopPadding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,hn,this._isNull),this.__R},enumerable:!0,configurable:!0}),yn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},yn.prototype._handleResult=function(e){if(dn.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BottomPadding)||(this._Bo=t.BottomPadding),y(t.LeftPadding)||(this._L=t.LeftPadding),y(t.RightPadding)||(this._R=t.RightPadding),y(t.TopPadding)||(this._T=t.TopPadding),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","font","Font","paragraphFormat","ParagraphFormat","shading","Shading"])}},yn.prototype.load=function(e){return b(this,e)},yn.prototype.retrieve=function(e){return v(this,e)},yn.prototype._handleIdResult=function(e){dn.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},yn.prototype._handleRetrieveResult=function(e,t){dn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},yn.prototype.track=function(){return this.context.trackedObjects.add(this),this},yn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},yn.prototype.toJSON=function(){return O(this,{},{})},yn.prototype.setMockData=function(e){I(this,e)},yn.prototype.ensureUnchanged=function(e){d(this,e)},yn);function yn(){return null!==dn&&dn.apply(this,arguments)||this}a.ConditionalStyle=gn;var mn,_n="XmlMapping",bn=(mn=OfficeExtension.ClientObject,__extends(vn,mn),Object.defineProperty(vn.prototype,"_className",{get:function(){return"XmlMapping"},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"_scalarPropertyNames",{get:function(){return["isMapped","xpath","prefixMappings","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IsMapped","XPath","PrefixMappings","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"_navigationPropertyNames",{get:function(){return["customXmlNode","customXmlPart"]},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"customXmlNode",{get:function(){return this._C||(this._C=e(a.CustomXmlNode,this,"CustomXmlNode",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"customXmlPart",{get:function(){return this._Cu||(this._Cu=e(a.CustomXmlPart,this,"CustomXmlPart",!1,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"isMapped",{get:function(){return m("isMapped",this._I,_n,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"prefixMappings",{get:function(){return m("prefixMappings",this._P,_n,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"xpath",{get:function(){return m("xpath",this._X,_n,this._isNull),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(vn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,_n,this._isNull),this.__R},enumerable:!0,configurable:!0}),vn.prototype.set=function(e,t){this._recursivelySet(e,t,[],["customXmlNode","customXmlPart"],[])},vn.prototype.update=function(e){this._recursivelyUpdate(e)},vn.prototype.delete=function(){i(this,"Delete",0,[],0,0)},vn.prototype.setMapping=function(e,t){return i(this,"SetMapping",0,[e,t],0,0)},vn.prototype.setMappingByNode=function(e){return i(this,"SetMappingByNode",0,[e],0,0)},vn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},vn.prototype._handleResult=function(e){if(mn.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.IsMapped)||(this._I=t.IsMapped),y(t.PrefixMappings)||(this._P=t.PrefixMappings),y(t.XPath)||(this._X=t.XPath),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["customXmlNode","CustomXmlNode","customXmlPart","CustomXmlPart"])}},vn.prototype.load=function(e){return b(this,e)},vn.prototype.retrieve=function(e){return v(this,e)},vn.prototype._handleIdResult=function(e){mn.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},vn.prototype._handleRetrieveResult=function(e,t){mn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},vn.prototype.track=function(){return this.context.trackedObjects.add(this),this},vn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},vn.prototype.toJSON=function(){return O(this,{isMapped:this._I,prefixMappings:this._P,xpath:this._X},{customXmlNode:this._C,customXmlPart:this._Cu})},vn.prototype.setMockData=function(e){I(this,e)},vn.prototype.ensureUnchanged=function(e){d(this,e)},vn);function vn(){return null!==mn&&mn.apply(this,arguments)||this}a.XmlMapping=bn;function On(){}a.XmlMappingCustom=On,OfficeExtension.Utility.applyMixin(bn,On);var Pn,Cn="CustomXmlPrefixMappingCollection",Rn=(Pn=OfficeExtension.ClientObject,__extends(Sn,Pn),Object.defineProperty(Sn.prototype,"_className",{get:function(){return"CustomXmlPrefixMappingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Sn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Sn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Sn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Sn.prototype,"items",{get:function(){return m("items",this.m__items,Cn,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Sn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Cn,this._isNull),this.__R},enumerable:!0,configurable:!0}),Sn.prototype.addNamespace=function(e,t){return i(this,"AddNamespace",0,[e,t],0,0)},Sn.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Sn.prototype.lookupNamespace=function(e){return i(this,"LookupNamespace",0,[e],0,0)},Sn.prototype.lookupPrefix=function(e){return i(this,"LookupPrefix",0,[e],0,0)},Sn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Sn.prototype._handleResult=function(e){if(Pn.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlPrefixMapping,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Sn.prototype.load=function(e){return b(this,e)},Sn.prototype.retrieve=function(e){return v(this,e)},Sn.prototype._handleIdResult=function(e){Pn.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Sn.prototype._handleRetrieveResult=function(e,t){var n=this;Pn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CustomXmlPrefixMapping,!1,n,e,t)})},Sn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Sn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Sn.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Sn.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CustomXmlPrefixMapping,!1,n,e,t)},function(e){return n.m__items=e})},Sn);function Sn(){return null!==Pn&&Pn.apply(this,arguments)||this}a.CustomXmlPrefixMappingCollection=Rn;var In,An="CustomXmlPrefixMapping",Tn=(In=OfficeExtension.ClientObject,__extends(Nn,In),Object.defineProperty(Nn.prototype,"_className",{get:function(){return"CustomXmlPrefixMapping"},enumerable:!0,configurable:!0}),Object.defineProperty(Nn.prototype,"_scalarPropertyNames",{get:function(){return["prefix","namespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Nn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Prefix","NamespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Nn.prototype,"namespaceUri",{get:function(){return m("namespaceUri",this._N,An,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Nn.prototype,"prefix",{get:function(){return m("prefix",this._P,An,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Nn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,An,this._isNull),this.__R},enumerable:!0,configurable:!0}),Nn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Nn.prototype._handleResult=function(e){if(In.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.NamespaceUri)||(this._N=t.NamespaceUri),y(t.Prefix)||(this._P=t.Prefix),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Nn.prototype.load=function(e){return b(this,e)},Nn.prototype.retrieve=function(e){return v(this,e)},Nn.prototype._handleIdResult=function(e){In.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Nn.prototype._handleRetrieveResult=function(e,t){In.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Nn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Nn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Nn.prototype.toJSON=function(){return O(this,{namespaceUri:this._N,prefix:this._P},{})},Nn.prototype.setMockData=function(e){I(this,e)},Nn.prototype.ensureUnchanged=function(e){d(this,e)},Nn);function Nn(){return null!==In&&In.apply(this,arguments)||this}a.CustomXmlPrefixMapping=Tn;var Dn,xn="CustomXmlSchema",En=(Dn=OfficeExtension.ClientObject,__extends(kn,Dn),Object.defineProperty(kn.prototype,"_className",{get:function(){return"CustomXmlSchema"},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"_scalarPropertyNames",{get:function(){return["location","namespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Location","NamespaceUri","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"location",{get:function(){return m("location",this._L,xn,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"namespaceUri",{get:function(){return m("namespaceUri",this._N,xn,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(kn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,xn,this._isNull),this.__R},enumerable:!0,configurable:!0}),kn.prototype.delete=function(){i(this,"Delete",0,[],0,0)},kn.prototype.reload=function(){i(this,"Reload",0,[],0,0)},kn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},kn.prototype._handleResult=function(e){if(Dn.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Location)||(this._L=t.Location),y(t.NamespaceUri)||(this._N=t.NamespaceUri),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},kn.prototype.load=function(e){return b(this,e)},kn.prototype.retrieve=function(e){return v(this,e)},kn.prototype._handleIdResult=function(e){Dn.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},kn.prototype._handleRetrieveResult=function(e,t){Dn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},kn.prototype.track=function(){return this.context.trackedObjects.add(this),this},kn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},kn.prototype.toJSON=function(){return O(this,{location:this._L,namespaceUri:this._N},{})},kn.prototype.setMockData=function(e){I(this,e)},kn.prototype.ensureUnchanged=function(e){d(this,e)},kn);function kn(){return null!==Dn&&Dn.apply(this,arguments)||this}a.CustomXmlSchema=En;function jn(){}a.CustomXmlSchemaCustom=jn,OfficeExtension.Utility.applyMixin(En,jn);var wn,Fn="CustomXmlSchemaCollection",Ln=(wn=OfficeExtension.ClientObject,__extends(Mn,wn),Object.defineProperty(Mn.prototype,"_className",{get:function(){return"CustomXmlSchemaCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Mn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Mn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mn.prototype,"items",{get:function(){return m("items",this.m__items,Fn,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Mn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Fn,this._isNull),this.__R},enumerable:!0,configurable:!0}),Mn.prototype.add=function(e){return p(a.CustomXmlSchema,this,"Add",0,[e],!1,!0,null,0)},Mn.prototype.addCollection=function(e){return p(a.CustomXmlSchemaCollection,this,"AddCollection",0,[e],!0,!1,null,0)},Mn.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Mn.prototype.getItem=function(e){return t(a.CustomXmlSchema,this,[e])},Mn.prototype.getNamespaceUri=function(){return i(this,"GetNamespaceUri",1,[],4,0)},Mn.prototype.validate=function(){return i(this,"Validate",0,[],0,0)},Mn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Mn.prototype._handleResult=function(e){if(wn.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlSchema,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Mn.prototype.load=function(e){return b(this,e)},Mn.prototype.retrieve=function(e){return v(this,e)},Mn.prototype._handleIdResult=function(e){wn.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Mn.prototype._handleRetrieveResult=function(e,t){var n=this;wn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CustomXmlSchema,!0,n,e,t)})},Mn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mn.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Mn.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CustomXmlSchema,!0,n,e,t)},function(e){return n.m__items=e})},Mn);function Mn(){return null!==wn&&wn.apply(this,arguments)||this}a.CustomXmlSchemaCollection=Ln;function Bn(){}a.CustomXmlSchemaCollectionCustom=Bn,OfficeExtension.Utility.applyMixin(Ln,Bn);var Hn,Un="CustomXmlNodeCollection",Wn=(Hn=OfficeExtension.ClientObject,__extends(Gn,Hn),Object.defineProperty(Gn.prototype,"_className",{get:function(){return"CustomXmlNodeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"items",{get:function(){return m("items",this.m__items,Un,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Un,this._isNull),this.__R},enumerable:!0,configurable:!0}),Gn.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Gn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Gn.prototype._handleResult=function(e){if(Hn.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlNode,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Gn.prototype.load=function(e){return b(this,e)},Gn.prototype.retrieve=function(e){return v(this,e)},Gn.prototype._handleIdResult=function(e){Hn.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Gn.prototype._handleRetrieveResult=function(e,t){var n=this;Hn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CustomXmlNode,!1,n,e,t)})},Gn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Gn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Gn.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Gn.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CustomXmlNode,!1,n,e,t)},function(e){return n.m__items=e})},Gn);function Gn(){return null!==Hn&&Hn.apply(this,arguments)||this}a.CustomXmlNodeCollection=Wn;function Vn(){}a.CustomXmlNodeCollectionCustom=Vn,OfficeExtension.Utility.applyMixin(Wn,Vn);var zn,qn="CustomXmlNode",Kn=(zn=OfficeExtension.ClientObject,__extends(Jn,zn),Object.defineProperty(Jn.prototype,"_className",{get:function(){return"CustomXmlNode"},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"_scalarPropertyNames",{get:function(){return["baseName","namespaceUri","nodeType","nodeValue","text","xpath","xml","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"_scalarPropertyOriginalNames",{get:function(){return["BaseName","NamespaceUri","NodeType","NodeValue","Text","XPath","Xml","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!0,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"_navigationPropertyNames",{get:function(){return["attributes","childNodes","firstChild","lastChild","nextSibling","ownerPart","previousSibling","parentNode"]},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"attributes",{get:function(){return this._A||(this._A=e(a.CustomXmlNodeCollection,this,"Attributes",!0,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"childNodes",{get:function(){return this._C||(this._C=e(a.CustomXmlNodeCollection,this,"ChildNodes",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"firstChild",{get:function(){return this._F||(this._F=e(a.CustomXmlNode,this,"FirstChild",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"lastChild",{get:function(){return this._L||(this._L=e(a.CustomXmlNode,this,"LastChild",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"nextSibling",{get:function(){return this._Ne||(this._Ne=e(a.CustomXmlNode,this,"NextSibling",!1,4)),this._Ne},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"ownerPart",{get:function(){return this._O||(this._O=e(a.CustomXmlPart,this,"OwnerPart",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"parentNode",{get:function(){return this._P||(this._P=e(a.CustomXmlNode,this,"ParentNode",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"previousSibling",{get:function(){return this._Pr||(this._Pr=e(a.CustomXmlNode,this,"PreviousSibling",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"baseName",{get:function(){return m("baseName",this._B,qn,this._isNull),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"namespaceUri",{get:function(){return m("namespaceUri",this._N,qn,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"nodeType",{get:function(){return m("nodeType",this._No,qn,this._isNull),this._No},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"nodeValue",{get:function(){return m("nodeValue",this._Nod,qn,this._isNull),this._Nod},set:function(e){this._Nod=e,h(this,"NodeValue",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"text",{get:function(){return m("text",this._T,qn,this._isNull),this._T},set:function(e){this._T=e,h(this,"Text",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"xpath",{get:function(){return m("xpath",this._XP,qn,this._isNull),this._XP},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"xml",{get:function(){return m("xml",this._X,qn,this._isNull),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,qn,this._isNull),this.__R},enumerable:!0,configurable:!0}),Jn.prototype.set=function(e,t){this._recursivelySet(e,t,["nodeValue","text"],["firstChild","lastChild","nextSibling","ownerPart","previousSibling","parentNode"],["attributes","childNodes"])},Jn.prototype.update=function(e){this._recursivelyUpdate(e)},Jn.prototype.appendChildNode=function(e){return i(this,"AppendChildNode",0,[e],0,0)},Jn.prototype.appendChildSubtree=function(e){return i(this,"AppendChildSubtree",0,[e],0,0)},Jn.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Jn.prototype.hasChildNodes=function(){return i(this,"HasChildNodes",0,[],0,0)},Jn.prototype.insertNodeBefore=function(e){return i(this,"InsertNodeBefore",0,[e],0,0)},Jn.prototype.insertSubtreeBefore=function(e,t){return i(this,"InsertSubtreeBefore",0,[e,t],0,0)},Jn.prototype.removeChild=function(e){return i(this,"RemoveChild",0,[e],0,0)},Jn.prototype.replaceChildNode=function(e,t){return i(this,"ReplaceChildNode",0,[e,t],0,0)},Jn.prototype.replaceChildSubtree=function(e,t){return i(this,"ReplaceChildSubtree",0,[e,t],0,0)},Jn.prototype.selectNodes=function(e){return p(a.CustomXmlNodeCollection,this,"SelectNodes",0,[e],!0,!1,null,0)},Jn.prototype.selectSingleNode=function(e){return p(a.CustomXmlNode,this,"SelectSingleNode",0,[e],!1,!1,null,0)},Jn.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Jn.prototype._handleResult=function(e){if(zn.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BaseName)||(this._B=t.BaseName),y(t.NamespaceUri)||(this._N=t.NamespaceUri),y(t.NodeType)||(this._No=t.NodeType),y(t.NodeValue)||(this._Nod=t.NodeValue),y(t.Text)||(this._T=t.Text),y(t.XPath)||(this._XP=t.XPath),y(t.Xml)||(this._X=t.Xml),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["attributes","Attributes","childNodes","ChildNodes","firstChild","FirstChild","lastChild","LastChild","nextSibling","NextSibling","ownerPart","OwnerPart","parentNode","ParentNode","previousSibling","PreviousSibling"])}},Jn.prototype.load=function(e){return b(this,e)},Jn.prototype.retrieve=function(e){return v(this,e)},Jn.prototype._handleIdResult=function(e){zn.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Jn.prototype._handleRetrieveResult=function(e,t){zn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Jn.prototype.track=function(){return this.context.trackedObjects.add(this),this},Jn.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Jn.prototype.toJSON=function(){return O(this,{baseName:this._B,namespaceUri:this._N,nodeType:this._No,nodeValue:this._Nod,text:this._T,xml:this._X,xpath:this._XP},{attributes:this._A,childNodes:this._C,firstChild:this._F,lastChild:this._L,nextSibling:this._Ne,ownerPart:this._O,parentNode:this._P,previousSibling:this._Pr})},Jn.prototype.setMockData=function(e){I(this,e)},Jn.prototype.ensureUnchanged=function(e){d(this,e)},Jn);function Jn(){return null!==zn&&zn.apply(this,arguments)||this}a.CustomXmlNode=Kn;function Xn(){}a.CustomXmlNodeCustom=Xn,OfficeExtension.Utility.applyMixin(Kn,Xn);var Qn,Yn="ContentControl",Zn=(Qn=OfficeExtension.ClientObject,__extends($n,Qn),Object.defineProperty($n.prototype,"_className",{get:function(){return"ContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"_scalarPropertyNames",{get:function(){return["id","_ReferenceId","title","tag","placeholderText","type","appearance","color","removeWhenEdited","cannotDelete","cannotEdit","style","text","subtype","styleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","_ReferenceId","Title","Tag","PlaceholderText","Type","Appearance","Color","RemoveWhenEdited","CannotDelete","CannotEdit","Style","Text","Subtype","StyleBuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"_navigationPropertyNames",{get:function(){return["font","paragraphs","contentControls","parentContentControl","inlinePictures","lists","tables","parentTableCell","parentTable","parentBody","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject","footnotes","endnotes","fields","checkboxContentControl","dropDownListContentControl","comboBoxContentControl","xmlMapping","datePickerContentControl","groupContentControl","pictureContentControl","repeatingSectionContentControl","buildingBlockGalleryContentControl"]},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"buildingBlockGalleryContentControl",{get:function(){return _("ContentControl.buildingBlockGalleryContentControl","WordApiDesktop","1.3",l),this._B||(this._B=e(a.BuildingBlockGalleryContentControl,this,"BuildingBlockGalleryContentControl",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"checkboxContentControl",{get:function(){return _("ContentControl.checkboxContentControl",u,"1.7",l),this._Ch||(this._Ch=e(a.CheckboxContentControl,this,"CheckboxContentControl",!1,4)),this._Ch},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"comboBoxContentControl",{get:function(){return _("ContentControl.comboBoxContentControl",u,"1.9",l),this._Com||(this._Com=e(a.ComboBoxContentControl,this,"ComboBoxContentControl",!1,4)),this._Com},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"contentControls",{get:function(){return this._Con||(this._Con=e(a.ContentControlCollection,this,"ContentControls",!0,4)),this._Con},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"datePickerContentControl",{get:function(){return _("ContentControl.datePickerContentControl","WordApiDesktop","1.3",l),this._D||(this._D=e(a.DatePickerContentControl,this,"DatePickerContentControl",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"dropDownListContentControl",{get:function(){return _("ContentControl.dropDownListContentControl",u,"1.9",l),this._Dr||(this._Dr=e(a.DropDownListContentControl,this,"DropDownListContentControl",!1,4)),this._Dr},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"endnotes",{get:function(){return _("ContentControl.endnotes",u,"1.5",l),this._E||(this._E=e(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"fields",{get:function(){return _("ContentControl.fields",u,"1.4",l),this._F||(this._F=e(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"font",{get:function(){return this._Fo||(this._Fo=e(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"footnotes",{get:function(){return _("ContentControl.footnotes",u,"1.5",l),this._Foo||(this._Foo=e(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"groupContentControl",{get:function(){return _("ContentControl.groupContentControl","WordApiDesktop","1.3",l),this._G||(this._G=e(a.GroupContentControl,this,"GroupContentControl",!1,4)),this._G},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"inlinePictures",{get:function(){return this._In||(this._In=e(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._In},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"lists",{get:function(){return _("ContentControl.lists",u,"1.3",l),this._L||(this._L=e(a.ListCollection,this,"Lists",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"paragraphs",{get:function(){return this._P||(this._P=e(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"parentBody",{get:function(){return _("ContentControl.parentBody",u,"1.3",l),this._Pa||(this._Pa=e(a.Body,this,"ParentBody",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"parentContentControl",{get:function(){return this._Par||(this._Par=e(a.ContentControl,this,"ParentContentControl",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"parentContentControlOrNullObject",{get:function(){return _("ContentControl.parentContentControlOrNullObject",u,"1.3",l),this._Pare||(this._Pare=e(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"parentTable",{get:function(){return _("ContentControl.parentTable",u,"1.3",l),this._Paren||(this._Paren=e(a.Table,this,"ParentTable",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"parentTableCell",{get:function(){return _("ContentControl.parentTableCell",u,"1.3",l),this._Parent||(this._Parent=e(a.TableCell,this,"ParentTableCell",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"parentTableCellOrNullObject",{get:function(){return _("ContentControl.parentTableCellOrNullObject",u,"1.3",l),this._ParentT||(this._ParentT=e(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"parentTableOrNullObject",{get:function(){return _("ContentControl.parentTableOrNullObject",u,"1.3",l),this._ParentTa||(this._ParentTa=e(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentTa},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"pictureContentControl",{get:function(){return _("ContentControl.pictureContentControl","WordApiDesktop","1.3",l),this._Pi||(this._Pi=e(a.PictureContentControl,this,"PictureContentControl",!1,4)),this._Pi},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"repeatingSectionContentControl",{get:function(){return _("ContentControl.repeatingSectionContentControl","WordApiDesktop","1.3",l),this._Re||(this._Re=e(a.RepeatingSectionContentControl,this,"RepeatingSectionContentControl",!1,4)),this._Re},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"tables",{get:function(){return _("ContentControl.tables",u,"1.3",l),this._T||(this._T=e(a.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"xmlMapping",{get:function(){return _("ContentControl.xmlMapping","WordApiDesktop","1.3",l),this._X||(this._X=e(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"appearance",{get:function(){return m("appearance",this._A,Yn,this._isNull),this._A},set:function(e){this._A=e,h(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"cannotDelete",{get:function(){return m("cannotDelete",this._C,Yn,this._isNull),this._C},set:function(e){this._C=e,h(this,"CannotDelete",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"cannotEdit",{get:function(){return m("cannotEdit",this._Ca,Yn,this._isNull),this._Ca},set:function(e){this._Ca=e,h(this,"CannotEdit",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"color",{get:function(){return m("color",this._Co,Yn,this._isNull),this._Co},set:function(e){this._Co=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"id",{get:function(){return m("id",this._I,Yn,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"placeholderText",{get:function(){return m("placeholderText",this._Pl,Yn,this._isNull),this._Pl},set:function(e){this._Pl=e,h(this,"PlaceholderText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"removeWhenEdited",{get:function(){return m("removeWhenEdited",this._R,Yn,this._isNull),this._R},set:function(e){this._R=e,h(this,"RemoveWhenEdited",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"style",{get:function(){return m("style",this._S,Yn,this._isNull),this._S},set:function(e){this._S=e,h(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"styleBuiltIn",{get:function(){return m("styleBuiltIn",this._St,Yn,this._isNull),_("ContentControl.styleBuiltIn",u,"1.3",l),this._St},set:function(e){this._St=e,h(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"subtype",{get:function(){return m("subtype",this._Su,Yn,this._isNull),_("ContentControl.subtype",u,"1.3",l),this._Su},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"tag",{get:function(){return m("tag",this._Ta,Yn,this._isNull),this._Ta},set:function(e){this._Ta=e,h(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"text",{get:function(){return m("text",this._Te,Yn,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"title",{get:function(){return m("title",this._Ti,Yn,this._isNull),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"type",{get:function(){return m("type",this._Ty,Yn,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Yn,this._isNull),this.__R},enumerable:!0,configurable:!0}),$n.prototype.set=function(e,t){this._recursivelySet(e,t,["title","tag","placeholderText","appearance","color","removeWhenEdited","cannotDelete","cannotEdit","style","styleBuiltIn"],["font","checkboxContentControl","xmlMapping","datePickerContentControl","groupContentControl","pictureContentControl","repeatingSectionContentControl","buildingBlockGalleryContentControl"],["comboBoxContentControl","contentControls","dropDownListContentControl","endnotes","fields","footnotes","inlinePictures","lists","paragraphs","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","tables"])},$n.prototype.update=function(e){this._recursivelyUpdate(e)},$n.prototype.clear=function(){i(this,"Clear",0,[],0,0)},$n.prototype.delete=function(e){i(this,"Delete",0,[e],0,0)},$n.prototype.getComments=function(){return _("ContentControl.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},$n.prototype.getContentControls=function(e){return _("ContentControl.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},$n.prototype.getHtml=function(){return i(this,"GetHtml",1,[],4,0)},$n.prototype.getOoxml=function(){return i(this,"GetOoxml",1,[],4,0)},$n.prototype.getRange=function(e){return _("ContentControl.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},$n.prototype.getReviewedText=function(e){return _("ContentControl.getReviewedText",u,"1.4",l),i(this,"GetReviewedText",1,[e],4,0)},$n.prototype.getTextRanges=function(e,t){return _("ContentControl.getTextRanges",u,"1.3",l),p(a.RangeCollection,this,"GetTextRanges",1,[e,t],!0,!1,null,4)},$n.prototype.getTrackedChanges=function(){return _("ContentControl.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},$n.prototype.insertBreak=function(e,t){i(this,"InsertBreak",0,[e,t],0,0)},$n.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},$n.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},$n.prototype.insertInlinePictureFromBase64=function(e,t){return _("ContentControl.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},$n.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},$n.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},$n.prototype.insertTable=function(e,t,n,r){return _("ContentControl.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},$n.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},$n.prototype.search=function(e,t){var n=ce.ContentControl_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},$n.prototype.select=function(e){i(this,"Select",1,[e],4,0)},$n.prototype.split=function(e,t,n,r){return _("ContentControl.split",u,"1.3",l),p(a.RangeCollection,this,"Split",1,[e,t,n,r],!0,!1,null,4)},$n.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},$n.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},$n.prototype._handleResult=function(e){if(Qn.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Appearance)||(this._A=t.Appearance),y(t.CannotDelete)||(this._C=t.CannotDelete),y(t.CannotEdit)||(this._Ca=t.CannotEdit),y(t.Color)||(this._Co=t.Color),y(t.Id)||(this._I=t.Id),y(t.PlaceholderText)||(this._Pl=t.PlaceholderText),y(t.RemoveWhenEdited)||(this._R=t.RemoveWhenEdited),y(t.Style)||(this._S=t.Style),y(t.StyleBuiltIn)||(this._St=t.StyleBuiltIn),y(t.Subtype)||(this._Su=t.Subtype),y(t.Tag)||(this._Ta=t.Tag),y(t.Text)||(this._Te=t.Text),y(t.Title)||(this._Ti=t.Title),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["buildingBlockGalleryContentControl","BuildingBlockGalleryContentControl","checkboxContentControl","CheckboxContentControl","comboBoxContentControl","ComboBoxContentControl","contentControls","ContentControls","datePickerContentControl","DatePickerContentControl","dropDownListContentControl","DropDownListContentControl","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","groupContentControl","GroupContentControl","inlinePictures","InlinePictures","lists","Lists","paragraphs","Paragraphs","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","pictureContentControl","PictureContentControl","repeatingSectionContentControl","RepeatingSectionContentControl","tables","Tables","xmlMapping","XmlMapping"])}},$n.prototype.load=function(e){return b(this,e)},$n.prototype.retrieve=function(e){return v(this,e)},$n.prototype._handleIdResult=function(e){Qn.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},$n.prototype._handleRetrieveResult=function(e,t){Qn.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Object.defineProperty($n.prototype,"onDataChanged",{get:function(){var n=this;return _("ContentControl.onDataChanged",u,"1.5",l),this.m_dataChanged||(this.m_dataChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"DataChanged",{eventType:2,registerFunc:function(){return n._RegisterDataChangedEvent()},unregisterFunc:function(){return n._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.ContentControl_DataChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_dataChanged},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"onDeleted",{get:function(){var n=this;return _("ContentControl.onDeleted",u,"1.5",l),this.m_deleted||(this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:0,registerFunc:function(){return n._RegisterDeletedEvent()},unregisterFunc:function(){return n._UnregisterDeletedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.ContentControl_Deleted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deleted},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"onEntered",{get:function(){var n=this;return _("ContentControl.onEntered",u,"1.5",l),this.m_entered||(this.m_entered=new OfficeExtension.GenericEventHandlers(this.context,this,"Entered",{eventType:12,registerFunc:function(){return n._RegisterEnteredEvent()},unregisterFunc:function(){return n._UnregisterEnteredEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.ContentControl_Entered_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_entered},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"onExited",{get:function(){var n=this;return _("ContentControl.onExited",u,"1.5",l),this.m_exited||(this.m_exited=new OfficeExtension.GenericEventHandlers(this.context,this,"Exited",{eventType:13,registerFunc:function(){return n._RegisterExitedEvent()},unregisterFunc:function(){return n._UnregisterExitedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.ContentControl_Exited_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_exited},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"onSelectionChanged",{get:function(){var n=this;return _("ContentControl.onSelectionChanged",u,"1.5",l),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:1,registerFunc:function(){return n._RegisterSelectionChangedEvent()},unregisterFunc:function(){return n._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.ContentControl_SelectionChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),$n.prototype.track=function(){return this.context.trackedObjects.add(this),this},$n.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},$n.prototype.toJSON=function(){return O(this,{appearance:this._A,cannotDelete:this._C,cannotEdit:this._Ca,color:this._Co,id:this._I,placeholderText:this._Pl,removeWhenEdited:this._R,style:this._S,styleBuiltIn:this._St,subtype:this._Su,tag:this._Ta,text:this._Te,title:this._Ti,type:this._Ty},{buildingBlockGalleryContentControl:this._B,checkboxContentControl:this._Ch,comboBoxContentControl:this._Com,contentControls:this._Con,datePickerContentControl:this._D,dropDownListContentControl:this._Dr,fields:this._F,font:this._Fo,groupContentControl:this._G,inlinePictures:this._In,lists:this._L,paragraphs:this._P,pictureContentControl:this._Pi,repeatingSectionContentControl:this._Re,tables:this._T,xmlMapping:this._X})},$n.prototype.setMockData=function(e){I(this,e)},$n.prototype.ensureUnchanged=function(e){d(this,e)},$n);function $n(){return null!==Qn&&Qn.apply(this,arguments)||this}a.ContentControl=Zn;var er,tr=(nr.prototype.getDocument=function(){return g(this._document)&&(this._document=this.context.document),this._document},nr.prototype.getReferenceId=function(){return g(this._refId)&&(this._refId=this._ReferenceId),this._refId},nr.prototype._RegisterDataChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlDataChanged")},nr.prototype._UnregisterDataChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlDataChanged")},nr.prototype._RegisterDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlDeleted")},nr.prototype._UnregisterDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlDeleted")},nr.prototype._RegisterSelectionChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlSelectionChanged")},nr.prototype._UnregisterSelectionChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlSelectionChanged")},nr.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},nr.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},nr.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},nr.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},nr.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},nr.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},nr.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},nr.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},nr.prototype._RegisterEnteredEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlEntered")},nr.prototype._UnregisterEnteredEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlEntered")},nr.prototype._RegisterExitedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"ContentControlExited")},nr.prototype._UnregisterExitedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"ContentControlExited")},nr);function nr(){}a.ContentControlCustom=tr,OfficeExtension.Utility.applyMixin(Zn,tr),(er=ce=a._CC||(a._CC={})).ContentControl_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}},er.ContentControl_DataChanged_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlDataChanged,source:t.source,ids:[e.id]}},er.ContentControl_Deleted_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlDeleted,source:t.source,ids:[e.id]}},er.ContentControl_Entered_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlEntered,source:a.EventSource.local,ids:[e.id]}},er.ContentControl_Exited_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlExited,source:a.EventSource.local,ids:[e.id]}},er.ContentControl_SelectionChanged_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlSelectionChanged,source:a.EventSource.local,ids:[e.id]}};var rr,ir="ContentControlCollection",or=(rr=OfficeExtension.ClientObject,__extends(ar,rr),Object.defineProperty(ar.prototype,"_className",{get:function(){return"ContentControlCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ar.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ar.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ar.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ar.prototype,"items",{get:function(){return m("items",this.m__items,ir,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ar.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ir,this._isNull),this.__R},enumerable:!0,configurable:!0}),ar.prototype.getByChangeTrackingStates=function(e){return _("ContentControlCollection.getByChangeTrackingStates",u,"1.5",l),p(a.ContentControlCollection,this,"GetByChangeTrackingStates",1,[e],!0,!1,null,4)},ar.prototype.getById=function(e){return p(a.ContentControl,this,"GetById",1,[e],!1,!1,null,4)},ar.prototype.getByIdOrNullObject=function(e){return _("ContentControlCollection.getByIdOrNullObject",u,"1.3",l),p(a.ContentControl,this,"GetByIdOrNullObject",1,[e],!1,!1,null,4)},ar.prototype.getByTag=function(e){return p(a.ContentControlCollection,this,"GetByTag",1,[e],!0,!1,null,4)},ar.prototype.getByTitle=function(e){return p(a.ContentControlCollection,this,"GetByTitle",1,[e],!0,!1,null,4)},ar.prototype.getByTypes=function(e){return _("ContentControlCollection.getByTypes",u,"1.3",l),p(a.ContentControlCollection,this,"GetByTypes",1,[e],!0,!1,null,4)},ar.prototype.getFirst=function(){return _("ContentControlCollection.getFirst",u,"1.3",l),p(a.ContentControl,this,"GetFirst",1,[],!1,!1,null,4)},ar.prototype.getFirstOrNullObject=function(){return _("ContentControlCollection.getFirstOrNullObject",u,"1.3",l),p(a.ContentControl,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ar.prototype.getItem=function(e){return t(a.ContentControl,this,[e])},ar.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ar.prototype._handleResult=function(e){if(rr.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ContentControl,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ar.prototype.load=function(e){return b(this,e)},ar.prototype.retrieve=function(e){return v(this,e)},ar.prototype._handleIdResult=function(e){rr.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ar.prototype._handleRetrieveResult=function(e,t){var n=this;rr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.ContentControl,!0,n,e,t)})},ar.prototype.track=function(){return this.context.trackedObjects.add(this),this},ar.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ar.prototype.toJSON=function(){return O(this,{},{},this.m__items)},ar.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.ContentControl,!0,n,e,t)},function(e){return n.m__items=e})},ar);function ar(){return null!==rr&&rr.apply(this,arguments)||this}a.ContentControlCollection=or;var sr,cr="ContentControlListItem",lr=(sr=OfficeExtension.ClientObject,__extends(ur,sr),Object.defineProperty(ur.prototype,"_className",{get:function(){return"ContentControlListItem"},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","displayText","value","index"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","DisplayText","Value","Index"]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"displayText",{get:function(){return m("displayText",this._D,cr,this._isNull),this._D},set:function(e){this._D=e,h(this,"DisplayText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"index",{get:function(){return m("index",this._I,cr,this._isNull),this._I},set:function(e){this._I=e,h(this,"Index",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"value",{get:function(){return m("value",this._V,cr,this._isNull),this._V},set:function(e){this._V=e,h(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_Id",{get:function(){return m("_Id",this.__I,cr,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(ur.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,cr,this._isNull),this.__R},enumerable:!0,configurable:!0}),ur.prototype.set=function(e,t){this._recursivelySet(e,t,["displayText","value","index"],[],[])},ur.prototype.update=function(e){this._recursivelyUpdate(e)},ur.prototype.delete=function(){i(this,"Delete",0,[],0,0)},ur.prototype.select=function(){i(this,"Select",0,[],0,0)},ur.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ur.prototype._handleResult=function(e){if(sr.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.DisplayText)||(this._D=t.DisplayText),y(t.Index)||(this._I=t.Index),y(t.Value)||(this._V=t.Value),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},ur.prototype.load=function(e){return b(this,e)},ur.prototype.retrieve=function(e){return v(this,e)},ur.prototype._handleIdResult=function(e){sr.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},ur.prototype._handleRetrieveResult=function(e,t){sr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ur.prototype.track=function(){return this.context.trackedObjects.add(this),this},ur.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ur.prototype.toJSON=function(){return O(this,{displayText:this._D,index:this._I,value:this._V},{})},ur.prototype.setMockData=function(e){I(this,e)},ur.prototype.ensureUnchanged=function(e){d(this,e)},ur);function ur(){return null!==sr&&sr.apply(this,arguments)||this}a.ContentControlListItem=lr;var pr,fr="ContentControlListItemCollection",dr=(pr=OfficeExtension.ClientObject,__extends(hr,pr),Object.defineProperty(hr.prototype,"_className",{get:function(){return"ContentControlListItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"items",{get:function(){return m("items",this.m__items,fr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(hr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,fr,this._isNull),this.__R},enumerable:!0,configurable:!0}),hr.prototype.getFirst=function(){return p(a.ContentControlListItem,this,"GetFirst",0,[],!1,!1,null,0)},hr.prototype.getFirstOrNullObject=function(){return p(a.ContentControlListItem,this,"GetFirstOrNullObject",0,[],!1,!1,null,0)},hr.prototype._GetItem=function(e){return t(a.ContentControlListItem,this,[e])},hr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},hr.prototype._handleResult=function(e){if(pr.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ContentControlListItem,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},hr.prototype.load=function(e){return b(this,e)},hr.prototype.retrieve=function(e){return v(this,e)},hr.prototype._handleIdResult=function(e){pr.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},hr.prototype._handleRetrieveResult=function(e,t){var n=this;pr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.ContentControlListItem,!0,n,e,t)})},hr.prototype.track=function(){return this.context.trackedObjects.add(this),this},hr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},hr.prototype.toJSON=function(){return O(this,{},{},this.m__items)},hr.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.ContentControlListItem,!0,n,e,t)},function(e){return n.m__items=e})},hr);function hr(){return null!==pr&&pr.apply(this,arguments)||this}a.ContentControlListItemCollection=dr;var gr,yr="CustomProperty",mr=(gr=OfficeExtension.ClientObject,__extends(_r,gr),Object.defineProperty(_r.prototype,"_className",{get:function(){return"CustomProperty"},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","key","value","type","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Key","Value","Type","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"key",{get:function(){return m("key",this._K,yr,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"type",{get:function(){return m("type",this.m_type,yr,this._isNull),this.m_type},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"value",{get:function(){return m("value",this.m_value,yr,this._isNull),this.m_value},set:function(e){this.m_value=e,h(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_Id",{get:function(){return m("_Id",this.__I,yr,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(_r.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,yr,this._isNull),this.__R},enumerable:!0,configurable:!0}),_r.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},_r.prototype.update=function(e){this._recursivelyUpdate(e)},_r.prototype.delete=function(){i(this,"Delete",0,[],0,0)},_r.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},_r.prototype._handleResult=function(e){if(gr.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),ce.CustomProperty_HandleResult(this,t),y(t.Key)||(this._K=t.Key),y(t.Type)||(this.m_type=t.Type),y(t.Value)||(this.m_value=t.Value),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},_r.prototype.load=function(e){return b(this,e)},_r.prototype.retrieve=function(e){return v(this,e)},_r.prototype._handleIdResult=function(e){gr.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},_r.prototype._handleRetrieveResult=function(e,t){gr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},_r.prototype.track=function(){return this.context.trackedObjects.add(this),this},_r.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},_r.prototype.toJSON=function(){return O(this,{key:this._K,type:this.m_type,value:this.m_value},{})},_r.prototype.setMockData=function(e){I(this,e)},_r.prototype.ensureUnchanged=function(e){d(this,e)},_r);function _r(){return null!==gr&&gr.apply(this,arguments)||this}a.CustomProperty=mr,(ce=a._CC||(a._CC={})).CustomProperty_HandleResult=function(e,t){y(t.Value)||y(t.Type)||"Date"!=t.Type||(t.Value=new Date(t.Value))};var br,vr="CustomPropertyCollection",Or=(br=OfficeExtension.ClientObject,__extends(Pr,br),Object.defineProperty(Pr.prototype,"_className",{get:function(){return"CustomPropertyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Pr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Pr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pr.prototype,"items",{get:function(){return m("items",this.m__items,vr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Pr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,vr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Pr.prototype.add=function(e,t){return p(a.CustomProperty,this,"Add",0,[e,t],!1,!0,null,0)},Pr.prototype.deleteAll=function(){i(this,"DeleteAll",0,[],0,0)},Pr.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Pr.prototype.getItem=function(e){return t(a.CustomProperty,this,[e])},Pr.prototype.getItemOrNullObject=function(e){return p(a.CustomProperty,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},Pr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Pr.prototype._handleResult=function(e){if(br.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomProperty,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Pr.prototype.load=function(e){return b(this,e)},Pr.prototype.retrieve=function(e){return v(this,e)},Pr.prototype._handleIdResult=function(e){br.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Pr.prototype._handleRetrieveResult=function(e,t){var n=this;br.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CustomProperty,!0,n,e,t)})},Pr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Pr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Pr.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Pr.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CustomProperty,!0,n,e,t)},function(e){return n.m__items=e})},Pr);function Pr(){return null!==br&&br.apply(this,arguments)||this}a.CustomPropertyCollection=Or;var Cr,Rr="CustomXmlPart",Sr=(Cr=OfficeExtension.ClientObject,__extends(Ir,Cr),Object.defineProperty(Ir.prototype,"_className",{get:function(){return"CustomXmlPart"},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id","namespaceUri","xml","builtIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id","NamespaceUri","Xml","BuiltIn"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_navigationPropertyNames",{get:function(){return["documentElement","schemaCollection","namespaceManager"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"documentElement",{get:function(){return _("CustomXmlPart.documentElement","WordApiDesktop","1.3",l),this._D||(this._D=e(a.CustomXmlNode,this,"DocumentElement",!1,4)),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"namespaceManager",{get:function(){return _("CustomXmlPart.namespaceManager","WordApiDesktop","1.3",l),this._N||(this._N=e(a.CustomXmlPrefixMappingCollection,this,"NamespaceManager",!0,4)),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"schemaCollection",{get:function(){return _("CustomXmlPart.schemaCollection","WordApiDesktop","1.3",l),this._S||(this._S=e(a.CustomXmlSchemaCollection,this,"SchemaCollection",!0,4)),this._S},set:function(e){this._S=e,h(this,"SchemaCollection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"builtIn",{get:function(){return m("builtIn",this._B,Rr,this._isNull),_("CustomXmlPart.builtIn","WordApiDesktop","1.3",l),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"id",{get:function(){return m("id",this._I,Rr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"namespaceUri",{get:function(){return m("namespaceUri",this._Na,Rr,this._isNull),this._Na},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"xml",{get:function(){return m("xml",this._X,Rr,this._isNull),_("CustomXmlPart.xml","WordApiDesktop","1.3",l),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(Ir.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Rr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ir.prototype.set=function(e,t){this._recursivelySet(e,t,[],["documentElement"],["namespaceManager","schemaCollection"])},Ir.prototype.update=function(e){this._recursivelyUpdate(e)},Ir.prototype.addNode=function(e,t){return _("CustomXmlPart.addNode","WordApiDesktop","1.3",l),i(this,"AddNode",0,[e,t],0,0)},Ir.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Ir.prototype.deleteAttribute=function(e,t,n){i(this,"DeleteAttribute",0,[e,t,n],0,0)},Ir.prototype.deleteElement=function(e,t){i(this,"DeleteElement",0,[e,t],0,0)},Ir.prototype.getXml=function(){return i(this,"GetXml",1,[],4,0)},Ir.prototype.insertAttribute=function(e,t,n,r){i(this,"InsertAttribute",0,[e,t,n,r],0,0)},Ir.prototype.insertElement=function(e,t,n,r){i(this,"InsertElement",0,[e,t,n,r],0,0)},Ir.prototype.loadXml=function(e){return _("CustomXmlPart.loadXml","WordApiDesktop","1.3",l),i(this,"LoadXml",0,[e],0,0)},Ir.prototype.query=function(e,t){return i(this,"Query",0,[e,t],0,0)},Ir.prototype.selectNodes=function(e){return _("CustomXmlPart.selectNodes","WordApiDesktop","1.3",l),p(a.CustomXmlNodeCollection,this,"SelectNodes",0,[e],!0,!1,null,0)},Ir.prototype.selectSingleNode=function(e){return _("CustomXmlPart.selectSingleNode","WordApiDesktop","1.3",l),p(a.CustomXmlNode,this,"SelectSingleNode",0,[e],!1,!1,null,0)},Ir.prototype.setXml=function(e){i(this,"SetXml",0,[e],0,0)},Ir.prototype.updateAttribute=function(e,t,n,r){i(this,"UpdateAttribute",0,[e,t,n,r],0,0)},Ir.prototype.updateElement=function(e,t,n){i(this,"UpdateElement",0,[e,t,n],0,0)},Ir.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ir.prototype._handleResult=function(e){if(Cr.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BuiltIn)||(this._B=t.BuiltIn),y(t.Id)||(this._I=t.Id),y(t.NamespaceUri)||(this._Na=t.NamespaceUri),y(t.Xml)||(this._X=t.Xml),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["documentElement","DocumentElement","namespaceManager","NamespaceManager","schemaCollection","SchemaCollection"])}},Ir.prototype.load=function(e){return b(this,e)},Ir.prototype.retrieve=function(e){return v(this,e)},Ir.prototype._handleIdResult=function(e){Cr.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},Ir.prototype._handleRetrieveResult=function(e,t){Cr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ir.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ir.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ir.prototype.toJSON=function(){return O(this,{builtIn:this._B,id:this._I,namespaceUri:this._Na,xml:this._X},{documentElement:this._D,namespaceManager:this._N,schemaCollection:this._S})},Ir.prototype.setMockData=function(e){I(this,e)},Ir.prototype.ensureUnchanged=function(e){d(this,e)},Ir);function Ir(){return null!==Cr&&Cr.apply(this,arguments)||this}a.CustomXmlPart=Sr;var Ar,Tr="CustomXmlPartCollection",Nr=(Ar=OfficeExtension.ClientObject,__extends(Dr,Ar),Object.defineProperty(Dr.prototype,"_className",{get:function(){return"CustomXmlPartCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"items",{get:function(){return m("items",this.m__items,Tr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Dr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Tr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Dr.prototype.add=function(e){return p(a.CustomXmlPart,this,"Add",0,[e],!1,!0,null,0)},Dr.prototype.getByNamespace=function(e){return p(a.CustomXmlPartScopedCollection,this,"GetByNamespace",1,[e],!0,!1,null,4)},Dr.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Dr.prototype.getItem=function(e){return t(a.CustomXmlPart,this,[e])},Dr.prototype.getItemOrNullObject=function(e){return p(a.CustomXmlPart,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},Dr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Dr.prototype._handleResult=function(e){if(Ar.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlPart,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Dr.prototype.load=function(e){return b(this,e)},Dr.prototype.retrieve=function(e){return v(this,e)},Dr.prototype._handleIdResult=function(e){Ar.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Dr.prototype._handleRetrieveResult=function(e,t){var n=this;Ar.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)})},Dr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Dr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Dr.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Dr.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)},function(e){return n.m__items=e})},Dr);function Dr(){return null!==Ar&&Ar.apply(this,arguments)||this}a.CustomXmlPartCollection=Nr;var xr,Er="CustomXmlPartScopedCollection",kr=(xr=OfficeExtension.ClientObject,__extends(jr,xr),Object.defineProperty(jr.prototype,"_className",{get:function(){return"CustomXmlPartScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(jr.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(jr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jr.prototype,"items",{get:function(){return m("items",this.m__items,Er,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(jr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Er,this._isNull),this.__R},enumerable:!0,configurable:!0}),jr.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},jr.prototype.getItem=function(e){return t(a.CustomXmlPart,this,[e])},jr.prototype.getItemOrNullObject=function(e){return p(a.CustomXmlPart,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},jr.prototype.getOnlyItem=function(){return p(a.CustomXmlPart,this,"GetOnlyItem",1,[],!1,!1,null,4)},jr.prototype.getOnlyItemOrNullObject=function(){return p(a.CustomXmlPart,this,"GetOnlyItemOrNullObject",1,[],!1,!1,null,4)},jr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},jr.prototype._handleResult=function(e){if(xr.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.CustomXmlPart,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},jr.prototype.load=function(e){return b(this,e)},jr.prototype.retrieve=function(e){return v(this,e)},jr.prototype._handleIdResult=function(e){xr.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},jr.prototype._handleRetrieveResult=function(e,t){var n=this;xr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)})},jr.prototype.track=function(){return this.context.trackedObjects.add(this),this},jr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},jr.prototype.toJSON=function(){return O(this,{},{},this.m__items)},jr.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.CustomXmlPart,!0,n,e,t)},function(e){return n.m__items=e})},jr);function jr(){return null!==xr&&xr.apply(this,arguments)||this}a.CustomXmlPartScopedCollection=kr;var wr,Fr="Document",Lr=(wr=OfficeExtension.ClientObject,__extends(Mr,wr),Object.defineProperty(Mr.prototype,"_className",{get:function(){return"Document"},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_scalarPropertyNames",{get:function(){return["saved","_ReferenceId","allowCloseOnUntitled","changeTrackingMode","autoSaveOn","languageDetected","autoHyphenation","consecutiveHyphensLimit","hyphenateCaps","path","type","hyphenationZone","fullName","kind","isReadOnly","isMasterDocument","defaultTabStop","areTrueTypeFontsEmbedded","isFormsDataSaved","isReadOnlyRecommended","isFontsSubsetSaved","isCompatible","isSubdocument","saveFormat","protectionType","areStylesUpdatedOnOpen","isGrammarChecked","isSpellingChecked","areGrammaticalErrorsShown","areSpellingErrorsShown","isPostScriptPrintedOverText","isFormsDataPrinted","password","writePassword","hasPassword","isWriteReserved","isUserControl","isFinal","hasVbProject","encryptionProvider","areMathDefaultsUsed","currentRsid","compatibilityMode","isChartDataPointTracked","isInAutoSave","isInFormsDesign","codeName","isSnappedToGrid","isSnappedToShapes","gridDistanceHorizontal","gridDistanceVertical","gridOriginHorizontal","gridOriginVertical","gridSpaceBetweenHorizontalLines","gridSpaceBetweenVerticalLines","gridIsOriginFromMargin","isKerningByAlgorithm","justificationMode","farEastLineBreakLevel","noLineBreakBefore","noLineBreakAfter","trackRevisions","printRevisions","activeTheme","activeThemeDisplayName","farEastLineBreakLanguage","openEncoding","saveEncoding","isOptimizedForWord97","isVbaSigned","areNewerFeaturesDisabled","doNotEmbedSystemFonts","defaultTargetFrame","removePersonalInformationOnSave","textEncoding","textLineEnding","passwordEncryptionProvider","passwordEncryptionAlgorithm","passwordEncryptionKeyLength","areFilePropertiesPasswordEncrypted","isLinguisticDataEmbedded","isStyleEnforced","isAutoFormatOverrideOn","xmlAreAdvancedErrorsShown","xmlIsXsltUsedWhenSaving","xmlSaveThroughXslt","readingModeIsLayoutFrozen","trackedChangesAreDateAndTimeRemoved","readingLayoutSizeX","readingLayoutSizeY","trackMoves","trackFormatting","isThemeLocked","isQuickStyleSetLocked","originalDocumentTitle","revisedDocumentTitle","formattingIsNextLevelShown","formattingIsUserStyleNameShown"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Saved","_ReferenceId","AllowCloseOnUntitled","ChangeTrackingMode","AutoSaveOn","LanguageDetected","AutoHyphenation","ConsecutiveHyphensLimit","HyphenateCaps","Path","Type","HyphenationZone","FullName","Kind","IsReadOnly","IsMasterDocument","DefaultTabStop","AreTrueTypeFontsEmbedded","IsFormsDataSaved","IsReadOnlyRecommended","IsFontsSubsetSaved","IsCompatible","IsSubdocument","SaveFormat","ProtectionType","AreStylesUpdatedOnOpen","IsGrammarChecked","IsSpellingChecked","AreGrammaticalErrorsShown","AreSpellingErrorsShown","IsPostScriptPrintedOverText","IsFormsDataPrinted","Password","WritePassword","HasPassword","IsWriteReserved","IsUserControl","IsFinal","HasVbProject","EncryptionProvider","AreMathDefaultsUsed","CurrentRsid","CompatibilityMode","IsChartDataPointTracked","IsInAutoSave","IsInFormsDesign","CodeName","IsSnappedToGrid","IsSnappedToShapes","GridDistanceHorizontal","GridDistanceVertical","GridOriginHorizontal","GridOriginVertical","GridSpaceBetweenHorizontalLines","GridSpaceBetweenVerticalLines","GridIsOriginFromMargin","IsKerningByAlgorithm","JustificationMode","FarEastLineBreakLevel","NoLineBreakBefore","NoLineBreakAfter","TrackRevisions","PrintRevisions","ActiveTheme","ActiveThemeDisplayName","FarEastLineBreakLanguage","OpenEncoding","SaveEncoding","IsOptimizedForWord97","IsVbaSigned","AreNewerFeaturesDisabled","DoNotEmbedSystemFonts","DefaultTargetFrame","RemovePersonalInformationOnSave","TextEncoding","TextLineEnding","PasswordEncryptionProvider","PasswordEncryptionAlgorithm","PasswordEncryptionKeyLength","AreFilePropertiesPasswordEncrypted","IsLinguisticDataEmbedded","IsStyleEnforced","IsAutoFormatOverrideOn","XmlAreAdvancedErrorsShown","XmlIsXsltUsedWhenSaving","XmlSaveThroughXslt","ReadingModeIsLayoutFrozen","TrackedChangesAreDateAndTimeRemoved","ReadingLayoutSizeX","ReadingLayoutSizeY","TrackMoves","TrackFormatting","IsThemeLocked","IsQuickStyleSetLocked","OriginalDocumentTitle","RevisedDocumentTitle","FormattingIsNextLevelShown","FormattingIsUserStyleNameShown"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!1,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!1,!0,!0,!1,!1,!0,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_navigationPropertyNames",{get:function(){return["sections","body","contentControls","properties","settings","customXmlParts","windows","activeWindow","attachedTemplate","documentLibraryVersions","frames","hyperlinks","bibliography","pageSetup","bookmarks","indexes","revisions","selection","listTemplates","coauthoring","tablesOfAuthorities","tableOfAuthoritiesCategories","tablesOfContents","tablesOfFigures","builtInDocumentProperties","customDocumentProperties","tables","comments","paragraphs","words","sentences","characters","fields","styles","content","storyRanges","lists","background","listParagraphs","readabilityStatistics","grammaticalErrors","spellingErrors","webSettings"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"activeWindow",{get:function(){return _("Document.activeWindow","WordApiDesktop","1.2",l),this._Act||(this._Act=e(a.Window,this,"ActiveWindow",!1,4)),this._Act},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"attachedTemplate",{get:function(){return _("Document.attachedTemplate","WordApiDesktop","1.3",l),this._At||(this._At=e(a.Template,this,"AttachedTemplate",!1,4)),this._At},set:function(e){this._At=e,h(this,"AttachedTemplate",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"background",{get:function(){return _("Document.background","WordApiDesktop","1.4",l),this._B||(this._B=e(a.Shape,this,"Background",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"bibliography",{get:function(){return _("Document.bibliography","WordApiDesktop","1.3",l),this._Bi||(this._Bi=e(a.Bibliography,this,"Bibliography",!1,4)),this._Bi},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"body",{get:function(){return this._Bo||(this._Bo=e(a.Body,this,"Body",!1,4)),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"bookmarks",{get:function(){return _("Document.bookmarks","WordApiDesktop","1.4",l),this._Boo||(this._Boo=e(a.BookmarkCollection,this,"Bookmarks",!0,4)),this._Boo},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"builtInDocumentProperties",{get:function(){return _("Document.builtInDocumentProperties","WordApiDesktop","1.4",l),this._Bu||(this._Bu=e(a.DocumentProperties,this,"BuiltInDocumentProperties",!1,4)),this._Bu},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"characters",{get:function(){return _("Document.characters","WordApiDesktop","1.4",l),this._Ch||(this._Ch=e(a.RangeScopedCollection,this,"Characters",!0,4)),this._Ch},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"coauthoring",{get:function(){return _("Document.coauthoring","WordApiDesktop","1.4",l),this._Co||(this._Co=e(a.Coauthoring,this,"Coauthoring",!1,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"comments",{get:function(){return _("Document.comments","WordApiDesktop","1.4",l),this._Com||(this._Com=e(a.CommentCollection,this,"Comments",!0,4)),this._Com},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"content",{get:function(){return _("Document.content","WordApiDesktop","1.4",l),this._Cont||(this._Cont=e(a.Range,this,"Content",!1,4)),this._Cont},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"contentControls",{get:function(){return this._Conte||(this._Conte=e(a.ContentControlCollection,this,"ContentControls",!0,4)),this._Conte},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"customDocumentProperties",{get:function(){return _("Document.customDocumentProperties","WordApiDesktop","1.4",l),this._Cus||(this._Cus=e(a.DocumentProperties,this,"CustomDocumentProperties",!1,4)),this._Cus},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"customXmlParts",{get:function(){return _("Document.customXmlParts",u,"1.4",l),this._Cust||(this._Cust=e(a.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._Cust},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"documentLibraryVersions",{get:function(){return _("Document.documentLibraryVersions","WordApiDesktop","1.3",l),this._Do||(this._Do=e(a.DocumentLibraryVersionCollection,this,"DocumentLibraryVersions",!0,4)),this._Do},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"fields",{get:function(){return _("Document.fields","WordApiDesktop","1.4",l),this._Fi||(this._Fi=e(a.FieldCollection,this,"Fields",!0,4)),this._Fi},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"frames",{get:function(){return _("Document.frames","WordApiDesktop","1.3",l),this._Fr||(this._Fr=e(a.FrameCollection,this,"Frames",!0,4)),this._Fr},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"grammaticalErrors",{get:function(){return _("Document.grammaticalErrors","WordApiDesktop","1.4",l),this._G||(this._G=e(a.RangeCollection,this,"GrammaticalErrors",!0,4)),this._G},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"hyperlinks",{get:function(){return _("Document.hyperlinks","WordApiDesktop","1.3",l),this._Hy||(this._Hy=e(a.HyperlinkCollection,this,"Hyperlinks",!0,4)),this._Hy},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"indexes",{get:function(){return _("Document.indexes","WordApiDesktop","1.4",l),this._I||(this._I=e(a.IndexCollection,this,"Indexes",!0,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"listParagraphs",{get:function(){return _("Document.listParagraphs","WordApiDesktop","1.4",l),this._Li||(this._Li=e(a.ParagraphCollection,this,"ListParagraphs",!0,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"listTemplates",{get:function(){return _("Document.listTemplates","WordApiDesktop","1.4",l),this._List||(this._List=e(a.ListTemplateCollection,this,"ListTemplates",!0,4)),this._List},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"lists",{get:function(){return _("Document.lists","WordApiDesktop","1.4",l),this._Lis||(this._Lis=e(a.ListCollection,this,"Lists",!0,4)),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"pageSetup",{get:function(){return _("Document.pageSetup","WordApiDesktop","1.3",l),this._P||(this._P=e(a.PageSetup,this,"PageSetup",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"paragraphs",{get:function(){return _("Document.paragraphs","WordApiDesktop","1.4",l),this._Pa||(this._Pa=e(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"properties",{get:function(){return _("Document.properties",u,"1.3",l),this._Pro||(this._Pro=e(a.DocumentProperties,this,"Properties",!1,4)),this._Pro},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"readabilityStatistics",{get:function(){return _("Document.readabilityStatistics","WordApiDesktop","1.4",l),this._R||(this._R=e(a.ReadabilityStatisticCollection,this,"ReadabilityStatistics",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"revisions",{get:function(){return _("Document.revisions","WordApiDesktop","1.4",l),this._Revi||(this._Revi=e(a.RevisionCollection,this,"Revisions",!0,4)),this._Revi},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"sections",{get:function(){return this._Se||(this._Se=e(a.SectionCollection,this,"Sections",!0,4)),this._Se},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"selection",{get:function(){return _("Document.selection","WordApiDesktop","1.4",l),this._Sel||(this._Sel=e(a.Selection,this,"Selection",!1,4)),this._Sel},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"sentences",{get:function(){return _("Document.sentences","WordApiDesktop","1.4",l),this._Sen||(this._Sen=e(a.RangeScopedCollection,this,"Sentences",!0,4)),this._Sen},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"settings",{get:function(){return _("Document.settings",u,"1.4",l),this._Set||(this._Set=e(a.SettingCollection,this,"Settings",!0,4)),this._Set},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"spellingErrors",{get:function(){return _("Document.spellingErrors","WordApiDesktop","1.4",l),this._Sp||(this._Sp=e(a.RangeCollection,this,"SpellingErrors",!0,4)),this._Sp},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"storyRanges",{get:function(){return _("Document.storyRanges","WordApiDesktop","1.4",l),this._St||(this._St=e(a.RangeCollection,this,"StoryRanges",!0,4)),this._St},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"styles",{get:function(){return _("Document.styles","WordApiDesktop","1.4",l),this._Sty||(this._Sty=e(a.StyleCollection,this,"Styles",!0,4)),this._Sty},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"tableOfAuthoritiesCategories",{get:function(){return _("Document.tableOfAuthoritiesCategories","WordApiDesktop","1.4",l),this._T||(this._T=e(a.TableOfAuthoritiesCategoryCollection,this,"TableOfAuthoritiesCategories",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"tables",{get:function(){return _("Document.tables","WordApiDesktop","1.4",l),this._Ta||(this._Ta=e(a.TableCollection,this,"Tables",!0,4)),this._Ta},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"tablesOfAuthorities",{get:function(){return _("Document.tablesOfAuthorities","WordApiDesktop","1.4",l),this._Tab||(this._Tab=e(a.TableOfAuthoritiesCollection,this,"TablesOfAuthorities",!0,4)),this._Tab},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"tablesOfContents",{get:function(){return _("Document.tablesOfContents","WordApiDesktop","1.4",l),this._Tabl||(this._Tabl=e(a.TableOfContentsCollection,this,"TablesOfContents",!0,4)),this._Tabl},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"tablesOfFigures",{get:function(){return _("Document.tablesOfFigures","WordApiDesktop","1.4",l),this._Table||(this._Table=e(a.TableOfFiguresCollection,this,"TablesOfFigures",!0,4)),this._Table},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"webSettings",{get:function(){return _("Document.webSettings","WordApiDesktop","1.4",l),this._W||(this._W=e(a.WebSettings,this,"WebSettings",!1,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"windows",{get:function(){return _("Document.windows","WordApiDesktop","1.2",l),this._Wi||(this._Wi=e(a.WindowCollection,this,"Windows",!0,4)),this._Wi},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"words",{get:function(){return _("Document.words","WordApiDesktop","1.4",l),this._Wo||(this._Wo=e(a.RangeScopedCollection,this,"Words",!0,4)),this._Wo},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"activeTheme",{get:function(){return m("activeTheme",this._A,Fr,this._isNull),_("Document.activeTheme","WordApiDesktop","1.4",l),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"activeThemeDisplayName",{get:function(){return m("activeThemeDisplayName",this._Ac,Fr,this._isNull),_("Document.activeThemeDisplayName","WordApiDesktop","1.4",l),this._Ac},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"allowCloseOnUntitled",{get:function(){return m("allowCloseOnUntitled",this._Al,Fr,this._isNull),this._Al},set:function(e){this._Al=e,h(this,"AllowCloseOnUntitled",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"areFilePropertiesPasswordEncrypted",{get:function(){return m("areFilePropertiesPasswordEncrypted",this._Ar,Fr,this._isNull),_("Document.areFilePropertiesPasswordEncrypted","WordApiDesktop","1.4",l),this._Ar},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"areGrammaticalErrorsShown",{get:function(){return m("areGrammaticalErrorsShown",this._Are,Fr,this._isNull),_("Document.areGrammaticalErrorsShown","WordApiDesktop","1.4",l),this._Are},set:function(e){this._Are=e,h(this,"AreGrammaticalErrorsShown",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"areMathDefaultsUsed",{get:function(){return m("areMathDefaultsUsed",this._AreM,Fr,this._isNull),_("Document.areMathDefaultsUsed","WordApiDesktop","1.4",l),this._AreM},set:function(e){this._AreM=e,h(this,"AreMathDefaultsUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"areNewerFeaturesDisabled",{get:function(){return m("areNewerFeaturesDisabled",this._AreN,Fr,this._isNull),_("Document.areNewerFeaturesDisabled","WordApiDesktop","1.4",l),this._AreN},set:function(e){this._AreN=e,h(this,"AreNewerFeaturesDisabled",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"areSpellingErrorsShown",{get:function(){return m("areSpellingErrorsShown",this._AreS,Fr,this._isNull),_("Document.areSpellingErrorsShown","WordApiDesktop","1.4",l),this._AreS},set:function(e){this._AreS=e,h(this,"AreSpellingErrorsShown",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"areStylesUpdatedOnOpen",{get:function(){return m("areStylesUpdatedOnOpen",this._AreSt,Fr,this._isNull),_("Document.areStylesUpdatedOnOpen","WordApiDesktop","1.4",l),this._AreSt},set:function(e){this._AreSt=e,h(this,"AreStylesUpdatedOnOpen",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"areTrueTypeFontsEmbedded",{get:function(){return m("areTrueTypeFontsEmbedded",this._AreT,Fr,this._isNull),_("Document.areTrueTypeFontsEmbedded","WordApiDesktop","1.4",l),this._AreT},set:function(e){this._AreT=e,h(this,"AreTrueTypeFontsEmbedded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"autoHyphenation",{get:function(){return m("autoHyphenation",this._Au,Fr,this._isNull),_("Document.autoHyphenation","WordApiDesktop","1.3",l),this._Au},set:function(e){this._Au=e,h(this,"AutoHyphenation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"autoSaveOn",{get:function(){return m("autoSaveOn",this._Aut,Fr,this._isNull),_("Document.autoSaveOn","WordApiDesktop","1.3",l),this._Aut},set:function(e){this._Aut=e,h(this,"AutoSaveOn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"changeTrackingMode",{get:function(){return m("changeTrackingMode",this._C,Fr,this._isNull),_("Document.changeTrackingMode",u,"1.4",l),this._C},set:function(e){this._C=e,h(this,"ChangeTrackingMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"codeName",{get:function(){return m("codeName",this._Cod,Fr,this._isNull),_("Document.codeName","WordApiDesktop","1.4",l),this._Cod},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"compatibilityMode",{get:function(){return m("compatibilityMode",this._Comp,Fr,this._isNull),_("Document.compatibilityMode","WordApiDesktop","1.4",l),this._Comp},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"consecutiveHyphensLimit",{get:function(){return m("consecutiveHyphensLimit",this._Con,Fr,this._isNull),_("Document.consecutiveHyphensLimit","WordApiDesktop","1.3",l),this._Con},set:function(e){this._Con=e,h(this,"ConsecutiveHyphensLimit",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"currentRsid",{get:function(){return m("currentRsid",this._Cu,Fr,this._isNull),_("Document.currentRsid","WordApiDesktop","1.4",l),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"defaultTabStop",{get:function(){return m("defaultTabStop",this._D,Fr,this._isNull),_("Document.defaultTabStop","WordApiDesktop","1.4",l),this._D},set:function(e){this._D=e,h(this,"DefaultTabStop",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"defaultTargetFrame",{get:function(){return m("defaultTargetFrame",this._De,Fr,this._isNull),_("Document.defaultTargetFrame","WordApiDesktop","1.4",l),this._De},set:function(e){this._De=e,h(this,"DefaultTargetFrame",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"doNotEmbedSystemFonts",{get:function(){return m("doNotEmbedSystemFonts",this._DoN,Fr,this._isNull),_("Document.doNotEmbedSystemFonts","WordApiDesktop","1.4",l),this._DoN},set:function(e){this._DoN=e,h(this,"DoNotEmbedSystemFonts",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"encryptionProvider",{get:function(){return m("encryptionProvider",this._E,Fr,this._isNull),_("Document.encryptionProvider","WordApiDesktop","1.4",l),this._E},set:function(e){this._E=e,h(this,"EncryptionProvider",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"farEastLineBreakLanguage",{get:function(){return m("farEastLineBreakLanguage",this._F,Fr,this._isNull),_("Document.farEastLineBreakLanguage","WordApiDesktop","1.4",l),this._F},set:function(e){this._F=e,h(this,"FarEastLineBreakLanguage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"farEastLineBreakLevel",{get:function(){return m("farEastLineBreakLevel",this._Fa,Fr,this._isNull),_("Document.farEastLineBreakLevel","WordApiDesktop","1.4",l),this._Fa},set:function(e){this._Fa=e,h(this,"FarEastLineBreakLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"formattingIsNextLevelShown",{get:function(){return m("formattingIsNextLevelShown",this._Fo,Fr,this._isNull),_("Document.formattingIsNextLevelShown","WordApiDesktop","1.4",l),this._Fo},set:function(e){this._Fo=e,h(this,"FormattingIsNextLevelShown",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"formattingIsUserStyleNameShown",{get:function(){return m("formattingIsUserStyleNameShown",this._For,Fr,this._isNull),_("Document.formattingIsUserStyleNameShown","WordApiDesktop","1.4",l),this._For},set:function(e){this._For=e,h(this,"FormattingIsUserStyleNameShown",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"fullName",{get:function(){return m("fullName",this._Fu,Fr,this._isNull),_("Document.fullName","WordApiDesktop","1.4",l),this._Fu},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"gridDistanceHorizontal",{get:function(){return m("gridDistanceHorizontal",this._Gr,Fr,this._isNull),_("Document.gridDistanceHorizontal","WordApiDesktop","1.4",l),this._Gr},set:function(e){this._Gr=e,h(this,"GridDistanceHorizontal",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"gridDistanceVertical",{get:function(){return m("gridDistanceVertical",this._Gri,Fr,this._isNull),_("Document.gridDistanceVertical","WordApiDesktop","1.4",l),this._Gri},set:function(e){this._Gri=e,h(this,"GridDistanceVertical",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"gridIsOriginFromMargin",{get:function(){return m("gridIsOriginFromMargin",this._Grid,Fr,this._isNull),_("Document.gridIsOriginFromMargin","WordApiDesktop","1.4",l),this._Grid},set:function(e){this._Grid=e,h(this,"GridIsOriginFromMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"gridOriginHorizontal",{get:function(){return m("gridOriginHorizontal",this._GridO,Fr,this._isNull),_("Document.gridOriginHorizontal","WordApiDesktop","1.4",l),this._GridO},set:function(e){this._GridO=e,h(this,"GridOriginHorizontal",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"gridOriginVertical",{get:function(){return m("gridOriginVertical",this._GridOr,Fr,this._isNull),_("Document.gridOriginVertical","WordApiDesktop","1.4",l),this._GridOr},set:function(e){this._GridOr=e,h(this,"GridOriginVertical",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"gridSpaceBetweenHorizontalLines",{get:function(){return m("gridSpaceBetweenHorizontalLines",this._GridS,Fr,this._isNull),_("Document.gridSpaceBetweenHorizontalLines","WordApiDesktop","1.4",l),this._GridS},set:function(e){this._GridS=e,h(this,"GridSpaceBetweenHorizontalLines",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"gridSpaceBetweenVerticalLines",{get:function(){return m("gridSpaceBetweenVerticalLines",this._GridSp,Fr,this._isNull),_("Document.gridSpaceBetweenVerticalLines","WordApiDesktop","1.4",l),this._GridSp},set:function(e){this._GridSp=e,h(this,"GridSpaceBetweenVerticalLines",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"hasPassword",{get:function(){return m("hasPassword",this._H,Fr,this._isNull),_("Document.hasPassword","WordApiDesktop","1.4",l),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"hasVbProject",{get:function(){return m("hasVbProject",this._Ha,Fr,this._isNull),_("Document.hasVbProject","WordApiDesktop","1.4",l),this._Ha},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"hyphenateCaps",{get:function(){return m("hyphenateCaps",this._Hyp,Fr,this._isNull),_("Document.hyphenateCaps","WordApiDesktop","1.3",l),this._Hyp},set:function(e){this._Hyp=e,h(this,"HyphenateCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"hyphenationZone",{get:function(){return m("hyphenationZone",this._Hyph,Fr,this._isNull),_("Document.hyphenationZone","WordApiDesktop","1.4",l),this._Hyph},set:function(e){this._Hyph=e,h(this,"HyphenationZone",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isAutoFormatOverrideOn",{get:function(){return m("isAutoFormatOverrideOn",this._Is,Fr,this._isNull),_("Document.isAutoFormatOverrideOn","WordApiDesktop","1.4",l),this._Is},set:function(e){this._Is=e,h(this,"IsAutoFormatOverrideOn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isChartDataPointTracked",{get:function(){return m("isChartDataPointTracked",this._IsC,Fr,this._isNull),_("Document.isChartDataPointTracked","WordApiDesktop","1.4",l),this._IsC},set:function(e){this._IsC=e,h(this,"IsChartDataPointTracked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isCompatible",{get:function(){return m("isCompatible",this._IsCo,Fr,this._isNull),_("Document.isCompatible","WordApiDesktop","1.4",l),this._IsCo},set:function(e){this._IsCo=e,h(this,"IsCompatible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isFinal",{get:function(){return m("isFinal",this._IsF,Fr,this._isNull),_("Document.isFinal","WordApiDesktop","1.4",l),this._IsF},set:function(e){this._IsF=e,h(this,"IsFinal",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isFontsSubsetSaved",{get:function(){return m("isFontsSubsetSaved",this._IsFo,Fr,this._isNull),_("Document.isFontsSubsetSaved","WordApiDesktop","1.4",l),this._IsFo},set:function(e){this._IsFo=e,h(this,"IsFontsSubsetSaved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isFormsDataPrinted",{get:function(){return m("isFormsDataPrinted",this._IsFor,Fr,this._isNull),_("Document.isFormsDataPrinted","WordApiDesktop","1.4",l),this._IsFor},set:function(e){this._IsFor=e,h(this,"IsFormsDataPrinted",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isFormsDataSaved",{get:function(){return m("isFormsDataSaved",this._IsForm,Fr,this._isNull),_("Document.isFormsDataSaved","WordApiDesktop","1.4",l),this._IsForm},set:function(e){this._IsForm=e,h(this,"IsFormsDataSaved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isGrammarChecked",{get:function(){return m("isGrammarChecked",this._IsG,Fr,this._isNull),_("Document.isGrammarChecked","WordApiDesktop","1.4",l),this._IsG},set:function(e){this._IsG=e,h(this,"IsGrammarChecked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isInAutoSave",{get:function(){return m("isInAutoSave",this._IsI,Fr,this._isNull),_("Document.isInAutoSave","WordApiDesktop","1.4",l),this._IsI},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isInFormsDesign",{get:function(){return m("isInFormsDesign",this._IsIn,Fr,this._isNull),_("Document.isInFormsDesign","WordApiDesktop","1.4",l),this._IsIn},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isKerningByAlgorithm",{get:function(){return m("isKerningByAlgorithm",this._IsK,Fr,this._isNull),_("Document.isKerningByAlgorithm","WordApiDesktop","1.4",l),this._IsK},set:function(e){this._IsK=e,h(this,"IsKerningByAlgorithm",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isLinguisticDataEmbedded",{get:function(){return m("isLinguisticDataEmbedded",this._IsL,Fr,this._isNull),_("Document.isLinguisticDataEmbedded","WordApiDesktop","1.4",l),this._IsL},set:function(e){this._IsL=e,h(this,"IsLinguisticDataEmbedded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isMasterDocument",{get:function(){return m("isMasterDocument",this._IsM,Fr,this._isNull),_("Document.isMasterDocument","WordApiDesktop","1.4",l),this._IsM},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isOptimizedForWord97",{get:function(){return m("isOptimizedForWord97",this._IsO,Fr,this._isNull),_("Document.isOptimizedForWord97","WordApiDesktop","1.4",l),this._IsO},set:function(e){this._IsO=e,h(this,"IsOptimizedForWord97",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isPostScriptPrintedOverText",{get:function(){return m("isPostScriptPrintedOverText",this._IsP,Fr,this._isNull),_("Document.isPostScriptPrintedOverText","WordApiDesktop","1.4",l),this._IsP},set:function(e){this._IsP=e,h(this,"IsPostScriptPrintedOverText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isQuickStyleSetLocked",{get:function(){return m("isQuickStyleSetLocked",this._IsQ,Fr,this._isNull),_("Document.isQuickStyleSetLocked","WordApiDesktop","1.4",l),this._IsQ},set:function(e){this._IsQ=e,h(this,"IsQuickStyleSetLocked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isReadOnly",{get:function(){return m("isReadOnly",this._IsR,Fr,this._isNull),_("Document.isReadOnly","WordApiDesktop","1.4",l),this._IsR},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isReadOnlyRecommended",{get:function(){return m("isReadOnlyRecommended",this._IsRe,Fr,this._isNull),_("Document.isReadOnlyRecommended","WordApiDesktop","1.4",l),this._IsRe},set:function(e){this._IsRe=e,h(this,"IsReadOnlyRecommended",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isSnappedToGrid",{get:function(){return m("isSnappedToGrid",this._IsS,Fr,this._isNull),_("Document.isSnappedToGrid","WordApiDesktop","1.4",l),this._IsS},set:function(e){this._IsS=e,h(this,"IsSnappedToGrid",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isSnappedToShapes",{get:function(){return m("isSnappedToShapes",this._IsSn,Fr,this._isNull),_("Document.isSnappedToShapes","WordApiDesktop","1.4",l),this._IsSn},set:function(e){this._IsSn=e,h(this,"IsSnappedToShapes",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isSpellingChecked",{get:function(){return m("isSpellingChecked",this._IsSp,Fr,this._isNull),_("Document.isSpellingChecked","WordApiDesktop","1.4",l),this._IsSp},set:function(e){this._IsSp=e,h(this,"IsSpellingChecked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isStyleEnforced",{get:function(){return m("isStyleEnforced",this._IsSt,Fr,this._isNull),_("Document.isStyleEnforced","WordApiDesktop","1.4",l),this._IsSt},set:function(e){this._IsSt=e,h(this,"IsStyleEnforced",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isSubdocument",{get:function(){return m("isSubdocument",this._IsSu,Fr,this._isNull),_("Document.isSubdocument","WordApiDesktop","1.4",l),this._IsSu},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isThemeLocked",{get:function(){return m("isThemeLocked",this._IsT,Fr,this._isNull),_("Document.isThemeLocked","WordApiDesktop","1.4",l),this._IsT},set:function(e){this._IsT=e,h(this,"IsThemeLocked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isUserControl",{get:function(){return m("isUserControl",this._IsU,Fr,this._isNull),_("Document.isUserControl","WordApiDesktop","1.4",l),this._IsU},set:function(e){this._IsU=e,h(this,"IsUserControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isVbaSigned",{get:function(){return m("isVbaSigned",this._IsV,Fr,this._isNull),_("Document.isVbaSigned","WordApiDesktop","1.4",l),this._IsV},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"isWriteReserved",{get:function(){return m("isWriteReserved",this._IsW,Fr,this._isNull),_("Document.isWriteReserved","WordApiDesktop","1.4",l),this._IsW},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"justificationMode",{get:function(){return m("justificationMode",this._J,Fr,this._isNull),_("Document.justificationMode","WordApiDesktop","1.4",l),this._J},set:function(e){this._J=e,h(this,"JustificationMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"kind",{get:function(){return m("kind",this._K,Fr,this._isNull),_("Document.kind","WordApiDesktop","1.4",l),this._K},set:function(e){this._K=e,h(this,"Kind",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"languageDetected",{get:function(){return m("languageDetected",this._L,Fr,this._isNull),_("Document.languageDetected","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,h(this,"LanguageDetected",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"noLineBreakAfter",{get:function(){return m("noLineBreakAfter",this._N,Fr,this._isNull),_("Document.noLineBreakAfter","WordApiDesktop","1.4",l),this._N},set:function(e){this._N=e,h(this,"NoLineBreakAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"noLineBreakBefore",{get:function(){return m("noLineBreakBefore",this._No,Fr,this._isNull),_("Document.noLineBreakBefore","WordApiDesktop","1.4",l),this._No},set:function(e){this._No=e,h(this,"NoLineBreakBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"openEncoding",{get:function(){return m("openEncoding",this._O,Fr,this._isNull),_("Document.openEncoding","WordApiDesktop","1.4",l),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"originalDocumentTitle",{get:function(){return m("originalDocumentTitle",this._Or,Fr,this._isNull),_("Document.originalDocumentTitle","WordApiDesktop","1.4",l),this._Or},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"password",{get:function(){return m("password",this._Pas,Fr,this._isNull),_("Document.password","WordApiDesktop","1.4",l),this._Pas},set:function(e){this._Pas=e,h(this,"Password",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"passwordEncryptionAlgorithm",{get:function(){return m("passwordEncryptionAlgorithm",this._Pass,Fr,this._isNull),_("Document.passwordEncryptionAlgorithm","WordApiDesktop","1.4",l),this._Pass},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"passwordEncryptionKeyLength",{get:function(){return m("passwordEncryptionKeyLength",this._Passw,Fr,this._isNull),_("Document.passwordEncryptionKeyLength","WordApiDesktop","1.4",l),this._Passw},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"passwordEncryptionProvider",{get:function(){return m("passwordEncryptionProvider",this._Passwo,Fr,this._isNull),_("Document.passwordEncryptionProvider","WordApiDesktop","1.4",l),this._Passwo},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"path",{get:function(){return m("path",this._Pat,Fr,this._isNull),_("Document.path","WordApiDesktop","1.4",l),this._Pat},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"printRevisions",{get:function(){return m("printRevisions",this._Pr,Fr,this._isNull),_("Document.printRevisions","WordApiDesktop","1.4",l),this._Pr},set:function(e){this._Pr=e,h(this,"PrintRevisions",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"protectionType",{get:function(){return m("protectionType",this._Prot,Fr,this._isNull),_("Document.protectionType","WordApiDesktop","1.4",l),this._Prot},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"readingLayoutSizeX",{get:function(){return m("readingLayoutSizeX",this._Re,Fr,this._isNull),_("Document.readingLayoutSizeX","WordApiDesktop","1.4",l),this._Re},set:function(e){this._Re=e,h(this,"ReadingLayoutSizeX",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"readingLayoutSizeY",{get:function(){return m("readingLayoutSizeY",this._Rea,Fr,this._isNull),_("Document.readingLayoutSizeY","WordApiDesktop","1.4",l),this._Rea},set:function(e){this._Rea=e,h(this,"ReadingLayoutSizeY",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"readingModeIsLayoutFrozen",{get:function(){return m("readingModeIsLayoutFrozen",this._Read,Fr,this._isNull),_("Document.readingModeIsLayoutFrozen","WordApiDesktop","1.4",l),this._Read},set:function(e){this._Read=e,h(this,"ReadingModeIsLayoutFrozen",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"removePersonalInformationOnSave",{get:function(){return m("removePersonalInformationOnSave",this._Rem,Fr,this._isNull),_("Document.removePersonalInformationOnSave","WordApiDesktop","1.4",l),this._Rem},set:function(e){this._Rem=e,h(this,"RemovePersonalInformationOnSave",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"revisedDocumentTitle",{get:function(){return m("revisedDocumentTitle",this._Rev,Fr,this._isNull),_("Document.revisedDocumentTitle","WordApiDesktop","1.4",l),this._Rev},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"saveEncoding",{get:function(){return m("saveEncoding",this._Sa,Fr,this._isNull),_("Document.saveEncoding","WordApiDesktop","1.4",l),this._Sa},set:function(e){this._Sa=e,h(this,"SaveEncoding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"saveFormat",{get:function(){return m("saveFormat",this._Sav,Fr,this._isNull),_("Document.saveFormat","WordApiDesktop","1.4",l),this._Sav},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"saved",{get:function(){return m("saved",this._S,Fr,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"textEncoding",{get:function(){return m("textEncoding",this._Te,Fr,this._isNull),_("Document.textEncoding","WordApiDesktop","1.4",l),this._Te},set:function(e){this._Te=e,h(this,"TextEncoding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"textLineEnding",{get:function(){return m("textLineEnding",this._Tex,Fr,this._isNull),_("Document.textLineEnding","WordApiDesktop","1.4",l),this._Tex},set:function(e){this._Tex=e,h(this,"TextLineEnding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"trackFormatting",{get:function(){return m("trackFormatting",this._Tra,Fr,this._isNull),_("Document.trackFormatting","WordApiDesktop","1.4",l),this._Tra},set:function(e){this._Tra=e,h(this,"TrackFormatting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"trackMoves",{get:function(){return m("trackMoves",this._Trac,Fr,this._isNull),_("Document.trackMoves","WordApiDesktop","1.4",l),this._Trac},set:function(e){this._Trac=e,h(this,"TrackMoves",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"trackRevisions",{get:function(){return m("trackRevisions",this._Track,Fr,this._isNull),_("Document.trackRevisions","WordApiDesktop","1.4",l),this._Track},set:function(e){this._Track=e,h(this,"TrackRevisions",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"trackedChangesAreDateAndTimeRemoved",{get:function(){return m("trackedChangesAreDateAndTimeRemoved",this._Tr,Fr,this._isNull),_("Document.trackedChangesAreDateAndTimeRemoved","WordApiDesktop","1.4",l),this._Tr},set:function(e){this._Tr=e,h(this,"TrackedChangesAreDateAndTimeRemoved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"type",{get:function(){return m("type",this._Ty,Fr,this._isNull),_("Document.type","WordApiDesktop","1.4",l),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"writePassword",{get:function(){return m("writePassword",this._Wr,Fr,this._isNull),_("Document.writePassword","WordApiDesktop","1.4",l),this._Wr},set:function(e){this._Wr=e,h(this,"WritePassword",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"xmlAreAdvancedErrorsShown",{get:function(){return m("xmlAreAdvancedErrorsShown",this._X,Fr,this._isNull),_("Document.xmlAreAdvancedErrorsShown","WordApiDesktop","1.4",l),this._X},set:function(e){this._X=e,h(this,"XmlAreAdvancedErrorsShown",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"xmlIsXsltUsedWhenSaving",{get:function(){return m("xmlIsXsltUsedWhenSaving",this._Xm,Fr,this._isNull),_("Document.xmlIsXsltUsedWhenSaving","WordApiDesktop","1.4",l),this._Xm},set:function(e){this._Xm=e,h(this,"XmlIsXsltUsedWhenSaving",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"xmlSaveThroughXslt",{get:function(){return m("xmlSaveThroughXslt",this._Xml,Fr,this._isNull),_("Document.xmlSaveThroughXslt","WordApiDesktop","1.4",l),this._Xml},set:function(e){this._Xml=e,h(this,"XmlSaveThroughXslt",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.m__ReferenceId,Fr,this._isNull),this.m__ReferenceId},enumerable:!0,configurable:!0}),Mr.prototype.set=function(e,t){this._recursivelySet(e,t,["allowCloseOnUntitled","changeTrackingMode","autoSaveOn","languageDetected","autoHyphenation","consecutiveHyphensLimit","hyphenateCaps"],["body","properties","activeWindow","bibliography","pageSetup"],["areGrammaticalErrorsShown","areMathDefaultsUsed","areNewerFeaturesDisabled","areSpellingErrorsShown","areStylesUpdatedOnOpen","areTrueTypeFontsEmbedded","attachedTemplate","background","bookmarks","builtInDocumentProperties","characters","coauthoring","comments","content","contentControls","customDocumentProperties","customXmlParts","defaultTabStop","defaultTargetFrame","documentLibraryVersions","doNotEmbedSystemFonts","encryptionProvider","farEastLineBreakLanguage","farEastLineBreakLevel","fields","formattingIsNextLevelShown","formattingIsUserStyleNameShown","frames","grammaticalErrors","gridDistanceHorizontal","gridDistanceVertical","gridIsOriginFromMargin","gridOriginHorizontal","gridOriginVertical","gridSpaceBetweenHorizontalLines","gridSpaceBetweenVerticalLines","hyperlinks","hyphenationZone","indexes","isAutoFormatOverrideOn","isChartDataPointTracked","isCompatible","isFinal","isFontsSubsetSaved","isFormsDataPrinted","isFormsDataSaved","isGrammarChecked","isKerningByAlgorithm","isLinguisticDataEmbedded","isOptimizedForWord97","isPostScriptPrintedOverText","isQuickStyleSetLocked","isReadOnlyRecommended","isSnappedToGrid","isSnappedToShapes","isSpellingChecked","isStyleEnforced","isThemeLocked","isUserControl","justificationMode","kind","listParagraphs","lists","listTemplates","noLineBreakAfter","noLineBreakBefore","paragraphs","password","printRevisions","readabilityStatistics","readingLayoutSizeX","readingLayoutSizeY","readingModeIsLayoutFrozen","removePersonalInformationOnSave","revisions","saveEncoding","sections","selection","sentences","settings","spellingErrors","storyRanges","styles","tableOfAuthoritiesCategories","tables","tablesOfAuthorities","tablesOfContents","tablesOfFigures","textEncoding","textLineEnding","trackedChangesAreDateAndTimeRemoved","trackFormatting","trackMoves","trackRevisions","webSettings","windows","words","writePassword","xmlAreAdvancedErrorsShown","xmlIsXsltUsedWhenSaving","xmlSaveThroughXslt"])},Mr.prototype.update=function(e){this._recursivelyUpdate(e)},Mr.prototype.acceptAllRevisions=function(){_("Document.acceptAllRevisions","WordApiDesktop","1.4",l),i(this,"AcceptAllRevisions",0,[],0,0)},Mr.prototype.acceptAllRevisionsShown=function(){_("Document.acceptAllRevisionsShown","WordApiDesktop","1.4",l),i(this,"AcceptAllRevisionsShown",0,[],0,0)},Mr.prototype.activate=function(){_("Document.activate","WordApiDesktop","1.4",l),i(this,"Activate",0,[],0,0)},Mr.prototype.addStyle=function(e,t){return _("Document.addStyle",u,"1.5",l),p(a.Style,this,"AddStyle",0,[e,t],!1,!1,null,0)},Mr.prototype.addToFavorites=function(){_("Document.addToFavorites","WordApiDesktop","1.4",l),i(this,"AddToFavorites",0,[],0,0)},Mr.prototype.applyQuickStyleSet=function(e){_("Document.applyQuickStyleSet","WordApiDesktop","1.4",l),i(this,"ApplyQuickStyleSet",0,[e],0,0)},Mr.prototype.applyTheme=function(e){_("Document.applyTheme","WordApiDesktop","1.4",l),i(this,"ApplyTheme",0,[e],0,0)},Mr.prototype.autoFormat=function(){_("Document.autoFormat","WordApiDesktop","1.4",l),i(this,"AutoFormat",0,[],0,0)},Mr.prototype.canCheckin=function(){return _("Document.canCheckin","WordApiDesktop","1.4",l),i(this,"CanCheckin",0,[],0,0)},Mr.prototype.checkConsistencyJapanese=function(){_("Document.checkConsistencyJapanese","WordApiDesktop","1.4",l),i(this,"CheckConsistencyJapanese",0,[],0,0)},Mr.prototype.checkGrammar=function(){_("Document.checkGrammar","WordApiDesktop","1.4",l),i(this,"CheckGrammar",0,[],0,0)},Mr.prototype.close=function(e){_("Document.close",u,"1.5",l),i(this,"Close",0,[e],0,0)},Mr.prototype.closePrintPreview=function(){_("Document.closePrintPreview","WordApiDesktop","1.4",l),i(this,"ClosePrintPreview",0,[],0,0)},Mr.prototype.compare=function(e,t){_("Document.compare","WordApiDesktop","1.1",l),i(this,"Compare",0,[e,t],0,0)},Mr.prototype.compareFromBase64=function(e,t){_("Document.compareFromBase64","WordApiDesktop","1.2",l),i(this,"CompareFromBase64",0,[e,t],0,0)},Mr.prototype.convert=function(){_("Document.convert","WordApiDesktop","1.4",l),i(this,"Convert",0,[],0,0)},Mr.prototype.convertAutoHyphens=function(){_("Document.convertAutoHyphens","WordApiDesktop","1.4",l),i(this,"ConvertAutoHyphens",0,[],0,0)},Mr.prototype.convertNumbersToText=function(e){_("Document.convertNumbersToText","WordApiDesktop","1.4",l),i(this,"ConvertNumbersToText",0,[e],0,0)},Mr.prototype.convertVietnameseDocument=function(e){_("Document.convertVietnameseDocument","WordApiDesktop","1.4",l),i(this,"ConvertVietnameseDocument",0,[e],0,0)},Mr.prototype.copyStylesFromTemplate=function(e){_("Document.copyStylesFromTemplate","WordApiDesktop","1.4",l),i(this,"CopyStylesFromTemplate",0,[e],0,0)},Mr.prototype.deleteAllComments=function(){_("Document.deleteAllComments","WordApiDesktop","1.4",l),i(this,"DeleteAllComments",0,[],0,0)},Mr.prototype.deleteAllCommentsShown=function(){_("Document.deleteAllCommentsShown","WordApiDesktop","1.4",l),i(this,"DeleteAllCommentsShown",0,[],0,0)},Mr.prototype.deleteAllInkAnnotations=function(){_("Document.deleteAllInkAnnotations","WordApiDesktop","1.4",l),i(this,"DeleteAllInkAnnotations",0,[],0,0)},Mr.prototype.deleteBookmark=function(e){_("Document.deleteBookmark",u,"1.4",l),i(this,"DeleteBookmark",0,[e],0,0)},Mr.prototype.detectLanguage=function(){_("Document.detectLanguage","WordApiDesktop","1.3",l),i(this,"DetectLanguage",0,[],0,0)},Mr.prototype.fitToPages=function(){_("Document.fitToPages","WordApiDesktop","1.4",l),i(this,"FitToPages",0,[],0,0)},Mr.prototype.freezeLayout=function(){_("Document.freezeLayout","WordApiDesktop","1.4",l),i(this,"FreezeLayout",0,[],0,0)},Mr.prototype.getAnnotationById=function(e){return _("Document.getAnnotationById",u,"1.7",l),p(a.Annotation,this,"GetAnnotationById",0,[e],!1,!1,null,0)},Mr.prototype.getAnnotationsByType=function(e){return _("Document.getAnnotationsByType","WordApiOnline","1.1",l),p(a.AugloopAnnotationCollection,this,"GetAnnotationsByType",1,[e],!0,!1,null,4)},Mr.prototype.getBookmarkRange=function(e){return _("Document.getBookmarkRange",u,"1.4",l),p(a.Range,this,"GetBookmarkRange",1,[e],!1,!1,null,4)},Mr.prototype.getBookmarkRangeOrNullObject=function(e){return _("Document.getBookmarkRangeOrNullObject",u,"1.4",l),p(a.Range,this,"GetBookmarkRangeOrNullObject",1,[e],!1,!1,null,4)},Mr.prototype.getContentControls=function(e){return _("Document.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},Mr.prototype.getCrossReferenceItems=function(e){return _("Document.getCrossReferenceItems","WordApiDesktop","1.4",l),i(this,"GetCrossReferenceItems",0,[e],0,0)},Mr.prototype.getEndnoteBody=function(){return _("Document.getEndnoteBody",u,"1.5",l),p(a.Body,this,"GetEndnoteBody",1,[],!1,!1,null,4)},Mr.prototype.getFootnoteBody=function(){return _("Document.getFootnoteBody",u,"1.5",l),p(a.Body,this,"GetFootnoteBody",1,[],!1,!1,null,4)},Mr.prototype.getMetadata=function(e){return i(this,"GetMetadata",1,[e],4,0)},Mr.prototype.getNeighborhoodTextAroundSelection=function(e){return i(this,"GetNeighborhoodTextAroundSelection",1,[e],5,0)},Mr.prototype.getParagraphByUniqueLocalId=function(e){return _("Document.getParagraphByUniqueLocalId",u,"1.6",l),p(a.Paragraph,this,"GetParagraphByUniqueLocalId",1,[e],!1,!1,null,4)},Mr.prototype.getSelection=function(){return p(a.Range,this,"GetSelection",1,[],!1,!0,null,4)},Mr.prototype.getStyles=function(){return _("Document.getStyles",u,"1.5",l),p(a.StyleCollection,this,"GetStyles",1,[],!0,!1,null,4)},Mr.prototype.importStylesFromJson=function(e,t){return _("Document.importStylesFromJson",u,"1.6",l),i(this,"ImportStylesFromJson",0,[e,t],0,0)},Mr.prototype.insertFileFromBase64=function(e,t,n){return _("Document.insertFileFromBase64",u,"1.5",l),p(a.SectionCollection,this,"InsertFileFromBase64",0,[e,t,n],!0,!0,null,0)},Mr.prototype.launchTapPane=function(e){i(this,"LaunchTapPane",1,[e],5,0)},Mr.prototype.lockServerFile=function(){_("Document.lockServerFile","WordApiDesktop","1.4",l),i(this,"LockServerFile",0,[],0,0)},Mr.prototype.makeCompatibilityDefault=function(){_("Document.makeCompatibilityDefault","WordApiDesktop","1.4",l),i(this,"MakeCompatibilityDefault",0,[],0,0)},Mr.prototype.manualHyphenation=function(){_("Document.manualHyphenation","WordApiDesktop","1.3",l),i(this,"ManualHyphenation",0,[],0,0)},Mr.prototype.post=function(){_("Document.post","WordApiDesktop","1.4",l),i(this,"Post",0,[],0,0)},Mr.prototype.presentIt=function(){_("Document.presentIt","WordApiDesktop","1.4",l),i(this,"PresentIt",0,[],0,0)},Mr.prototype.printPreview=function(){_("Document.printPreview","WordApiDesktop","1.4",l),i(this,"PrintPreview",0,[],0,0)},Mr.prototype.redo=function(e){return _("Document.redo","WordApiDesktop","1.4",l),i(this,"Redo",0,[e],0,0)},Mr.prototype.rejectAllRevisions=function(){_("Document.rejectAllRevisions","WordApiDesktop","1.4",l),i(this,"RejectAllRevisions",0,[],0,0)},Mr.prototype.rejectAllRevisionsShown=function(){_("Document.rejectAllRevisionsShown","WordApiDesktop","1.4",l),i(this,"RejectAllRevisionsShown",0,[],0,0)},Mr.prototype.reload=function(){_("Document.reload","WordApiDesktop","1.4",l),i(this,"Reload",0,[],0,0)},Mr.prototype.reloadAs=function(e){_("Document.reloadAs","WordApiDesktop","1.4",l),i(this,"ReloadAs",0,[e],0,0)},Mr.prototype.removeDocumentInformation=function(e){_("Document.removeDocumentInformation","WordApiDesktop","1.4",l),i(this,"RemoveDocumentInformation",0,[e],0,0)},Mr.prototype.removeLockedStyles=function(){_("Document.removeLockedStyles","WordApiDesktop","1.4",l),i(this,"RemoveLockedStyles",0,[],0,0)},Mr.prototype.removeNumbers=function(e){_("Document.removeNumbers","WordApiDesktop","1.4",l),i(this,"RemoveNumbers",0,[e],0,0)},Mr.prototype.removeTheme=function(){_("Document.removeTheme","WordApiDesktop","1.4",l),i(this,"RemoveTheme",0,[],0,0)},Mr.prototype.repaginate=function(){_("Document.repaginate","WordApiDesktop","1.4",l),i(this,"Repaginate",0,[],0,0)},Mr.prototype.resetFormFields=function(){_("Document.resetFormFields","WordApiDesktop","1.4",l),i(this,"ResetFormFields",0,[],0,0)},Mr.prototype.returnToLastReadPosition=function(){return _("Document.returnToLastReadPosition","WordApiDesktop","1.4",l),i(this,"ReturnToLastReadPosition",0,[],0,0)},Mr.prototype.runAutoMacro=function(e){_("Document.runAutoMacro","WordApiDesktop","1.4",l),i(this,"RunAutoMacro",0,[e],0,0)},Mr.prototype.save=function(e,t){i(this,"Save",0,[e,t],0,0)},Mr.prototype.saveAsQuickStyleSet=function(e){_("Document.saveAsQuickStyleSet","WordApiDesktop","1.4",l),i(this,"SaveAsQuickStyleSet",0,[e],0,0)},Mr.prototype.search=function(e,t){var n=ce.Document_Search(this,e,t),r=n.handled,i=n.result;return r?i:(_("Document.search",u,"1.7",l),p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4))},Mr.prototype.select=function(){_("Document.select","WordApiDesktop","1.4",l),i(this,"Select",0,[],0,0)},Mr.prototype.selectContentControlsByTag=function(e){return _("Document.selectContentControlsByTag","WordApiDesktop","1.4",l),p(a.ContentControlCollection,this,"SelectContentControlsByTag",0,[e],!0,!1,null,0)},Mr.prototype.selectContentControlsByTitle=function(e){return _("Document.selectContentControlsByTitle","WordApiDesktop","1.4",l),p(a.ContentControlCollection,this,"SelectContentControlsByTitle",0,[e],!0,!1,null,0)},Mr.prototype.selectLinkedControls=function(e){return _("Document.selectLinkedControls","WordApiDesktop","1.4",l),p(a.ContentControlCollection,this,"SelectLinkedControls",0,[e],!0,!1,null,0)},Mr.prototype.selectNodes=function(e,t){return _("Document.selectNodes","WordApiDesktop","1.4",l),p(a.XmlNodeCollection,this,"SelectNodes",0,[e,t],!0,!1,null,0)},Mr.prototype.selectSingleNode=function(e,t){return _("Document.selectSingleNode","WordApiDesktop","1.4",l),p(a.XmlNode,this,"SelectSingleNode",0,[e,t],!1,!1,null,0)},Mr.prototype.selectUnlinkedControls=function(e){return _("Document.selectUnlinkedControls","WordApiDesktop","1.4",l),p(a.ContentControlCollection,this,"SelectUnlinkedControls",0,[e],!0,!1,null,0)},Mr.prototype.sendFax=function(e,t){_("Document.sendFax","WordApiDesktop","1.4",l),i(this,"SendFax",0,[e,t],0,0)},Mr.prototype.sendMail=function(){_("Document.sendMail","WordApiDesktop","1.4",l),i(this,"SendMail",0,[],0,0)},Mr.prototype.setDefaultTableStyle=function(e,t){_("Document.setDefaultTableStyle","WordApiDesktop","1.4",l),i(this,"SetDefaultTableStyle",0,[e,t],0,0)},Mr.prototype.setMetadata=function(e,t){i(this,"SetMetadata",0,[e,t],0,0)},Mr.prototype.setMetadataOnTile=function(e,t,n){i(this,"SetMetadataOnTile",0,[e,t,n],0,0)},Mr.prototype.setNavigationPaneVisibility=function(e){_("Document.setNavigationPaneVisibility","WordApiOnline","1.1",l),i(this,"SetNavigationPaneVisibility",0,[e],1,0)},Mr.prototype.setPasswordEncryptionOptions=function(e,t,n,r){_("Document.setPasswordEncryptionOptions","WordApiDesktop","1.4",l),i(this,"SetPasswordEncryptionOptions",0,[e,t,n,r],0,0)},Mr.prototype.toggleFormsDesign=function(){_("Document.toggleFormsDesign","WordApiDesktop","1.4",l),i(this,"ToggleFormsDesign",0,[],0,0)},Mr.prototype.transformDocument=function(e,t){_("Document.transformDocument","WordApiDesktop","1.4",l),i(this,"TransformDocument",0,[e,t],0,0)},Mr.prototype.undo=function(e){return _("Document.undo","WordApiDesktop","1.4",l),i(this,"Undo",0,[e],0,0)},Mr.prototype.undoClear=function(){_("Document.undoClear","WordApiDesktop","1.4",l),i(this,"UndoClear",0,[],0,0)},Mr.prototype.unprotect=function(e){_("Document.unprotect","WordApiDesktop","1.4",l),i(this,"Unprotect",0,[e],0,0)},Mr.prototype.updateStyles=function(){_("Document.updateStyles","WordApiDesktop","1.4",l),i(this,"UpdateStyles",0,[],0,0)},Mr.prototype.viewCode=function(){_("Document.viewCode","WordApiDesktop","1.4",l),i(this,"ViewCode",0,[],0,0)},Mr.prototype.viewPropertyBrowser=function(){_("Document.viewPropertyBrowser","WordApiDesktop","1.4",l),i(this,"ViewPropertyBrowser",0,[],0,0)},Mr.prototype.webPagePreview=function(){_("Document.webPagePreview","WordApiDesktop","1.4",l),i(this,"WebPagePreview",0,[],0,0)},Mr.prototype._GetObjectByReferenceId=function(e){return i(this,"_GetObjectByReferenceId",1,[e],4,0)},Mr.prototype._GetObjectTypeNameByReferenceId=function(e){return i(this,"_GetObjectTypeNameByReferenceId",1,[e],4,0)},Mr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Mr.prototype._RegisterEvent=function(e,t){i(this,"_RegisterEvent",1,[e,t],4,0)},Mr.prototype._RemoveAllReferences=function(){i(this,"_RemoveAllReferences",1,[],4,0)},Mr.prototype._RemoveReference=function(e){i(this,"_RemoveReference",1,[e],4,0)},Mr.prototype._Search2=function(e,t){return _("Document._Search2",u,"1.7",l),p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},Mr.prototype._UnregisterEvent=function(e,t){i(this,"_UnregisterEvent",1,[e,t],4,0)},Mr.prototype._handleResult=function(e){if(wr.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.ActiveTheme)||(this._A=t.ActiveTheme),y(t.ActiveThemeDisplayName)||(this._Ac=t.ActiveThemeDisplayName),y(t.AllowCloseOnUntitled)||(this._Al=t.AllowCloseOnUntitled),y(t.AreFilePropertiesPasswordEncrypted)||(this._Ar=t.AreFilePropertiesPasswordEncrypted),y(t.AreGrammaticalErrorsShown)||(this._Are=t.AreGrammaticalErrorsShown),y(t.AreMathDefaultsUsed)||(this._AreM=t.AreMathDefaultsUsed),y(t.AreNewerFeaturesDisabled)||(this._AreN=t.AreNewerFeaturesDisabled),y(t.AreSpellingErrorsShown)||(this._AreS=t.AreSpellingErrorsShown),y(t.AreStylesUpdatedOnOpen)||(this._AreSt=t.AreStylesUpdatedOnOpen),y(t.AreTrueTypeFontsEmbedded)||(this._AreT=t.AreTrueTypeFontsEmbedded),y(t.AutoHyphenation)||(this._Au=t.AutoHyphenation),y(t.AutoSaveOn)||(this._Aut=t.AutoSaveOn),y(t.ChangeTrackingMode)||(this._C=t.ChangeTrackingMode),y(t.CodeName)||(this._Cod=t.CodeName),y(t.CompatibilityMode)||(this._Comp=t.CompatibilityMode),y(t.ConsecutiveHyphensLimit)||(this._Con=t.ConsecutiveHyphensLimit),y(t.CurrentRsid)||(this._Cu=t.CurrentRsid),y(t.DefaultTabStop)||(this._D=t.DefaultTabStop),y(t.DefaultTargetFrame)||(this._De=t.DefaultTargetFrame),y(t.DoNotEmbedSystemFonts)||(this._DoN=t.DoNotEmbedSystemFonts),y(t.EncryptionProvider)||(this._E=t.EncryptionProvider),y(t.FarEastLineBreakLanguage)||(this._F=t.FarEastLineBreakLanguage),y(t.FarEastLineBreakLevel)||(this._Fa=t.FarEastLineBreakLevel),y(t.FormattingIsNextLevelShown)||(this._Fo=t.FormattingIsNextLevelShown),y(t.FormattingIsUserStyleNameShown)||(this._For=t.FormattingIsUserStyleNameShown),y(t.FullName)||(this._Fu=t.FullName),y(t.GridDistanceHorizontal)||(this._Gr=t.GridDistanceHorizontal),y(t.GridDistanceVertical)||(this._Gri=t.GridDistanceVertical),y(t.GridIsOriginFromMargin)||(this._Grid=t.GridIsOriginFromMargin),y(t.GridOriginHorizontal)||(this._GridO=t.GridOriginHorizontal),y(t.GridOriginVertical)||(this._GridOr=t.GridOriginVertical),y(t.GridSpaceBetweenHorizontalLines)||(this._GridS=t.GridSpaceBetweenHorizontalLines),y(t.GridSpaceBetweenVerticalLines)||(this._GridSp=t.GridSpaceBetweenVerticalLines),y(t.HasPassword)||(this._H=t.HasPassword),y(t.HasVbProject)||(this._Ha=t.HasVbProject),y(t.HyphenateCaps)||(this._Hyp=t.HyphenateCaps),y(t.HyphenationZone)||(this._Hyph=t.HyphenationZone),y(t.IsAutoFormatOverrideOn)||(this._Is=t.IsAutoFormatOverrideOn),y(t.IsChartDataPointTracked)||(this._IsC=t.IsChartDataPointTracked),y(t.IsCompatible)||(this._IsCo=t.IsCompatible),y(t.IsFinal)||(this._IsF=t.IsFinal),y(t.IsFontsSubsetSaved)||(this._IsFo=t.IsFontsSubsetSaved),y(t.IsFormsDataPrinted)||(this._IsFor=t.IsFormsDataPrinted),y(t.IsFormsDataSaved)||(this._IsForm=t.IsFormsDataSaved),y(t.IsGrammarChecked)||(this._IsG=t.IsGrammarChecked),y(t.IsInAutoSave)||(this._IsI=t.IsInAutoSave),y(t.IsInFormsDesign)||(this._IsIn=t.IsInFormsDesign),y(t.IsKerningByAlgorithm)||(this._IsK=t.IsKerningByAlgorithm),y(t.IsLinguisticDataEmbedded)||(this._IsL=t.IsLinguisticDataEmbedded),y(t.IsMasterDocument)||(this._IsM=t.IsMasterDocument),y(t.IsOptimizedForWord97)||(this._IsO=t.IsOptimizedForWord97),y(t.IsPostScriptPrintedOverText)||(this._IsP=t.IsPostScriptPrintedOverText),y(t.IsQuickStyleSetLocked)||(this._IsQ=t.IsQuickStyleSetLocked),y(t.IsReadOnly)||(this._IsR=t.IsReadOnly),y(t.IsReadOnlyRecommended)||(this._IsRe=t.IsReadOnlyRecommended),y(t.IsSnappedToGrid)||(this._IsS=t.IsSnappedToGrid),y(t.IsSnappedToShapes)||(this._IsSn=t.IsSnappedToShapes),y(t.IsSpellingChecked)||(this._IsSp=t.IsSpellingChecked),y(t.IsStyleEnforced)||(this._IsSt=t.IsStyleEnforced),y(t.IsSubdocument)||(this._IsSu=t.IsSubdocument),y(t.IsThemeLocked)||(this._IsT=t.IsThemeLocked),y(t.IsUserControl)||(this._IsU=t.IsUserControl),y(t.IsVbaSigned)||(this._IsV=t.IsVbaSigned),y(t.IsWriteReserved)||(this._IsW=t.IsWriteReserved),y(t.JustificationMode)||(this._J=t.JustificationMode),y(t.Kind)||(this._K=t.Kind),y(t.LanguageDetected)||(this._L=t.LanguageDetected),y(t.NoLineBreakAfter)||(this._N=t.NoLineBreakAfter),y(t.NoLineBreakBefore)||(this._No=t.NoLineBreakBefore),y(t.OpenEncoding)||(this._O=t.OpenEncoding),y(t.OriginalDocumentTitle)||(this._Or=t.OriginalDocumentTitle),y(t.Password)||(this._Pas=t.Password),y(t.PasswordEncryptionAlgorithm)||(this._Pass=t.PasswordEncryptionAlgorithm),y(t.PasswordEncryptionKeyLength)||(this._Passw=t.PasswordEncryptionKeyLength),y(t.PasswordEncryptionProvider)||(this._Passwo=t.PasswordEncryptionProvider),y(t.Path)||(this._Pat=t.Path),y(t.PrintRevisions)||(this._Pr=t.PrintRevisions),y(t.ProtectionType)||(this._Prot=t.ProtectionType),y(t.ReadingLayoutSizeX)||(this._Re=t.ReadingLayoutSizeX),y(t.ReadingLayoutSizeY)||(this._Rea=t.ReadingLayoutSizeY),y(t.ReadingModeIsLayoutFrozen)||(this._Read=t.ReadingModeIsLayoutFrozen),y(t.RemovePersonalInformationOnSave)||(this._Rem=t.RemovePersonalInformationOnSave),y(t.RevisedDocumentTitle)||(this._Rev=t.RevisedDocumentTitle),y(t.SaveEncoding)||(this._Sa=t.SaveEncoding),y(t.SaveFormat)||(this._Sav=t.SaveFormat),y(t.Saved)||(this._S=t.Saved),y(t.TextEncoding)||(this._Te=t.TextEncoding),y(t.TextLineEnding)||(this._Tex=t.TextLineEnding),y(t.TrackFormatting)||(this._Tra=t.TrackFormatting),y(t.TrackMoves)||(this._Trac=t.TrackMoves),y(t.TrackRevisions)||(this._Track=t.TrackRevisions),y(t.TrackedChangesAreDateAndTimeRemoved)||(this._Tr=t.TrackedChangesAreDateAndTimeRemoved),y(t.Type)||(this._Ty=t.Type),y(t.WritePassword)||(this._Wr=t.WritePassword),y(t.XmlAreAdvancedErrorsShown)||(this._X=t.XmlAreAdvancedErrorsShown),y(t.XmlIsXsltUsedWhenSaving)||(this._Xm=t.XmlIsXsltUsedWhenSaving),y(t.XmlSaveThroughXslt)||(this._Xml=t.XmlSaveThroughXslt),y(t._ReferenceId)||(this.m__ReferenceId=t._ReferenceId),C(this,t,["activeWindow","ActiveWindow","attachedTemplate","AttachedTemplate","background","Background","bibliography","Bibliography","body","Body","bookmarks","Bookmarks","builtInDocumentProperties","BuiltInDocumentProperties","characters","Characters","coauthoring","Coauthoring","comments","Comments","content","Content","contentControls","ContentControls","customDocumentProperties","CustomDocumentProperties","customXmlParts","CustomXmlParts","documentLibraryVersions","DocumentLibraryVersions","fields","Fields","frames","Frames","grammaticalErrors","GrammaticalErrors","hyperlinks","Hyperlinks","indexes","Indexes","listParagraphs","ListParagraphs","listTemplates","ListTemplates","lists","Lists","pageSetup","PageSetup","paragraphs","Paragraphs","properties","Properties","readabilityStatistics","ReadabilityStatistics","revisions","Revisions","sections","Sections","selection","Selection","sentences","Sentences","settings","Settings","spellingErrors","SpellingErrors","storyRanges","StoryRanges","styles","Styles","tableOfAuthoritiesCategories","TableOfAuthoritiesCategories","tables","Tables","tablesOfAuthorities","TablesOfAuthorities","tablesOfContents","TablesOfContents","tablesOfFigures","TablesOfFigures","webSettings","WebSettings","windows","Windows","words","Words"])}},Mr.prototype.load=function(e){return b(this,e)},Mr.prototype.retrieve=function(e){return v(this,e)},Mr.prototype._handleIdResult=function(e){wr.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.m__ReferenceId=e._ReferenceId)},Mr.prototype._handleRetrieveResult=function(e,t){wr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Object.defineProperty(Mr.prototype,"onAnnotationClicked",{get:function(){var n=this;return _("Document.onAnnotationClicked",u,"1.7",l),this.m_annotationClicked||(this.m_annotationClicked=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationClicked",{eventType:18,registerFunc:function(){return n._RegisterAnnotationClickedEvent()},unregisterFunc:function(){return n._UnregisterAnnotationClickedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_AnnotationClicked_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationClicked},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onAnnotationHovered",{get:function(){var n=this;return _("Document.onAnnotationHovered",u,"1.7",l),this.m_annotationHovered||(this.m_annotationHovered=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationHovered",{eventType:19,registerFunc:function(){return n._RegisterAnnotationHoveredEvent()},unregisterFunc:function(){return n._UnregisterAnnotationHoveredEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_AnnotationHovered_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationHovered},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onAnnotationInserted",{get:function(){var n=this;return _("Document.onAnnotationInserted",u,"1.7",l),this.m_annotationInserted||(this.m_annotationInserted=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationInserted",{eventType:20,registerFunc:function(){return n._RegisterAnnotationInsertedEvent()},unregisterFunc:function(){return n._UnregisterAnnotationInsertedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_AnnotationInserted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationInserted},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onAnnotationPopupAction",{get:function(){var e=this;return _("Document.onAnnotationPopupAction",u,"1.8",l),this.m_annotationPopupAction||(this.m_annotationPopupAction=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationPopupAction",{eventType:22,registerFunc:function(){return e._RegisterAnnotationPopupActionEvent()},unregisterFunc:function(){return e._UnregisterAnnotationPopupActionEvent()},getTargetIdFunc:function(){return e._ReferenceId},eventArgsTransformFunc:function(e){var t={action:e.action,critiqueSuggestion:e.critiqueSuggestion,id:e.id};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationPopupAction},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onAnnotationRemoved",{get:function(){var n=this;return _("Document.onAnnotationRemoved",u,"1.7",l),this.m_annotationRemoved||(this.m_annotationRemoved=new OfficeExtension.GenericEventHandlers(this.context,this,"AnnotationRemoved",{eventType:21,registerFunc:function(){return n._RegisterAnnotationRemovedEvent()},unregisterFunc:function(){return n._UnregisterAnnotationRemovedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_AnnotationRemoved_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_annotationRemoved},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onContentControlAdded",{get:function(){var n=this;return _("Document.onContentControlAdded",u,"1.5",l),this.m_contentControlAdded||(this.m_contentControlAdded=new OfficeExtension.GenericEventHandlers(this.context,this,"ContentControlAdded",{eventType:3,registerFunc:function(){return n._RegisterContentControlAddedEvent()},unregisterFunc:function(){return n._UnregisterContentControlAddedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_ContentControlAdded_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_contentControlAdded},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onParagraphAdded",{get:function(){var n=this;return _("Document.onParagraphAdded",u,"1.6",l),this.m_paragraphAdded||(this.m_paragraphAdded=new OfficeExtension.GenericEventHandlers(this.context,this,"ParagraphAdded",{eventType:15,registerFunc:function(){return n._RegisterParagraphAddedEvent()},unregisterFunc:function(){return n._UnregisterParagraphAddedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_ParagraphAdded_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_paragraphAdded},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onParagraphChanged",{get:function(){var n=this;return _("Document.onParagraphChanged",u,"1.6",l),this.m_paragraphChanged||(this.m_paragraphChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"ParagraphChanged",{eventType:16,registerFunc:function(){return n._RegisterParagraphChangedEvent()},unregisterFunc:function(){return n._UnregisterParagraphChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_ParagraphChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_paragraphChanged},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onParagraphDeleted",{get:function(){var n=this;return _("Document.onParagraphDeleted",u,"1.6",l),this.m_paragraphDeleted||(this.m_paragraphDeleted=new OfficeExtension.GenericEventHandlers(this.context,this,"ParagraphDeleted",{eventType:17,registerFunc:function(){return n._RegisterParagraphDeletedEvent()},unregisterFunc:function(){return n._UnregisterParagraphDeletedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_ParagraphDeleted_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_paragraphDeleted},enumerable:!0,configurable:!0}),Object.defineProperty(Mr.prototype,"onWordCountChanged",{get:function(){var n=this;return this.m_wordCountChanged||(this.m_wordCountChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"WordCountChanged",{eventType:14,registerFunc:function(){return n._RegisterWordCountChangedEvent()},unregisterFunc:function(){return n._UnregisterWordCountChangedEvent()},getTargetIdFunc:function(){return n._ReferenceId},eventArgsTransformFunc:function(e){var t=ce.Document_WordCountChanged_EventArgsTransform(n,e);return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_wordCountChanged},enumerable:!0,configurable:!0}),Mr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mr.prototype.toJSON=function(){return O(this,{allowCloseOnUntitled:this._Al,autoHyphenation:this._Au,autoSaveOn:this._Aut,changeTrackingMode:this._C,consecutiveHyphensLimit:this._Con,hyphenateCaps:this._Hyp,languageDetected:this._L,path:this._Pat,saved:this._S},{activeWindow:this._Act,bibliography:this._Bi,body:this._Bo,coauthoring:this._Co,contentControls:this._Conte,customXmlParts:this._Cust,documentLibraryVersions:this._Do,frames:this._Fr,hyperlinks:this._Hy,listTemplates:this._List,pageSetup:this._P,properties:this._Pro,sections:this._Se,selection:this._Sel,settings:this._Set,windows:this._Wi})},Mr.prototype.setMockData=function(e){I(this,e)},Mr.prototype.ensureUnchanged=function(e){d(this,e)},Mr);function Mr(){return null!==wr&&wr.apply(this,arguments)||this}a.Document=Lr;var Br,Hr=(Ur.prototype._RegisterContentControlAddedEvent=function(){this._RegisterEvent(this._ReferenceId,"ContentControlAdded")},Ur.prototype._UnregisterContentControlAddedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ContentControlAdded")},Ur.prototype._RegisterWordCountChangedEvent=function(){this._RegisterEvent(this._ReferenceId,"DocumentWordCountChanged")},Ur.prototype._UnregisterWordCountChangedEvent=function(){this._UnregisterEvent(this._ReferenceId,"DocumentWordCountChanged")},Ur.prototype._RegisterParagraphAddedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphAdded")},Ur.prototype._UnregisterParagraphAddedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphAdded")},Ur.prototype._RegisterParagraphChangedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphChanged")},Ur.prototype._UnregisterParagraphChangedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphChanged")},Ur.prototype._RegisterParagraphDeletedEvent=function(){this._RegisterEvent(this._ReferenceId,"ParagraphDeleted")},Ur.prototype._UnregisterParagraphDeletedEvent=function(){this._UnregisterEvent(this._ReferenceId,"ParagraphDeleted")},Ur.prototype._RegisterAnnotationClickedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationClicked")},Ur.prototype._UnregisterAnnotationClickedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationClicked")},Ur.prototype._RegisterAnnotationHoveredEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationHovered")},Ur.prototype._UnregisterAnnotationHoveredEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationHovered")},Ur.prototype._RegisterAnnotationInsertedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationInserted")},Ur.prototype._UnregisterAnnotationInsertedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationInserted")},Ur.prototype._RegisterAnnotationRemovedEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationRemoved")},Ur.prototype._UnregisterAnnotationRemovedEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationRemoved")},Ur.prototype._RegisterAnnotationPopupActionEvent=function(){this._RegisterEvent(this._ReferenceId,"AnnotationPopupAction")},Ur.prototype._UnregisterAnnotationPopupActionEvent=function(){this._UnregisterEvent(this._ReferenceId,"AnnotationPopupAction")},Ur);function Ur(){}a.DocumentCustom=Hr,OfficeExtension.Utility.applyMixin(Lr,Hr),(Br=ce=a._CC||(a._CC={})).Document_Search=function(e,t,n){var r;if(s())n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);else{var i=c(n);r=e._Search2(t,i)}return{handled:!0,result:r}},Br.Document_AnnotationClicked_EventArgsTransform=function(e,t){return{id:t}},Br.Document_AnnotationHovered_EventArgsTransform=function(e,t){return{id:t}},Br.Document_AnnotationInserted_EventArgsTransform=function(e,t){return{ids:t}},Br.Document_AnnotationRemoved_EventArgsTransform=function(e,t){return{ids:t}},Br.Document_ContentControlAdded_EventArgsTransform=function(e,t){return{eventType:a.EventType.contentControlAdded,source:t.source,ids:t.ids}},Br.Document_ParagraphAdded_EventArgsTransform=function(e,t){return{type:a.EventType.paragraphAdded,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},Br.Document_ParagraphChanged_EventArgsTransform=function(e,t){return{type:a.EventType.paragraphChanged,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},Br.Document_ParagraphDeleted_EventArgsTransform=function(e,t){return{type:a.EventType.paragraphDeleted,source:t.source,uniqueLocalIds:t.uniqueLocalIds}},Br.Document_WordCountChanged_EventArgsTransform=function(e,t){return{eventType:a.EventType.documentWordCountChanged,source:t.source,wordCount:t.wordCount}};var Wr,Gr="DocumentCreated",Vr=(Wr=OfficeExtension.ClientObject,__extends(zr,Wr),Object.defineProperty(zr.prototype,"_className",{get:function(){return"DocumentCreated"},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_scalarPropertyNames",{get:function(){return["saved","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Saved","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_navigationPropertyNames",{get:function(){return["sections","body","contentControls","properties","settings","customXmlParts"]},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"body",{get:function(){return _("DocumentCreated.body","WordApiHiddenDocument","1.3",l),this._B||(this._B=e(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"contentControls",{get:function(){return _("DocumentCreated.contentControls","WordApiHiddenDocument","1.3",l),this._C||(this._C=e(a.ContentControlCollection,this,"ContentControls",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"customXmlParts",{get:function(){return _("DocumentCreated.customXmlParts","WordApiHiddenDocument","1.4",l),this._Cu||(this._Cu=e(a.CustomXmlPartCollection,this,"CustomXmlParts",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"properties",{get:function(){return _("DocumentCreated.properties","WordApiHiddenDocument","1.3",l),this._P||(this._P=e(a.DocumentProperties,this,"Properties",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"sections",{get:function(){return _("DocumentCreated.sections","WordApiHiddenDocument","1.3",l),this._Se||(this._Se=e(a.SectionCollection,this,"Sections",!0,4)),this._Se},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"settings",{get:function(){return _("DocumentCreated.settings","WordApiHiddenDocument","1.4",l),this._Set||(this._Set=e(a.SettingCollection,this,"Settings",!0,4)),this._Set},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"saved",{get:function(){return m("saved",this._S,Gr,this._isNull),_("DocumentCreated.saved","WordApiHiddenDocument","1.3",l),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(zr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.m__ReferenceId,Gr,this._isNull),this.m__ReferenceId},enumerable:!0,configurable:!0}),zr.prototype.set=function(e,t){this._recursivelySet(e,t,[],["body","properties"],["contentControls","customXmlParts","sections","settings"])},zr.prototype.update=function(e){this._recursivelyUpdate(e)},zr.prototype.addStyle=function(e,t){return _("DocumentCreated.addStyle","WordApiHiddenDocument","1.5",l),p(a.Style,this,"AddStyle",0,[e,t],!1,!1,null,0)},zr.prototype.deleteBookmark=function(e){_("DocumentCreated.deleteBookmark","WordApiHiddenDocument","1.4",l),i(this,"DeleteBookmark",0,[e],0,0)},zr.prototype.getBookmarkRange=function(e){return _("DocumentCreated.getBookmarkRange","WordApiHiddenDocument","1.4",l),p(a.Range,this,"GetBookmarkRange",1,[e],!1,!1,null,4)},zr.prototype.getBookmarkRangeOrNullObject=function(e){return _("DocumentCreated.getBookmarkRangeOrNullObject","WordApiHiddenDocument","1.4",l),p(a.Range,this,"GetBookmarkRangeOrNullObject",1,[e],!1,!1,null,4)},zr.prototype.getContentControls=function(e){return _("DocumentCreated.getContentControls","WordApiHiddenDocument","1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},zr.prototype.getStyles=function(){return _("DocumentCreated.getStyles","WordApiHiddenDocument","1.5",l),p(a.StyleCollection,this,"GetStyles",1,[],!0,!1,null,4)},zr.prototype.insertFileFromBase64=function(e,t,n){return _("DocumentCreated.insertFileFromBase64","WordApiHiddenDocument","1.5",l),p(a.SectionCollection,this,"InsertFileFromBase64",0,[e,t,n],!0,!0,null,0)},zr.prototype.open=function(){i(this,"Open",1,[],4,0)},zr.prototype.save=function(e,t){_("DocumentCreated.save","WordApiHiddenDocument","1.3",l),i(this,"Save",0,[e,t],0,0)},zr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},zr.prototype._handleResult=function(e){if(Wr.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Saved)||(this._S=t.Saved),y(t._ReferenceId)||(this.m__ReferenceId=t._ReferenceId),C(this,t,["body","Body","contentControls","ContentControls","customXmlParts","CustomXmlParts","properties","Properties","sections","Sections","settings","Settings"])}},zr.prototype.load=function(e){return b(this,e)},zr.prototype.retrieve=function(e){return v(this,e)},zr.prototype._handleIdResult=function(e){Wr.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.m__ReferenceId=e._ReferenceId)},zr.prototype._handleRetrieveResult=function(e,t){Wr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},zr.prototype.track=function(){return this.context.trackedObjects.add(this),this},zr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},zr.prototype.toJSON=function(){return O(this,{saved:this._S},{body:this._B,contentControls:this._C,customXmlParts:this._Cu,properties:this._P,sections:this._Se,settings:this._Set})},zr.prototype.setMockData=function(e){I(this,e)},zr.prototype.ensureUnchanged=function(e){d(this,e)},zr);function zr(){return null!==Wr&&Wr.apply(this,arguments)||this}a.DocumentCreated=Vr;var qr,Kr="DocumentProperties",Jr=(qr=OfficeExtension.ClientObject,__extends(Xr,qr),Object.defineProperty(Xr.prototype,"_className",{get:function(){return"DocumentProperties"},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","title","subject","author","keywords","comments","template","lastAuthor","revisionNumber","applicationName","lastPrintDate","creationDate","lastSaveTime","security","category","format","manager","company"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Title","Subject","Author","Keywords","Comments","Template","LastAuthor","RevisionNumber","ApplicationName","LastPrintDate","CreationDate","LastSaveTime","Security","Category","Format","Manager","Company"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"_navigationPropertyNames",{get:function(){return["customProperties"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"customProperties",{get:function(){return this._Cu||(this._Cu=e(a.CustomPropertyCollection,this,"CustomProperties",!0,4)),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"applicationName",{get:function(){return m("applicationName",this._A,Kr,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"author",{get:function(){return m("author",this._Au,Kr,this._isNull),this._Au},set:function(e){this._Au=e,h(this,"Author",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"category",{get:function(){return m("category",this._C,Kr,this._isNull),this._C},set:function(e){this._C=e,h(this,"Category",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"comments",{get:function(){return m("comments",this._Co,Kr,this._isNull),this._Co},set:function(e){this._Co=e,h(this,"Comments",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"company",{get:function(){return m("company",this._Com,Kr,this._isNull),this._Com},set:function(e){this._Com=e,h(this,"Company",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"creationDate",{get:function(){return m("creationDate",this._Cr,Kr,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"format",{get:function(){return m("format",this._F,Kr,this._isNull),this._F},set:function(e){this._F=e,h(this,"Format",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"keywords",{get:function(){return m("keywords",this._K,Kr,this._isNull),this._K},set:function(e){this._K=e,h(this,"Keywords",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"lastAuthor",{get:function(){return m("lastAuthor",this._L,Kr,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"lastPrintDate",{get:function(){return m("lastPrintDate",this._La,Kr,this._isNull),this._La},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"lastSaveTime",{get:function(){return m("lastSaveTime",this._Las,Kr,this._isNull),this._Las},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"manager",{get:function(){return m("manager",this._M,Kr,this._isNull),this._M},set:function(e){this._M=e,h(this,"Manager",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"revisionNumber",{get:function(){return m("revisionNumber",this._R,Kr,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"security",{get:function(){return m("security",this._S,Kr,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"subject",{get:function(){return m("subject",this._Su,Kr,this._isNull),this._Su},set:function(e){this._Su=e,h(this,"Subject",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"template",{get:function(){return m("template",this._T,Kr,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"title",{get:function(){return m("title",this._Ti,Kr,this._isNull),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Xr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Kr,this._isNull),this.__R},enumerable:!0,configurable:!0}),Xr.prototype.set=function(e,t){this._recursivelySet(e,t,["title","subject","author","keywords","comments","category","format","manager","company"],[],["customProperties"])},Xr.prototype.update=function(e){this._recursivelyUpdate(e)},Xr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Xr.prototype._handleResult=function(e){if(qr.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.ApplicationName)||(this._A=t.ApplicationName),y(t.Author)||(this._Au=t.Author),y(t.Category)||(this._C=t.Category),y(t.Comments)||(this._Co=t.Comments),y(t.Company)||(this._Com=t.Company),y(t.CreationDate)||(this._Cr=R(t.CreationDate)),y(t.Format)||(this._F=t.Format),y(t.Keywords)||(this._K=t.Keywords),y(t.LastAuthor)||(this._L=t.LastAuthor),y(t.LastPrintDate)||(this._La=R(t.LastPrintDate)),y(t.LastSaveTime)||(this._Las=R(t.LastSaveTime)),y(t.Manager)||(this._M=t.Manager),y(t.RevisionNumber)||(this._R=t.RevisionNumber),y(t.Security)||(this._S=t.Security),y(t.Subject)||(this._Su=t.Subject),y(t.Template)||(this._T=t.Template),y(t.Title)||(this._Ti=t.Title),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["customProperties","CustomProperties"])}},Xr.prototype.load=function(e){return b(this,e)},Xr.prototype.retrieve=function(e){return v(this,e)},Xr.prototype._handleIdResult=function(e){qr.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Xr.prototype._handleRetrieveResult=function(e,t){if(qr.prototype._handleRetrieveResult.call(this,e,t),!g(e)){var n=e;y(n.CreationDate)||(n.creationDate=R(n.creationDate)),y(n.LastPrintDate)||(n.lastPrintDate=R(n.lastPrintDate)),y(n.LastSaveTime)||(n.lastSaveTime=R(n.lastSaveTime)),S(this,e,t)}},Xr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Xr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Xr.prototype.toJSON=function(){return O(this,{applicationName:this._A,author:this._Au,category:this._C,comments:this._Co,company:this._Com,creationDate:this._Cr,format:this._F,keywords:this._K,lastAuthor:this._L,lastPrintDate:this._La,lastSaveTime:this._Las,manager:this._M,revisionNumber:this._R,security:this._S,subject:this._Su,template:this._T,title:this._Ti},{customProperties:this._Cu})},Xr.prototype.setMockData=function(e){I(this,e)},Xr.prototype.ensureUnchanged=function(e){d(this,e)},Xr);function Xr(){return null!==qr&&qr.apply(this,arguments)||this}a.DocumentProperties=Jr;var Qr,Yr=(Qr=OfficeExtension.ClientObject,__extends(Zr,Qr),Object.defineProperty(Zr.prototype,"_className",{get:function(){return"DropDownListContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(Zr.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zr.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zr.prototype,"_navigationPropertyNames",{get:function(){return["listItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zr.prototype,"listItems",{get:function(){return this._L||(this._L=e(a.ContentControlListItemCollection,this,"ListItems",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Zr.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"DropDownListContentControl",this._isNull),this.__R},enumerable:!0,configurable:!0}),Zr.prototype.addListItem=function(e,t,n){return p(a.ContentControlListItem,this,"AddListItem",0,[e,t,n],!1,!0,null,0)},Zr.prototype.deleteAllListItems=function(){i(this,"DeleteAllListItems",0,[],0,0)},Zr.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Zr.prototype._handleResult=function(e){if(Qr.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["listItems","ListItems"])}},Zr.prototype.load=function(e){return b(this,e)},Zr.prototype.retrieve=function(e){return v(this,e)},Zr.prototype._handleIdResult=function(e){Qr.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Zr.prototype._handleRetrieveResult=function(e,t){Qr.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Zr.prototype.track=function(){return this.context.trackedObjects.add(this),this},Zr.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Zr.prototype.toJSON=function(){return O(this,{},{})},Zr);function Zr(){return null!==Qr&&Qr.apply(this,arguments)||this}a.DropDownListContentControl=Yr;var $r,ei=($r=OfficeExtension.ClientObject,__extends(ti,$r),Object.defineProperty(ti.prototype,"_className",{get:function(){return"ComboBoxContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"_navigationPropertyNames",{get:function(){return["listItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"listItems",{get:function(){return this._L||(this._L=e(a.ContentControlListItemCollection,this,"ListItems",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"ComboBoxContentControl",this._isNull),this.__R},enumerable:!0,configurable:!0}),ti.prototype.addListItem=function(e,t,n){return p(a.ContentControlListItem,this,"AddListItem",0,[e,t,n],!1,!0,null,0)},ti.prototype.deleteAllListItems=function(){i(this,"DeleteAllListItems",0,[],0,0)},ti.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ti.prototype._handleResult=function(e){if($r.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["listItems","ListItems"])}},ti.prototype.load=function(e){return b(this,e)},ti.prototype.retrieve=function(e){return v(this,e)},ti.prototype._handleIdResult=function(e){$r.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ti.prototype._handleRetrieveResult=function(e,t){$r.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ti.prototype.track=function(){return this.context.trackedObjects.add(this),this},ti.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ti.prototype.toJSON=function(){return O(this,{},{})},ti);function ti(){return null!==$r&&$r.apply(this,arguments)||this}a.ComboBoxContentControl=ei;var ni,ri="Field",ii=(ni=OfficeExtension.ClientObject,__extends(oi,ni),Object.defineProperty(oi.prototype,"_className",{get:function(){return"Field"},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","code","type","kind","showCodes","locked","data"]},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Code","Type","Kind","ShowCodes","Locked","Data"]},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"_navigationPropertyNames",{get:function(){return["result","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableOrNullObject","parentTableCell","parentTableCellOrNullObject","linkFormat","oleFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"linkFormat",{get:function(){return _("Field.linkFormat","WordApiDesktop","1.4",l),this._L||(this._L=e(a.LinkFormat,this,"LinkFormat",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"oleFormat",{get:function(){return _("Field.oleFormat","WordApiDesktop","1.4",l),this._O||(this._O=e(a.OleFormat,this,"OleFormat",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"parentBody",{get:function(){return this._P||(this._P=e(a.Body,this,"ParentBody",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=e(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"parentContentControlOrNullObject",{get:function(){return this._Par||(this._Par=e(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"parentTable",{get:function(){return this._Pare||(this._Pare=e(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"parentTableCell",{get:function(){return this._Paren||(this._Paren=e(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"parentTableCellOrNullObject",{get:function(){return this._Parent||(this._Parent=e(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"parentTableOrNullObject",{get:function(){return this._ParentT||(this._ParentT=e(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"result",{get:function(){return this._R||(this._R=e(a.Range,this,"Result",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"code",{get:function(){return m("code",this._C,ri,this._isNull),this._C},set:function(e){this._C=e,h(this,"Code",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"data",{get:function(){return m("data",this._D,ri,this._isNull),_("Field.data",u,"1.5",l),this._D},set:function(e){this._D=e,h(this,"Data",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"kind",{get:function(){return m("kind",this._K,ri,this._isNull),_("Field.kind",u,"1.5",l),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"locked",{get:function(){return m("locked",this._Lo,ri,this._isNull),_("Field.locked",u,"1.5",l),this._Lo},set:function(e){this._Lo=e,h(this,"Locked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"showCodes",{get:function(){return m("showCodes",this._S,ri,this._isNull),_("Field.showCodes","WordApiDesktop","1.1",l),this._S},set:function(e){this._S=e,h(this,"ShowCodes",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"type",{get:function(){return m("type",this._T,ri,this._isNull),_("Field.type",u,"1.5",l),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"_Id",{get:function(){return m("_Id",this.__I,ri,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ri,this._isNull),this.__R},enumerable:!0,configurable:!0}),oi.prototype.set=function(e,t){this._recursivelySet(e,t,["code","showCodes","locked","data"],["result"],["linkFormat","oleFormat","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject"])},oi.prototype.update=function(e){this._recursivelyUpdate(e)},oi.prototype.copyToClipboard=function(){_("Field.copyToClipboard","WordApiDesktop","1.4",l),i(this,"CopyToClipboard",1,[],4,0)},oi.prototype.cut=function(){_("Field.cut","WordApiDesktop","1.4",l),i(this,"Cut",0,[],0,0)},oi.prototype.delete=function(){_("Field.delete",u,"1.5",l),i(this,"Delete",0,[],0,0)},oi.prototype.doClick=function(){_("Field.doClick","WordApiDesktop","1.4",l),i(this,"DoClick",1,[],4,0)},oi.prototype.getNext=function(){return p(a.Field,this,"GetNext",1,[],!1,!1,null,4)},oi.prototype.getNextOrNullObject=function(){return p(a.Field,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},oi.prototype.select=function(e){_("Field.select",u,"1.5",l),i(this,"Select",1,[e],4,0)},oi.prototype.unlink=function(){_("Field.unlink","WordApiDesktop","1.4",l),i(this,"Unlink",0,[],0,0)},oi.prototype.updateResult=function(){_("Field.updateResult",u,"1.5",l),i(this,"UpdateResult",0,[],0,0)},oi.prototype.updateSource=function(){_("Field.updateSource","WordApiDesktop","1.4",l),i(this,"UpdateSource",0,[],0,0)},oi.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},oi.prototype._handleResult=function(e){if(ni.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Code)||(this._C=t.Code),y(t.Data)||(this._D=t.Data),y(t.Kind)||(this._K=t.Kind),y(t.Locked)||(this._Lo=t.Locked),y(t.ShowCodes)||(this._S=t.ShowCodes),y(t.Type)||(this._T=t.Type),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["linkFormat","LinkFormat","oleFormat","OleFormat","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","result","Result"])}},oi.prototype.load=function(e){return b(this,e)},oi.prototype.retrieve=function(e){return v(this,e)},oi.prototype._handleIdResult=function(e){ni.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},oi.prototype._handleRetrieveResult=function(e,t){ni.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},oi.prototype.track=function(){return this.context.trackedObjects.add(this),this},oi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},oi.prototype.toJSON=function(){return O(this,{code:this._C,data:this._D,kind:this._K,locked:this._Lo,showCodes:this._S,type:this._T},{result:this._R})},oi.prototype.setMockData=function(e){I(this,e)},oi.prototype.ensureUnchanged=function(e){d(this,e)},oi);function oi(){return null!==ni&&ni.apply(this,arguments)||this}a.Field=ii;var ai,si="FieldCollection",ci=(ai=OfficeExtension.ClientObject,__extends(li,ai),Object.defineProperty(li.prototype,"_className",{get:function(){return"FieldCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"items",{get:function(){return m("items",this.m__items,si,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,si,this._isNull),this.__R},enumerable:!0,configurable:!0}),li.prototype.getFirst=function(){return p(a.Field,this,"GetFirst",1,[],!1,!1,null,4)},li.prototype.getFirstOrNullObject=function(){return p(a.Field,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},li.prototype._GetItem=function(e){return t(a.Field,this,[e])},li.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},li.prototype.getByTypes=function(e){return _("FieldCollection.getByTypes",u,"1.5",l),p(a.FieldCollection,this,"getByTypes",1,[e],!0,!1,null,4)},li.prototype._handleResult=function(e){if(ai.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Field,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},li.prototype.load=function(e){return b(this,e)},li.prototype.retrieve=function(e){return v(this,e)},li.prototype._handleIdResult=function(e){ai.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},li.prototype._handleRetrieveResult=function(e,t){var n=this;ai.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Field,!0,n,e,t)})},li.prototype.track=function(){return this.context.trackedObjects.add(this),this},li.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},li.prototype.toJSON=function(){return O(this,{},{},this.m__items)},li.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Field,!0,n,e,t)},function(e){return n.m__items=e})},li);function li(){return null!==ai&&ai.apply(this,arguments)||this}a.FieldCollection=ci;var ui,pi="Font",fi=(ui=OfficeExtension.ClientObject,__extends(di,ui),Object.defineProperty(di.prototype,"_className",{get:function(){return"Font"},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","name","size","bold","italic","color","underline","subscript","superscript","strikeThrough","doubleStrikeThrough","highlightColor","hidden","smallCaps","allCaps","boldBidirectional","colorIndex","colorIndexBidirectional","contextualAlternates","diacriticColor","disableCharacterSpaceGrid","emboss","emphasisMark","engrave","italicBidirectional","kerning","ligature","nameAscii","nameBidirectional","nameFarEast","nameOther","numberForm","numberSpacing","outline","position","scaling","shadow","sizeBidirectional","spacing","stylisticSet","underlineColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Name","Size","Bold","Italic","Color","Underline","Subscript","Superscript","StrikeThrough","DoubleStrikeThrough","HighlightColor","Hidden","SmallCaps","AllCaps","BoldBidirectional","ColorIndex","ColorIndexBidirectional","ContextualAlternates","DiacriticColor","DisableCharacterSpaceGrid","Emboss","EmphasisMark","Engrave","ItalicBidirectional","Kerning","Ligature","NameAscii","NameBidirectional","NameFarEast","NameOther","NumberForm","NumberSpacing","Outline","Position","Scaling","Shadow","SizeBidirectional","Spacing","StylisticSet","UnderlineColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"_navigationPropertyNames",{get:function(){return["borders","fill","glow","line","reflection","textColor","textShadow","threeDimensionalFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"borders",{get:function(){return _("Font.borders","WordApiDesktop","1.3",l),this._Bor||(this._Bor=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._Bor},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"fill",{get:function(){return _("Font.fill","WordApiDesktop","1.3",l),this._F||(this._F=e(a.FillFormat,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"glow",{get:function(){return _("Font.glow","WordApiDesktop","1.3",l),this._G||(this._G=e(a.GlowFormat,this,"Glow",!1,4)),this._G},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"line",{get:function(){return _("Font.line","WordApiDesktop","1.3",l),this._Li||(this._Li=e(a.LineFormat,this,"Line",!1,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"reflection",{get:function(){return _("Font.reflection","WordApiDesktop","1.3",l),this._R||(this._R=e(a.ReflectionFormat,this,"Reflection",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"textColor",{get:function(){return _("Font.textColor","WordApiDesktop","1.3",l),this._T||(this._T=e(a.ColorFormat,this,"TextColor",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"textShadow",{get:function(){return _("Font.textShadow","WordApiDesktop","1.3",l),this._Te||(this._Te=e(a.ShadowFormat,this,"TextShadow",!1,4)),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"threeDimensionalFormat",{get:function(){return _("Font.threeDimensionalFormat","WordApiDesktop","1.3",l),this._Th||(this._Th=e(a.ThreeDimensionalFormat,this,"ThreeDimensionalFormat",!1,4)),this._Th},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"allCaps",{get:function(){return m("allCaps",this._A,pi,this._isNull),_("Font.allCaps","WordApiDesktop","1.3",l),this._A},set:function(e){this._A=e,h(this,"AllCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"bold",{get:function(){return m("bold",this._B,pi,this._isNull),this._B},set:function(e){this._B=e,h(this,"Bold",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"boldBidirectional",{get:function(){return m("boldBidirectional",this._Bo,pi,this._isNull),_("Font.boldBidirectional","WordApiDesktop","1.3",l),this._Bo},set:function(e){this._Bo=e,h(this,"BoldBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"color",{get:function(){return m("color",this._C,pi,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"colorIndex",{get:function(){return m("colorIndex",this._Co,pi,this._isNull),_("Font.colorIndex","WordApiDesktop","1.3",l),this._Co},set:function(e){this._Co=e,h(this,"ColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"colorIndexBidirectional",{get:function(){return m("colorIndexBidirectional",this._Col,pi,this._isNull),_("Font.colorIndexBidirectional","WordApiDesktop","1.3",l),this._Col},set:function(e){this._Col=e,h(this,"ColorIndexBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"contextualAlternates",{get:function(){return m("contextualAlternates",this._Con,pi,this._isNull),_("Font.contextualAlternates","WordApiDesktop","1.3",l),this._Con},set:function(e){this._Con=e,h(this,"ContextualAlternates",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"diacriticColor",{get:function(){return m("diacriticColor",this._D,pi,this._isNull),_("Font.diacriticColor","WordApiDesktop","1.3",l),this._D},set:function(e){this._D=e,h(this,"DiacriticColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"disableCharacterSpaceGrid",{get:function(){return m("disableCharacterSpaceGrid",this._Di,pi,this._isNull),_("Font.disableCharacterSpaceGrid","WordApiDesktop","1.3",l),this._Di},set:function(e){this._Di=e,h(this,"DisableCharacterSpaceGrid",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"doubleStrikeThrough",{get:function(){return m("doubleStrikeThrough",this._Do,pi,this._isNull),this._Do},set:function(e){this._Do=e,h(this,"DoubleStrikeThrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"emboss",{get:function(){return m("emboss",this._E,pi,this._isNull),_("Font.emboss","WordApiDesktop","1.3",l),this._E},set:function(e){this._E=e,h(this,"Emboss",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"emphasisMark",{get:function(){return m("emphasisMark",this._Em,pi,this._isNull),_("Font.emphasisMark","WordApiDesktop","1.3",l),this._Em},set:function(e){this._Em=e,h(this,"EmphasisMark",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"engrave",{get:function(){return m("engrave",this._En,pi,this._isNull),_("Font.engrave","WordApiDesktop","1.3",l),this._En},set:function(e){this._En=e,h(this,"Engrave",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"hidden",{get:function(){return m("hidden",this._H,pi,this._isNull),_("Font.hidden","WordApiDesktop","1.2",l),this._H},set:function(e){this._H=e,h(this,"Hidden",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"highlightColor",{get:function(){return m("highlightColor",this._Hi,pi,this._isNull),this._Hi},set:function(e){this._Hi=e,h(this,"HighlightColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"italic",{get:function(){return m("italic",this._I,pi,this._isNull),this._I},set:function(e){this._I=e,h(this,"Italic",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"italicBidirectional",{get:function(){return m("italicBidirectional",this._It,pi,this._isNull),_("Font.italicBidirectional","WordApiDesktop","1.3",l),this._It},set:function(e){this._It=e,h(this,"ItalicBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"kerning",{get:function(){return m("kerning",this._K,pi,this._isNull),_("Font.kerning","WordApiDesktop","1.3",l),this._K},set:function(e){this._K=e,h(this,"Kerning",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"ligature",{get:function(){return m("ligature",this._L,pi,this._isNull),_("Font.ligature","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,h(this,"Ligature",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"name",{get:function(){return m("name",this._N,pi,this._isNull),this._N},set:function(e){this._N=e,h(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"nameAscii",{get:function(){return m("nameAscii",this._Na,pi,this._isNull),_("Font.nameAscii","WordApiDesktop","1.3",l),this._Na},set:function(e){this._Na=e,h(this,"NameAscii",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"nameBidirectional",{get:function(){return m("nameBidirectional",this._Nam,pi,this._isNull),_("Font.nameBidirectional","WordApiDesktop","1.3",l),this._Nam},set:function(e){this._Nam=e,h(this,"NameBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"nameFarEast",{get:function(){return m("nameFarEast",this._Name,pi,this._isNull),_("Font.nameFarEast","WordApiDesktop","1.3",l),this._Name},set:function(e){this._Name=e,h(this,"NameFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"nameOther",{get:function(){return m("nameOther",this._NameO,pi,this._isNull),_("Font.nameOther","WordApiDesktop","1.3",l),this._NameO},set:function(e){this._NameO=e,h(this,"NameOther",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"numberForm",{get:function(){return m("numberForm",this._Nu,pi,this._isNull),_("Font.numberForm","WordApiDesktop","1.3",l),this._Nu},set:function(e){this._Nu=e,h(this,"NumberForm",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"numberSpacing",{get:function(){return m("numberSpacing",this._Num,pi,this._isNull),_("Font.numberSpacing","WordApiDesktop","1.3",l),this._Num},set:function(e){this._Num=e,h(this,"NumberSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"outline",{get:function(){return m("outline",this._O,pi,this._isNull),_("Font.outline","WordApiDesktop","1.3",l),this._O},set:function(e){this._O=e,h(this,"Outline",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"position",{get:function(){return m("position",this._P,pi,this._isNull),_("Font.position","WordApiDesktop","1.3",l),this._P},set:function(e){this._P=e,h(this,"Position",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"scaling",{get:function(){return m("scaling",this._S,pi,this._isNull),_("Font.scaling","WordApiDesktop","1.3",l),this._S},set:function(e){this._S=e,h(this,"Scaling",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"shadow",{get:function(){return m("shadow",this._Sh,pi,this._isNull),_("Font.shadow","WordApiDesktop","1.3",l),this._Sh},set:function(e){this._Sh=e,h(this,"Shadow",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"size",{get:function(){return m("size",this._Si,pi,this._isNull),this._Si},set:function(e){this._Si=e,h(this,"Size",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"sizeBidirectional",{get:function(){return m("sizeBidirectional",this._Siz,pi,this._isNull),_("Font.sizeBidirectional","WordApiDesktop","1.3",l),this._Siz},set:function(e){this._Siz=e,h(this,"SizeBidirectional",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"smallCaps",{get:function(){return m("smallCaps",this._Sm,pi,this._isNull),_("Font.smallCaps","WordApiDesktop","1.3",l),this._Sm},set:function(e){this._Sm=e,h(this,"SmallCaps",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"spacing",{get:function(){return m("spacing",this._Sp,pi,this._isNull),_("Font.spacing","WordApiDesktop","1.3",l),this._Sp},set:function(e){this._Sp=e,h(this,"Spacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"strikeThrough",{get:function(){return m("strikeThrough",this._St,pi,this._isNull),this._St},set:function(e){this._St=e,h(this,"StrikeThrough",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"stylisticSet",{get:function(){return m("stylisticSet",this._Sty,pi,this._isNull),_("Font.stylisticSet","WordApiDesktop","1.3",l),this._Sty},set:function(e){this._Sty=e,h(this,"StylisticSet",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"subscript",{get:function(){return m("subscript",this._Su,pi,this._isNull),this._Su},set:function(e){this._Su=e,h(this,"Subscript",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"superscript",{get:function(){return m("superscript",this._Sup,pi,this._isNull),this._Sup},set:function(e){this._Sup=e,h(this,"Superscript",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"underline",{get:function(){return m("underline",this._U,pi,this._isNull),this._U},set:function(e){this._U=e,h(this,"Underline",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"underlineColor",{get:function(){return m("underlineColor",this._Un,pi,this._isNull),_("Font.underlineColor","WordApiDesktop","1.3",l),this._Un},set:function(e){this._Un=e,h(this,"UnderlineColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,pi,this._isNull),this.__R},enumerable:!0,configurable:!0}),di.prototype.set=function(e,t){this._recursivelySet(e,t,["name","size","bold","italic","color","underline","subscript","superscript","strikeThrough","doubleStrikeThrough","highlightColor","hidden","smallCaps","allCaps","boldBidirectional","colorIndex","colorIndexBidirectional","contextualAlternates","diacriticColor","disableCharacterSpaceGrid","emboss","emphasisMark","engrave","italicBidirectional","kerning","ligature","nameAscii","nameBidirectional","nameFarEast","nameOther","numberForm","numberSpacing","outline","position","scaling","shadow","sizeBidirectional","spacing","stylisticSet","underlineColor"],["fill","glow","line","reflection","textColor","textShadow","threeDimensionalFormat"],["borders"])},di.prototype.update=function(e){this._recursivelyUpdate(e)},di.prototype.decreaseFontSize=function(){_("Font.decreaseFontSize","WordApiDesktop","1.3",l),i(this,"DecreaseFontSize",0,[],0,0)},di.prototype.increaseFontSize=function(){_("Font.increaseFontSize","WordApiDesktop","1.3",l),i(this,"IncreaseFontSize",0,[],0,0)},di.prototype.reset=function(){_("Font.reset","WordApiDesktop","1.3",l),i(this,"Reset",0,[],0,0)},di.prototype.setAsTemplateDefault=function(){_("Font.setAsTemplateDefault","WordApiDesktop","1.3",l),i(this,"SetAsTemplateDefault",0,[],0,0)},di.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},di.prototype._handleResult=function(e){if(ui.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AllCaps)||(this._A=t.AllCaps),y(t.Bold)||(this._B=t.Bold),y(t.BoldBidirectional)||(this._Bo=t.BoldBidirectional),y(t.Color)||(this._C=t.Color),y(t.ColorIndex)||(this._Co=t.ColorIndex),y(t.ColorIndexBidirectional)||(this._Col=t.ColorIndexBidirectional),y(t.ContextualAlternates)||(this._Con=t.ContextualAlternates),y(t.DiacriticColor)||(this._D=t.DiacriticColor),y(t.DisableCharacterSpaceGrid)||(this._Di=t.DisableCharacterSpaceGrid),y(t.DoubleStrikeThrough)||(this._Do=t.DoubleStrikeThrough),y(t.Emboss)||(this._E=t.Emboss),y(t.EmphasisMark)||(this._Em=t.EmphasisMark),y(t.Engrave)||(this._En=t.Engrave),y(t.Hidden)||(this._H=t.Hidden),y(t.HighlightColor)||(this._Hi=t.HighlightColor),y(t.Italic)||(this._I=t.Italic),y(t.ItalicBidirectional)||(this._It=t.ItalicBidirectional),y(t.Kerning)||(this._K=t.Kerning),y(t.Ligature)||(this._L=t.Ligature),y(t.Name)||(this._N=t.Name),y(t.NameAscii)||(this._Na=t.NameAscii),y(t.NameBidirectional)||(this._Nam=t.NameBidirectional),y(t.NameFarEast)||(this._Name=t.NameFarEast),y(t.NameOther)||(this._NameO=t.NameOther),y(t.NumberForm)||(this._Nu=t.NumberForm),y(t.NumberSpacing)||(this._Num=t.NumberSpacing),y(t.Outline)||(this._O=t.Outline),y(t.Position)||(this._P=t.Position),y(t.Scaling)||(this._S=t.Scaling),y(t.Shadow)||(this._Sh=t.Shadow),y(t.Size)||(this._Si=t.Size),y(t.SizeBidirectional)||(this._Siz=t.SizeBidirectional),y(t.SmallCaps)||(this._Sm=t.SmallCaps),y(t.Spacing)||(this._Sp=t.Spacing),y(t.StrikeThrough)||(this._St=t.StrikeThrough),y(t.StylisticSet)||(this._Sty=t.StylisticSet),y(t.Subscript)||(this._Su=t.Subscript),y(t.Superscript)||(this._Sup=t.Superscript),y(t.Underline)||(this._U=t.Underline),y(t.UnderlineColor)||(this._Un=t.UnderlineColor),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","fill","Fill","glow","Glow","line","Line","reflection","Reflection","textColor","TextColor","textShadow","TextShadow","threeDimensionalFormat","ThreeDimensionalFormat"])}},di.prototype.load=function(e){return b(this,e)},di.prototype.retrieve=function(e){return v(this,e)},di.prototype._handleIdResult=function(e){ui.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},di.prototype._handleRetrieveResult=function(e,t){ui.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},di.prototype.track=function(){return this.context.trackedObjects.add(this),this},di.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},di.prototype.toJSON=function(){return O(this,{allCaps:this._A,bold:this._B,boldBidirectional:this._Bo,color:this._C,colorIndex:this._Co,colorIndexBidirectional:this._Col,contextualAlternates:this._Con,diacriticColor:this._D,disableCharacterSpaceGrid:this._Di,doubleStrikeThrough:this._Do,emboss:this._E,emphasisMark:this._Em,engrave:this._En,hidden:this._H,highlightColor:this._Hi,italic:this._I,italicBidirectional:this._It,kerning:this._K,ligature:this._L,name:this._N,nameAscii:this._Na,nameBidirectional:this._Nam,nameFarEast:this._Name,nameOther:this._NameO,numberForm:this._Nu,numberSpacing:this._Num,outline:this._O,position:this._P,scaling:this._S,shadow:this._Sh,size:this._Si,sizeBidirectional:this._Siz,smallCaps:this._Sm,spacing:this._Sp,strikeThrough:this._St,stylisticSet:this._Sty,subscript:this._Su,superscript:this._Sup,underline:this._U,underlineColor:this._Un},{borders:this._Bor,fill:this._F,glow:this._G,line:this._Li,reflection:this._R,textColor:this._T,textShadow:this._Te,threeDimensionalFormat:this._Th})},di.prototype.setMockData=function(e){I(this,e)},di.prototype.ensureUnchanged=function(e){d(this,e)},di);function di(){return null!==ui&&ui.apply(this,arguments)||this}a.Font=fi;var hi,gi="HeadingStyle",yi=(hi=OfficeExtension.ClientObject,__extends(mi,hi),Object.defineProperty(mi.prototype,"_className",{get:function(){return"HeadingStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(mi.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","name","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(mi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Name","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(mi.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(mi.prototype,"level",{get:function(){return m("level",this._L,gi,this._isNull),this._L},set:function(e){this._L=e,h(this,"Level",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(mi.prototype,"name",{get:function(){return m("name",this._N,gi,this._isNull),this._N},set:function(e){this._N=e,h(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(mi.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,gi,this._isNull),this.__R},enumerable:!0,configurable:!0}),mi.prototype.set=function(e,t){this._recursivelySet(e,t,["name","level"],[],[])},mi.prototype.update=function(e){this._recursivelyUpdate(e)},mi.prototype.delete=function(){i(this,"Delete",0,[],0,0)},mi.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},mi.prototype._handleResult=function(e){if(hi.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Level)||(this._L=t.Level),y(t.Name)||(this._N=t.Name),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},mi.prototype.load=function(e){return b(this,e)},mi.prototype.retrieve=function(e){return v(this,e)},mi.prototype._handleIdResult=function(e){hi.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},mi.prototype._handleRetrieveResult=function(e,t){hi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},mi.prototype.track=function(){return this.context.trackedObjects.add(this),this},mi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},mi.prototype.toJSON=function(){return O(this,{level:this._L,name:this._N},{})},mi.prototype.setMockData=function(e){I(this,e)},mi.prototype.ensureUnchanged=function(e){d(this,e)},mi);function mi(){return null!==hi&&hi.apply(this,arguments)||this}a.HeadingStyle=yi;var _i,bi="HeadingStyleCollection",vi=(_i=OfficeExtension.ClientObject,__extends(Oi,_i),Object.defineProperty(Oi.prototype,"_className",{get:function(){return"HeadingStyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Oi.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Oi.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Oi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Oi.prototype,"items",{get:function(){return m("items",this.m__items,bi,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Oi.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,bi,this._isNull),this.__R},enumerable:!0,configurable:!0}),Oi.prototype.add=function(e,t){return p(a.HeadingStyle,this,"Add",0,[e,t],!1,!0,null,0)},Oi.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Oi.prototype._handleResult=function(e){if(_i.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.HeadingStyle,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Oi.prototype.load=function(e){return b(this,e)},Oi.prototype.retrieve=function(e){return v(this,e)},Oi.prototype._handleIdResult=function(e){_i.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Oi.prototype._handleRetrieveResult=function(e,t){var n=this;_i.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.HeadingStyle,!1,n,e,t)})},Oi.prototype.track=function(){return this.context.trackedObjects.add(this),this},Oi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Oi.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Oi.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.HeadingStyle,!1,n,e,t)},function(e){return n.m__items=e})},Oi);function Oi(){return null!==_i&&_i.apply(this,arguments)||this}a.HeadingStyleCollection=vi;var Pi,Ci="Hyperlink",Ri=(Pi=OfficeExtension.ClientObject,__extends(Si,Pi),Object.defineProperty(Si.prototype,"_className",{get:function(){return"Hyperlink"},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","address","emailSubject","isExtraInfoRequired","name","screenTip","subAddress","target","textToDisplay","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Address","EmailSubject","IsExtraInfoRequired","Name","ScreenTip","SubAddress","Target","TextToDisplay","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!1,!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"address",{get:function(){return m("address",this._A,Ci,this._isNull),this._A},set:function(e){this._A=e,h(this,"Address",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"emailSubject",{get:function(){return m("emailSubject",this._E,Ci,this._isNull),this._E},set:function(e){this._E=e,h(this,"EmailSubject",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"isExtraInfoRequired",{get:function(){return m("isExtraInfoRequired",this._I,Ci,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"name",{get:function(){return m("name",this._N,Ci,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"screenTip",{get:function(){return m("screenTip",this._S,Ci,this._isNull),this._S},set:function(e){this._S=e,h(this,"ScreenTip",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"subAddress",{get:function(){return m("subAddress",this._Su,Ci,this._isNull),this._Su},set:function(e){this._Su=e,h(this,"SubAddress",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"target",{get:function(){return m("target",this._T,Ci,this._isNull),this._T},set:function(e){this._T=e,h(this,"Target",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"textToDisplay",{get:function(){return m("textToDisplay",this._Te,Ci,this._isNull),this._Te},set:function(e){this._Te=e,h(this,"TextToDisplay",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"type",{get:function(){return m("type",this._Ty,Ci,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Si.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ci,this._isNull),this.__R},enumerable:!0,configurable:!0}),Si.prototype.set=function(e,t){this._recursivelySet(e,t,["address","emailSubject","screenTip","subAddress","target","textToDisplay"],["range"],[])},Si.prototype.update=function(e){this._recursivelyUpdate(e)},Si.prototype.addToFavorites=function(){i(this,"AddToFavorites",0,[],0,0)},Si.prototype.createNewDocument=function(e,t,n){i(this,"CreateNewDocument",0,[e,t,n],0,0)},Si.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Si.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Si.prototype._handleResult=function(e){if(Pi.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Address)||(this._A=t.Address),y(t.EmailSubject)||(this._E=t.EmailSubject),y(t.IsExtraInfoRequired)||(this._I=t.IsExtraInfoRequired),y(t.Name)||(this._N=t.Name),y(t.ScreenTip)||(this._S=t.ScreenTip),y(t.SubAddress)||(this._Su=t.SubAddress),y(t.Target)||(this._T=t.Target),y(t.TextToDisplay)||(this._Te=t.TextToDisplay),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},Si.prototype.load=function(e){return b(this,e)},Si.prototype.retrieve=function(e){return v(this,e)},Si.prototype._handleIdResult=function(e){Pi.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Si.prototype._handleRetrieveResult=function(e,t){Pi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Si.prototype.track=function(){return this.context.trackedObjects.add(this),this},Si.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Si.prototype.toJSON=function(){return O(this,{address:this._A,emailSubject:this._E,isExtraInfoRequired:this._I,name:this._N,screenTip:this._S,subAddress:this._Su,target:this._T,textToDisplay:this._Te,type:this._Ty},{range:this._R})},Si.prototype.setMockData=function(e){I(this,e)},Si.prototype.ensureUnchanged=function(e){d(this,e)},Si);function Si(){return null!==Pi&&Pi.apply(this,arguments)||this}a.Hyperlink=Ri;var Ii,Ai="HyperlinkCollection",Ti=(Ii=OfficeExtension.ClientObject,__extends(Ni,Ii),Object.defineProperty(Ni.prototype,"_className",{get:function(){return"HyperlinkCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ni.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ni.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ni.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ni.prototype,"items",{get:function(){return m("items",this.m__items,Ai,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ni.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ai,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ni.prototype.add=function(e,t){return p(a.Hyperlink,this,"Add",0,[e,t],!1,!0,null,0)},Ni.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ni.prototype._handleResult=function(e){if(Ii.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Hyperlink,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ni.prototype.load=function(e){return b(this,e)},Ni.prototype.retrieve=function(e){return v(this,e)},Ni.prototype._handleIdResult=function(e){Ii.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ni.prototype._handleRetrieveResult=function(e,t){var n=this;Ii.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Hyperlink,!1,n,e,t)})},Ni.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ni.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ni.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Ni.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Hyperlink,!1,n,e,t)},function(e){return n.m__items=e})},Ni);function Ni(){return null!==Ii&&Ii.apply(this,arguments)||this}a.HyperlinkCollection=Ti;var Di,xi="InlinePicture",Ei=(Di=OfficeExtension.ClientObject,__extends(ki,Di),Object.defineProperty(ki.prototype,"_className",{get:function(){return"InlinePicture"},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","altTextDescription","altTextTitle","height","hyperlink","lockAspectRatio","width","imageFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","AltTextDescription","AltTextTitle","Height","Hyperlink","LockAspectRatio","Width","ImageFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"_navigationPropertyNames",{get:function(){return["parentContentControl","paragraph","parentTableCell","parentTable","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject"]},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"paragraph",{get:function(){return _("InlinePicture.paragraph",u,"1.2",l),this._P||(this._P=e(a.Paragraph,this,"Paragraph",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=e(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"parentContentControlOrNullObject",{get:function(){return _("InlinePicture.parentContentControlOrNullObject",u,"1.3",l),this._Par||(this._Par=e(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"parentTable",{get:function(){return _("InlinePicture.parentTable",u,"1.3",l),this._Pare||(this._Pare=e(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"parentTableCell",{get:function(){return _("InlinePicture.parentTableCell",u,"1.3",l),this._Paren||(this._Paren=e(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"parentTableCellOrNullObject",{get:function(){return _("InlinePicture.parentTableCellOrNullObject",u,"1.3",l),this._Parent||(this._Parent=e(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"parentTableOrNullObject",{get:function(){return _("InlinePicture.parentTableOrNullObject",u,"1.3",l),this._ParentT||(this._ParentT=e(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"altTextDescription",{get:function(){return m("altTextDescription",this._A,xi,this._isNull),this._A},set:function(e){this._A=e,h(this,"AltTextDescription",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"altTextTitle",{get:function(){return m("altTextTitle",this._Al,xi,this._isNull),this._Al},set:function(e){this._Al=e,h(this,"AltTextTitle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"height",{get:function(){return m("height",this._H,xi,this._isNull),this._H},set:function(e){this._H=e,h(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"hyperlink",{get:function(){return m("hyperlink",this._Hy,xi,this._isNull),this._Hy},set:function(e){this._Hy=e,h(this,"Hyperlink",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"imageFormat",{get:function(){return m("imageFormat",this._I,xi,this._isNull),_("InlinePicture.imageFormat","WordApiDesktop","1.1",l),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"lockAspectRatio",{get:function(){return m("lockAspectRatio",this._L,xi,this._isNull),this._L},set:function(e){this._L=e,h(this,"LockAspectRatio",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"width",{get:function(){return m("width",this._W,xi,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"_Id",{get:function(){return m("_Id",this.__I,xi,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,xi,this._isNull),this.__R},enumerable:!0,configurable:!0}),ki.prototype.set=function(e,t){this._recursivelySet(e,t,["altTextDescription","altTextTitle","height","hyperlink","lockAspectRatio","width"],[],["paragraph","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject"])},ki.prototype.update=function(e){this._recursivelyUpdate(e)},ki.prototype.delete=function(){_("InlinePicture.delete",u,"1.2",l),i(this,"Delete",0,[],0,0)},ki.prototype.getBase64ImageSrc=function(){return i(this,"GetBase64ImageSrc",1,[],4,0)},ki.prototype.getNext=function(){return _("InlinePicture.getNext",u,"1.3",l),p(a.InlinePicture,this,"GetNext",1,[],!1,!1,null,4)},ki.prototype.getNextOrNullObject=function(){return _("InlinePicture.getNextOrNullObject",u,"1.3",l),p(a.InlinePicture,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},ki.prototype.getRange=function(e){return _("InlinePicture.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},ki.prototype.insertBreak=function(e,t){_("InlinePicture.insertBreak",u,"1.2",l),i(this,"InsertBreak",0,[e,t],0,0)},ki.prototype.insertContentControl=function(){return p(a.ContentControl,this,"InsertContentControl",0,[],!1,!0,null,0)},ki.prototype.insertFileFromBase64=function(e,t){return _("InlinePicture.insertFileFromBase64",u,"1.2",l),p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},ki.prototype.insertHtml=function(e,t){return _("InlinePicture.insertHtml",u,"1.2",l),p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},ki.prototype.insertInlinePictureFromBase64=function(e,t){return _("InlinePicture.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},ki.prototype.insertOoxml=function(e,t){return _("InlinePicture.insertOoxml",u,"1.2",l),p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},ki.prototype.insertParagraph=function(e,t){return _("InlinePicture.insertParagraph",u,"1.2",l),p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},ki.prototype.insertText=function(e,t){return _("InlinePicture.insertText",u,"1.2",l),p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},ki.prototype.select=function(e){_("InlinePicture.select",u,"1.2",l),i(this,"Select",1,[e],4,0)},ki.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ki.prototype._handleResult=function(e){if(Di.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AltTextDescription)||(this._A=t.AltTextDescription),y(t.AltTextTitle)||(this._Al=t.AltTextTitle),y(t.Height)||(this._H=t.Height),y(t.Hyperlink)||(this._Hy=t.Hyperlink),y(t.ImageFormat)||(this._I=t.ImageFormat),y(t.LockAspectRatio)||(this._L=t.LockAspectRatio),y(t.Width)||(this._W=t.Width),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["paragraph","Paragraph","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject"])}},ki.prototype.load=function(e){return b(this,e)},ki.prototype.retrieve=function(e){return v(this,e)},ki.prototype._handleIdResult=function(e){Di.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},ki.prototype._handleRetrieveResult=function(e,t){Di.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ki.prototype.track=function(){return this.context.trackedObjects.add(this),this},ki.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ki.prototype.toJSON=function(){return O(this,{altTextDescription:this._A,altTextTitle:this._Al,height:this._H,hyperlink:this._Hy,imageFormat:this._I,lockAspectRatio:this._L,width:this._W},{})},ki.prototype.setMockData=function(e){I(this,e)},ki.prototype.ensureUnchanged=function(e){d(this,e)},ki);function ki(){return null!==Di&&Di.apply(this,arguments)||this}a.InlinePicture=Ei;var ji,wi="InlinePictureCollection",Fi=(ji=OfficeExtension.ClientObject,__extends(Li,ji),Object.defineProperty(Li.prototype,"_className",{get:function(){return"InlinePictureCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Li.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Li.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Li.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Li.prototype,"items",{get:function(){return m("items",this.m__items,wi,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Li.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,wi,this._isNull),this.__R},enumerable:!0,configurable:!0}),Li.prototype.getFirst=function(){return _("InlinePictureCollection.getFirst",u,"1.3",l),p(a.InlinePicture,this,"GetFirst",1,[],!1,!1,null,4)},Li.prototype.getFirstOrNullObject=function(){return _("InlinePictureCollection.getFirstOrNullObject",u,"1.3",l),p(a.InlinePicture,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Li.prototype._GetItem=function(e){return t(a.InlinePicture,this,[e])},Li.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Li.prototype._handleResult=function(e){if(ji.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.InlinePicture,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Li.prototype.load=function(e){return b(this,e)},Li.prototype.retrieve=function(e){return v(this,e)},Li.prototype._handleIdResult=function(e){ji.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Li.prototype._handleRetrieveResult=function(e,t){var n=this;ji.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.InlinePicture,!0,n,e,t)})},Li.prototype.track=function(){return this.context.trackedObjects.add(this),this},Li.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Li.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Li.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.InlinePicture,!0,n,e,t)},function(e){return n.m__items=e})},Li);function Li(){return null!==ji&&ji.apply(this,arguments)||this}a.InlinePictureCollection=Fi;var Mi,Bi="LinkFormat",Hi=(Mi=OfficeExtension.ClientObject,__extends(Ui,Mi),Object.defineProperty(Ui.prototype,"_className",{get:function(){return"LinkFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","isAutoUpdated","sourceName","sourcePath","isLocked","type","sourceFullName","isPictureSavedWithDocument"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","IsAutoUpdated","SourceName","SourcePath","IsLocked","Type","SourceFullName","IsPictureSavedWithDocument"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"isAutoUpdated",{get:function(){return m("isAutoUpdated",this._I,Bi,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsAutoUpdated",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"isLocked",{get:function(){return m("isLocked",this._Is,Bi,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsLocked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"isPictureSavedWithDocument",{get:function(){return m("isPictureSavedWithDocument",this._IsP,Bi,this._isNull),this._IsP},set:function(e){this._IsP=e,h(this,"IsPictureSavedWithDocument",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"sourceFullName",{get:function(){return m("sourceFullName",this._S,Bi,this._isNull),this._S},set:function(e){this._S=e,h(this,"SourceFullName",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"sourceName",{get:function(){return m("sourceName",this._So,Bi,this._isNull),this._So},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"sourcePath",{get:function(){return m("sourcePath",this._Sou,Bi,this._isNull),this._Sou},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"type",{get:function(){return m("type",this._T,Bi,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Bi,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ui.prototype.set=function(e,t){this._recursivelySet(e,t,["isAutoUpdated","isLocked","sourceFullName","isPictureSavedWithDocument"],[],[])},Ui.prototype.breakLink=function(){i(this,"BreakLink",0,[],0,0)},Ui.prototype.update=function(){i(this,"Update",0,[],0,0)},Ui.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ui.prototype._handleResult=function(e){if(Mi.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.IsAutoUpdated)||(this._I=t.IsAutoUpdated),y(t.IsLocked)||(this._Is=t.IsLocked),y(t.IsPictureSavedWithDocument)||(this._IsP=t.IsPictureSavedWithDocument),y(t.SourceFullName)||(this._S=t.SourceFullName),y(t.SourceName)||(this._So=t.SourceName),y(t.SourcePath)||(this._Sou=t.SourcePath),y(t.Type)||(this._T=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ui.prototype.load=function(e){return b(this,e)},Ui.prototype.retrieve=function(e){return v(this,e)},Ui.prototype._handleIdResult=function(e){Mi.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ui.prototype._handleRetrieveResult=function(e,t){Mi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ui.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ui.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ui.prototype.toJSON=function(){return O(this,{isAutoUpdated:this._I,isLocked:this._Is,isPictureSavedWithDocument:this._IsP,sourceFullName:this._S,sourceName:this._So,sourcePath:this._Sou,type:this._T},{})},Ui.prototype.setMockData=function(e){I(this,e)},Ui.prototype.ensureUnchanged=function(e){d(this,e)},Ui);function Ui(){return null!==Mi&&Mi.apply(this,arguments)||this}a.LinkFormat=Hi;var Wi,Gi="List",Vi=(Wi=OfficeExtension.ClientObject,__extends(zi,Wi),Object.defineProperty(zi.prototype,"_className",{get:function(){return"List"},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"_scalarPropertyNames",{get:function(){return["id","_ReferenceId","levelTypes","levelExistences"]},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["Id","_ReferenceId","LevelTypes","LevelExistences"]},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"_navigationPropertyNames",{get:function(){return["paragraphs"]},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"paragraphs",{get:function(){return this._P||(this._P=e(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"id",{get:function(){return m("id",this._I,Gi,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"levelExistences",{get:function(){return m("levelExistences",this._L,Gi,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"levelTypes",{get:function(){return m("levelTypes",this._Le,Gi,this._isNull),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(zi.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Gi,this._isNull),this.__R},enumerable:!0,configurable:!0}),zi.prototype.getLevelFont=function(e){return _("List.getLevelFont","WordApiDesktop","1.1",l),p(a.Font,this,"GetLevelFont",1,[e],!1,!1,null,4)},zi.prototype.getLevelParagraphs=function(e){return p(a.ParagraphCollection,this,"GetLevelParagraphs",1,[e],!0,!1,null,4)},zi.prototype.getLevelPicture=function(e){return _("List.getLevelPicture","WordApiDesktop","1.1",l),i(this,"GetLevelPicture",1,[e],4,0)},zi.prototype.getLevelString=function(e){return i(this,"GetLevelString",1,[e],4,0)},zi.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},zi.prototype.resetLevelFont=function(e,t){_("List.resetLevelFont","WordApiDesktop","1.1",l),i(this,"ResetLevelFont",0,[e,t],0,0)},zi.prototype.setLevelAlignment=function(e,t){i(this,"SetLevelAlignment",0,[e,t],0,0)},zi.prototype.setLevelBullet=function(e,t,n,r){i(this,"SetLevelBullet",0,[e,t,n,r],0,0)},zi.prototype.setLevelIndents=function(e,t,n){i(this,"SetLevelIndents",0,[e,t,n],0,0)},zi.prototype.setLevelNumbering=function(e,t,n){i(this,"SetLevelNumbering",0,[e,t,n],0,0)},zi.prototype.setLevelPicture=function(e,t){_("List.setLevelPicture","WordApiDesktop","1.1",l),i(this,"SetLevelPicture",0,[e,t],0,0)},zi.prototype.setLevelStartingNumber=function(e,t){i(this,"SetLevelStartingNumber",0,[e,t],0,0)},zi.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},zi.prototype._handleResult=function(e){if(Wi.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Id)||(this._I=t.Id),y(t.LevelExistences)||(this._L=t.LevelExistences),y(t.LevelTypes)||(this._Le=t.LevelTypes),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["paragraphs","Paragraphs"])}},zi.prototype.load=function(e){return b(this,e)},zi.prototype.retrieve=function(e){return v(this,e)},zi.prototype._handleIdResult=function(e){Wi.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},zi.prototype._handleRetrieveResult=function(e,t){Wi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},zi.prototype.track=function(){return this.context.trackedObjects.add(this),this},zi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},zi.prototype.toJSON=function(){return O(this,{id:this._I,levelExistences:this._L,levelTypes:this._Le},{paragraphs:this._P})},zi.prototype.setMockData=function(e){I(this,e)},zi.prototype.ensureUnchanged=function(e){d(this,e)},zi);function zi(){return null!==Wi&&Wi.apply(this,arguments)||this}a.List=Vi;var qi,Ki="ListCollection",Ji=(qi=OfficeExtension.ClientObject,__extends(Xi,qi),Object.defineProperty(Xi.prototype,"_className",{get:function(){return"ListCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Xi.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Xi.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xi.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Xi.prototype,"items",{get:function(){return m("items",this.m__items,Ki,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Xi.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ki,this._isNull),this.__R},enumerable:!0,configurable:!0}),Xi.prototype.getById=function(e){return p(a.List,this,"GetById",1,[e],!1,!1,null,4)},Xi.prototype.getByIdOrNullObject=function(e){return p(a.List,this,"GetByIdOrNullObject",1,[e],!1,!1,null,4)},Xi.prototype.getFirst=function(){return p(a.List,this,"GetFirst",1,[],!1,!1,null,4)},Xi.prototype.getFirstOrNullObject=function(){return p(a.List,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Xi.prototype.getItem=function(e){return t(a.List,this,[e])},Xi.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Xi.prototype._handleResult=function(e){if(qi.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.List,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Xi.prototype.load=function(e){return b(this,e)},Xi.prototype.retrieve=function(e){return v(this,e)},Xi.prototype._handleIdResult=function(e){qi.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Xi.prototype._handleRetrieveResult=function(e,t){var n=this;qi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.List,!0,n,e,t)})},Xi.prototype.track=function(){return this.context.trackedObjects.add(this),this},Xi.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Xi.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Xi.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.List,!0,n,e,t)},function(e){return n.m__items=e})},Xi);function Xi(){return null!==qi&&qi.apply(this,arguments)||this}a.ListCollection=Ji;var Qi,Yi="ListItem",Zi=(Qi=OfficeExtension.ClientObject,__extends($i,Qi),Object.defineProperty($i.prototype,"_className",{get:function(){return"ListItem"},enumerable:!0,configurable:!0}),Object.defineProperty($i.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","siblingIndex","listString","level"]},enumerable:!0,configurable:!0}),Object.defineProperty($i.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","SiblingIndex","ListString","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty($i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty($i.prototype,"level",{get:function(){return m("level",this._L,Yi,this._isNull),this._L},set:function(e){this._L=e,h(this,"Level",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty($i.prototype,"listString",{get:function(){return m("listString",this._Li,Yi,this._isNull),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty($i.prototype,"siblingIndex",{get:function(){return m("siblingIndex",this._S,Yi,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty($i.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Yi,this._isNull),this.__R},enumerable:!0,configurable:!0}),$i.prototype.set=function(e,t){this._recursivelySet(e,t,["level"],[],[])},$i.prototype.update=function(e){this._recursivelyUpdate(e)},$i.prototype.getAncestor=function(e){return p(a.Paragraph,this,"GetAncestor",1,[e],!1,!1,null,4)},$i.prototype.getAncestorOrNullObject=function(e){return p(a.Paragraph,this,"GetAncestorOrNullObject",1,[e],!1,!1,null,4)},$i.prototype.getDescendants=function(e){return p(a.ParagraphCollection,this,"GetDescendants",1,[e],!0,!1,null,4)},$i.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},$i.prototype._handleResult=function(e){if(Qi.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Level)||(this._L=t.Level),y(t.ListString)||(this._Li=t.ListString),y(t.SiblingIndex)||(this._S=t.SiblingIndex),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},$i.prototype.load=function(e){return b(this,e)},$i.prototype.retrieve=function(e){return v(this,e)},$i.prototype._handleIdResult=function(e){Qi.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},$i.prototype._handleRetrieveResult=function(e,t){Qi.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},$i.prototype.track=function(){return this.context.trackedObjects.add(this),this},$i.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},$i.prototype.toJSON=function(){return O(this,{level:this._L,listString:this._Li,siblingIndex:this._S},{})},$i.prototype.setMockData=function(e){I(this,e)},$i.prototype.ensureUnchanged=function(e){d(this,e)},$i);function $i(){return null!==Qi&&Qi.apply(this,arguments)||this}a.ListItem=Zi;var eo,to="ListLevel",no=(eo=OfficeExtension.ClientObject,__extends(ro,eo),Object.defineProperty(ro.prototype,"_className",{get:function(){return"ListLevel"},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","alignment","linkedStyle","numberFormat","numberPosition","numberStyle","resetOnHigher","startAt","tabPosition","textPosition","trailingCharacter"]},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Alignment","LinkedStyle","NumberFormat","NumberPosition","NumberStyle","ResetOnHigher","StartAt","TabPosition","TextPosition","TrailingCharacter"]},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"_navigationPropertyNames",{get:function(){return["font"]},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"font",{get:function(){return this._F||(this._F=e(a.Font,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"alignment",{get:function(){return m("alignment",this._A,to,this._isNull),this._A},set:function(e){this._A=e,h(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"linkedStyle",{get:function(){return m("linkedStyle",this._L,to,this._isNull),this._L},set:function(e){this._L=e,h(this,"LinkedStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"numberFormat",{get:function(){return m("numberFormat",this._N,to,this._isNull),this._N},set:function(e){this._N=e,h(this,"NumberFormat",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"numberPosition",{get:function(){return m("numberPosition",this._Nu,to,this._isNull),this._Nu},set:function(e){this._Nu=e,h(this,"NumberPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"numberStyle",{get:function(){return m("numberStyle",this._Num,to,this._isNull),this._Num},set:function(e){this._Num=e,h(this,"NumberStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"resetOnHigher",{get:function(){return m("resetOnHigher",this._R,to,this._isNull),this._R},set:function(e){this._R=e,h(this,"ResetOnHigher",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"startAt",{get:function(){return m("startAt",this._S,to,this._isNull),this._S},set:function(e){this._S=e,h(this,"StartAt",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"tabPosition",{get:function(){return m("tabPosition",this._T,to,this._isNull),this._T},set:function(e){this._T=e,h(this,"TabPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"textPosition",{get:function(){return m("textPosition",this._Te,to,this._isNull),this._Te},set:function(e){this._Te=e,h(this,"TextPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"trailingCharacter",{get:function(){return m("trailingCharacter",this._Tr,to,this._isNull),this._Tr},set:function(e){this._Tr=e,h(this,"TrailingCharacter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"_Id",{get:function(){return m("_Id",this.__I,to,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,to,this._isNull),this.__R},enumerable:!0,configurable:!0}),ro.prototype.set=function(e,t){this._recursivelySet(e,t,["alignment","linkedStyle","numberFormat","numberPosition","numberStyle","resetOnHigher","startAt","tabPosition","textPosition","trailingCharacter"],["font"],[])},ro.prototype.update=function(e){this._recursivelyUpdate(e)},ro.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ro.prototype._handleResult=function(e){if(eo.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Alignment)||(this._A=t.Alignment),y(t.LinkedStyle)||(this._L=t.LinkedStyle),y(t.NumberFormat)||(this._N=t.NumberFormat),y(t.NumberPosition)||(this._Nu=t.NumberPosition),y(t.NumberStyle)||(this._Num=t.NumberStyle),y(t.ResetOnHigher)||(this._R=t.ResetOnHigher),y(t.StartAt)||(this._S=t.StartAt),y(t.TabPosition)||(this._T=t.TabPosition),y(t.TextPosition)||(this._Te=t.TextPosition),y(t.TrailingCharacter)||(this._Tr=t.TrailingCharacter),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["font","Font"])}},ro.prototype.load=function(e){return b(this,e)},ro.prototype.retrieve=function(e){return v(this,e)},ro.prototype._handleIdResult=function(e){eo.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},ro.prototype._handleRetrieveResult=function(e,t){eo.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ro.prototype.track=function(){return this.context.trackedObjects.add(this),this},ro.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ro.prototype.toJSON=function(){return O(this,{alignment:this._A,linkedStyle:this._L,numberFormat:this._N,numberPosition:this._Nu,numberStyle:this._Num,resetOnHigher:this._R,startAt:this._S,tabPosition:this._T,textPosition:this._Te,trailingCharacter:this._Tr},{font:this._F})},ro.prototype.setMockData=function(e){I(this,e)},ro.prototype.ensureUnchanged=function(e){d(this,e)},ro);function ro(){return null!==eo&&eo.apply(this,arguments)||this}a.ListLevel=no;var io,oo="ListLevelCollection",ao=(io=OfficeExtension.ClientObject,__extends(so,io),Object.defineProperty(so.prototype,"_className",{get:function(){return"ListLevelCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(so.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(so.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(so.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(so.prototype,"items",{get:function(){return m("items",this.m__items,oo,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(so.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,oo,this._isNull),this.__R},enumerable:!0,configurable:!0}),so.prototype.getFirst=function(){return p(a.ListLevel,this,"GetFirst",1,[],!1,!1,null,4)},so.prototype.getFirstOrNullObject=function(){return p(a.ListLevel,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},so.prototype._GetItem=function(e){return t(a.ListLevel,this,[e])},so.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},so.prototype._handleResult=function(e){if(io.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ListLevel,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},so.prototype.load=function(e){return b(this,e)},so.prototype.retrieve=function(e){return v(this,e)},so.prototype._handleIdResult=function(e){io.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},so.prototype._handleRetrieveResult=function(e,t){var n=this;io.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.ListLevel,!0,n,e,t)})},so.prototype.track=function(){return this.context.trackedObjects.add(this),this},so.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},so.prototype.toJSON=function(){return O(this,{},{},this.m__items)},so.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.ListLevel,!0,n,e,t)},function(e){return n.m__items=e})},so);function so(){return null!==io&&io.apply(this,arguments)||this}a.ListLevelCollection=ao;var co,lo="ListTemplate",uo=(co=OfficeExtension.ClientObject,__extends(po,co),Object.defineProperty(po.prototype,"_className",{get:function(){return"ListTemplate"},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","outlineNumbered","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","OutlineNumbered","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"_navigationPropertyNames",{get:function(){return["listLevels"]},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"listLevels",{get:function(){return this._L||(this._L=e(a.ListLevelCollection,this,"ListLevels",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"name",{get:function(){return m("name",this._N,lo,this._isNull),_("ListTemplate.name","WordApiDesktop","1.4",l),this._N},set:function(e){this._N=e,h(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"outlineNumbered",{get:function(){return m("outlineNumbered",this._O,lo,this._isNull),this._O},set:function(e){this._O=e,h(this,"OutlineNumbered",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(po.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,lo,this._isNull),this.__R},enumerable:!0,configurable:!0}),po.prototype.set=function(e,t){this._recursivelySet(e,t,["outlineNumbered","name"],[],["listLevels"])},po.prototype.update=function(e){this._recursivelyUpdate(e)},po.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},po.prototype._handleResult=function(e){if(co.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Name)||(this._N=t.Name),y(t.OutlineNumbered)||(this._O=t.OutlineNumbered),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["listLevels","ListLevels"])}},po.prototype.load=function(e){return b(this,e)},po.prototype.retrieve=function(e){return v(this,e)},po.prototype._handleIdResult=function(e){co.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},po.prototype._handleRetrieveResult=function(e,t){co.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},po.prototype.track=function(){return this.context.trackedObjects.add(this),this},po.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},po.prototype.toJSON=function(){return O(this,{name:this._N,outlineNumbered:this._O},{listLevels:this._L})},po.prototype.setMockData=function(e){I(this,e)},po.prototype.ensureUnchanged=function(e){d(this,e)},po);function po(){return null!==co&&co.apply(this,arguments)||this}a.ListTemplate=uo;var fo,ho="NoteItem",go=(fo=OfficeExtension.ClientObject,__extends(yo,fo),Object.defineProperty(yo.prototype,"_className",{get:function(){return"NoteItem"},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"_navigationPropertyNames",{get:function(){return["body","reference"]},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"body",{get:function(){return this._B||(this._B=e(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"reference",{get:function(){return this._R||(this._R=e(a.Range,this,"Reference",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"type",{get:function(){return m("type",this._T,ho,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"_Id",{get:function(){return m("_Id",this.__I,ho,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ho,this._isNull),this.__R},enumerable:!0,configurable:!0}),yo.prototype.set=function(e,t){this._recursivelySet(e,t,[],["body","reference"],[])},yo.prototype.update=function(e){this._recursivelyUpdate(e)},yo.prototype.delete=function(){i(this,"Delete",0,[],0,0)},yo.prototype.getNext=function(){return p(a.NoteItem,this,"GetNext",1,[],!1,!1,null,4)},yo.prototype.getNextOrNullObject=function(){return p(a.NoteItem,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},yo.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},yo.prototype._handleResult=function(e){if(fo.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Type)||(this._T=t.Type),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["body","Body","reference","Reference"])}},yo.prototype.load=function(e){return b(this,e)},yo.prototype.retrieve=function(e){return v(this,e)},yo.prototype._handleIdResult=function(e){fo.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},yo.prototype._handleRetrieveResult=function(e,t){fo.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},yo.prototype.track=function(){return this.context.trackedObjects.add(this),this},yo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},yo.prototype.toJSON=function(){return O(this,{type:this._T},{body:this._B,reference:this._R})},yo.prototype.setMockData=function(e){I(this,e)},yo.prototype.ensureUnchanged=function(e){d(this,e)},yo);function yo(){return null!==fo&&fo.apply(this,arguments)||this}a.NoteItem=go;var mo,_o="NoteItemCollection",bo=(mo=OfficeExtension.ClientObject,__extends(vo,mo),Object.defineProperty(vo.prototype,"_className",{get:function(){return"NoteItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(vo.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(vo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vo.prototype,"items",{get:function(){return m("items",this.m__items,_o,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(vo.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,_o,this._isNull),this.__R},enumerable:!0,configurable:!0}),vo.prototype.getFirst=function(){return p(a.NoteItem,this,"GetFirst",1,[],!1,!1,null,4)},vo.prototype.getFirstOrNullObject=function(){return p(a.NoteItem,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},vo.prototype._GetItem=function(e){return t(a.NoteItem,this,[e])},vo.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},vo.prototype._handleResult=function(e){if(mo.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.NoteItem,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},vo.prototype.load=function(e){return b(this,e)},vo.prototype.retrieve=function(e){return v(this,e)},vo.prototype._handleIdResult=function(e){mo.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},vo.prototype._handleRetrieveResult=function(e,t){var n=this;mo.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.NoteItem,!0,n,e,t)})},vo.prototype.track=function(){return this.context.trackedObjects.add(this),this},vo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},vo.prototype.toJSON=function(){return O(this,{},{},this.m__items)},vo.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.NoteItem,!0,n,e,t)},function(e){return n.m__items=e})},vo);function vo(){return null!==mo&&mo.apply(this,arguments)||this}a.NoteItemCollection=bo;var Oo,Po="OleFormat",Co=(Oo=OfficeExtension.ClientObject,__extends(Ro,Oo),Object.defineProperty(Ro.prototype,"_className",{get:function(){return"OleFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","classType","isDisplayedAsIcon","iconName","iconPath","iconIndex","iconLabel","label","progId","isFormattingPreservedOnUpdate"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","ClassType","IsDisplayedAsIcon","IconName","IconPath","IconIndex","IconLabel","Label","ProgId","IsFormattingPreservedOnUpdate"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!0,!1,!0,!0,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"classType",{get:function(){return m("classType",this._C,Po,this._isNull),this._C},set:function(e){this._C=e,h(this,"ClassType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"iconIndex",{get:function(){return m("iconIndex",this._I,Po,this._isNull),this._I},set:function(e){this._I=e,h(this,"IconIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"iconLabel",{get:function(){return m("iconLabel",this._Ic,Po,this._isNull),this._Ic},set:function(e){this._Ic=e,h(this,"IconLabel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"iconName",{get:function(){return m("iconName",this._Ico,Po,this._isNull),this._Ico},set:function(e){this._Ico=e,h(this,"IconName",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"iconPath",{get:function(){return m("iconPath",this._Icon,Po,this._isNull),this._Icon},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"isDisplayedAsIcon",{get:function(){return m("isDisplayedAsIcon",this._Is,Po,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"isFormattingPreservedOnUpdate",{get:function(){return m("isFormattingPreservedOnUpdate",this._IsF,Po,this._isNull),this._IsF},set:function(e){this._IsF=e,h(this,"IsFormattingPreservedOnUpdate",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"label",{get:function(){return m("label",this._L,Po,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"progId",{get:function(){return m("progId",this._P,Po,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Ro.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Po,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ro.prototype.set=function(e,t){this._recursivelySet(e,t,["classType","iconName","iconIndex","iconLabel","isFormattingPreservedOnUpdate"],[],[])},Ro.prototype.update=function(e){this._recursivelyUpdate(e)},Ro.prototype.activate=function(){i(this,"Activate",0,[],0,0)},Ro.prototype.activateAs=function(e){i(this,"ActivateAs",0,[e],0,0)},Ro.prototype.doVerb=function(e){i(this,"DoVerb",0,[e],0,0)},Ro.prototype.edit=function(){i(this,"Edit",1,[],4,0)},Ro.prototype.open=function(){i(this,"Open",0,[],0,0)},Ro.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ro.prototype._handleResult=function(e){if(Oo.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.ClassType)||(this._C=t.ClassType),y(t.IconIndex)||(this._I=t.IconIndex),y(t.IconLabel)||(this._Ic=t.IconLabel),y(t.IconName)||(this._Ico=t.IconName),y(t.IconPath)||(this._Icon=t.IconPath),y(t.IsDisplayedAsIcon)||(this._Is=t.IsDisplayedAsIcon),y(t.IsFormattingPreservedOnUpdate)||(this._IsF=t.IsFormattingPreservedOnUpdate),y(t.Label)||(this._L=t.Label),y(t.ProgId)||(this._P=t.ProgId),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ro.prototype.load=function(e){return b(this,e)},Ro.prototype.retrieve=function(e){return v(this,e)},Ro.prototype._handleIdResult=function(e){Oo.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ro.prototype._handleRetrieveResult=function(e,t){Oo.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ro.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ro.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ro.prototype.toJSON=function(){return O(this,{classType:this._C,iconIndex:this._I,iconLabel:this._Ic,iconName:this._Ico,iconPath:this._Icon,isDisplayedAsIcon:this._Is,isFormattingPreservedOnUpdate:this._IsF,label:this._L,progId:this._P},{})},Ro.prototype.setMockData=function(e){I(this,e)},Ro.prototype.ensureUnchanged=function(e){d(this,e)},Ro);function Ro(){return null!==Oo&&Oo.apply(this,arguments)||this}a.OleFormat=Co;var So,Io="Page",Ao=(So=OfficeExtension.ClientObject,__extends(To,So),Object.defineProperty(To.prototype,"_className",{get:function(){return"Page"},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","height","width","index"]},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Height","Width","Index"]},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_navigationPropertyNames",{get:function(){return["breaks"]},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"breaks",{get:function(){return _("Page.breaks","WordApiDesktop","1.3",l),this._B||(this._B=e(a.BreakCollection,this,"Breaks",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"height",{get:function(){return m("height",this._H,Io,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"index",{get:function(){return m("index",this._I,Io,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"width",{get:function(){return m("width",this._W,Io,this._isNull),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_Id",{get:function(){return m("_Id",this.__I,Io,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(To.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Io,this._isNull),this.__R},enumerable:!0,configurable:!0}),To.prototype.getNext=function(){return p(a.Page,this,"GetNext",1,[],!1,!1,null,4)},To.prototype.getNextOrNullObject=function(){return p(a.Page,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},To.prototype.getRange=function(e){return p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},To.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},To.prototype._handleResult=function(e){if(So.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Height)||(this._H=t.Height),y(t.Index)||(this._I=t.Index),y(t.Width)||(this._W=t.Width),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["breaks","Breaks"])}},To.prototype.load=function(e){return b(this,e)},To.prototype.retrieve=function(e){return v(this,e)},To.prototype._handleIdResult=function(e){So.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},To.prototype._handleRetrieveResult=function(e,t){So.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},To.prototype.track=function(){return this.context.trackedObjects.add(this),this},To.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},To.prototype.toJSON=function(){return O(this,{height:this._H,index:this._I,width:this._W},{breaks:this._B})},To.prototype.setMockData=function(e){I(this,e)},To.prototype.ensureUnchanged=function(e){d(this,e)},To);function To(){return null!==So&&So.apply(this,arguments)||this}a.Page=Ao;var No,Do="PageCollection",xo=(No=OfficeExtension.ClientObject,__extends(Eo,No),Object.defineProperty(Eo.prototype,"_className",{get:function(){return"PageCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Eo.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Eo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Eo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Eo.prototype,"items",{get:function(){return m("items",this.m__items,Do,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Eo.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Do,this._isNull),this.__R},enumerable:!0,configurable:!0}),Eo.prototype.getFirst=function(){return p(a.Page,this,"GetFirst",1,[],!1,!1,null,4)},Eo.prototype.getFirstOrNullObject=function(){return p(a.Page,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Eo.prototype._GetItem=function(e){return t(a.Page,this,[e])},Eo.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Eo.prototype._handleResult=function(e){if(No.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Page,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Eo.prototype.load=function(e){return b(this,e)},Eo.prototype.retrieve=function(e){return v(this,e)},Eo.prototype._handleIdResult=function(e){No.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Eo.prototype._handleRetrieveResult=function(e,t){var n=this;No.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Page,!0,n,e,t)})},Eo.prototype.track=function(){return this.context.trackedObjects.add(this),this},Eo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Eo.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Eo.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Page,!0,n,e,t)},function(e){return n.m__items=e})},Eo);function Eo(){return null!==No&&No.apply(this,arguments)||this}a.PageCollection=xo;var ko,jo=(ko=OfficeExtension.ClientObject,__extends(wo,ko),Object.defineProperty(wo.prototype,"_className",{get:function(){return"Pane"},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_navigationPropertyNames",{get:function(){return["pages","pagesEnclosingViewport","selection"]},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"pages",{get:function(){return this._P||(this._P=e(a.PageCollection,this,"Pages",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"pagesEnclosingViewport",{get:function(){return this._Pa||(this._Pa=e(a.PageCollection,this,"PagesEnclosingViewport",!0,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"selection",{get:function(){return _("Pane.selection","WordApiDesktop","1.4",l),this._S||(this._S=e(a.Selection,this,"Selection",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_Id",{get:function(){return m("_Id",this.__I,"Pane",this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"Pane",this._isNull),this.__R},enumerable:!0,configurable:!0}),wo.prototype.getNext=function(){return p(a.Pane,this,"GetNext",1,[],!1,!1,null,4)},wo.prototype.getNextOrNullObject=function(){return p(a.Pane,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},wo.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},wo.prototype._handleResult=function(e){if(ko.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["pages","Pages","pagesEnclosingViewport","PagesEnclosingViewport","selection","Selection"])}},wo.prototype.load=function(e){return b(this,e)},wo.prototype.retrieve=function(e){return v(this,e)},wo.prototype._handleIdResult=function(e){ko.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},wo.prototype._handleRetrieveResult=function(e,t){ko.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},wo.prototype.track=function(){return this.context.trackedObjects.add(this),this},wo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},wo.prototype.toJSON=function(){return O(this,{},{pages:this._P,pagesEnclosingViewport:this._Pa})},wo.prototype.setMockData=function(e){I(this,e)},wo.prototype.ensureUnchanged=function(e){d(this,e)},wo);function wo(){return null!==ko&&ko.apply(this,arguments)||this}a.Pane=jo;var Fo,Lo="PaneCollection",Mo=(Fo=OfficeExtension.ClientObject,__extends(Bo,Fo),Object.defineProperty(Bo.prototype,"_className",{get:function(){return"PaneCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"items",{get:function(){return m("items",this.m__items,Lo,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Lo,this._isNull),this.__R},enumerable:!0,configurable:!0}),Bo.prototype.getFirst=function(){return p(a.Pane,this,"GetFirst",1,[],!1,!1,null,4)},Bo.prototype.getFirstOrNullObject=function(){return p(a.Pane,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Bo.prototype._GetItem=function(e){return t(a.Pane,this,[e])},Bo.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Bo.prototype._handleResult=function(e){if(Fo.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Pane,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Bo.prototype.load=function(e){return b(this,e)},Bo.prototype.retrieve=function(e){return v(this,e)},Bo.prototype._handleIdResult=function(e){Fo.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Bo.prototype._handleRetrieveResult=function(e,t){var n=this;Fo.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Pane,!0,n,e,t)})},Bo.prototype.track=function(){return this.context.trackedObjects.add(this),this},Bo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Bo.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Bo.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Pane,!0,n,e,t)},function(e){return n.m__items=e})},Bo);function Bo(){return null!==Fo&&Fo.apply(this,arguments)||this}a.PaneCollection=Mo;var Ho,Uo="Window",Wo=(Ho=OfficeExtension.ClientObject,__extends(Go,Ho),Object.defineProperty(Go.prototype,"_className",{get:function(){return"Window"},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","isActive","caption","isHorizontalScrollBarDisplayed","isLeftScrollBarDisplayed","isRightRulerDisplayed","areRulersDisplayed","areScreenTipsDisplayed","isVerticalRulerDisplayed","isVerticalScrollBarDisplayed","isDocumentMapVisible","isEnvelopeVisible","height","horizontalPercentScrolled","imeMode","index","left","showSourceDocuments","isSplit","splitVertical","styleAreaWidth","areThumbnailsDisplayed","top","type","usableHeight","usableWidth","verticalPercentScrolled","isVisible","width","windowNumber"]},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","IsActive","Caption","IsHorizontalScrollBarDisplayed","IsLeftScrollBarDisplayed","IsRightRulerDisplayed","AreRulersDisplayed","AreScreenTipsDisplayed","IsVerticalRulerDisplayed","IsVerticalScrollBarDisplayed","IsDocumentMapVisible","IsEnvelopeVisible","Height","HorizontalPercentScrolled","ImeMode","Index","Left","ShowSourceDocuments","IsSplit","SplitVertical","StyleAreaWidth","AreThumbnailsDisplayed","Top","Type","UsableHeight","UsableWidth","VerticalPercentScrolled","IsVisible","Width","WindowNumber"]},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"_navigationPropertyNames",{get:function(){return["panes","activePane","view","next","previous"]},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"activePane",{get:function(){return this._A||(this._A=e(a.Pane,this,"ActivePane",!1,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"next",{get:function(){return _("Window.next","WordApiDesktop","1.4",l),this._N||(this._N=e(a.Window,this,"Next",!1,4)),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"panes",{get:function(){return this._P||(this._P=e(a.PaneCollection,this,"Panes",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"previous",{get:function(){return _("Window.previous","WordApiDesktop","1.4",l),this._Pr||(this._Pr=e(a.Window,this,"Previous",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"view",{get:function(){return _("Window.view","WordApiDesktop","1.4",l),this._Vi||(this._Vi=e(a.View,this,"View",!1,4)),this._Vi},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"areRulersDisplayed",{get:function(){return m("areRulersDisplayed",this._Ar,Uo,this._isNull),_("Window.areRulersDisplayed","WordApiDesktop","1.4",l),this._Ar},set:function(e){this._Ar=e,h(this,"AreRulersDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"areScreenTipsDisplayed",{get:function(){return m("areScreenTipsDisplayed",this._Are,Uo,this._isNull),_("Window.areScreenTipsDisplayed","WordApiDesktop","1.4",l),this._Are},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"areThumbnailsDisplayed",{get:function(){return m("areThumbnailsDisplayed",this._AreT,Uo,this._isNull),_("Window.areThumbnailsDisplayed","WordApiDesktop","1.4",l),this._AreT},set:function(e){this._AreT=e,h(this,"AreThumbnailsDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"caption",{get:function(){return m("caption",this._C,Uo,this._isNull),_("Window.caption","WordApiDesktop","1.4",l),this._C},set:function(e){this._C=e,h(this,"Caption",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"height",{get:function(){return m("height",this._H,Uo,this._isNull),_("Window.height","WordApiDesktop","1.4",l),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"horizontalPercentScrolled",{get:function(){return m("horizontalPercentScrolled",this._Ho,Uo,this._isNull),_("Window.horizontalPercentScrolled","WordApiDesktop","1.4",l),this._Ho},set:function(e){this._Ho=e,h(this,"HorizontalPercentScrolled",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"imeMode",{get:function(){return m("imeMode",this._I,Uo,this._isNull),_("Window.imeMode","WordApiDesktop","1.4",l),this._I},set:function(e){this._I=e,h(this,"ImeMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"index",{get:function(){return m("index",this._In,Uo,this._isNull),_("Window.index","WordApiDesktop","1.4",l),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isActive",{get:function(){return m("isActive",this._Is,Uo,this._isNull),_("Window.isActive","WordApiDesktop","1.4",l),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isDocumentMapVisible",{get:function(){return m("isDocumentMapVisible",this._IsD,Uo,this._isNull),_("Window.isDocumentMapVisible","WordApiDesktop","1.4",l),this._IsD},set:function(e){this._IsD=e,h(this,"IsDocumentMapVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isEnvelopeVisible",{get:function(){return m("isEnvelopeVisible",this._IsE,Uo,this._isNull),_("Window.isEnvelopeVisible","WordApiDesktop","1.4",l),this._IsE},set:function(e){this._IsE=e,h(this,"IsEnvelopeVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isHorizontalScrollBarDisplayed",{get:function(){return m("isHorizontalScrollBarDisplayed",this._IsH,Uo,this._isNull),_("Window.isHorizontalScrollBarDisplayed","WordApiDesktop","1.4",l),this._IsH},set:function(e){this._IsH=e,h(this,"IsHorizontalScrollBarDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isLeftScrollBarDisplayed",{get:function(){return m("isLeftScrollBarDisplayed",this._IsL,Uo,this._isNull),_("Window.isLeftScrollBarDisplayed","WordApiDesktop","1.4",l),this._IsL},set:function(e){this._IsL=e,h(this,"IsLeftScrollBarDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isRightRulerDisplayed",{get:function(){return m("isRightRulerDisplayed",this._IsR,Uo,this._isNull),_("Window.isRightRulerDisplayed","WordApiDesktop","1.4",l),this._IsR},set:function(e){this._IsR=e,h(this,"IsRightRulerDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isSplit",{get:function(){return m("isSplit",this._IsS,Uo,this._isNull),_("Window.isSplit","WordApiDesktop","1.4",l),this._IsS},set:function(e){this._IsS=e,h(this,"IsSplit",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isVerticalRulerDisplayed",{get:function(){return m("isVerticalRulerDisplayed",this._IsV,Uo,this._isNull),_("Window.isVerticalRulerDisplayed","WordApiDesktop","1.4",l),this._IsV},set:function(e){this._IsV=e,h(this,"IsVerticalRulerDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isVerticalScrollBarDisplayed",{get:function(){return m("isVerticalScrollBarDisplayed",this._IsVe,Uo,this._isNull),_("Window.isVerticalScrollBarDisplayed","WordApiDesktop","1.4",l),this._IsVe},set:function(e){this._IsVe=e,h(this,"IsVerticalScrollBarDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"isVisible",{get:function(){return m("isVisible",this._IsVi,Uo,this._isNull),_("Window.isVisible","WordApiDesktop","1.4",l),this._IsVi},set:function(e){this._IsVi=e,h(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"left",{get:function(){return m("left",this._L,Uo,this._isNull),_("Window.left","WordApiDesktop","1.4",l),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"showSourceDocuments",{get:function(){return m("showSourceDocuments",this._S,Uo,this._isNull),_("Window.showSourceDocuments","WordApiDesktop","1.4",l),this._S},set:function(e){this._S=e,h(this,"ShowSourceDocuments",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"splitVertical",{get:function(){return m("splitVertical",this._Sp,Uo,this._isNull),_("Window.splitVertical","WordApiDesktop","1.4",l),this._Sp},set:function(e){this._Sp=e,h(this,"SplitVertical",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"styleAreaWidth",{get:function(){return m("styleAreaWidth",this._St,Uo,this._isNull),_("Window.styleAreaWidth","WordApiDesktop","1.4",l),this._St},set:function(e){this._St=e,h(this,"StyleAreaWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"top",{get:function(){return m("top",this._T,Uo,this._isNull),_("Window.top","WordApiDesktop","1.4",l),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"type",{get:function(){return m("type",this._Ty,Uo,this._isNull),_("Window.type","WordApiDesktop","1.4",l),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"usableHeight",{get:function(){return m("usableHeight",this._U,Uo,this._isNull),_("Window.usableHeight","WordApiDesktop","1.4",l),this._U},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"usableWidth",{get:function(){return m("usableWidth",this._Us,Uo,this._isNull),_("Window.usableWidth","WordApiDesktop","1.4",l),this._Us},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"verticalPercentScrolled",{get:function(){return m("verticalPercentScrolled",this._V,Uo,this._isNull),_("Window.verticalPercentScrolled","WordApiDesktop","1.4",l),this._V},set:function(e){this._V=e,h(this,"VerticalPercentScrolled",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"width",{get:function(){return m("width",this._W,Uo,this._isNull),_("Window.width","WordApiDesktop","1.4",l),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"windowNumber",{get:function(){return m("windowNumber",this._Wi,Uo,this._isNull),_("Window.windowNumber","WordApiDesktop","1.4",l),this._Wi},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"_Id",{get:function(){return m("_Id",this.__I,Uo,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Uo,this._isNull),this.__R},enumerable:!0,configurable:!0}),Go.prototype.set=function(e,t){this._recursivelySet(e,t,["caption","isHorizontalScrollBarDisplayed","isLeftScrollBarDisplayed","isRightRulerDisplayed","areRulersDisplayed","isVerticalRulerDisplayed","isVerticalScrollBarDisplayed","isDocumentMapVisible","isEnvelopeVisible","horizontalPercentScrolled","imeMode","showSourceDocuments","isSplit","splitVertical","styleAreaWidth","areThumbnailsDisplayed","verticalPercentScrolled","isVisible"],["next","previous"],["activePane","panes","view"])},Go.prototype.update=function(e){this._recursivelyUpdate(e)},Go.prototype.activate=function(){_("Window.activate","WordApiDesktop","1.4",l),i(this,"Activate",0,[],0,0)},Go.prototype.close=function(e){_("Window.close","WordApiDesktop","1.4",l),i(this,"Close",0,[e],0,0)},Go.prototype.largeScroll=function(e){_("Window.largeScroll","WordApiDesktop","1.4",l),i(this,"LargeScroll",0,[e],0,0)},Go.prototype.pageScroll=function(e){_("Window.pageScroll","WordApiDesktop","1.4",l),i(this,"PageScroll",0,[e],0,0)},Go.prototype.setFocus=function(){_("Window.setFocus","WordApiDesktop","1.4",l),i(this,"SetFocus",0,[],0,0)},Go.prototype.smallScroll=function(e){_("Window.smallScroll","WordApiDesktop","1.4",l),i(this,"SmallScroll",0,[e],0,0)},Go.prototype.toggleRibbon=function(){_("Window.toggleRibbon","WordApiDesktop","1.4",l),i(this,"ToggleRibbon",0,[],0,0)},Go.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Go.prototype._handleResult=function(e){if(Ho.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AreRulersDisplayed)||(this._Ar=t.AreRulersDisplayed),y(t.AreScreenTipsDisplayed)||(this._Are=t.AreScreenTipsDisplayed),y(t.AreThumbnailsDisplayed)||(this._AreT=t.AreThumbnailsDisplayed),y(t.Caption)||(this._C=t.Caption),y(t.Height)||(this._H=t.Height),y(t.HorizontalPercentScrolled)||(this._Ho=t.HorizontalPercentScrolled),y(t.ImeMode)||(this._I=t.ImeMode),y(t.Index)||(this._In=t.Index),y(t.IsActive)||(this._Is=t.IsActive),y(t.IsDocumentMapVisible)||(this._IsD=t.IsDocumentMapVisible),y(t.IsEnvelopeVisible)||(this._IsE=t.IsEnvelopeVisible),y(t.IsHorizontalScrollBarDisplayed)||(this._IsH=t.IsHorizontalScrollBarDisplayed),y(t.IsLeftScrollBarDisplayed)||(this._IsL=t.IsLeftScrollBarDisplayed),y(t.IsRightRulerDisplayed)||(this._IsR=t.IsRightRulerDisplayed),y(t.IsSplit)||(this._IsS=t.IsSplit),y(t.IsVerticalRulerDisplayed)||(this._IsV=t.IsVerticalRulerDisplayed),y(t.IsVerticalScrollBarDisplayed)||(this._IsVe=t.IsVerticalScrollBarDisplayed),y(t.IsVisible)||(this._IsVi=t.IsVisible),y(t.Left)||(this._L=t.Left),y(t.ShowSourceDocuments)||(this._S=t.ShowSourceDocuments),y(t.SplitVertical)||(this._Sp=t.SplitVertical),y(t.StyleAreaWidth)||(this._St=t.StyleAreaWidth),y(t.Top)||(this._T=t.Top),y(t.Type)||(this._Ty=t.Type),y(t.UsableHeight)||(this._U=t.UsableHeight),y(t.UsableWidth)||(this._Us=t.UsableWidth),y(t.VerticalPercentScrolled)||(this._V=t.VerticalPercentScrolled),y(t.Width)||(this._W=t.Width),y(t.WindowNumber)||(this._Wi=t.WindowNumber),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["activePane","ActivePane","next","Next","panes","Panes","previous","Previous","view","View"])}},Go.prototype.load=function(e){return b(this,e)},Go.prototype.retrieve=function(e){return v(this,e)},Go.prototype._handleIdResult=function(e){Ho.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},Go.prototype._handleRetrieveResult=function(e,t){Ho.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Go.prototype.track=function(){return this.context.trackedObjects.add(this),this},Go.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Go.prototype.toJSON=function(){return O(this,{areRulersDisplayed:this._Ar,areScreenTipsDisplayed:this._Are,areThumbnailsDisplayed:this._AreT,caption:this._C,height:this._H,horizontalPercentScrolled:this._Ho,imeMode:this._I,index:this._In,isActive:this._Is,isDocumentMapVisible:this._IsD,isEnvelopeVisible:this._IsE,isHorizontalScrollBarDisplayed:this._IsH,isLeftScrollBarDisplayed:this._IsL,isRightRulerDisplayed:this._IsR,isSplit:this._IsS,isVerticalRulerDisplayed:this._IsV,isVerticalScrollBarDisplayed:this._IsVe,isVisible:this._IsVi,left:this._L,showSourceDocuments:this._S,splitVertical:this._Sp,styleAreaWidth:this._St,top:this._T,type:this._Ty,usableHeight:this._U,usableWidth:this._Us,verticalPercentScrolled:this._V,width:this._W,windowNumber:this._Wi},{next:this._N,previous:this._Pr})},Go.prototype.setMockData=function(e){I(this,e)},Go.prototype.ensureUnchanged=function(e){d(this,e)},Go);function Go(){return null!==Ho&&Ho.apply(this,arguments)||this}a.Window=Wo;var Vo,zo="WindowCollection",qo=(Vo=OfficeExtension.ClientObject,__extends(Ko,Vo),Object.defineProperty(Ko.prototype,"_className",{get:function(){return"WindowCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ko.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ko.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ko.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ko.prototype,"items",{get:function(){return m("items",this.m__items,zo,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ko.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,zo,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ko.prototype.getFirst=function(){return p(a.Window,this,"GetFirst",1,[],!1,!1,null,4)},Ko.prototype.getFirstOrNullObject=function(){return p(a.Window,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Ko.prototype._GetItem=function(e){return t(a.Window,this,[e])},Ko.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ko.prototype._handleResult=function(e){if(Vo.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Window,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ko.prototype.load=function(e){return b(this,e)},Ko.prototype.retrieve=function(e){return v(this,e)},Ko.prototype._handleIdResult=function(e){Vo.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ko.prototype._handleRetrieveResult=function(e,t){var n=this;Vo.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Window,!0,n,e,t)})},Ko.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ko.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ko.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Ko.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Window,!0,n,e,t)},function(e){return n.m__items=e})},Ko);function Ko(){return null!==Vo&&Vo.apply(this,arguments)||this}a.WindowCollection=qo;var Jo,Xo="Paragraph",Qo=(Jo=OfficeExtension.ClientObject,__extends(Yo,Jo),Object.defineProperty(Yo.prototype,"_className",{get:function(){return"Paragraph"},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","style","alignment","firstLineIndent","leftIndent","rightIndent","lineSpacing","outlineLevel","spaceBefore","spaceAfter","lineUnitBefore","lineUnitAfter","text","isListItem","tableNestingLevel","isLastParagraph","styleBuiltIn","uniqueLocalId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Style","Alignment","FirstLineIndent","LeftIndent","RightIndent","LineSpacing","OutlineLevel","SpaceBefore","SpaceAfter","LineUnitBefore","LineUnitAfter","Text","IsListItem","TableNestingLevel","IsLastParagraph","StyleBuiltIn","UniqueLocalId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"_navigationPropertyNames",{get:function(){return["font","contentControls","parentContentControl","inlinePictures","parentBody","list","parentTableCell","parentTable","listItem","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject","listOrNullObject","listItemOrNullObject","footnotes","endnotes","fields","shapes","shading","borders"]},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"borders",{get:function(){return _("Paragraph.borders","WordApiDesktop","1.3",l),this._B||(this._B=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"contentControls",{get:function(){return this._C||(this._C=e(a.ContentControlCollection,this,"ContentControls",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"endnotes",{get:function(){return _("Paragraph.endnotes",u,"1.5",l),this._E||(this._E=e(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"fields",{get:function(){return _("Paragraph.fields",u,"1.4",l),this._F||(this._F=e(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"font",{get:function(){return this._Fo||(this._Fo=e(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"footnotes",{get:function(){return _("Paragraph.footnotes",u,"1.5",l),this._Foo||(this._Foo=e(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"inlinePictures",{get:function(){return this._I||(this._I=e(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"list",{get:function(){return _("Paragraph.list",u,"1.3",l),this._Lis||(this._Lis=e(a.List,this,"List",!1,4)),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"listItem",{get:function(){return _("Paragraph.listItem",u,"1.3",l),this._List||(this._List=e(a.ListItem,this,"ListItem",!1,4)),this._List},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"listItemOrNullObject",{get:function(){return _("Paragraph.listItemOrNullObject",u,"1.3",l),this._ListI||(this._ListI=e(a.ListItem,this,"ListItemOrNullObject",!1,4)),this._ListI},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"listOrNullObject",{get:function(){return _("Paragraph.listOrNullObject",u,"1.3",l),this._ListO||(this._ListO=e(a.List,this,"ListOrNullObject",!1,4)),this._ListO},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"parentBody",{get:function(){return _("Paragraph.parentBody",u,"1.3",l),this._P||(this._P=e(a.Body,this,"ParentBody",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=e(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"parentContentControlOrNullObject",{get:function(){return _("Paragraph.parentContentControlOrNullObject",u,"1.3",l),this._Par||(this._Par=e(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"parentTable",{get:function(){return _("Paragraph.parentTable",u,"1.3",l),this._Pare||(this._Pare=e(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"parentTableCell",{get:function(){return _("Paragraph.parentTableCell",u,"1.3",l),this._Paren||(this._Paren=e(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"parentTableCellOrNullObject",{get:function(){return _("Paragraph.parentTableCellOrNullObject",u,"1.3",l),this._Parent||(this._Parent=e(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"parentTableOrNullObject",{get:function(){return _("Paragraph.parentTableOrNullObject",u,"1.3",l),this._ParentT||(this._ParentT=e(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"shading",{get:function(){return _("Paragraph.shading","WordApiDesktop","1.3",l),this._S||(this._S=e(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"shapes",{get:function(){return _("Paragraph.shapes","WordApiDesktop","1.2",l),this._Sh||(this._Sh=e(a.ShapeCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"alignment",{get:function(){return m("alignment",this._A,Xo,this._isNull),this._A},set:function(e){this._A=e,h(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"firstLineIndent",{get:function(){return m("firstLineIndent",this._Fi,Xo,this._isNull),this._Fi},set:function(e){this._Fi=e,h(this,"FirstLineIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"isLastParagraph",{get:function(){return m("isLastParagraph",this._Is,Xo,this._isNull),_("Paragraph.isLastParagraph",u,"1.3",l),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"isListItem",{get:function(){return m("isListItem",this._IsL,Xo,this._isNull),_("Paragraph.isListItem",u,"1.3",l),this._IsL},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"leftIndent",{get:function(){return m("leftIndent",this._L,Xo,this._isNull),this._L},set:function(e){this._L=e,h(this,"LeftIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"lineSpacing",{get:function(){return m("lineSpacing",this._Li,Xo,this._isNull),this._Li},set:function(e){this._Li=e,h(this,"LineSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"lineUnitAfter",{get:function(){return m("lineUnitAfter",this._Lin,Xo,this._isNull),this._Lin},set:function(e){this._Lin=e,h(this,"LineUnitAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"lineUnitBefore",{get:function(){return m("lineUnitBefore",this._Line,Xo,this._isNull),this._Line},set:function(e){this._Line=e,h(this,"LineUnitBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"outlineLevel",{get:function(){return m("outlineLevel",this._O,Xo,this._isNull),this._O},set:function(e){this._O=e,h(this,"OutlineLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"rightIndent",{get:function(){return m("rightIndent",this._R,Xo,this._isNull),this._R},set:function(e){this._R=e,h(this,"RightIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"spaceAfter",{get:function(){return m("spaceAfter",this._Sp,Xo,this._isNull),this._Sp},set:function(e){this._Sp=e,h(this,"SpaceAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"spaceBefore",{get:function(){return m("spaceBefore",this._Spa,Xo,this._isNull),this._Spa},set:function(e){this._Spa=e,h(this,"SpaceBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"style",{get:function(){return m("style",this._St,Xo,this._isNull),this._St},set:function(e){this._St=e,h(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"styleBuiltIn",{get:function(){return m("styleBuiltIn",this._Sty,Xo,this._isNull),_("Paragraph.styleBuiltIn",u,"1.3",l),this._Sty},set:function(e){this._Sty=e,h(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"tableNestingLevel",{get:function(){return m("tableNestingLevel",this._T,Xo,this._isNull),_("Paragraph.tableNestingLevel",u,"1.3",l),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"text",{get:function(){return m("text",this._Te,Xo,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"uniqueLocalId",{get:function(){return m("uniqueLocalId",this._U,Xo,this._isNull),_("Paragraph.uniqueLocalId",u,"1.6",l),this._U},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"_Id",{get:function(){return m("_Id",this.__I,Xo,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Xo,this._isNull),this.__R},enumerable:!0,configurable:!0}),Yo.prototype.set=function(e,t){this._recursivelySet(e,t,["style","alignment","firstLineIndent","leftIndent","rightIndent","lineSpacing","outlineLevel","spaceBefore","spaceAfter","lineUnitBefore","lineUnitAfter","styleBuiltIn"],["font","listItem","listItemOrNullObject","shading"],["borders","contentControls","endnotes","fields","footnotes","inlinePictures","list","listOrNullObject","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","shapes"])},Yo.prototype.update=function(e){this._recursivelyUpdate(e)},Yo.prototype.attachToList=function(e,t){return _("Paragraph.attachToList",u,"1.3",l),p(a.List,this,"AttachToList",0,[e,t],!1,!1,null,0)},Yo.prototype.clear=function(){i(this,"Clear",0,[],0,0)},Yo.prototype.closeUp=function(){_("Paragraph.closeUp","WordApiDesktop","1.4",l),i(this,"CloseUp",0,[],0,0)},Yo.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Yo.prototype.detachFromList=function(){_("Paragraph.detachFromList",u,"1.3",l),i(this,"DetachFromList",0,[],0,0)},Yo.prototype.getAnnotations=function(){return _("Paragraph.getAnnotations",u,"1.7",l),p(a.AnnotationCollection,this,"GetAnnotations",1,[],!0,!1,null,4)},Yo.prototype.getComments=function(){return _("Paragraph.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},Yo.prototype.getContentControls=function(e){return _("Paragraph.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},Yo.prototype.getHtml=function(){return i(this,"GetHtml",1,[],4,0)},Yo.prototype.getMetadata=function(e){return i(this,"GetMetadata",1,[e],4,0)},Yo.prototype.getNext=function(){return _("Paragraph.getNext",u,"1.3",l),p(a.Paragraph,this,"GetNext",1,[],!1,!1,null,4)},Yo.prototype.getNextOrNullObject=function(){return _("Paragraph.getNextOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Yo.prototype.getOoxml=function(){return i(this,"GetOoxml",1,[],4,0)},Yo.prototype.getPrevious=function(){return _("Paragraph.getPrevious",u,"1.3",l),p(a.Paragraph,this,"GetPrevious",1,[],!1,!1,null,4)},Yo.prototype.getPreviousOrNullObject=function(){return _("Paragraph.getPreviousOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetPreviousOrNullObject",1,[],!1,!1,null,4)},Yo.prototype.getRange=function(e){return _("Paragraph.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},Yo.prototype.getReviewedText=function(e){return _("Paragraph.getReviewedText",u,"1.4",l),i(this,"GetReviewedText",1,[e],4,0)},Yo.prototype.getSubrange=function(e,t){return _("Paragraph.getSubrange",u,"1.3",l),p(a.Range,this,"GetSubrange",1,[e,t],!1,!1,null,4)},Yo.prototype.getText=function(e){return _("Paragraph.getText",u,"1.7",l),i(this,"GetText",1,[e],4,0)},Yo.prototype.getTextRanges=function(e,t){return _("Paragraph.getTextRanges",u,"1.3",l),p(a.RangeCollection,this,"GetTextRanges",1,[e,t],!0,!1,null,4)},Yo.prototype.getTrackedChanges=function(){return _("Paragraph.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},Yo.prototype.indent=function(){_("Paragraph.indent","WordApiDesktop","1.4",l),i(this,"Indent",0,[],0,0)},Yo.prototype.indentCharacterWidth=function(e){_("Paragraph.indentCharacterWidth","WordApiDesktop","1.4",l),i(this,"IndentCharacterWidth",0,[e],0,0)},Yo.prototype.indentFirstLineCharacterWidth=function(e){_("Paragraph.indentFirstLineCharacterWidth","WordApiDesktop","1.4",l),i(this,"IndentFirstLineCharacterWidth",0,[e],0,0)},Yo.prototype.insertAnnotations=function(e){return _("Paragraph.insertAnnotations",u,"1.7",l),i(this,"InsertAnnotations",0,[e],0,0)},Yo.prototype.insertBreak=function(e,t){i(this,"InsertBreak",0,[e,t],0,0)},Yo.prototype.insertCanvas=function(e){return _("Paragraph.insertCanvas","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertCanvas",0,[e],!1,!1,null,0)},Yo.prototype.insertContentControl=function(e){return p(a.ContentControl,this,"InsertContentControl",0,[e],!1,!0,null,0)},Yo.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},Yo.prototype.insertGeometricShape=function(e,t){return _("Paragraph.insertGeometricShape","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertGeometricShape",0,[e,t],!1,!1,null,0)},Yo.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},Yo.prototype.insertInlinePictureFromBase64=function(e,t){return p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},Yo.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},Yo.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},Yo.prototype.insertPictureFromBase64=function(e,t){return _("Paragraph.insertPictureFromBase64","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertPictureFromBase64",0,[e,t],!1,!1,null,0)},Yo.prototype.insertTable=function(e,t,n,r){return _("Paragraph.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},Yo.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},Yo.prototype.insertTextBox=function(e,t){return _("Paragraph.insertTextBox","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertTextBox",0,[e,t],!1,!1,null,0)},Yo.prototype.joinList=function(){_("Paragraph.joinList","WordApiDesktop","1.4",l),i(this,"JoinList",0,[],0,0)},Yo.prototype.next=function(e){return _("Paragraph.next","WordApiDesktop","1.4",l),p(a.Paragraph,this,"Next",0,[e],!1,!1,null,0)},Yo.prototype.openOrCloseUp=function(){_("Paragraph.openOrCloseUp","WordApiDesktop","1.4",l),i(this,"OpenOrCloseUp",0,[],0,0)},Yo.prototype.openUp=function(){_("Paragraph.openUp","WordApiDesktop","1.4",l),i(this,"OpenUp",0,[],0,0)},Yo.prototype.outdent=function(){_("Paragraph.outdent","WordApiDesktop","1.4",l),i(this,"Outdent",0,[],0,0)},Yo.prototype.outlineDemote=function(){_("Paragraph.outlineDemote","WordApiDesktop","1.4",l),i(this,"OutlineDemote",0,[],0,0)},Yo.prototype.outlineDemoteToBody=function(){_("Paragraph.outlineDemoteToBody","WordApiDesktop","1.4",l),i(this,"OutlineDemoteToBody",0,[],0,0)},Yo.prototype.outlinePromote=function(){_("Paragraph.outlinePromote","WordApiDesktop","1.4",l),i(this,"OutlinePromote",0,[],0,0)},Yo.prototype.previous=function(e){return _("Paragraph.previous","WordApiDesktop","1.4",l),p(a.Paragraph,this,"Previous",0,[e],!1,!1,null,0)},Yo.prototype.reset=function(){_("Paragraph.reset","WordApiDesktop","1.4",l),i(this,"Reset",0,[],0,0)},Yo.prototype.resetAdvanceTo=function(){_("Paragraph.resetAdvanceTo","WordApiDesktop","1.4",l),i(this,"ResetAdvanceTo",0,[],0,0)},Yo.prototype.search=function(e,t){var n=ce.Paragraph_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},Yo.prototype.select=function(e){i(this,"Select",1,[e],4,0)},Yo.prototype.selectNumber=function(){_("Paragraph.selectNumber","WordApiDesktop","1.4",l),i(this,"SelectNumber",0,[],0,0)},Yo.prototype.separateList=function(){_("Paragraph.separateList","WordApiDesktop","1.4",l),i(this,"SeparateList",0,[],0,0)},Yo.prototype.setMetadata=function(e,t){i(this,"SetMetadata",0,[e,t],0,0)},Yo.prototype.space1=function(){_("Paragraph.space1","WordApiDesktop","1.4",l),i(this,"Space1",0,[],0,0)},Yo.prototype.space1Pt5=function(){_("Paragraph.space1Pt5","WordApiDesktop","1.4",l),i(this,"Space1Pt5",0,[],0,0)},Yo.prototype.space2=function(){_("Paragraph.space2","WordApiDesktop","1.4",l),i(this,"Space2",0,[],0,0)},Yo.prototype.split=function(e,t,n){return _("Paragraph.split",u,"1.3",l),p(a.RangeCollection,this,"Split",1,[e,t,n],!0,!1,null,4)},Yo.prototype.startNewList=function(){return _("Paragraph.startNewList",u,"1.3",l),p(a.List,this,"StartNewList",0,[],!1,!1,null,0)},Yo.prototype.tabHangingIndent=function(e){_("Paragraph.tabHangingIndent","WordApiDesktop","1.4",l),i(this,"TabHangingIndent",0,[e],0,0)},Yo.prototype.tabIndent=function(e){_("Paragraph.tabIndent","WordApiDesktop","1.4",l),i(this,"TabIndent",0,[e],0,0)},Yo.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Yo.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},Yo.prototype._handleResult=function(e){if(Jo.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Alignment)||(this._A=t.Alignment),y(t.FirstLineIndent)||(this._Fi=t.FirstLineIndent),y(t.IsLastParagraph)||(this._Is=t.IsLastParagraph),y(t.IsListItem)||(this._IsL=t.IsListItem),y(t.LeftIndent)||(this._L=t.LeftIndent),y(t.LineSpacing)||(this._Li=t.LineSpacing),y(t.LineUnitAfter)||(this._Lin=t.LineUnitAfter),y(t.LineUnitBefore)||(this._Line=t.LineUnitBefore),y(t.OutlineLevel)||(this._O=t.OutlineLevel),y(t.RightIndent)||(this._R=t.RightIndent),y(t.SpaceAfter)||(this._Sp=t.SpaceAfter),y(t.SpaceBefore)||(this._Spa=t.SpaceBefore),y(t.Style)||(this._St=t.Style),y(t.StyleBuiltIn)||(this._Sty=t.StyleBuiltIn),y(t.TableNestingLevel)||(this._T=t.TableNestingLevel),y(t.Text)||(this._Te=t.Text),y(t.UniqueLocalId)||(this._U=t.UniqueLocalId),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","contentControls","ContentControls","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","inlinePictures","InlinePictures","list","List","listItem","ListItem","listItemOrNullObject","ListItemOrNullObject","listOrNullObject","ListOrNullObject","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","shading","Shading","shapes","Shapes"])}},Yo.prototype.load=function(e){return b(this,e)},Yo.prototype.retrieve=function(e){return v(this,e)},Yo.prototype._handleIdResult=function(e){Jo.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},Yo.prototype._handleRetrieveResult=function(e,t){Jo.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Yo.prototype.track=function(){return this.context.trackedObjects.add(this),this},Yo.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Yo.prototype.toJSON=function(){return O(this,{alignment:this._A,firstLineIndent:this._Fi,isLastParagraph:this._Is,isListItem:this._IsL,leftIndent:this._L,lineSpacing:this._Li,lineUnitAfter:this._Lin,lineUnitBefore:this._Line,outlineLevel:this._O,rightIndent:this._R,spaceAfter:this._Sp,spaceBefore:this._Spa,style:this._St,styleBuiltIn:this._Sty,tableNestingLevel:this._T,text:this._Te,uniqueLocalId:this._U},{borders:this._B,fields:this._F,font:this._Fo,inlinePictures:this._I,listItem:this._List,listItemOrNullObject:this._ListI,shading:this._S,shapes:this._Sh})},Yo.prototype.setMockData=function(e){I(this,e)},Yo.prototype.ensureUnchanged=function(e){d(this,e)},Yo);function Yo(){return null!==Jo&&Jo.apply(this,arguments)||this}a.Paragraph=Qo;var Zo=($o.prototype.getDocument=function(){return g(this._document)&&(this._document=this.context.document),this._document},$o.prototype.getReferenceId=function(){return g(this._refId)&&(this._refId=this._ReferenceId),this._refId},$o.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},$o.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},$o.prototype._RegisterCommentDeletedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeleted")},$o.prototype._UnregisterCommentDeletedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeleted")},$o.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},$o.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},$o.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},$o.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},$o.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},$o.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},$o);function $o(){}a.ParagraphCustom=Zo,OfficeExtension.Utility.applyMixin(Qo,Zo),(ce=a._CC||(a._CC={})).Paragraph_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var ea,ta="ParagraphCollection",na=(ea=OfficeExtension.ClientObject,__extends(ra,ea),Object.defineProperty(ra.prototype,"_className",{get:function(){return"ParagraphCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ra.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ra.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ra.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ra.prototype,"items",{get:function(){return m("items",this.m__items,ta,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ra.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ta,this._isNull),this.__R},enumerable:!0,configurable:!0}),ra.prototype.add=function(e){return _("ParagraphCollection.add","WordApiDesktop","1.4",l),p(a.Paragraph,this,"Add",0,[e],!1,!0,null,0)},ra.prototype.closeUp=function(){_("ParagraphCollection.closeUp","WordApiDesktop","1.4",l),i(this,"CloseUp",0,[],0,0)},ra.prototype.decreaseSpacing=function(){_("ParagraphCollection.decreaseSpacing","WordApiDesktop","1.4",l),i(this,"DecreaseSpacing",0,[],0,0)},ra.prototype.getById=function(e){return p(a.Paragraph,this,"GetById",1,[e],!1,!1,null,5)},ra.prototype.getByIdOrNullObject=function(e){return p(a.Paragraph,this,"GetByIdOrNullObject",1,[e],!1,!1,null,5)},ra.prototype.getByParaId=function(e){return p(a.Paragraph,this,"GetByParaId",1,[e],!1,!1,null,5)},ra.prototype.getFirst=function(){return _("ParagraphCollection.getFirst",u,"1.3",l),p(a.Paragraph,this,"GetFirst",1,[],!1,!1,null,4)},ra.prototype.getFirstOrNullObject=function(){return _("ParagraphCollection.getFirstOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ra.prototype.getLast=function(){return _("ParagraphCollection.getLast",u,"1.3",l),p(a.Paragraph,this,"GetLast",1,[],!1,!1,null,4)},ra.prototype.getLastOrNullObject=function(){return _("ParagraphCollection.getLastOrNullObject",u,"1.3",l),p(a.Paragraph,this,"GetLastOrNullObject",1,[],!1,!1,null,4)},ra.prototype.increaseSpacing=function(){_("ParagraphCollection.increaseSpacing","WordApiDesktop","1.4",l),i(this,"IncreaseSpacing",0,[],0,0)},ra.prototype.indent=function(){_("ParagraphCollection.indent","WordApiDesktop","1.4",l),i(this,"Indent",0,[],0,0)},ra.prototype.indentCharacterWidth=function(e){_("ParagraphCollection.indentCharacterWidth","WordApiDesktop","1.4",l),i(this,"IndentCharacterWidth",0,[e],0,0)},ra.prototype.indentFirstLineCharacterWidth=function(e){_("ParagraphCollection.indentFirstLineCharacterWidth","WordApiDesktop","1.4",l),i(this,"IndentFirstLineCharacterWidth",0,[e],0,0)},ra.prototype.openOrCloseUp=function(){_("ParagraphCollection.openOrCloseUp","WordApiDesktop","1.4",l),i(this,"OpenOrCloseUp",0,[],0,0)},ra.prototype.openUp=function(){_("ParagraphCollection.openUp","WordApiDesktop","1.4",l),i(this,"OpenUp",0,[],0,0)},ra.prototype.outdent=function(){_("ParagraphCollection.outdent","WordApiDesktop","1.4",l),i(this,"Outdent",0,[],0,0)},ra.prototype.outlineDemote=function(){_("ParagraphCollection.outlineDemote","WordApiDesktop","1.4",l),i(this,"OutlineDemote",0,[],0,0)},ra.prototype.outlineDemoteToBody=function(){_("ParagraphCollection.outlineDemoteToBody","WordApiDesktop","1.4",l),i(this,"OutlineDemoteToBody",0,[],0,0)},ra.prototype.outlinePromote=function(){_("ParagraphCollection.outlinePromote","WordApiDesktop","1.4",l),i(this,"OutlinePromote",0,[],0,0)},ra.prototype.space1=function(){_("ParagraphCollection.space1","WordApiDesktop","1.4",l),i(this,"Space1",0,[],0,0)},ra.prototype.space1Pt5=function(){_("ParagraphCollection.space1Pt5","WordApiDesktop","1.4",l),i(this,"Space1Pt5",0,[],0,0)},ra.prototype.space2=function(){_("ParagraphCollection.space2","WordApiDesktop","1.4",l),i(this,"Space2",0,[],0,0)},ra.prototype.tabHangingIndent=function(e){_("ParagraphCollection.tabHangingIndent","WordApiDesktop","1.4",l),i(this,"TabHangingIndent",0,[e],0,0)},ra.prototype.tabIndent=function(e){_("ParagraphCollection.tabIndent","WordApiDesktop","1.4",l),i(this,"TabIndent",0,[e],0,0)},ra.prototype._GetItem=function(e){return t(a.Paragraph,this,[e])},ra.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ra.prototype._handleResult=function(e){if(ea.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Paragraph,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ra.prototype.load=function(e){return b(this,e)},ra.prototype.retrieve=function(e){return v(this,e)},ra.prototype._handleIdResult=function(e){ea.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ra.prototype._handleRetrieveResult=function(e,t){var n=this;ea.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Paragraph,!0,n,e,t)})},ra.prototype.track=function(){return this.context.trackedObjects.add(this),this},ra.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ra.prototype.toJSON=function(){return O(this,{},{},this.m__items)},ra.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Paragraph,!0,n,e,t)},function(e){return n.m__items=e})},ra);function ra(){return null!==ea&&ea.apply(this,arguments)||this}a.ParagraphCollection=na;var ia,oa="ParagraphFormat",aa=(ia=OfficeExtension.ClientObject,__extends(sa,ia),Object.defineProperty(sa.prototype,"_className",{get:function(){return"ParagraphFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","alignment","firstLineIndent","keepTogether","keepWithNext","leftIndent","lineSpacing","lineUnitAfter","lineUnitBefore","mirrorIndents","outlineLevel","rightIndent","spaceAfter","spaceBefore","widowControl"]},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Alignment","FirstLineIndent","KeepTogether","KeepWithNext","LeftIndent","LineSpacing","LineUnitAfter","LineUnitBefore","MirrorIndents","OutlineLevel","RightIndent","SpaceAfter","SpaceBefore","WidowControl"]},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"alignment",{get:function(){return m("alignment",this._A,oa,this._isNull),this._A},set:function(e){this._A=e,h(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"firstLineIndent",{get:function(){return m("firstLineIndent",this._F,oa,this._isNull),this._F},set:function(e){this._F=e,h(this,"FirstLineIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"keepTogether",{get:function(){return m("keepTogether",this._K,oa,this._isNull),this._K},set:function(e){this._K=e,h(this,"KeepTogether",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"keepWithNext",{get:function(){return m("keepWithNext",this._Ke,oa,this._isNull),this._Ke},set:function(e){this._Ke=e,h(this,"KeepWithNext",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"leftIndent",{get:function(){return m("leftIndent",this._L,oa,this._isNull),this._L},set:function(e){this._L=e,h(this,"LeftIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"lineSpacing",{get:function(){return m("lineSpacing",this._Li,oa,this._isNull),this._Li},set:function(e){this._Li=e,h(this,"LineSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"lineUnitAfter",{get:function(){return m("lineUnitAfter",this._Lin,oa,this._isNull),this._Lin},set:function(e){this._Lin=e,h(this,"LineUnitAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"lineUnitBefore",{get:function(){return m("lineUnitBefore",this._Line,oa,this._isNull),this._Line},set:function(e){this._Line=e,h(this,"LineUnitBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"mirrorIndents",{get:function(){return m("mirrorIndents",this._M,oa,this._isNull),this._M},set:function(e){this._M=e,h(this,"MirrorIndents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"outlineLevel",{get:function(){return m("outlineLevel",this._O,oa,this._isNull),this._O},set:function(e){this._O=e,h(this,"OutlineLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"rightIndent",{get:function(){return m("rightIndent",this._R,oa,this._isNull),this._R},set:function(e){this._R=e,h(this,"RightIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"spaceAfter",{get:function(){return m("spaceAfter",this._S,oa,this._isNull),this._S},set:function(e){this._S=e,h(this,"SpaceAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"spaceBefore",{get:function(){return m("spaceBefore",this._Sp,oa,this._isNull),this._Sp},set:function(e){this._Sp=e,h(this,"SpaceBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"widowControl",{get:function(){return m("widowControl",this._W,oa,this._isNull),this._W},set:function(e){this._W=e,h(this,"WidowControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,oa,this._isNull),this.__R},enumerable:!0,configurable:!0}),sa.prototype.set=function(e,t){this._recursivelySet(e,t,["alignment","firstLineIndent","keepTogether","keepWithNext","leftIndent","lineSpacing","lineUnitAfter","lineUnitBefore","mirrorIndents","outlineLevel","rightIndent","spaceAfter","spaceBefore","widowControl"],[],[])},sa.prototype.update=function(e){this._recursivelyUpdate(e)},sa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},sa.prototype._handleResult=function(e){if(ia.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Alignment)||(this._A=t.Alignment),y(t.FirstLineIndent)||(this._F=t.FirstLineIndent),y(t.KeepTogether)||(this._K=t.KeepTogether),y(t.KeepWithNext)||(this._Ke=t.KeepWithNext),y(t.LeftIndent)||(this._L=t.LeftIndent),y(t.LineSpacing)||(this._Li=t.LineSpacing),y(t.LineUnitAfter)||(this._Lin=t.LineUnitAfter),y(t.LineUnitBefore)||(this._Line=t.LineUnitBefore),y(t.MirrorIndents)||(this._M=t.MirrorIndents),y(t.OutlineLevel)||(this._O=t.OutlineLevel),y(t.RightIndent)||(this._R=t.RightIndent),y(t.SpaceAfter)||(this._S=t.SpaceAfter),y(t.SpaceBefore)||(this._Sp=t.SpaceBefore),y(t.WidowControl)||(this._W=t.WidowControl),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},sa.prototype.load=function(e){return b(this,e)},sa.prototype.retrieve=function(e){return v(this,e)},sa.prototype._handleIdResult=function(e){ia.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},sa.prototype._handleRetrieveResult=function(e,t){ia.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},sa.prototype.track=function(){return this.context.trackedObjects.add(this),this},sa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},sa.prototype.toJSON=function(){return O(this,{alignment:this._A,firstLineIndent:this._F,keepTogether:this._K,keepWithNext:this._Ke,leftIndent:this._L,lineSpacing:this._Li,lineUnitAfter:this._Lin,lineUnitBefore:this._Line,mirrorIndents:this._M,outlineLevel:this._O,rightIndent:this._R,spaceAfter:this._S,spaceBefore:this._Sp,widowControl:this._W},{})},sa.prototype.setMockData=function(e){I(this,e)},sa.prototype.ensureUnchanged=function(e){d(this,e)},sa);function sa(){return null!==ia&&ia.apply(this,arguments)||this}a.ParagraphFormat=aa;var ca,la="Range",ua=(ca=OfficeExtension.ClientObject,__extends(pa,ca),Object.defineProperty(pa.prototype,"_className",{get:function(){return"Range"},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","style","text","isEmpty","hyperlink","styleBuiltIn","hasNoProofing","languageDetected","languageId","languageIdFarEast","languageIdOther","bold","boldBidirectional","case","characterWidth","combineCharacters","disableCharacterSpaceGrid","emphasisMark","end","fitTextWidth","grammarChecked","highlightColorIndex","horizontalInVertical","id","isEndOfRowMark","italic","italicBidirectional","kana","showAll","spellingChecked","start","storyLength","storyType","isTextVisibleOnScreen","twoLinesInOne"]},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","Style","Text","IsEmpty","Hyperlink","StyleBuiltIn","HasNoProofing","LanguageDetected","LanguageId","LanguageIdFarEast","LanguageIdOther","Bold","BoldBidirectional","Case","CharacterWidth","CombineCharacters","DisableCharacterSpaceGrid","EmphasisMark","End","FitTextWidth","GrammarChecked","HighlightColorIndex","HorizontalInVertical","Id","IsEndOfRowMark","Italic","ItalicBidirectional","Kana","ShowAll","SpellingChecked","Start","StoryLength","StoryType","IsTextVisibleOnScreen","TwoLinesInOne"]},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!1,!0,!0,!0,!0,!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"_navigationPropertyNames",{get:function(){return["font","paragraphs","contentControls","parentContentControl","inlinePictures","lists","tables","parentTableCell","parentTable","parentBody","parentContentControlOrNullObject","parentTableCellOrNullObject","parentTableOrNullObject","footnotes","endnotes","fields","shapes","pages","listFormat","tableColumns","frames","shading","borders","hyperlinks","revisions","sections","bookmarks","conflicts","editors"]},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"bookmarks",{get:function(){return _("Range.bookmarks","WordApiDesktop","1.4",l),this._Boo||(this._Boo=e(a.BookmarkCollection,this,"Bookmarks",!0,4)),this._Boo},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"borders",{get:function(){return _("Range.borders","WordApiDesktop","1.4",l),this._Bor||(this._Bor=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._Bor},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"conflicts",{get:function(){return _("Range.conflicts","WordApiDesktop","1.4",l),this._Con||(this._Con=e(a.ConflictCollection,this,"Conflicts",!0,4)),this._Con},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"contentControls",{get:function(){return this._Cont||(this._Cont=e(a.ContentControlCollection,this,"ContentControls",!0,4)),this._Cont},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"editors",{get:function(){return _("Range.editors","WordApiDesktop","1.4",l),this._E||(this._E=e(a.EditorCollection,this,"Editors",!1,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"endnotes",{get:function(){return _("Range.endnotes",u,"1.5",l),this._End||(this._End=e(a.NoteItemCollection,this,"Endnotes",!0,4)),this._End},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"fields",{get:function(){return _("Range.fields",u,"1.4",l),this._F||(this._F=e(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"font",{get:function(){return this._Fo||(this._Fo=e(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"footnotes",{get:function(){return _("Range.footnotes",u,"1.5",l),this._Foo||(this._Foo=e(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"frames",{get:function(){return _("Range.frames","WordApiDesktop","1.3",l),this._Fr||(this._Fr=e(a.FrameCollection,this,"Frames",!0,4)),this._Fr},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"hyperlinks",{get:function(){return _("Range.hyperlinks","WordApiDesktop","1.3",l),this._Hyp||(this._Hyp=e(a.HyperlinkCollection,this,"Hyperlinks",!0,4)),this._Hyp},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"inlinePictures",{get:function(){return _("Range.inlinePictures",u,"1.2",l),this._In||(this._In=e(a.InlinePictureCollection,this,"InlinePictures",!0,4)),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"listFormat",{get:function(){return _("Range.listFormat","WordApiDesktop","1.3",l),this._Li||(this._Li=e(a.ListFormat,this,"ListFormat",!1,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"lists",{get:function(){return _("Range.lists",u,"1.3",l),this._Lis||(this._Lis=e(a.ListCollection,this,"Lists",!0,4)),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"pages",{get:function(){return _("Range.pages","WordApiDesktop","1.2",l),this._P||(this._P=e(a.PageCollection,this,"Pages",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"paragraphs",{get:function(){return this._Pa||(this._Pa=e(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"parentBody",{get:function(){return _("Range.parentBody",u,"1.3",l),this._Par||(this._Par=e(a.Body,this,"ParentBody",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"parentContentControl",{get:function(){return this._Pare||(this._Pare=e(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"parentContentControlOrNullObject",{get:function(){return _("Range.parentContentControlOrNullObject",u,"1.3",l),this._Paren||(this._Paren=e(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"parentTable",{get:function(){return _("Range.parentTable",u,"1.3",l),this._Parent||(this._Parent=e(a.Table,this,"ParentTable",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"parentTableCell",{get:function(){return _("Range.parentTableCell",u,"1.3",l),this._ParentT||(this._ParentT=e(a.TableCell,this,"ParentTableCell",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"parentTableCellOrNullObject",{get:function(){return _("Range.parentTableCellOrNullObject",u,"1.3",l),this._ParentTa||(this._ParentTa=e(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._ParentTa},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"parentTableOrNullObject",{get:function(){return _("Range.parentTableOrNullObject",u,"1.3",l),this._ParentTab||(this._ParentTab=e(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentTab},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"revisions",{get:function(){return _("Range.revisions","WordApiDesktop","1.4",l),this._R||(this._R=e(a.RevisionCollection,this,"Revisions",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"sections",{get:function(){return _("Range.sections","WordApiDesktop","1.3",l),this._S||(this._S=e(a.SectionCollection,this,"Sections",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"shading",{get:function(){return _("Range.shading","WordApiDesktop","1.3",l),this._Sh||(this._Sh=e(a.ShadingUniversal,this,"Shading",!1,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"shapes",{get:function(){return _("Range.shapes","WordApiDesktop","1.2",l),this._Sha||(this._Sha=e(a.ShapeCollection,this,"Shapes",!0,4)),this._Sha},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"tableColumns",{get:function(){return _("Range.tableColumns","WordApiDesktop","1.3",l),this._T||(this._T=e(a.TableColumnCollection,this,"TableColumns",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"tables",{get:function(){return _("Range.tables",u,"1.3",l),this._Ta||(this._Ta=e(a.TableCollection,this,"Tables",!0,4)),this._Ta},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"bold",{get:function(){return m("bold",this._B,la,this._isNull),_("Range.bold","WordApiDesktop","1.4",l),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"boldBidirectional",{get:function(){return m("boldBidirectional",this._Bo,la,this._isNull),_("Range.boldBidirectional","WordApiDesktop","1.4",l),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"case",{get:function(){return m("case",this._C,la,this._isNull),_("Range.case","WordApiDesktop","1.4",l),this._C},set:function(e){this._C=e,h(this,"Case",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"characterWidth",{get:function(){return m("characterWidth",this._Ch,la,this._isNull),_("Range.characterWidth","WordApiDesktop","1.4",l),this._Ch},set:function(e){this._Ch=e,h(this,"CharacterWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"combineCharacters",{get:function(){return m("combineCharacters",this._Co,la,this._isNull),_("Range.combineCharacters","WordApiDesktop","1.4",l),this._Co},set:function(e){this._Co=e,h(this,"CombineCharacters",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"disableCharacterSpaceGrid",{get:function(){return m("disableCharacterSpaceGrid",this._D,la,this._isNull),_("Range.disableCharacterSpaceGrid","WordApiDesktop","1.4",l),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"emphasisMark",{get:function(){return m("emphasisMark",this._Em,la,this._isNull),_("Range.emphasisMark","WordApiDesktop","1.4",l),this._Em},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"end",{get:function(){return m("end",this._En,la,this._isNull),_("Range.end","WordApiDesktop","1.4",l),this._En},set:function(e){this._En=e,h(this,"End",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"fitTextWidth",{get:function(){return m("fitTextWidth",this._Fi,la,this._isNull),_("Range.fitTextWidth","WordApiDesktop","1.4",l),this._Fi},set:function(e){this._Fi=e,h(this,"FitTextWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"grammarChecked",{get:function(){return m("grammarChecked",this._G,la,this._isNull),_("Range.grammarChecked","WordApiDesktop","1.4",l),this._G},set:function(e){this._G=e,h(this,"GrammarChecked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"hasNoProofing",{get:function(){return m("hasNoProofing",this._H,la,this._isNull),_("Range.hasNoProofing","WordApiDesktop","1.3",l),this._H},set:function(e){this._H=e,h(this,"HasNoProofing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"highlightColorIndex",{get:function(){return m("highlightColorIndex",this._Hi,la,this._isNull),_("Range.highlightColorIndex","WordApiDesktop","1.4",l),this._Hi},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"horizontalInVertical",{get:function(){return m("horizontalInVertical",this._Ho,la,this._isNull),_("Range.horizontalInVertical","WordApiDesktop","1.4",l),this._Ho},set:function(e){this._Ho=e,h(this,"HorizontalInVertical",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"hyperlink",{get:function(){return m("hyperlink",this._Hy,la,this._isNull),_("Range.hyperlink",u,"1.3",l),this._Hy},set:function(e){this._Hy=e,h(this,"Hyperlink",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"id",{get:function(){return m("id",this._I,la,this._isNull),_("Range.id","WordApiDesktop","1.4",l),this._I},set:function(e){this._I=e,h(this,"Id",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"isEmpty",{get:function(){return m("isEmpty",this._Is,la,this._isNull),_("Range.isEmpty",u,"1.3",l),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"isEndOfRowMark",{get:function(){return m("isEndOfRowMark",this._IsE,la,this._isNull),_("Range.isEndOfRowMark","WordApiDesktop","1.4",l),this._IsE},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"isTextVisibleOnScreen",{get:function(){return m("isTextVisibleOnScreen",this._IsT,la,this._isNull),_("Range.isTextVisibleOnScreen","WordApiDesktop","1.4",l),this._IsT},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"italic",{get:function(){return m("italic",this._It,la,this._isNull),_("Range.italic","WordApiDesktop","1.4",l),this._It},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"italicBidirectional",{get:function(){return m("italicBidirectional",this._Ita,la,this._isNull),_("Range.italicBidirectional","WordApiDesktop","1.4",l),this._Ita},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"kana",{get:function(){return m("kana",this._K,la,this._isNull),_("Range.kana","WordApiDesktop","1.4",l),this._K},set:function(e){this._K=e,h(this,"Kana",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"languageDetected",{get:function(){return m("languageDetected",this._L,la,this._isNull),_("Range.languageDetected","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,h(this,"LanguageDetected",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"languageId",{get:function(){return m("languageId",this._La,la,this._isNull),_("Range.languageId","WordApiDesktop","1.3",l),this._La},set:function(e){this._La=e,h(this,"LanguageId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"languageIdFarEast",{get:function(){return m("languageIdFarEast",this._Lan,la,this._isNull),_("Range.languageIdFarEast","WordApiDesktop","1.3",l),this._Lan},set:function(e){this._Lan=e,h(this,"LanguageIdFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"languageIdOther",{get:function(){return m("languageIdOther",this._Lang,la,this._isNull),_("Range.languageIdOther","WordApiDesktop","1.3",l),this._Lang},set:function(e){this._Lang=e,h(this,"LanguageIdOther",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"showAll",{get:function(){return m("showAll",this._Sho,la,this._isNull),_("Range.showAll","WordApiDesktop","1.4",l),this._Sho},set:function(e){this._Sho=e,h(this,"ShowAll",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"spellingChecked",{get:function(){return m("spellingChecked",this._Sp,la,this._isNull),_("Range.spellingChecked","WordApiDesktop","1.4",l),this._Sp},set:function(e){this._Sp=e,h(this,"SpellingChecked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"start",{get:function(){return m("start",this._St,la,this._isNull),_("Range.start","WordApiDesktop","1.4",l),this._St},set:function(e){this._St=e,h(this,"Start",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"storyLength",{get:function(){return m("storyLength",this._Sto,la,this._isNull),_("Range.storyLength","WordApiDesktop","1.4",l),this._Sto},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"storyType",{get:function(){return m("storyType",this._Stor,la,this._isNull),_("Range.storyType","WordApiDesktop","1.4",l),this._Stor},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"style",{get:function(){return m("style",this._Sty,la,this._isNull),this._Sty},set:function(e){this._Sty=e,h(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"styleBuiltIn",{get:function(){return m("styleBuiltIn",this._Styl,la,this._isNull),_("Range.styleBuiltIn",u,"1.3",l),this._Styl},set:function(e){this._Styl=e,h(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"text",{get:function(){return m("text",this._Te,la,this._isNull),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"twoLinesInOne",{get:function(){return m("twoLinesInOne",this._Tw,la,this._isNull),_("Range.twoLinesInOne","WordApiDesktop","1.4",l),this._Tw},set:function(e){this._Tw=e,h(this,"TwoLinesInOne",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"_Id",{get:function(){return m("_Id",this.__I,la,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,la,this._isNull),this.__R},enumerable:!0,configurable:!0}),pa.prototype.set=function(e,t){this._recursivelySet(e,t,["style","hyperlink","styleBuiltIn","hasNoProofing","languageDetected","languageId","languageIdFarEast","languageIdOther","case","characterWidth","combineCharacters","end","fitTextWidth","grammarChecked","horizontalInVertical","id","kana","showAll","spellingChecked","start","twoLinesInOne"],["font","listFormat","shading"],["bookmarks","borders","conflicts","contentControls","editors","endnotes","fields","footnotes","frames","hyperlinks","inlinePictures","lists","pages","paragraphs","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","revisions","sections","shapes","tableColumns","tables"])},pa.prototype.update=function(e){this._recursivelyUpdate(e)},pa.prototype.clear=function(){i(this,"Clear",0,[],0,0)},pa.prototype.compareLocationWith=function(e){return _("Range.compareLocationWith",u,"1.3",l),i(this,"CompareLocationWith",1,[e],4,0)},pa.prototype.delete=function(){i(this,"Delete",0,[],0,0)},pa.prototype.detectLanguage=function(){return _("Range.detectLanguage","WordApiDesktop","1.3",l),i(this,"DetectLanguage",0,[],0,0)},pa.prototype.endPreview=function(){i(this,"EndPreview",1,[],4,0)},pa.prototype.expandTo=function(e){return _("Range.expandTo",u,"1.3",l),p(a.Range,this,"ExpandTo",0,[e],!1,!1,null,0)},pa.prototype.expandToOrNullObject=function(e){return _("Range.expandToOrNullObject",u,"1.3",l),p(a.Range,this,"ExpandToOrNullObject",0,[e],!1,!1,null,0)},pa.prototype.getBookmarks=function(e,t){return _("Range.getBookmarks",u,"1.4",l),i(this,"GetBookmarks",1,[e,t],4,0)},pa.prototype.getComments=function(){return _("Range.getComments",u,"1.4",l),p(a.CommentCollection,this,"GetComments",1,[],!0,!1,null,4)},pa.prototype.getContentControls=function(e){return _("Range.getContentControls",u,"1.5",l),p(a.ContentControlCollection,this,"GetContentControls",1,[e],!0,!1,null,4)},pa.prototype.getHtml=function(){return i(this,"GetHtml",1,[],4,0)},pa.prototype.getHyperlinkRanges=function(){return _("Range.getHyperlinkRanges",u,"1.3",l),p(a.RangeCollection,this,"GetHyperlinkRanges",1,[],!0,!1,null,4)},pa.prototype.getNextTextRange=function(e,t){return _("Range.getNextTextRange",u,"1.3",l),p(a.Range,this,"GetNextTextRange",1,[e,t],!1,!1,null,4)},pa.prototype.getNextTextRangeOrNullObject=function(e,t){return _("Range.getNextTextRangeOrNullObject",u,"1.3",l),p(a.Range,this,"GetNextTextRangeOrNullObject",1,[e,t],!1,!1,null,4)},pa.prototype.getOoxml=function(){return i(this,"GetOoxml",1,[],4,0)},pa.prototype.getRange=function(e){return _("Range.getRange",u,"1.3",l),p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},pa.prototype.getReviewedText=function(e){return _("Range.getReviewedText",u,"1.4",l),i(this,"GetReviewedText",1,[e],4,0)},pa.prototype.getTextRanges=function(e,t){return _("Range.getTextRanges",u,"1.3",l),p(a.RangeCollection,this,"GetTextRanges",1,[e,t],!0,!1,null,4)},pa.prototype.getTrackedChanges=function(){return _("Range.getTrackedChanges",u,"1.6",l),p(a.TrackedChangeCollection,this,"GetTrackedChanges",1,[],!0,!1,null,4)},pa.prototype.highlight=function(){_("Range.highlight",u,"1.8",l),i(this,"Highlight",1,[],4,0)},pa.prototype.insertBookmark=function(e){_("Range.insertBookmark",u,"1.4",l),i(this,"InsertBookmark",0,[e],0,0)},pa.prototype.insertBreak=function(e,t){i(this,"InsertBreak",0,[e,t],0,0)},pa.prototype.insertCanvas=function(e){return _("Range.insertCanvas","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertCanvas",0,[e],!1,!1,null,0)},pa.prototype.insertComment=function(e){return _("Range.insertComment",u,"1.4",l),p(a.Comment,this,"InsertComment",0,[e],!1,!0,null,0)},pa.prototype.insertContentControl=function(e){return p(a.ContentControl,this,"InsertContentControl",0,[e],!1,!0,null,0)},pa.prototype.insertEndnote=function(e){return _("Range.insertEndnote",u,"1.5",l),p(a.NoteItem,this,"InsertEndnote",0,[e],!1,!0,null,0)},pa.prototype.insertField=function(e,t,n,r){return _("Range.insertField",u,"1.5",l),p(a.Field,this,"InsertField",0,[e,t,n,r],!1,!0,null,0)},pa.prototype.insertFileFromBase64=function(e,t){return p(a.Range,this,"InsertFileFromBase64",0,[e,t],!1,!0,null,0)},pa.prototype.insertFootnote=function(e){return _("Range.insertFootnote",u,"1.5",l),p(a.NoteItem,this,"InsertFootnote",0,[e],!1,!0,null,0)},pa.prototype.insertGeometricShape=function(e,t){return _("Range.insertGeometricShape","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertGeometricShape",0,[e,t],!1,!1,null,0)},pa.prototype.insertHtml=function(e,t){return p(a.Range,this,"InsertHtml",0,[e,t],!1,!0,null,0)},pa.prototype.insertInlinePictureFromBase64=function(e,t){return _("Range.insertInlinePictureFromBase64",u,"1.2",l),p(a.InlinePicture,this,"InsertInlinePictureFromBase64",0,[e,t],!1,!0,null,0)},pa.prototype.insertOoxml=function(e,t){return p(a.Range,this,"InsertOoxml",0,[e,t],!1,!0,null,0)},pa.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},pa.prototype.insertPictureFromBase64=function(e,t){return _("Range.insertPictureFromBase64","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertPictureFromBase64",0,[e,t],!1,!1,null,0)},pa.prototype.insertTable=function(e,t,n,r){return _("Range.insertTable",u,"1.3",l),p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},pa.prototype.insertTapObjectFromFileContent=function(e,t,n){return p(a.Range,this,"InsertTapObjectFromFileContent",0,[e,t,n],!1,!0,null,1)},pa.prototype.insertText=function(e,t){return p(a.Range,this,"InsertText",0,[e,t],!1,!0,null,0)},pa.prototype.insertTextBox=function(e,t){return _("Range.insertTextBox","WordApiDesktop","1.2",l),p(a.Shape,this,"InsertTextBox",0,[e,t],!1,!1,null,0)},pa.prototype.intersectWith=function(e){return _("Range.intersectWith",u,"1.3",l),p(a.Range,this,"IntersectWith",0,[e],!1,!1,null,0)},pa.prototype.intersectWithOrNullObject=function(e){return _("Range.intersectWithOrNullObject",u,"1.3",l),p(a.Range,this,"IntersectWithOrNullObject",0,[e],!1,!1,null,0)},pa.prototype.previewTextReplacement=function(e){i(this,"PreviewTextReplacement",1,[e],4,0)},pa.prototype.removeHighlight=function(){_("Range.removeHighlight",u,"1.8",l),i(this,"RemoveHighlight",1,[],4,0)},pa.prototype.scrollIntoView=function(){i(this,"ScrollIntoView",1,[],4,0)},pa.prototype.search=function(e,t){var n=ce.Range_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},pa.prototype.select=function(e){i(this,"Select",1,[e],4,0)},pa.prototype.split=function(e,t,n,r){return _("Range.split",u,"1.3",l),p(a.RangeCollection,this,"Split",1,[e,t,n,r],!0,!1,null,4)},pa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},pa.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},pa.prototype._handleResult=function(e){if(ca.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Bold)||(this._B=t.Bold),y(t.BoldBidirectional)||(this._Bo=t.BoldBidirectional),y(t.Case)||(this._C=t.Case),y(t.CharacterWidth)||(this._Ch=t.CharacterWidth),y(t.CombineCharacters)||(this._Co=t.CombineCharacters),y(t.DisableCharacterSpaceGrid)||(this._D=t.DisableCharacterSpaceGrid),y(t.EmphasisMark)||(this._Em=t.EmphasisMark),y(t.End)||(this._En=t.End),y(t.FitTextWidth)||(this._Fi=t.FitTextWidth),y(t.GrammarChecked)||(this._G=t.GrammarChecked),y(t.HasNoProofing)||(this._H=t.HasNoProofing),y(t.HighlightColorIndex)||(this._Hi=t.HighlightColorIndex),y(t.HorizontalInVertical)||(this._Ho=t.HorizontalInVertical),y(t.Hyperlink)||(this._Hy=t.Hyperlink),y(t.Id)||(this._I=t.Id),y(t.IsEmpty)||(this._Is=t.IsEmpty),y(t.IsEndOfRowMark)||(this._IsE=t.IsEndOfRowMark),y(t.IsTextVisibleOnScreen)||(this._IsT=t.IsTextVisibleOnScreen),y(t.Italic)||(this._It=t.Italic),y(t.ItalicBidirectional)||(this._Ita=t.ItalicBidirectional),y(t.Kana)||(this._K=t.Kana),y(t.LanguageDetected)||(this._L=t.LanguageDetected),y(t.LanguageId)||(this._La=t.LanguageId),y(t.LanguageIdFarEast)||(this._Lan=t.LanguageIdFarEast),y(t.LanguageIdOther)||(this._Lang=t.LanguageIdOther),y(t.ShowAll)||(this._Sho=t.ShowAll),y(t.SpellingChecked)||(this._Sp=t.SpellingChecked),y(t.Start)||(this._St=t.Start),y(t.StoryLength)||(this._Sto=t.StoryLength),y(t.StoryType)||(this._Stor=t.StoryType),y(t.Style)||(this._Sty=t.Style),y(t.StyleBuiltIn)||(this._Styl=t.StyleBuiltIn),y(t.Text)||(this._Te=t.Text),y(t.TwoLinesInOne)||(this._Tw=t.TwoLinesInOne),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["bookmarks","Bookmarks","borders","Borders","conflicts","Conflicts","contentControls","ContentControls","editors","Editors","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","frames","Frames","hyperlinks","Hyperlinks","inlinePictures","InlinePictures","listFormat","ListFormat","lists","Lists","pages","Pages","paragraphs","Paragraphs","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","revisions","Revisions","sections","Sections","shading","Shading","shapes","Shapes","tableColumns","TableColumns","tables","Tables"])}},pa.prototype.load=function(e){return b(this,e)},pa.prototype.retrieve=function(e){return v(this,e)},pa.prototype._handleIdResult=function(e){ca.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id),y(e._Id)||(this.__I=e._Id))},pa.prototype._handleRetrieveResult=function(e,t){ca.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},pa.prototype.track=function(){return this.context.trackedObjects.add(this),this},pa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},pa.prototype.toJSON=function(){return O(this,{bold:this._B,boldBidirectional:this._Bo,case:this._C,characterWidth:this._Ch,combineCharacters:this._Co,disableCharacterSpaceGrid:this._D,emphasisMark:this._Em,end:this._En,fitTextWidth:this._Fi,grammarChecked:this._G,hasNoProofing:this._H,highlightColorIndex:this._Hi,horizontalInVertical:this._Ho,hyperlink:this._Hy,id:this._I,isEmpty:this._Is,isEndOfRowMark:this._IsE,isTextVisibleOnScreen:this._IsT,italic:this._It,italicBidirectional:this._Ita,kana:this._K,languageDetected:this._L,languageId:this._La,languageIdFarEast:this._Lan,languageIdOther:this._Lang,showAll:this._Sho,spellingChecked:this._Sp,start:this._St,storyLength:this._Sto,storyType:this._Stor,style:this._Sty,styleBuiltIn:this._Styl,text:this._Te,twoLinesInOne:this._Tw},{borders:this._Bor,conflicts:this._Con,fields:this._F,font:this._Fo,frames:this._Fr,hyperlinks:this._Hyp,inlinePictures:this._In,listFormat:this._Li,pages:this._P,sections:this._S,shading:this._Sh,shapes:this._Sha,tableColumns:this._T})},pa.prototype.setMockData=function(e){I(this,e)},pa.prototype.ensureUnchanged=function(e){d(this,e)},pa);function pa(){return null!==ca&&ca.apply(this,arguments)||this}a.Range=ua;var fa=(da.prototype.getDocument=function(){return g(this._document)&&(this._document=this.context.document),this._document},da.prototype.getReferenceId=function(){return g(this._refId)&&(this._refId=this._ReferenceId),this._refId},da.prototype._RegisterCommentAddedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentAdded")},da.prototype._UnregisterCommentAddedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentAdded")},da.prototype._RegisterCommentChangedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentChanged")},da.prototype._UnregisterCommentChangedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentChanged")},da.prototype._RegisterCommentSelectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentSelected")},da.prototype._UnregisterCommentSelectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentSelected")},da.prototype._RegisterCommentDeselectedEvent=function(){this.getDocument()._RegisterEvent(this.getReferenceId(),"CommentDeselected")},da.prototype._UnregisterCommentDeselectedEvent=function(){this.getDocument()._UnregisterEvent(this.getReferenceId(),"CommentDeselected")},da);function da(){}a.RangeCustom=fa,OfficeExtension.Utility.applyMixin(ua,fa),(ce=a._CC||(a._CC={})).Range_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var ha,ga="RangeCollection",ya=(ha=OfficeExtension.ClientObject,__extends(ma,ha),Object.defineProperty(ma.prototype,"_className",{get:function(){return"RangeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ma.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ma.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ma.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ma.prototype,"items",{get:function(){return m("items",this.m__items,ga,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(ma.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ga,this._isNull),this.__R},enumerable:!0,configurable:!0}),ma.prototype.getFirst=function(){return _("RangeCollection.getFirst",u,"1.3",l),p(a.Range,this,"GetFirst",1,[],!1,!1,null,4)},ma.prototype.getFirstOrNullObject=function(){return _("RangeCollection.getFirstOrNullObject",u,"1.3",l),p(a.Range,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},ma.prototype._GetItem=function(e){return t(a.Range,this,[e])},ma.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ma.prototype._handleResult=function(e){if(ha.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Range,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},ma.prototype.load=function(e){return b(this,e)},ma.prototype.retrieve=function(e){return v(this,e)},ma.prototype._handleIdResult=function(e){ha.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ma.prototype._handleRetrieveResult=function(e,t){var n=this;ha.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Range,!0,n,e,t)})},ma.prototype.track=function(){return this.context.trackedObjects.add(this),this},ma.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ma.prototype.toJSON=function(){return O(this,{},{},this.m__items)},ma.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Range,!0,n,e,t)},function(e){return n.m__items=e})},ma);function ma(){return null!==ha&&ha.apply(this,arguments)||this}a.RangeCollection=ya;var _a,ba="SearchOptions",va=(_a=OfficeExtension.ClientObject,__extends(Oa,_a),Object.defineProperty(Oa.prototype,"_className",{get:function(){return"SearchOptions"},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"_scalarPropertyNames",{get:function(){return["ignorePunct","ignoreSpace","matchCase","matchPrefix","matchSuffix","matchWildcards","matchWholeWord"]},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["IgnorePunct","IgnoreSpace","MatchCase","MatchPrefix","MatchSuffix","MatchWildcards","MatchWholeWord"]},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"ignorePunct",{get:function(){return m("ignorePunct",this._I,ba,this._isNull),this._I},set:function(e){this._I=e,h(this,"IgnorePunct",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"ignoreSpace",{get:function(){return m("ignoreSpace",this._Ig,ba,this._isNull),this._Ig},set:function(e){this._Ig=e,h(this,"IgnoreSpace",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"matchCase",{get:function(){return m("matchCase",this._M,ba,this._isNull),this._M},set:function(e){this._M=e,h(this,"MatchCase",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"matchPrefix",{get:function(){return m("matchPrefix",this._Ma,ba,this._isNull),this._Ma},set:function(e){this._Ma=e,h(this,"MatchPrefix",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"matchSuffix",{get:function(){return m("matchSuffix",this._Mat,ba,this._isNull),this._Mat},set:function(e){this._Mat=e,h(this,"MatchSuffix",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"matchWholeWord",{get:function(){return m("matchWholeWord",this._Matc,ba,this._isNull),this._Matc},set:function(e){this._Matc=e,h(this,"MatchWholeWord",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Oa.prototype,"matchWildcards",{get:function(){return m("matchWildcards",this.m_matchWildcards,ba,this._isNull),this.m_matchWildcards},set:function(e){this.m_matchWildcards=e,h(this,"MatchWildcards",e,0)},enumerable:!0,configurable:!0}),Oa.prototype.set=function(e,t){this._recursivelySet(e,t,["ignorePunct","ignoreSpace","matchCase","matchPrefix","matchSuffix","matchWildcards","matchWholeWord"],[],[])},Oa.prototype.update=function(e){this._recursivelyUpdate(e)},Oa.prototype._handleResult=function(e){if(_a.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.IgnorePunct)||(this._I=t.IgnorePunct),y(t.IgnoreSpace)||(this._Ig=t.IgnoreSpace),y(t.MatchCase)||(this._M=t.MatchCase),y(t.MatchPrefix)||(this._Ma=t.MatchPrefix),y(t.MatchSuffix)||(this._Mat=t.MatchSuffix),y(t.MatchWholeWord)||(this._Matc=t.MatchWholeWord),y(t.MatchWildcards)||(this.m_matchWildcards=t.MatchWildcards)}},Oa.prototype.load=function(e){return b(this,e)},Oa.prototype.retrieve=function(e){return v(this,e)},Oa.prototype._handleRetrieveResult=function(e,t){_a.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Oa.newObject=function(e){return r(a.SearchOptions,e,"Microsoft.WordServices.SearchOptions",!1,4)},Oa.prototype.toJSON=function(){return O(this,{ignorePunct:this._I,ignoreSpace:this._Ig,matchCase:this._M,matchPrefix:this._Ma,matchSuffix:this._Mat,matchWholeWord:this._Matc,matchWildcards:this.m_matchWildcards},{})},Oa.prototype.setMockData=function(e){I(this,e)},Oa.prototype.ensureUnchanged=function(e){d(this,e)},Oa);function Oa(){return null!==_a&&_a.apply(this,arguments)||this}a.SearchOptions=va;var Pa=(Object.defineProperty(Ca.prototype,"matchWildCards",{get:function(){return m("matchWildCards",this.m_matchWildcards),this.m_matchWildcards},set:function(e){this.m_matchWildcards=e,h(this,"MatchWildCards",e,0)},enumerable:!0,configurable:!0}),Ca);function Ca(){}a.SearchOptionsCustom=Pa,OfficeExtension.Utility.applyMixin(va,Pa);var Ra,Sa="Section",Ia=(Ra=OfficeExtension.ClientObject,__extends(Aa,Ra),Object.defineProperty(Aa.prototype,"_className",{get:function(){return"Section"},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","protectedForForms"]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","ProtectedForForms"]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_navigationPropertyNames",{get:function(){return["body","pageSetup","borders"]},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"body",{get:function(){return this._B||(this._B=e(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"borders",{get:function(){return _("Section.borders","WordApiDesktop","1.3",l),this._Bo||(this._Bo=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"pageSetup",{get:function(){return _("Section.pageSetup","WordApiDesktop","1.3",l),this._P||(this._P=e(a.PageSetup,this,"PageSetup",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"protectedForForms",{get:function(){return m("protectedForForms",this._Pr,Sa,this._isNull),_("Section.protectedForForms","WordApiDesktop","1.3",l),this._Pr},set:function(e){this._Pr=e,h(this,"ProtectedForForms",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_Id",{get:function(){return m("_Id",this.__I,Sa,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Sa,this._isNull),this.__R},enumerable:!0,configurable:!0}),Aa.prototype.set=function(e,t){this._recursivelySet(e,t,["protectedForForms"],["body","pageSetup"],["borders"])},Aa.prototype.update=function(e){this._recursivelyUpdate(e)},Aa.prototype.getFooter=function(e){return p(a.Body,this,"GetFooter",1,[e],!1,!0,null,4)},Aa.prototype.getHeader=function(e){return p(a.Body,this,"GetHeader",1,[e],!1,!0,null,4)},Aa.prototype.getNext=function(){return _("Section.getNext",u,"1.3",l),p(a.Section,this,"GetNext",1,[],!1,!1,null,4)},Aa.prototype.getNextOrNullObject=function(){return _("Section.getNextOrNullObject",u,"1.3",l),p(a.Section,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Aa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Aa.prototype._handleResult=function(e){if(Ra.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.ProtectedForForms)||(this._Pr=t.ProtectedForForms),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["body","Body","borders","Borders","pageSetup","PageSetup"])}},Aa.prototype.load=function(e){return b(this,e)},Aa.prototype.retrieve=function(e){return v(this,e)},Aa.prototype._handleIdResult=function(e){Ra.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},Aa.prototype._handleRetrieveResult=function(e,t){Ra.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Aa.prototype.track=function(){return this.context.trackedObjects.add(this),this},Aa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Aa.prototype.toJSON=function(){return O(this,{protectedForForms:this._Pr},{body:this._B,borders:this._Bo,pageSetup:this._P})},Aa.prototype.setMockData=function(e){I(this,e)},Aa.prototype.ensureUnchanged=function(e){d(this,e)},Aa);function Aa(){return null!==Ra&&Ra.apply(this,arguments)||this}a.Section=Ia;var Ta,Na="SectionCollection",Da=(Ta=OfficeExtension.ClientObject,__extends(xa,Ta),Object.defineProperty(xa.prototype,"_className",{get:function(){return"SectionCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(xa.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(xa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(xa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(xa.prototype,"items",{get:function(){return m("items",this.m__items,Na,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(xa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Na,this._isNull),this.__R},enumerable:!0,configurable:!0}),xa.prototype.getFirst=function(){return _("SectionCollection.getFirst",u,"1.3",l),p(a.Section,this,"GetFirst",1,[],!1,!1,null,4)},xa.prototype.getFirstOrNullObject=function(){return _("SectionCollection.getFirstOrNullObject",u,"1.3",l),p(a.Section,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},xa.prototype._GetItem=function(e){return t(a.Section,this,[e])},xa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},xa.prototype._handleResult=function(e){if(Ta.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Section,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},xa.prototype.load=function(e){return b(this,e)},xa.prototype.retrieve=function(e){return v(this,e)},xa.prototype._handleIdResult=function(e){Ta.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},xa.prototype._handleRetrieveResult=function(e,t){var n=this;Ta.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Section,!0,n,e,t)})},xa.prototype.track=function(){return this.context.trackedObjects.add(this),this},xa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},xa.prototype.toJSON=function(){return O(this,{},{},this.m__items)},xa.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Section,!0,n,e,t)},function(e){return n.m__items=e})},xa);function xa(){return null!==Ta&&Ta.apply(this,arguments)||this}a.SectionCollection=Da;var Ea,ka="Setting",ja=(Ea=OfficeExtension.ClientObject,__extends(wa,Ea),Object.defineProperty(wa.prototype,"_className",{get:function(){return"Setting"},enumerable:!0,configurable:!0}),Object.defineProperty(wa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","key","value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(wa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Key","Value","_Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(wa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(wa.prototype,"key",{get:function(){return m("key",this._K,ka,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(wa.prototype,"value",{get:function(){return m("value",this.m_value,ka,this._isNull),this.m_value},set:function(e){ce.Setting_Value_Set(this,e).handled||(this.m_value=e,h(this,"Value",e,0))},enumerable:!0,configurable:!0}),Object.defineProperty(wa.prototype,"_Id",{get:function(){return m("_Id",this.__I,ka,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(wa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ka,this._isNull),this.__R},enumerable:!0,configurable:!0}),wa.prototype.set=function(e,t){this._recursivelySet(e,t,["value"],[],[])},wa.prototype.update=function(e){this._recursivelyUpdate(e)},wa.prototype.delete=function(){i(this,"Delete",0,[],0,0)},wa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},wa.prototype._handleResult=function(e){if(Ea.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),ce.Setting_HandleResult(this,t),y(t.Key)||(this._K=t.Key),y(t.Value)||(this.m_value=t.Value),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},wa.prototype.load=function(e){return b(this,e)},wa.prototype.retrieve=function(e){return v(this,e)},wa.prototype._handleIdResult=function(e){Ea.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},wa.prototype._handleRetrieveResult=function(e,t){Ea.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},wa.prototype.track=function(){return this.context.trackedObjects.add(this),this},wa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},wa.prototype.toJSON=function(){return O(this,{key:this._K,value:this.m_value},{})},wa.prototype.setMockData=function(e){I(this,e)},wa.prototype.ensureUnchanged=function(e){d(this,e)},wa);function wa(){return null!==Ea&&Ea.apply(this,arguments)||this}a.Setting=ja;var Fa,La=(Ma.replaceStringDateWithDate=function(e){var t=JSON.stringify(e);return e=JSON.parse(t,function(e,t){var n;return"string"==typeof t&&t&&6<t.length&&t.slice(0,5)===Ma.DateJSONPrefix&&t.slice(-1)===Ma.DateJSONSuffix&&(n=new Date(parseInt(t.slice(5,-1))))?n:t})},Ma.replaceDateWithStringDate=function(e){var t=JSON.stringify(e,function(e,t){return this[e]instanceof Date?Ma.DateJSONPrefix+this[e].getTime()+Ma.DateJSONSuffix:t});return e=JSON.parse(t)},Ma.DateJSONPrefix="Date(",Ma.DateJSONSuffix=")",Ma);function Ma(){}a.SettingCustom=La,OfficeExtension.Utility.applyMixin(ja,La),(Fa=ce=a._CC||(a._CC={})).Setting_HandleResult=function(e,t){if(!y(t.Value)&&"string"==typeof t.Value){var n=JSON.parse(t.Value,function(e,t){return/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(t)?new Date(t):t});t.Value=La.replaceStringDateWithDate(n)}},Fa.Setting_Value_Set=function(e,t){var n=JSON.stringify(La.replaceDateWithStringDate(t));if(null!==n)return this.m_value=n,h(e,"Value",n,0),{handled:!0}};var Ba,Ha="SettingCollection",Ua=(Ba=OfficeExtension.ClientObject,__extends(Wa,Ba),Object.defineProperty(Wa.prototype,"_className",{get:function(){return"SettingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"items",{get:function(){return m("items",this.m__items,Ha,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ha,this._isNull),this.__R},enumerable:!0,configurable:!0}),Wa.prototype.add=function(e,t){var n=ce.SettingCollection_Add(this,e,t),r=n.handled,i=n.result;return r?i:p(a.Setting,this,"Add",0,[e,t],!1,!0,null,0)},Wa.prototype.deleteAll=function(){i(this,"DeleteAll",0,[],0,0)},Wa.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Wa.prototype.getItem=function(e){return t(a.Setting,this,[e])},Wa.prototype.getItemOrNullObject=function(e){return p(a.Setting,this,"GetItemOrNullObject",1,[e],!1,!1,null,4)},Wa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Wa.prototype._handleResult=function(e){if(Ba.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Setting,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Wa.prototype.load=function(e){return b(this,e)},Wa.prototype.retrieve=function(e){return v(this,e)},Wa.prototype._handleIdResult=function(e){Ba.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Wa.prototype._handleRetrieveResult=function(e,t){var n=this;Ba.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Setting,!0,n,e,t)})},Wa.prototype.track=function(){return this.context.trackedObjects.add(this),this},Wa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Wa.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Wa.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Setting,!0,n,e,t)},function(e){return n.m__items=e})},Wa);function Wa(){return null!==Ba&&Ba.apply(this,arguments)||this}a.SettingCollection=Ua,(ce=a._CC||(a._CC={})).SettingCollection_Add=function(e,t,n){var r=JSON.stringify(La.replaceDateWithStringDate(n));return null===r?{handled:!1,result:null}:{handled:!0,result:p(a.Setting,e,"Add",0,[t,r],!1,!1,null,0)}};var Ga,Va="StyleCollection",za=(Ga=OfficeExtension.ClientObject,__extends(qa,Ga),Object.defineProperty(qa.prototype,"_className",{get:function(){return"StyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"items",{get:function(){return m("items",this.m__items,Va,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Va,this._isNull),this.__R},enumerable:!0,configurable:!0}),qa.prototype.getByName=function(e){return p(a.Style,this,"GetByName",1,[e],!1,!1,null,4)},qa.prototype.getByNameOrNullObject=function(e){return p(a.Style,this,"GetByNameOrNullObject",1,[e],!1,!1,null,4)},qa.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},qa.prototype.getItem=function(e){return t(a.Style,this,[e])},qa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},qa.prototype._handleResult=function(e){if(Ga.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Style,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},qa.prototype.load=function(e){return b(this,e)},qa.prototype.retrieve=function(e){return v(this,e)},qa.prototype._handleIdResult=function(e){Ga.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},qa.prototype._handleRetrieveResult=function(e,t){var n=this;Ga.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Style,!0,n,e,t)})},qa.prototype.track=function(){return this.context.trackedObjects.add(this),this},qa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},qa.prototype.toJSON=function(){return O(this,{},{},this.m__items)},qa.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Style,!0,n,e,t)},function(e){return n.m__items=e})},qa);function qa(){return null!==Ga&&Ga.apply(this,arguments)||this}a.StyleCollection=za;var Ka,Ja="Style",Xa=(Ka=OfficeExtension.ClientObject,__extends(Qa,Ka),Object.defineProperty(Qa.prototype,"_className",{get:function(){return"Style"},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","baseStyle","builtIn","inUse","linked","nameLocal","nextParagraphStyle","priority","quickStyle","type","unhideWhenUsed","visibility","automaticallyUpdate","languageId","languageIdFarEast","listLevelNumber","locked","hasProofing","noSpaceBetweenParagraphsOfSameStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BaseStyle","BuiltIn","InUse","Linked","NameLocal","NextParagraphStyle","Priority","QuickStyle","Type","UnhideWhenUsed","Visibility","AutomaticallyUpdate","LanguageId","LanguageIdFarEast","ListLevelNumber","Locked","HasProofing","NoSpaceBetweenParagraphsOfSameStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"_navigationPropertyNames",{get:function(){return["font","paragraphFormat","listTemplate","shading","tableStyle","borders","frame","linkStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"borders",{get:function(){return _("Style.borders","WordApiDesktop","1.1",l),this._Bo||(this._Bo=e(a.BorderCollection,this,"Borders",!0,4)),this._Bo},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"font",{get:function(){return _("Style.font",u,"1.5",l),this._F||(this._F=e(a.Font,this,"Font",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"frame",{get:function(){return _("Style.frame","WordApiDesktop","1.3",l),this._Fr||(this._Fr=e(a.Frame,this,"Frame",!1,4)),this._Fr},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"linkStyle",{get:function(){return _("Style.linkStyle","WordApiDesktop","1.3",l),this._Lin||(this._Lin=e(a.Style,this,"LinkStyle",!1,4)),this._Lin},set:function(e){this._Lin=e,h(this,"LinkStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"listTemplate",{get:function(){return _("Style.listTemplate","WordApiDesktop","1.1",l),this._List||(this._List=e(a.ListTemplate,this,"ListTemplate",!1,4)),this._List},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"paragraphFormat",{get:function(){return _("Style.paragraphFormat",u,"1.5",l),this._P||(this._P=e(a.ParagraphFormat,this,"ParagraphFormat",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"shading",{get:function(){return _("Style.shading",u,"1.6",l),this._S||(this._S=e(a.Shading,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"tableStyle",{get:function(){return _("Style.tableStyle",u,"1.6",l),this._T||(this._T=e(a.TableStyle,this,"TableStyle",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"automaticallyUpdate",{get:function(){return m("automaticallyUpdate",this._A,Ja,this._isNull),_("Style.automaticallyUpdate","WordApiDesktop","1.3",l),this._A},set:function(e){this._A=e,h(this,"AutomaticallyUpdate",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"baseStyle",{get:function(){return m("baseStyle",this._B,Ja,this._isNull),_("Style.baseStyle",u,"1.5",l),this._B},set:function(e){this._B=e,h(this,"BaseStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"builtIn",{get:function(){return m("builtIn",this._Bu,Ja,this._isNull),_("Style.builtIn",u,"1.5",l),this._Bu},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"hasProofing",{get:function(){return m("hasProofing",this._H,Ja,this._isNull),_("Style.hasProofing","WordApiDesktop","1.3",l),this._H},set:function(e){this._H=e,h(this,"HasProofing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"inUse",{get:function(){return m("inUse",this._I,Ja,this._isNull),_("Style.inUse",u,"1.5",l),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"languageId",{get:function(){return m("languageId",this._L,Ja,this._isNull),_("Style.languageId","WordApiDesktop","1.3",l),this._L},set:function(e){this._L=e,h(this,"LanguageId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"languageIdFarEast",{get:function(){return m("languageIdFarEast",this._La,Ja,this._isNull),_("Style.languageIdFarEast","WordApiDesktop","1.3",l),this._La},set:function(e){this._La=e,h(this,"LanguageIdFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"linked",{get:function(){return m("linked",this._Li,Ja,this._isNull),_("Style.linked",u,"1.5",l),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"listLevelNumber",{get:function(){return m("listLevelNumber",this._Lis,Ja,this._isNull),_("Style.listLevelNumber","WordApiDesktop","1.3",l),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"locked",{get:function(){return m("locked",this._Lo,Ja,this._isNull),_("Style.locked","WordApiDesktop","1.3",l),this._Lo},set:function(e){this._Lo=e,h(this,"Locked",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"nameLocal",{get:function(){return m("nameLocal",this._N,Ja,this._isNull),_("Style.nameLocal",u,"1.5",l),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"nextParagraphStyle",{get:function(){return m("nextParagraphStyle",this._Ne,Ja,this._isNull),_("Style.nextParagraphStyle",u,"1.5",l),this._Ne},set:function(e){this._Ne=e,h(this,"NextParagraphStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"noSpaceBetweenParagraphsOfSameStyle",{get:function(){return m("noSpaceBetweenParagraphsOfSameStyle",this._No,Ja,this._isNull),_("Style.noSpaceBetweenParagraphsOfSameStyle","WordApiDesktop","1.3",l),this._No},set:function(e){this._No=e,h(this,"NoSpaceBetweenParagraphsOfSameStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"priority",{get:function(){return m("priority",this._Pr,Ja,this._isNull),_("Style.priority",u,"1.5",l),this._Pr},set:function(e){this._Pr=e,h(this,"Priority",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"quickStyle",{get:function(){return m("quickStyle",this._Q,Ja,this._isNull),_("Style.quickStyle",u,"1.5",l),this._Q},set:function(e){this._Q=e,h(this,"QuickStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"type",{get:function(){return m("type",this._Ty,Ja,this._isNull),_("Style.type",u,"1.5",l),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"unhideWhenUsed",{get:function(){return m("unhideWhenUsed",this._U,Ja,this._isNull),_("Style.unhideWhenUsed",u,"1.5",l),this._U},set:function(e){this._U=e,h(this,"UnhideWhenUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"visibility",{get:function(){return m("visibility",this._V,Ja,this._isNull),_("Style.visibility",u,"1.5",l),this._V},set:function(e){this._V=e,h(this,"Visibility",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qa.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ja,this._isNull),this.__R},enumerable:!0,configurable:!0}),Qa.prototype.set=function(e,t){this._recursivelySet(e,t,["baseStyle","nextParagraphStyle","priority","quickStyle","unhideWhenUsed","visibility","automaticallyUpdate","languageId","languageIdFarEast","locked","hasProofing","noSpaceBetweenParagraphsOfSameStyle"],["font","paragraphFormat","listTemplate","shading","tableStyle","frame","linkStyle"],["borders"])},Qa.prototype.update=function(e){this._recursivelyUpdate(e)},Qa.prototype.delete=function(){_("Style.delete",u,"1.5",l),i(this,"Delete",0,[],0,0)},Qa.prototype.linkToListTemplate=function(e){_("Style.linkToListTemplate","WordApiDesktop","1.3",l),i(this,"LinkToListTemplate",0,[e],0,0)},Qa.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Qa.prototype._handleResult=function(e){if(Ka.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AutomaticallyUpdate)||(this._A=t.AutomaticallyUpdate),y(t.BaseStyle)||(this._B=t.BaseStyle),y(t.BuiltIn)||(this._Bu=t.BuiltIn),y(t.HasProofing)||(this._H=t.HasProofing),y(t.InUse)||(this._I=t.InUse),y(t.LanguageId)||(this._L=t.LanguageId),y(t.LanguageIdFarEast)||(this._La=t.LanguageIdFarEast),y(t.Linked)||(this._Li=t.Linked),y(t.ListLevelNumber)||(this._Lis=t.ListLevelNumber),y(t.Locked)||(this._Lo=t.Locked),y(t.NameLocal)||(this._N=t.NameLocal),y(t.NextParagraphStyle)||(this._Ne=t.NextParagraphStyle),y(t.NoSpaceBetweenParagraphsOfSameStyle)||(this._No=t.NoSpaceBetweenParagraphsOfSameStyle),y(t.Priority)||(this._Pr=t.Priority),y(t.QuickStyle)||(this._Q=t.QuickStyle),y(t.Type)||(this._Ty=t.Type),y(t.UnhideWhenUsed)||(this._U=t.UnhideWhenUsed),y(t.Visibility)||(this._V=t.Visibility),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","font","Font","frame","Frame","linkStyle","LinkStyle","listTemplate","ListTemplate","paragraphFormat","ParagraphFormat","shading","Shading","tableStyle","TableStyle"])}},Qa.prototype.load=function(e){return b(this,e)},Qa.prototype.retrieve=function(e){return v(this,e)},Qa.prototype._handleIdResult=function(e){Ka.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Qa.prototype._handleRetrieveResult=function(e,t){Ka.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Qa.prototype.track=function(){return this.context.trackedObjects.add(this),this},Qa.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Qa.prototype.toJSON=function(){return O(this,{automaticallyUpdate:this._A,baseStyle:this._B,builtIn:this._Bu,hasProofing:this._H,inUse:this._I,languageId:this._L,languageIdFarEast:this._La,linked:this._Li,listLevelNumber:this._Lis,locked:this._Lo,nameLocal:this._N,nextParagraphStyle:this._Ne,noSpaceBetweenParagraphsOfSameStyle:this._No,priority:this._Pr,quickStyle:this._Q,type:this._Ty,unhideWhenUsed:this._U,visibility:this._V},{borders:this._Bo,font:this._F,frame:this._Fr,linkStyle:this._Lin,listTemplate:this._List,paragraphFormat:this._P,shading:this._S,tableStyle:this._T})},Qa.prototype.setMockData=function(e){I(this,e)},Qa.prototype.ensureUnchanged=function(e){d(this,e)},Qa);function Qa(){return null!==Ka&&Ka.apply(this,arguments)||this}a.Style=Xa;var Ya,Za="Shading",$a=(Ya=OfficeExtension.ClientObject,__extends(es,Ya),Object.defineProperty(es.prototype,"_className",{get:function(){return"Shading"},enumerable:!0,configurable:!0}),Object.defineProperty(es.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","backgroundPatternColor","foregroundPatternColor","texture"]},enumerable:!0,configurable:!0}),Object.defineProperty(es.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BackgroundPatternColor","ForegroundPatternColor","Texture"]},enumerable:!0,configurable:!0}),Object.defineProperty(es.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(es.prototype,"backgroundPatternColor",{get:function(){return m("backgroundPatternColor",this._B,Za,this._isNull),this._B},set:function(e){this._B=e,h(this,"BackgroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(es.prototype,"foregroundPatternColor",{get:function(){return m("foregroundPatternColor",this._F,Za,this._isNull),_("Shading.foregroundPatternColor","WordApiDesktop","1.1",l),this._F},set:function(e){this._F=e,h(this,"ForegroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(es.prototype,"texture",{get:function(){return m("texture",this._T,Za,this._isNull),_("Shading.texture","WordApiDesktop","1.1",l),this._T},set:function(e){this._T=e,h(this,"Texture",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(es.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Za,this._isNull),this.__R},enumerable:!0,configurable:!0}),es.prototype.set=function(e,t){this._recursivelySet(e,t,["backgroundPatternColor","foregroundPatternColor","texture"],[],[])},es.prototype.update=function(e){this._recursivelyUpdate(e)},es.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},es.prototype._handleResult=function(e){if(Ya.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BackgroundPatternColor)||(this._B=t.BackgroundPatternColor),y(t.ForegroundPatternColor)||(this._F=t.ForegroundPatternColor),y(t.Texture)||(this._T=t.Texture),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},es.prototype.load=function(e){return b(this,e)},es.prototype.retrieve=function(e){return v(this,e)},es.prototype._handleIdResult=function(e){Ya.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},es.prototype._handleRetrieveResult=function(e,t){Ya.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},es.prototype.track=function(){return this.context.trackedObjects.add(this),this},es.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},es.prototype.toJSON=function(){return O(this,{backgroundPatternColor:this._B,foregroundPatternColor:this._F,texture:this._T},{})},es.prototype.setMockData=function(e){I(this,e)},es.prototype.ensureUnchanged=function(e){d(this,e)},es);function es(){return null!==Ya&&Ya.apply(this,arguments)||this}a.Shading=$a;var ts,ns="ShadingUniversal",rs=(ts=OfficeExtension.ClientObject,__extends(is,ts),Object.defineProperty(is.prototype,"_className",{get:function(){return"ShadingUniversal"},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","texture","backgroundPatternColor","backgroundPatternColorIndex","foregroundPatternColor","foregroundPatternColorIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Texture","BackgroundPatternColor","BackgroundPatternColorIndex","ForegroundPatternColor","ForegroundPatternColorIndex"]},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"backgroundPatternColor",{get:function(){return m("backgroundPatternColor",this._B,ns,this._isNull),this._B},set:function(e){this._B=e,h(this,"BackgroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"backgroundPatternColorIndex",{get:function(){return m("backgroundPatternColorIndex",this._Ba,ns,this._isNull),this._Ba},set:function(e){this._Ba=e,h(this,"BackgroundPatternColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"foregroundPatternColor",{get:function(){return m("foregroundPatternColor",this._F,ns,this._isNull),this._F},set:function(e){this._F=e,h(this,"ForegroundPatternColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"foregroundPatternColorIndex",{get:function(){return m("foregroundPatternColorIndex",this._Fo,ns,this._isNull),this._Fo},set:function(e){this._Fo=e,h(this,"ForegroundPatternColorIndex",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"texture",{get:function(){return m("texture",this._T,ns,this._isNull),this._T},set:function(e){this._T=e,h(this,"Texture",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(is.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ns,this._isNull),this.__R},enumerable:!0,configurable:!0}),is.prototype.set=function(e,t){this._recursivelySet(e,t,["texture","backgroundPatternColor","backgroundPatternColorIndex","foregroundPatternColor","foregroundPatternColorIndex"],[],[])},is.prototype.update=function(e){this._recursivelyUpdate(e)},is.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},is.prototype._handleResult=function(e){if(ts.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BackgroundPatternColor)||(this._B=t.BackgroundPatternColor),y(t.BackgroundPatternColorIndex)||(this._Ba=t.BackgroundPatternColorIndex),y(t.ForegroundPatternColor)||(this._F=t.ForegroundPatternColor),y(t.ForegroundPatternColorIndex)||(this._Fo=t.ForegroundPatternColorIndex),y(t.Texture)||(this._T=t.Texture),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},is.prototype.load=function(e){return b(this,e)},is.prototype.retrieve=function(e){return v(this,e)},is.prototype._handleIdResult=function(e){ts.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},is.prototype._handleRetrieveResult=function(e,t){ts.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},is.prototype.track=function(){return this.context.trackedObjects.add(this),this},is.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},is.prototype.toJSON=function(){return O(this,{backgroundPatternColor:this._B,backgroundPatternColorIndex:this._Ba,foregroundPatternColor:this._F,foregroundPatternColorIndex:this._Fo,texture:this._T},{})},is.prototype.setMockData=function(e){I(this,e)},is.prototype.ensureUnchanged=function(e){d(this,e)},is);function is(){return null!==ts&&ts.apply(this,arguments)||this}a.ShadingUniversal=rs;var os,as="Table",ss=(os=OfficeExtension.ClientObject,__extends(cs,os),Object.defineProperty(cs.prototype,"_className",{get:function(){return"Table"},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","isUniform","nestingLevel","values","style","rowCount","headerRowCount","styleTotalRow","styleFirstColumn","styleLastColumn","styleBandedRows","styleBandedColumns","shadingColor","horizontalAlignment","verticalAlignment","width","styleBuiltIn","alignment","description","title"]},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","IsUniform","NestingLevel","Values","Style","RowCount","HeaderRowCount","StyleTotalRow","StyleFirstColumn","StyleLastColumn","StyleBandedRows","StyleBandedColumns","ShadingColor","HorizontalAlignment","VerticalAlignment","Width","StyleBuiltIn","Alignment","Description","Title"]},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"_navigationPropertyNames",{get:function(){return["rows","tables","parentTableCell","parentTable","font","parentContentControl","parentBody","parentTableCellOrNullObject","parentTableOrNullObject","parentContentControlOrNullObject","footnotes","endnotes","fields","columns","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"columns",{get:function(){return _("Table.columns","WordApiDesktop","1.4",l),this._C||(this._C=e(a.TableColumnCollection,this,"Columns",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"endnotes",{get:function(){return _("Table.endnotes",u,"1.5",l),this._E||(this._E=e(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"fields",{get:function(){return _("Table.fields",u,"1.4",l),this._F||(this._F=e(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"font",{get:function(){return this._Fo||(this._Fo=e(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"footnotes",{get:function(){return _("Table.footnotes",u,"1.5",l),this._Foo||(this._Foo=e(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"parentBody",{get:function(){return this._P||(this._P=e(a.Body,this,"ParentBody",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"parentContentControl",{get:function(){return this._Pa||(this._Pa=e(a.ContentControl,this,"ParentContentControl",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"parentContentControlOrNullObject",{get:function(){return this._Par||(this._Par=e(a.ContentControl,this,"ParentContentControlOrNullObject",!1,4)),this._Par},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"parentTable",{get:function(){return this._Pare||(this._Pare=e(a.Table,this,"ParentTable",!1,4)),this._Pare},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"parentTableCell",{get:function(){return this._Paren||(this._Paren=e(a.TableCell,this,"ParentTableCell",!1,4)),this._Paren},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"parentTableCellOrNullObject",{get:function(){return this._Parent||(this._Parent=e(a.TableCell,this,"ParentTableCellOrNullObject",!1,4)),this._Parent},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"parentTableOrNullObject",{get:function(){return this._ParentT||(this._ParentT=e(a.Table,this,"ParentTableOrNullObject",!1,4)),this._ParentT},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"rows",{get:function(){return this._Ro||(this._Ro=e(a.TableRowCollection,this,"Rows",!0,4)),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"shading",{get:function(){return _("Table.shading","WordApiDesktop","1.4",l),this._S||(this._S=e(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"tables",{get:function(){return this._T||(this._T=e(a.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"alignment",{get:function(){return m("alignment",this._A,as,this._isNull),this._A},set:function(e){this._A=e,h(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"description",{get:function(){return m("description",this._D,as,this._isNull),_("Table.description","WordApiDesktop","1.4",l),this._D},set:function(e){this._D=e,h(this,"Description",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"headerRowCount",{get:function(){return m("headerRowCount",this._H,as,this._isNull),this._H},set:function(e){this._H=e,h(this,"HeaderRowCount",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"horizontalAlignment",{get:function(){return m("horizontalAlignment",this._Ho,as,this._isNull),this._Ho},set:function(e){this._Ho=e,h(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"isUniform",{get:function(){return m("isUniform",this._I,as,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"nestingLevel",{get:function(){return m("nestingLevel",this._N,as,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"rowCount",{get:function(){return m("rowCount",this._R,as,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"shadingColor",{get:function(){return m("shadingColor",this._Sh,as,this._isNull),this._Sh},set:function(e){this._Sh=e,h(this,"ShadingColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"style",{get:function(){return m("style",this._St,as,this._isNull),this._St},set:function(e){this._St=e,h(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"styleBandedColumns",{get:function(){return m("styleBandedColumns",this._Sty,as,this._isNull),this._Sty},set:function(e){this._Sty=e,h(this,"StyleBandedColumns",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"styleBandedRows",{get:function(){return m("styleBandedRows",this._Styl,as,this._isNull),this._Styl},set:function(e){this._Styl=e,h(this,"StyleBandedRows",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"styleBuiltIn",{get:function(){return m("styleBuiltIn",this._Style,as,this._isNull),this._Style},set:function(e){this._Style=e,h(this,"StyleBuiltIn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"styleFirstColumn",{get:function(){return m("styleFirstColumn",this._StyleF,as,this._isNull),this._StyleF},set:function(e){this._StyleF=e,h(this,"StyleFirstColumn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"styleLastColumn",{get:function(){return m("styleLastColumn",this._StyleL,as,this._isNull),this._StyleL},set:function(e){this._StyleL=e,h(this,"StyleLastColumn",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"styleTotalRow",{get:function(){return m("styleTotalRow",this._StyleT,as,this._isNull),this._StyleT},set:function(e){this._StyleT=e,h(this,"StyleTotalRow",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"title",{get:function(){return m("title",this._Ti,as,this._isNull),_("Table.title","WordApiDesktop","1.4",l),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"values",{get:function(){return m("values",this._V,as,this._isNull),this._V},set:function(e){this._V=e,h(this,"Values",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"verticalAlignment",{get:function(){return m("verticalAlignment",this._Ve,as,this._isNull),this._Ve},set:function(e){this._Ve=e,h(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"width",{get:function(){return m("width",this._W,as,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"_Id",{get:function(){return m("_Id",this.__I,as,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(cs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,as,this._isNull),this.__R},enumerable:!0,configurable:!0}),cs.prototype.set=function(e,t){this._recursivelySet(e,t,["values","style","headerRowCount","styleTotalRow","styleFirstColumn","styleLastColumn","styleBandedRows","styleBandedColumns","shadingColor","horizontalAlignment","verticalAlignment","width","styleBuiltIn","alignment"],["font"],["columns","description","endnotes","fields","footnotes","parentBody","parentContentControl","parentContentControlOrNullObject","parentTable","parentTableCell","parentTableCellOrNullObject","parentTableOrNullObject","rows","shading","tables","title"])},cs.prototype.update=function(e){this._recursivelyUpdate(e)},cs.prototype.addColumns=function(e,t,n){i(this,"AddColumns",0,[e,t,n],0,0)},cs.prototype.addRows=function(e,t,n){return p(a.TableRowCollection,this,"AddRows",0,[e,t,n],!0,!1,null,0)},cs.prototype.applyStyleDirectFormatting=function(e){_("Table.applyStyleDirectFormatting","WordApiDesktop","1.4",l),i(this,"ApplyStyleDirectFormatting",0,[e],0,0)},cs.prototype.autoFitBehavior=function(e){_("Table.autoFitBehavior","WordApiDesktop","1.4",l),i(this,"AutoFitBehavior",0,[e],0,0)},cs.prototype.autoFitWindow=function(){i(this,"AutoFitWindow",0,[],0,0)},cs.prototype.autoFormat=function(e){_("Table.autoFormat","WordApiDesktop","1.4",l),i(this,"AutoFormat",0,[e],0,0)},cs.prototype.clear=function(){i(this,"Clear",0,[],0,0)},cs.prototype.convertToText=function(e){return _("Table.convertToText","WordApiDesktop","1.4",l),p(a.Range,this,"ConvertToText",0,[e],!1,!1,null,0)},cs.prototype.delete=function(){i(this,"Delete",0,[],0,0)},cs.prototype.deleteColumns=function(e,t){i(this,"DeleteColumns",0,[e,t],0,0)},cs.prototype.deleteRows=function(e,t){i(this,"DeleteRows",0,[e,t],0,0)},cs.prototype.distributeColumns=function(){i(this,"DistributeColumns",0,[],0,0)},cs.prototype.getBorder=function(e){return p(a.TableBorder,this,"GetBorder",1,[e],!1,!1,null,4)},cs.prototype.getCell=function(e,t){return p(a.TableCell,this,"GetCell",1,[e,t],!1,!1,null,4)},cs.prototype.getCellOrNullObject=function(e,t){return p(a.TableCell,this,"GetCellOrNullObject",1,[e,t],!1,!1,null,4)},cs.prototype.getCellPadding=function(e){return i(this,"GetCellPadding",1,[e],4,0)},cs.prototype.getNext=function(){return p(a.Table,this,"GetNext",1,[],!1,!1,null,4)},cs.prototype.getNextOrNullObject=function(){return p(a.Table,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},cs.prototype.getParagraphAfter=function(){return p(a.Paragraph,this,"GetParagraphAfter",1,[],!1,!1,null,4)},cs.prototype.getParagraphAfterOrNullObject=function(){return p(a.Paragraph,this,"GetParagraphAfterOrNullObject",1,[],!1,!1,null,4)},cs.prototype.getParagraphBefore=function(){return p(a.Paragraph,this,"GetParagraphBefore",1,[],!1,!1,null,4)},cs.prototype.getParagraphBeforeOrNullObject=function(){return p(a.Paragraph,this,"GetParagraphBeforeOrNullObject",1,[],!1,!1,null,4)},cs.prototype.getRange=function(e){return p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},cs.prototype.insertContentControl=function(){return p(a.ContentControl,this,"InsertContentControl",0,[],!1,!0,null,0)},cs.prototype.insertParagraph=function(e,t){return p(a.Paragraph,this,"InsertParagraph",0,[e,t],!1,!0,null,0)},cs.prototype.insertTable=function(e,t,n,r){return p(a.Table,this,"InsertTable",0,[e,t,n,r],!1,!0,null,0)},cs.prototype.mergeCells=function(e,t,n,r){return _("Table.mergeCells",u,"1.4",l),p(a.TableCell,this,"MergeCells",0,[e,t,n,r],!1,!0,null,0)},cs.prototype.reapplyAutoFormat=function(){_("Table.reapplyAutoFormat","WordApiDesktop","1.4",l),i(this,"ReapplyAutoFormat",0,[],0,0)},cs.prototype.search=function(e,t){var n=ce.Table_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},cs.prototype.select=function(e){i(this,"Select",1,[e],4,0)},cs.prototype.setCellPadding=function(e,t){i(this,"SetCellPadding",0,[e,t],0,0)},cs.prototype.sort=function(e){_("Table.sort","WordApiDesktop","1.4",l),i(this,"Sort",0,[e],0,0)},cs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},cs.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},cs.prototype._handleResult=function(e){if(os.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Alignment)||(this._A=t.Alignment),y(t.Description)||(this._D=t.Description),y(t.HeaderRowCount)||(this._H=t.HeaderRowCount),y(t.HorizontalAlignment)||(this._Ho=t.HorizontalAlignment),y(t.IsUniform)||(this._I=t.IsUniform),y(t.NestingLevel)||(this._N=t.NestingLevel),y(t.RowCount)||(this._R=t.RowCount),y(t.ShadingColor)||(this._Sh=t.ShadingColor),y(t.Style)||(this._St=t.Style),y(t.StyleBandedColumns)||(this._Sty=t.StyleBandedColumns),y(t.StyleBandedRows)||(this._Styl=t.StyleBandedRows),y(t.StyleBuiltIn)||(this._Style=t.StyleBuiltIn),y(t.StyleFirstColumn)||(this._StyleF=t.StyleFirstColumn),y(t.StyleLastColumn)||(this._StyleL=t.StyleLastColumn),y(t.StyleTotalRow)||(this._StyleT=t.StyleTotalRow),y(t.Title)||(this._Ti=t.Title),y(t.Values)||(this._V=t.Values),y(t.VerticalAlignment)||(this._Ve=t.VerticalAlignment),y(t.Width)||(this._W=t.Width),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["columns","Columns","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","parentBody","ParentBody","parentContentControl","ParentContentControl","parentContentControlOrNullObject","ParentContentControlOrNullObject","parentTable","ParentTable","parentTableCell","ParentTableCell","parentTableCellOrNullObject","ParentTableCellOrNullObject","parentTableOrNullObject","ParentTableOrNullObject","rows","Rows","shading","Shading","tables","Tables"])}},cs.prototype.load=function(e){return b(this,e)},cs.prototype.retrieve=function(e){return v(this,e)},cs.prototype._handleIdResult=function(e){os.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},cs.prototype._handleRetrieveResult=function(e,t){os.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},cs.prototype.track=function(){return this.context.trackedObjects.add(this),this},cs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},cs.prototype.toJSON=function(){return O(this,{alignment:this._A,headerRowCount:this._H,horizontalAlignment:this._Ho,isUniform:this._I,nestingLevel:this._N,rowCount:this._R,shadingColor:this._Sh,style:this._St,styleBandedColumns:this._Sty,styleBandedRows:this._Styl,styleBuiltIn:this._Style,styleFirstColumn:this._StyleF,styleLastColumn:this._StyleL,styleTotalRow:this._StyleT,values:this._V,verticalAlignment:this._Ve,width:this._W},{fields:this._F,font:this._Fo,rows:this._Ro,tables:this._T})},cs.prototype.setMockData=function(e){I(this,e)},cs.prototype.ensureUnchanged=function(e){d(this,e)},cs);function cs(){return null!==os&&os.apply(this,arguments)||this}a.Table=ss,(ce=a._CC||(a._CC={})).Table_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var ls,us="TableStyle",ps=(ls=OfficeExtension.ClientObject,__extends(fs,ls),Object.defineProperty(fs.prototype,"_className",{get:function(){return"TableStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","allowBreakAcrossPage","alignment","bottomCellMargin","leftCellMargin","rightCellMargin","topCellMargin","cellSpacing","isBreakAcrossPagesAllowed","columnStripe","leftIndent","rowStripe","tableDirection"]},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","AllowBreakAcrossPage","Alignment","BottomCellMargin","LeftCellMargin","RightCellMargin","TopCellMargin","CellSpacing","IsBreakAcrossPagesAllowed","ColumnStripe","LeftIndent","RowStripe","TableDirection"]},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"_navigationPropertyNames",{get:function(){return["borders","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"borders",{get:function(){return _("TableStyle.borders","WordApiDesktop","1.4",l),this._B||(this._B=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"shading",{get:function(){return _("TableStyle.shading","WordApiDesktop","1.4",l),this._S||(this._S=e(a.Shading,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"alignment",{get:function(){return m("alignment",this._A,us,this._isNull),_("TableStyle.alignment","WordApiDesktop","1.1",l),this._A},set:function(e){this._A=e,h(this,"Alignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"allowBreakAcrossPage",{get:function(){return m("allowBreakAcrossPage",this._Al,us,this._isNull),_("TableStyle.allowBreakAcrossPage","WordApiDesktop","1.1",l),this._Al},set:function(e){this._Al=e,h(this,"AllowBreakAcrossPage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"bottomCellMargin",{get:function(){return m("bottomCellMargin",this._Bo,us,this._isNull),this._Bo},set:function(e){this._Bo=e,h(this,"BottomCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"cellSpacing",{get:function(){return m("cellSpacing",this._C,us,this._isNull),this._C},set:function(e){this._C=e,h(this,"CellSpacing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"columnStripe",{get:function(){return m("columnStripe",this._Co,us,this._isNull),_("TableStyle.columnStripe","WordApiDesktop","1.4",l),this._Co},set:function(e){this._Co=e,h(this,"ColumnStripe",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"isBreakAcrossPagesAllowed",{get:function(){return m("isBreakAcrossPagesAllowed",this._I,us,this._isNull),_("TableStyle.isBreakAcrossPagesAllowed","WordApiDesktop","1.4",l),this._I},set:function(e){this._I=e,h(this,"IsBreakAcrossPagesAllowed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"leftCellMargin",{get:function(){return m("leftCellMargin",this._L,us,this._isNull),this._L},set:function(e){this._L=e,h(this,"LeftCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"leftIndent",{get:function(){return m("leftIndent",this._Le,us,this._isNull),_("TableStyle.leftIndent","WordApiDesktop","1.4",l),this._Le},set:function(e){this._Le=e,h(this,"LeftIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"rightCellMargin",{get:function(){return m("rightCellMargin",this._R,us,this._isNull),this._R},set:function(e){this._R=e,h(this,"RightCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"rowStripe",{get:function(){return m("rowStripe",this._Ro,us,this._isNull),_("TableStyle.rowStripe","WordApiDesktop","1.4",l),this._Ro},set:function(e){this._Ro=e,h(this,"RowStripe",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"tableDirection",{get:function(){return m("tableDirection",this._T,us,this._isNull),_("TableStyle.tableDirection","WordApiDesktop","1.4",l),this._T},set:function(e){this._T=e,h(this,"TableDirection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"topCellMargin",{get:function(){return m("topCellMargin",this._To,us,this._isNull),this._To},set:function(e){this._To=e,h(this,"TopCellMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,us,this._isNull),this.__R},enumerable:!0,configurable:!0}),fs.prototype.set=function(e,t){this._recursivelySet(e,t,["allowBreakAcrossPage","alignment","bottomCellMargin","leftCellMargin","rightCellMargin","topCellMargin","cellSpacing"],[],["borders","columnStripe","isBreakAcrossPagesAllowed","leftIndent","rowStripe","shading","tableDirection"])},fs.prototype.update=function(e){this._recursivelyUpdate(e)},fs.prototype.condition=function(e){return _("TableStyle.condition","WordApiDesktop","1.4",l),p(a.ConditionalStyle,this,"Condition",0,[e],!1,!1,null,0)},fs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},fs.prototype._handleResult=function(e){if(ls.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Alignment)||(this._A=t.Alignment),y(t.AllowBreakAcrossPage)||(this._Al=t.AllowBreakAcrossPage),y(t.BottomCellMargin)||(this._Bo=t.BottomCellMargin),y(t.CellSpacing)||(this._C=t.CellSpacing),y(t.ColumnStripe)||(this._Co=t.ColumnStripe),y(t.IsBreakAcrossPagesAllowed)||(this._I=t.IsBreakAcrossPagesAllowed),y(t.LeftCellMargin)||(this._L=t.LeftCellMargin),y(t.LeftIndent)||(this._Le=t.LeftIndent),y(t.RightCellMargin)||(this._R=t.RightCellMargin),y(t.RowStripe)||(this._Ro=t.RowStripe),y(t.TableDirection)||(this._T=t.TableDirection),y(t.TopCellMargin)||(this._To=t.TopCellMargin),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","shading","Shading"])}},fs.prototype.load=function(e){return b(this,e)},fs.prototype.retrieve=function(e){return v(this,e)},fs.prototype._handleIdResult=function(e){ls.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},fs.prototype._handleRetrieveResult=function(e,t){ls.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},fs.prototype.track=function(){return this.context.trackedObjects.add(this),this},fs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},fs.prototype.toJSON=function(){return O(this,{alignment:this._A,allowBreakAcrossPage:this._Al,bottomCellMargin:this._Bo,cellSpacing:this._C,leftCellMargin:this._L,rightCellMargin:this._R,topCellMargin:this._To},{})},fs.prototype.setMockData=function(e){I(this,e)},fs.prototype.ensureUnchanged=function(e){d(this,e)},fs);function fs(){return null!==ls&&ls.apply(this,arguments)||this}a.TableStyle=ps;var ds,hs="TabStop",gs=(ds=OfficeExtension.ClientObject,__extends(ys,ds),Object.defineProperty(ys.prototype,"_className",{get:function(){return"TabStop"},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","alignment","customTab","leader","position"]},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Alignment","CustomTab","Leader","Position"]},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_navigationPropertyNames",{get:function(){return["next","previous"]},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"next",{get:function(){return this._N||(this._N=e(a.TabStop,this,"Next",!1,4)),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"previous",{get:function(){return this._Pr||(this._Pr=e(a.TabStop,this,"Previous",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"alignment",{get:function(){return m("alignment",this._A,hs,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"customTab",{get:function(){return m("customTab",this._C,hs,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"leader",{get:function(){return m("leader",this._L,hs,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"position",{get:function(){return m("position",this._P,hs,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(ys.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,hs,this._isNull),this.__R},enumerable:!0,configurable:!0}),ys.prototype.clear=function(){i(this,"Clear",0,[],0,0)},ys.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ys.prototype._handleResult=function(e){if(ds.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Alignment)||(this._A=t.Alignment),y(t.CustomTab)||(this._C=t.CustomTab),y(t.Leader)||(this._L=t.Leader),y(t.Position)||(this._P=t.Position),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["next","Next","previous","Previous"])}},ys.prototype.load=function(e){return b(this,e)},ys.prototype.retrieve=function(e){return v(this,e)},ys.prototype._handleIdResult=function(e){ds.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ys.prototype._handleRetrieveResult=function(e,t){ds.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ys.prototype.track=function(){return this.context.trackedObjects.add(this),this},ys.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ys.prototype.toJSON=function(){return O(this,{},{})},ys.prototype.setMockData=function(e){I(this,e)},ys.prototype.ensureUnchanged=function(e){d(this,e)},ys);function ys(){return null!==ds&&ds.apply(this,arguments)||this}a.TabStop=gs;var ms,_s="TabStopCollection",bs=(ms=OfficeExtension.ClientObject,__extends(vs,ms),Object.defineProperty(vs.prototype,"_className",{get:function(){return"TabStopCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"items",{get:function(){return m("items",this.m__items,_s,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(vs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,_s,this._isNull),this.__R},enumerable:!0,configurable:!0}),vs.prototype.add=function(e,t){return p(a.TabStop,this,"Add",0,[e,t],!1,!0,null,0)},vs.prototype.after=function(e){return p(a.TabStop,this,"After",0,[e],!1,!1,null,0)},vs.prototype.before=function(e){return p(a.TabStop,this,"Before",0,[e],!1,!1,null,0)},vs.prototype.clearAll=function(){i(this,"ClearAll",0,[],0,0)},vs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},vs.prototype._handleResult=function(e){if(ms.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TabStop,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},vs.prototype.load=function(e){return b(this,e)},vs.prototype.retrieve=function(e){return v(this,e)},vs.prototype._handleIdResult=function(e){ms.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},vs.prototype._handleRetrieveResult=function(e,t){var n=this;ms.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TabStop,!1,n,e,t)})},vs.prototype.track=function(){return this.context.trackedObjects.add(this),this},vs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},vs.prototype.toJSON=function(){return O(this,{},{},this.m__items)},vs.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TabStop,!1,n,e,t)},function(e){return n.m__items=e})},vs);function vs(){return null!==ms&&ms.apply(this,arguments)||this}a.TabStopCollection=bs;var Os,Ps="TableCollection",Cs=(Os=OfficeExtension.ClientObject,__extends(Rs,Os),Object.defineProperty(Rs.prototype,"_className",{get:function(){return"TableCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Rs.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Rs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rs.prototype,"items",{get:function(){return m("items",this.m__items,Ps,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Rs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ps,this._isNull),this.__R},enumerable:!0,configurable:!0}),Rs.prototype.getFirst=function(){return p(a.Table,this,"GetFirst",1,[],!1,!1,null,4)},Rs.prototype.getFirstOrNullObject=function(){return p(a.Table,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Rs.prototype._GetItem=function(e){return t(a.Table,this,[e])},Rs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Rs.prototype._handleResult=function(e){if(Os.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Table,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Rs.prototype.load=function(e){return b(this,e)},Rs.prototype.retrieve=function(e){return v(this,e)},Rs.prototype._handleIdResult=function(e){Os.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Rs.prototype._handleRetrieveResult=function(e,t){var n=this;Os.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Table,!0,n,e,t)})},Rs.prototype.track=function(){return this.context.trackedObjects.add(this),this},Rs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Rs.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Rs.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Table,!0,n,e,t)},function(e){return n.m__items=e})},Rs);function Rs(){return null!==Os&&Os.apply(this,arguments)||this}a.TableCollection=Cs;var Ss,Is="TableColumn",As=(Ss=OfficeExtension.ClientObject,__extends(Ts,Ss),Object.defineProperty(Ts.prototype,"_className",{get:function(){return"TableColumn"},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","columnIndex","isFirst","isLast","nestingLevel","preferredWidth","preferredWidthType","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","ColumnIndex","IsFirst","IsLast","NestingLevel","PreferredWidth","PreferredWidthType","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"_navigationPropertyNames",{get:function(){return["borders","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"borders",{get:function(){return this._B||(this._B=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"shading",{get:function(){return this._S||(this._S=e(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"columnIndex",{get:function(){return m("columnIndex",this._C,Is,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"isFirst",{get:function(){return m("isFirst",this._I,Is,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"isLast",{get:function(){return m("isLast",this._Is,Is,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"nestingLevel",{get:function(){return m("nestingLevel",this._N,Is,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"preferredWidth",{get:function(){return m("preferredWidth",this._P,Is,this._isNull),this._P},set:function(e){this._P=e,h(this,"PreferredWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"preferredWidthType",{get:function(){return m("preferredWidthType",this._Pr,Is,this._isNull),this._Pr},set:function(e){this._Pr=e,h(this,"PreferredWidthType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"width",{get:function(){return m("width",this._W,Is,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ts.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Is,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ts.prototype.set=function(e,t){this._recursivelySet(e,t,["preferredWidth","preferredWidthType","width"],["shading"],["borders"])},Ts.prototype.update=function(e){this._recursivelyUpdate(e)},Ts.prototype.autoFit=function(){i(this,"AutoFit",0,[],0,0)},Ts.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Ts.prototype.select=function(){i(this,"Select",0,[],0,0)},Ts.prototype.setWidth=function(e,t){i(this,"SetWidth",0,[e,t],0,0)},Ts.prototype.sort=function(){i(this,"Sort",0,[],0,0)},Ts.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ts.prototype._handleResult=function(e){if(Ss.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.ColumnIndex)||(this._C=t.ColumnIndex),y(t.IsFirst)||(this._I=t.IsFirst),y(t.IsLast)||(this._Is=t.IsLast),y(t.NestingLevel)||(this._N=t.NestingLevel),y(t.PreferredWidth)||(this._P=t.PreferredWidth),y(t.PreferredWidthType)||(this._Pr=t.PreferredWidthType),y(t.Width)||(this._W=t.Width),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","shading","Shading"])}},Ts.prototype.load=function(e){return b(this,e)},Ts.prototype.retrieve=function(e){return v(this,e)},Ts.prototype._handleIdResult=function(e){Ss.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ts.prototype._handleRetrieveResult=function(e,t){Ss.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ts.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ts.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ts.prototype.toJSON=function(){return O(this,{columnIndex:this._C,isFirst:this._I,isLast:this._Is,nestingLevel:this._N,preferredWidth:this._P,preferredWidthType:this._Pr,width:this._W},{borders:this._B,shading:this._S})},Ts.prototype.setMockData=function(e){I(this,e)},Ts.prototype.ensureUnchanged=function(e){d(this,e)},Ts);function Ts(){return null!==Ss&&Ss.apply(this,arguments)||this}a.TableColumn=As;var Ns,Ds="TableColumnCollection",xs=(Ns=OfficeExtension.ClientObject,__extends(Es,Ns),Object.defineProperty(Es.prototype,"_className",{get:function(){return"TableColumnCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Es.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Es.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Es.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Es.prototype,"items",{get:function(){return m("items",this.m__items,Ds,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Es.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ds,this._isNull),this.__R},enumerable:!0,configurable:!0}),Es.prototype.add=function(e){return p(a.TableColumn,this,"Add",0,[e],!1,!0,null,0)},Es.prototype.autoFit=function(){i(this,"AutoFit",0,[],0,0)},Es.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Es.prototype.distributeWidth=function(){i(this,"DistributeWidth",0,[],0,0)},Es.prototype.select=function(){i(this,"Select",0,[],0,0)},Es.prototype.setWidth=function(e,t){i(this,"SetWidth",0,[e,t],0,0)},Es.prototype._GetItem=function(e){return t(a.TableColumn,this,[e])},Es.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Es.prototype._handleResult=function(e){if(Ns.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableColumn,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Es.prototype.load=function(e){return b(this,e)},Es.prototype.retrieve=function(e){return v(this,e)},Es.prototype._handleIdResult=function(e){Ns.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Es.prototype._handleRetrieveResult=function(e,t){var n=this;Ns.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TableColumn,!0,n,e,t)})},Es.prototype.track=function(){return this.context.trackedObjects.add(this),this},Es.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Es.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Es.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TableColumn,!0,n,e,t)},function(e){return n.m__items=e})},Es);function Es(){return null!==Ns&&Ns.apply(this,arguments)||this}a.TableColumnCollection=xs;var ks,js="TableOfAuthorities",ws=(ks=OfficeExtension.ClientObject,__extends(Fs,ks),Object.defineProperty(Fs.prototype,"_className",{get:function(){return"TableOfAuthorities"},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","isPassimUsed","isEntryFormattingKept","category","bookmark","sequenceSeparator","sequenceName","entrySeparator","pageRangeSeparator","isCategoryHeaderIncluded","pageNumberSeparator","tabLeader"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","IsPassimUsed","IsEntryFormattingKept","Category","Bookmark","SequenceSeparator","SequenceName","EntrySeparator","PageRangeSeparator","IsCategoryHeaderIncluded","PageNumberSeparator","TabLeader"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"bookmark",{get:function(){return m("bookmark",this._B,js,this._isNull),this._B},set:function(e){this._B=e,h(this,"Bookmark",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"category",{get:function(){return m("category",this._C,js,this._isNull),this._C},set:function(e){this._C=e,h(this,"Category",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"entrySeparator",{get:function(){return m("entrySeparator",this._E,js,this._isNull),this._E},set:function(e){this._E=e,h(this,"EntrySeparator",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"isCategoryHeaderIncluded",{get:function(){return m("isCategoryHeaderIncluded",this._I,js,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsCategoryHeaderIncluded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"isEntryFormattingKept",{get:function(){return m("isEntryFormattingKept",this._Is,js,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsEntryFormattingKept",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"isPassimUsed",{get:function(){return m("isPassimUsed",this._IsP,js,this._isNull),this._IsP},set:function(e){this._IsP=e,h(this,"IsPassimUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"pageNumberSeparator",{get:function(){return m("pageNumberSeparator",this._P,js,this._isNull),this._P},set:function(e){this._P=e,h(this,"PageNumberSeparator",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"pageRangeSeparator",{get:function(){return m("pageRangeSeparator",this._Pa,js,this._isNull),this._Pa},set:function(e){this._Pa=e,h(this,"PageRangeSeparator",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"sequenceName",{get:function(){return m("sequenceName",this._S,js,this._isNull),this._S},set:function(e){this._S=e,h(this,"SequenceName",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"sequenceSeparator",{get:function(){return m("sequenceSeparator",this._Se,js,this._isNull),this._Se},set:function(e){this._Se=e,h(this,"SequenceSeparator",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"tabLeader",{get:function(){return m("tabLeader",this._T,js,this._isNull),this._T},set:function(e){this._T=e,h(this,"TabLeader",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Fs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,js,this._isNull),this.__R},enumerable:!0,configurable:!0}),Fs.prototype.set=function(e,t){this._recursivelySet(e,t,["isPassimUsed","isEntryFormattingKept","category","bookmark","sequenceSeparator","sequenceName","entrySeparator","pageRangeSeparator","isCategoryHeaderIncluded","pageNumberSeparator","tabLeader"],[],["range"])},Fs.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Fs.prototype.update=function(){i(this,"Update",0,[],0,0)},Fs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Fs.prototype._handleResult=function(e){if(ks.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Bookmark)||(this._B=t.Bookmark),y(t.Category)||(this._C=t.Category),y(t.EntrySeparator)||(this._E=t.EntrySeparator),y(t.IsCategoryHeaderIncluded)||(this._I=t.IsCategoryHeaderIncluded),y(t.IsEntryFormattingKept)||(this._Is=t.IsEntryFormattingKept),y(t.IsPassimUsed)||(this._IsP=t.IsPassimUsed),y(t.PageNumberSeparator)||(this._P=t.PageNumberSeparator),y(t.PageRangeSeparator)||(this._Pa=t.PageRangeSeparator),y(t.SequenceName)||(this._S=t.SequenceName),y(t.SequenceSeparator)||(this._Se=t.SequenceSeparator),y(t.TabLeader)||(this._T=t.TabLeader),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},Fs.prototype.load=function(e){return b(this,e)},Fs.prototype.retrieve=function(e){return v(this,e)},Fs.prototype._handleIdResult=function(e){ks.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Fs.prototype._handleRetrieveResult=function(e,t){ks.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Fs.prototype.track=function(){return this.context.trackedObjects.add(this),this},Fs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Fs.prototype.toJSON=function(){return O(this,{bookmark:this._B,category:this._C,entrySeparator:this._E,isCategoryHeaderIncluded:this._I,isEntryFormattingKept:this._Is,isPassimUsed:this._IsP,pageNumberSeparator:this._P,pageRangeSeparator:this._Pa,sequenceName:this._S,sequenceSeparator:this._Se,tabLeader:this._T},{})},Fs.prototype.setMockData=function(e){I(this,e)},Fs.prototype.ensureUnchanged=function(e){d(this,e)},Fs);function Fs(){return null!==ks&&ks.apply(this,arguments)||this}a.TableOfAuthorities=ws;var Ls,Ms="TableOfAuthoritiesCollection",Bs=(Ls=OfficeExtension.ClientObject,__extends(Hs,Ls),Object.defineProperty(Hs.prototype,"_className",{get:function(){return"TableOfAuthoritiesCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Hs.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Hs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hs.prototype,"items",{get:function(){return m("items",this.m__items,Ms,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Hs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ms,this._isNull),this.__R},enumerable:!0,configurable:!0}),Hs.prototype.add=function(e,t){return p(a.TableOfAuthorities,this,"Add",0,[e,t],!1,!0,null,0)},Hs.prototype.markAllCitations=function(e,t){i(this,"MarkAllCitations",0,[e,t],0,0)},Hs.prototype.markCitation=function(e,t,n){return p(a.Field,this,"MarkCitation",0,[e,t,n],!1,!1,null,0)},Hs.prototype.selectNextCitation=function(e){i(this,"SelectNextCitation",1,[e],4,0)},Hs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Hs.prototype._handleResult=function(e){if(Ls.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableOfAuthorities,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Hs.prototype.load=function(e){return b(this,e)},Hs.prototype.retrieve=function(e){return v(this,e)},Hs.prototype._handleIdResult=function(e){Ls.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Hs.prototype._handleRetrieveResult=function(e,t){var n=this;Ls.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TableOfAuthorities,!1,n,e,t)})},Hs.prototype.track=function(){return this.context.trackedObjects.add(this),this},Hs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Hs.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Hs.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TableOfAuthorities,!1,n,e,t)},function(e){return n.m__items=e})},Hs);function Hs(){return null!==Ls&&Ls.apply(this,arguments)||this}a.TableOfAuthoritiesCollection=Bs;var Us,Ws="TableOfAuthoritiesCategory",Gs=(Us=OfficeExtension.ClientObject,__extends(Vs,Us),Object.defineProperty(Vs.prototype,"_className",{get:function(){return"TableOfAuthoritiesCategory"},enumerable:!0,configurable:!0}),Object.defineProperty(Vs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Vs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(Vs.prototype,"name",{get:function(){return m("name",this._N,Ws,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Vs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ws,this._isNull),this.__R},enumerable:!0,configurable:!0}),Vs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Vs.prototype._handleResult=function(e){if(Us.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Name)||(this._N=t.Name),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Vs.prototype.load=function(e){return b(this,e)},Vs.prototype.retrieve=function(e){return v(this,e)},Vs.prototype._handleIdResult=function(e){Us.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Vs.prototype._handleRetrieveResult=function(e,t){Us.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Vs.prototype.track=function(){return this.context.trackedObjects.add(this),this},Vs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Vs.prototype.toJSON=function(){return O(this,{name:this._N},{})},Vs.prototype.setMockData=function(e){I(this,e)},Vs.prototype.ensureUnchanged=function(e){d(this,e)},Vs);function Vs(){return null!==Us&&Us.apply(this,arguments)||this}a.TableOfAuthoritiesCategory=Gs;var zs,qs="TableOfAuthoritiesCategoryCollection",Ks=(zs=OfficeExtension.ClientObject,__extends(Js,zs),Object.defineProperty(Js.prototype,"_className",{get:function(){return"TableOfAuthoritiesCategoryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Js.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Js.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Js.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Js.prototype,"items",{get:function(){return m("items",this.m__items,qs,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Js.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,qs,this._isNull),this.__R},enumerable:!0,configurable:!0}),Js.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Js.prototype.getItemAt=function(e){return p(a.TableOfAuthoritiesCategory,this,"GetItemAt",1,[e],!1,!1,null,4)},Js.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Js.prototype._handleResult=function(e){if(zs.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableOfAuthoritiesCategory,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Js.prototype.load=function(e){return b(this,e)},Js.prototype.retrieve=function(e){return v(this,e)},Js.prototype._handleIdResult=function(e){zs.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Js.prototype._handleRetrieveResult=function(e,t){var n=this;zs.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TableOfAuthoritiesCategory,!1,n,e,t)})},Js.prototype.track=function(){return this.context.trackedObjects.add(this),this},Js.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Js.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Js.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TableOfAuthoritiesCategory,!1,n,e,t)},function(e){return n.m__items=e})},Js);function Js(){return null!==zs&&zs.apply(this,arguments)||this}a.TableOfAuthoritiesCategoryCollection=Ks;var Xs,Qs="TableOfContents",Ys=(Xs=OfficeExtension.ClientObject,__extends(Zs,Xs),Object.defineProperty(Zs.prototype,"_className",{get:function(){return"TableOfContents"},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","areBuiltInHeadingStylesUsed","areFieldsUsed","upperHeadingLevel","lowerHeadingLevel","tableId","arePageNumbersRightAligned","arePageNumbersIncluded","tabLeader","areHyperlinksUsedOnWeb","arePageNumbersHiddenOnWeb"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","AreBuiltInHeadingStylesUsed","AreFieldsUsed","UpperHeadingLevel","LowerHeadingLevel","TableId","ArePageNumbersRightAligned","ArePageNumbersIncluded","TabLeader","AreHyperlinksUsedOnWeb","ArePageNumbersHiddenOnWeb"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"_navigationPropertyNames",{get:function(){return["additionalHeadingStyles","range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"additionalHeadingStyles",{get:function(){return this._A||(this._A=e(a.HeadingStyleCollection,this,"AdditionalHeadingStyles",!0,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"areBuiltInHeadingStylesUsed",{get:function(){return m("areBuiltInHeadingStylesUsed",this._Ar,Qs,this._isNull),this._Ar},set:function(e){this._Ar=e,h(this,"AreBuiltInHeadingStylesUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"areFieldsUsed",{get:function(){return m("areFieldsUsed",this._Are,Qs,this._isNull),this._Are},set:function(e){this._Are=e,h(this,"AreFieldsUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"areHyperlinksUsedOnWeb",{get:function(){return m("areHyperlinksUsedOnWeb",this._AreH,Qs,this._isNull),this._AreH},set:function(e){this._AreH=e,h(this,"AreHyperlinksUsedOnWeb",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"arePageNumbersHiddenOnWeb",{get:function(){return m("arePageNumbersHiddenOnWeb",this._AreP,Qs,this._isNull),this._AreP},set:function(e){this._AreP=e,h(this,"ArePageNumbersHiddenOnWeb",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"arePageNumbersIncluded",{get:function(){return m("arePageNumbersIncluded",this._ArePa,Qs,this._isNull),this._ArePa},set:function(e){this._ArePa=e,h(this,"ArePageNumbersIncluded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"arePageNumbersRightAligned",{get:function(){return m("arePageNumbersRightAligned",this._ArePag,Qs,this._isNull),this._ArePag},set:function(e){this._ArePag=e,h(this,"ArePageNumbersRightAligned",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"lowerHeadingLevel",{get:function(){return m("lowerHeadingLevel",this._L,Qs,this._isNull),this._L},set:function(e){this._L=e,h(this,"LowerHeadingLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"tabLeader",{get:function(){return m("tabLeader",this._T,Qs,this._isNull),this._T},set:function(e){this._T=e,h(this,"TabLeader",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"tableId",{get:function(){return m("tableId",this._Ta,Qs,this._isNull),this._Ta},set:function(e){this._Ta=e,h(this,"TableId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"upperHeadingLevel",{get:function(){return m("upperHeadingLevel",this._U,Qs,this._isNull),this._U},set:function(e){this._U=e,h(this,"UpperHeadingLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Zs.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Qs,this._isNull),this.__R},enumerable:!0,configurable:!0}),Zs.prototype.set=function(e,t){this._recursivelySet(e,t,["areBuiltInHeadingStylesUsed","areFieldsUsed","upperHeadingLevel","lowerHeadingLevel","tableId","arePageNumbersRightAligned","arePageNumbersIncluded","tabLeader","areHyperlinksUsedOnWeb","arePageNumbersHiddenOnWeb"],[],["additionalHeadingStyles","range"])},Zs.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Zs.prototype.update=function(){i(this,"Update",0,[],0,0)},Zs.prototype.updatePageNumbers=function(){i(this,"UpdatePageNumbers",0,[],0,0)},Zs.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Zs.prototype._handleResult=function(e){if(Xs.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AreBuiltInHeadingStylesUsed)||(this._Ar=t.AreBuiltInHeadingStylesUsed),y(t.AreFieldsUsed)||(this._Are=t.AreFieldsUsed),y(t.AreHyperlinksUsedOnWeb)||(this._AreH=t.AreHyperlinksUsedOnWeb),y(t.ArePageNumbersHiddenOnWeb)||(this._AreP=t.ArePageNumbersHiddenOnWeb),y(t.ArePageNumbersIncluded)||(this._ArePa=t.ArePageNumbersIncluded),y(t.ArePageNumbersRightAligned)||(this._ArePag=t.ArePageNumbersRightAligned),y(t.LowerHeadingLevel)||(this._L=t.LowerHeadingLevel),y(t.TabLeader)||(this._T=t.TabLeader),y(t.TableId)||(this._Ta=t.TableId),y(t.UpperHeadingLevel)||(this._U=t.UpperHeadingLevel),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["additionalHeadingStyles","AdditionalHeadingStyles","range","Range"])}},Zs.prototype.load=function(e){return b(this,e)},Zs.prototype.retrieve=function(e){return v(this,e)},Zs.prototype._handleIdResult=function(e){Xs.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Zs.prototype._handleRetrieveResult=function(e,t){Xs.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Zs.prototype.track=function(){return this.context.trackedObjects.add(this),this},Zs.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Zs.prototype.toJSON=function(){return O(this,{areBuiltInHeadingStylesUsed:this._Ar,areFieldsUsed:this._Are,areHyperlinksUsedOnWeb:this._AreH,arePageNumbersHiddenOnWeb:this._AreP,arePageNumbersIncluded:this._ArePa,arePageNumbersRightAligned:this._ArePag,lowerHeadingLevel:this._L,tabLeader:this._T,tableId:this._Ta,upperHeadingLevel:this._U},{})},Zs.prototype.setMockData=function(e){I(this,e)},Zs.prototype.ensureUnchanged=function(e){d(this,e)},Zs);function Zs(){return null!==Xs&&Xs.apply(this,arguments)||this}a.TableOfContents=Ys;var $s,ec="TableOfContentsCollection",tc=($s=OfficeExtension.ClientObject,__extends(nc,$s),Object.defineProperty(nc.prototype,"_className",{get:function(){return"TableOfContentsCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(nc.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(nc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(nc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(nc.prototype,"items",{get:function(){return m("items",this.m__items,ec,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(nc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ec,this._isNull),this.__R},enumerable:!0,configurable:!0}),nc.prototype.add=function(e,t){return p(a.TableOfContents,this,"Add",0,[e,t],!1,!0,null,0)},nc.prototype.markTocEntry=function(e,t){return p(a.Field,this,"MarkTocEntry",0,[e,t],!1,!1,null,0)},nc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},nc.prototype._handleResult=function(e){if($s.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableOfContents,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},nc.prototype.load=function(e){return b(this,e)},nc.prototype.retrieve=function(e){return v(this,e)},nc.prototype._handleIdResult=function(e){$s.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},nc.prototype._handleRetrieveResult=function(e,t){var n=this;$s.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TableOfContents,!1,n,e,t)})},nc.prototype.track=function(){return this.context.trackedObjects.add(this),this},nc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},nc.prototype.toJSON=function(){return O(this,{},{},this.m__items)},nc.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TableOfContents,!1,n,e,t)},function(e){return n.m__items=e})},nc);function nc(){return null!==$s&&$s.apply(this,arguments)||this}a.TableOfContentsCollection=tc;var rc,ic="TableOfFigures",oc=(rc=OfficeExtension.ClientObject,__extends(ac,rc),Object.defineProperty(ac.prototype,"_className",{get:function(){return"TableOfFigures"},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","captionLabel","isLabelIncluded","arePageNumbersRightAligned","areBuiltInHeadingStylesUsed","lowerHeadingLevel","upperHeadingLevel","arePageNumbersIncluded","areFieldsUsed","tableId","tabLeader","areHyperlinksUsedOnWeb","arePageNumbersHiddenOnWeb"]},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","CaptionLabel","IsLabelIncluded","ArePageNumbersRightAligned","AreBuiltInHeadingStylesUsed","LowerHeadingLevel","UpperHeadingLevel","ArePageNumbersIncluded","AreFieldsUsed","TableId","TabLeader","AreHyperlinksUsedOnWeb","ArePageNumbersHiddenOnWeb"]},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"_navigationPropertyNames",{get:function(){return["range","additionalHeadingStyles"]},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"additionalHeadingStyles",{get:function(){return this._A||(this._A=e(a.HeadingStyleCollection,this,"AdditionalHeadingStyles",!0,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"areBuiltInHeadingStylesUsed",{get:function(){return m("areBuiltInHeadingStylesUsed",this._Ar,ic,this._isNull),this._Ar},set:function(e){this._Ar=e,h(this,"AreBuiltInHeadingStylesUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"areFieldsUsed",{get:function(){return m("areFieldsUsed",this._Are,ic,this._isNull),this._Are},set:function(e){this._Are=e,h(this,"AreFieldsUsed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"areHyperlinksUsedOnWeb",{get:function(){return m("areHyperlinksUsedOnWeb",this._AreH,ic,this._isNull),this._AreH},set:function(e){this._AreH=e,h(this,"AreHyperlinksUsedOnWeb",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"arePageNumbersHiddenOnWeb",{get:function(){return m("arePageNumbersHiddenOnWeb",this._AreP,ic,this._isNull),this._AreP},set:function(e){this._AreP=e,h(this,"ArePageNumbersHiddenOnWeb",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"arePageNumbersIncluded",{get:function(){return m("arePageNumbersIncluded",this._ArePa,ic,this._isNull),this._ArePa},set:function(e){this._ArePa=e,h(this,"ArePageNumbersIncluded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"arePageNumbersRightAligned",{get:function(){return m("arePageNumbersRightAligned",this._ArePag,ic,this._isNull),this._ArePag},set:function(e){this._ArePag=e,h(this,"ArePageNumbersRightAligned",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"captionLabel",{get:function(){return m("captionLabel",this._C,ic,this._isNull),this._C},set:function(e){this._C=e,h(this,"CaptionLabel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"isLabelIncluded",{get:function(){return m("isLabelIncluded",this._I,ic,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsLabelIncluded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"lowerHeadingLevel",{get:function(){return m("lowerHeadingLevel",this._L,ic,this._isNull),this._L},set:function(e){this._L=e,h(this,"LowerHeadingLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"tabLeader",{get:function(){return m("tabLeader",this._T,ic,this._isNull),this._T},set:function(e){this._T=e,h(this,"TabLeader",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"tableId",{get:function(){return m("tableId",this._Ta,ic,this._isNull),this._Ta},set:function(e){this._Ta=e,h(this,"TableId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"upperHeadingLevel",{get:function(){return m("upperHeadingLevel",this._U,ic,this._isNull),this._U},set:function(e){this._U=e,h(this,"UpperHeadingLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ac.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ic,this._isNull),this.__R},enumerable:!0,configurable:!0}),ac.prototype.set=function(e,t){this._recursivelySet(e,t,["captionLabel","isLabelIncluded","arePageNumbersRightAligned","areBuiltInHeadingStylesUsed","lowerHeadingLevel","upperHeadingLevel","arePageNumbersIncluded","areFieldsUsed","tableId","tabLeader","areHyperlinksUsedOnWeb","arePageNumbersHiddenOnWeb"],[],["additionalHeadingStyles","range"])},ac.prototype.delete=function(){i(this,"Delete",0,[],0,0)},ac.prototype.update=function(){i(this,"Update",0,[],0,0)},ac.prototype.updatePageNumbers=function(){i(this,"UpdatePageNumbers",0,[],0,0)},ac.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ac.prototype._handleResult=function(e){if(rc.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AreBuiltInHeadingStylesUsed)||(this._Ar=t.AreBuiltInHeadingStylesUsed),y(t.AreFieldsUsed)||(this._Are=t.AreFieldsUsed),y(t.AreHyperlinksUsedOnWeb)||(this._AreH=t.AreHyperlinksUsedOnWeb),y(t.ArePageNumbersHiddenOnWeb)||(this._AreP=t.ArePageNumbersHiddenOnWeb),y(t.ArePageNumbersIncluded)||(this._ArePa=t.ArePageNumbersIncluded),y(t.ArePageNumbersRightAligned)||(this._ArePag=t.ArePageNumbersRightAligned),y(t.CaptionLabel)||(this._C=t.CaptionLabel),y(t.IsLabelIncluded)||(this._I=t.IsLabelIncluded),y(t.LowerHeadingLevel)||(this._L=t.LowerHeadingLevel),y(t.TabLeader)||(this._T=t.TabLeader),y(t.TableId)||(this._Ta=t.TableId),y(t.UpperHeadingLevel)||(this._U=t.UpperHeadingLevel),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["additionalHeadingStyles","AdditionalHeadingStyles","range","Range"])}},ac.prototype.load=function(e){return b(this,e)},ac.prototype.retrieve=function(e){return v(this,e)},ac.prototype._handleIdResult=function(e){rc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ac.prototype._handleRetrieveResult=function(e,t){rc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ac.prototype.track=function(){return this.context.trackedObjects.add(this),this},ac.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ac.prototype.toJSON=function(){return O(this,{areBuiltInHeadingStylesUsed:this._Ar,areFieldsUsed:this._Are,areHyperlinksUsedOnWeb:this._AreH,arePageNumbersHiddenOnWeb:this._AreP,arePageNumbersIncluded:this._ArePa,arePageNumbersRightAligned:this._ArePag,captionLabel:this._C,isLabelIncluded:this._I,lowerHeadingLevel:this._L,tabLeader:this._T,tableId:this._Ta,upperHeadingLevel:this._U},{})},ac.prototype.setMockData=function(e){I(this,e)},ac.prototype.ensureUnchanged=function(e){d(this,e)},ac);function ac(){return null!==rc&&rc.apply(this,arguments)||this}a.TableOfFigures=oc;var sc,cc="TableOfFiguresCollection",lc=(sc=OfficeExtension.ClientObject,__extends(uc,sc),Object.defineProperty(uc.prototype,"_className",{get:function(){return"TableOfFiguresCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(uc.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(uc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(uc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(uc.prototype,"items",{get:function(){return m("items",this.m__items,cc,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(uc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,cc,this._isNull),this.__R},enumerable:!0,configurable:!0}),uc.prototype.add=function(e,t){return p(a.TableOfFigures,this,"Add",0,[e,t],!1,!0,null,0)},uc.prototype.markTocEntry=function(e,t){return p(a.Field,this,"MarkTocEntry",0,[e,t],!1,!1,null,0)},uc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},uc.prototype._handleResult=function(e){if(sc.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableOfFigures,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},uc.prototype.load=function(e){return b(this,e)},uc.prototype.retrieve=function(e){return v(this,e)},uc.prototype._handleIdResult=function(e){sc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},uc.prototype._handleRetrieveResult=function(e,t){var n=this;sc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TableOfFigures,!1,n,e,t)})},uc.prototype.track=function(){return this.context.trackedObjects.add(this),this},uc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},uc.prototype.toJSON=function(){return O(this,{},{},this.m__items)},uc.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TableOfFigures,!1,n,e,t)},function(e){return n.m__items=e})},uc);function uc(){return null!==sc&&sc.apply(this,arguments)||this}a.TableOfFiguresCollection=lc;var pc,fc="TableRow",dc=(pc=OfficeExtension.ClientObject,__extends(hc,pc),Object.defineProperty(hc.prototype,"_className",{get:function(){return"TableRow"},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","cellCount","rowIndex","values","shadingColor","horizontalAlignment","verticalAlignment","isHeader","preferredHeight"]},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","CellCount","RowIndex","Values","ShadingColor","HorizontalAlignment","VerticalAlignment","IsHeader","PreferredHeight"]},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!0,!0,!0,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"_navigationPropertyNames",{get:function(){return["cells","parentTable","font","footnotes","endnotes","fields","range","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"cells",{get:function(){return this._Ce||(this._Ce=e(a.TableCellCollection,this,"Cells",!0,4)),this._Ce},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"endnotes",{get:function(){return _("TableRow.endnotes",u,"1.5",l),this._E||(this._E=e(a.NoteItemCollection,this,"Endnotes",!0,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"fields",{get:function(){return _("TableRow.fields",u,"1.4",l),this._F||(this._F=e(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"font",{get:function(){return this._Fo||(this._Fo=e(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"footnotes",{get:function(){return _("TableRow.footnotes",u,"1.5",l),this._Foo||(this._Foo=e(a.NoteItemCollection,this,"Footnotes",!0,4)),this._Foo},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"parentTable",{get:function(){return this._P||(this._P=e(a.Table,this,"ParentTable",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"range",{get:function(){return _("TableRow.range","WordApiDesktop","1.4",l),this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"shading",{get:function(){return _("TableRow.shading","WordApiDesktop","1.4",l),this._S||(this._S=e(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"cellCount",{get:function(){return m("cellCount",this._C,fc,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"horizontalAlignment",{get:function(){return m("horizontalAlignment",this._H,fc,this._isNull),this._H},set:function(e){this._H=e,h(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"isHeader",{get:function(){return m("isHeader",this._I,fc,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"preferredHeight",{get:function(){return m("preferredHeight",this._Pr,fc,this._isNull),this._Pr},set:function(e){this._Pr=e,h(this,"PreferredHeight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"rowIndex",{get:function(){return m("rowIndex",this._Ro,fc,this._isNull),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"shadingColor",{get:function(){return m("shadingColor",this._Sh,fc,this._isNull),this._Sh},set:function(e){this._Sh=e,h(this,"ShadingColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"values",{get:function(){return m("values",this._V,fc,this._isNull),this._V},set:function(e){this._V=e,h(this,"Values",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"verticalAlignment",{get:function(){return m("verticalAlignment",this._Ve,fc,this._isNull),this._Ve},set:function(e){this._Ve=e,h(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"_Id",{get:function(){return m("_Id",this.__I,fc,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(hc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,fc,this._isNull),this.__R},enumerable:!0,configurable:!0}),hc.prototype.set=function(e,t){this._recursivelySet(e,t,["values","shadingColor","horizontalAlignment","verticalAlignment","preferredHeight"],["font"],["cells","endnotes","fields","footnotes","parentTable","range","shading"])},hc.prototype.update=function(e){this._recursivelyUpdate(e)},hc.prototype.clear=function(){i(this,"Clear",0,[],0,0)},hc.prototype.convertToText=function(e){return _("TableRow.convertToText","WordApiDesktop","1.4",l),p(a.Range,this,"ConvertToText",0,[e],!1,!1,null,0)},hc.prototype.delete=function(){i(this,"Delete",0,[],0,0)},hc.prototype.getBorder=function(e){return p(a.TableBorder,this,"GetBorder",1,[e],!1,!1,null,4)},hc.prototype.getCellPadding=function(e){return i(this,"GetCellPadding",1,[e],4,0)},hc.prototype.getNext=function(){return p(a.TableRow,this,"GetNext",1,[],!1,!1,null,4)},hc.prototype.getNextOrNullObject=function(){return p(a.TableRow,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},hc.prototype.insertContentControl=function(){return _("TableRow.insertContentControl","WordApiDesktop","1.1",l),p(a.ContentControl,this,"InsertContentControl",0,[],!1,!1,null,0)},hc.prototype.insertRows=function(e,t,n){return p(a.TableRowCollection,this,"InsertRows",1,[e,t,n],!0,!1,null,4)},hc.prototype.merge=function(){return _("TableRow.merge",u,"1.4",l),p(a.TableCell,this,"Merge",0,[],!1,!1,null,0)},hc.prototype.search=function(e,t){var n=ce.TableRow_Search(this,e,t),r=n.handled,i=n.result;return r?i:p(a.RangeCollection,this,"Search",1,[e,t],!0,!1,null,4)},hc.prototype.select=function(e){i(this,"Select",1,[e],4,0)},hc.prototype.setCellPadding=function(e,t){i(this,"SetCellPadding",0,[e,t],0,0)},hc.prototype.setHeight=function(e,t){_("TableRow.setHeight","WordApiDesktop","1.4",l),i(this,"SetHeight",0,[e,t],0,0)},hc.prototype.setLeftIndent=function(e,t){_("TableRow.setLeftIndent","WordApiDesktop","1.4",l),i(this,"SetLeftIndent",0,[e,t],0,0)},hc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},hc.prototype._Search2=function(e,t){return p(a.RangeCollection,this,"_Search2",1,[e,t],!0,!1,null,4)},hc.prototype._handleResult=function(e){if(pc.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.CellCount)||(this._C=t.CellCount),y(t.HorizontalAlignment)||(this._H=t.HorizontalAlignment),y(t.IsHeader)||(this._I=t.IsHeader),y(t.PreferredHeight)||(this._Pr=t.PreferredHeight),y(t.RowIndex)||(this._Ro=t.RowIndex),y(t.ShadingColor)||(this._Sh=t.ShadingColor),y(t.Values)||(this._V=t.Values),y(t.VerticalAlignment)||(this._Ve=t.VerticalAlignment),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["cells","Cells","endnotes","Endnotes","fields","Fields","font","Font","footnotes","Footnotes","parentTable","ParentTable","range","Range","shading","Shading"])}},hc.prototype.load=function(e){return b(this,e)},hc.prototype.retrieve=function(e){return v(this,e)},hc.prototype._handleIdResult=function(e){pc.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},hc.prototype._handleRetrieveResult=function(e,t){pc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},hc.prototype.track=function(){return this.context.trackedObjects.add(this),this},hc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},hc.prototype.toJSON=function(){return O(this,{cellCount:this._C,horizontalAlignment:this._H,isHeader:this._I,preferredHeight:this._Pr,rowIndex:this._Ro,shadingColor:this._Sh,values:this._V,verticalAlignment:this._Ve},{cells:this._Ce,fields:this._F,font:this._Fo})},hc.prototype.setMockData=function(e){I(this,e)},hc.prototype.ensureUnchanged=function(e){d(this,e)},hc);function hc(){return null!==pc&&pc.apply(this,arguments)||this}a.TableRow=dc,(ce=a._CC||(a._CC={})).TableRow_Search=function(e,t,n){var r;if(s()){var i=c(n);r=e._Search2(t,i)}else n=o(e.context,n),r=p(a.RangeCollection,e,"Search",1,[t,n],!0,!1,null,4);return{handled:!0,result:r}};var gc,yc="TableRowCollection",mc=(gc=OfficeExtension.ClientObject,__extends(_c,gc),Object.defineProperty(_c.prototype,"_className",{get:function(){return"TableRowCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(_c.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(_c.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(_c.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(_c.prototype,"items",{get:function(){return m("items",this.m__items,yc,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(_c.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,yc,this._isNull),this.__R},enumerable:!0,configurable:!0}),_c.prototype.convertToText=function(e){return _("TableRowCollection.convertToText","WordApiDesktop","1.4",l),p(a.Range,this,"ConvertToText",0,[e],!1,!1,null,0)},_c.prototype.delete=function(){_("TableRowCollection.delete","WordApiDesktop","1.4",l),i(this,"Delete",0,[],0,0)},_c.prototype.distributeHeight=function(){_("TableRowCollection.distributeHeight","WordApiDesktop","1.4",l),i(this,"DistributeHeight",0,[],0,0)},_c.prototype.getFirst=function(){return p(a.TableRow,this,"GetFirst",1,[],!1,!1,null,4)},_c.prototype.getFirstOrNullObject=function(){return p(a.TableRow,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},_c.prototype.select=function(){_("TableRowCollection.select","WordApiDesktop","1.4",l),i(this,"Select",0,[],0,0)},_c.prototype.setHeight=function(e,t){_("TableRowCollection.setHeight","WordApiDesktop","1.4",l),i(this,"SetHeight",0,[e,t],0,0)},_c.prototype.setLeftIndent=function(e,t){_("TableRowCollection.setLeftIndent","WordApiDesktop","1.4",l),i(this,"SetLeftIndent",0,[e,t],0,0)},_c.prototype._GetItem=function(e){return t(a.TableRow,this,[e])},_c.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},_c.prototype._handleResult=function(e){if(gc.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableRow,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},_c.prototype.load=function(e){return b(this,e)},_c.prototype.retrieve=function(e){return v(this,e)},_c.prototype._handleIdResult=function(e){gc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},_c.prototype._handleRetrieveResult=function(e,t){var n=this;gc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TableRow,!0,n,e,t)})},_c.prototype.track=function(){return this.context.trackedObjects.add(this),this},_c.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},_c.prototype.toJSON=function(){return O(this,{},{},this.m__items)},_c.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TableRow,!0,n,e,t)},function(e){return n.m__items=e})},_c);function _c(){return null!==gc&&gc.apply(this,arguments)||this}a.TableRowCollection=mc;var bc,vc="TableCell",Oc=(bc=OfficeExtension.ClientObject,__extends(Pc,bc),Object.defineProperty(Pc.prototype,"_className",{get:function(){return"TableCell"},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"_scalarPropertyNames",{get:function(){return["_Id","_ReferenceId","rowIndex","cellIndex","value","shadingColor","horizontalAlignment","verticalAlignment","columnWidth","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_Id","_ReferenceId","RowIndex","CellIndex","Value","ShadingColor","HorizontalAlignment","VerticalAlignment","ColumnWidth","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"_navigationPropertyNames",{get:function(){return["parentTable","parentRow","body","column","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"body",{get:function(){return this._B||(this._B=e(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"column",{get:function(){return _("TableCell.column","WordApiDesktop","1.4",l),this._Co||(this._Co=e(a.TableColumn,this,"Column",!1,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"parentRow",{get:function(){return this._P||(this._P=e(a.TableRow,this,"ParentRow",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"parentTable",{get:function(){return this._Pa||(this._Pa=e(a.Table,this,"ParentTable",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"shading",{get:function(){return _("TableCell.shading","WordApiDesktop","1.4",l),this._S||(this._S=e(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"cellIndex",{get:function(){return m("cellIndex",this._C,vc,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"columnWidth",{get:function(){return m("columnWidth",this._Col,vc,this._isNull),this._Col},set:function(e){this._Col=e,h(this,"ColumnWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"horizontalAlignment",{get:function(){return m("horizontalAlignment",this._H,vc,this._isNull),this._H},set:function(e){this._H=e,h(this,"HorizontalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"rowIndex",{get:function(){return m("rowIndex",this._R,vc,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"shadingColor",{get:function(){return m("shadingColor",this._Sh,vc,this._isNull),this._Sh},set:function(e){this._Sh=e,h(this,"ShadingColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"value",{get:function(){return m("value",this._V,vc,this._isNull),this._V},set:function(e){this._V=e,h(this,"Value",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"verticalAlignment",{get:function(){return m("verticalAlignment",this._Ve,vc,this._isNull),this._Ve},set:function(e){this._Ve=e,h(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"width",{get:function(){return m("width",this._W,vc,this._isNull),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"_Id",{get:function(){return m("_Id",this.__I,vc,this._isNull),this.__I},enumerable:!0,configurable:!0}),Object.defineProperty(Pc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,vc,this._isNull),this.__R},enumerable:!0,configurable:!0}),Pc.prototype.set=function(e,t){this._recursivelySet(e,t,["value","shadingColor","horizontalAlignment","verticalAlignment","columnWidth"],["body"],["column","parentRow","parentTable","shading"])},Pc.prototype.update=function(e){this._recursivelyUpdate(e)},Pc.prototype.autoSum=function(){_("TableCell.autoSum","WordApiDesktop","1.4",l),i(this,"AutoSum",0,[],0,0)},Pc.prototype.delete=function(e){_("TableCell.delete","WordApiDesktop","1.4",l),i(this,"Delete",0,[e],0,0)},Pc.prototype.deleteColumn=function(){i(this,"DeleteColumn",0,[],0,0)},Pc.prototype.deleteRow=function(){i(this,"DeleteRow",0,[],0,0)},Pc.prototype.formula=function(e){_("TableCell.formula","WordApiDesktop","1.4",l),i(this,"Formula",0,[e],0,0)},Pc.prototype.getBorder=function(e){return p(a.TableBorder,this,"GetBorder",1,[e],!1,!1,null,4)},Pc.prototype.getCellPadding=function(e){return i(this,"GetCellPadding",1,[e],4,0)},Pc.prototype.getNext=function(){return p(a.TableCell,this,"GetNext",1,[],!1,!1,null,4)},Pc.prototype.getNextOrNullObject=function(){return p(a.TableCell,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Pc.prototype.insertColumns=function(e,t,n){i(this,"InsertColumns",0,[e,t,n],0,0)},Pc.prototype.insertRows=function(e,t,n){return p(a.TableRowCollection,this,"InsertRows",0,[e,t,n],!0,!1,null,0)},Pc.prototype.merge=function(e){_("TableCell.merge","WordApiDesktop","1.4",l),i(this,"Merge",0,[e],0,0)},Pc.prototype.select=function(){_("TableCell.select","WordApiDesktop","1.4",l),i(this,"Select",0,[],0,0)},Pc.prototype.setCellPadding=function(e,t){i(this,"SetCellPadding",0,[e,t],0,0)},Pc.prototype.split=function(e,t){_("TableCell.split",u,"1.4",l),i(this,"Split",0,[e,t],0,0)},Pc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Pc.prototype._handleResult=function(e){if(bc.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.CellIndex)||(this._C=t.CellIndex),y(t.ColumnWidth)||(this._Col=t.ColumnWidth),y(t.HorizontalAlignment)||(this._H=t.HorizontalAlignment),y(t.RowIndex)||(this._R=t.RowIndex),y(t.ShadingColor)||(this._Sh=t.ShadingColor),y(t.Value)||(this._V=t.Value),y(t.VerticalAlignment)||(this._Ve=t.VerticalAlignment),y(t.Width)||(this._W=t.Width),y(t._Id)||(this.__I=t._Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["body","Body","column","Column","parentRow","ParentRow","parentTable","ParentTable","shading","Shading"])}},Pc.prototype.load=function(e){return b(this,e)},Pc.prototype.retrieve=function(e){return v(this,e)},Pc.prototype._handleIdResult=function(e){bc.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e._Id)||(this.__I=e._Id))},Pc.prototype._handleRetrieveResult=function(e,t){bc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Pc.prototype.track=function(){return this.context.trackedObjects.add(this),this},Pc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Pc.prototype.toJSON=function(){return O(this,{cellIndex:this._C,columnWidth:this._Col,horizontalAlignment:this._H,rowIndex:this._R,shadingColor:this._Sh,value:this._V,verticalAlignment:this._Ve,width:this._W},{body:this._B})},Pc.prototype.setMockData=function(e){I(this,e)},Pc.prototype.ensureUnchanged=function(e){d(this,e)},Pc);function Pc(){return null!==bc&&bc.apply(this,arguments)||this}a.TableCell=Oc;var Cc,Rc="TableCellCollection",Sc=(Cc=OfficeExtension.ClientObject,__extends(Ic,Cc),Object.defineProperty(Ic.prototype,"_className",{get:function(){return"TableCellCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Ic.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ic.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ic.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ic.prototype,"items",{get:function(){return m("items",this.m__items,Rc,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Ic.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Rc,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ic.prototype.autoFit=function(){_("TableCellCollection.autoFit","WordApiDesktop","1.4",l),i(this,"AutoFit",0,[],0,0)},Ic.prototype.delete=function(e){_("TableCellCollection.delete","WordApiDesktop","1.4",l),i(this,"Delete",0,[e],0,0)},Ic.prototype.distributeHeight=function(){_("TableCellCollection.distributeHeight","WordApiDesktop","1.4",l),i(this,"DistributeHeight",0,[],0,0)},Ic.prototype.distributeWidth=function(){_("TableCellCollection.distributeWidth","WordApiDesktop","1.4",l),i(this,"DistributeWidth",0,[],0,0)},Ic.prototype.getFirst=function(){return p(a.TableCell,this,"GetFirst",1,[],!1,!1,null,4)},Ic.prototype.getFirstOrNullObject=function(){return p(a.TableCell,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},Ic.prototype.merge=function(){_("TableCellCollection.merge","WordApiDesktop","1.4",l),i(this,"Merge",0,[],0,0)},Ic.prototype.setHeight=function(e,t){_("TableCellCollection.setHeight","WordApiDesktop","1.4",l),i(this,"SetHeight",0,[e,t],0,0)},Ic.prototype.setWidth=function(e,t){_("TableCellCollection.setWidth","WordApiDesktop","1.4",l),i(this,"SetWidth",0,[e,t],0,0)},Ic.prototype.split=function(e){_("TableCellCollection.split","WordApiDesktop","1.4",l),i(this,"Split",0,[e],0,0)},Ic.prototype._GetItem=function(e){return t(a.TableCell,this,[e])},Ic.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ic.prototype._handleResult=function(e){if(Cc.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TableCell,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Ic.prototype.load=function(e){return b(this,e)},Ic.prototype.retrieve=function(e){return v(this,e)},Ic.prototype._handleIdResult=function(e){Cc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ic.prototype._handleRetrieveResult=function(e,t){var n=this;Cc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TableCell,!0,n,e,t)})},Ic.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ic.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ic.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Ic.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TableCell,!0,n,e,t)},function(e){return n.m__items=e})},Ic);function Ic(){return null!==Cc&&Cc.apply(this,arguments)||this}a.TableCellCollection=Sc;var Ac,Tc="TableBorder",Nc=(Ac=OfficeExtension.ClientObject,__extends(Dc,Ac),Object.defineProperty(Dc.prototype,"_className",{get:function(){return"TableBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(Dc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","color","type","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Color","Type","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dc.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Dc.prototype,"color",{get:function(){return m("color",this._C,Tc,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Dc.prototype,"type",{get:function(){return m("type",this._T,Tc,this._isNull),this._T},set:function(e){this._T=e,h(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Dc.prototype,"width",{get:function(){return m("width",this._W,Tc,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Dc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Tc,this._isNull),this.__R},enumerable:!0,configurable:!0}),Dc.prototype.set=function(e,t){this._recursivelySet(e,t,["color","type","width"],[],[])},Dc.prototype.update=function(e){this._recursivelyUpdate(e)},Dc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Dc.prototype._handleResult=function(e){if(Ac.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Color)||(this._C=t.Color),y(t.Type)||(this._T=t.Type),y(t.Width)||(this._W=t.Width),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Dc.prototype.load=function(e){return b(this,e)},Dc.prototype.retrieve=function(e){return v(this,e)},Dc.prototype._handleIdResult=function(e){Ac.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Dc.prototype._handleRetrieveResult=function(e,t){Ac.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Dc.prototype.track=function(){return this.context.trackedObjects.add(this),this},Dc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Dc.prototype.toJSON=function(){return O(this,{color:this._C,type:this._T,width:this._W},{})},Dc.prototype.setMockData=function(e){I(this,e)},Dc.prototype.ensureUnchanged=function(e){d(this,e)},Dc);function Dc(){return null!==Ac&&Ac.apply(this,arguments)||this}a.TableBorder=Nc;var xc,Ec="Template",kc=(xc=OfficeExtension.ClientObject,__extends(jc,xc),Object.defineProperty(jc.prototype,"_className",{get:function(){return"Template"},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","farEastLineBreakLanguage","farEastLineBreakLevel","fullName","justificationMode","kerningByAlgorithm","languageId","languageIdFarEast","noLineBreakAfter","noLineBreakBefore","hasNoProofing","path","saved","type","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","FarEastLineBreakLanguage","FarEastLineBreakLevel","FullName","JustificationMode","KerningByAlgorithm","LanguageId","LanguageIdFarEast","NoLineBreakAfter","NoLineBreakBefore","HasNoProofing","Path","Saved","Type","Name"]},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"_navigationPropertyNames",{get:function(){return["buildingBlockEntries","buildingBlockTypes","listTemplates"]},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"buildingBlockEntries",{get:function(){return this._B||(this._B=e(a.BuildingBlockEntryCollection,this,"BuildingBlockEntries",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"buildingBlockTypes",{get:function(){return this._Bu||(this._Bu=e(a.BuildingBlockTypeItemCollection,this,"BuildingBlockTypes",!1,4)),this._Bu},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"listTemplates",{get:function(){return _("Template.listTemplates","WordApiDesktop","1.4",l),this._Li||(this._Li=e(a.ListTemplateCollection,this,"ListTemplates",!0,4)),this._Li},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"farEastLineBreakLanguage",{get:function(){return m("farEastLineBreakLanguage",this._F,Ec,this._isNull),this._F},set:function(e){this._F=e,h(this,"FarEastLineBreakLanguage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"farEastLineBreakLevel",{get:function(){return m("farEastLineBreakLevel",this._Fa,Ec,this._isNull),this._Fa},set:function(e){this._Fa=e,h(this,"FarEastLineBreakLevel",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"fullName",{get:function(){return m("fullName",this._Fu,Ec,this._isNull),this._Fu},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"hasNoProofing",{get:function(){return m("hasNoProofing",this._H,Ec,this._isNull),this._H},set:function(e){this._H=e,h(this,"HasNoProofing",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"justificationMode",{get:function(){return m("justificationMode",this._J,Ec,this._isNull),this._J},set:function(e){this._J=e,h(this,"JustificationMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"kerningByAlgorithm",{get:function(){return m("kerningByAlgorithm",this._K,Ec,this._isNull),this._K},set:function(e){this._K=e,h(this,"KerningByAlgorithm",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"languageId",{get:function(){return m("languageId",this._L,Ec,this._isNull),this._L},set:function(e){this._L=e,h(this,"LanguageId",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"languageIdFarEast",{get:function(){return m("languageIdFarEast",this._La,Ec,this._isNull),this._La},set:function(e){this._La=e,h(this,"LanguageIdFarEast",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"name",{get:function(){return m("name",this._N,Ec,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"noLineBreakAfter",{get:function(){return m("noLineBreakAfter",this._No,Ec,this._isNull),this._No},set:function(e){this._No=e,h(this,"NoLineBreakAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"noLineBreakBefore",{get:function(){return m("noLineBreakBefore",this._NoL,Ec,this._isNull),this._NoL},set:function(e){this._NoL=e,h(this,"NoLineBreakBefore",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"path",{get:function(){return m("path",this._P,Ec,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"saved",{get:function(){return m("saved",this._S,Ec,this._isNull),this._S},set:function(e){this._S=e,h(this,"Saved",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"type",{get:function(){return m("type",this._T,Ec,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(jc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ec,this._isNull),this.__R},enumerable:!0,configurable:!0}),jc.prototype.set=function(e,t){this._recursivelySet(e,t,["farEastLineBreakLanguage","farEastLineBreakLevel","justificationMode","kerningByAlgorithm","languageId","languageIdFarEast","noLineBreakAfter","noLineBreakBefore","hasNoProofing","saved"],[],["buildingBlockEntries","buildingBlockTypes","listTemplates"])},jc.prototype.update=function(e){this._recursivelyUpdate(e)},jc.prototype.save=function(){i(this,"Save",0,[],0,0)},jc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},jc.prototype._handleResult=function(e){if(xc.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.FarEastLineBreakLanguage)||(this._F=t.FarEastLineBreakLanguage),y(t.FarEastLineBreakLevel)||(this._Fa=t.FarEastLineBreakLevel),y(t.FullName)||(this._Fu=t.FullName),y(t.HasNoProofing)||(this._H=t.HasNoProofing),y(t.JustificationMode)||(this._J=t.JustificationMode),y(t.KerningByAlgorithm)||(this._K=t.KerningByAlgorithm),y(t.LanguageId)||(this._L=t.LanguageId),y(t.LanguageIdFarEast)||(this._La=t.LanguageIdFarEast),y(t.Name)||(this._N=t.Name),y(t.NoLineBreakAfter)||(this._No=t.NoLineBreakAfter),y(t.NoLineBreakBefore)||(this._NoL=t.NoLineBreakBefore),y(t.Path)||(this._P=t.Path),y(t.Saved)||(this._S=t.Saved),y(t.Type)||(this._T=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["buildingBlockEntries","BuildingBlockEntries","buildingBlockTypes","BuildingBlockTypes","listTemplates","ListTemplates"])}},jc.prototype.load=function(e){return b(this,e)},jc.prototype.retrieve=function(e){return v(this,e)},jc.prototype._handleIdResult=function(e){xc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},jc.prototype._handleRetrieveResult=function(e,t){xc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},jc.prototype.track=function(){return this.context.trackedObjects.add(this),this},jc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},jc.prototype.toJSON=function(){return O(this,{farEastLineBreakLanguage:this._F,farEastLineBreakLevel:this._Fa,fullName:this._Fu,hasNoProofing:this._H,justificationMode:this._J,kerningByAlgorithm:this._K,languageId:this._L,languageIdFarEast:this._La,name:this._N,noLineBreakAfter:this._No,noLineBreakBefore:this._NoL,path:this._P,saved:this._S,type:this._T},{})},jc.prototype.setMockData=function(e){I(this,e)},jc.prototype.ensureUnchanged=function(e){d(this,e)},jc);function jc(){return null!==xc&&xc.apply(this,arguments)||this}a.Template=kc;var wc,Fc="TemplateCollection",Lc=(wc=OfficeExtension.ClientObject,__extends(Mc,wc),Object.defineProperty(Mc.prototype,"_className",{get:function(){return"TemplateCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Mc.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Mc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mc.prototype,"items",{get:function(){return m("items",this.m__items,Fc,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Mc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Fc,this._isNull),this.__R},enumerable:!0,configurable:!0}),Mc.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},Mc.prototype.getItemAt=function(e){return p(a.Template,this,"GetItemAt",1,[e],!1,!1,null,4)},Mc.prototype.importBuildingBlocks=function(){i(this,"ImportBuildingBlocks",0,[],0,0)},Mc.prototype._GetItem=function(e){return t(a.Template,this,[e])},Mc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Mc.prototype._handleResult=function(e){if(wc.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Template,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Mc.prototype.load=function(e){return b(this,e)},Mc.prototype.retrieve=function(e){return v(this,e)},Mc.prototype._handleIdResult=function(e){wc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Mc.prototype._handleRetrieveResult=function(e,t){var n=this;wc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Template,!0,n,e,t)})},Mc.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mc.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Mc.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Template,!0,n,e,t)},function(e){return n.m__items=e})},Mc);function Mc(){return null!==wc&&wc.apply(this,arguments)||this}a.TemplateCollection=Lc;var Bc,Hc="TrackedChange",Uc=(Bc=OfficeExtension.ClientObject,__extends(Wc,Bc),Object.defineProperty(Wc.prototype,"_className",{get:function(){return"TrackedChange"},enumerable:!0,configurable:!0}),Object.defineProperty(Wc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","author","date","text","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Author","Date","Text","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wc.prototype,"author",{get:function(){return m("author",this._A,Hc,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Wc.prototype,"date",{get:function(){return m("date",this._D,Hc,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(Wc.prototype,"text",{get:function(){return m("text",this._T,Hc,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Wc.prototype,"type",{get:function(){return m("type",this._Ty,Hc,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Wc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Hc,this._isNull),this.__R},enumerable:!0,configurable:!0}),Wc.prototype.accept=function(){i(this,"Accept",0,[],0,0)},Wc.prototype.getNext=function(){return p(a.TrackedChange,this,"GetNext",1,[],!1,!1,null,4)},Wc.prototype.getNextOrNullObject=function(){return p(a.TrackedChange,this,"GetNextOrNullObject",1,[],!1,!1,null,4)},Wc.prototype.getRange=function(e){return p(a.Range,this,"GetRange",1,[e],!1,!1,null,4)},Wc.prototype.reject=function(){i(this,"Reject",0,[],0,0)},Wc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Wc.prototype._handleResult=function(e){if(Bc.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Author)||(this._A=t.Author),y(t.Date)||(this._D=R(t.Date)),y(t.Text)||(this._T=t.Text),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Wc.prototype.load=function(e){return b(this,e)},Wc.prototype.retrieve=function(e){return v(this,e)},Wc.prototype._handleIdResult=function(e){Bc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Wc.prototype._handleRetrieveResult=function(e,t){if(Bc.prototype._handleRetrieveResult.call(this,e,t),!g(e)){var n=e;y(n.Date)||(n.date=R(n.date)),S(this,e,t)}},Wc.prototype.track=function(){return this.context.trackedObjects.add(this),this},Wc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Wc.prototype.toJSON=function(){return O(this,{author:this._A,date:this._D,text:this._T,type:this._Ty},{})},Wc.prototype.setMockData=function(e){I(this,e)},Wc.prototype.ensureUnchanged=function(e){d(this,e)},Wc);function Wc(){return null!==Bc&&Bc.apply(this,arguments)||this}a.TrackedChange=Uc;var Gc,Vc="TrackedChangeCollection",zc=(Gc=OfficeExtension.ClientObject,__extends(qc,Gc),Object.defineProperty(qc.prototype,"_className",{get:function(){return"TrackedChangeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(qc.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(qc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(qc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(qc.prototype,"items",{get:function(){return m("items",this.m__items,Vc,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(qc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Vc,this._isNull),this.__R},enumerable:!0,configurable:!0}),qc.prototype.acceptAll=function(){i(this,"AcceptAll",0,[],0,0)},qc.prototype.getFirst=function(){return p(a.TrackedChange,this,"GetFirst",1,[],!1,!1,null,4)},qc.prototype.getFirstOrNullObject=function(){return p(a.TrackedChange,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},qc.prototype.rejectAll=function(){i(this,"RejectAll",0,[],0,0)},qc.prototype._GetItem=function(e){return t(a.TrackedChange,this,[e])},qc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},qc.prototype._handleResult=function(e){if(Gc.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TrackedChange,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},qc.prototype.load=function(e){return b(this,e)},qc.prototype.retrieve=function(e){return v(this,e)},qc.prototype._handleIdResult=function(e){Gc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},qc.prototype._handleRetrieveResult=function(e,t){var n=this;Gc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TrackedChange,!0,n,e,t)})},qc.prototype.track=function(){return this.context.trackedObjects.add(this),this},qc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},qc.prototype.toJSON=function(){return O(this,{},{},this.m__items)},qc.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TrackedChange,!0,n,e,t)},function(e){return n.m__items=e})},qc);function qc(){return null!==Gc&&Gc.apply(this,arguments)||this}a.TrackedChangeCollection=zc;var Kc,Jc="View",Xc=(Kc=OfficeExtension.ClientObject,__extends(Qc,Kc),Object.defineProperty(Qc.prototype,"_className",{get:function(){return"View"},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","columnWidth","isInConflictMode","areBackgroundsDisplayed","arePageBoundariesDisplayed","isDraft","fieldShading","isFullScreen","isPointerShownAsMagnifier","isMailMergeDataView","markupMode","pageColor","pageMovementType","isInPanning","isInReadingLayout","isReadingLayoutActualView","readingLayoutTruncateMargins","areConnectingLinesToRevisionsBalloonDisplayed","revisionsBalloonSide","revisionsBalloonWidth","revisionsBalloonWidthType","seekView","areEditableRangesShaded","areAllNonprintingCharactersDisplayed","areBookmarksIndicated","areCommentsDisplayed","areCropMarksDisplayed","areDrawingsDisplayed","areFieldCodesDisplayed","isFirstLineOnlyDisplayed","isFormatDisplayed","areFormatChangesDisplayed","isHiddenTextDisplayed","isHighlightingDisplayed","areOptionalHyphensDisplayed","areInkAnnotationsDisplayed","areInsertionsAndDeletionsDisplayed","isMainTextLayerVisible","areObjectAnchorsDisplayed","areOptionalBreaksDisplayed","areOtherAuthorsVisible","areParagraphsMarksDisplayed","arePicturePlaceholdersDisplayed","areRevisionsAndCommentsDisplayed","areSpacesIndicated","areTabsDisplayed","areTextBoundariesDisplayed","isXmlMarkupVisible","splitSpecial","areTableGridlinesDisplayed","type","areLinesWrappedToWindow"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","ColumnWidth","IsInConflictMode","AreBackgroundsDisplayed","ArePageBoundariesDisplayed","IsDraft","FieldShading","IsFullScreen","IsPointerShownAsMagnifier","IsMailMergeDataView","MarkupMode","PageColor","PageMovementType","IsInPanning","IsInReadingLayout","IsReadingLayoutActualView","ReadingLayoutTruncateMargins","AreConnectingLinesToRevisionsBalloonDisplayed","RevisionsBalloonSide","RevisionsBalloonWidth","RevisionsBalloonWidthType","SeekView","AreEditableRangesShaded","AreAllNonprintingCharactersDisplayed","AreBookmarksIndicated","AreCommentsDisplayed","AreCropMarksDisplayed","AreDrawingsDisplayed","AreFieldCodesDisplayed","IsFirstLineOnlyDisplayed","IsFormatDisplayed","AreFormatChangesDisplayed","IsHiddenTextDisplayed","IsHighlightingDisplayed","AreOptionalHyphensDisplayed","AreInkAnnotationsDisplayed","AreInsertionsAndDeletionsDisplayed","IsMainTextLayerVisible","AreObjectAnchorsDisplayed","AreOptionalBreaksDisplayed","AreOtherAuthorsVisible","AreParagraphsMarksDisplayed","ArePicturePlaceholdersDisplayed","AreRevisionsAndCommentsDisplayed","AreSpacesIndicated","AreTabsDisplayed","AreTextBoundariesDisplayed","IsXmlMarkupVisible","SplitSpecial","AreTableGridlinesDisplayed","Type","AreLinesWrappedToWindow"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!1,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!0,!1,!1,!0,!1,!1,!0,!1,!1,!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"_navigationPropertyNames",{get:function(){return["revisionsFilter"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"revisionsFilter",{get:function(){return this._Revis||(this._Revis=e(a.RevisionsFilter,this,"RevisionsFilter",!1,4)),this._Revis},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areAllNonprintingCharactersDisplayed",{get:function(){return m("areAllNonprintingCharactersDisplayed",this._A,Jc,this._isNull),this._A},set:function(e){this._A=e,h(this,"AreAllNonprintingCharactersDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areBackgroundsDisplayed",{get:function(){return m("areBackgroundsDisplayed",this._Ar,Jc,this._isNull),this._Ar},set:function(e){this._Ar=e,h(this,"AreBackgroundsDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areBookmarksIndicated",{get:function(){return m("areBookmarksIndicated",this._Are,Jc,this._isNull),this._Are},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areCommentsDisplayed",{get:function(){return m("areCommentsDisplayed",this._AreC,Jc,this._isNull),this._AreC},set:function(e){this._AreC=e,h(this,"AreCommentsDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areConnectingLinesToRevisionsBalloonDisplayed",{get:function(){return m("areConnectingLinesToRevisionsBalloonDisplayed",this._AreCo,Jc,this._isNull),this._AreCo},set:function(e){this._AreCo=e,h(this,"AreConnectingLinesToRevisionsBalloonDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areCropMarksDisplayed",{get:function(){return m("areCropMarksDisplayed",this._AreCr,Jc,this._isNull),this._AreCr},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areDrawingsDisplayed",{get:function(){return m("areDrawingsDisplayed",this._AreD,Jc,this._isNull),this._AreD},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areEditableRangesShaded",{get:function(){return m("areEditableRangesShaded",this._AreE,Jc,this._isNull),this._AreE},set:function(e){this._AreE=e,h(this,"AreEditableRangesShaded",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areFieldCodesDisplayed",{get:function(){return m("areFieldCodesDisplayed",this._AreF,Jc,this._isNull),this._AreF},set:function(e){this._AreF=e,h(this,"AreFieldCodesDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areFormatChangesDisplayed",{get:function(){return m("areFormatChangesDisplayed",this._AreFo,Jc,this._isNull),this._AreFo},set:function(e){this._AreFo=e,h(this,"AreFormatChangesDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areInkAnnotationsDisplayed",{get:function(){return m("areInkAnnotationsDisplayed",this._AreI,Jc,this._isNull),this._AreI},set:function(e){this._AreI=e,h(this,"AreInkAnnotationsDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areInsertionsAndDeletionsDisplayed",{get:function(){return m("areInsertionsAndDeletionsDisplayed",this._AreIn,Jc,this._isNull),this._AreIn},set:function(e){this._AreIn=e,h(this,"AreInsertionsAndDeletionsDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areLinesWrappedToWindow",{get:function(){return m("areLinesWrappedToWindow",this._AreL,Jc,this._isNull),this._AreL},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areObjectAnchorsDisplayed",{get:function(){return m("areObjectAnchorsDisplayed",this._AreO,Jc,this._isNull),this._AreO},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areOptionalBreaksDisplayed",{get:function(){return m("areOptionalBreaksDisplayed",this._AreOp,Jc,this._isNull),this._AreOp},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areOptionalHyphensDisplayed",{get:function(){return m("areOptionalHyphensDisplayed",this._AreOpt,Jc,this._isNull),this._AreOpt},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areOtherAuthorsVisible",{get:function(){return m("areOtherAuthorsVisible",this._AreOt,Jc,this._isNull),this._AreOt},set:function(e){this._AreOt=e,h(this,"AreOtherAuthorsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"arePageBoundariesDisplayed",{get:function(){return m("arePageBoundariesDisplayed",this._AreP,Jc,this._isNull),this._AreP},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areParagraphsMarksDisplayed",{get:function(){return m("areParagraphsMarksDisplayed",this._ArePa,Jc,this._isNull),this._ArePa},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"arePicturePlaceholdersDisplayed",{get:function(){return m("arePicturePlaceholdersDisplayed",this._ArePi,Jc,this._isNull),this._ArePi},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areRevisionsAndCommentsDisplayed",{get:function(){return m("areRevisionsAndCommentsDisplayed",this._AreR,Jc,this._isNull),this._AreR},set:function(e){this._AreR=e,h(this,"AreRevisionsAndCommentsDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areSpacesIndicated",{get:function(){return m("areSpacesIndicated",this._AreS,Jc,this._isNull),this._AreS},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areTableGridlinesDisplayed",{get:function(){return m("areTableGridlinesDisplayed",this._AreT,Jc,this._isNull),this._AreT},set:function(e){this._AreT=e,h(this,"AreTableGridlinesDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areTabsDisplayed",{get:function(){return m("areTabsDisplayed",this._AreTa,Jc,this._isNull),this._AreTa},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"areTextBoundariesDisplayed",{get:function(){return m("areTextBoundariesDisplayed",this._AreTe,Jc,this._isNull),this._AreTe},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"columnWidth",{get:function(){return m("columnWidth",this._C,Jc,this._isNull),this._C},set:function(e){this._C=e,h(this,"ColumnWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"fieldShading",{get:function(){return m("fieldShading",this._F,Jc,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isDraft",{get:function(){return m("isDraft",this._I,Jc,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsDraft",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isFirstLineOnlyDisplayed",{get:function(){return m("isFirstLineOnlyDisplayed",this._Is,Jc,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsFirstLineOnlyDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isFormatDisplayed",{get:function(){return m("isFormatDisplayed",this._IsF,Jc,this._isNull),this._IsF},set:function(e){this._IsF=e,h(this,"IsFormatDisplayed",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isFullScreen",{get:function(){return m("isFullScreen",this._IsFu,Jc,this._isNull),this._IsFu},set:function(e){this._IsFu=e,h(this,"IsFullScreen",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isHiddenTextDisplayed",{get:function(){return m("isHiddenTextDisplayed",this._IsH,Jc,this._isNull),this._IsH},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isHighlightingDisplayed",{get:function(){return m("isHighlightingDisplayed",this._IsHi,Jc,this._isNull),this._IsHi},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isInConflictMode",{get:function(){return m("isInConflictMode",this._IsI,Jc,this._isNull),this._IsI},set:function(e){this._IsI=e,h(this,"IsInConflictMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isInPanning",{get:function(){return m("isInPanning",this._IsIn,Jc,this._isNull),this._IsIn},set:function(e){this._IsIn=e,h(this,"IsInPanning",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isInReadingLayout",{get:function(){return m("isInReadingLayout",this._IsInR,Jc,this._isNull),this._IsInR},set:function(e){this._IsInR=e,h(this,"IsInReadingLayout",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isMailMergeDataView",{get:function(){return m("isMailMergeDataView",this._IsM,Jc,this._isNull),this._IsM},set:function(e){this._IsM=e,h(this,"IsMailMergeDataView",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isMainTextLayerVisible",{get:function(){return m("isMainTextLayerVisible",this._IsMa,Jc,this._isNull),this._IsMa},set:function(e){this._IsMa=e,h(this,"IsMainTextLayerVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isPointerShownAsMagnifier",{get:function(){return m("isPointerShownAsMagnifier",this._IsP,Jc,this._isNull),this._IsP},set:function(e){this._IsP=e,h(this,"IsPointerShownAsMagnifier",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isReadingLayoutActualView",{get:function(){return m("isReadingLayoutActualView",this._IsR,Jc,this._isNull),this._IsR},set:function(e){this._IsR=e,h(this,"IsReadingLayoutActualView",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"isXmlMarkupVisible",{get:function(){return m("isXmlMarkupVisible",this._IsX,Jc,this._isNull),this._IsX},set:function(e){this._IsX=e,h(this,"IsXmlMarkupVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"markupMode",{get:function(){return m("markupMode",this._M,Jc,this._isNull),this._M},set:function(e){this._M=e,h(this,"MarkupMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"pageColor",{get:function(){return m("pageColor",this._P,Jc,this._isNull),this._P},set:function(e){this._P=e,h(this,"PageColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"pageMovementType",{get:function(){return m("pageMovementType",this._Pa,Jc,this._isNull),this._Pa},set:function(e){this._Pa=e,h(this,"PageMovementType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"readingLayoutTruncateMargins",{get:function(){return m("readingLayoutTruncateMargins",this._R,Jc,this._isNull),this._R},set:function(e){this._R=e,h(this,"ReadingLayoutTruncateMargins",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"revisionsBalloonSide",{get:function(){return m("revisionsBalloonSide",this._Re,Jc,this._isNull),this._Re},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"revisionsBalloonWidth",{get:function(){return m("revisionsBalloonWidth",this._Rev,Jc,this._isNull),this._Rev},set:function(e){this._Rev=e,h(this,"RevisionsBalloonWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"revisionsBalloonWidthType",{get:function(){return m("revisionsBalloonWidthType",this._Revi,Jc,this._isNull),this._Revi},set:function(e){this._Revi=e,h(this,"RevisionsBalloonWidthType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"seekView",{get:function(){return m("seekView",this._S,Jc,this._isNull),this._S},set:function(e){this._S=e,h(this,"SeekView",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"splitSpecial",{get:function(){return m("splitSpecial",this._Sp,Jc,this._isNull),this._Sp},set:function(e){this._Sp=e,h(this,"SplitSpecial",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"type",{get:function(){return m("type",this._T,Jc,this._isNull),this._T},set:function(e){this._T=e,h(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qc.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Jc,this._isNull),this.__R},enumerable:!0,configurable:!0}),Qc.prototype.set=function(e,t){this._recursivelySet(e,t,["columnWidth","isInConflictMode","areBackgroundsDisplayed","isDraft","isFullScreen","isPointerShownAsMagnifier","isMailMergeDataView","markupMode","pageColor","pageMovementType","isInPanning","isInReadingLayout","isReadingLayoutActualView","readingLayoutTruncateMargins","areConnectingLinesToRevisionsBalloonDisplayed","revisionsBalloonWidth","revisionsBalloonWidthType","seekView","areEditableRangesShaded","areAllNonprintingCharactersDisplayed","areCommentsDisplayed","areFieldCodesDisplayed","isFirstLineOnlyDisplayed","isFormatDisplayed","areFormatChangesDisplayed","areInkAnnotationsDisplayed","areInsertionsAndDeletionsDisplayed","isMainTextLayerVisible","areOtherAuthorsVisible","areRevisionsAndCommentsDisplayed","isXmlMarkupVisible","splitSpecial","areTableGridlinesDisplayed","type"],[],["revisionsFilter"])},Qc.prototype.update=function(e){this._recursivelyUpdate(e)},Qc.prototype.collapseAllHeadings=function(){i(this,"CollapseAllHeadings",0,[],0,0)},Qc.prototype.collapseOutline=function(e){i(this,"CollapseOutline",0,[e],0,0)},Qc.prototype.expandAllHeadings=function(){i(this,"ExpandAllHeadings",0,[],0,0)},Qc.prototype.expandOutline=function(e){i(this,"ExpandOutline",0,[e],0,0)},Qc.prototype.nextHeaderFooter=function(){i(this,"NextHeaderFooter",0,[],0,0)},Qc.prototype.previousHeaderFooter=function(){i(this,"PreviousHeaderFooter",0,[],0,0)},Qc.prototype.showAllHeadings=function(){i(this,"ShowAllHeadings",0,[],0,0)},Qc.prototype.showHeading=function(e){i(this,"ShowHeading",0,[e],0,0)},Qc.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Qc.prototype._handleResult=function(e){if(Kc.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AreAllNonprintingCharactersDisplayed)||(this._A=t.AreAllNonprintingCharactersDisplayed),y(t.AreBackgroundsDisplayed)||(this._Ar=t.AreBackgroundsDisplayed),y(t.AreBookmarksIndicated)||(this._Are=t.AreBookmarksIndicated),y(t.AreCommentsDisplayed)||(this._AreC=t.AreCommentsDisplayed),y(t.AreConnectingLinesToRevisionsBalloonDisplayed)||(this._AreCo=t.AreConnectingLinesToRevisionsBalloonDisplayed),y(t.AreCropMarksDisplayed)||(this._AreCr=t.AreCropMarksDisplayed),y(t.AreDrawingsDisplayed)||(this._AreD=t.AreDrawingsDisplayed),y(t.AreEditableRangesShaded)||(this._AreE=t.AreEditableRangesShaded),y(t.AreFieldCodesDisplayed)||(this._AreF=t.AreFieldCodesDisplayed),y(t.AreFormatChangesDisplayed)||(this._AreFo=t.AreFormatChangesDisplayed),y(t.AreInkAnnotationsDisplayed)||(this._AreI=t.AreInkAnnotationsDisplayed),y(t.AreInsertionsAndDeletionsDisplayed)||(this._AreIn=t.AreInsertionsAndDeletionsDisplayed),y(t.AreLinesWrappedToWindow)||(this._AreL=t.AreLinesWrappedToWindow),y(t.AreObjectAnchorsDisplayed)||(this._AreO=t.AreObjectAnchorsDisplayed),y(t.AreOptionalBreaksDisplayed)||(this._AreOp=t.AreOptionalBreaksDisplayed),y(t.AreOptionalHyphensDisplayed)||(this._AreOpt=t.AreOptionalHyphensDisplayed),y(t.AreOtherAuthorsVisible)||(this._AreOt=t.AreOtherAuthorsVisible),y(t.ArePageBoundariesDisplayed)||(this._AreP=t.ArePageBoundariesDisplayed),y(t.AreParagraphsMarksDisplayed)||(this._ArePa=t.AreParagraphsMarksDisplayed),y(t.ArePicturePlaceholdersDisplayed)||(this._ArePi=t.ArePicturePlaceholdersDisplayed),y(t.AreRevisionsAndCommentsDisplayed)||(this._AreR=t.AreRevisionsAndCommentsDisplayed),y(t.AreSpacesIndicated)||(this._AreS=t.AreSpacesIndicated),y(t.AreTableGridlinesDisplayed)||(this._AreT=t.AreTableGridlinesDisplayed),y(t.AreTabsDisplayed)||(this._AreTa=t.AreTabsDisplayed),y(t.AreTextBoundariesDisplayed)||(this._AreTe=t.AreTextBoundariesDisplayed),y(t.ColumnWidth)||(this._C=t.ColumnWidth),y(t.FieldShading)||(this._F=t.FieldShading),y(t.IsDraft)||(this._I=t.IsDraft),y(t.IsFirstLineOnlyDisplayed)||(this._Is=t.IsFirstLineOnlyDisplayed),y(t.IsFormatDisplayed)||(this._IsF=t.IsFormatDisplayed),y(t.IsFullScreen)||(this._IsFu=t.IsFullScreen),y(t.IsHiddenTextDisplayed)||(this._IsH=t.IsHiddenTextDisplayed),y(t.IsHighlightingDisplayed)||(this._IsHi=t.IsHighlightingDisplayed),y(t.IsInConflictMode)||(this._IsI=t.IsInConflictMode),y(t.IsInPanning)||(this._IsIn=t.IsInPanning),y(t.IsInReadingLayout)||(this._IsInR=t.IsInReadingLayout),y(t.IsMailMergeDataView)||(this._IsM=t.IsMailMergeDataView),y(t.IsMainTextLayerVisible)||(this._IsMa=t.IsMainTextLayerVisible),y(t.IsPointerShownAsMagnifier)||(this._IsP=t.IsPointerShownAsMagnifier),y(t.IsReadingLayoutActualView)||(this._IsR=t.IsReadingLayoutActualView),y(t.IsXmlMarkupVisible)||(this._IsX=t.IsXmlMarkupVisible),y(t.MarkupMode)||(this._M=t.MarkupMode),y(t.PageColor)||(this._P=t.PageColor),y(t.PageMovementType)||(this._Pa=t.PageMovementType),y(t.ReadingLayoutTruncateMargins)||(this._R=t.ReadingLayoutTruncateMargins),y(t.RevisionsBalloonSide)||(this._Re=t.RevisionsBalloonSide),y(t.RevisionsBalloonWidth)||(this._Rev=t.RevisionsBalloonWidth),y(t.RevisionsBalloonWidthType)||(this._Revi=t.RevisionsBalloonWidthType),y(t.SeekView)||(this._S=t.SeekView),y(t.SplitSpecial)||(this._Sp=t.SplitSpecial),y(t.Type)||(this._T=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["revisionsFilter","RevisionsFilter"])}},Qc.prototype.load=function(e){return b(this,e)},Qc.prototype.retrieve=function(e){return v(this,e)},Qc.prototype._handleIdResult=function(e){Kc.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Qc.prototype._handleRetrieveResult=function(e,t){Kc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Qc.prototype.track=function(){return this.context.trackedObjects.add(this),this},Qc.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Qc.prototype.toJSON=function(){return O(this,{areAllNonprintingCharactersDisplayed:this._A,areBackgroundsDisplayed:this._Ar,areBookmarksIndicated:this._Are,areCommentsDisplayed:this._AreC,areConnectingLinesToRevisionsBalloonDisplayed:this._AreCo,areCropMarksDisplayed:this._AreCr,areDrawingsDisplayed:this._AreD,areEditableRangesShaded:this._AreE,areFieldCodesDisplayed:this._AreF,areFormatChangesDisplayed:this._AreFo,areInkAnnotationsDisplayed:this._AreI,areInsertionsAndDeletionsDisplayed:this._AreIn,areLinesWrappedToWindow:this._AreL,areObjectAnchorsDisplayed:this._AreO,areOptionalBreaksDisplayed:this._AreOp,areOptionalHyphensDisplayed:this._AreOpt,areOtherAuthorsVisible:this._AreOt,arePageBoundariesDisplayed:this._AreP,areParagraphsMarksDisplayed:this._ArePa,arePicturePlaceholdersDisplayed:this._ArePi,areRevisionsAndCommentsDisplayed:this._AreR,areSpacesIndicated:this._AreS,areTableGridlinesDisplayed:this._AreT,areTabsDisplayed:this._AreTa,areTextBoundariesDisplayed:this._AreTe,columnWidth:this._C,fieldShading:this._F,isDraft:this._I,isFirstLineOnlyDisplayed:this._Is,isFormatDisplayed:this._IsF,isFullScreen:this._IsFu,isHiddenTextDisplayed:this._IsH,isHighlightingDisplayed:this._IsHi,isInConflictMode:this._IsI,isInPanning:this._IsIn,isInReadingLayout:this._IsInR,isMailMergeDataView:this._IsM,isMainTextLayerVisible:this._IsMa,isPointerShownAsMagnifier:this._IsP,isReadingLayoutActualView:this._IsR,isXmlMarkupVisible:this._IsX,markupMode:this._M,pageColor:this._P,pageMovementType:this._Pa,readingLayoutTruncateMargins:this._R,revisionsBalloonSide:this._Re,revisionsBalloonWidth:this._Rev,revisionsBalloonWidthType:this._Revi,seekView:this._S,splitSpecial:this._Sp,type:this._T},{})},Qc.prototype.setMockData=function(e){I(this,e)},Qc.prototype.ensureUnchanged=function(e){d(this,e)},Qc);function Qc(){return null!==Kc&&Kc.apply(this,arguments)||this}a.View=Xc;var Yc,Zc="Shape",$c=(Yc=OfficeExtension.ClientObject,__extends(el,Yc),Object.defineProperty(el.prototype,"_className",{get:function(){return"Shape"},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id","type","height","width","left","top","relativeHorizontalPosition","relativeVerticalPosition","geometricShapeType","name","isChild","allowOverlap","leftRelative","topRelative","widthRelative","heightRelative","relativeHorizontalSize","relativeVerticalSize","altTextDescription","rotation","visible","lockAspectRatio"]},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id","Type","Height","Width","Left","Top","RelativeHorizontalPosition","RelativeVerticalPosition","GeometricShapeType","Name","IsChild","AllowOverlap","LeftRelative","TopRelative","WidthRelative","HeightRelative","RelativeHorizontalSize","RelativeVerticalSize","AltTextDescription","Rotation","Visible","LockAspectRatio"]},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"_navigationPropertyNames",{get:function(){return["body","shapeGroup","parentGroup","canvas","parentCanvas","fill","textFrame","textWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"body",{get:function(){return this._B||(this._B=e(a.Body,this,"Body",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"canvas",{get:function(){return this._C||(this._C=e(a.Canvas,this,"Canvas",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"fill",{get:function(){return this._F||(this._F=e(a.ShapeFill,this,"Fill",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"parentCanvas",{get:function(){return this._P||(this._P=e(a.Shape,this,"ParentCanvas",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"parentGroup",{get:function(){return this._Pa||(this._Pa=e(a.Shape,this,"ParentGroup",!1,4)),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"shapeGroup",{get:function(){return this._S||(this._S=e(a.ShapeGroup,this,"ShapeGroup",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"textFrame",{get:function(){return this._T||(this._T=e(a.TextFrame,this,"TextFrame",!1,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"textWrap",{get:function(){return this._Te||(this._Te=e(a.ShapeTextWrap,this,"TextWrap",!1,4)),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"allowOverlap",{get:function(){return m("allowOverlap",this._A,Zc,this._isNull),this._A},set:function(e){this._A=e,h(this,"AllowOverlap",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"altTextDescription",{get:function(){return m("altTextDescription",this._Al,Zc,this._isNull),this._Al},set:function(e){this._Al=e,h(this,"AltTextDescription",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"geometricShapeType",{get:function(){return m("geometricShapeType",this._G,Zc,this._isNull),this._G},set:function(e){this._G=e,h(this,"GeometricShapeType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"height",{get:function(){return m("height",this._H,Zc,this._isNull),this._H},set:function(e){this._H=e,h(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"heightRelative",{get:function(){return m("heightRelative",this._He,Zc,this._isNull),this._He},set:function(e){this._He=e,h(this,"HeightRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"id",{get:function(){return m("id",this._I,Zc,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"isChild",{get:function(){return m("isChild",this._Is,Zc,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"left",{get:function(){return m("left",this._L,Zc,this._isNull),this._L},set:function(e){this._L=e,h(this,"Left",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"leftRelative",{get:function(){return m("leftRelative",this._Le,Zc,this._isNull),this._Le},set:function(e){this._Le=e,h(this,"LeftRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"lockAspectRatio",{get:function(){return m("lockAspectRatio",this._Lo,Zc,this._isNull),this._Lo},set:function(e){this._Lo=e,h(this,"LockAspectRatio",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"name",{get:function(){return m("name",this._N,Zc,this._isNull),this._N},set:function(e){this._N=e,h(this,"Name",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"relativeHorizontalPosition",{get:function(){return m("relativeHorizontalPosition",this._R,Zc,this._isNull),this._R},set:function(e){this._R=e,h(this,"RelativeHorizontalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"relativeHorizontalSize",{get:function(){return m("relativeHorizontalSize",this._Re,Zc,this._isNull),this._Re},set:function(e){this._Re=e,h(this,"RelativeHorizontalSize",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"relativeVerticalPosition",{get:function(){return m("relativeVerticalPosition",this._Rel,Zc,this._isNull),this._Rel},set:function(e){this._Rel=e,h(this,"RelativeVerticalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"relativeVerticalSize",{get:function(){return m("relativeVerticalSize",this._Rela,Zc,this._isNull),this._Rela},set:function(e){this._Rela=e,h(this,"RelativeVerticalSize",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"rotation",{get:function(){return m("rotation",this._Ro,Zc,this._isNull),this._Ro},set:function(e){this._Ro=e,h(this,"Rotation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"top",{get:function(){return m("top",this._To,Zc,this._isNull),this._To},set:function(e){this._To=e,h(this,"Top",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"topRelative",{get:function(){return m("topRelative",this._Top,Zc,this._isNull),this._Top},set:function(e){this._Top=e,h(this,"TopRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"type",{get:function(){return m("type",this._Ty,Zc,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"visible",{get:function(){return m("visible",this._V,Zc,this._isNull),this._V},set:function(e){this._V=e,h(this,"Visible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"width",{get:function(){return m("width",this._W,Zc,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"widthRelative",{get:function(){return m("widthRelative",this._Wi,Zc,this._isNull),this._Wi},set:function(e){this._Wi=e,h(this,"WidthRelative",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(el.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Zc,this._isNull),this.__R},enumerable:!0,configurable:!0}),el.prototype.set=function(e,t){this._recursivelySet(e,t,["height","width","left","top","relativeHorizontalPosition","relativeVerticalPosition","geometricShapeType","name","allowOverlap","leftRelative","topRelative","widthRelative","heightRelative","relativeHorizontalSize","relativeVerticalSize","altTextDescription","rotation","visible","lockAspectRatio"],["body","shapeGroup","parentGroup","canvas","parentCanvas","fill","textFrame","textWrap"],[])},el.prototype.update=function(e){this._recursivelyUpdate(e)},el.prototype.delete=function(){i(this,"Delete",0,[],0,0)},el.prototype.moveHorizontally=function(e){i(this,"MoveHorizontally",0,[e],0,0)},el.prototype.moveVertically=function(e){i(this,"MoveVertically",0,[e],0,0)},el.prototype.scaleHeight=function(e,t,n){i(this,"ScaleHeight",0,[e,t,n],0,0)},el.prototype.scaleWidth=function(e,t,n){i(this,"ScaleWidth",0,[e,t,n],0,0)},el.prototype.select=function(e){i(this,"Select",1,[e],4,0)},el.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},el.prototype._handleResult=function(e){if(Yc.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AllowOverlap)||(this._A=t.AllowOverlap),y(t.AltTextDescription)||(this._Al=t.AltTextDescription),y(t.GeometricShapeType)||(this._G=t.GeometricShapeType),y(t.Height)||(this._H=t.Height),y(t.HeightRelative)||(this._He=t.HeightRelative),y(t.Id)||(this._I=t.Id),y(t.IsChild)||(this._Is=t.IsChild),y(t.Left)||(this._L=t.Left),y(t.LeftRelative)||(this._Le=t.LeftRelative),y(t.LockAspectRatio)||(this._Lo=t.LockAspectRatio),y(t.Name)||(this._N=t.Name),y(t.RelativeHorizontalPosition)||(this._R=t.RelativeHorizontalPosition),y(t.RelativeHorizontalSize)||(this._Re=t.RelativeHorizontalSize),y(t.RelativeVerticalPosition)||(this._Rel=t.RelativeVerticalPosition),y(t.RelativeVerticalSize)||(this._Rela=t.RelativeVerticalSize),y(t.Rotation)||(this._Ro=t.Rotation),y(t.Top)||(this._To=t.Top),y(t.TopRelative)||(this._Top=t.TopRelative),y(t.Type)||(this._Ty=t.Type),y(t.Visible)||(this._V=t.Visible),y(t.Width)||(this._W=t.Width),y(t.WidthRelative)||(this._Wi=t.WidthRelative),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["body","Body","canvas","Canvas","fill","Fill","parentCanvas","ParentCanvas","parentGroup","ParentGroup","shapeGroup","ShapeGroup","textFrame","TextFrame","textWrap","TextWrap"])}},el.prototype.load=function(e){return b(this,e)},el.prototype.retrieve=function(e){return v(this,e)},el.prototype._handleIdResult=function(e){Yc.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},el.prototype._handleRetrieveResult=function(e,t){Yc.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},el.prototype.track=function(){return this.context.trackedObjects.add(this),this},el.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},el.prototype.toJSON=function(){return O(this,{allowOverlap:this._A,altTextDescription:this._Al,geometricShapeType:this._G,height:this._H,heightRelative:this._He,id:this._I,isChild:this._Is,left:this._L,leftRelative:this._Le,lockAspectRatio:this._Lo,name:this._N,relativeHorizontalPosition:this._R,relativeHorizontalSize:this._Re,relativeVerticalPosition:this._Rel,relativeVerticalSize:this._Rela,rotation:this._Ro,top:this._To,topRelative:this._Top,type:this._Ty,visible:this._V,width:this._W,widthRelative:this._Wi},{body:this._B,canvas:this._C,fill:this._F,parentCanvas:this._P,parentGroup:this._Pa,shapeGroup:this._S,textFrame:this._T,textWrap:this._Te})},el.prototype.setMockData=function(e){I(this,e)},el.prototype.ensureUnchanged=function(e){d(this,e)},el);function el(){return null!==Yc&&Yc.apply(this,arguments)||this}a.Shape=$c;function tl(){}a.ShapeCustom=tl,OfficeExtension.Utility.applyMixin($c,tl);var nl,rl="ShapeGroup",il=(nl=OfficeExtension.ClientObject,__extends(ol,nl),Object.defineProperty(ol.prototype,"_className",{get:function(){return"ShapeGroup"},enumerable:!0,configurable:!0}),Object.defineProperty(ol.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ol.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ol.prototype,"_navigationPropertyNames",{get:function(){return["shape","shapes"]},enumerable:!0,configurable:!0}),Object.defineProperty(ol.prototype,"shape",{get:function(){return this._S||(this._S=e(a.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ol.prototype,"shapes",{get:function(){return this._Sh||(this._Sh=e(a.ShapeCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(ol.prototype,"id",{get:function(){return m("id",this._I,rl,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ol.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,rl,this._isNull),this.__R},enumerable:!0,configurable:!0}),ol.prototype.set=function(e,t){this._recursivelySet(e,t,[],["shape"],["shapes"])},ol.prototype.update=function(e){this._recursivelyUpdate(e)},ol.prototype.ungroup=function(){return p(a.ShapeCollection,this,"Ungroup",1,[],!0,!1,null,4)},ol.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ol.prototype._handleResult=function(e){if(nl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Id)||(this._I=t.Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["shape","Shape","shapes","Shapes"])}},ol.prototype.load=function(e){return b(this,e)},ol.prototype.retrieve=function(e){return v(this,e)},ol.prototype._handleIdResult=function(e){nl.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},ol.prototype._handleRetrieveResult=function(e,t){nl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ol.prototype.track=function(){return this.context.trackedObjects.add(this),this},ol.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ol.prototype.toJSON=function(){return O(this,{id:this._I},{shape:this._S,shapes:this._Sh})},ol.prototype.setMockData=function(e){I(this,e)},ol.prototype.ensureUnchanged=function(e){d(this,e)},ol);function ol(){return null!==nl&&nl.apply(this,arguments)||this}a.ShapeGroup=il;function al(){}a.ShapeGroupCustom=al,OfficeExtension.Utility.applyMixin(il,al);var sl,cl=(sl=OfficeExtension.ClientObject,__extends(ll,sl),Object.defineProperty(ll.prototype,"_className",{get:function(){return"Canvas"},enumerable:!0,configurable:!0}),Object.defineProperty(ll.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ll.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Id"]},enumerable:!0,configurable:!0}),Object.defineProperty(ll.prototype,"_navigationPropertyNames",{get:function(){return["shape","shapes"]},enumerable:!0,configurable:!0}),Object.defineProperty(ll.prototype,"shape",{get:function(){return this._S||(this._S=e(a.Shape,this,"Shape",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(ll.prototype,"shapes",{get:function(){return this._Sh||(this._Sh=e(a.ShapeCollection,this,"Shapes",!0,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(ll.prototype,"id",{get:function(){return m("id",this._I,"Canvas",this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ll.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"Canvas",this._isNull),this.__R},enumerable:!0,configurable:!0}),ll.prototype.set=function(e,t){this._recursivelySet(e,t,[],["shape"],["shapes"])},ll.prototype.update=function(e){this._recursivelyUpdate(e)},ll.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ll.prototype._handleResult=function(e){if(sl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Id)||(this._I=t.Id),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["shape","Shape","shapes","Shapes"])}},ll.prototype.load=function(e){return b(this,e)},ll.prototype.retrieve=function(e){return v(this,e)},ll.prototype._handleIdResult=function(e){sl.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},ll.prototype._handleRetrieveResult=function(e,t){sl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ll.prototype.track=function(){return this.context.trackedObjects.add(this),this},ll.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ll.prototype.toJSON=function(){return O(this,{id:this._I},{shape:this._S,shapes:this._Sh})},ll.prototype.setMockData=function(e){I(this,e)},ll.prototype.ensureUnchanged=function(e){d(this,e)},ll);function ll(){return null!==sl&&sl.apply(this,arguments)||this}a.Canvas=cl;function ul(){}a.CanvasCustom=ul,OfficeExtension.Utility.applyMixin(cl,ul);var pl,fl="ShapeCollection",dl=(pl=OfficeExtension.ClientObject,__extends(hl,pl),Object.defineProperty(hl.prototype,"_className",{get:function(){return"ShapeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(hl.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(hl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(hl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(hl.prototype,"items",{get:function(){return m("items",this.m__items,fl,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(hl.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,fl,this._isNull),this.__R},enumerable:!0,configurable:!0}),hl.prototype.getByGeometricTypes=function(e){return p(a.ShapeCollection,this,"GetByGeometricTypes",1,[e],!0,!1,null,4)},hl.prototype.getById=function(e){return p(a.Shape,this,"GetById",1,[e],!1,!1,null,4)},hl.prototype.getByIdOrNullObject=function(e){return p(a.Shape,this,"GetByIdOrNullObject",1,[e],!1,!1,null,4)},hl.prototype.getByIds=function(e){return p(a.ShapeCollection,this,"GetByIds",1,[e],!0,!1,null,4)},hl.prototype.getByNames=function(e){return p(a.ShapeCollection,this,"GetByNames",1,[e],!0,!1,null,4)},hl.prototype.getByTypes=function(e){return p(a.ShapeCollection,this,"GetByTypes",1,[e],!0,!1,null,4)},hl.prototype.getFirst=function(){return p(a.Shape,this,"GetFirst",1,[],!1,!1,null,4)},hl.prototype.getFirstOrNullObject=function(){return p(a.Shape,this,"GetFirstOrNullObject",1,[],!1,!1,null,4)},hl.prototype.group=function(){return p(a.Shape,this,"Group",0,[],!1,!1,null,0)},hl.prototype._GetItem=function(e){return t(a.Shape,this,[e])},hl.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},hl.prototype._handleResult=function(e){if(pl.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Shape,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},hl.prototype.load=function(e){return b(this,e)},hl.prototype.retrieve=function(e){return v(this,e)},hl.prototype._handleIdResult=function(e){pl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},hl.prototype._handleRetrieveResult=function(e,t){var n=this;pl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Shape,!0,n,e,t)})},hl.prototype.track=function(){return this.context.trackedObjects.add(this),this},hl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},hl.prototype.toJSON=function(){return O(this,{},{},this.m__items)},hl.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Shape,!0,n,e,t)},function(e){return n.m__items=e})},hl);function hl(){return null!==pl&&pl.apply(this,arguments)||this}a.ShapeCollection=dl;var gl,yl="ShapeFill",ml=(gl=OfficeExtension.ClientObject,__extends(_l,gl),Object.defineProperty(_l.prototype,"_className",{get:function(){return"ShapeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","type","backgroundColor","foregroundColor","transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Type","BackgroundColor","ForegroundColor","Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"backgroundColor",{get:function(){return m("backgroundColor",this._B,yl,this._isNull),this._B},set:function(e){this._B=e,h(this,"BackgroundColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"foregroundColor",{get:function(){return m("foregroundColor",this._F,yl,this._isNull),this._F},set:function(e){this._F=e,h(this,"ForegroundColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"transparency",{get:function(){return m("transparency",this._T,yl,this._isNull),this._T},set:function(e){this._T=e,h(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"type",{get:function(){return m("type",this._Ty,yl,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(_l.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,yl,this._isNull),this.__R},enumerable:!0,configurable:!0}),_l.prototype.set=function(e,t){this._recursivelySet(e,t,["backgroundColor","foregroundColor","transparency"],[],[])},_l.prototype.update=function(e){this._recursivelyUpdate(e)},_l.prototype.clear=function(){i(this,"Clear",0,[],0,0)},_l.prototype.setSolidColor=function(e){i(this,"SetSolidColor",0,[e],0,0)},_l.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},_l.prototype._handleResult=function(e){if(gl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BackgroundColor)||(this._B=t.BackgroundColor),y(t.ForegroundColor)||(this._F=t.ForegroundColor),y(t.Transparency)||(this._T=t.Transparency),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},_l.prototype.load=function(e){return b(this,e)},_l.prototype.retrieve=function(e){return v(this,e)},_l.prototype._handleIdResult=function(e){gl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},_l.prototype._handleRetrieveResult=function(e,t){gl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},_l.prototype.track=function(){return this.context.trackedObjects.add(this),this},_l.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},_l.prototype.toJSON=function(){return O(this,{backgroundColor:this._B,foregroundColor:this._F,transparency:this._T,type:this._Ty},{})},_l.prototype.setMockData=function(e){I(this,e)},_l.prototype.ensureUnchanged=function(e){d(this,e)},_l);function _l(){return null!==gl&&gl.apply(this,arguments)||this}a.ShapeFill=ml;function bl(){}a.ShapeFillCustom=bl,OfficeExtension.Utility.applyMixin(ml,bl);var vl,Ol="TextFrame",Pl=(vl=OfficeExtension.ClientObject,__extends(Cl,vl),Object.defineProperty(Cl.prototype,"_className",{get:function(){return"TextFrame"},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","leftMargin","rightMargin","topMargin","bottomMargin","verticalAlignment","autoSizeSetting","orientation","hasText","noTextRotation","wordWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LeftMargin","RightMargin","TopMargin","BottomMargin","VerticalAlignment","AutoSizeSetting","Orientation","HasText","NoTextRotation","WordWrap"]},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"autoSizeSetting",{get:function(){return m("autoSizeSetting",this._A,Ol,this._isNull),this._A},set:function(e){this._A=e,h(this,"AutoSizeSetting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"bottomMargin",{get:function(){return m("bottomMargin",this._B,Ol,this._isNull),this._B},set:function(e){this._B=e,h(this,"BottomMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"hasText",{get:function(){return m("hasText",this._H,Ol,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"leftMargin",{get:function(){return m("leftMargin",this._L,Ol,this._isNull),this._L},set:function(e){this._L=e,h(this,"LeftMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"noTextRotation",{get:function(){return m("noTextRotation",this._N,Ol,this._isNull),this._N},set:function(e){this._N=e,h(this,"NoTextRotation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"orientation",{get:function(){return m("orientation",this._O,Ol,this._isNull),this._O},set:function(e){this._O=e,h(this,"Orientation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"rightMargin",{get:function(){return m("rightMargin",this._R,Ol,this._isNull),this._R},set:function(e){this._R=e,h(this,"RightMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"topMargin",{get:function(){return m("topMargin",this._T,Ol,this._isNull),this._T},set:function(e){this._T=e,h(this,"TopMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"verticalAlignment",{get:function(){return m("verticalAlignment",this._V,Ol,this._isNull),this._V},set:function(e){this._V=e,h(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"wordWrap",{get:function(){return m("wordWrap",this._W,Ol,this._isNull),this._W},set:function(e){this._W=e,h(this,"WordWrap",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Cl.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ol,this._isNull),this.__R},enumerable:!0,configurable:!0}),Cl.prototype.set=function(e,t){this._recursivelySet(e,t,["leftMargin","rightMargin","topMargin","bottomMargin","verticalAlignment","autoSizeSetting","orientation","noTextRotation","wordWrap"],[],[])},Cl.prototype.update=function(e){this._recursivelyUpdate(e)},Cl.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Cl.prototype._handleResult=function(e){if(vl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AutoSizeSetting)||(this._A=t.AutoSizeSetting),y(t.BottomMargin)||(this._B=t.BottomMargin),y(t.HasText)||(this._H=t.HasText),y(t.LeftMargin)||(this._L=t.LeftMargin),y(t.NoTextRotation)||(this._N=t.NoTextRotation),y(t.Orientation)||(this._O=t.Orientation),y(t.RightMargin)||(this._R=t.RightMargin),y(t.TopMargin)||(this._T=t.TopMargin),y(t.VerticalAlignment)||(this._V=t.VerticalAlignment),y(t.WordWrap)||(this._W=t.WordWrap),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Cl.prototype.load=function(e){return b(this,e)},Cl.prototype.retrieve=function(e){return v(this,e)},Cl.prototype._handleIdResult=function(e){vl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Cl.prototype._handleRetrieveResult=function(e,t){vl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Cl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Cl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Cl.prototype.toJSON=function(){return O(this,{autoSizeSetting:this._A,bottomMargin:this._B,hasText:this._H,leftMargin:this._L,noTextRotation:this._N,orientation:this._O,rightMargin:this._R,topMargin:this._T,verticalAlignment:this._V,wordWrap:this._W},{})},Cl.prototype.setMockData=function(e){I(this,e)},Cl.prototype.ensureUnchanged=function(e){d(this,e)},Cl);function Cl(){return null!==vl&&vl.apply(this,arguments)||this}a.TextFrame=Pl;function Rl(){}a.TextFrameCustom=Rl,OfficeExtension.Utility.applyMixin(Pl,Rl);var Sl,Il="ShapeTextWrap",Al=(Sl=OfficeExtension.ClientObject,__extends(Tl,Sl),Object.defineProperty(Tl.prototype,"_className",{get:function(){return"ShapeTextWrap"},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","type","leftDistance","rightDistance","topDistance","bottomDistance","side"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Type","LeftDistance","RightDistance","TopDistance","BottomDistance","Side"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"bottomDistance",{get:function(){return m("bottomDistance",this._B,Il,this._isNull),this._B},set:function(e){this._B=e,h(this,"BottomDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"leftDistance",{get:function(){return m("leftDistance",this._L,Il,this._isNull),this._L},set:function(e){this._L=e,h(this,"LeftDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"rightDistance",{get:function(){return m("rightDistance",this._R,Il,this._isNull),this._R},set:function(e){this._R=e,h(this,"RightDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"side",{get:function(){return m("side",this._S,Il,this._isNull),this._S},set:function(e){this._S=e,h(this,"Side",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"topDistance",{get:function(){return m("topDistance",this._T,Il,this._isNull),this._T},set:function(e){this._T=e,h(this,"TopDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"type",{get:function(){return m("type",this._Ty,Il,this._isNull),this._Ty},set:function(e){this._Ty=e,h(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tl.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Il,this._isNull),this.__R},enumerable:!0,configurable:!0}),Tl.prototype.set=function(e,t){this._recursivelySet(e,t,["type","leftDistance","rightDistance","topDistance","bottomDistance","side"],[],[])},Tl.prototype.update=function(e){this._recursivelyUpdate(e)},Tl.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Tl.prototype._handleResult=function(e){if(Sl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BottomDistance)||(this._B=t.BottomDistance),y(t.LeftDistance)||(this._L=t.LeftDistance),y(t.RightDistance)||(this._R=t.RightDistance),y(t.Side)||(this._S=t.Side),y(t.TopDistance)||(this._T=t.TopDistance),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Tl.prototype.load=function(e){return b(this,e)},Tl.prototype.retrieve=function(e){return v(this,e)},Tl.prototype._handleIdResult=function(e){Sl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Tl.prototype._handleRetrieveResult=function(e,t){Sl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Tl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Tl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Tl.prototype.toJSON=function(){return O(this,{bottomDistance:this._B,leftDistance:this._L,rightDistance:this._R,side:this._S,topDistance:this._T,type:this._Ty},{})},Tl.prototype.setMockData=function(e){I(this,e)},Tl.prototype.ensureUnchanged=function(e){d(this,e)},Tl);function Tl(){return null!==Sl&&Sl.apply(this,arguments)||this}a.ShapeTextWrap=Al;function Nl(){}a.ShapeTextWrapCustom=Nl,OfficeExtension.Utility.applyMixin(Al,Nl);var Dl,xl=(Dl=OfficeExtension.ClientObject,__extends(El,Dl),Object.defineProperty(El.prototype,"_className",{get:function(){return"Reviewer"},enumerable:!0,configurable:!0}),Object.defineProperty(El.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","isVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(El.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","IsVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(El.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(El.prototype,"isVisible",{get:function(){return m("isVisible",this._I,"Reviewer",this._isNull),this._I},set:function(e){this._I=e,h(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(El.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"Reviewer",this._isNull),this.__R},enumerable:!0,configurable:!0}),El.prototype.set=function(e,t){this._recursivelySet(e,t,["isVisible"],[],[])},El.prototype.update=function(e){this._recursivelyUpdate(e)},El.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},El.prototype._handleResult=function(e){if(Dl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.IsVisible)||(this._I=t.IsVisible),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},El.prototype.load=function(e){return b(this,e)},El.prototype.retrieve=function(e){return v(this,e)},El.prototype._handleIdResult=function(e){Dl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},El.prototype._handleRetrieveResult=function(e,t){Dl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},El.prototype.track=function(){return this.context.trackedObjects.add(this),this},El.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},El.prototype.toJSON=function(){return O(this,{isVisible:this._I},{})},El.prototype.setMockData=function(e){I(this,e)},El.prototype.ensureUnchanged=function(e){d(this,e)},El);function El(){return null!==Dl&&Dl.apply(this,arguments)||this}a.Reviewer=xl;var kl,jl="ReviewerCollection",wl=(kl=OfficeExtension.ClientObject,__extends(Fl,kl),Object.defineProperty(Fl.prototype,"_className",{get:function(){return"ReviewerCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Fl.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Fl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fl.prototype,"items",{get:function(){return m("items",this.m__items,jl,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Fl.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,jl,this._isNull),this.__R},enumerable:!0,configurable:!0}),Fl.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Fl.prototype._handleResult=function(e){if(kl.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Reviewer,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Fl.prototype.load=function(e){return b(this,e)},Fl.prototype.retrieve=function(e){return v(this,e)},Fl.prototype._handleIdResult=function(e){kl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Fl.prototype._handleRetrieveResult=function(e,t){var n=this;kl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Reviewer,!1,n,e,t)})},Fl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Fl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Fl.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Fl.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Reviewer,!1,n,e,t)},function(e){return n.m__items=e})},Fl);function Fl(){return null!==kl&&kl.apply(this,arguments)||this}a.ReviewerCollection=wl;var Ll,Ml="RevisionsFilter",Bl=(Ll=OfficeExtension.ClientObject,__extends(Hl,Ll),Object.defineProperty(Hl.prototype,"_className",{get:function(){return"RevisionsFilter"},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","markup","view"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Markup","View"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"_navigationPropertyNames",{get:function(){return["reviewers"]},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"reviewers",{get:function(){return this._R||(this._R=e(a.ReviewerCollection,this,"Reviewers",!0,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"markup",{get:function(){return m("markup",this._M,Ml,this._isNull),this._M},set:function(e){this._M=e,h(this,"Markup",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"view",{get:function(){return m("view",this._V,Ml,this._isNull),this._V},set:function(e){this._V=e,h(this,"View",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Hl.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ml,this._isNull),this.__R},enumerable:!0,configurable:!0}),Hl.prototype.set=function(e,t){this._recursivelySet(e,t,["markup","view"],[],["reviewers"])},Hl.prototype.update=function(e){this._recursivelyUpdate(e)},Hl.prototype.toggleShowAllReviewers=function(){i(this,"ToggleShowAllReviewers",0,[],0,0)},Hl.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Hl.prototype._handleResult=function(e){if(Ll.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Markup)||(this._M=t.Markup),y(t.View)||(this._V=t.View),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["reviewers","Reviewers"])}},Hl.prototype.load=function(e){return b(this,e)},Hl.prototype.retrieve=function(e){return v(this,e)},Hl.prototype._handleIdResult=function(e){Ll.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Hl.prototype._handleRetrieveResult=function(e,t){Ll.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Hl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Hl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Hl.prototype.toJSON=function(){return O(this,{markup:this._M,view:this._V},{})},Hl.prototype.setMockData=function(e){I(this,e)},Hl.prototype.ensureUnchanged=function(e){d(this,e)},Hl);function Hl(){return null!==Ll&&Ll.apply(this,arguments)||this}a.RevisionsFilter=Bl;var Ul,Wl=(Ul=OfficeExtension.ClientObject,__extends(Gl,Ul),Object.defineProperty(Gl.prototype,"_className",{get:function(){return"RepeatingSectionItem"},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Gl.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"RepeatingSectionItem",this._isNull),this.__R},enumerable:!0,configurable:!0}),Gl.prototype.set=function(e,t){this._recursivelySet(e,t,[],["range"],[])},Gl.prototype.update=function(e){this._recursivelyUpdate(e)},Gl.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Gl.prototype.insertItemAfter=function(){return p(a.RepeatingSectionItem,this,"InsertItemAfter",0,[],!1,!1,null,0)},Gl.prototype.insertItemBefore=function(){return p(a.RepeatingSectionItem,this,"InsertItemBefore",0,[],!1,!1,null,0)},Gl.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Gl.prototype._handleResult=function(e){if(Ul.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},Gl.prototype.load=function(e){return b(this,e)},Gl.prototype.retrieve=function(e){return v(this,e)},Gl.prototype._handleIdResult=function(e){Ul.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Gl.prototype._handleRetrieveResult=function(e,t){Ul.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Gl.prototype.track=function(){return this.context.trackedObjects.add(this),this},Gl.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Gl.prototype.toJSON=function(){return O(this,{},{range:this._R})},Gl.prototype.setMockData=function(e){I(this,e)},Gl.prototype.ensureUnchanged=function(e){d(this,e)},Gl);function Gl(){return null!==Ul&&Ul.apply(this,arguments)||this}a.RepeatingSectionItem=Wl;var Vl,zl=(Vl=OfficeExtension.ClientObject,__extends(ql,Vl),Object.defineProperty(ql.prototype,"_className",{get:function(){return"RepeatingSectionItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(ql.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ql.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(ql.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"RepeatingSectionItemCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),ql.prototype.getItemAt=function(e){return p(a.RepeatingSectionItem,this,"GetItemAt",1,[e],!1,!1,null,4)},ql.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ql.prototype._handleResult=function(e){if(Vl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},ql.prototype.load=function(e){return b(this,e)},ql.prototype._handleIdResult=function(e){Vl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ql.prototype._handleRetrieveResult=function(e,t){Vl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ql.prototype.track=function(){return this.context.trackedObjects.add(this),this},ql.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ql.prototype.toJSON=function(){return O(this,{},{})},ql);function ql(){return null!==Vl&&Vl.apply(this,arguments)||this}a.RepeatingSectionItemCollection=zl;var Kl,Jl="Revision",Xl=(Kl=OfficeExtension.ClientObject,__extends(Ql,Kl),Object.defineProperty(Ql.prototype,"_className",{get:function(){return"Revision"},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","author","date","formatDescription","index","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Author","Date","FormatDescription","Index","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"_navigationPropertyNames",{get:function(){return["movedRange","range"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"movedRange",{get:function(){return this._M||(this._M=e(a.Range,this,"MovedRange",!1,4)),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"author",{get:function(){return m("author",this._A,Jl,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"date",{get:function(){return m("date",this._D,Jl,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"formatDescription",{get:function(){return m("formatDescription",this._F,Jl,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"index",{get:function(){return m("index",this._I,Jl,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"type",{get:function(){return m("type",this._T,Jl,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Ql.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Jl,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ql.prototype.set=function(e,t){this._recursivelySet(e,t,[],["movedRange","range"],[])},Ql.prototype.update=function(e){this._recursivelyUpdate(e)},Ql.prototype.accept=function(){i(this,"Accept",0,[],0,0)},Ql.prototype.reject=function(){i(this,"Reject",0,[],0,0)},Ql.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ql.prototype._handleResult=function(e){if(Kl.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Author)||(this._A=t.Author),y(t.Date)||(this._D=R(t.Date)),y(t.FormatDescription)||(this._F=t.FormatDescription),y(t.Index)||(this._I=t.Index),y(t.Type)||(this._T=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["movedRange","MovedRange","range","Range"])}},Ql.prototype.load=function(e){return b(this,e)},Ql.prototype.retrieve=function(e){return v(this,e)},Ql.prototype._handleIdResult=function(e){Kl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ql.prototype._handleRetrieveResult=function(e,t){if(Kl.prototype._handleRetrieveResult.call(this,e,t),!g(e)){var n=e;y(n.Date)||(n.date=R(n.date)),S(this,e,t)}},Ql.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ql.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ql.prototype.toJSON=function(){return O(this,{author:this._A,date:this._D,formatDescription:this._F,index:this._I,type:this._T},{movedRange:this._M,range:this._R})},Ql.prototype.setMockData=function(e){I(this,e)},Ql.prototype.ensureUnchanged=function(e){d(this,e)},Ql);function Ql(){return null!==Kl&&Kl.apply(this,arguments)||this}a.Revision=Xl;var Yl,Zl="RevisionCollection",$l=(Yl=OfficeExtension.ClientObject,__extends(eu,Yl),Object.defineProperty(eu.prototype,"_className",{get:function(){return"RevisionCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(eu.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(eu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(eu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(eu.prototype,"items",{get:function(){return m("items",this.m__items,Zl,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(eu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Zl,this._isNull),this.__R},enumerable:!0,configurable:!0}),eu.prototype.acceptAll=function(){i(this,"AcceptAll",0,[],0,0)},eu.prototype.rejectAll=function(){i(this,"RejectAll",0,[],0,0)},eu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},eu.prototype._handleResult=function(e){if(Yl.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Revision,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},eu.prototype.load=function(e){return b(this,e)},eu.prototype.retrieve=function(e){return v(this,e)},eu.prototype._handleIdResult=function(e){Yl.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},eu.prototype._handleRetrieveResult=function(e,t){var n=this;Yl.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Revision,!1,n,e,t)})},eu.prototype.track=function(){return this.context.trackedObjects.add(this),this},eu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},eu.prototype.toJSON=function(){return O(this,{},{},this.m__items)},eu.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Revision,!1,n,e,t)},function(e){return n.m__items=e})},eu);function eu(){return null!==Yl&&Yl.apply(this,arguments)||this}a.RevisionCollection=$l;var tu,nu="DatePickerContentControl",ru=(tu=OfficeExtension.ClientObject,__extends(iu,tu),Object.defineProperty(iu.prototype,"_className",{get:function(){return"DatePickerContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","dateDisplayFormat","isTemporary","id","showingPlaceholderText","dateStorageFormat","dateDisplayLocale","dateCalendarType","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","DateDisplayFormat","IsTemporary","Id","ShowingPlaceholderText","DateStorageFormat","DateDisplayLocale","DateCalendarType","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"placeholderText",{get:function(){return this._P||(this._P=e(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"xmlMapping",{get:function(){return this._X||(this._X=e(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"appearance",{get:function(){return m("appearance",this._A,nu,this._isNull),this._A},set:function(e){this._A=e,h(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"color",{get:function(){return m("color",this._C,nu,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"dateCalendarType",{get:function(){return m("dateCalendarType",this._D,nu,this._isNull),this._D},set:function(e){this._D=e,h(this,"DateCalendarType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"dateDisplayFormat",{get:function(){return m("dateDisplayFormat",this._Da,nu,this._isNull),this._Da},set:function(e){this._Da=e,h(this,"DateDisplayFormat",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"dateDisplayLocale",{get:function(){return m("dateDisplayLocale",this._Dat,nu,this._isNull),this._Dat},set:function(e){this._Dat=e,h(this,"DateDisplayLocale",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"dateStorageFormat",{get:function(){return m("dateStorageFormat",this._Date,nu,this._isNull),this._Date},set:function(e){this._Date=e,h(this,"DateStorageFormat",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"id",{get:function(){return m("id",this._I,nu,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"isTemporary",{get:function(){return m("isTemporary",this._Is,nu,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"level",{get:function(){return m("level",this._L,nu,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"lockContentControl",{get:function(){return m("lockContentControl",this._Lo,nu,this._isNull),this._Lo},set:function(e){this._Lo=e,h(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"lockContents",{get:function(){return m("lockContents",this._Loc,nu,this._isNull),this._Loc},set:function(e){this._Loc=e,h(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"showingPlaceholderText",{get:function(){return m("showingPlaceholderText",this._S,nu,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"tag",{get:function(){return m("tag",this._T,nu,this._isNull),this._T},set:function(e){this._T=e,h(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"title",{get:function(){return m("title",this._Ti,nu,this._isNull),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(iu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,nu,this._isNull),this.__R},enumerable:!0,configurable:!0}),iu.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","dateDisplayFormat","isTemporary","dateStorageFormat","dateDisplayLocale","dateCalendarType","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},iu.prototype.update=function(e){this._recursivelyUpdate(e)},iu.prototype.copy=function(){i(this,"Copy",0,[],0,0)},iu.prototype.cut=function(){i(this,"Cut",0,[],0,0)},iu.prototype.delete=function(e){i(this,"Delete",0,[e],0,0)},iu.prototype.setPlaceholderText=function(e){i(this,"SetPlaceholderText",0,[e],0,0)},iu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},iu.prototype._handleResult=function(e){if(tu.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Appearance)||(this._A=t.Appearance),y(t.Color)||(this._C=t.Color),y(t.DateCalendarType)||(this._D=t.DateCalendarType),y(t.DateDisplayFormat)||(this._Da=t.DateDisplayFormat),y(t.DateDisplayLocale)||(this._Dat=t.DateDisplayLocale),y(t.DateStorageFormat)||(this._Date=t.DateStorageFormat),y(t.Id)||(this._I=t.Id),y(t.IsTemporary)||(this._Is=t.IsTemporary),y(t.Level)||(this._L=t.Level),y(t.LockContentControl)||(this._Lo=t.LockContentControl),y(t.LockContents)||(this._Loc=t.LockContents),y(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),y(t.Tag)||(this._T=t.Tag),y(t.Title)||(this._Ti=t.Title),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},iu.prototype.load=function(e){return b(this,e)},iu.prototype.retrieve=function(e){return v(this,e)},iu.prototype._handleIdResult=function(e){tu.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},iu.prototype._handleRetrieveResult=function(e,t){tu.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},iu.prototype.track=function(){return this.context.trackedObjects.add(this),this},iu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},iu.prototype.toJSON=function(){return O(this,{appearance:this._A,color:this._C,dateCalendarType:this._D,dateDisplayFormat:this._Da,dateDisplayLocale:this._Dat,dateStorageFormat:this._Date,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},iu.prototype.setMockData=function(e){I(this,e)},iu.prototype.ensureUnchanged=function(e){d(this,e)},iu);function iu(){return null!==tu&&tu.apply(this,arguments)||this}a.DatePickerContentControl=ru;var ou,au="PictureContentControl",su=(ou=OfficeExtension.ClientObject,__extends(cu,ou),Object.defineProperty(cu.prototype,"_className",{get:function(){return"PictureContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"placeholderText",{get:function(){return this._P||(this._P=e(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"xmlMapping",{get:function(){return this._X||(this._X=e(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"appearance",{get:function(){return m("appearance",this._A,au,this._isNull),this._A},set:function(e){this._A=e,h(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"color",{get:function(){return m("color",this._C,au,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"id",{get:function(){return m("id",this._I,au,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"isTemporary",{get:function(){return m("isTemporary",this._Is,au,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"level",{get:function(){return m("level",this._L,au,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"lockContentControl",{get:function(){return m("lockContentControl",this._Lo,au,this._isNull),this._Lo},set:function(e){this._Lo=e,h(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"lockContents",{get:function(){return m("lockContents",this._Loc,au,this._isNull),this._Loc},set:function(e){this._Loc=e,h(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"showingPlaceholderText",{get:function(){return m("showingPlaceholderText",this._S,au,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"tag",{get:function(){return m("tag",this._T,au,this._isNull),this._T},set:function(e){this._T=e,h(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"title",{get:function(){return m("title",this._Ti,au,this._isNull),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(cu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,au,this._isNull),this.__R},enumerable:!0,configurable:!0}),cu.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},cu.prototype.update=function(e){this._recursivelyUpdate(e)},cu.prototype.copy=function(){i(this,"Copy",0,[],0,0)},cu.prototype.cut=function(){i(this,"Cut",0,[],0,0)},cu.prototype.delete=function(e){i(this,"Delete",0,[e],0,0)},cu.prototype.setPlaceholderText=function(e){i(this,"SetPlaceholderText",0,[e],0,0)},cu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},cu.prototype._handleResult=function(e){if(ou.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Appearance)||(this._A=t.Appearance),y(t.Color)||(this._C=t.Color),y(t.Id)||(this._I=t.Id),y(t.IsTemporary)||(this._Is=t.IsTemporary),y(t.Level)||(this._L=t.Level),y(t.LockContentControl)||(this._Lo=t.LockContentControl),y(t.LockContents)||(this._Loc=t.LockContents),y(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),y(t.Tag)||(this._T=t.Tag),y(t.Title)||(this._Ti=t.Title),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},cu.prototype.load=function(e){return b(this,e)},cu.prototype.retrieve=function(e){return v(this,e)},cu.prototype._handleIdResult=function(e){ou.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},cu.prototype._handleRetrieveResult=function(e,t){ou.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},cu.prototype.track=function(){return this.context.trackedObjects.add(this),this},cu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},cu.prototype.toJSON=function(){return O(this,{appearance:this._A,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},cu.prototype.setMockData=function(e){I(this,e)},cu.prototype.ensureUnchanged=function(e){d(this,e)},cu);function cu(){return null!==ou&&ou.apply(this,arguments)||this}a.PictureContentControl=su;var lu,uu="GroupContentControl",pu=(lu=OfficeExtension.ClientObject,__extends(fu,lu),Object.defineProperty(fu.prototype,"_className",{get:function(){return"GroupContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"placeholderText",{get:function(){return this._P||(this._P=e(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"xmlMapping",{get:function(){return this._X||(this._X=e(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"appearance",{get:function(){return m("appearance",this._A,uu,this._isNull),this._A},set:function(e){this._A=e,h(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"color",{get:function(){return m("color",this._C,uu,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"id",{get:function(){return m("id",this._I,uu,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"isTemporary",{get:function(){return m("isTemporary",this._Is,uu,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"level",{get:function(){return m("level",this._L,uu,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"lockContentControl",{get:function(){return m("lockContentControl",this._Lo,uu,this._isNull),this._Lo},set:function(e){this._Lo=e,h(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"lockContents",{get:function(){return m("lockContents",this._Loc,uu,this._isNull),this._Loc},set:function(e){this._Loc=e,h(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"showingPlaceholderText",{get:function(){return m("showingPlaceholderText",this._S,uu,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"tag",{get:function(){return m("tag",this._T,uu,this._isNull),this._T},set:function(e){this._T=e,h(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"title",{get:function(){return m("title",this._Ti,uu,this._isNull),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(fu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,uu,this._isNull),this.__R},enumerable:!0,configurable:!0}),fu.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},fu.prototype.update=function(e){this._recursivelyUpdate(e)},fu.prototype.copy=function(){i(this,"Copy",0,[],0,0)},fu.prototype.cut=function(){i(this,"Cut",0,[],0,0)},fu.prototype.delete=function(e){i(this,"Delete",0,[e],0,0)},fu.prototype.setPlaceholderText=function(e){i(this,"SetPlaceholderText",0,[e],0,0)},fu.prototype.ungroup=function(){i(this,"Ungroup",0,[],0,0)},fu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},fu.prototype._handleResult=function(e){if(lu.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Appearance)||(this._A=t.Appearance),y(t.Color)||(this._C=t.Color),y(t.Id)||(this._I=t.Id),y(t.IsTemporary)||(this._Is=t.IsTemporary),y(t.Level)||(this._L=t.Level),y(t.LockContentControl)||(this._Lo=t.LockContentControl),y(t.LockContents)||(this._Loc=t.LockContents),y(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),y(t.Tag)||(this._T=t.Tag),y(t.Title)||(this._Ti=t.Title),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},fu.prototype.load=function(e){return b(this,e)},fu.prototype.retrieve=function(e){return v(this,e)},fu.prototype._handleIdResult=function(e){lu.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},fu.prototype._handleRetrieveResult=function(e,t){lu.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},fu.prototype.track=function(){return this.context.trackedObjects.add(this),this},fu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},fu.prototype.toJSON=function(){return O(this,{appearance:this._A,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},fu.prototype.setMockData=function(e){I(this,e)},fu.prototype.ensureUnchanged=function(e){d(this,e)},fu);function fu(){return null!==lu&&lu.apply(this,arguments)||this}a.GroupContentControl=pu;var du,hu="BuildingBlockGalleryContentControl",gu=(du=OfficeExtension.ClientObject,__extends(yu,du),Object.defineProperty(yu.prototype,"_className",{get:function(){return"BuildingBlockGalleryContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","buildingBlockType","buildingBlockCategory","tag","color","appearance","level"]},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","BuildingBlockType","BuildingBlockCategory","Tag","Color","Appearance","Level"]},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"_navigationPropertyNames",{get:function(){return["range","xmlMapping","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"placeholderText",{get:function(){return this._P||(this._P=e(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"xmlMapping",{get:function(){return this._X||(this._X=e(a.XmlMapping,this,"XmlMapping",!1,4)),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"appearance",{get:function(){return m("appearance",this._A,hu,this._isNull),this._A},set:function(e){this._A=e,h(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"buildingBlockCategory",{get:function(){return m("buildingBlockCategory",this._B,hu,this._isNull),this._B},set:function(e){this._B=e,h(this,"BuildingBlockCategory",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"buildingBlockType",{get:function(){return m("buildingBlockType",this._Bu,hu,this._isNull),this._Bu},set:function(e){this._Bu=e,h(this,"BuildingBlockType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"color",{get:function(){return m("color",this._C,hu,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"id",{get:function(){return m("id",this._I,hu,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"isTemporary",{get:function(){return m("isTemporary",this._Is,hu,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"level",{get:function(){return m("level",this._L,hu,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"lockContentControl",{get:function(){return m("lockContentControl",this._Lo,hu,this._isNull),this._Lo},set:function(e){this._Lo=e,h(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"lockContents",{get:function(){return m("lockContents",this._Loc,hu,this._isNull),this._Loc},set:function(e){this._Loc=e,h(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"showingPlaceholderText",{get:function(){return m("showingPlaceholderText",this._S,hu,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"tag",{get:function(){return m("tag",this._T,hu,this._isNull),this._T},set:function(e){this._T=e,h(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"title",{get:function(){return m("title",this._Ti,hu,this._isNull),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(yu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,hu,this._isNull),this.__R},enumerable:!0,configurable:!0}),yu.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","buildingBlockType","buildingBlockCategory","tag","color","appearance"],["range","xmlMapping","placeholderText"],[])},yu.prototype.update=function(e){this._recursivelyUpdate(e)},yu.prototype.copy=function(){i(this,"Copy",0,[],0,0)},yu.prototype.cut=function(){i(this,"Cut",0,[],0,0)},yu.prototype.delete=function(e){i(this,"Delete",0,[e],0,0)},yu.prototype.setPlaceholderText=function(e){i(this,"SetPlaceholderText",0,[e],0,0)},yu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},yu.prototype._handleResult=function(e){if(du.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Appearance)||(this._A=t.Appearance),y(t.BuildingBlockCategory)||(this._B=t.BuildingBlockCategory),y(t.BuildingBlockType)||(this._Bu=t.BuildingBlockType),y(t.Color)||(this._C=t.Color),y(t.Id)||(this._I=t.Id),y(t.IsTemporary)||(this._Is=t.IsTemporary),y(t.Level)||(this._L=t.Level),y(t.LockContentControl)||(this._Lo=t.LockContentControl),y(t.LockContents)||(this._Loc=t.LockContents),y(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),y(t.Tag)||(this._T=t.Tag),y(t.Title)||(this._Ti=t.Title),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["placeholderText","PlaceholderText","range","Range","xmlMapping","XmlMapping"])}},yu.prototype.load=function(e){return b(this,e)},yu.prototype.retrieve=function(e){return v(this,e)},yu.prototype._handleIdResult=function(e){du.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},yu.prototype._handleRetrieveResult=function(e,t){du.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},yu.prototype.track=function(){return this.context.trackedObjects.add(this),this},yu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},yu.prototype.toJSON=function(){return O(this,{appearance:this._A,buildingBlockCategory:this._B,buildingBlockType:this._Bu,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R,xmlMapping:this._X})},yu.prototype.setMockData=function(e){I(this,e)},yu.prototype.ensureUnchanged=function(e){d(this,e)},yu);function yu(){return null!==du&&du.apply(this,arguments)||this}a.BuildingBlockGalleryContentControl=gu;var mu,_u="RepeatingSectionContentControl",bu=(mu=OfficeExtension.ClientObject,__extends(vu,mu),Object.defineProperty(vu.prototype,"_className",{get:function(){return"RepeatingSectionContentControl"},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","lockContentControl","lockContents","title","isTemporary","id","showingPlaceholderText","tag","color","appearance","level","repeatingSectionItemTitle","allowInsertDeleteSection"]},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","LockContentControl","LockContents","Title","IsTemporary","Id","ShowingPlaceholderText","Tag","Color","Appearance","Level","RepeatingSectionItemTitle","AllowInsertDeleteSection"]},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"_navigationPropertyNames",{get:function(){return["range","placeholderText","repeatingSectionItems"]},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"placeholderText",{get:function(){return this._P||(this._P=e(a.BuildingBlock,this,"PlaceholderText",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"repeatingSectionItems",{get:function(){return this._Re||(this._Re=e(a.RepeatingSectionItemCollection,this,"RepeatingSectionItems",!1,4)),this._Re},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"allowInsertDeleteSection",{get:function(){return m("allowInsertDeleteSection",this._A,_u,this._isNull),this._A},set:function(e){this._A=e,h(this,"AllowInsertDeleteSection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"appearance",{get:function(){return m("appearance",this._Ap,_u,this._isNull),this._Ap},set:function(e){this._Ap=e,h(this,"Appearance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"color",{get:function(){return m("color",this._C,_u,this._isNull),this._C},set:function(e){this._C=e,h(this,"Color",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"id",{get:function(){return m("id",this._I,_u,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"isTemporary",{get:function(){return m("isTemporary",this._Is,_u,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsTemporary",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"level",{get:function(){return m("level",this._L,_u,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"lockContentControl",{get:function(){return m("lockContentControl",this._Lo,_u,this._isNull),this._Lo},set:function(e){this._Lo=e,h(this,"LockContentControl",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"lockContents",{get:function(){return m("lockContents",this._Loc,_u,this._isNull),this._Loc},set:function(e){this._Loc=e,h(this,"LockContents",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"repeatingSectionItemTitle",{get:function(){return m("repeatingSectionItemTitle",this._Rep,_u,this._isNull),this._Rep},set:function(e){this._Rep=e,h(this,"RepeatingSectionItemTitle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"showingPlaceholderText",{get:function(){return m("showingPlaceholderText",this._S,_u,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"tag",{get:function(){return m("tag",this._T,_u,this._isNull),this._T},set:function(e){this._T=e,h(this,"Tag",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"title",{get:function(){return m("title",this._Ti,_u,this._isNull),this._Ti},set:function(e){this._Ti=e,h(this,"Title",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(vu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,_u,this._isNull),this.__R},enumerable:!0,configurable:!0}),vu.prototype.set=function(e,t){this._recursivelySet(e,t,["lockContentControl","lockContents","title","isTemporary","tag","color","appearance","repeatingSectionItemTitle","allowInsertDeleteSection"],["range","placeholderText"],["repeatingSectionItems"])},vu.prototype.update=function(e){this._recursivelyUpdate(e)},vu.prototype.copy=function(){i(this,"Copy",0,[],0,0)},vu.prototype.cut=function(){i(this,"Cut",0,[],0,0)},vu.prototype.delete=function(e){i(this,"Delete",0,[e],0,0)},vu.prototype.setPlaceholderText=function(e){i(this,"SetPlaceholderText",0,[e],0,0)},vu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},vu.prototype._handleResult=function(e){if(mu.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AllowInsertDeleteSection)||(this._A=t.AllowInsertDeleteSection),y(t.Appearance)||(this._Ap=t.Appearance),y(t.Color)||(this._C=t.Color),y(t.Id)||(this._I=t.Id),y(t.IsTemporary)||(this._Is=t.IsTemporary),y(t.Level)||(this._L=t.Level),y(t.LockContentControl)||(this._Lo=t.LockContentControl),y(t.LockContents)||(this._Loc=t.LockContents),y(t.RepeatingSectionItemTitle)||(this._Rep=t.RepeatingSectionItemTitle),y(t.ShowingPlaceholderText)||(this._S=t.ShowingPlaceholderText),y(t.Tag)||(this._T=t.Tag),y(t.Title)||(this._Ti=t.Title),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["placeholderText","PlaceholderText","range","Range","repeatingSectionItems","RepeatingSectionItems"])}},vu.prototype.load=function(e){return b(this,e)},vu.prototype.retrieve=function(e){return v(this,e)},vu.prototype._handleIdResult=function(e){mu.prototype._handleIdResult.call(this,e),g(e)||(y(e._ReferenceId)||(this.__R=e._ReferenceId),y(e.Id)||(this._I=e.Id))},vu.prototype._handleRetrieveResult=function(e,t){mu.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},vu.prototype.track=function(){return this.context.trackedObjects.add(this),this},vu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},vu.prototype.toJSON=function(){return O(this,{allowInsertDeleteSection:this._A,appearance:this._Ap,color:this._C,id:this._I,isTemporary:this._Is,level:this._L,lockContentControl:this._Lo,lockContents:this._Loc,repeatingSectionItemTitle:this._Rep,showingPlaceholderText:this._S,tag:this._T,title:this._Ti},{placeholderText:this._P,range:this._R})},vu.prototype.setMockData=function(e){I(this,e)},vu.prototype.ensureUnchanged=function(e){d(this,e)},vu);function vu(){return null!==mu&&mu.apply(this,arguments)||this}a.RepeatingSectionContentControl=bu;var Ou,Pu="ReadabilityStatistic",Cu=(Ou=OfficeExtension.ClientObject,__extends(Ru,Ou),Object.defineProperty(Ru.prototype,"_className",{get:function(){return"ReadabilityStatistic"},enumerable:!0,configurable:!0}),Object.defineProperty(Ru.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","name","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ru.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Name","Value"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ru.prototype,"name",{get:function(){return m("name",this._N,Pu,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(Ru.prototype,"value",{get:function(){return m("value",this._V,Pu,this._isNull),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(Ru.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Pu,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ru.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ru.prototype._handleResult=function(e){if(Ou.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Name)||(this._N=t.Name),y(t.Value)||(this._V=t.Value),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Ru.prototype.load=function(e){return b(this,e)},Ru.prototype.retrieve=function(e){return v(this,e)},Ru.prototype._handleIdResult=function(e){Ou.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ru.prototype._handleRetrieveResult=function(e,t){Ou.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ru.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ru.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ru.prototype.toJSON=function(){return O(this,{},{})},Ru.prototype.setMockData=function(e){I(this,e)},Ru.prototype.ensureUnchanged=function(e){d(this,e)},Ru);function Ru(){return null!==Ou&&Ou.apply(this,arguments)||this}a.ReadabilityStatistic=Cu;var Su,Iu="ReadabilityStatisticCollection",Au=(Su=OfficeExtension.ClientObject,__extends(Tu,Su),Object.defineProperty(Tu.prototype,"_className",{get:function(){return"ReadabilityStatisticCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Tu.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Tu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tu.prototype,"items",{get:function(){return m("items",this.m__items,Iu,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Tu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Iu,this._isNull),this.__R},enumerable:!0,configurable:!0}),Tu.prototype.getItemAt=function(e){return p(a.ReadabilityStatistic,this,"GetItemAt",1,[e],!1,!1,null,4)},Tu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Tu.prototype._handleResult=function(e){if(Su.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ReadabilityStatistic,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Tu.prototype.load=function(e){return b(this,e)},Tu.prototype.retrieve=function(e){return v(this,e)},Tu.prototype._handleIdResult=function(e){Su.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Tu.prototype._handleRetrieveResult=function(e,t){var n=this;Su.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.ReadabilityStatistic,!1,n,e,t)})},Tu.prototype.track=function(){return this.context.trackedObjects.add(this),this},Tu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Tu.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Tu.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.ReadabilityStatistic,!1,n,e,t)},function(e){return n.m__items=e})},Tu);function Tu(){return null!==Su&&Su.apply(this,arguments)||this}a.ReadabilityStatisticCollection=Au;var Nu,Du="WebSettings",xu=(Nu=OfficeExtension.ClientObject,__extends(Eu,Nu),Object.defineProperty(Eu.prototype,"_className",{get:function(){return"WebSettings"},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","relyOnCSS","organizeInFolder","useLongFileNames","relyOnVectorMarkupLanguage","allowPng","screenSize","pixelsPerInch","encoding","folderSuffix","targetBrowser"]},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","RelyOnCSS","OrganizeInFolder","UseLongFileNames","RelyOnVectorMarkupLanguage","AllowPng","ScreenSize","PixelsPerInch","Encoding","FolderSuffix","TargetBrowser"]},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"allowPng",{get:function(){return m("allowPng",this._A,Du,this._isNull),this._A},set:function(e){this._A=e,h(this,"AllowPng",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"encoding",{get:function(){return m("encoding",this._E,Du,this._isNull),this._E},set:function(e){this._E=e,h(this,"Encoding",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"folderSuffix",{get:function(){return m("folderSuffix",this._F,Du,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"organizeInFolder",{get:function(){return m("organizeInFolder",this._O,Du,this._isNull),this._O},set:function(e){this._O=e,h(this,"OrganizeInFolder",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"pixelsPerInch",{get:function(){return m("pixelsPerInch",this._P,Du,this._isNull),this._P},set:function(e){this._P=e,h(this,"PixelsPerInch",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"relyOnCSS",{get:function(){return m("relyOnCSS",this._R,Du,this._isNull),this._R},set:function(e){this._R=e,h(this,"RelyOnCSS",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"relyOnVectorMarkupLanguage",{get:function(){return m("relyOnVectorMarkupLanguage",this._Re,Du,this._isNull),this._Re},set:function(e){this._Re=e,h(this,"RelyOnVectorMarkupLanguage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"screenSize",{get:function(){return m("screenSize",this._S,Du,this._isNull),this._S},set:function(e){this._S=e,h(this,"ScreenSize",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"targetBrowser",{get:function(){return m("targetBrowser",this._T,Du,this._isNull),this._T},set:function(e){this._T=e,h(this,"TargetBrowser",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"useLongFileNames",{get:function(){return m("useLongFileNames",this._U,Du,this._isNull),this._U},set:function(e){this._U=e,h(this,"UseLongFileNames",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Eu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Du,this._isNull),this.__R},enumerable:!0,configurable:!0}),Eu.prototype.useDefaultFolderSuffix=function(){i(this,"UseDefaultFolderSuffix",0,[],0,0)},Eu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Eu.prototype._handleResult=function(e){if(Nu.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.AllowPng)||(this._A=t.AllowPng),y(t.Encoding)||(this._E=t.Encoding),y(t.FolderSuffix)||(this._F=t.FolderSuffix),y(t.OrganizeInFolder)||(this._O=t.OrganizeInFolder),y(t.PixelsPerInch)||(this._P=t.PixelsPerInch),y(t.RelyOnCSS)||(this._R=t.RelyOnCSS),y(t.RelyOnVectorMarkupLanguage)||(this._Re=t.RelyOnVectorMarkupLanguage),y(t.ScreenSize)||(this._S=t.ScreenSize),y(t.TargetBrowser)||(this._T=t.TargetBrowser),y(t.UseLongFileNames)||(this._U=t.UseLongFileNames),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Eu.prototype.load=function(e){return b(this,e)},Eu.prototype.retrieve=function(e){return v(this,e)},Eu.prototype._handleIdResult=function(e){Nu.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Eu.prototype._handleRetrieveResult=function(e,t){Nu.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Eu.prototype.track=function(){return this.context.trackedObjects.add(this),this},Eu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Eu.prototype.toJSON=function(){return O(this,{},{})},Eu.prototype.setMockData=function(e){I(this,e)},Eu.prototype.ensureUnchanged=function(e){d(this,e)},Eu);function Eu(){return null!==Nu&&Nu.apply(this,arguments)||this}a.WebSettings=xu;var ku,ju="XmlNodeCollection",wu=(ku=OfficeExtension.ClientObject,__extends(Fu,ku),Object.defineProperty(Fu.prototype,"_className",{get:function(){return"XmlNodeCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Fu.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Fu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fu.prototype,"items",{get:function(){return m("items",this.m__items,ju,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Fu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ju,this._isNull),this.__R},enumerable:!0,configurable:!0}),Fu.prototype.getItemAt=function(e){return p(a.XmlNode,this,"GetItemAt",1,[e],!1,!1,null,4)},Fu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Fu.prototype._handleResult=function(e){if(ku.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.XmlNode,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Fu.prototype.load=function(e){return b(this,e)},Fu.prototype.retrieve=function(e){return v(this,e)},Fu.prototype._handleIdResult=function(e){ku.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Fu.prototype._handleRetrieveResult=function(e,t){var n=this;ku.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.XmlNode,!1,n,e,t)})},Fu.prototype.track=function(){return this.context.trackedObjects.add(this),this},Fu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Fu.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Fu.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.XmlNode,!1,n,e,t)},function(e){return n.m__items=e})},Fu);function Fu(){return null!==ku&&ku.apply(this,arguments)||this}a.XmlNodeCollection=wu;var Lu,Mu,Bu,Hu,Uu,Wu,Gu,Vu="XmlNode",zu=(Lu=OfficeExtension.ClientObject,__extends(qu,Lu),Object.defineProperty(qu.prototype,"_className",{get:function(){return"XmlNode"},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","baseName","text","namespaceUri","hasChildNodes","level","validationStatus","validationErrorText","placeholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BaseName","Text","NamespaceUri","HasChildNodes","Level","ValidationStatus","ValidationErrorText","PlaceholderText"]},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!1,!1,!1,!1,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"_navigationPropertyNames",{get:function(){return["range","nextSibling","previousSibling","parentNode","firstChild","lastChild","ownerDocument","childNodes","attributes"]},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"attributes",{get:function(){return this._A||(this._A=e(a.XmlNodeCollection,this,"Attributes",!0,4)),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"childNodes",{get:function(){return this._C||(this._C=e(a.XmlNodeCollection,this,"ChildNodes",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"firstChild",{get:function(){return this._F||(this._F=e(a.XmlNode,this,"FirstChild",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"lastChild",{get:function(){return this._L||(this._L=e(a.XmlNode,this,"LastChild",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"nextSibling",{get:function(){return this._Ne||(this._Ne=e(a.XmlNode,this,"NextSibling",!1,4)),this._Ne},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"ownerDocument",{get:function(){return this._O||(this._O=e(a.Document,this,"OwnerDocument",!1,4)),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"parentNode",{get:function(){return this._P||(this._P=e(a.XmlNode,this,"ParentNode",!1,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"previousSibling",{get:function(){return this._Pr||(this._Pr=e(a.XmlNode,this,"PreviousSibling",!1,4)),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"baseName",{get:function(){return m("baseName",this._B,Vu,this._isNull),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"hasChildNodes",{get:function(){return m("hasChildNodes",this._H,Vu,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"level",{get:function(){return m("level",this._Le,Vu,this._isNull),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"namespaceUri",{get:function(){return m("namespaceUri",this._N,Vu,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"placeholderText",{get:function(){return m("placeholderText",this._Pl,Vu,this._isNull),this._Pl},set:function(e){this._Pl=e,h(this,"PlaceholderText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"text",{get:function(){return m("text",this._T,Vu,this._isNull),this._T},set:function(e){this._T=e,h(this,"Text",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"validationErrorText",{get:function(){return m("validationErrorText",this._V,Vu,this._isNull),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"validationStatus",{get:function(){return m("validationStatus",this._Va,Vu,this._isNull),this._Va},enumerable:!0,configurable:!0}),Object.defineProperty(qu.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Vu,this._isNull),this.__R},enumerable:!0,configurable:!0}),qu.prototype.copy=function(){i(this,"Copy",0,[],0,0)},qu.prototype.cut=function(){i(this,"Cut",0,[],0,0)},qu.prototype.delete=function(){i(this,"Delete",0,[],0,0)},qu.prototype.removeChild=function(e){i(this,"RemoveChild",0,[e],0,0)},qu.prototype.selectNodes=function(e,t){return p(a.XmlNodeCollection,this,"SelectNodes",0,[e,t],!0,!1,null,0)},qu.prototype.selectSingleNode=function(e,t){return p(a.XmlNode,this,"SelectSingleNode",0,[e,t],!1,!1,null,0)},qu.prototype.setValidationError=function(e,t){i(this,"SetValidationError",0,[e,t],0,0)},qu.prototype.validate=function(){i(this,"Validate",0,[],0,0)},qu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},qu.prototype._handleResult=function(e){if(Lu.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BaseName)||(this._B=t.BaseName),y(t.HasChildNodes)||(this._H=t.HasChildNodes),y(t.Level)||(this._Le=t.Level),y(t.NamespaceUri)||(this._N=t.NamespaceUri),y(t.PlaceholderText)||(this._Pl=t.PlaceholderText),y(t.Text)||(this._T=t.Text),y(t.ValidationErrorText)||(this._V=t.ValidationErrorText),y(t.ValidationStatus)||(this._Va=t.ValidationStatus),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["attributes","Attributes","childNodes","ChildNodes","firstChild","FirstChild","lastChild","LastChild","nextSibling","NextSibling","ownerDocument","OwnerDocument","parentNode","ParentNode","previousSibling","PreviousSibling","range","Range"])}},qu.prototype.load=function(e){return b(this,e)},qu.prototype.retrieve=function(e){return v(this,e)},qu.prototype._handleIdResult=function(e){Lu.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},qu.prototype._handleRetrieveResult=function(e,t){Lu.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},qu.prototype.track=function(){return this.context.trackedObjects.add(this),this},qu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},qu.prototype.toJSON=function(){return O(this,{},{})},qu.prototype.setMockData=function(e){I(this,e)},qu.prototype.ensureUnchanged=function(e){d(this,e)},qu);function qu(){return null!==Lu&&Lu.apply(this,arguments)||this}a.XmlNode=zu,(Mu=a.XmlNodeType||(a.XmlNodeType={})).element="Element",Mu.attribute="Attribute",(Bu=a.XmlValidationStatus||(a.XmlValidationStatus={})).ok="Ok",Bu.custom="Custom",(Hu=a.XmlNodeLevel||(a.XmlNodeLevel={})).inline="Inline",Hu.paragraph="Paragraph",Hu.row="Row",Hu.cell="Cell",(Uu=a.ApplyQuickStyleSet||(a.ApplyQuickStyleSet={})).sessionStart="SessionStart",Uu.template="Template",(Wu=a.ScreenSize||(a.ScreenSize={})).size544x376="Size544x376",Wu.size640x480="Size640x480",Wu.size720x512="Size720x512",Wu.size800x600="Size800x600",Wu.size1024x768="Size1024x768",Wu.size1152x882="Size1152x882",Wu.size1152x900="Size1152x900",Wu.size1280x1024="Size1280x1024",Wu.size1600x1200="Size1600x1200",Wu.size1800x1440="Size1800x1440",Wu.size1920x1200="Size1920x1200",(Gu=a.TargetBrowser||(a.TargetBrowser={})).v3="V3",Gu.v4="V4",Gu.ie4="Ie4",Gu.ie5="Ie5",Gu.ie6="Ie6";var Ku,Ju="HtmlDivision",Xu=(Ku=OfficeExtension.ClientObject,__extends(Qu,Ku),Object.defineProperty(Qu.prototype,"_className",{get:function(){return"HtmlDivision"},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"_scalarPropertyNames",{get:function(){return["leftIndent","rightIndent","spaceBefore","spaceAfter"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"_scalarPropertyOriginalNames",{get:function(){return["LeftIndent","RightIndent","SpaceBefore","SpaceAfter"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"_navigationPropertyNames",{get:function(){return["range","htmlDivisions"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"htmlDivisions",{get:function(){return this._H||(this._H=e(a.HtmlDivisionCollection,this,"HtmlDivisions",!0,4)),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"leftIndent",{get:function(){return m("leftIndent",this._L,Ju,this._isNull),this._L},set:function(e){this._L=e,h(this,"LeftIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"rightIndent",{get:function(){return m("rightIndent",this._Ri,Ju,this._isNull),this._Ri},set:function(e){this._Ri=e,h(this,"RightIndent",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"spaceAfter",{get:function(){return m("spaceAfter",this._S,Ju,this._isNull),this._S},set:function(e){this._S=e,h(this,"SpaceAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Qu.prototype,"spaceBefore",{get:function(){return m("spaceBefore",this._Sp,Ju,this._isNull),this._Sp},set:function(e){this._Sp=e,h(this,"SpaceBefore",e,0)},enumerable:!0,configurable:!0}),Qu.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Qu.prototype.htmlDivisionParent=function(e){return p(a.HtmlDivision,this,"HtmlDivisionParent",0,[e],!1,!1,null,0)},Qu.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Qu.prototype._handleResult=function(e){if(Ku.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.LeftIndent)||(this._L=t.LeftIndent),y(t.RightIndent)||(this._Ri=t.RightIndent),y(t.SpaceAfter)||(this._S=t.SpaceAfter),y(t.SpaceBefore)||(this._Sp=t.SpaceBefore),C(this,t,["htmlDivisions","HtmlDivisions","range","Range"])}},Qu.prototype.load=function(e){return b(this,e)},Qu.prototype.retrieve=function(e){return v(this,e)},Qu.prototype._handleRetrieveResult=function(e,t){Ku.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Qu.prototype.track=function(){return this.context.trackedObjects.add(this),this},Qu.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Qu.prototype.toJSON=function(){return O(this,{},{})},Qu.prototype.setMockData=function(e){I(this,e)},Qu.prototype.ensureUnchanged=function(e){d(this,e)},Qu);function Qu(){return null!==Ku&&Ku.apply(this,arguments)||this}a.HtmlDivision=Xu;var Yu,Zu,$u,ep=(Yu=OfficeExtension.ClientObject,__extends(tp,Yu),Object.defineProperty(tp.prototype,"_className",{get:function(){return"HtmlDivisionCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(tp.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(tp.prototype,"items",{get:function(){return m("items",this.m__items,"HtmlDivisionCollection",this._isNull),this.m__items},enumerable:!0,configurable:!0}),tp.prototype.getItemAt=function(e){return p(a.HtmlDivision,this,"GetItemAt",1,[e],!1,!1,null,4)},tp.prototype._handleResult=function(e){if(Yu.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.HtmlDivision,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},tp.prototype.load=function(e){return b(this,e)},tp.prototype.retrieve=function(e){return v(this,e)},tp.prototype._handleRetrieveResult=function(e,t){var n=this;Yu.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.HtmlDivision,!1,n,e,t)})},tp.prototype.toJSON=function(){return O(this,{},{},this.m__items)},tp.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.HtmlDivision,!1,n,e,t)},function(e){return n.m__items=e})},tp);function tp(){return null!==Yu&&Yu.apply(this,arguments)||this}a.HtmlDivisionCollection=ep,(Zu=a.CalendarType||(a.CalendarType={})).western="Western",Zu.arabic="Arabic",Zu.hebrew="Hebrew",Zu.taiwan="Taiwan",Zu.japan="Japan",Zu.thai="Thai",Zu.korean="Korean",Zu.sakaEra="SakaEra",Zu.translitEnglish="TranslitEnglish",Zu.translitFrench="TranslitFrench",Zu.umalqura="Umalqura",($u=a.ContentControlDateStorageFormat||(a.ContentControlDateStorageFormat={})).text="Text",$u.date="Date",$u.dateTime="DateTime";var np,rp="Frame",ip=(np=OfficeExtension.ClientObject,__extends(op,np),Object.defineProperty(op.prototype,"_className",{get:function(){return"Frame"},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","height","heightRule","horizontalDistanceFromText","horizontalPosition","lockAnchor","relativeHorizontalPosition","relativeVerticalPosition","textWrap","verticalDistanceFromText","verticalPosition","width","widthRule"]},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Height","HeightRule","HorizontalDistanceFromText","HorizontalPosition","LockAnchor","RelativeHorizontalPosition","RelativeVerticalPosition","TextWrap","VerticalDistanceFromText","VerticalPosition","Width","WidthRule"]},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"_navigationPropertyNames",{get:function(){return["borders","range","shading"]},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"borders",{get:function(){return this._B||(this._B=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"shading",{get:function(){return this._S||(this._S=e(a.ShadingUniversal,this,"Shading",!1,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"height",{get:function(){return m("height",this._H,rp,this._isNull),this._H},set:function(e){this._H=e,h(this,"Height",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"heightRule",{get:function(){return m("heightRule",this._He,rp,this._isNull),this._He},set:function(e){this._He=e,h(this,"HeightRule",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"horizontalDistanceFromText",{get:function(){return m("horizontalDistanceFromText",this._Ho,rp,this._isNull),this._Ho},set:function(e){this._Ho=e,h(this,"HorizontalDistanceFromText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"horizontalPosition",{get:function(){return m("horizontalPosition",this._Hor,rp,this._isNull),this._Hor},set:function(e){this._Hor=e,h(this,"HorizontalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"lockAnchor",{get:function(){return m("lockAnchor",this._L,rp,this._isNull),this._L},set:function(e){this._L=e,h(this,"LockAnchor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"relativeHorizontalPosition",{get:function(){return m("relativeHorizontalPosition",this._Re,rp,this._isNull),this._Re},set:function(e){this._Re=e,h(this,"RelativeHorizontalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"relativeVerticalPosition",{get:function(){return m("relativeVerticalPosition",this._Rel,rp,this._isNull),this._Rel},set:function(e){this._Rel=e,h(this,"RelativeVerticalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"textWrap",{get:function(){return m("textWrap",this._T,rp,this._isNull),this._T},set:function(e){this._T=e,h(this,"TextWrap",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"verticalDistanceFromText",{get:function(){return m("verticalDistanceFromText",this._V,rp,this._isNull),this._V},set:function(e){this._V=e,h(this,"VerticalDistanceFromText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"verticalPosition",{get:function(){return m("verticalPosition",this._Ve,rp,this._isNull),this._Ve},set:function(e){this._Ve=e,h(this,"VerticalPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"width",{get:function(){return m("width",this._W,rp,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"widthRule",{get:function(){return m("widthRule",this._Wi,rp,this._isNull),this._Wi},set:function(e){this._Wi=e,h(this,"WidthRule",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(op.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,rp,this._isNull),this.__R},enumerable:!0,configurable:!0}),op.prototype.set=function(e,t){this._recursivelySet(e,t,["height","heightRule","horizontalDistanceFromText","horizontalPosition","lockAnchor","relativeHorizontalPosition","relativeVerticalPosition","textWrap","verticalDistanceFromText","verticalPosition","width","widthRule"],["range","shading"],["borders"])},op.prototype.update=function(e){this._recursivelyUpdate(e)},op.prototype.copy=function(){i(this,"Copy",0,[],0,0)},op.prototype.cut=function(){i(this,"Cut",0,[],0,0)},op.prototype.delete=function(){i(this,"Delete",0,[],0,0)},op.prototype.select=function(){i(this,"Select",0,[],0,0)},op.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},op.prototype._handleResult=function(e){if(np.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Height)||(this._H=t.Height),y(t.HeightRule)||(this._He=t.HeightRule),y(t.HorizontalDistanceFromText)||(this._Ho=t.HorizontalDistanceFromText),y(t.HorizontalPosition)||(this._Hor=t.HorizontalPosition),y(t.LockAnchor)||(this._L=t.LockAnchor),y(t.RelativeHorizontalPosition)||(this._Re=t.RelativeHorizontalPosition),y(t.RelativeVerticalPosition)||(this._Rel=t.RelativeVerticalPosition),y(t.TextWrap)||(this._T=t.TextWrap),y(t.VerticalDistanceFromText)||(this._V=t.VerticalDistanceFromText),y(t.VerticalPosition)||(this._Ve=t.VerticalPosition),y(t.Width)||(this._W=t.Width),y(t.WidthRule)||(this._Wi=t.WidthRule),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","range","Range","shading","Shading"])}},op.prototype.load=function(e){return b(this,e)},op.prototype.retrieve=function(e){return v(this,e)},op.prototype._handleIdResult=function(e){np.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},op.prototype._handleRetrieveResult=function(e,t){np.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},op.prototype.track=function(){return this.context.trackedObjects.add(this),this},op.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},op.prototype.toJSON=function(){return O(this,{height:this._H,heightRule:this._He,horizontalDistanceFromText:this._Ho,horizontalPosition:this._Hor,lockAnchor:this._L,relativeHorizontalPosition:this._Re,relativeVerticalPosition:this._Rel,textWrap:this._T,verticalDistanceFromText:this._V,verticalPosition:this._Ve,width:this._W,widthRule:this._Wi},{borders:this._B,range:this._R,shading:this._S})},op.prototype.setMockData=function(e){I(this,e)},op.prototype.ensureUnchanged=function(e){d(this,e)},op);function op(){return null!==np&&np.apply(this,arguments)||this}a.Frame=ip;var ap,sp="FrameCollection",cp=(ap=OfficeExtension.ClientObject,__extends(lp,ap),Object.defineProperty(lp.prototype,"_className",{get:function(){return"FrameCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(lp.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(lp.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(lp.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(lp.prototype,"items",{get:function(){return m("items",this.m__items,sp,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(lp.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,sp,this._isNull),this.__R},enumerable:!0,configurable:!0}),lp.prototype.add=function(e){return p(a.Frame,this,"Add",1,[e],!1,!0,null,4)},lp.prototype.delete=function(){i(this,"Delete",1,[],4,0)},lp.prototype.getItem=function(e){return t(a.Frame,this,[e])},lp.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},lp.prototype._handleResult=function(e){if(ap.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Frame,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},lp.prototype.load=function(e){return b(this,e)},lp.prototype.retrieve=function(e){return v(this,e)},lp.prototype._handleIdResult=function(e){ap.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},lp.prototype._handleRetrieveResult=function(e,t){var n=this;ap.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Frame,!0,n,e,t)})},lp.prototype.track=function(){return this.context.trackedObjects.add(this),this},lp.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},lp.prototype.toJSON=function(){return O(this,{},{},this.m__items)},lp.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Frame,!0,n,e,t)},function(e){return n.m__items=e})},lp);function lp(){return null!==ap&&ap.apply(this,arguments)||this}a.FrameCollection=cp;var up,pp="DocumentLibraryVersion",fp=(up=OfficeExtension.ClientObject,__extends(dp,up),Object.defineProperty(dp.prototype,"_className",{get:function(){return"DocumentLibraryVersion"},enumerable:!0,configurable:!0}),Object.defineProperty(dp.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","comments","modified","modifiedBy"]},enumerable:!0,configurable:!0}),Object.defineProperty(dp.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Comments","Modified","ModifiedBy"]},enumerable:!0,configurable:!0}),Object.defineProperty(dp.prototype,"comments",{get:function(){return m("comments",this._C,pp,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(dp.prototype,"modified",{get:function(){return m("modified",this._M,pp,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(dp.prototype,"modifiedBy",{get:function(){return m("modifiedBy",this._Mo,pp,this._isNull),this._Mo},enumerable:!0,configurable:!0}),Object.defineProperty(dp.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,pp,this._isNull),this.__R},enumerable:!0,configurable:!0}),dp.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},dp.prototype._handleResult=function(e){if(up.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Comments)||(this._C=t.Comments),y(t.Modified)||(this._M=t.Modified),y(t.ModifiedBy)||(this._Mo=t.ModifiedBy),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},dp.prototype.load=function(e){return b(this,e)},dp.prototype.retrieve=function(e){return v(this,e)},dp.prototype._handleIdResult=function(e){up.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},dp.prototype._handleRetrieveResult=function(e,t){up.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},dp.prototype.track=function(){return this.context.trackedObjects.add(this),this},dp.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},dp.prototype.toJSON=function(){return O(this,{comments:this._C,modified:this._M,modifiedBy:this._Mo},{})},dp.prototype.setMockData=function(e){I(this,e)},dp.prototype.ensureUnchanged=function(e){d(this,e)},dp);function dp(){return null!==up&&up.apply(this,arguments)||this}a.DocumentLibraryVersion=fp;var hp,gp,yp,mp,_p,bp,vp,Op,Pp="DocumentLibraryVersionCollection",Cp=(hp=OfficeExtension.ClientObject,__extends(Rp,hp),Object.defineProperty(Rp.prototype,"_className",{get:function(){return"DocumentLibraryVersionCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Rp.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Rp.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rp.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rp.prototype,"items",{get:function(){return m("items",this.m__items,Pp,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Rp.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Pp,this._isNull),this.__R},enumerable:!0,configurable:!0}),Rp.prototype.getItem=function(e){return t(a.DocumentLibraryVersion,this,[e])},Rp.prototype.isVersioningEnabled=function(){return i(this,"IsVersioningEnabled",0,[],0,0)},Rp.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Rp.prototype._handleResult=function(e){if(hp.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.DocumentLibraryVersion,!0,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Rp.prototype.load=function(e){return b(this,e)},Rp.prototype.retrieve=function(e){return v(this,e)},Rp.prototype._handleIdResult=function(e){hp.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Rp.prototype._handleRetrieveResult=function(e,t){var n=this;hp.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.DocumentLibraryVersion,!0,n,e,t)})},Rp.prototype.track=function(){return this.context.trackedObjects.add(this),this},Rp.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Rp.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Rp.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.DocumentLibraryVersion,!0,n,e,t)},function(e){return n.m__items=e})},Rp);function Rp(){return null!==hp&&hp.apply(this,arguments)||this}a.DocumentLibraryVersionCollection=Cp,(gp=a.ChangeTrackingMode||(a.ChangeTrackingMode={})).off="Off",gp.trackAll="TrackAll",gp.trackMineOnly="TrackMineOnly",(yp=a.ChangeTrackingVersion||(a.ChangeTrackingVersion={})).original="Original",yp.current="Current",(mp=a.ChangeTrackingState||(a.ChangeTrackingState={})).unknown="Unknown",mp.normal="Normal",mp.added="Added",mp.deleted="Deleted",(_p=a.TrackedChangeType||(a.TrackedChangeType={})).none="None",_p.added="Added",_p.deleted="Deleted",_p.formatted="Formatted",(bp=a.NoteItemType||(a.NoteItemType={})).footnote="Footnote",bp.endnote="Endnote",(vp=a.EventType||(a.EventType={})).contentControlDeleted="ContentControlDeleted",vp.contentControlSelectionChanged="ContentControlSelectionChanged",vp.contentControlDataChanged="ContentControlDataChanged",vp.contentControlAdded="ContentControlAdded",vp.annotationAdded="AnnotationAdded",vp.annotationChanged="AnnotationChanged",vp.annotationDeleted="AnnotationDeleted",vp.contentControlEntered="ContentControlEntered",vp.contentControlExited="ContentControlExited",vp.documentWordCountChanged="DocumentWordCountChanged",vp.paragraphAdded="ParagraphAdded",vp.paragraphChanged="ParagraphChanged",vp.paragraphDeleted="ParagraphDeleted",vp.annotationClicked="AnnotationClicked",vp.annotationHovered="AnnotationHovered",vp.annotationInserted="AnnotationInserted",vp.annotationRemoved="AnnotationRemoved",vp.annotationPopupAction="AnnotationPopupAction",(Op=a.EventSource||(a.EventSource={})).local="Local",Op.remote="Remote";var Sp,Ip,Ap,Tp,Np,Dp,xp,Ep,kp,jp,wp,Fp,Lp,Mp,Bp,Hp,Up,Wp,Gp,Vp,zp,qp,Kp,Jp,Xp,Qp,Yp,Zp,$p,ef,tf,nf,rf,of,af,sf,cf,lf,uf,pf,ff,df,hf,gf,yf,mf,_f,bf,vf,Of,Pf,Cf,Rf,Sf,If,Af,Tf,Nf,Df,xf,Ef,kf,jf,wf,Ff,Lf,Mf,Bf,Hf,Uf,Wf,Gf,Vf,zf,qf,Kf,Jf,Xf,Qf,Yf,Zf,$f,ed,td,nd,rd,id,od,ad,sd="DropCap",cd=(Sp=OfficeExtension.ClientObject,__extends(ld,Sp),Object.defineProperty(ld.prototype,"_className",{get:function(){return"DropCap"},enumerable:!0,configurable:!0}),Object.defineProperty(ld.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","distanceFromText","fontName","linesToDrop","position"]},enumerable:!0,configurable:!0}),Object.defineProperty(ld.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","DistanceFromText","FontName","LinesToDrop","Position"]},enumerable:!0,configurable:!0}),Object.defineProperty(ld.prototype,"distanceFromText",{get:function(){return m("distanceFromText",this._D,sd,this._isNull),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(ld.prototype,"fontName",{get:function(){return m("fontName",this._F,sd,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(ld.prototype,"linesToDrop",{get:function(){return m("linesToDrop",this._L,sd,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(ld.prototype,"position",{get:function(){return m("position",this._P,sd,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(ld.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,sd,this._isNull),this.__R},enumerable:!0,configurable:!0}),ld.prototype.clear=function(){i(this,"Clear",0,[],0,0)},ld.prototype.enable=function(){i(this,"Enable",0,[],0,0)},ld.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ld.prototype._handleResult=function(e){if(Sp.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.DistanceFromText)||(this._D=t.DistanceFromText),y(t.FontName)||(this._F=t.FontName),y(t.LinesToDrop)||(this._L=t.LinesToDrop),y(t.Position)||(this._P=t.Position),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},ld.prototype.load=function(e){return b(this,e)},ld.prototype.retrieve=function(e){return v(this,e)},ld.prototype._handleIdResult=function(e){Sp.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ld.prototype._handleRetrieveResult=function(e,t){Sp.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ld.prototype.track=function(){return this.context.trackedObjects.add(this),this},ld.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ld.prototype.toJSON=function(){return O(this,{},{})},ld.prototype.setMockData=function(e){I(this,e)},ld.prototype.ensureUnchanged=function(e){d(this,e)},ld);function ld(){return null!==Sp&&Sp.apply(this,arguments)||this}a.DropCap=cd,(Ip=a.ContentControlType||(a.ContentControlType={})).unknown="Unknown",Ip.richTextInline="RichTextInline",Ip.richTextParagraphs="RichTextParagraphs",Ip.richTextTableCell="RichTextTableCell",Ip.richTextTableRow="RichTextTableRow",Ip.richTextTable="RichTextTable",Ip.plainTextInline="PlainTextInline",Ip.plainTextParagraph="PlainTextParagraph",Ip.picture="Picture",Ip.buildingBlockGallery="BuildingBlockGallery",Ip.checkBox="CheckBox",Ip.comboBox="ComboBox",Ip.dropDownList="DropDownList",Ip.datePicker="DatePicker",Ip.repeatingSection="RepeatingSection",Ip.richText="RichText",Ip.plainText="PlainText",Ip.group="Group",(Ap=a.ContentControlAppearance||(a.ContentControlAppearance={})).boundingBox="BoundingBox",Ap.tags="Tags",Ap.hidden="Hidden",(Tp=a.ContentControlLevel||(a.ContentControlLevel={})).inline="Inline",Tp.paragraph="Paragraph",Tp.row="Row",Tp.cell="Cell",(Np=a.UnderlineType||(a.UnderlineType={})).mixed="Mixed",Np.none="None",Np.hidden="Hidden",Np.dotLine="DotLine",Np.single="Single",Np.word="Word",Np.double="Double",Np.thick="Thick",Np.dotted="Dotted",Np.dottedHeavy="DottedHeavy",Np.dashLine="DashLine",Np.dashLineHeavy="DashLineHeavy",Np.dashLineLong="DashLineLong",Np.dashLineLongHeavy="DashLineLongHeavy",Np.dotDashLine="DotDashLine",Np.dotDashLineHeavy="DotDashLineHeavy",Np.twoDotDashLine="TwoDotDashLine",Np.twoDotDashLineHeavy="TwoDotDashLineHeavy",Np.wave="Wave",Np.waveHeavy="WaveHeavy",Np.waveDouble="WaveDouble",(Dp=a.BreakType||(a.BreakType={})).page="Page",Dp.next="Next",Dp.sectionNext="SectionNext",Dp.sectionContinuous="SectionContinuous",Dp.sectionEven="SectionEven",Dp.sectionOdd="SectionOdd",Dp.line="Line",(xp=a.InsertLocation||(a.InsertLocation={})).before="Before",xp.after="After",xp.start="Start",xp.end="End",xp.replace="Replace",(Ep=a.Alignment||(a.Alignment={})).mixed="Mixed",Ep.unknown="Unknown",Ep.left="Left",Ep.centered="Centered",Ep.right="Right",Ep.justified="Justified",(kp=a.HeaderFooterType||(a.HeaderFooterType={})).primary="Primary",kp.firstPage="FirstPage",kp.evenPages="EvenPages",(jp=a.BodyType||(a.BodyType={})).unknown="Unknown",jp.mainDoc="MainDoc",jp.section="Section",jp.header="Header",jp.footer="Footer",jp.tableCell="TableCell",jp.footnote="Footnote",jp.endnote="Endnote",jp.noteItem="NoteItem",(wp=a.SelectionMode||(a.SelectionMode={})).select="Select",wp.start="Start",wp.end="End",(Fp=a.ImageFormat||(a.ImageFormat={})).unsupported="Unsupported",Fp[void 0]="Undefined",Fp.bmp="Bmp",Fp.jpeg="Jpeg",Fp.gif="Gif",Fp.tiff="Tiff",Fp.png="Png",Fp.icon="Icon",Fp.exif="Exif",Fp.wmf="Wmf",Fp.emf="Emf",Fp.pict="Pict",Fp.pdf="Pdf",Fp.svg="Svg",(Lp=a.RangeLocation||(a.RangeLocation={})).whole="Whole",Lp.start="Start",Lp.end="End",Lp.before="Before",Lp.after="After",Lp.content="Content",(Mp=a.LocationRelation||(a.LocationRelation={})).unrelated="Unrelated",Mp.equal="Equal",Mp.containsStart="ContainsStart",Mp.containsEnd="ContainsEnd",Mp.contains="Contains",Mp.insideStart="InsideStart",Mp.insideEnd="InsideEnd",Mp.inside="Inside",Mp.adjacentBefore="AdjacentBefore",Mp.overlapsBefore="OverlapsBefore",Mp.before="Before",Mp.adjacentAfter="AdjacentAfter",Mp.overlapsAfter="OverlapsAfter",Mp.after="After",(Bp=a.BorderLocation||(a.BorderLocation={})).top="Top",Bp.left="Left",Bp.bottom="Bottom",Bp.right="Right",Bp.insideHorizontal="InsideHorizontal",Bp.insideVertical="InsideVertical",Bp.inside="Inside",Bp.outside="Outside",Bp.all="All",(Hp=a.CellPaddingLocation||(a.CellPaddingLocation={})).top="Top",Hp.left="Left",Hp.bottom="Bottom",Hp.right="Right",(Up=a.BorderWidth||(a.BorderWidth={})).none="None",Up.pt025="Pt025",Up.pt050="Pt050",Up.pt075="Pt075",Up.pt100="Pt100",Up.pt150="Pt150",Up.pt225="Pt225",Up.pt300="Pt300",Up.pt450="Pt450",Up.pt600="Pt600",Up.mixed="Mixed",(Wp=a.BorderType||(a.BorderType={})).mixed="Mixed",Wp.none="None",Wp.single="Single",Wp.double="Double",Wp.dotted="Dotted",Wp.dashed="Dashed",Wp.dotDashed="DotDashed",Wp.dot2Dashed="Dot2Dashed",Wp.triple="Triple",Wp.thinThickSmall="ThinThickSmall",Wp.thickThinSmall="ThickThinSmall",Wp.thinThickThinSmall="ThinThickThinSmall",Wp.thinThickMed="ThinThickMed",Wp.thickThinMed="ThickThinMed",Wp.thinThickThinMed="ThinThickThinMed",Wp.thinThickLarge="ThinThickLarge",Wp.thickThinLarge="ThickThinLarge",Wp.thinThickThinLarge="ThinThickThinLarge",Wp.wave="Wave",Wp.doubleWave="DoubleWave",Wp.dashedSmall="DashedSmall",Wp.dashDotStroked="DashDotStroked",Wp.threeDEmboss="ThreeDEmboss",Wp.threeDEngrave="ThreeDEngrave",(Gp=a.VerticalAlignment||(a.VerticalAlignment={})).mixed="Mixed",Gp.top="Top",Gp.center="Center",Gp.bottom="Bottom",(Vp=a.ListLevelType||(a.ListLevelType={})).bullet="Bullet",Vp.number="Number",Vp.picture="Picture",(zp=a.ListBullet||(a.ListBullet={})).custom="Custom",zp.solid="Solid",zp.hollow="Hollow",zp.square="Square",zp.diamonds="Diamonds",zp.arrow="Arrow",zp.checkmark="Checkmark",(qp=a.ListNumbering||(a.ListNumbering={})).none="None",qp.arabic="Arabic",qp.upperRoman="UpperRoman",qp.lowerRoman="LowerRoman",qp.upperLetter="UpperLetter",qp.lowerLetter="LowerLetter",(Kp=a.BuiltInStyleName||(a.BuiltInStyleName={})).other="Other",Kp.normal="Normal",Kp.heading1="Heading1",Kp.heading2="Heading2",Kp.heading3="Heading3",Kp.heading4="Heading4",Kp.heading5="Heading5",Kp.heading6="Heading6",Kp.heading7="Heading7",Kp.heading8="Heading8",Kp.heading9="Heading9",Kp.toc1="Toc1",Kp.toc2="Toc2",Kp.toc3="Toc3",Kp.toc4="Toc4",Kp.toc5="Toc5",Kp.toc6="Toc6",Kp.toc7="Toc7",Kp.toc8="Toc8",Kp.toc9="Toc9",Kp.footnoteText="FootnoteText",Kp.header="Header",Kp.footer="Footer",Kp.caption="Caption",Kp.footnoteReference="FootnoteReference",Kp.endnoteReference="EndnoteReference",Kp.endnoteText="EndnoteText",Kp.title="Title",Kp.subtitle="Subtitle",Kp.hyperlink="Hyperlink",Kp.strong="Strong",Kp.emphasis="Emphasis",Kp.noSpacing="NoSpacing",Kp.listParagraph="ListParagraph",Kp.quote="Quote",Kp.intenseQuote="IntenseQuote",Kp.subtleEmphasis="SubtleEmphasis",Kp.intenseEmphasis="IntenseEmphasis",Kp.subtleReference="SubtleReference",Kp.intenseReference="IntenseReference",Kp.bookTitle="BookTitle",Kp.bibliography="Bibliography",Kp.tocHeading="TocHeading",Kp.tableGrid="TableGrid",Kp.plainTable1="PlainTable1",Kp.plainTable2="PlainTable2",Kp.plainTable3="PlainTable3",Kp.plainTable4="PlainTable4",Kp.plainTable5="PlainTable5",Kp.tableGridLight="TableGridLight",Kp.gridTable1Light="GridTable1Light",Kp.gridTable1Light_Accent1="GridTable1Light_Accent1",Kp.gridTable1Light_Accent2="GridTable1Light_Accent2",Kp.gridTable1Light_Accent3="GridTable1Light_Accent3",Kp.gridTable1Light_Accent4="GridTable1Light_Accent4",Kp.gridTable1Light_Accent5="GridTable1Light_Accent5",Kp.gridTable1Light_Accent6="GridTable1Light_Accent6",Kp.gridTable2="GridTable2",Kp.gridTable2_Accent1="GridTable2_Accent1",Kp.gridTable2_Accent2="GridTable2_Accent2",Kp.gridTable2_Accent3="GridTable2_Accent3",Kp.gridTable2_Accent4="GridTable2_Accent4",Kp.gridTable2_Accent5="GridTable2_Accent5",Kp.gridTable2_Accent6="GridTable2_Accent6",Kp.gridTable3="GridTable3",Kp.gridTable3_Accent1="GridTable3_Accent1",Kp.gridTable3_Accent2="GridTable3_Accent2",Kp.gridTable3_Accent3="GridTable3_Accent3",Kp.gridTable3_Accent4="GridTable3_Accent4",Kp.gridTable3_Accent5="GridTable3_Accent5",Kp.gridTable3_Accent6="GridTable3_Accent6",Kp.gridTable4="GridTable4",Kp.gridTable4_Accent1="GridTable4_Accent1",Kp.gridTable4_Accent2="GridTable4_Accent2",Kp.gridTable4_Accent3="GridTable4_Accent3",Kp.gridTable4_Accent4="GridTable4_Accent4",Kp.gridTable4_Accent5="GridTable4_Accent5",Kp.gridTable4_Accent6="GridTable4_Accent6",Kp.gridTable5Dark="GridTable5Dark",Kp.gridTable5Dark_Accent1="GridTable5Dark_Accent1",Kp.gridTable5Dark_Accent2="GridTable5Dark_Accent2",Kp.gridTable5Dark_Accent3="GridTable5Dark_Accent3",Kp.gridTable5Dark_Accent4="GridTable5Dark_Accent4",Kp.gridTable5Dark_Accent5="GridTable5Dark_Accent5",Kp.gridTable5Dark_Accent6="GridTable5Dark_Accent6",Kp.gridTable6Colorful="GridTable6Colorful",Kp.gridTable6Colorful_Accent1="GridTable6Colorful_Accent1",Kp.gridTable6Colorful_Accent2="GridTable6Colorful_Accent2",Kp.gridTable6Colorful_Accent3="GridTable6Colorful_Accent3",Kp.gridTable6Colorful_Accent4="GridTable6Colorful_Accent4",Kp.gridTable6Colorful_Accent5="GridTable6Colorful_Accent5",Kp.gridTable6Colorful_Accent6="GridTable6Colorful_Accent6",Kp.gridTable7Colorful="GridTable7Colorful",Kp.gridTable7Colorful_Accent1="GridTable7Colorful_Accent1",Kp.gridTable7Colorful_Accent2="GridTable7Colorful_Accent2",Kp.gridTable7Colorful_Accent3="GridTable7Colorful_Accent3",Kp.gridTable7Colorful_Accent4="GridTable7Colorful_Accent4",Kp.gridTable7Colorful_Accent5="GridTable7Colorful_Accent5",Kp.gridTable7Colorful_Accent6="GridTable7Colorful_Accent6",Kp.listTable1Light="ListTable1Light",Kp.listTable1Light_Accent1="ListTable1Light_Accent1",Kp.listTable1Light_Accent2="ListTable1Light_Accent2",Kp.listTable1Light_Accent3="ListTable1Light_Accent3",Kp.listTable1Light_Accent4="ListTable1Light_Accent4",Kp.listTable1Light_Accent5="ListTable1Light_Accent5",Kp.listTable1Light_Accent6="ListTable1Light_Accent6",Kp.listTable2="ListTable2",Kp.listTable2_Accent1="ListTable2_Accent1",Kp.listTable2_Accent2="ListTable2_Accent2",Kp.listTable2_Accent3="ListTable2_Accent3",Kp.listTable2_Accent4="ListTable2_Accent4",Kp.listTable2_Accent5="ListTable2_Accent5",Kp.listTable2_Accent6="ListTable2_Accent6",Kp.listTable3="ListTable3",Kp.listTable3_Accent1="ListTable3_Accent1",Kp.listTable3_Accent2="ListTable3_Accent2",Kp.listTable3_Accent3="ListTable3_Accent3",Kp.listTable3_Accent4="ListTable3_Accent4",Kp.listTable3_Accent5="ListTable3_Accent5",Kp.listTable3_Accent6="ListTable3_Accent6",Kp.listTable4="ListTable4",Kp.listTable4_Accent1="ListTable4_Accent1",Kp.listTable4_Accent2="ListTable4_Accent2",Kp.listTable4_Accent3="ListTable4_Accent3",Kp.listTable4_Accent4="ListTable4_Accent4",Kp.listTable4_Accent5="ListTable4_Accent5",Kp.listTable4_Accent6="ListTable4_Accent6",Kp.listTable5Dark="ListTable5Dark",Kp.listTable5Dark_Accent1="ListTable5Dark_Accent1",Kp.listTable5Dark_Accent2="ListTable5Dark_Accent2",Kp.listTable5Dark_Accent3="ListTable5Dark_Accent3",Kp.listTable5Dark_Accent4="ListTable5Dark_Accent4",Kp.listTable5Dark_Accent5="ListTable5Dark_Accent5",Kp.listTable5Dark_Accent6="ListTable5Dark_Accent6",Kp.listTable6Colorful="ListTable6Colorful",Kp.listTable6Colorful_Accent1="ListTable6Colorful_Accent1",Kp.listTable6Colorful_Accent2="ListTable6Colorful_Accent2",Kp.listTable6Colorful_Accent3="ListTable6Colorful_Accent3",Kp.listTable6Colorful_Accent4="ListTable6Colorful_Accent4",Kp.listTable6Colorful_Accent5="ListTable6Colorful_Accent5",Kp.listTable6Colorful_Accent6="ListTable6Colorful_Accent6",Kp.listTable7Colorful="ListTable7Colorful",Kp.listTable7Colorful_Accent1="ListTable7Colorful_Accent1",Kp.listTable7Colorful_Accent2="ListTable7Colorful_Accent2",Kp.listTable7Colorful_Accent3="ListTable7Colorful_Accent3",Kp.listTable7Colorful_Accent4="ListTable7Colorful_Accent4",Kp.listTable7Colorful_Accent5="ListTable7Colorful_Accent5",Kp.listTable7Colorful_Accent6="ListTable7Colorful_Accent6",(Jp=a.DocumentPropertyType||(a.DocumentPropertyType={})).string="String",Jp.number="Number",Jp.date="Date",Jp.boolean="Boolean",(Xp=a.PrintOutItem||(a.PrintOutItem={})).documentContent="DocumentContent",Xp.properties="Properties",Xp.comments="Comments",Xp.markup="Markup",Xp.styles="Styles",Xp.autoTextEntries="AutoTextEntries",Xp.keyAssignments="KeyAssignments",Xp.envelope="Envelope",Xp.documentWithMarkup="DocumentWithMarkup",(Qp=a.PrintOutPages||(a.PrintOutPages={})).all="All",Qp.oddOnly="OddOnly",Qp.evenOnly="EvenOnly",(Yp=a.PrintOutRange||(a.PrintOutRange={})).allDocument="AllDocument",Yp.selection="Selection",Yp.currentPage="CurrentPage",Yp.fromTo="FromTo",Yp.rangeOfPages="RangeOfPages",(Zp=a.ExportFormat||(a.ExportFormat={})).pdf="Pdf",Zp.xps="Xps",($p=a.ExportItem||(a.ExportItem={})).documentContent="DocumentContent",$p.documentWithMarkup="DocumentWithMarkup",(ef=a.ExportOptimizeFor||(a.ExportOptimizeFor={})).print="Print",ef.onScreen="OnScreen",(tf=a.ExportRange||(a.ExportRange={})).allDocument="AllDocument",tf.selection="Selection",tf.currentPage="CurrentPage",tf.fromTo="FromTo",(nf=a.ExportCreateBookmarks||(a.ExportCreateBookmarks={})).none="None",nf.headings="Headings",nf.wordBookmarks="WordBookmarks",(rf=a.UseFormattingFrom||(a.UseFormattingFrom={})).current="Current",rf.selected="Selected",rf.prompt="Prompt",(of=a.AutoMacro||(a.AutoMacro={})).startWord="StartWord",of.new="New",of.open="Open",of.close="Close",of.exit="Exit",of.sync="Sync",(af=a.StatisticType||(a.StatisticType={})).words="Words",af.lines="Lines",af.pages="Pages",af.characters="Characters",af.paragraphs="Paragraphs",af.charactersWithSpaces="CharactersWithSpaces",af.farEastCharacters="FarEastCharacters",(sf=a.RemoveDocInfoType||(a.RemoveDocInfoType={})).comments="Comments",sf.revisions="Revisions",sf.versions="Versions",sf.removePersonalInformation="RemovePersonalInformation",sf.emailHeader="EmailHeader",sf.routingSlip="RoutingSlip",sf.sendForReview="SendForReview",sf.documentProperties="DocumentProperties",sf.template="Template",sf.documentWorkspace="DocumentWorkspace",sf.inkAnnotations="InkAnnotations",sf.documentServerProperties="DocumentServerProperties",sf.documentManagementPolicy="DocumentManagementPolicy",sf.contentType="ContentType",sf.taskpaneWebExtensions="TaskpaneWebExtensions",sf.atMentions="AtMentions",sf.documentTasks="DocumentTasks",sf.documentIntelligence="DocumentIntelligence",sf.commentReactions="CommentReactions",sf.all="All",(cf=a.CheckInVersionType||(a.CheckInVersionType={})).minor="Minor",cf.major="Major",cf.overwrite="Overwrite",(lf=a.MergeTarget||(a.MergeTarget={})).selected="Selected",lf.current="Current",lf.new="New",(uf=a.DocumentType||(a.DocumentType={})).document="Document",uf.template="Template",uf.frameset="Frameset",(pf=a.DocumentKind||(a.DocumentKind={})).notSpecified="NotSpecified",pf.letter="Letter",pf.email="Email",(ff=a.FileSaveFormat||(a.FileSaveFormat={})).document="Document",ff.template="Template",ff.text="Text",ff.textLineBreaks="TextLineBreaks",ff.dosText="DosText",ff.dosTextLineBreaks="DosTextLineBreaks",ff.rtf="Rtf",ff.unicodeText="UnicodeText",ff.html="Html",ff.webArchive="WebArchive",ff.filteredHtml="FilteredHtml",ff.xml="Xml",ff.xmlDocument="XmlDocument",ff.xmlDocumentMacroEnabled="XmlDocumentMacroEnabled",ff.xmlTemplate="XmlTemplate",ff.xmlTemplateMacroEnabled="XmlTemplateMacroEnabled",ff.documentDefault="DocumentDefault",ff.pdf="Pdf",ff.xps="Xps",ff.flatXml="FlatXml",ff.flatXmlMacroEnabled="FlatXmlMacroEnabled",ff.flatXmlTemplate="FlatXmlTemplate",ff.flatXmlTemplateMacroEnabled="FlatXmlTemplateMacroEnabled",ff.openDocumentText="OpenDocumentText",ff.strictOpenXmlDocument="StrictOpenXmlDocument",(df=a.ProtectionType||(a.ProtectionType={})).noProtection="NoProtection",df.allowOnlyRevisions="AllowOnlyRevisions",df.allowOnlyComments="AllowOnlyComments",df.allowOnlyFormFields="AllowOnlyFormFields",df.allowOnlyReading="AllowOnlyReading",(hf=a.LineEndingType||(a.LineEndingType={})).crlf="Crlf",hf.crOnly="CrOnly",hf.lfOnly="LfOnly",hf.lfcr="Lfcr",hf.lsps="Lsps",(gf=a.DocumentEncoding||(a.DocumentEncoding={})).thai="Thai",gf.japaneseShiftJis="JapaneseShiftJis",gf.simplifiedChineseGbk="SimplifiedChineseGbk",gf.korean="Korean",gf.traditionalChineseBig5="TraditionalChineseBig5",gf.unicodeLittleEndian="UnicodeLittleEndian",gf.unicodeBigEndian="UnicodeBigEndian",gf.centralEuropean="CentralEuropean",gf.cyrillic="Cyrillic",gf.western="Western",gf.greek="Greek",gf.turkish="Turkish",gf.hebrew="Hebrew",gf.arabic="Arabic",gf.baltic="Baltic",gf.vietnamese="Vietnamese",gf.autoDetect="AutoDetect",gf.japaneseAutoDetect="JapaneseAutoDetect",gf.simplifiedChineseAutoDetect="SimplifiedChineseAutoDetect",gf.koreanAutoDetect="KoreanAutoDetect",gf.traditionalChineseAutoDetect="TraditionalChineseAutoDetect",gf.cyrillicAutoDetect="CyrillicAutoDetect",gf.greekAutoDetect="GreekAutoDetect",gf.arabicAutoDetect="ArabicAutoDetect",gf.iso88591Latin1="Iso88591Latin1",gf.iso88592CentralEurope="Iso88592CentralEurope",gf.iso88593Latin3="Iso88593Latin3",gf.iso88594Baltic="Iso88594Baltic",gf.iso88595Cyrillic="Iso88595Cyrillic",gf.iso88596Arabic="Iso88596Arabic",gf.iso88597Greek="Iso88597Greek",gf.iso88598Hebrew="Iso88598Hebrew",gf.iso88599Turkish="Iso88599Turkish",gf.iso885915Latin9="Iso885915Latin9",gf.iso88598HebrewLogical="Iso88598HebrewLogical",gf.iso2022JpNoHalfwidthKatakana="Iso2022JpNoHalfwidthKatakana",gf.iso2022JpJisX02021984="Iso2022JpJisX02021984",gf.iso2022JpJisX02011989="Iso2022JpJisX02011989",gf.iso2022Kr="Iso2022Kr",gf.iso2022CnTraditionalChinese="Iso2022CnTraditionalChinese",gf.iso2022CnSimplifiedChinese="Iso2022CnSimplifiedChinese",gf.macRoman="MacRoman",gf.macJapanese="MacJapanese",gf.macTraditionalChineseBig5="MacTraditionalChineseBig5",gf.macKorean="MacKorean",gf.macArabic="MacArabic",gf.macHebrew="MacHebrew",gf.macGreek1="MacGreek1",gf.macCyrillic="MacCyrillic",gf.macSimplifiedChineseGb2312="MacSimplifiedChineseGb2312",gf.macRomania="MacRomania",gf.macUkraine="MacUkraine",gf.macLatin2="MacLatin2",gf.macIcelandic="MacIcelandic",gf.macTurkish="MacTurkish",gf.macCroatia="MacCroatia",gf.ebcdicUsCanada="EbcdicUsCanada",gf.ebcdicInternational="EbcdicInternational",gf.ebcdicMultilingualRoeceLatin2="EbcdicMultilingualRoeceLatin2",gf.ebcdicGreekModern="EbcdicGreekModern",gf.ebcdicTurkishLatin5="EbcdicTurkishLatin5",gf.ebcdicGermany="EbcdicGermany",gf.ebcdicDenmarkNorway="EbcdicDenmarkNorway",gf.ebcdicFinlandSweden="EbcdicFinlandSweden",gf.ebcdicItaly="EbcdicItaly",gf.ebcdicLatinAmericaSpain="EbcdicLatinAmericaSpain",gf.ebcdicUnitedKingdom="EbcdicUnitedKingdom",gf.ebcdicJapaneseKatakanaExtended="EbcdicJapaneseKatakanaExtended",gf.ebcdicFrance="EbcdicFrance",gf.ebcdicArabic="EbcdicArabic",gf.ebcdicGreek="EbcdicGreek",gf.ebcdicHebrew="EbcdicHebrew",gf.ebcdicKoreanExtended="EbcdicKoreanExtended",gf.ebcdicThai="EbcdicThai",gf.ebcdicIcelandic="EbcdicIcelandic",gf.ebcdicTurkish="EbcdicTurkish",gf.ebcdicRussian="EbcdicRussian",gf.ebcdicSerbianBulgarian="EbcdicSerbianBulgarian",gf.ebcdicJapaneseKatakanaExtendedAndJapanese="EbcdicJapaneseKatakanaExtendedAndJapanese",gf.ebcdicUsCanadaAndJapanese="EbcdicUsCanadaAndJapanese",gf.ebcdicKoreanExtendedAndKorean="EbcdicKoreanExtendedAndKorean",gf.ebcdicSimplifiedChineseExtendedAndSimplifiedChinese="EbcdicSimplifiedChineseExtendedAndSimplifiedChinese",gf.ebcdicUsCanadaAndTraditionalChinese="EbcdicUsCanadaAndTraditionalChinese",gf.ebcdicJapaneseLatinExtendedAndJapanese="EbcdicJapaneseLatinExtendedAndJapanese",gf.oemUnitedStates="OemUnitedStates",gf.oemGreek437G="OemGreek437G",gf.oemBaltic="OemBaltic",gf.oemMultilingualLatinI="OemMultilingualLatinI",gf.oemMultilingualLatinIi="OemMultilingualLatinIi",gf.oemCyrillic="OemCyrillic",gf.oemTurkish="OemTurkish",gf.oemPortuguese="OemPortuguese",gf.oemIcelandic="OemIcelandic",gf.oemHebrew="OemHebrew",gf.oemCanadianFrench="OemCanadianFrench",gf.oemArabic="OemArabic",gf.oemNordic="OemNordic",gf.oemCyrillicIi="OemCyrillicIi",gf.oemModernGreek="OemModernGreek",gf.eucJapanese="EucJapanese",gf.eucChineseSimplifiedChinese="EucChineseSimplifiedChinese",gf.eucKorean="EucKorean",gf.eucTaiwaneseTraditionalChinese="EucTaiwaneseTraditionalChinese",gf.isciiDevanagari="IsciiDevanagari",gf.isciiBengali="IsciiBengali",gf.isciiTamil="IsciiTamil",gf.isciiTelugu="IsciiTelugu",gf.isciiAssamese="IsciiAssamese",gf.isciiOriya="IsciiOriya",gf.isciiKannada="IsciiKannada",gf.isciiMalayalam="IsciiMalayalam",gf.isciiGujarati="IsciiGujarati",gf.isciiPunjabi="IsciiPunjabi",gf.arabicAsmo="ArabicAsmo",gf.arabicTransparentAsmo="ArabicTransparentAsmo",gf.koreanJohab="KoreanJohab",gf.taiwanCns="TaiwanCns",gf.taiwanTca="TaiwanTca",gf.taiwanEten="TaiwanEten",gf.taiwanIbm5550="TaiwanIbm5550",gf.taiwanTeleText="TaiwanTeleText",gf.taiwanWang="TaiwanWang",gf.ia5Irv="Ia5Irv",gf.ia5German="Ia5German",gf.ia5Swedish="Ia5Swedish",gf.ia5Norwegian="Ia5Norwegian",gf.usaAscii="UsaAscii",gf.t61="T61",gf.iso6937NonSpacingAccent="Iso6937NonSpacingAccent",gf.koi8R="Koi8R",gf.extAlphaLowercase="ExtAlphaLowercase",gf.koi8U="Koi8U",gf.europa3="Europa3",gf.hzGbSimplifiedChinese="HzGbSimplifiedChinese",gf.simplifiedChineseGb18030="SimplifiedChineseGb18030",gf.utf7="Utf7",gf.utf8="Utf8",(yf=a.CompatibilityMode||(a.CompatibilityMode={})).word2003="Word2003",yf.word2007="Word2007",yf.word2010="Word2010",yf.word2013="Word2013",yf.current="Current",(mf=a.TapObjectType||(a.TapObjectType={})).chart="Chart",mf.smartArt="SmartArt",mf.table="Table",mf.image="Image",mf.slide="Slide",mf.ole="OLE",mf.text="Text",(_f=a.FileContentFormat||(a.FileContentFormat={})).base64="Base64",_f.html="Html",_f.ooxml="Ooxml",(bf=a.AnnotationParentType||(a.AnnotationParentType={})).none="None",bf.document="Document",bf.paragraph="Paragraph",bf.annotation="Annotation",(vf=a.AugloopAnnotationState||(a.AugloopAnnotationState={}))[void 0]="Undefined",vf.created="Created",vf.sent="Sent",vf.duplicated="Duplicated",vf.seen="Seen",vf.tried="Tried",vf.kept="Kept",vf.rejected="Rejected",(Of=a.StyleType||(a.StyleType={})).character="Character",Of.list="List",Of.paragraph="Paragraph",Of.table="Table",(Pf=a.OutlineLevel||(a.OutlineLevel={})).outlineLevel1="OutlineLevel1",Pf.outlineLevel2="OutlineLevel2",Pf.outlineLevel3="OutlineLevel3",Pf.outlineLevel4="OutlineLevel4",Pf.outlineLevel5="OutlineLevel5",Pf.outlineLevel6="OutlineLevel6",Pf.outlineLevel7="OutlineLevel7",Pf.outlineLevel8="OutlineLevel8",Pf.outlineLevel9="OutlineLevel9",Pf.outlineLevelBodyText="OutlineLevelBodyText",(Cf=a.CloseBehavior||(a.CloseBehavior={})).save="Save",Cf.skipSave="SkipSave",(Rf=a.SaveBehavior||(a.SaveBehavior={})).save="Save",Rf.prompt="Prompt",(Sf=a.FieldType||(a.FieldType={})).addin="Addin",Sf.addressBlock="AddressBlock",Sf.advance="Advance",Sf.ask="Ask",Sf.author="Author",Sf.autoText="AutoText",Sf.autoTextList="AutoTextList",Sf.barCode="BarCode",Sf.bibliography="Bibliography",Sf.bidiOutline="BidiOutline",Sf.citation="Citation",Sf.comments="Comments",Sf.compare="Compare",Sf.createDate="CreateDate",Sf.data="Data",Sf.database="Database",Sf.date="Date",Sf.displayBarcode="DisplayBarcode",Sf.docProperty="DocProperty",Sf.docVariable="DocVariable",Sf.editTime="EditTime",Sf.embedded="Embedded",Sf.eq="EQ",Sf.expression="Expression",Sf.fileName="FileName",Sf.fileSize="FileSize",Sf.fillIn="FillIn",Sf.formCheckbox="FormCheckbox",Sf.formDropdown="FormDropdown",Sf.formText="FormText",Sf.gotoButton="GotoButton",Sf.greetingLine="GreetingLine",Sf.hyperlink="Hyperlink",Sf.if="If",Sf.import="Import",Sf.include="Include",Sf.includePicture="IncludePicture",Sf.includeText="IncludeText",Sf.index="Index",Sf.info="Info",Sf.keywords="Keywords",Sf.lastSavedBy="LastSavedBy",Sf.link="Link",Sf.listNum="ListNum",Sf.macroButton="MacroButton",Sf.mergeBarcode="MergeBarcode",Sf.mergeField="MergeField",Sf.mergeRec="MergeRec",Sf.mergeSeq="MergeSeq",Sf.next="Next",Sf.nextIf="NextIf",Sf.noteRef="NoteRef",Sf.numChars="NumChars",Sf.numPages="NumPages",Sf.numWords="NumWords",Sf.ocx="OCX",Sf.page="Page",Sf.pageRef="PageRef",Sf.print="Print",Sf.printDate="PrintDate",Sf.private="Private",Sf.quote="Quote",Sf.rd="RD",Sf.ref="Ref",Sf.revNum="RevNum",Sf.saveDate="SaveDate",Sf.section="Section",Sf.sectionPages="SectionPages",Sf.seq="Seq",Sf.set="Set",Sf.shape="Shape",Sf.skipIf="SkipIf",Sf.styleRef="StyleRef",Sf.subject="Subject",Sf.subscriber="Subscriber",Sf.symbol="Symbol",Sf.ta="TA",Sf.tc="TC",Sf.template="Template",Sf.time="Time",Sf.title="Title",Sf.toa="TOA",Sf.toc="TOC",Sf.userAddress="UserAddress",Sf.userInitials="UserInitials",Sf.userName="UserName",Sf.xe="XE",Sf.empty="Empty",Sf.others="Others",Sf[void 0]="Undefined",(If=a.FieldKind||(a.FieldKind={})).none="None",If.hot="Hot",If.warm="Warm",If.cold="Cold",(Af=a.TrailingCharacter||(a.TrailingCharacter={})).trailingTab="TrailingTab",Af.trailingSpace="TrailingSpace",Af.trailingNone="TrailingNone",(Tf=a.ListBuiltInNumberStyle||(a.ListBuiltInNumberStyle={})).none="None",Tf.arabic="Arabic",Tf.upperRoman="UpperRoman",Tf.lowerRoman="LowerRoman",Tf.upperLetter="UpperLetter",Tf.lowerLetter="LowerLetter",Tf.ordinal="Ordinal",Tf.cardinalText="CardinalText",Tf.ordinalText="OrdinalText",Tf.kanji="Kanji",Tf.kanjiDigit="KanjiDigit",Tf.aiueoHalfWidth="AiueoHalfWidth",Tf.irohaHalfWidth="IrohaHalfWidth",Tf.arabicFullWidth="ArabicFullWidth",Tf.kanjiTraditional="KanjiTraditional",Tf.kanjiTraditional2="KanjiTraditional2",Tf.numberInCircle="NumberInCircle",Tf.aiueo="Aiueo",Tf.iroha="Iroha",Tf.arabicLZ="ArabicLZ",Tf.bullet="Bullet",Tf.ganada="Ganada",Tf.chosung="Chosung",Tf.gbnum1="GBNum1",Tf.gbnum2="GBNum2",Tf.gbnum3="GBNum3",Tf.gbnum4="GBNum4",Tf.zodiac1="Zodiac1",Tf.zodiac2="Zodiac2",Tf.zodiac3="Zodiac3",Tf.tradChinNum1="TradChinNum1",Tf.tradChinNum2="TradChinNum2",Tf.tradChinNum3="TradChinNum3",Tf.tradChinNum4="TradChinNum4",Tf.simpChinNum1="SimpChinNum1",Tf.simpChinNum2="SimpChinNum2",Tf.simpChinNum3="SimpChinNum3",Tf.simpChinNum4="SimpChinNum4",Tf.hanjaRead="HanjaRead",Tf.hanjaReadDigit="HanjaReadDigit",Tf.hangul="Hangul",Tf.hanja="Hanja",Tf.hebrew1="Hebrew1",Tf.arabic1="Arabic1",Tf.hebrew2="Hebrew2",Tf.arabic2="Arabic2",Tf.hindiLetter1="HindiLetter1",Tf.hindiLetter2="HindiLetter2",Tf.hindiArabic="HindiArabic",Tf.hindiCardinalText="HindiCardinalText",Tf.thaiLetter="ThaiLetter",Tf.thaiArabic="ThaiArabic",Tf.thaiCardinalText="ThaiCardinalText",Tf.vietCardinalText="VietCardinalText",Tf.lowercaseRussian="LowercaseRussian",Tf.uppercaseRussian="UppercaseRussian",Tf.lowercaseGreek="LowercaseGreek",Tf.uppercaseGreek="UppercaseGreek",Tf.arabicLZ2="ArabicLZ2",Tf.arabicLZ3="ArabicLZ3",Tf.arabicLZ4="ArabicLZ4",Tf.lowercaseTurkish="LowercaseTurkish",Tf.uppercaseTurkish="UppercaseTurkish",Tf.lowercaseBulgarian="LowercaseBulgarian",Tf.uppercaseBulgarian="UppercaseBulgarian",Tf.pictureBullet="PictureBullet",Tf.legal="Legal",Tf.legalLZ="LegalLZ",(Nf=a.ShadingTextureType||(a.ShadingTextureType={})).darkDiagonalDown="DarkDiagonalDown",Nf.darkDiagonalUp="DarkDiagonalUp",Nf.darkGrid="DarkGrid",Nf.darkHorizontal="DarkHorizontal",Nf.darkTrellis="DarkTrellis",Nf.darkVertical="DarkVertical",Nf.lightDiagonalDown="LightDiagonalDown",Nf.lightDiagonalUp="LightDiagonalUp",Nf.lightGrid="LightGrid",Nf.lightHorizontal="LightHorizontal",Nf.lightTrellis="LightTrellis",Nf.lightVertical="LightVertical",Nf.none="None",Nf.percent10="Percent10",Nf.percent12Pt5="Percent12Pt5",Nf.percent15="Percent15",Nf.percent20="Percent20",Nf.percent25="Percent25",Nf.percent30="Percent30",Nf.percent35="Percent35",Nf.percent37Pt5="Percent37Pt5",Nf.percent40="Percent40",Nf.percent45="Percent45",Nf.percent5="Percent5",Nf.percent50="Percent50",Nf.percent55="Percent55",Nf.percent60="Percent60",Nf.percent62Pt5="Percent62Pt5",Nf.percent65="Percent65",Nf.percent70="Percent70",Nf.percent75="Percent75",Nf.percent80="Percent80",Nf.percent85="Percent85",Nf.percent87Pt5="Percent87Pt5",Nf.percent90="Percent90",Nf.percent95="Percent95",Nf.solid="Solid",(Df=a.CompareTarget||(a.CompareTarget={})).compareTargetCurrent="CompareTargetCurrent",Df.compareTargetSelected="CompareTargetSelected",Df.compareTargetNew="CompareTargetNew",(xf=a.ImportedStylesConflictBehavior||(a.ImportedStylesConflictBehavior={})).ignore="Ignore",xf.overwrite="Overwrite",xf.createNew="CreateNew",(Ef=a.ShapeType||(a.ShapeType={})).unsupported="Unsupported",Ef.textBox="TextBox",Ef.geometricShape="GeometricShape",Ef.group="Group",Ef.picture="Picture",Ef.canvas="Canvas",(kf=a.RelativeHorizontalPosition||(a.RelativeHorizontalPosition={})).margin="Margin",kf.page="Page",kf.column="Column",kf.character="Character",kf.leftMargin="LeftMargin",kf.rightMargin="RightMargin",kf.insideMargin="InsideMargin",kf.outsideMargin="OutsideMargin",(jf=a.RelativeVerticalPosition||(a.RelativeVerticalPosition={})).margin="Margin",jf.page="Page",jf.paragraph="Paragraph",jf.line="Line",jf.topMargin="TopMargin",jf.bottomMargin="BottomMargin",jf.insideMargin="InsideMargin",jf.outsideMargin="OutsideMargin",(wf=a.RelativeSize||(a.RelativeSize={})).margin="Margin",wf.page="Page",wf.topMargin="TopMargin",wf.bottomMargin="BottomMargin",wf.insideMargin="InsideMargin",wf.outsideMargin="OutsideMargin",(Ff=a.GeometricShapeType||(a.GeometricShapeType={})).lineInverse="LineInverse",Ff.triangle="Triangle",Ff.rightTriangle="RightTriangle",Ff.rectangle="Rectangle",Ff.diamond="Diamond",Ff.parallelogram="Parallelogram",Ff.trapezoid="Trapezoid",Ff.nonIsoscelesTrapezoid="NonIsoscelesTrapezoid",Ff.pentagon="Pentagon",Ff.hexagon="Hexagon",Ff.heptagon="Heptagon",Ff.octagon="Octagon",Ff.decagon="Decagon",Ff.dodecagon="Dodecagon",Ff.star4="Star4",Ff.star5="Star5",Ff.star6="Star6",Ff.star7="Star7",Ff.star8="Star8",Ff.star10="Star10",Ff.star12="Star12",Ff.star16="Star16",Ff.star24="Star24",Ff.star32="Star32",Ff.roundRectangle="RoundRectangle",Ff.round1Rectangle="Round1Rectangle",Ff.round2SameRectangle="Round2SameRectangle",Ff.round2DiagonalRectangle="Round2DiagonalRectangle",Ff.snipRoundRectangle="SnipRoundRectangle",Ff.snip1Rectangle="Snip1Rectangle",Ff.snip2SameRectangle="Snip2SameRectangle",Ff.snip2DiagonalRectangle="Snip2DiagonalRectangle",Ff.plaque="Plaque",Ff.ellipse="Ellipse",Ff.teardrop="Teardrop",Ff.homePlate="HomePlate",Ff.chevron="Chevron",Ff.pieWedge="PieWedge",Ff.pie="Pie",Ff.blockArc="BlockArc",Ff.donut="Donut",Ff.noSmoking="NoSmoking",Ff.rightArrow="RightArrow",Ff.leftArrow="LeftArrow",Ff.upArrow="UpArrow",Ff.downArrow="DownArrow",Ff.stripedRightArrow="StripedRightArrow",Ff.notchedRightArrow="NotchedRightArrow",Ff.bentUpArrow="BentUpArrow",Ff.leftRightArrow="LeftRightArrow",Ff.upDownArrow="UpDownArrow",Ff.leftUpArrow="LeftUpArrow",Ff.leftRightUpArrow="LeftRightUpArrow",Ff.quadArrow="QuadArrow",Ff.leftArrowCallout="LeftArrowCallout",Ff.rightArrowCallout="RightArrowCallout",Ff.upArrowCallout="UpArrowCallout",Ff.downArrowCallout="DownArrowCallout",Ff.leftRightArrowCallout="LeftRightArrowCallout",Ff.upDownArrowCallout="UpDownArrowCallout",Ff.quadArrowCallout="QuadArrowCallout",Ff.bentArrow="BentArrow",Ff.uturnArrow="UturnArrow",Ff.circularArrow="CircularArrow",Ff.leftCircularArrow="LeftCircularArrow",Ff.leftRightCircularArrow="LeftRightCircularArrow",Ff.curvedRightArrow="CurvedRightArrow",Ff.curvedLeftArrow="CurvedLeftArrow",Ff.curvedUpArrow="CurvedUpArrow",Ff.curvedDownArrow="CurvedDownArrow",Ff.swooshArrow="SwooshArrow",Ff.cube="Cube",Ff.can="Can",Ff.lightningBolt="LightningBolt",Ff.heart="Heart",Ff.sun="Sun",Ff.moon="Moon",Ff.smileyFace="SmileyFace",Ff.irregularSeal1="IrregularSeal1",Ff.irregularSeal2="IrregularSeal2",Ff.foldedCorner="FoldedCorner",Ff.bevel="Bevel",Ff.frame="Frame",Ff.halfFrame="HalfFrame",Ff.corner="Corner",Ff.diagonalStripe="DiagonalStripe",Ff.chord="Chord",Ff.arc="Arc",Ff.leftBracket="LeftBracket",Ff.rightBracket="RightBracket",Ff.leftBrace="LeftBrace",Ff.rightBrace="RightBrace",Ff.bracketPair="BracketPair",Ff.bracePair="BracePair",Ff.callout1="Callout1",Ff.callout2="Callout2",Ff.callout3="Callout3",Ff.accentCallout1="AccentCallout1",Ff.accentCallout2="AccentCallout2",Ff.accentCallout3="AccentCallout3",Ff.borderCallout1="BorderCallout1",Ff.borderCallout2="BorderCallout2",Ff.borderCallout3="BorderCallout3",Ff.accentBorderCallout1="AccentBorderCallout1",Ff.accentBorderCallout2="AccentBorderCallout2",Ff.accentBorderCallout3="AccentBorderCallout3",Ff.wedgeRectCallout="WedgeRectCallout",Ff.wedgeRRectCallout="WedgeRRectCallout",Ff.wedgeEllipseCallout="WedgeEllipseCallout",Ff.cloudCallout="CloudCallout",Ff.cloud="Cloud",Ff.ribbon="Ribbon",Ff.ribbon2="Ribbon2",Ff.ellipseRibbon="EllipseRibbon",Ff.ellipseRibbon2="EllipseRibbon2",Ff.leftRightRibbon="LeftRightRibbon",Ff.verticalScroll="VerticalScroll",Ff.horizontalScroll="HorizontalScroll",Ff.wave="Wave",Ff.doubleWave="DoubleWave",Ff.plus="Plus",Ff.flowChartProcess="FlowChartProcess",Ff.flowChartDecision="FlowChartDecision",Ff.flowChartInputOutput="FlowChartInputOutput",Ff.flowChartPredefinedProcess="FlowChartPredefinedProcess",Ff.flowChartInternalStorage="FlowChartInternalStorage",Ff.flowChartDocument="FlowChartDocument",Ff.flowChartMultidocument="FlowChartMultidocument",Ff.flowChartTerminator="FlowChartTerminator",Ff.flowChartPreparation="FlowChartPreparation",Ff.flowChartManualInput="FlowChartManualInput",Ff.flowChartManualOperation="FlowChartManualOperation",Ff.flowChartConnector="FlowChartConnector",Ff.flowChartPunchedCard="FlowChartPunchedCard",Ff.flowChartPunchedTape="FlowChartPunchedTape",Ff.flowChartSummingJunction="FlowChartSummingJunction",Ff.flowChartOr="FlowChartOr",Ff.flowChartCollate="FlowChartCollate",Ff.flowChartSort="FlowChartSort",Ff.flowChartExtract="FlowChartExtract",Ff.flowChartMerge="FlowChartMerge",Ff.flowChartOfflineStorage="FlowChartOfflineStorage",Ff.flowChartOnlineStorage="FlowChartOnlineStorage",Ff.flowChartMagneticTape="FlowChartMagneticTape",Ff.flowChartMagneticDisk="FlowChartMagneticDisk",Ff.flowChartMagneticDrum="FlowChartMagneticDrum",Ff.flowChartDisplay="FlowChartDisplay",Ff.flowChartDelay="FlowChartDelay",Ff.flowChartAlternateProcess="FlowChartAlternateProcess",Ff.flowChartOffpageConnector="FlowChartOffpageConnector",Ff.actionButtonBlank="ActionButtonBlank",Ff.actionButtonHome="ActionButtonHome",Ff.actionButtonHelp="ActionButtonHelp",Ff.actionButtonInformation="ActionButtonInformation",Ff.actionButtonForwardNext="ActionButtonForwardNext",Ff.actionButtonBackPrevious="ActionButtonBackPrevious",Ff.actionButtonEnd="ActionButtonEnd",Ff.actionButtonBeginning="ActionButtonBeginning",Ff.actionButtonReturn="ActionButtonReturn",Ff.actionButtonDocument="ActionButtonDocument",Ff.actionButtonSound="ActionButtonSound",Ff.actionButtonMovie="ActionButtonMovie",Ff.gear6="Gear6",Ff.gear9="Gear9",Ff.funnel="Funnel",Ff.mathPlus="MathPlus",Ff.mathMinus="MathMinus",Ff.mathMultiply="MathMultiply",Ff.mathDivide="MathDivide",Ff.mathEqual="MathEqual",Ff.mathNotEqual="MathNotEqual",Ff.cornerTabs="CornerTabs",Ff.squareTabs="SquareTabs",Ff.plaqueTabs="PlaqueTabs",Ff.chartX="ChartX",Ff.chartStar="ChartStar",Ff.chartPlus="ChartPlus",(Lf=a.ShapeFillType||(a.ShapeFillType={})).noFill="NoFill",Lf.solid="Solid",Lf.gradient="Gradient",Lf.pattern="Pattern",Lf.picture="Picture",Lf.texture="Texture",Lf.mixed="Mixed",(Mf=a.ShapeTextVerticalAlignment||(a.ShapeTextVerticalAlignment={})).top="Top",Mf.middle="Middle",Mf.bottom="Bottom",(Bf=a.ShapeTextOrientation||(a.ShapeTextOrientation={})).none="None",Bf.horizontal="Horizontal",Bf.eastAsianVertical="EastAsianVertical",Bf.vertical270="Vertical270",Bf.vertical="Vertical",Bf.eastAsianHorizontalRotated="EastAsianHorizontalRotated",Bf.mixed="Mixed",(Hf=a.ShapeAutoSize||(a.ShapeAutoSize={})).none="None",Hf.textToFitShape="TextToFitShape",Hf.shapeToFitText="ShapeToFitText",Hf.mixed="Mixed",(Uf=a.ShapeTextWrapType||(a.ShapeTextWrapType={})).inline="Inline",Uf.square="Square",Uf.tight="Tight",Uf.through="Through",Uf.topBottom="TopBottom",Uf.behind="Behind",Uf.front="Front",(Wf=a.ShapeTextWrapSide||(a.ShapeTextWrapSide={})).none="None",Wf.both="Both",Wf.left="Left",Wf.right="Right",Wf.largest="Largest",(Gf=a.ShapeScaleType||(a.ShapeScaleType={})).currentSize="CurrentSize",Gf.originalSize="OriginalSize",(Vf=a.ShapeScaleFrom||(a.ShapeScaleFrom={})).scaleFromTopLeft="ScaleFromTopLeft",Vf.scaleFromMiddle="ScaleFromMiddle",Vf.scaleFromBottomRight="ScaleFromBottomRight",(zf=a.FrameSizeRule||(a.FrameSizeRule={})).auto="Auto",zf.atLeast="AtLeast",zf.exact="Exact",(qf=a.BorderLineStyle||(a.BorderLineStyle={})).none="None",qf.single="Single",qf.dot="Dot",qf.dashSmallGap="DashSmallGap",qf.dashLargeGap="DashLargeGap",qf.dashDot="DashDot",qf.dashDotDot="DashDotDot",qf.double="Double",qf.triple="Triple",qf.thinThickSmallGap="ThinThickSmallGap",qf.thickThinSmallGap="ThickThinSmallGap",qf.thinThickThinSmallGap="ThinThickThinSmallGap",qf.thinThickMedGap="ThinThickMedGap",qf.thickThinMedGap="ThickThinMedGap",qf.thinThickThinMedGap="ThinThickThinMedGap",qf.thinThickLargeGap="ThinThickLargeGap",qf.thickThinLargeGap="ThickThinLargeGap",qf.thinThickThinLargeGap="ThinThickThinLargeGap",qf.singleWavy="SingleWavy",qf.doubleWavy="DoubleWavy",qf.dashDotStroked="DashDotStroked",qf.emboss3D="Emboss3D",qf.engrave3D="Engrave3D",qf.outset="Outset",qf.inset="Inset",(Kf=a.LineWidth||(a.LineWidth={})).pt025="Pt025",Kf.pt050="Pt050",Kf.pt075="Pt075",Kf.pt100="Pt100",Kf.pt150="Pt150",Kf.pt225="Pt225",Kf.pt300="Pt300",Kf.pt450="Pt450",Kf.pt600="Pt600",(Jf=a.PageBorderArt||(a.PageBorderArt={})).apples="Apples",Jf.mapleMuffins="MapleMuffins",Jf.cakeSlice="CakeSlice",Jf.candyCorn="CandyCorn",Jf.iceCreamCones="IceCreamCones",Jf.champagneBottle="ChampagneBottle",Jf.partyGlass="PartyGlass",Jf.christmasTree="ChristmasTree",Jf.trees="Trees",Jf.palmsColor="PalmsColor",Jf.balloons3Colors="Balloons3Colors",Jf.balloonsHotAir="BalloonsHotAir",Jf.partyFavor="PartyFavor",Jf.confettiStreamers="ConfettiStreamers",Jf.hearts="Hearts",Jf.heartBalloon="HeartBalloon",Jf.stars3D="Stars3D",Jf.starsShadowed="StarsShadowed",Jf.stars="Stars",Jf.sun="Sun",Jf.earth2="Earth2",Jf.earth1="Earth1",Jf.peopleHats="PeopleHats",Jf.sombrero="Sombrero",Jf.pencils="Pencils",Jf.packages="Packages",Jf.clocks="Clocks",Jf.firecrackers="Firecrackers",Jf.rings="Rings",Jf.mapPins="MapPins",Jf.confetti="Confetti",Jf.creaturesButterfly="CreaturesButterfly",Jf.creaturesLadyBug="CreaturesLadyBug",Jf.creaturesFish="CreaturesFish",Jf.birdsFlight="BirdsFlight",Jf.scaredCat="ScaredCat",Jf.bats="Bats",Jf.flowersRoses="FlowersRoses",Jf.flowersRedRose="FlowersRedRose",Jf.poinsettias="Poinsettias",Jf.holly="Holly",Jf.flowersTiny="FlowersTiny",Jf.flowersPansy="FlowersPansy",Jf.flowersModern2="FlowersModern2",Jf.flowersModern1="FlowersModern1",Jf.whiteFlowers="WhiteFlowers",Jf.vine="Vine",Jf.flowersDaisies="FlowersDaisies",Jf.flowersBlockPrint="FlowersBlockPrint",Jf.decoArchColor="DecoArchColor",Jf.fans="Fans",Jf.film="Film",Jf.lightning1="Lightning1",Jf.compass="Compass",Jf.doubleD="DoubleD",Jf.classicalWave="ClassicalWave",Jf.shadowedSquares="ShadowedSquares",Jf.twistedLines1="TwistedLines1",Jf.waveline="Waveline",Jf.quadrants="Quadrants",Jf.checkedBarColor="CheckedBarColor",Jf.swirligig="Swirligig",Jf.pushPinNote1="PushPinNote1",Jf.pushPinNote2="PushPinNote2",Jf.pumpkin1="Pumpkin1",Jf.eggsBlack="EggsBlack",Jf.cup="Cup",Jf.heartGray="HeartGray",Jf.gingerbreadMan="GingerbreadMan",Jf.babyPacifier="BabyPacifier",Jf.babyRattle="BabyRattle",Jf.cabins="Cabins",Jf.houseFunky="HouseFunky",Jf.starsBlack="StarsBlack",Jf.snowflakes="Snowflakes",Jf.snowflakeFancy="SnowflakeFancy",Jf.skyrocket="Skyrocket",Jf.seattle="Seattle",Jf.musicNotes="MusicNotes",Jf.palmsBlack="PalmsBlack",Jf.mapleLeaf="MapleLeaf",Jf.paperClips="PaperClips",Jf.shorebirdTracks="ShorebirdTracks",Jf.people="People",Jf.peopleWaving="PeopleWaving",Jf.eclipsingSquares2="EclipsingSquares2",Jf.hypnotic="Hypnotic",Jf.diamondsGray="DiamondsGray",Jf.decoArch="DecoArch",Jf.decoBlocks="DecoBlocks",Jf.circlesLines="CirclesLines",Jf.papyrus="Papyrus",Jf.woodwork="Woodwork",Jf.weavingBraid="WeavingBraid",Jf.weavingRibbon="WeavingRibbon",Jf.weavingAngles="WeavingAngles",Jf.archedScallops="ArchedScallops",Jf.safari="Safari",Jf.celticKnotwork="CelticKnotwork",Jf.crazyMaze="CrazyMaze",Jf.eclipsingSquares1="EclipsingSquares1",Jf.birds="Birds",Jf.flowersTeacup="FlowersTeacup",Jf.northwest="Northwest",Jf.southwest="Southwest",Jf.tribal6="Tribal6",Jf.tribal4="Tribal4",Jf.tribal3="Tribal3",Jf.tribal2="Tribal2",Jf.tribal5="Tribal5",Jf.xillusions="XIllusions",Jf.zanyTriangles="ZanyTriangles",Jf.pyramids="Pyramids",Jf.pyramidsAbove="PyramidsAbove",Jf.confettiGrays="ConfettiGrays",Jf.confettiOutline="ConfettiOutline",Jf.confettiWhite="ConfettiWhite",Jf.mosaic="Mosaic",Jf.lightning2="Lightning2",Jf.heebieJeebies="HeebieJeebies",Jf.lightBulb="LightBulb",Jf.gradient="Gradient",Jf.triangleParty="TriangleParty",Jf.twistedLines2="TwistedLines2",Jf.moons="Moons",Jf.ovals="Ovals",Jf.doubleDiamonds="DoubleDiamonds",Jf.chainLink="ChainLink",Jf.triangles="Triangles",Jf.tribal1="Tribal1",Jf.marqueeToothed="MarqueeToothed",Jf.sharksTeeth="SharksTeeth",Jf.sawtooth="Sawtooth",Jf.sawtoothGray="SawtoothGray",Jf.postageStamp="PostageStamp",Jf.weavingStrips="WeavingStrips",Jf.zigZag="ZigZag",Jf.crossStitch="CrossStitch",Jf.gems="Gems",Jf.circlesRectangles="CirclesRectangles",Jf.cornerTriangles="CornerTriangles",Jf.creaturesInsects="CreaturesInsects",Jf.zigZagStitch="ZigZagStitch",Jf.checkered="Checkered",Jf.checkedBarBlack="CheckedBarBlack",Jf.marquee="Marquee",Jf.basicWhiteDots="BasicWhiteDots",Jf.basicWideMidline="BasicWideMidline",Jf.basicWideOutline="BasicWideOutline",Jf.basicWideInline="BasicWideInline",Jf.basicThinLines="BasicThinLines",Jf.basicWhiteDashes="BasicWhiteDashes",Jf.basicWhiteSquares="BasicWhiteSquares",Jf.basicBlackSquares="BasicBlackSquares",Jf.basicBlackDashes="BasicBlackDashes",Jf.basicBlackDots="BasicBlackDots",Jf.starsTop="StarsTop",Jf.certificateBanner="CertificateBanner",Jf.handmade1="Handmade1",Jf.handmade2="Handmade2",Jf.tornPaper="TornPaper",Jf.tornPaperBlack="TornPaperBlack",Jf.couponCutoutDashes="CouponCutoutDashes",Jf.couponCutoutDots="CouponCutoutDots",(Xf=a.PreferredWidthType||(a.PreferredWidthType={})).auto="Auto",Xf.percent="Percent",Xf.points="Points",(Qf=a.RulerStyle||(a.RulerStyle={})).none="None",Qf.proportional="Proportional",Qf.firstColumn="FirstColumn",Qf.sameWidth="SameWidth",(Yf=a.FarEastLineBreakLanguageId||(a.FarEastLineBreakLanguageId={})).traditionalChinese="TraditionalChinese",Yf.japanese="Japanese",Yf.korean="Korean",Yf.simplifiedChinese="SimplifiedChinese",(Zf=a.FarEastLineBreakLevel||(a.FarEastLineBreakLevel={})).normal="Normal",Zf.strict="Strict",Zf.custom="Custom",($f=a.JustificationMode||(a.JustificationMode={})).expand="Expand",$f.compress="Compress",$f.compressKana="CompressKana",(ed=a.TemplateType||(a.TemplateType={})).normal="Normal",ed.global="Global",ed.attached="Attached",(td=a.LanguageId||(a.LanguageId={})).afrikaans="Afrikaans",td.albanian="Albanian",td.amharic="Amharic",td.arabic="Arabic",td.arabicAlgeria="ArabicAlgeria",td.arabicBahrain="ArabicBahrain",td.arabicEgypt="ArabicEgypt",td.arabicIraq="ArabicIraq",td.arabicJordan="ArabicJordan",td.arabicKuwait="ArabicKuwait",td.arabicLebanon="ArabicLebanon",td.arabicLibya="ArabicLibya",td.arabicMorocco="ArabicMorocco",td.arabicOman="ArabicOman",td.arabicQatar="ArabicQatar",td.arabicSyria="ArabicSyria",td.arabicTunisia="ArabicTunisia",td.arabicUAE="ArabicUAE",td.arabicYemen="ArabicYemen",td.armenian="Armenian",td.assamese="Assamese",td.azeriCyrillic="AzeriCyrillic",td.azeriLatin="AzeriLatin",td.basque="Basque",td.belgianDutch="BelgianDutch",td.belgianFrench="BelgianFrench",td.bengali="Bengali",td.bulgarian="Bulgarian",td.burmese="Burmese",td.belarusian="Belarusian",td.catalan="Catalan",td.cherokee="Cherokee",td.chineseHongKongSAR="ChineseHongKongSAR",td.chineseMacaoSAR="ChineseMacaoSAR",td.chineseSingapore="ChineseSingapore",td.croatian="Croatian",td.czech="Czech",td.danish="Danish",td.divehi="Divehi",td.dutch="Dutch",td.edo="Edo",td.englishAUS="EnglishAUS",td.englishBelize="EnglishBelize",td.englishCanadian="EnglishCanadian",td.englishCaribbean="EnglishCaribbean",td.englishIndonesia="EnglishIndonesia",td.englishIreland="EnglishIreland",td.englishJamaica="EnglishJamaica",td.englishNewZealand="EnglishNewZealand",td.englishPhilippines="EnglishPhilippines",td.englishSouthAfrica="EnglishSouthAfrica",td.englishTrinidadTobago="EnglishTrinidadTobago",td.englishUK="EnglishUK",td.englishUS="EnglishUS",td.englishZimbabwe="EnglishZimbabwe",td.estonian="Estonian",td.faeroese="Faeroese",td.filipino="Filipino",td.finnish="Finnish",td.french="French",td.frenchCameroon="FrenchCameroon",td.frenchCanadian="FrenchCanadian",td.frenchCongoDRC="FrenchCongoDRC",td.frenchCotedIvoire="FrenchCotedIvoire",td.frenchHaiti="FrenchHaiti",td.frenchLuxembourg="FrenchLuxembourg",td.frenchMali="FrenchMali",td.frenchMonaco="FrenchMonaco",td.frenchMorocco="FrenchMorocco",td.frenchReunion="FrenchReunion",td.frenchSenegal="FrenchSenegal",td.frenchWestIndies="FrenchWestIndies",td.frisianNetherlands="FrisianNetherlands",td.fulfulde="Fulfulde",td.gaelicIreland="GaelicIreland",td.gaelicScotland="GaelicScotland",td.galician="Galician",td.georgian="Georgian",td.german="German",td.germanAustria="GermanAustria",td.germanLiechtenstein="GermanLiechtenstein",td.germanLuxembourg="GermanLuxembourg",td.greek="Greek",td.guarani="Guarani",td.gujarati="Gujarati",td.hausa="Hausa",td.hawaiian="Hawaiian",td.hebrew="Hebrew",td.hindi="Hindi",td.hungarian="Hungarian",td.ibibio="Ibibio",td.icelandic="Icelandic",td.igbo="Igbo",td.indonesian="Indonesian",td.inuktitut="Inuktitut",td.italian="Italian",td.japanese="Japanese",td.kannada="Kannada",td.kanuri="Kanuri",td.kashmiri="Kashmiri",td.kazakh="Kazakh",td.khmer="Khmer",td.kirghiz="Kirghiz",td.konkani="Konkani",td.korean="Korean",td.kyrgyz="Kyrgyz",td.languageNone="LanguageNone",td.lao="Lao",td.latin="Latin",td.latvian="Latvian",td.lithuanian="Lithuanian",td.macedonianFYROM="MacedonianFYROM",td.malayalam="Malayalam",td.malayBruneiDarussalam="MalayBruneiDarussalam",td.malaysian="Malaysian",td.maltese="Maltese",td.manipuri="Manipuri",td.marathi="Marathi",td.mexicanSpanish="MexicanSpanish",td.mongolian="Mongolian",td.nepali="Nepali",td.noProofing="NoProofing",td.norwegianBokmol="NorwegianBokmol",td.norwegianNynorsk="NorwegianNynorsk",td.oriya="Oriya",td.oromo="Oromo",td.pashto="Pashto",td.persian="Persian",td.polish="Polish",td.portuguese="Portuguese",td.portugueseBrazil="PortugueseBrazil",td.punjabi="Punjabi",td.rhaetoRomanic="RhaetoRomanic",td.romanian="Romanian",td.romanianMoldova="RomanianMoldova",td.russian="Russian",td.russianMoldova="RussianMoldova",td.samiLappish="SamiLappish",td.sanskrit="Sanskrit",td.serbianCyrillic="SerbianCyrillic",td.serbianLatin="SerbianLatin",td.sesotho="Sesotho",td.simplifiedChinese="SimplifiedChinese",td.sindhi="Sindhi",td.sindhiPakistan="SindhiPakistan",td.sinhalese="Sinhalese",td.slovak="Slovak",td.slovenian="Slovenian",td.somali="Somali",td.sorbian="Sorbian",td.spanish="Spanish",td.spanishArgentina="SpanishArgentina",td.spanishBolivia="SpanishBolivia",td.spanishChile="SpanishChile",td.spanishColombia="SpanishColombia",td.spanishCostaRica="SpanishCostaRica",td.spanishDominicanRepublic="SpanishDominicanRepublic",td.spanishEcuador="SpanishEcuador",td.spanishElSalvador="SpanishElSalvador",td.spanishGuatemala="SpanishGuatemala",td.spanishHonduras="SpanishHonduras",td.spanishModernSort="SpanishModernSort",td.spanishNicaragua="SpanishNicaragua",td.spanishPanama="SpanishPanama",td.spanishParaguay="SpanishParaguay",td.spanishPeru="SpanishPeru",td.spanishPuertoRico="SpanishPuertoRico",td.spanishUruguay="SpanishUruguay",td.spanishVenezuela="SpanishVenezuela",td.sutu="Sutu",td.swahili="Swahili",td.swedish="Swedish",td.swedishFinland="SwedishFinland",td.swissFrench="SwissFrench",td.swissGerman="SwissGerman",td.swissItalian="SwissItalian",td.syriac="Syriac",td.tajik="Tajik",td.tamazight="Tamazight",td.tamazightLatin="TamazightLatin",td.tamil="Tamil",td.tatar="Tatar",td.telugu="Telugu",td.thai="Thai",td.tibetan="Tibetan",td.tigrignaEritrea="TigrignaEritrea",td.tigrignaEthiopic="TigrignaEthiopic",td.traditionalChinese="TraditionalChinese",td.tsonga="Tsonga",td.tswana="Tswana",td.turkish="Turkish",td.turkmen="Turkmen",td.ukrainian="Ukrainian",td.urdu="Urdu",td.uzbekCyrillic="UzbekCyrillic",td.uzbekLatin="UzbekLatin",td.venda="Venda",td.vietnamese="Vietnamese",td.welsh="Welsh",td.xhosa="Xhosa",td.yi="Yi",td.yiddish="Yiddish",td.yoruba="Yoruba",td.zulu="Zulu",(nd=a.DocPartInsertType||(a.DocPartInsertType={})).content="Content",nd.paragraph="Paragraph",nd.page="Page",(rd=a.BuildingBlockType||(a.BuildingBlockType={})).quickParts="QuickParts",rd.coverPage="CoverPage",rd.equations="Equations",rd.footers="Footers",rd.headers="Headers",rd.pageNumber="PageNumber",rd.tables="Tables",rd.watermarks="Watermarks",rd.autoText="AutoText",rd.textBox="TextBox",rd.pageNumberTop="PageNumberTop",rd.pageNumberBottom="PageNumberBottom",rd.pageNumberPage="PageNumberPage",rd.tableOfContents="TableOfContents",rd.customQuickParts="CustomQuickParts",rd.customCoverPage="CustomCoverPage",rd.customEquations="CustomEquations",rd.customFooters="CustomFooters",rd.customHeaders="CustomHeaders",rd.customPageNumber="CustomPageNumber",rd.customTables="CustomTables",rd.customWatermarks="CustomWatermarks",rd.customAutoText="CustomAutoText",rd.customTextBox="CustomTextBox",rd.customPageNumberTop="CustomPageNumberTop",rd.customPageNumberBottom="CustomPageNumberBottom",rd.customPageNumberPage="CustomPageNumberPage",rd.customTableOfContents="CustomTableOfContents",rd.custom1="Custom1",rd.custom2="Custom2",rd.custom3="Custom3",rd.custom4="Custom4",rd.custom5="Custom5",rd.bibliography="Bibliography",rd.customBibliography="CustomBibliography",(id=a.CustomXmlNodeType||(a.CustomXmlNodeType={})).element="element",id.attribute="attribute",id.text="text",id.cData="cData",id.processingInstruction="processingInstruction",id.comment="comment",id.document="document",(od=a.LinkType||(a.LinkType={})).ole="Ole",od.picture="Picture",od.text="Text",od.reference="Reference",od.include="Include",od.import="Import",od.dde="Dde",od.ddeAuto="DdeAuto",od.chart="Chart",(ad=a.OleVerb||(a.OleVerb={})).primary="Primary",ad.show="Show",ad.open="Open",ad.hide="Hide",ad.uiActivate="UiActivate",ad.inPlaceActivate="InPlaceActivate",ad.discardUndoState="DiscardUndoState";var ud,pd="ListFormat",fd=(ud=OfficeExtension.ClientObject,__extends(dd,ud),Object.defineProperty(dd.prototype,"_className",{get:function(){return"ListFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","listLevelNumber","listString","listType","listValue","isSingleList","isSingleListTemplate"]},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","ListLevelNumber","ListString","ListType","ListValue","IsSingleList","IsSingleListTemplate"]},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"_navigationPropertyNames",{get:function(){return["list","listTemplate"]},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"list",{get:function(){return this._L||(this._L=e(a.List,this,"List",!1,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"listTemplate",{get:function(){return this._List||(this._List=e(a.ListTemplate,this,"ListTemplate",!1,4)),this._List},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"isSingleList",{get:function(){return m("isSingleList",this._I,pd,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"isSingleListTemplate",{get:function(){return m("isSingleListTemplate",this._Is,pd,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"listLevelNumber",{get:function(){return m("listLevelNumber",this._Li,pd,this._isNull),this._Li},set:function(e){this._Li=e,h(this,"ListLevelNumber",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"listString",{get:function(){return m("listString",this._Lis,pd,this._isNull),this._Lis},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"listType",{get:function(){return m("listType",this._ListT,pd,this._isNull),this._ListT},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"listValue",{get:function(){return m("listValue",this._ListV,pd,this._isNull),this._ListV},enumerable:!0,configurable:!0}),Object.defineProperty(dd.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,pd,this._isNull),this.__R},enumerable:!0,configurable:!0}),dd.prototype.set=function(e,t){this._recursivelySet(e,t,["listLevelNumber"],["listTemplate"],["list"])},dd.prototype.update=function(e){this._recursivelyUpdate(e)},dd.prototype.applyBulletDefault=function(e){i(this,"ApplyBulletDefault",0,[e],0,0)},dd.prototype.applyListTemplateWithLevel=function(e,t){i(this,"ApplyListTemplateWithLevel",0,[e,t],0,0)},dd.prototype.applyNumberDefault=function(e){i(this,"ApplyNumberDefault",0,[e],0,0)},dd.prototype.applyOutlineNumberDefault=function(e){i(this,"ApplyOutlineNumberDefault",0,[e],0,0)},dd.prototype.canContinuePreviousList=function(e){return i(this,"CanContinuePreviousList",0,[e],0,0)},dd.prototype.convertNumbersToText=function(e){i(this,"ConvertNumbersToText",0,[e],0,0)},dd.prototype.countNumberedItems=function(e){return i(this,"CountNumberedItems",0,[e],0,0)},dd.prototype.listIndent=function(){i(this,"ListIndent",0,[],0,0)},dd.prototype.listOutdent=function(){i(this,"ListOutdent",0,[],0,0)},dd.prototype.removeNumbers=function(e){i(this,"RemoveNumbers",0,[e],0,0)},dd.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},dd.prototype._handleResult=function(e){if(ud.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.IsSingleList)||(this._I=t.IsSingleList),y(t.IsSingleListTemplate)||(this._Is=t.IsSingleListTemplate),y(t.ListLevelNumber)||(this._Li=t.ListLevelNumber),y(t.ListString)||(this._Lis=t.ListString),y(t.ListType)||(this._ListT=t.ListType),y(t.ListValue)||(this._ListV=t.ListValue),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["list","List","listTemplate","ListTemplate"])}},dd.prototype.load=function(e){return b(this,e)},dd.prototype.retrieve=function(e){return v(this,e)},dd.prototype._handleIdResult=function(e){ud.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},dd.prototype._handleRetrieveResult=function(e,t){ud.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},dd.prototype.track=function(){return this.context.trackedObjects.add(this),this},dd.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},dd.prototype.toJSON=function(){return O(this,{isSingleList:this._I,isSingleListTemplate:this._Is,listLevelNumber:this._Li,listString:this._Lis,listType:this._ListT,listValue:this._ListV},{list:this._L,listTemplate:this._List})},dd.prototype.setMockData=function(e){I(this,e)},dd.prototype.ensureUnchanged=function(e){d(this,e)},dd);function dd(){return null!==ud&&ud.apply(this,arguments)||this}a.ListFormat=fd;var hd,gd="FillFormat",yd=(hd=OfficeExtension.ClientObject,__extends(md,hd),Object.defineProperty(md.prototype,"_className",{get:function(){return"FillFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","gradientAngle","gradientColorType","gradientDegree","gradientStyle","gradientVariant","pattern","presetGradientType","presetTexture","rotateWithObject","textureAlignment","textureHorizontalScale","textureName","textureOffsetX","textureOffsetY","textureTile","textureType","textureVerticalScale","transparency","type","isVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","GradientAngle","GradientColorType","GradientDegree","GradientStyle","GradientVariant","Pattern","PresetGradientType","PresetTexture","RotateWithObject","TextureAlignment","TextureHorizontalScale","TextureName","TextureOffsetX","TextureOffsetY","TextureTile","TextureType","TextureVerticalScale","Transparency","Type","IsVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"_navigationPropertyNames",{get:function(){return["backgroundColor","foregroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"backgroundColor",{get:function(){return this._B||(this._B=e(a.ColorFormat,this,"BackgroundColor",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"foregroundColor",{get:function(){return this._F||(this._F=e(a.ColorFormat,this,"ForegroundColor",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"gradientAngle",{get:function(){return m("gradientAngle",this._G,gd,this._isNull),this._G},set:function(e){this._G=e,h(this,"GradientAngle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"gradientColorType",{get:function(){return m("gradientColorType",this._Gr,gd,this._isNull),this._Gr},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"gradientDegree",{get:function(){return m("gradientDegree",this._Gra,gd,this._isNull),this._Gra},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"gradientStyle",{get:function(){return m("gradientStyle",this._Grad,gd,this._isNull),this._Grad},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"gradientVariant",{get:function(){return m("gradientVariant",this._Gradi,gd,this._isNull),this._Gradi},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"isVisible",{get:function(){return m("isVisible",this._I,gd,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"pattern",{get:function(){return m("pattern",this._P,gd,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"presetGradientType",{get:function(){return m("presetGradientType",this._Pr,gd,this._isNull),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"presetTexture",{get:function(){return m("presetTexture",this._Pre,gd,this._isNull),this._Pre},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"rotateWithObject",{get:function(){return m("rotateWithObject",this._R,gd,this._isNull),this._R},set:function(e){this._R=e,h(this,"RotateWithObject",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureAlignment",{get:function(){return m("textureAlignment",this._T,gd,this._isNull),this._T},set:function(e){this._T=e,h(this,"TextureAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureHorizontalScale",{get:function(){return m("textureHorizontalScale",this._Te,gd,this._isNull),this._Te},set:function(e){this._Te=e,h(this,"TextureHorizontalScale",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureName",{get:function(){return m("textureName",this._Tex,gd,this._isNull),this._Tex},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureOffsetX",{get:function(){return m("textureOffsetX",this._Text,gd,this._isNull),this._Text},set:function(e){this._Text=e,h(this,"TextureOffsetX",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureOffsetY",{get:function(){return m("textureOffsetY",this._Textu,gd,this._isNull),this._Textu},set:function(e){this._Textu=e,h(this,"TextureOffsetY",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureTile",{get:function(){return m("textureTile",this._Textur,gd,this._isNull),this._Textur},set:function(e){this._Textur=e,h(this,"TextureTile",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureType",{get:function(){return m("textureType",this._Texture,gd,this._isNull),this._Texture},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"textureVerticalScale",{get:function(){return m("textureVerticalScale",this._TextureV,gd,this._isNull),this._TextureV},set:function(e){this._TextureV=e,h(this,"TextureVerticalScale",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"transparency",{get:function(){return m("transparency",this._Tr,gd,this._isNull),this._Tr},set:function(e){this._Tr=e,h(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"type",{get:function(){return m("type",this._Ty,gd,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(md.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,gd,this._isNull),this.__R},enumerable:!0,configurable:!0}),md.prototype.set=function(e,t){this._recursivelySet(e,t,["gradientAngle","rotateWithObject","textureAlignment","textureHorizontalScale","textureOffsetX","textureOffsetY","textureTile","textureVerticalScale","transparency","isVisible"],["backgroundColor","foregroundColor"],[])},md.prototype.update=function(e){this._recursivelyUpdate(e)},md.prototype.setOneColorGradient=function(e,t,n){i(this,"SetOneColorGradient",0,[e,t,n],0,0)},md.prototype.setPatterned=function(e){i(this,"SetPatterned",0,[e],0,0)},md.prototype.setPresetGradient=function(e,t,n){i(this,"SetPresetGradient",0,[e,t,n],0,0)},md.prototype.setPresetTextured=function(e){i(this,"SetPresetTextured",0,[e],0,0)},md.prototype.setTwoColorGradient=function(e,t){i(this,"SetTwoColorGradient",0,[e,t],0,0)},md.prototype.solid=function(){i(this,"Solid",0,[],0,0)},md.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},md.prototype._handleResult=function(e){if(hd.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.GradientAngle)||(this._G=t.GradientAngle),y(t.GradientColorType)||(this._Gr=t.GradientColorType),y(t.GradientDegree)||(this._Gra=t.GradientDegree),y(t.GradientStyle)||(this._Grad=t.GradientStyle),y(t.GradientVariant)||(this._Gradi=t.GradientVariant),y(t.IsVisible)||(this._I=t.IsVisible),y(t.Pattern)||(this._P=t.Pattern),y(t.PresetGradientType)||(this._Pr=t.PresetGradientType),y(t.PresetTexture)||(this._Pre=t.PresetTexture),y(t.RotateWithObject)||(this._R=t.RotateWithObject),y(t.TextureAlignment)||(this._T=t.TextureAlignment),y(t.TextureHorizontalScale)||(this._Te=t.TextureHorizontalScale),y(t.TextureName)||(this._Tex=t.TextureName),y(t.TextureOffsetX)||(this._Text=t.TextureOffsetX),y(t.TextureOffsetY)||(this._Textu=t.TextureOffsetY),y(t.TextureTile)||(this._Textur=t.TextureTile),y(t.TextureType)||(this._Texture=t.TextureType),y(t.TextureVerticalScale)||(this._TextureV=t.TextureVerticalScale),y(t.Transparency)||(this._Tr=t.Transparency),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["backgroundColor","BackgroundColor","foregroundColor","ForegroundColor"])}},md.prototype.load=function(e){return b(this,e)},md.prototype.retrieve=function(e){return v(this,e)},md.prototype._handleIdResult=function(e){hd.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},md.prototype._handleRetrieveResult=function(e,t){hd.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},md.prototype.track=function(){return this.context.trackedObjects.add(this),this},md.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},md.prototype.toJSON=function(){return O(this,{gradientAngle:this._G,gradientColorType:this._Gr,gradientDegree:this._Gra,gradientStyle:this._Grad,gradientVariant:this._Gradi,isVisible:this._I,pattern:this._P,presetGradientType:this._Pr,presetTexture:this._Pre,rotateWithObject:this._R,textureAlignment:this._T,textureHorizontalScale:this._Te,textureName:this._Tex,textureOffsetX:this._Text,textureOffsetY:this._Textu,textureTile:this._Textur,textureType:this._Texture,textureVerticalScale:this._TextureV,transparency:this._Tr,type:this._Ty},{backgroundColor:this._B,foregroundColor:this._F})},md.prototype.setMockData=function(e){I(this,e)},md.prototype.ensureUnchanged=function(e){d(this,e)},md);function md(){return null!==hd&&hd.apply(this,arguments)||this}a.FillFormat=yd;var _d,bd="GlowFormat",vd=(_d=OfficeExtension.ClientObject,__extends(Od,_d),Object.defineProperty(Od.prototype,"_className",{get:function(){return"GlowFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","radius","transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Radius","Transparency"]},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"_navigationPropertyNames",{get:function(){return["color"]},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"color",{get:function(){return this._C||(this._C=e(a.ColorFormat,this,"Color",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"radius",{get:function(){return m("radius",this._R,bd,this._isNull),this._R},set:function(e){this._R=e,h(this,"Radius",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"transparency",{get:function(){return m("transparency",this._T,bd,this._isNull),this._T},set:function(e){this._T=e,h(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Od.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,bd,this._isNull),this.__R},enumerable:!0,configurable:!0}),Od.prototype.set=function(e,t){this._recursivelySet(e,t,["radius","transparency"],["color"],[])},Od.prototype.update=function(e){this._recursivelyUpdate(e)},Od.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Od.prototype._handleResult=function(e){if(_d.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Radius)||(this._R=t.Radius),y(t.Transparency)||(this._T=t.Transparency),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["color","Color"])}},Od.prototype.load=function(e){return b(this,e)},Od.prototype.retrieve=function(e){return v(this,e)},Od.prototype._handleIdResult=function(e){_d.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Od.prototype._handleRetrieveResult=function(e,t){_d.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Od.prototype.track=function(){return this.context.trackedObjects.add(this),this},Od.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Od.prototype.toJSON=function(){return O(this,{radius:this._R,transparency:this._T},{color:this._C})},Od.prototype.setMockData=function(e){I(this,e)},Od.prototype.ensureUnchanged=function(e){d(this,e)},Od);function Od(){return null!==_d&&_d.apply(this,arguments)||this}a.GlowFormat=vd;var Pd,Cd="LineFormat",Rd=(Pd=OfficeExtension.ClientObject,__extends(Sd,Pd),Object.defineProperty(Sd.prototype,"_className",{get:function(){return"LineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","dashStyle","endArrowheadLength","endArrowheadStyle","endArrowheadWidth","insetPen","pattern","style","transparency","isVisible","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BeginArrowheadLength","BeginArrowheadStyle","BeginArrowheadWidth","DashStyle","EndArrowheadLength","EndArrowheadStyle","EndArrowheadWidth","InsetPen","Pattern","Style","Transparency","IsVisible","Weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"_navigationPropertyNames",{get:function(){return["backgroundColor","foregroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"backgroundColor",{get:function(){return this._B||(this._B=e(a.ColorFormat,this,"BackgroundColor",!1,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"foregroundColor",{get:function(){return this._F||(this._F=e(a.ColorFormat,this,"ForegroundColor",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"beginArrowheadLength",{get:function(){return m("beginArrowheadLength",this._Be,Cd,this._isNull),this._Be},set:function(e){this._Be=e,h(this,"BeginArrowheadLength",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"beginArrowheadStyle",{get:function(){return m("beginArrowheadStyle",this._Beg,Cd,this._isNull),this._Beg},set:function(e){this._Beg=e,h(this,"BeginArrowheadStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"beginArrowheadWidth",{get:function(){return m("beginArrowheadWidth",this._Begi,Cd,this._isNull),this._Begi},set:function(e){this._Begi=e,h(this,"BeginArrowheadWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"dashStyle",{get:function(){return m("dashStyle",this._D,Cd,this._isNull),this._D},set:function(e){this._D=e,h(this,"DashStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"endArrowheadLength",{get:function(){return m("endArrowheadLength",this._E,Cd,this._isNull),this._E},set:function(e){this._E=e,h(this,"EndArrowheadLength",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"endArrowheadStyle",{get:function(){return m("endArrowheadStyle",this._En,Cd,this._isNull),this._En},set:function(e){this._En=e,h(this,"EndArrowheadStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"endArrowheadWidth",{get:function(){return m("endArrowheadWidth",this._End,Cd,this._isNull),this._End},set:function(e){this._End=e,h(this,"EndArrowheadWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"insetPen",{get:function(){return m("insetPen",this._I,Cd,this._isNull),this._I},set:function(e){this._I=e,h(this,"InsetPen",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"isVisible",{get:function(){return m("isVisible",this._Is,Cd,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"pattern",{get:function(){return m("pattern",this._P,Cd,this._isNull),this._P},set:function(e){this._P=e,h(this,"Pattern",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"style",{get:function(){return m("style",this._S,Cd,this._isNull),this._S},set:function(e){this._S=e,h(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"transparency",{get:function(){return m("transparency",this._T,Cd,this._isNull),this._T},set:function(e){this._T=e,h(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"weight",{get:function(){return m("weight",this._W,Cd,this._isNull),this._W},set:function(e){this._W=e,h(this,"Weight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Sd.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Cd,this._isNull),this.__R},enumerable:!0,configurable:!0}),Sd.prototype.set=function(e,t){this._recursivelySet(e,t,["beginArrowheadLength","beginArrowheadStyle","beginArrowheadWidth","dashStyle","endArrowheadLength","endArrowheadStyle","endArrowheadWidth","insetPen","pattern","style","transparency","isVisible","weight"],["backgroundColor","foregroundColor"],[])},Sd.prototype.update=function(e){this._recursivelyUpdate(e)},Sd.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Sd.prototype._handleResult=function(e){if(Pd.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BeginArrowheadLength)||(this._Be=t.BeginArrowheadLength),y(t.BeginArrowheadStyle)||(this._Beg=t.BeginArrowheadStyle),y(t.BeginArrowheadWidth)||(this._Begi=t.BeginArrowheadWidth),y(t.DashStyle)||(this._D=t.DashStyle),y(t.EndArrowheadLength)||(this._E=t.EndArrowheadLength),y(t.EndArrowheadStyle)||(this._En=t.EndArrowheadStyle),y(t.EndArrowheadWidth)||(this._End=t.EndArrowheadWidth),y(t.InsetPen)||(this._I=t.InsetPen),y(t.IsVisible)||(this._Is=t.IsVisible),y(t.Pattern)||(this._P=t.Pattern),y(t.Style)||(this._S=t.Style),y(t.Transparency)||(this._T=t.Transparency),y(t.Weight)||(this._W=t.Weight),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["backgroundColor","BackgroundColor","foregroundColor","ForegroundColor"])}},Sd.prototype.load=function(e){return b(this,e)},Sd.prototype.retrieve=function(e){return v(this,e)},Sd.prototype._handleIdResult=function(e){Pd.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Sd.prototype._handleRetrieveResult=function(e,t){Pd.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Sd.prototype.track=function(){return this.context.trackedObjects.add(this),this},Sd.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Sd.prototype.toJSON=function(){return O(this,{beginArrowheadLength:this._Be,beginArrowheadStyle:this._Beg,beginArrowheadWidth:this._Begi,dashStyle:this._D,endArrowheadLength:this._E,endArrowheadStyle:this._En,endArrowheadWidth:this._End,insetPen:this._I,isVisible:this._Is,pattern:this._P,style:this._S,transparency:this._T,weight:this._W},{backgroundColor:this._B,foregroundColor:this._F})},Sd.prototype.setMockData=function(e){I(this,e)},Sd.prototype.ensureUnchanged=function(e){d(this,e)},Sd);function Sd(){return null!==Pd&&Pd.apply(this,arguments)||this}a.LineFormat=Rd;var Id,Ad="ReflectionFormat",Td=(Id=OfficeExtension.ClientObject,__extends(Nd,Id),Object.defineProperty(Nd.prototype,"_className",{get:function(){return"ReflectionFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","blur","offset","size","transparency","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Blur","Offset","Size","Transparency","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"blur",{get:function(){return m("blur",this._B,Ad,this._isNull),this._B},set:function(e){this._B=e,h(this,"Blur",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"offset",{get:function(){return m("offset",this._O,Ad,this._isNull),this._O},set:function(e){this._O=e,h(this,"Offset",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"size",{get:function(){return m("size",this._S,Ad,this._isNull),this._S},set:function(e){this._S=e,h(this,"Size",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"transparency",{get:function(){return m("transparency",this._T,Ad,this._isNull),this._T},set:function(e){this._T=e,h(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"type",{get:function(){return m("type",this._Ty,Ad,this._isNull),this._Ty},set:function(e){this._Ty=e,h(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Nd.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ad,this._isNull),this.__R},enumerable:!0,configurable:!0}),Nd.prototype.set=function(e,t){this._recursivelySet(e,t,["blur","offset","size","transparency","type"],[],[])},Nd.prototype.update=function(e){this._recursivelyUpdate(e)},Nd.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Nd.prototype._handleResult=function(e){if(Id.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Blur)||(this._B=t.Blur),y(t.Offset)||(this._O=t.Offset),y(t.Size)||(this._S=t.Size),y(t.Transparency)||(this._T=t.Transparency),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Nd.prototype.load=function(e){return b(this,e)},Nd.prototype.retrieve=function(e){return v(this,e)},Nd.prototype._handleIdResult=function(e){Id.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Nd.prototype._handleRetrieveResult=function(e,t){Id.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Nd.prototype.track=function(){return this.context.trackedObjects.add(this),this},Nd.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Nd.prototype.toJSON=function(){return O(this,{blur:this._B,offset:this._O,size:this._S,transparency:this._T,type:this._Ty},{})},Nd.prototype.setMockData=function(e){I(this,e)},Nd.prototype.ensureUnchanged=function(e){d(this,e)},Nd);function Nd(){return null!==Id&&Id.apply(this,arguments)||this}a.ReflectionFormat=Td;var Dd,xd="ColorFormat",Ed=(Dd=OfficeExtension.ClientObject,__extends(kd,Dd),Object.defineProperty(kd.prototype,"_className",{get:function(){return"ColorFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","brightness","objectThemeColor","rgb","tintAndShade","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Brightness","ObjectThemeColor","Rgb","TintAndShade","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"brightness",{get:function(){return m("brightness",this._B,xd,this._isNull),this._B},set:function(e){this._B=e,h(this,"Brightness",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"objectThemeColor",{get:function(){return m("objectThemeColor",this._O,xd,this._isNull),this._O},set:function(e){this._O=e,h(this,"ObjectThemeColor",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"rgb",{get:function(){return m("rgb",this._R,xd,this._isNull),this._R},set:function(e){this._R=e,h(this,"Rgb",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"tintAndShade",{get:function(){return m("tintAndShade",this._T,xd,this._isNull),this._T},set:function(e){this._T=e,h(this,"TintAndShade",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"type",{get:function(){return m("type",this._Ty,xd,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(kd.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,xd,this._isNull),this.__R},enumerable:!0,configurable:!0}),kd.prototype.set=function(e,t){this._recursivelySet(e,t,["brightness","objectThemeColor","rgb","tintAndShade"],[],[])},kd.prototype.update=function(e){this._recursivelyUpdate(e)},kd.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},kd.prototype._handleResult=function(e){if(Dd.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Brightness)||(this._B=t.Brightness),y(t.ObjectThemeColor)||(this._O=t.ObjectThemeColor),y(t.Rgb)||(this._R=t.Rgb),y(t.TintAndShade)||(this._T=t.TintAndShade),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},kd.prototype.load=function(e){return b(this,e)},kd.prototype.retrieve=function(e){return v(this,e)},kd.prototype._handleIdResult=function(e){Dd.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},kd.prototype._handleRetrieveResult=function(e,t){Dd.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},kd.prototype.track=function(){return this.context.trackedObjects.add(this),this},kd.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},kd.prototype.toJSON=function(){return O(this,{brightness:this._B,objectThemeColor:this._O,rgb:this._R,tintAndShade:this._T,type:this._Ty},{})},kd.prototype.setMockData=function(e){I(this,e)},kd.prototype.ensureUnchanged=function(e){d(this,e)},kd);function kd(){return null!==Dd&&Dd.apply(this,arguments)||this}a.ColorFormat=Ed;var jd,wd="ShadowFormat",Fd=(jd=OfficeExtension.ClientObject,__extends(Ld,jd),Object.defineProperty(Ld.prototype,"_className",{get:function(){return"ShadowFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","blur","obscured","offsetX","offsetY","rotateWithShape","size","style","transparency","type","isVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Blur","Obscured","OffsetX","OffsetY","RotateWithShape","Size","Style","Transparency","Type","IsVisible"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"_navigationPropertyNames",{get:function(){return["foregroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"foregroundColor",{get:function(){return this._F||(this._F=e(a.ColorFormat,this,"ForegroundColor",!1,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"blur",{get:function(){return m("blur",this._B,wd,this._isNull),this._B},set:function(e){this._B=e,h(this,"Blur",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"isVisible",{get:function(){return m("isVisible",this._I,wd,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"obscured",{get:function(){return m("obscured",this._O,wd,this._isNull),this._O},set:function(e){this._O=e,h(this,"Obscured",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"offsetX",{get:function(){return m("offsetX",this._Of,wd,this._isNull),this._Of},set:function(e){this._Of=e,h(this,"OffsetX",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"offsetY",{get:function(){return m("offsetY",this._Off,wd,this._isNull),this._Off},set:function(e){this._Off=e,h(this,"OffsetY",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"rotateWithShape",{get:function(){return m("rotateWithShape",this._R,wd,this._isNull),this._R},set:function(e){this._R=e,h(this,"RotateWithShape",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"size",{get:function(){return m("size",this._S,wd,this._isNull),this._S},set:function(e){this._S=e,h(this,"Size",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"style",{get:function(){return m("style",this._St,wd,this._isNull),this._St},set:function(e){this._St=e,h(this,"Style",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"transparency",{get:function(){return m("transparency",this._T,wd,this._isNull),this._T},set:function(e){this._T=e,h(this,"Transparency",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"type",{get:function(){return m("type",this._Ty,wd,this._isNull),this._Ty},set:function(e){this._Ty=e,h(this,"Type",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ld.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,wd,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ld.prototype.set=function(e,t){this._recursivelySet(e,t,["blur","obscured","offsetX","offsetY","rotateWithShape","size","style","transparency","type","isVisible"],["foregroundColor"],[])},Ld.prototype.update=function(e){this._recursivelyUpdate(e)},Ld.prototype.incrementOffsetX=function(e){i(this,"IncrementOffsetX",0,[e],0,0)},Ld.prototype.incrementOffsetY=function(e){i(this,"IncrementOffsetY",0,[e],0,0)},Ld.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ld.prototype._handleResult=function(e){if(jd.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Blur)||(this._B=t.Blur),y(t.IsVisible)||(this._I=t.IsVisible),y(t.Obscured)||(this._O=t.Obscured),y(t.OffsetX)||(this._Of=t.OffsetX),y(t.OffsetY)||(this._Off=t.OffsetY),y(t.RotateWithShape)||(this._R=t.RotateWithShape),y(t.Size)||(this._S=t.Size),y(t.Style)||(this._St=t.Style),y(t.Transparency)||(this._T=t.Transparency),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["foregroundColor","ForegroundColor"])}},Ld.prototype.load=function(e){return b(this,e)},Ld.prototype.retrieve=function(e){return v(this,e)},Ld.prototype._handleIdResult=function(e){jd.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ld.prototype._handleRetrieveResult=function(e,t){jd.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ld.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ld.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ld.prototype.toJSON=function(){return O(this,{blur:this._B,isVisible:this._I,obscured:this._O,offsetX:this._Of,offsetY:this._Off,rotateWithShape:this._R,size:this._S,style:this._St,transparency:this._T,type:this._Ty},{foregroundColor:this._F})},Ld.prototype.setMockData=function(e){I(this,e)},Ld.prototype.ensureUnchanged=function(e){d(this,e)},Ld);function Ld(){return null!==jd&&jd.apply(this,arguments)||this}a.ShadowFormat=Fd;var Md,Bd,Hd,Ud,Wd,Gd,Vd,zd,qd,Kd,Jd,Xd,Qd,Yd,Zd,$d,eh,th,nh,rh,ih,oh,ah,sh,ch,lh,uh,ph,fh,dh,hh,gh,yh,mh,_h,bh,vh,Oh,Ph,Ch,Rh="ThreeDimensionalFormat",Sh=(Md=OfficeExtension.ClientObject,__extends(Ih,Md),Object.defineProperty(Ih.prototype,"_className",{get:function(){return"ThreeDimensionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","bevelBottomDepth","bevelBottomInset","bevelBottomType","bevelTopDepth","bevelTopInset","bevelTopType","contourWidth","depth","extrusionColorType","fieldOfView","lightAngle","isPerspective","presetCamera","presetExtrusionDirection","presetLighting","presetLightingDirection","presetLightingSoftness","presetMaterial","presetThreeDimensionalFormat","projectText","rotationX","rotationY","rotationZ","isVisible","z"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BevelBottomDepth","BevelBottomInset","BevelBottomType","BevelTopDepth","BevelTopInset","BevelTopType","ContourWidth","Depth","ExtrusionColorType","FieldOfView","LightAngle","IsPerspective","PresetCamera","PresetExtrusionDirection","PresetLighting","PresetLightingDirection","PresetLightingSoftness","PresetMaterial","PresetThreeDimensionalFormat","ProjectText","RotationX","RotationY","RotationZ","IsVisible","Z"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"_navigationPropertyNames",{get:function(){return["contourColor","extrusionColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"contourColor",{get:function(){return this._C||(this._C=e(a.ColorFormat,this,"ContourColor",!1,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"extrusionColor",{get:function(){return this._E||(this._E=e(a.ColorFormat,this,"ExtrusionColor",!1,4)),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"bevelBottomDepth",{get:function(){return m("bevelBottomDepth",this._B,Rh,this._isNull),this._B},set:function(e){this._B=e,h(this,"BevelBottomDepth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"bevelBottomInset",{get:function(){return m("bevelBottomInset",this._Be,Rh,this._isNull),this._Be},set:function(e){this._Be=e,h(this,"BevelBottomInset",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"bevelBottomType",{get:function(){return m("bevelBottomType",this._Bev,Rh,this._isNull),this._Bev},set:function(e){this._Bev=e,h(this,"BevelBottomType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"bevelTopDepth",{get:function(){return m("bevelTopDepth",this._Beve,Rh,this._isNull),this._Beve},set:function(e){this._Beve=e,h(this,"BevelTopDepth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"bevelTopInset",{get:function(){return m("bevelTopInset",this._Bevel,Rh,this._isNull),this._Bevel},set:function(e){this._Bevel=e,h(this,"BevelTopInset",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"bevelTopType",{get:function(){return m("bevelTopType",this._BevelT,Rh,this._isNull),this._BevelT},set:function(e){this._BevelT=e,h(this,"BevelTopType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"contourWidth",{get:function(){return m("contourWidth",this._Co,Rh,this._isNull),this._Co},set:function(e){this._Co=e,h(this,"ContourWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"depth",{get:function(){return m("depth",this._D,Rh,this._isNull),this._D},set:function(e){this._D=e,h(this,"Depth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"extrusionColorType",{get:function(){return m("extrusionColorType",this._Ex,Rh,this._isNull),this._Ex},set:function(e){this._Ex=e,h(this,"ExtrusionColorType",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"fieldOfView",{get:function(){return m("fieldOfView",this._F,Rh,this._isNull),this._F},set:function(e){this._F=e,h(this,"FieldOfView",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"isPerspective",{get:function(){return m("isPerspective",this._I,Rh,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsPerspective",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"isVisible",{get:function(){return m("isVisible",this._Is,Rh,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsVisible",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"lightAngle",{get:function(){return m("lightAngle",this._L,Rh,this._isNull),this._L},set:function(e){this._L=e,h(this,"LightAngle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"presetCamera",{get:function(){return m("presetCamera",this._P,Rh,this._isNull),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"presetExtrusionDirection",{get:function(){return m("presetExtrusionDirection",this._Pr,Rh,this._isNull),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"presetLighting",{get:function(){return m("presetLighting",this._Pre,Rh,this._isNull),this._Pre},set:function(e){this._Pre=e,h(this,"PresetLighting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"presetLightingDirection",{get:function(){return m("presetLightingDirection",this._Pres,Rh,this._isNull),this._Pres},set:function(e){this._Pres=e,h(this,"PresetLightingDirection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"presetLightingSoftness",{get:function(){return m("presetLightingSoftness",this._Prese,Rh,this._isNull),this._Prese},set:function(e){this._Prese=e,h(this,"PresetLightingSoftness",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"presetMaterial",{get:function(){return m("presetMaterial",this._Preset,Rh,this._isNull),this._Preset},set:function(e){this._Preset=e,h(this,"PresetMaterial",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"presetThreeDimensionalFormat",{get:function(){return m("presetThreeDimensionalFormat",this._PresetT,Rh,this._isNull),this._PresetT},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"projectText",{get:function(){return m("projectText",this._Pro,Rh,this._isNull),this._Pro},set:function(e){this._Pro=e,h(this,"ProjectText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"rotationX",{get:function(){return m("rotationX",this._R,Rh,this._isNull),this._R},set:function(e){this._R=e,h(this,"RotationX",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"rotationY",{get:function(){return m("rotationY",this._Ro,Rh,this._isNull),this._Ro},set:function(e){this._Ro=e,h(this,"RotationY",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"rotationZ",{get:function(){return m("rotationZ",this._Rot,Rh,this._isNull),this._Rot},set:function(e){this._Rot=e,h(this,"RotationZ",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"z",{get:function(){return m("z",this._Z,Rh,this._isNull),this._Z},set:function(e){this._Z=e,h(this,"Z",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ih.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Rh,this._isNull),this.__R},enumerable:!0,configurable:!0}),Ih.prototype.set=function(e,t){this._recursivelySet(e,t,["bevelBottomDepth","bevelBottomInset","bevelBottomType","bevelTopDepth","bevelTopInset","bevelTopType","contourWidth","depth","extrusionColorType","fieldOfView","lightAngle","isPerspective","presetLighting","presetLightingDirection","presetLightingSoftness","presetMaterial","projectText","rotationX","rotationY","rotationZ","isVisible","z"],["contourColor","extrusionColor"],[])},Ih.prototype.update=function(e){this._recursivelyUpdate(e)},Ih.prototype.incrementRotationHorizontal=function(e){i(this,"IncrementRotationHorizontal",0,[e],0,0)},Ih.prototype.incrementRotationVertical=function(e){i(this,"IncrementRotationVertical",0,[e],0,0)},Ih.prototype.incrementRotationX=function(e){i(this,"IncrementRotationX",0,[e],0,0)},Ih.prototype.incrementRotationY=function(e){i(this,"IncrementRotationY",0,[e],0,0)},Ih.prototype.incrementRotationZ=function(e){i(this,"IncrementRotationZ",0,[e],0,0)},Ih.prototype.resetRotation=function(){i(this,"ResetRotation",0,[],0,0)},Ih.prototype.setExtrusionDirection=function(e){i(this,"SetExtrusionDirection",0,[e],0,0)},Ih.prototype.setPresetCamera=function(e){i(this,"SetPresetCamera",0,[e],0,0)},Ih.prototype.setThreeDimensionalFormat=function(e){i(this,"SetThreeDimensionalFormat",0,[e],0,0)},Ih.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Ih.prototype._handleResult=function(e){if(Md.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BevelBottomDepth)||(this._B=t.BevelBottomDepth),y(t.BevelBottomInset)||(this._Be=t.BevelBottomInset),y(t.BevelBottomType)||(this._Bev=t.BevelBottomType),y(t.BevelTopDepth)||(this._Beve=t.BevelTopDepth),y(t.BevelTopInset)||(this._Bevel=t.BevelTopInset),y(t.BevelTopType)||(this._BevelT=t.BevelTopType),y(t.ContourWidth)||(this._Co=t.ContourWidth),y(t.Depth)||(this._D=t.Depth),y(t.ExtrusionColorType)||(this._Ex=t.ExtrusionColorType),y(t.FieldOfView)||(this._F=t.FieldOfView),y(t.IsPerspective)||(this._I=t.IsPerspective),y(t.IsVisible)||(this._Is=t.IsVisible),y(t.LightAngle)||(this._L=t.LightAngle),y(t.PresetCamera)||(this._P=t.PresetCamera),y(t.PresetExtrusionDirection)||(this._Pr=t.PresetExtrusionDirection),y(t.PresetLighting)||(this._Pre=t.PresetLighting),y(t.PresetLightingDirection)||(this._Pres=t.PresetLightingDirection),y(t.PresetLightingSoftness)||(this._Prese=t.PresetLightingSoftness),y(t.PresetMaterial)||(this._Preset=t.PresetMaterial),y(t.PresetThreeDimensionalFormat)||(this._PresetT=t.PresetThreeDimensionalFormat),y(t.ProjectText)||(this._Pro=t.ProjectText),y(t.RotationX)||(this._R=t.RotationX),y(t.RotationY)||(this._Ro=t.RotationY),y(t.RotationZ)||(this._Rot=t.RotationZ),y(t.Z)||(this._Z=t.Z),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["contourColor","ContourColor","extrusionColor","ExtrusionColor"])}},Ih.prototype.load=function(e){return b(this,e)},Ih.prototype.retrieve=function(e){return v(this,e)},Ih.prototype._handleIdResult=function(e){Md.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Ih.prototype._handleRetrieveResult=function(e,t){Md.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Ih.prototype.track=function(){return this.context.trackedObjects.add(this),this},Ih.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Ih.prototype.toJSON=function(){return O(this,{bevelBottomDepth:this._B,bevelBottomInset:this._Be,bevelBottomType:this._Bev,bevelTopDepth:this._Beve,bevelTopInset:this._Bevel,bevelTopType:this._BevelT,contourWidth:this._Co,depth:this._D,extrusionColorType:this._Ex,fieldOfView:this._F,isPerspective:this._I,isVisible:this._Is,lightAngle:this._L,presetCamera:this._P,presetExtrusionDirection:this._Pr,presetLighting:this._Pre,presetLightingDirection:this._Pres,presetLightingSoftness:this._Prese,presetMaterial:this._Preset,presetThreeDimensionalFormat:this._PresetT,projectText:this._Pro,rotationX:this._R,rotationY:this._Ro,rotationZ:this._Rot,z:this._Z},{contourColor:this._C,extrusionColor:this._E})},Ih.prototype.setMockData=function(e){I(this,e)},Ih.prototype.ensureUnchanged=function(e){d(this,e)},Ih);function Ih(){return null!==Md&&Md.apply(this,arguments)||this}a.ThreeDimensionalFormat=Sh,(Bd=a.ArrowheadLength||(a.ArrowheadLength={})).mixed="Mixed",Bd.short="Short",Bd.medium="Medium",Bd.long="Long",(Hd=a.ArrowheadStyle||(a.ArrowheadStyle={})).mixed="Mixed",Hd.none="None",Hd.triangle="Triangle",Hd.open="Open",Hd.stealth="Stealth",Hd.diamond="Diamond",Hd.oval="Oval",(Ud=a.ArrowheadWidth||(a.ArrowheadWidth={})).mixed="Mixed",Ud.narrow="Narrow",Ud.medium="Medium",Ud.wide="Wide",(Wd=a.BevelType||(a.BevelType={})).mixed="mixed",Wd.none="none",Wd.relaxedInset="relaxedInset",Wd.circle="circle",Wd.slope="slope",Wd.cross="cross",Wd.angle="angle",Wd.softRound="softRound",Wd.convex="convex",Wd.coolSlant="coolSlant",Wd.divot="divot",Wd.riblet="riblet",Wd.hardEdge="hardEdge",Wd.artDeco="artDeco",(Gd=a.ColorIndex||(a.ColorIndex={})).auto="Auto",Gd.black="Black",Gd.blue="Blue",Gd.turquoise="Turquoise",Gd.brightGreen="BrightGreen",Gd.pink="Pink",Gd.red="Red",Gd.yellow="Yellow",Gd.white="White",Gd.darkBlue="DarkBlue",Gd.teal="Teal",Gd.green="Green",Gd.violet="Violet",Gd.darkRed="DarkRed",Gd.darkYellow="DarkYellow",Gd.gray50="Gray50",Gd.gray25="Gray25",Gd.classicRed="ClassicRed",Gd.classicBlue="ClassicBlue",Gd.byAuthor="ByAuthor",(Vd=a.ColorType||(a.ColorType={})).rgb="rgb",Vd.scheme="scheme",(zd=a.Continue||(a.Continue={})).disabled="Disabled",zd.list="List",zd.reset="Reset",(qd=a.DefaultListBehavior||(a.DefaultListBehavior={})).word97="Word97",qd.word2000="Word2000",qd.word2002="Word2002",(Kd=a.EmphasisMark||(a.EmphasisMark={})).none="None",Kd.overSolidCircle="OverSolidCircle",Kd.overComma="OverComma",Kd.overWhiteCircle="OverWhiteCircle",Kd.underSolidCircle="UnderSolidCircle",(Jd=a.ExtrusionColorType||(a.ExtrusionColorType={})).mixed="mixed",Jd.automatic="automatic",Jd.custom="custom",(Xd=a.FillType||(a.FillType={})).mixed="Mixed",Xd.solid="Solid",Xd.patterned="Patterned",Xd.gradient="Gradient",Xd.textured="Textured",Xd.background="Background",Xd.picture="Picture",(Qd=a.GradientColorType||(a.GradientColorType={})).mixed="Mixed",Qd.oneColor="OneColor",Qd.twoColors="TwoColors",Qd.presetColors="PresetColors",Qd.multiColor="MultiColor",(Yd=a.GradientStyle||(a.GradientStyle={})).mixed="Mixed",Yd.horizontal="Horizontal",Yd.vertical="Vertical",Yd.diagonalUp="DiagonalUp",Yd.diagonalDown="DiagonalDown",Yd.fromCorner="FromCorner",Yd.fromTitle="FromTitle",Yd.fromCenter="FromCenter",(Zd=a.Ligature||(a.Ligature={})).none="None",Zd.standard="Standard",Zd.contextual="Contextual",Zd.standardContextual="StandardContextual",Zd.historical="Historical",Zd.standardHistorical="StandardHistorical",Zd.contextualHistorical="ContextualHistorical",Zd.standardContextualHistorical="StandardContextualHistorical",Zd.discretional="Discretional",Zd.standardDiscretional="StandardDiscretional",Zd.contextualDiscretional="ContextualDiscretional",Zd.standardContextualDiscretional="StandardContextualDiscretional",Zd.historicalDiscretional="HistoricalDiscretional",Zd.standardHistoricalDiscretional="StandardHistoricalDiscretional",Zd.contextualHistoricalDiscretional="ContextualHistoricalDiscretional",Zd.all="All",($d=a.LightRigType||(a.LightRigType={})).mixed="Mixed",$d.legacyFlat1="LegacyFlat1",$d.legacyFlat2="LegacyFlat2",$d.legacyFlat3="LegacyFlat3",$d.legacyFlat4="LegacyFlat4",$d.legacyNormal1="LegacyNormal1",$d.legacyNormal2="LegacyNormal2",$d.legacyNormal3="LegacyNormal3",$d.legacyNormal4="LegacyNormal4",$d.legacyHarsh1="LegacyHarsh1",$d.legacyHarsh2="LegacyHarsh2",$d.legacyHarsh3="LegacyHarsh3",$d.legacyHarsh4="LegacyHarsh4",$d.threePoint="ThreePoint",$d.balanced="Balanced",$d.soft="Soft",$d.harsh="Harsh",$d.flood="Flood",$d.contrasting="Contrasting",$d.morning="Morning",$d.sunrise="Sunrise",$d.sunset="Sunset",$d.chilly="Chilly",$d.freezing="Freezing",$d.flat="Flat",$d.twoPoint="TwoPoint",$d.glow="Glow",$d.brightRoom="BrightRoom",(eh=a.LineDashStyle||(a.LineDashStyle={})).mixed="Mixed",eh.solid="Solid",eh.squareDot="SquareDot",eh.roundDot="RoundDot",eh.dash="Dash",eh.dashDot="DashDot",eh.dashDotDot="DashDotDot",eh.longDash="LongDash",eh.longDashDot="LongDashDot",eh.longDashDotDot="LongDashDotDot",eh.sysDash="SysDash",eh.sysDot="SysDot",eh.sysDashDot="SysDashDot",(th=a.LineFormatStyle||(a.LineFormatStyle={})).mixed="Mixed",th.single="Single",th.thinThin="ThinThin",th.thinThick="ThinThick",th.thickThin="ThickThin",th.thickBetweenThin="ThickBetweenThin",(nh=a.ListApplyTo||(a.ListApplyTo={})).wholeList="WholeList",nh.thisPointForward="ThisPointForward",nh.selection="Selection",(rh=a.ListType||(a.ListType={})).listNoNumbering="ListNoNumbering",rh.listListNumOnly="ListListNumOnly",rh.listBullet="ListBullet",rh.listSimpleNumbering="ListSimpleNumbering",rh.listOutlineNumbering="ListOutlineNumbering",rh.listMixedNumbering="ListMixedNumbering",rh.listPictureBullet="ListPictureBullet",(ih=a.NumberForm||(a.NumberForm={})).default="Default",ih.lining="Lining",ih.oldStyle="OldStyle",(oh=a.NumberSpacing||(a.NumberSpacing={})).default="Default",oh.proportional="Proportional",oh.tabular="Tabular",(ah=a.NumberType||(a.NumberType={})).paragraph="Paragraph",ah.listNum="ListNum",ah.allNumbers="AllNumbers",(sh=a.PatternType||(a.PatternType={})).mixed="Mixed",sh.percent5="Percent5",sh.percent10="Percent10",sh.percent20="Percent20",sh.percent25="Percent25",sh.percent30="Percent30",sh.percent40="Percent40",sh.percent50="Percent50",sh.percent60="Percent60",sh.percent70="Percent70",sh.percent75="Percent75",sh.percent80="Percent80",sh.percent90="Percent90",sh.darkHorizontal="DarkHorizontal",sh.darkVertical="DarkVertical",sh.darkDownwardDiagonal="DarkDownwardDiagonal",sh.darkUpwardDiagonal="DarkUpwardDiagonal",sh.smallCheckerBoard="SmallCheckerBoard",sh.trellis="Trellis",sh.lightHorizontal="LightHorizontal",sh.lightVertical="LightVertical",sh.lightDownwardDiagonal="LightDownwardDiagonal",sh.lightUpwardDiagonal="LightUpwardDiagonal",sh.smallGrid="SmallGrid",sh.dottedDiamond="DottedDiamond",sh.wideDownwardDiagonal="WideDownwardDiagonal",sh.wideUpwardDiagonal="WideUpwardDiagonal",sh.dashedUpwardDiagonal="DashedUpwardDiagonal",sh.dashedDownwardDiagonal="DashedDownwardDiagonal",sh.narrowVertical="NarrowVertical",sh.narrowHorizontal="NarrowHorizontal",sh.dashedVertical="DashedVertical",sh.dashedHorizontal="DashedHorizontal",sh.largeConfetti="LargeConfetti",sh.largeGrid="LargeGrid",sh.horizontalBrick="HorizontalBrick",sh.largeCheckerBoard="LargeCheckerBoard",sh.smallConfetti="SmallConfetti",sh.zigZag="ZigZag",sh.solidDiamond="SolidDiamond",sh.diagonalBrick="DiagonalBrick",sh.outlinedDiamond="OutlinedDiamond",sh.plaid="Plaid",sh.sphere="Sphere",sh.weave="Weave",sh.dottedGrid="DottedGrid",sh.divot="Divot",sh.shingle="Shingle",sh.wave="Wave",sh.horizontal="Horizontal",sh.vertical="Vertical",sh.cross="Cross",sh.downwardDiagonal="DownwardDiagonal",sh.upwardDiagonal="UpwardDiagonal",sh.diagonalCross="DiagonalCross",(ch=a.PresetCamera||(a.PresetCamera={})).mixed="Mixed",ch.legacyObliqueTopLeft="LegacyObliqueTopLeft",ch.legacyObliqueTop="LegacyObliqueTop",ch.legacyObliqueTopRight="LegacyObliqueTopRight",ch.legacyObliqueLeft="LegacyObliqueLeft",ch.legacyObliqueFront="LegacyObliqueFront",ch.legacyObliqueRight="LegacyObliqueRight",ch.legacyObliqueBottomLeft="LegacyObliqueBottomLeft",ch.legacyObliqueBottom="LegacyObliqueBottom",ch.legacyObliqueBottomRight="LegacyObliqueBottomRight",ch.legacyPerspectiveTopLeft="LegacyPerspectiveTopLeft",ch.legacyPerspectiveTop="LegacyPerspectiveTop",ch.legacyPerspectiveTopRight="LegacyPerspectiveTopRight",ch.legacyPerspectiveLeft="LegacyPerspectiveLeft",ch.legacyPerspectiveFront="LegacyPerspectiveFront",ch.legacyPerspectiveRight="LegacyPerspectiveRight",ch.legacyPerspectiveBottomLeft="LegacyPerspectiveBottomLeft",ch.legacyPerspectiveBottom="LegacyPerspectiveBottom",ch.legacyPerspectiveBottomRight="LegacyPerspectiveBottomRight",ch.orthographicFront="OrthographicFront",ch.isometricTopUp="IsometricTopUp",ch.isometricTopDown="IsometricTopDown",ch.isometricBottomUp="IsometricBottomUp",ch.isometricBottomDown="IsometricBottomDown",ch.isometricLeftUp="IsometricLeftUp",ch.isometricLeftDown="IsometricLeftDown",ch.isometricRightUp="IsometricRightUp",ch.isometricRightDown="IsometricRightDown",ch.isometricOffAxis1Left="IsometricOffAxis1Left",ch.isometricOffAxis1Right="IsometricOffAxis1Right",ch.isometricOffAxis1Top="IsometricOffAxis1Top",ch.isometricOffAxis2Left="IsometricOffAxis2Left",ch.isometricOffAxis2Right="IsometricOffAxis2Right",ch.isometricOffAxis2Top="IsometricOffAxis2Top",ch.isometricOffAxis3Left="IsometricOffAxis3Left",ch.isometricOffAxis3Right="IsometricOffAxis3Right",ch.isometricOffAxis3Bottom="IsometricOffAxis3Bottom",ch.isometricOffAxis4Left="IsometricOffAxis4Left",ch.isometricOffAxis4Right="IsometricOffAxis4Right",ch.isometricOffAxis4Bottom="IsometricOffAxis4Bottom",ch.obliqueTopLeft="ObliqueTopLeft",ch.obliqueTop="ObliqueTop",ch.obliqueTopRight="ObliqueTopRight",ch.obliqueLeft="ObliqueLeft",ch.obliqueRight="ObliqueRight",ch.obliqueBottomLeft="ObliqueBottomLeft",ch.obliqueBottom="ObliqueBottom",ch.obliqueBottomRight="ObliqueBottomRight",ch.perspectiveFront="PerspectiveFront",ch.perspectiveLeft="PerspectiveLeft",ch.perspectiveRight="PerspectiveRight",ch.perspectiveAbove="PerspectiveAbove",ch.perspectiveBelow="PerspectiveBelow",ch.perspectiveAboveLeftFacing="PerspectiveAboveLeftFacing",ch.perspectiveAboveRightFacing="PerspectiveAboveRightFacing",ch.perspectiveContrastingLeftFacing="PerspectiveContrastingLeftFacing",ch.perspectiveContrastingRightFacing="PerspectiveContrastingRightFacing",ch.perspectiveHeroicLeftFacing="PerspectiveHeroicLeftFacing",ch.perspectiveHeroicRightFacing="PerspectiveHeroicRightFacing",ch.perspectiveHeroicExtremeLeftFacing="PerspectiveHeroicExtremeLeftFacing",ch.perspectiveHeroicExtremeRightFacing="PerspectiveHeroicExtremeRightFacing",ch.perspectiveRelaxed="PerspectiveRelaxed",ch.perspectiveRelaxedModerately="PerspectiveRelaxedModerately",(lh=a.PresetExtrusionDirection||(a.PresetExtrusionDirection={})).mixed="Mixed",lh.bottomRight="BottomRight",lh.bottom="Bottom",lh.bottomLeft="BottomLeft",lh.right="Right",lh.none="None",lh.left="Left",lh.topRight="TopRight",lh.top="Top",lh.topLeft="TopLeft",(uh=a.PresetGradientType||(a.PresetGradientType={})).mixed="Mixed",uh.earlySunset="EarlySunset",uh.lateSunset="LateSunset",uh.nightfall="Nightfall",uh.daybreak="Daybreak",uh.horizon="Horizon",uh.desert="Desert",uh.ocean="Ocean",uh.calmWater="CalmWater",uh.fire="Fire",uh.fog="Fog",uh.moss="Moss",uh.peacock="Peacock",uh.wheat="Wheat",uh.parchment="Parchment",uh.mahogany="Mahogany",uh.rainbow="Rainbow",uh.rainbowII="RainbowII",uh.gold="Gold",uh.goldII="GoldII",uh.brass="Brass",uh.chrome="Chrome",uh.chromeII="ChromeII",uh.silver="Silver",uh.sapphire="Sapphire",(ph=a.PresetLightingDirection||(a.PresetLightingDirection={})).mixed="Mixed",ph.topLeft="TopLeft",ph.top="Top",ph.topRight="TopRight",ph.left="Left",ph.none="None",ph.right="Right",ph.bottomLeft="BottomLeft",ph.bottom="Bottom",ph.bottomRight="BottomRight",(fh=a.PresetLightingSoftness||(a.PresetLightingSoftness={})).mixed="Mixed",fh.dim="Dim",fh.normal="Normal",fh.bright="Bright",(dh=a.PresetMaterial||(a.PresetMaterial={})).mixed="Mixed",dh.matte="Matte",dh.plastic="Plastic",dh.metal="Metal",dh.wireFrame="WireFrame",dh.matte2="Matte2",dh.plastic2="Plastic2",dh.metal2="Metal2",dh.warmMatte="WarmMatte",dh.translucentPowder="TranslucentPowder",dh.powder="Powder",dh.darkEdge="DarkEdge",dh.softEdge="SoftEdge",dh.clear="Clear",dh.flat="Flat",dh.softMetal="SoftMetal",(hh=a.PresetTexture||(a.PresetTexture={})).mixed="Mixed",hh.papyrus="Papyrus",hh.canvas="Canvas",hh.denim="Denim",hh.wovenMat="WovenMat",hh.waterDroplets="WaterDroplets",hh.paperBag="PaperBag",hh.fishFossil="FishFossil",hh.sand="Sand",hh.greenMarble="GreenMarble",hh.whiteMarble="WhiteMarble",hh.brownMarble="BrownMarble",hh.granite="Granite",hh.newsprint="Newsprint",hh.recycledPaper="RecycledPaper",hh.parchment="Parchment",hh.stationery="Stationery",hh.blueTissuePaper="BlueTissuePaper",hh.pinkTissuePaper="PinkTissuePaper",hh.purpleMesh="PurpleMesh",hh.bouquet="Bouquet",hh.cork="Cork",hh.walnut="Walnut",hh.oak="Oak",hh.mediumWood="MediumWood",(gh=a.PresetThreeDimensionalFormat||(a.PresetThreeDimensionalFormat={})).mixed="Mixed",gh.format1="Format1",gh.format2="Format2",gh.format3="Format3",gh.format4="Format4",gh.format5="Format5",gh.format6="Format6",gh.format7="Format7",gh.format8="Format8",gh.format9="Format9",gh.format10="Format10",gh.format11="Format11",gh.format12="Format12",gh.format13="Format13",gh.format14="Format14",gh.format15="Format15",gh.format16="Format16",gh.format17="Format17",gh.format18="Format18",gh.format19="Format19",gh.format20="Format20",(yh=a.ReflectionType||(a.ReflectionType={})).mixed="Mixed",yh.none="None",yh.type1="Type1",yh.type2="Type2",yh.type3="Type3",yh.type4="Type4",yh.type5="Type5",yh.type6="Type6",yh.type7="Type7",yh.type8="Type8",yh.type9="Type9",(mh=a.ShadowStyle||(a.ShadowStyle={})).mixed="Mixed",mh.outerShadow="OuterShadow",mh.innerShadow="InnerShadow",(_h=a.ShadowType||(a.ShadowType={})).mixed="Mixed",_h.type1="Type1",_h.type2="Type2",_h.type3="Type3",_h.type4="Type4",_h.type5="Type5",_h.type6="Type6",_h.type7="Type7",_h.type8="Type8",_h.type9="Type9",_h.type10="Type10",_h.type11="Type11",_h.type12="Type12",_h.type13="Type13",_h.type14="Type14",_h.type15="Type15",_h.type16="Type16",_h.type17="Type17",_h.type18="Type18",_h.type19="Type19",_h.type20="Type20",_h.type21="Type21",_h.type22="Type22",_h.type23="Type23",_h.type24="Type24",_h.type25="Type25",_h.type26="Type26",_h.type27="Type27",_h.type28="Type28",_h.type29="Type29",_h.type30="Type30",_h.type31="Type31",_h.type32="Type32",_h.type33="Type33",_h.type34="Type34",_h.type35="Type35",_h.type36="Type36",_h.type37="Type37",_h.type38="Type38",_h.type39="Type39",_h.type40="Type40",_h.type41="Type41",_h.type42="Type42",_h.type43="Type43",(bh=a.StylisticSet||(a.StylisticSet={})).default="Default",bh.set01="Set01",bh.set02="Set02",bh.set03="Set03",bh.set04="Set04",bh.set05="Set05",bh.set06="Set06",bh.set07="Set07",bh.set08="Set08",bh.set09="Set09",bh.set10="Set10",bh.set11="Set11",bh.set12="Set12",bh.set13="Set13",bh.set14="Set14",bh.set15="Set15",bh.set16="Set16",bh.set17="Set17",bh.set18="Set18",bh.set19="Set19",bh.set20="Set20",(vh=a.TextureAlignment||(a.TextureAlignment={})).mixed="Mixed",vh.topLeft="TopLeft",vh.top="Top",vh.topRight="TopRight",vh.left="Left",vh.center="Center",vh.right="Right",vh.bottomLeft="BottomLeft",vh.bottom="Bottom",vh.bottomRight="BottomRight",(Oh=a.TextureType||(a.TextureType={})).mixed="Mixed",Oh.preset="Preset",Oh.userDefined="UserDefined",(Ph=a.ThemeColorIndex||(a.ThemeColorIndex={})).notThemeColor="NotThemeColor",Ph.mainDark1="MainDark1",Ph.mainLight1="MainLight1",Ph.mainDark2="MainDark2",Ph.mainLight2="MainLight2",Ph.accent1="Accent1",Ph.accent2="Accent2",Ph.accent3="Accent3",Ph.accent4="Accent4",Ph.accent5="Accent5",Ph.accent6="Accent6",Ph.hyperlink="Hyperlink",Ph.hyperlinkFollowed="HyperlinkFollowed",Ph.background1="Background1",Ph.text1="Text1",Ph.background2="Background2",Ph.text2="Text2",(Ch=a.HyperlinkType||(a.HyperlinkType={})).range="Range",Ch.shape="Shape",Ch.inlineShape="InlineShape";var Ah,Th="Bibliography",Nh=(Ah=OfficeExtension.ClientObject,__extends(Dh,Ah),Object.defineProperty(Dh.prototype,"_className",{get:function(){return"Bibliography"},enumerable:!0,configurable:!0}),Object.defineProperty(Dh.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","bibliographyStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dh.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","BibliographyStyle"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dh.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Dh.prototype,"_navigationPropertyNames",{get:function(){return["sources"]},enumerable:!0,configurable:!0}),Object.defineProperty(Dh.prototype,"sources",{get:function(){return this._S||(this._S=e(a.SourceCollection,this,"Sources",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Dh.prototype,"bibliographyStyle",{get:function(){return m("bibliographyStyle",this._B,Th,this._isNull),this._B},set:function(e){this._B=e,h(this,"BibliographyStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Dh.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Th,this._isNull),this.__R},enumerable:!0,configurable:!0}),Dh.prototype.set=function(e,t){this._recursivelySet(e,t,["bibliographyStyle"],[],["sources"])},Dh.prototype.update=function(e){this._recursivelyUpdate(e)},Dh.prototype.generateUniqueTag=function(){return i(this,"GenerateUniqueTag",1,[],4,0)},Dh.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Dh.prototype._handleResult=function(e){if(Ah.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BibliographyStyle)||(this._B=t.BibliographyStyle),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["sources","Sources"])}},Dh.prototype.load=function(e){return b(this,e)},Dh.prototype.retrieve=function(e){return v(this,e)},Dh.prototype._handleIdResult=function(e){Ah.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Dh.prototype._handleRetrieveResult=function(e,t){Ah.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Dh.prototype.track=function(){return this.context.trackedObjects.add(this),this},Dh.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Dh.prototype.toJSON=function(){return O(this,{bibliographyStyle:this._B},{sources:this._S})},Dh.prototype.setMockData=function(e){I(this,e)},Dh.prototype.ensureUnchanged=function(e){d(this,e)},Dh);function Dh(){return null!==Ah&&Ah.apply(this,arguments)||this}a.Bibliography=Nh;var xh,Eh="SourceCollection",kh=(xh=OfficeExtension.ClientObject,__extends(jh,xh),Object.defineProperty(jh.prototype,"_className",{get:function(){return"SourceCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(jh.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(jh.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jh.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(jh.prototype,"items",{get:function(){return m("items",this.m__items,Eh,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(jh.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Eh,this._isNull),this.__R},enumerable:!0,configurable:!0}),jh.prototype.add=function(e){return p(a.Source,this,"Add",0,[e],!1,!0,null,0)},jh.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},jh.prototype._handleResult=function(e){if(xh.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Source,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},jh.prototype.load=function(e){return b(this,e)},jh.prototype.retrieve=function(e){return v(this,e)},jh.prototype._handleIdResult=function(e){xh.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},jh.prototype._handleRetrieveResult=function(e,t){var n=this;xh.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Source,!1,n,e,t)})},jh.prototype.track=function(){return this.context.trackedObjects.add(this),this},jh.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},jh.prototype.toJSON=function(){return O(this,{},{},this.m__items)},jh.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Source,!1,n,e,t)},function(e){return n.m__items=e})},jh);function jh(){return null!==xh&&xh.apply(this,arguments)||this}a.SourceCollection=kh;var wh,Fh="Source",Lh=(wh=OfficeExtension.ClientObject,__extends(Mh,wh),Object.defineProperty(Mh.prototype,"_className",{get:function(){return"Source"},enumerable:!0,configurable:!0}),Object.defineProperty(Mh.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","tag","xml","isCited"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mh.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","Tag","Xml","IsCited"]},enumerable:!0,configurable:!0}),Object.defineProperty(Mh.prototype,"isCited",{get:function(){return m("isCited",this._I,Fh,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Mh.prototype,"tag",{get:function(){return m("tag",this._T,Fh,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Mh.prototype,"xml",{get:function(){return m("xml",this._X,Fh,this._isNull),this._X},enumerable:!0,configurable:!0}),Object.defineProperty(Mh.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Fh,this._isNull),this.__R},enumerable:!0,configurable:!0}),Mh.prototype.delete=function(){i(this,"Delete",0,[],0,0)},Mh.prototype.getFieldByName=function(e){return i(this,"GetFieldByName",0,[e],0,0)},Mh.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Mh.prototype._handleResult=function(e){if(wh.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.IsCited)||(this._I=t.IsCited),y(t.Tag)||(this._T=t.Tag),y(t.Xml)||(this._X=t.Xml),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Mh.prototype.load=function(e){return b(this,e)},Mh.prototype.retrieve=function(e){return v(this,e)},Mh.prototype._handleIdResult=function(e){wh.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Mh.prototype._handleRetrieveResult=function(e,t){wh.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Mh.prototype.track=function(){return this.context.trackedObjects.add(this),this},Mh.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Mh.prototype.toJSON=function(){return O(this,{isCited:this._I,tag:this._T,xml:this._X},{})},Mh.prototype.setMockData=function(e){I(this,e)},Mh.prototype.ensureUnchanged=function(e){d(this,e)},Mh);function Mh(){return null!==wh&&wh.apply(this,arguments)||this}a.Source=Lh;var Bh,Hh="PageSetup",Uh=(Bh=OfficeExtension.ClientObject,__extends(Wh,Bh),Object.defineProperty(Wh.prototype,"_className",{get:function(){return"PageSetup"},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","topMargin","bottomMargin","leftMargin","rightMargin","gutter","pageWidth","pageHeight","orientation","verticalAlignment","mirrorMargins","headerDistance","footerDistance","sectionStart","oddAndEvenPagesHeaderFooter","differentFirstPageHeaderFooter","suppressEndnotes","paperSize","twoPagesOnOne","charsLine","linesPage","showGrid","gutterStyle","sectionDirection","layoutMode","gutterPosition","bookFoldPrinting","bookFoldReversePrinting","bookFoldPrintingSheets"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","TopMargin","BottomMargin","LeftMargin","RightMargin","Gutter","PageWidth","PageHeight","Orientation","VerticalAlignment","MirrorMargins","HeaderDistance","FooterDistance","SectionStart","OddAndEvenPagesHeaderFooter","DifferentFirstPageHeaderFooter","SuppressEndnotes","PaperSize","TwoPagesOnOne","CharsLine","LinesPage","ShowGrid","GutterStyle","SectionDirection","LayoutMode","GutterPosition","BookFoldPrinting","BookFoldReversePrinting","BookFoldPrintingSheets"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"_navigationPropertyNames",{get:function(){return["lineNumbering","textColumns"]},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"lineNumbering",{get:function(){return this._Li||(this._Li=e(a.LineNumbering,this,"LineNumbering",!1,4)),this._Li},set:function(e){this._Li=e,h(this,"LineNumbering",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"textColumns",{get:function(){return this._T||(this._T=e(a.TextColumnCollection,this,"TextColumns",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"bookFoldPrinting",{get:function(){return m("bookFoldPrinting",this._B,Hh,this._isNull),this._B},set:function(e){this._B=e,h(this,"BookFoldPrinting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"bookFoldPrintingSheets",{get:function(){return m("bookFoldPrintingSheets",this._Bo,Hh,this._isNull),this._Bo},set:function(e){this._Bo=e,h(this,"BookFoldPrintingSheets",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"bookFoldReversePrinting",{get:function(){return m("bookFoldReversePrinting",this._Boo,Hh,this._isNull),this._Boo},set:function(e){this._Boo=e,h(this,"BookFoldReversePrinting",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"bottomMargin",{get:function(){return m("bottomMargin",this._Bot,Hh,this._isNull),this._Bot},set:function(e){this._Bot=e,h(this,"BottomMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"charsLine",{get:function(){return m("charsLine",this._C,Hh,this._isNull),this._C},set:function(e){this._C=e,h(this,"CharsLine",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"differentFirstPageHeaderFooter",{get:function(){return m("differentFirstPageHeaderFooter",this._D,Hh,this._isNull),this._D},set:function(e){this._D=e,h(this,"DifferentFirstPageHeaderFooter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"footerDistance",{get:function(){return m("footerDistance",this._F,Hh,this._isNull),this._F},set:function(e){this._F=e,h(this,"FooterDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"gutter",{get:function(){return m("gutter",this._G,Hh,this._isNull),this._G},set:function(e){this._G=e,h(this,"Gutter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"gutterPosition",{get:function(){return m("gutterPosition",this._Gu,Hh,this._isNull),this._Gu},set:function(e){this._Gu=e,h(this,"GutterPosition",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"gutterStyle",{get:function(){return m("gutterStyle",this._Gut,Hh,this._isNull),this._Gut},set:function(e){this._Gut=e,h(this,"GutterStyle",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"headerDistance",{get:function(){return m("headerDistance",this._H,Hh,this._isNull),this._H},set:function(e){this._H=e,h(this,"HeaderDistance",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"layoutMode",{get:function(){return m("layoutMode",this._L,Hh,this._isNull),this._L},set:function(e){this._L=e,h(this,"LayoutMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"leftMargin",{get:function(){return m("leftMargin",this._Le,Hh,this._isNull),this._Le},set:function(e){this._Le=e,h(this,"LeftMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"linesPage",{get:function(){return m("linesPage",this._Lin,Hh,this._isNull),this._Lin},set:function(e){this._Lin=e,h(this,"LinesPage",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"mirrorMargins",{get:function(){return m("mirrorMargins",this._M,Hh,this._isNull),this._M},set:function(e){this._M=e,h(this,"MirrorMargins",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"oddAndEvenPagesHeaderFooter",{get:function(){return m("oddAndEvenPagesHeaderFooter",this._O,Hh,this._isNull),this._O},set:function(e){this._O=e,h(this,"OddAndEvenPagesHeaderFooter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"orientation",{get:function(){return m("orientation",this._Or,Hh,this._isNull),this._Or},set:function(e){this._Or=e,h(this,"Orientation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"pageHeight",{get:function(){return m("pageHeight",this._P,Hh,this._isNull),this._P},set:function(e){this._P=e,h(this,"PageHeight",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"pageWidth",{get:function(){return m("pageWidth",this._Pa,Hh,this._isNull),this._Pa},set:function(e){this._Pa=e,h(this,"PageWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"paperSize",{get:function(){return m("paperSize",this._Pap,Hh,this._isNull),this._Pap},set:function(e){this._Pap=e,h(this,"PaperSize",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"rightMargin",{get:function(){return m("rightMargin",this._R,Hh,this._isNull),this._R},set:function(e){this._R=e,h(this,"RightMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"sectionDirection",{get:function(){return m("sectionDirection",this._S,Hh,this._isNull),this._S},set:function(e){this._S=e,h(this,"SectionDirection",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"sectionStart",{get:function(){return m("sectionStart",this._Se,Hh,this._isNull),this._Se},set:function(e){this._Se=e,h(this,"SectionStart",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"showGrid",{get:function(){return m("showGrid",this._Sh,Hh,this._isNull),this._Sh},set:function(e){this._Sh=e,h(this,"ShowGrid",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"suppressEndnotes",{get:function(){return m("suppressEndnotes",this._Su,Hh,this._isNull),this._Su},set:function(e){this._Su=e,h(this,"SuppressEndnotes",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"topMargin",{get:function(){return m("topMargin",this._To,Hh,this._isNull),this._To},set:function(e){this._To=e,h(this,"TopMargin",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"twoPagesOnOne",{get:function(){return m("twoPagesOnOne",this._Tw,Hh,this._isNull),this._Tw},set:function(e){this._Tw=e,h(this,"TwoPagesOnOne",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"verticalAlignment",{get:function(){return m("verticalAlignment",this._V,Hh,this._isNull),this._V},set:function(e){this._V=e,h(this,"VerticalAlignment",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Wh.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Hh,this._isNull),this.__R},enumerable:!0,configurable:!0}),Wh.prototype.set=function(e,t){this._recursivelySet(e,t,["topMargin","bottomMargin","leftMargin","rightMargin","gutter","pageWidth","pageHeight","orientation","verticalAlignment","mirrorMargins","headerDistance","footerDistance","sectionStart","oddAndEvenPagesHeaderFooter","differentFirstPageHeaderFooter","suppressEndnotes","paperSize","twoPagesOnOne","charsLine","linesPage","showGrid","gutterStyle","sectionDirection","layoutMode","gutterPosition","bookFoldPrinting","bookFoldReversePrinting","bookFoldPrintingSheets"],["lineNumbering"],["textColumns"])},Wh.prototype.update=function(e){this._recursivelyUpdate(e)},Wh.prototype.setAsTemplateDefault=function(){i(this,"SetAsTemplateDefault",1,[],4,0)},Wh.prototype.togglePortrait=function(){i(this,"TogglePortrait",1,[],4,0)},Wh.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Wh.prototype._handleResult=function(e){if(Bh.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.BookFoldPrinting)||(this._B=t.BookFoldPrinting),y(t.BookFoldPrintingSheets)||(this._Bo=t.BookFoldPrintingSheets),y(t.BookFoldReversePrinting)||(this._Boo=t.BookFoldReversePrinting),y(t.BottomMargin)||(this._Bot=t.BottomMargin),y(t.CharsLine)||(this._C=t.CharsLine),y(t.DifferentFirstPageHeaderFooter)||(this._D=t.DifferentFirstPageHeaderFooter),y(t.FooterDistance)||(this._F=t.FooterDistance),y(t.Gutter)||(this._G=t.Gutter),y(t.GutterPosition)||(this._Gu=t.GutterPosition),y(t.GutterStyle)||(this._Gut=t.GutterStyle),y(t.HeaderDistance)||(this._H=t.HeaderDistance),y(t.LayoutMode)||(this._L=t.LayoutMode),y(t.LeftMargin)||(this._Le=t.LeftMargin),y(t.LinesPage)||(this._Lin=t.LinesPage),y(t.MirrorMargins)||(this._M=t.MirrorMargins),y(t.OddAndEvenPagesHeaderFooter)||(this._O=t.OddAndEvenPagesHeaderFooter),y(t.Orientation)||(this._Or=t.Orientation),y(t.PageHeight)||(this._P=t.PageHeight),y(t.PageWidth)||(this._Pa=t.PageWidth),y(t.PaperSize)||(this._Pap=t.PaperSize),y(t.RightMargin)||(this._R=t.RightMargin),y(t.SectionDirection)||(this._S=t.SectionDirection),y(t.SectionStart)||(this._Se=t.SectionStart),y(t.ShowGrid)||(this._Sh=t.ShowGrid),y(t.SuppressEndnotes)||(this._Su=t.SuppressEndnotes),y(t.TopMargin)||(this._To=t.TopMargin),y(t.TwoPagesOnOne)||(this._Tw=t.TwoPagesOnOne),y(t.VerticalAlignment)||(this._V=t.VerticalAlignment),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["lineNumbering","LineNumbering","textColumns","TextColumns"])}},Wh.prototype.load=function(e){return b(this,e)},Wh.prototype.retrieve=function(e){return v(this,e)},Wh.prototype._handleIdResult=function(e){Bh.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Wh.prototype._handleRetrieveResult=function(e,t){Bh.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Wh.prototype.track=function(){return this.context.trackedObjects.add(this),this},Wh.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Wh.prototype.toJSON=function(){return O(this,{bookFoldPrinting:this._B,bookFoldPrintingSheets:this._Bo,bookFoldReversePrinting:this._Boo,bottomMargin:this._Bot,charsLine:this._C,differentFirstPageHeaderFooter:this._D,footerDistance:this._F,gutter:this._G,gutterPosition:this._Gu,gutterStyle:this._Gut,headerDistance:this._H,layoutMode:this._L,leftMargin:this._Le,linesPage:this._Lin,mirrorMargins:this._M,oddAndEvenPagesHeaderFooter:this._O,orientation:this._Or,pageHeight:this._P,pageWidth:this._Pa,paperSize:this._Pap,rightMargin:this._R,sectionDirection:this._S,sectionStart:this._Se,showGrid:this._Sh,suppressEndnotes:this._Su,topMargin:this._To,twoPagesOnOne:this._Tw,verticalAlignment:this._V},{lineNumbering:this._Li,textColumns:this._T})},Wh.prototype.setMockData=function(e){I(this,e)},Wh.prototype.ensureUnchanged=function(e){d(this,e)},Wh);function Wh(){return null!==Bh&&Bh.apply(this,arguments)||this}a.PageSetup=Uh;var Gh,Vh="LineNumbering",zh=(Gh=OfficeExtension.ClientObject,__extends(qh,Gh),Object.defineProperty(qh.prototype,"_className",{get:function(){return"LineNumbering"},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","restartMode","startingNumber","distanceFromText","countBy","isActive"]},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","RestartMode","StartingNumber","DistanceFromText","CountBy","IsActive"]},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"countBy",{get:function(){return m("countBy",this._C,Vh,this._isNull),this._C},set:function(e){this._C=e,h(this,"CountBy",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"distanceFromText",{get:function(){return m("distanceFromText",this._D,Vh,this._isNull),this._D},set:function(e){this._D=e,h(this,"DistanceFromText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"isActive",{get:function(){return m("isActive",this._I,Vh,this._isNull),this._I},set:function(e){this._I=e,h(this,"IsActive",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"restartMode",{get:function(){return m("restartMode",this._R,Vh,this._isNull),this._R},set:function(e){this._R=e,h(this,"RestartMode",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"startingNumber",{get:function(){return m("startingNumber",this._S,Vh,this._isNull),this._S},set:function(e){this._S=e,h(this,"StartingNumber",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(qh.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Vh,this._isNull),this.__R},enumerable:!0,configurable:!0}),qh.prototype.set=function(e,t){this._recursivelySet(e,t,["restartMode","startingNumber","distanceFromText","countBy","isActive"],[],[])},qh.prototype.update=function(e){this._recursivelyUpdate(e)},qh.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},qh.prototype._handleResult=function(e){if(Gh.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.CountBy)||(this._C=t.CountBy),y(t.DistanceFromText)||(this._D=t.DistanceFromText),y(t.IsActive)||(this._I=t.IsActive),y(t.RestartMode)||(this._R=t.RestartMode),y(t.StartingNumber)||(this._S=t.StartingNumber),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},qh.prototype.load=function(e){return b(this,e)},qh.prototype.retrieve=function(e){return v(this,e)},qh.prototype._handleIdResult=function(e){Gh.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},qh.prototype._handleRetrieveResult=function(e,t){Gh.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},qh.prototype.track=function(){return this.context.trackedObjects.add(this),this},qh.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},qh.prototype.toJSON=function(){return O(this,{countBy:this._C,distanceFromText:this._D,isActive:this._I,restartMode:this._R,startingNumber:this._S},{})},qh.prototype.setMockData=function(e){I(this,e)},qh.prototype.ensureUnchanged=function(e){d(this,e)},qh);function qh(){return null!==Gh&&Gh.apply(this,arguments)||this}a.LineNumbering=zh;var Kh,Jh="TextColumnCollection",Xh=(Kh=OfficeExtension.ClientObject,__extends(Qh,Kh),Object.defineProperty(Qh.prototype,"_className",{get:function(){return"TextColumnCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Qh.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Qh.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qh.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Qh.prototype,"items",{get:function(){return m("items",this.m__items,Jh,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Qh.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Jh,this._isNull),this.__R},enumerable:!0,configurable:!0}),Qh.prototype.add=function(e){return p(a.TextColumn,this,"Add",0,[e],!1,!0,null,0)},Qh.prototype.getFlowDirection=function(){return i(this,"GetFlowDirection",0,[],0,0)},Qh.prototype.getHasLineBetween=function(){return i(this,"GetHasLineBetween",0,[],0,0)},Qh.prototype.getIsEvenlySpaced=function(){return i(this,"GetIsEvenlySpaced",0,[],0,0)},Qh.prototype.setCount=function(e){i(this,"SetCount",0,[e],0,0)},Qh.prototype.setFlowDirection=function(e){i(this,"SetFlowDirection",0,[e],0,0)},Qh.prototype.setHasLineBetween=function(e){i(this,"SetHasLineBetween",0,[e],0,0)},Qh.prototype.setIsEvenlySpaced=function(e){i(this,"SetIsEvenlySpaced",0,[e],0,0)},Qh.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Qh.prototype._handleResult=function(e){if(Kh.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.TextColumn,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Qh.prototype.load=function(e){return b(this,e)},Qh.prototype.retrieve=function(e){return v(this,e)},Qh.prototype._handleIdResult=function(e){Kh.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Qh.prototype._handleRetrieveResult=function(e,t){var n=this;Kh.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.TextColumn,!1,n,e,t)})},Qh.prototype.track=function(){return this.context.trackedObjects.add(this),this},Qh.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Qh.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Qh.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.TextColumn,!1,n,e,t)},function(e){return n.m__items=e})},Qh);function Qh(){return null!==Kh&&Kh.apply(this,arguments)||this}a.TextColumnCollection=Xh;var Yh,Zh,$h,eg,tg,ng,rg,ig,og,ag,sg,cg,lg,ug,pg,fg,dg,hg,gg,yg,mg,_g,bg,vg,Og,Pg="TextColumn",Cg=(Yh=OfficeExtension.ClientObject,__extends(Rg,Yh),Object.defineProperty(Rg.prototype,"_className",{get:function(){return"TextColumn"},enumerable:!0,configurable:!0}),Object.defineProperty(Rg.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","spaceAfter","width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rg.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","SpaceAfter","Width"]},enumerable:!0,configurable:!0}),Object.defineProperty(Rg.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(Rg.prototype,"spaceAfter",{get:function(){return m("spaceAfter",this._S,Pg,this._isNull),this._S},set:function(e){this._S=e,h(this,"SpaceAfter",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Rg.prototype,"width",{get:function(){return m("width",this._W,Pg,this._isNull),this._W},set:function(e){this._W=e,h(this,"Width",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Rg.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Pg,this._isNull),this.__R},enumerable:!0,configurable:!0}),Rg.prototype.set=function(e,t){this._recursivelySet(e,t,["spaceAfter","width"],[],[])},Rg.prototype.update=function(e){this._recursivelyUpdate(e)},Rg.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Rg.prototype._handleResult=function(e){if(Yh.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.SpaceAfter)||(this._S=t.SpaceAfter),y(t.Width)||(this._W=t.Width),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},Rg.prototype.load=function(e){return b(this,e)},Rg.prototype.retrieve=function(e){return v(this,e)},Rg.prototype._handleIdResult=function(e){Yh.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Rg.prototype._handleRetrieveResult=function(e,t){Yh.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Rg.prototype.track=function(){return this.context.trackedObjects.add(this),this},Rg.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Rg.prototype.toJSON=function(){return O(this,{spaceAfter:this._S,width:this._W},{})},Rg.prototype.setMockData=function(e){I(this,e)},Rg.prototype.ensureUnchanged=function(e){d(this,e)},Rg);function Rg(){return null!==Yh&&Yh.apply(this,arguments)||this}a.TextColumn=Cg,(Zh=a.CharacterCase||(a.CharacterCase={})).next="Next",Zh.lower="Lower",Zh.upper="Upper",Zh.titleWord="TitleWord",Zh.titleSentence="TitleSentence",Zh.toggle="Toggle",Zh.halfWidth="HalfWidth",Zh.fullWidth="FullWidth",Zh.katakana="Katakana",Zh.hiragana="Hiragana",($h=a.CharacterWidth||(a.CharacterWidth={})).half="Half",$h.full="Full",(eg=a.SeekView||(a.SeekView={})).mainDocument="MainDocument",eg.primaryHeader="PrimaryHeader",eg.firstPageHeader="FirstPageHeader",eg.evenPagesHeader="EvenPagesHeader",eg.primaryFooter="PrimaryFooter",eg.firstPageFooter="FirstPageFooter",eg.evenPagesFooter="EvenPagesFooter",eg.footnotes="Footnotes",eg.endnotes="Endnotes",eg.currentPageHeader="CurrentPageHeader",eg.currentPageFooter="CurrentPageFooter",(tg=a.ShowSourceDocuments||(a.ShowSourceDocuments={})).none="None",tg.original="Original",tg.revised="Revised",tg.both="Both",(ng=a.SpecialPane||(a.SpecialPane={})).none="None",ng.primaryHeader="PrimaryHeader",ng.firstPageHeader="FirstPageHeader",ng.evenPagesHeader="EvenPagesHeader",ng.primaryFooter="PrimaryFooter",ng.firstPageFooter="FirstPageFooter",ng.evenPagesFooter="EvenPagesFooter",ng.footnotes="Footnotes",ng.endnotes="Endnotes",ng.footnoteContinuationNotice="FootnoteContinuationNotice",ng.footnoteContinuationSeparator="FootnoteContinuationSeparator",ng.footnoteSeparator="FootnoteSeparator",ng.endnoteContinuationNotice="EndnoteContinuationNotice",ng.endnoteContinuationSeparator="EndnoteContinuationSeparator",ng.endnoteSeparator="EndnoteSeparator",ng.comments="Comments",ng.currentPageHeader="CurrentPageHeader",ng.currentPageFooter="CurrentPageFooter",ng.revisions="Revisions",ng.revisionsHoriz="RevisionsHoriz",ng.revisionsVert="RevisionsVert",(rg=a.SaveConfiguration||(a.SaveConfiguration={})).doNotSaveChanges="DoNotSaveChanges",rg.saveChanges="SaveChanges",rg.promptToSaveChanges="PromptToSaveChanges",(ig=a.PageColor||(a.PageColor={})).none="None",ig.sepia="Sepia",ig.inverse="Inverse",(og=a.PageMovementType||(a.PageMovementType={})).vertical="Vertical",og.sideToSide="SideToSide",(ag=a.ReadingLayoutMargin||(a.ReadingLayoutMargin={})).automatic="Automatic",ag.suppress="Suppress",ag.full="Full",(sg=a.RevisionsBalloonMargin||(a.RevisionsBalloonMargin={})).left="Left",sg.right="Right",(cg=a.RevisionsBalloonWidthType||(a.RevisionsBalloonWidthType={})).percent="Percent",cg.points="Points",(lg=a.RevisionsMarkup||(a.RevisionsMarkup={})).none="None",lg.simple="Simple",lg.all="All",(ug=a.RevisionsMode||(a.RevisionsMode={})).balloon="Balloon",ug.inline="Inline",ug.mixed="Mixed",(pg=a.RevisionsView||(a.RevisionsView={})).final="Final",pg.original="Original",(fg=a.RevisionType||(a.RevisionType={})).none="None",fg.insert="Insert",fg.delete="Delete",fg.property="Property",fg.paragraphNumber="ParagraphNumber",fg.displayField="DisplayField",fg.reconcile="Reconcile",fg.conflict="Conflict",fg.style="Style",fg.replace="Replace",fg.paragraphProperty="ParagraphProperty",fg.tableProperty="TableProperty",fg.sectionProperty="SectionProperty",fg.styleDefinition="StyleDefinition",fg.movedFrom="MovedFrom",fg.movedTo="MovedTo",fg.cellInsertion="CellInsertion",fg.cellDeletion="CellDeletion",fg.cellMerge="CellMerge",fg.cellSplit="CellSplit",fg.conflictInsert="ConflictInsert",fg.conflictDelete="ConflictDelete",(dg=a.ColumnWidth||(a.ColumnWidth={})).narrow="Narrow",dg.default="Default",dg.wide="Wide",(hg=a.FieldShading||(a.FieldShading={})).never="Never",hg.always="Always",hg.whenSelected="WhenSelected",(gg=a.HorizontalInVerticalType||(a.HorizontalInVerticalType={})).none="None",gg.fitInLine="FitInLine",gg.resizeLine="ResizeLine",(yg=a.ImeMode||(a.ImeMode={})).noControl="NoControl",yg.on="On",yg.off="Off",yg.hiragana="Hiragana",yg.katakana="Katakana",yg.katakanaHalf="KatakanaHalf",yg.alphaFull="AlphaFull",yg.alpha="Alpha",yg.hangulFull="HangulFull",yg.hangul="Hangul",(mg=a.Kana||(a.Kana={})).katakana="Katakana",mg.hiragana="Hiragana",(_g=a.TwoLinesInOneType||(a.TwoLinesInOneType={})).none="None",_g.noBrackets="NoBrackets",_g.parentheses="Parentheses",_g.squareBrackets="SquareBrackets",_g.angleBrackets="AngleBrackets",_g.curlyBrackets="CurlyBrackets",(bg=a.ViewType||(a.ViewType={})).normal="Normal",bg.outline="Outline",bg.print="Print",bg.printPreview="PrintPreview",bg.master="Master",bg.web="Web",bg.reading="Reading",bg.conflict="Conflict",(vg=a.WindowState||(a.WindowState={})).normal="Normal",vg.maximize="Maximize",vg.minimize="Minimize",(Og=a.WindowType||(a.WindowType={})).document="Document",Og.template="Template";var Sg,Ig="Selection",Ag=(Sg=OfficeExtension.ClientObject,__extends(Tg,Sg),Object.defineProperty(Tg.prototype,"_className",{get:function(){return"Selection"},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","isActive","isColumnSelectModeActive","end","isExtendModeActive","fitTextWidth","isInsertionPointAtEndOfLine","isEndOfRowMark","languageDetected","languageId","languageIdFarEast","languageIdOther","hasNoProofing","orientation","start","isStartActive","storyLength","storyType","text","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","IsActive","IsColumnSelectModeActive","End","IsExtendModeActive","FitTextWidth","IsInsertionPointAtEndOfLine","IsEndOfRowMark","LanguageDetected","LanguageId","LanguageIdFarEast","LanguageIdOther","HasNoProofing","Orientation","Start","IsStartActive","StoryLength","StoryType","Text","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0,!0,!0,!1,!1,!0,!1,!1,!1,!1,!0,!0,!0,!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"_navigationPropertyNames",{get:function(){return["borders","characters","comments","fields","font","formattedText","paragraphs","range","sections","sentences","shading","tables","topLevelTables","words"]},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"borders",{get:function(){return this._B||(this._B=e(a.BorderUniversalCollection,this,"Borders",!0,4)),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"characters",{get:function(){return this._C||(this._C=e(a.RangeScopedCollection,this,"Characters",!0,4)),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"comments",{get:function(){return this._Co||(this._Co=e(a.CommentCollection,this,"Comments",!0,4)),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"fields",{get:function(){return this._F||(this._F=e(a.FieldCollection,this,"Fields",!0,4)),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"font",{get:function(){return this._Fo||(this._Fo=e(a.Font,this,"Font",!1,4)),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"formattedText",{get:function(){return this._For||(this._For=e(a.Range,this,"FormattedText",!1,4)),this._For},set:function(e){this._For=e,h(this,"FormattedText",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"paragraphs",{get:function(){return this._P||(this._P=e(a.ParagraphCollection,this,"Paragraphs",!0,4)),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"sections",{get:function(){return this._S||(this._S=e(a.SectionCollection,this,"Sections",!0,4)),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"sentences",{get:function(){return this._Se||(this._Se=e(a.RangeScopedCollection,this,"Sentences",!0,4)),this._Se},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"shading",{get:function(){return this._Sh||(this._Sh=e(a.ShadingUniversal,this,"Shading",!1,4)),this._Sh},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"tables",{get:function(){return this._T||(this._T=e(a.TableCollection,this,"Tables",!0,4)),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"topLevelTables",{get:function(){return this._To||(this._To=e(a.TableCollection,this,"TopLevelTables",!0,4)),this._To},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"words",{get:function(){return this._W||(this._W=e(a.RangeScopedCollection,this,"Words",!0,4)),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"end",{get:function(){return m("end",this._E,Ig,this._isNull),this._E},set:function(e){this._E=e,h(this,"End",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"fitTextWidth",{get:function(){return m("fitTextWidth",this._Fi,Ig,this._isNull),this._Fi},set:function(e){this._Fi=e,h(this,"FitTextWidth",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"hasNoProofing",{get:function(){return m("hasNoProofing",this._H,Ig,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"isActive",{get:function(){return m("isActive",this._I,Ig,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"isColumnSelectModeActive",{get:function(){return m("isColumnSelectModeActive",this._Is,Ig,this._isNull),this._Is},set:function(e){this._Is=e,h(this,"IsColumnSelectModeActive",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"isEndOfRowMark",{get:function(){return m("isEndOfRowMark",this._IsE,Ig,this._isNull),this._IsE},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"isExtendModeActive",{get:function(){return m("isExtendModeActive",this._IsEx,Ig,this._isNull),this._IsEx},set:function(e){this._IsEx=e,h(this,"IsExtendModeActive",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"isInsertionPointAtEndOfLine",{get:function(){return m("isInsertionPointAtEndOfLine",this._IsI,Ig,this._isNull),this._IsI},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"isStartActive",{get:function(){return m("isStartActive",this._IsS,Ig,this._isNull),this._IsS},set:function(e){this._IsS=e,h(this,"IsStartActive",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"languageDetected",{get:function(){return m("languageDetected",this._L,Ig,this._isNull),this._L},set:function(e){this._L=e,h(this,"LanguageDetected",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"languageId",{get:function(){return m("languageId",this._La,Ig,this._isNull),this._La},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"languageIdFarEast",{get:function(){return m("languageIdFarEast",this._Lan,Ig,this._isNull),this._Lan},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"languageIdOther",{get:function(){return m("languageIdOther",this._Lang,Ig,this._isNull),this._Lang},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"orientation",{get:function(){return m("orientation",this._O,Ig,this._isNull),this._O},set:function(e){this._O=e,h(this,"Orientation",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"start",{get:function(){return m("start",this._St,Ig,this._isNull),this._St},set:function(e){this._St=e,h(this,"Start",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"storyLength",{get:function(){return m("storyLength",this._Sto,Ig,this._isNull),this._Sto},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"storyType",{get:function(){return m("storyType",this._Stor,Ig,this._isNull),this._Stor},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"text",{get:function(){return m("text",this._Te,Ig,this._isNull),this._Te},set:function(e){this._Te=e,h(this,"Text",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"type",{get:function(){return m("type",this._Ty,Ig,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(Tg.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Ig,this._isNull),this.__R},enumerable:!0,configurable:!0}),Tg.prototype.calculate=function(){return i(this,"Calculate",0,[],0,0)},Tg.prototype.cancelMode=function(){i(this,"CancelMode",0,[],0,0)},Tg.prototype.clearCharacterStyleFormatting=function(){i(this,"ClearCharacterStyleFormatting",0,[],0,0)},Tg.prototype.clearFormatting=function(){i(this,"ClearFormatting",0,[],0,0)},Tg.prototype.clearManualCharacterFormatting=function(){i(this,"ClearManualCharacterFormatting",0,[],0,0)},Tg.prototype.clearManualParagraphFormatting=function(){i(this,"ClearManualParagraphFormatting",0,[],0,0)},Tg.prototype.clearParagraphFormatting=function(){i(this,"ClearParagraphFormatting",0,[],0,0)},Tg.prototype.clearParagraphStyle=function(){i(this,"ClearParagraphStyle",0,[],0,0)},Tg.prototype.collapse=function(e){i(this,"Collapse",0,[e],0,0)},Tg.prototype.copyAsPictureToClipboard=function(){i(this,"CopyAsPictureToClipboard",0,[],0,0)},Tg.prototype.copyFormat=function(){i(this,"CopyFormat",0,[],0,0)},Tg.prototype.copyToClipboard=function(){i(this,"CopyToClipboard",0,[],0,0)},Tg.prototype.createTextBox=function(){i(this,"CreateTextBox",0,[],0,0)},Tg.prototype.cut=function(){i(this,"Cut",0,[],0,0)},Tg.prototype.delete=function(e){return i(this,"Delete",0,[e],0,0)},Tg.prototype.detectLanguage=function(){i(this,"DetectLanguage",0,[],0,0)},Tg.prototype.expand=function(e){return i(this,"Expand",0,[e],0,0)},Tg.prototype.expandToWholeStory=function(){i(this,"ExpandToWholeStory",0,[],0,0)},Tg.prototype.extend=function(e){i(this,"Extend",0,[e],0,0)},Tg.prototype.getNextRange=function(e){return p(a.Range,this,"GetNextRange",0,[e],!1,!1,null,0)},Tg.prototype.getPreviousRange=function(e){return p(a.Range,this,"GetPreviousRange",0,[e],!1,!1,null,0)},Tg.prototype.goToNext=function(e){return p(a.Range,this,"GoToNext",0,[e],!1,!1,null,0)},Tg.prototype.goToPrevious=function(e){return p(a.Range,this,"GoToPrevious",0,[e],!1,!1,null,0)},Tg.prototype.insertAfter=function(e){i(this,"InsertAfter",0,[e],0,0)},Tg.prototype.insertBefore=function(e){i(this,"InsertBefore",0,[e],0,0)},Tg.prototype.insertCells=function(e){i(this,"InsertCells",0,[e],0,0)},Tg.prototype.insertColumnsLeft=function(){i(this,"InsertColumnsLeft",0,[],0,0)},Tg.prototype.insertColumnsRight=function(){i(this,"InsertColumnsRight",0,[],0,0)},Tg.prototype.insertDateTime=function(e){i(this,"InsertDateTime",0,[e],0,0)},Tg.prototype.insertFormula=function(e){i(this,"InsertFormula",0,[e],0,0)},Tg.prototype.insertNewPage=function(){i(this,"InsertNewPage",0,[],0,0)},Tg.prototype.insertParagraphAfter=function(){i(this,"InsertParagraphAfter",0,[],0,0)},Tg.prototype.insertParagraphBefore=function(){i(this,"InsertParagraphBefore",0,[],0,0)},Tg.prototype.insertParagraphStyleSeparator=function(){i(this,"InsertParagraphStyleSeparator",0,[],0,0)},Tg.prototype.insertRowsAbove=function(e){i(this,"InsertRowsAbove",0,[e],0,0)},Tg.prototype.insertRowsBelow=function(e){i(this,"InsertRowsBelow",0,[e],0,0)},Tg.prototype.insertSymbol=function(e,t){i(this,"InsertSymbol",0,[e,t],0,0)},Tg.prototype.insertText=function(e){i(this,"InsertText",0,[e],0,0)},Tg.prototype.insertXml=function(e,t){i(this,"InsertXml",0,[e,t],0,0)},Tg.prototype.isEqual=function(e){return i(this,"IsEqual",0,[e],0,0)},Tg.prototype.isInRange=function(e){return i(this,"IsInRange",0,[e],0,0)},Tg.prototype.isInStory=function(e){return i(this,"IsInStory",0,[e],0,0)},Tg.prototype.move=function(e){return i(this,"Move",0,[e],0,0)},Tg.prototype.moveDown=function(e){return i(this,"MoveDown",0,[e],0,0)},Tg.prototype.moveEnd=function(e){return i(this,"MoveEnd",0,[e],0,0)},Tg.prototype.moveEndUntil=function(e,t){return i(this,"MoveEndUntil",0,[e,t],0,0)},Tg.prototype.moveEndWhile=function(e,t){return i(this,"MoveEndWhile",0,[e,t],0,0)},Tg.prototype.moveLeft=function(e){return i(this,"MoveLeft",0,[e],0,0)},Tg.prototype.moveRight=function(e){return i(this,"MoveRight",0,[e],0,0)},Tg.prototype.moveStart=function(e){return i(this,"MoveStart",0,[e],0,0)},Tg.prototype.moveStartUntil=function(e,t){return i(this,"MoveStartUntil",0,[e,t],0,0)},Tg.prototype.moveStartWhile=function(e,t){return i(this,"MoveStartWhile",0,[e,t],0,0)},Tg.prototype.moveUntil=function(e,t){return i(this,"MoveUntil",0,[e,t],0,0)},Tg.prototype.moveUp=function(e){return i(this,"MoveUp",0,[e],0,0)},Tg.prototype.moveWhile=function(e,t){return i(this,"MoveWhile",0,[e,t],0,0)},Tg.prototype.nextField=function(){return p(a.Field,this,"NextField",0,[],!1,!1,null,0)},Tg.prototype.nextSubdocument=function(){i(this,"NextSubdocument",0,[],0,0)},Tg.prototype.pasteAndFormat=function(e){i(this,"PasteAndFormat",0,[e],0,0)},Tg.prototype.pasteExcelTable=function(e,t,n){i(this,"PasteExcelTable",0,[e,t,n],0,0)},Tg.prototype.pasteFormat=function(){i(this,"PasteFormat",0,[],0,0)},Tg.prototype.pasteTableCellsAppendTable=function(){i(this,"PasteTableCellsAppendTable",0,[],0,0)},Tg.prototype.pasteTableCellsAsNestedTable=function(){i(this,"PasteTableCellsAsNestedTable",0,[],0,0)},Tg.prototype.previousField=function(){return p(a.Field,this,"PreviousField",0,[],!1,!1,null,0)},Tg.prototype.previousSubdocument=function(){i(this,"PreviousSubdocument",0,[],0,0)},Tg.prototype.replaceParagraph=function(){i(this,"ReplaceParagraph",0,[],0,0)},Tg.prototype.select=function(){i(this,"Select",0,[],0,0)},Tg.prototype.selectCell=function(){i(this,"SelectCell",0,[],0,0)},Tg.prototype.selectColumn=function(){i(this,"SelectColumn",0,[],0,0)},Tg.prototype.selectCurrentAlignment=function(){i(this,"SelectCurrentAlignment",0,[],0,0)},Tg.prototype.selectCurrentColor=function(){i(this,"SelectCurrentColor",0,[],0,0)},Tg.prototype.selectCurrentFont=function(){i(this,"SelectCurrentFont",0,[],0,0)},Tg.prototype.selectCurrentIndent=function(){i(this,"SelectCurrentIndent",0,[],0,0)},Tg.prototype.selectCurrentSpacing=function(){i(this,"SelectCurrentSpacing",0,[],0,0)},Tg.prototype.selectCurrentTabs=function(){i(this,"SelectCurrentTabs",0,[],0,0)},Tg.prototype.selectRow=function(){i(this,"SelectRow",0,[],0,0)},Tg.prototype.setRange=function(e,t){i(this,"SetRange",0,[e,t],0,0)},Tg.prototype.shrink=function(){i(this,"Shrink",0,[],0,0)},Tg.prototype.shrinkDiscontiguousSelection=function(){i(this,"ShrinkDiscontiguousSelection",0,[],0,0)},Tg.prototype.splitTable=function(){i(this,"SplitTable",0,[],0,0)},Tg.prototype.toggleCharacterCode=function(){i(this,"ToggleCharacterCode",0,[],0,0)},Tg.prototype.typeBackspace=function(){i(this,"TypeBackspace",0,[],0,0)},Tg.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Tg.prototype._handleResult=function(e){if(Sg.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.End)||(this._E=t.End),y(t.FitTextWidth)||(this._Fi=t.FitTextWidth),y(t.HasNoProofing)||(this._H=t.HasNoProofing),y(t.IsActive)||(this._I=t.IsActive),y(t.IsColumnSelectModeActive)||(this._Is=t.IsColumnSelectModeActive),y(t.IsEndOfRowMark)||(this._IsE=t.IsEndOfRowMark),y(t.IsExtendModeActive)||(this._IsEx=t.IsExtendModeActive),y(t.IsInsertionPointAtEndOfLine)||(this._IsI=t.IsInsertionPointAtEndOfLine),y(t.IsStartActive)||(this._IsS=t.IsStartActive),y(t.LanguageDetected)||(this._L=t.LanguageDetected),y(t.LanguageId)||(this._La=t.LanguageId),y(t.LanguageIdFarEast)||(this._Lan=t.LanguageIdFarEast),y(t.LanguageIdOther)||(this._Lang=t.LanguageIdOther),y(t.Orientation)||(this._O=t.Orientation),y(t.Start)||(this._St=t.Start),y(t.StoryLength)||(this._Sto=t.StoryLength),y(t.StoryType)||(this._Stor=t.StoryType),y(t.Text)||(this._Te=t.Text),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["borders","Borders","characters","Characters","comments","Comments","fields","Fields","font","Font","formattedText","FormattedText","paragraphs","Paragraphs","range","Range","sections","Sections","sentences","Sentences","shading","Shading","tables","Tables","topLevelTables","TopLevelTables","words","Words"])}},Tg.prototype.load=function(e){return b(this,e)},Tg.prototype.retrieve=function(e){return v(this,e)},Tg.prototype._handleIdResult=function(e){Sg.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Tg.prototype._handleRetrieveResult=function(e,t){Sg.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},Tg.prototype.track=function(){return this.context.trackedObjects.add(this),this},Tg.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Tg.prototype.toJSON=function(){return O(this,{},{})},Tg.prototype.setMockData=function(e){I(this,e)},Tg.prototype.ensureUnchanged=function(e){d(this,e)},Tg);function Tg(){return null!==Sg&&Sg.apply(this,arguments)||this}a.Selection=Ag;var Ng,Dg,xg,Eg,kg,jg,wg,Fg,Lg,Mg,Bg,Hg,Ug,Wg,Gg,Vg,zg,qg,Kg,Jg,Xg,Qg,Yg,Zg,$g,ey,ty,ny,ry="RangeScopedCollection",iy=(Ng=OfficeExtension.ClientObject,__extends(oy,Ng),Object.defineProperty(oy.prototype,"_className",{get:function(){return"RangeScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(oy.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(oy.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(oy.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(oy.prototype,"items",{get:function(){return m("items",this.m__items,ry,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(oy.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,ry,this._isNull),this.__R},enumerable:!0,configurable:!0}),oy.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},oy.prototype._handleResult=function(e){if(Ng.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Range,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},oy.prototype.load=function(e){return b(this,e)},oy.prototype.retrieve=function(e){return v(this,e)},oy.prototype._handleIdResult=function(e){Ng.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},oy.prototype._handleRetrieveResult=function(e,t){var n=this;Ng.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Range,!1,n,e,t)})},oy.prototype.track=function(){return this.context.trackedObjects.add(this),this},oy.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},oy.prototype.toJSON=function(){return O(this,{},{},this.m__items)},oy.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Range,!1,n,e,t)},function(e){return n.m__items=e})},oy);function oy(){return null!==Ng&&Ng.apply(this,arguments)||this}a.RangeScopedCollection=iy,(Dg=a.FlowDirection||(a.FlowDirection={})).leftToRight="LeftToRight",Dg.rightToLeft="RightToLeft",(xg=a.GutterPosition||(a.GutterPosition={})).left="Left",xg.right="Right",xg.top="Top",(Eg=a.GutterStyle||(a.GutterStyle={})).bidirectional="Bidirectional",Eg.latin="Latin",(kg=a.LayoutMode||(a.LayoutMode={})).default="Default",kg.grid="Grid",kg.lineGrid="LineGrid",kg.genko="Genko",(jg=a.NumberingRule||(a.NumberingRule={})).restartContinuous="RestartContinuous",jg.restartSection="RestartSection",jg.restartPage="RestartPage",(wg=a.PageOrientation||(a.PageOrientation={})).portrait="Portrait",wg.landscape="Landscape",(Fg=a.PageSetupVerticalAlignment||(a.PageSetupVerticalAlignment={})).top="Top",Fg.center="Center",Fg.justify="Justify",Fg.bottom="Bottom",(Lg=a.PaperSize||(a.PaperSize={})).size10x14="Size10x14",Lg.size11x17="Size11x17",Lg.letter="Letter",Lg.letterSmall="LetterSmall",Lg.legal="Legal",Lg.executive="Executive",Lg.a3="A3",Lg.a4="A4",Lg.a4Small="A4Small",Lg.a5="A5",Lg.b4="B4",Lg.b5="B5",Lg.csheet="CSheet",Lg.dsheet="DSheet",Lg.esheet="ESheet",Lg.fanfoldLegalGerman="FanfoldLegalGerman",Lg.fanfoldStdGerman="FanfoldStdGerman",Lg.fanfoldUS="FanfoldUS",Lg.folio="Folio",Lg.ledger="Ledger",Lg.note="Note",Lg.quarto="Quarto",Lg.statement="Statement",Lg.tabloid="Tabloid",Lg.envelope9="Envelope9",Lg.envelope10="Envelope10",Lg.envelope11="Envelope11",Lg.envelope12="Envelope12",Lg.envelope14="Envelope14",Lg.envelopeB4="EnvelopeB4",Lg.envelopeB5="EnvelopeB5",Lg.envelopeB6="EnvelopeB6",Lg.envelopeC3="EnvelopeC3",Lg.envelopeC4="EnvelopeC4",Lg.envelopeC5="EnvelopeC5",Lg.envelopeC6="EnvelopeC6",Lg.envelopeC65="EnvelopeC65",Lg.envelopeDL="EnvelopeDL",Lg.envelopeItaly="EnvelopeItaly",Lg.envelopeMonarch="EnvelopeMonarch",Lg.envelopePersonal="EnvelopePersonal",Lg.custom="Custom",(Mg=a.SectionDirection||(a.SectionDirection={})).rightToLeft="RightToLeft",Mg.leftToRight="LeftToRight",(Bg=a.SectionStart||(a.SectionStart={})).continuous="Continuous",Bg.newColumn="NewColumn",Bg.newPage="NewPage",Bg.evenPage="EvenPage",Bg.oddPage="OddPage",(Hg=a.AutoFitBehavior||(a.AutoFitBehavior={})).fixedSize="FixedSize",Hg.content="Content",Hg.window="Window",(Ug=a.CalendarTypeBidirectional||(a.CalendarTypeBidirectional={})).gregorian="Gregorian",Ug.bidirectional="Bidirectional",(Wg=a.CaptionPosition||(a.CaptionPosition={})).above="Above",Wg.below="Below",(Gg=a.CollapseDirection||(a.CollapseDirection={})).start="Start",Gg.end="End",(Vg=a.DateLanguage||(a.DateLanguage={})).bidirectional="Bidirectional",Vg.latin="Latin",(zg=a.FontBias||(a.FontBias={})).standard="Standard",zg.farEast="FarEast",zg.noSpecified="NoSpecified",(qg=a.GoToDirection||(a.GoToDirection={})).first="First",qg.last="Last",qg.next="Next",qg.previous="Previous",(Kg=a.GoToItem||(a.GoToItem={})).bookmark="Bookmark",Kg.comment="Comment",Kg.endnote="Endnote",Kg.field="Field",Kg.footnote="Footnote",Kg.graphic="Graphic",Kg.heading="Heading",Kg.line="Line",Kg.page="Page",Kg.section="Section",Kg.table="Table",Kg.embeddedObject="EmbeddedObject",Kg.equation="Equation",Kg.percent="Percent",Kg.spellingError="SpellingError",Kg.grammaticalError="GrammaticalError",Kg.proofreadingError="ProofreadingError",(Jg=a.MovementType||(a.MovementType={})).move="Move",Jg.extend="Extend",(Xg=a.OperationUnit||(a.OperationUnit={})).character="Character",Xg.word="Word",Xg.sentence="Sentence",Xg.paragraph="Paragraph",Xg.line="Line",Xg.story="Story",Xg.screen="Screen",Xg.section="Section",Xg.column="Column",Xg.row="Row",Xg.window="Window",Xg.cell="Cell",Xg.characterFormat="CharacterFormat",Xg.paragraphFormat="ParagraphFormat",Xg.table="Table",Xg.item="Item",(Qg=a.PasteFormatType||(a.PasteFormatType={})).pasteDefault="PasteDefault",Qg.singleCellText="SingleCellText",Qg.singleCellTable="SingleCellTable",Qg.listContinueNumbering="ListContinueNumbering",Qg.listRestartNumbering="ListRestartNumbering",Qg.tableAppendTable="TableAppendTable",Qg.tableInsertAsRows="TableInsertAsRows",Qg.tableOriginalFormatting="TableOriginalFormatting",Qg.chartPicture="ChartPicture",Qg.chart="Chart",Qg.chartLinked="ChartLinked",Qg.formatOriginalFormatting="FormatOriginalFormatting",Qg.formatSurroundingFormattingWithEmphasis="FormatSurroundingFormattingWithEmphasis",Qg.formatPlainText="FormatPlainText",Qg.tableOverwriteCells="TableOverwriteCells",Qg.listCombineWithExistingList="ListCombineWithExistingList",Qg.listDontMerge="ListDontMerge",Qg.useDestinationStylesRecovery="UseDestinationStylesRecovery",(Yg=a.ReferenceType||(a.ReferenceType={})).numberedItem="NumberedItem",Yg.heading="Heading",Yg.bookmark="Bookmark",Yg.footnote="Footnote",Yg.endnote="Endnote",(Zg=a.SelectionType||(a.SelectionType={})).noSelection="NoSelection",Zg.insertionPoint="InsertionPoint",Zg.normal="Normal",Zg.frame="Frame",Zg.column="Column",Zg.row="Row",Zg.block="Block",Zg.inlineShape="InlineShape",Zg.selectionShape="SelectionShape",($g=a.SortFieldType||(a.SortFieldType={})).alphanumeric="Alphanumeric",$g.numeric="Numeric",$g.date="Date",$g.syllable="Syllable",$g.japanJis="JapanJis",$g.stroke="Stroke",$g.koreaKs="KoreaKs",(ey=a.SortOrder||(a.SortOrder={})).ascending="Ascending",ey.descending="Descending",(ty=a.TableCellInsertionLocation||(a.TableCellInsertionLocation={})).shiftRight="ShiftRight",ty.shiftDown="ShiftDown",ty.shiftRowDown="ShiftRowDown",ty.shiftColumnRight="ShiftColumnRight",(ny=a.TextOrientation||(a.TextOrientation={})).horizontal="Horizontal",ny.upward="Upward",ny.downward="Downward",ny.verticalFarEast="VerticalFarEast",ny.horizontalRotatedFarEast="HorizontalRotatedFarEast",ny.vertical="Vertical";var ay,sy="Bookmark",cy=(ay=OfficeExtension.ClientObject,__extends(ly,ay),Object.defineProperty(ly.prototype,"_className",{get:function(){return"Bookmark"},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","isColumn","isEmpty","end","name","start","storyType"]},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","IsColumn","IsEmpty","End","Name","Start","StoryType"]},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"end",{get:function(){return m("end",this._E,sy,this._isNull),this._E},set:function(e){this._E=e,h(this,"End",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"isColumn",{get:function(){return m("isColumn",this._I,sy,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"isEmpty",{get:function(){return m("isEmpty",this._Is,sy,this._isNull),this._Is},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"name",{get:function(){return m("name",this._N,sy,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"start",{get:function(){return m("start",this._S,sy,this._isNull),this._S},set:function(e){this._S=e,h(this,"Start",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"storyType",{get:function(){return m("storyType",this._St,sy,this._isNull),this._St},enumerable:!0,configurable:!0}),Object.defineProperty(ly.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,sy,this._isNull),this.__R},enumerable:!0,configurable:!0}),ly.prototype.set=function(e,t){this._recursivelySet(e,t,["end","start"],["range"],[])},ly.prototype.update=function(e){this._recursivelyUpdate(e)},ly.prototype.copyTo=function(e){return p(a.Bookmark,this,"CopyTo",0,[e],!1,!1,null,0)},ly.prototype.delete=function(){i(this,"Delete",0,[],0,0)},ly.prototype.select=function(){i(this,"Select",0,[],0,0)},ly.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},ly.prototype._handleResult=function(e){if(ay.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.End)||(this._E=t.End),y(t.IsColumn)||(this._I=t.IsColumn),y(t.IsEmpty)||(this._Is=t.IsEmpty),y(t.Name)||(this._N=t.Name),y(t.Start)||(this._S=t.Start),y(t.StoryType)||(this._St=t.StoryType),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},ly.prototype.load=function(e){return b(this,e)},ly.prototype.retrieve=function(e){return v(this,e)},ly.prototype._handleIdResult=function(e){ay.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},ly.prototype._handleRetrieveResult=function(e,t){ay.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},ly.prototype.track=function(){return this.context.trackedObjects.add(this),this},ly.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},ly.prototype.toJSON=function(){return O(this,{end:this._E,isColumn:this._I,isEmpty:this._Is,name:this._N,start:this._S,storyType:this._St},{range:this._R})},ly.prototype.setMockData=function(e){I(this,e)},ly.prototype.ensureUnchanged=function(e){d(this,e)},ly);function ly(){return null!==ay&&ay.apply(this,arguments)||this}a.Bookmark=cy;var uy,py,fy="BookmarkCollection",dy=(uy=OfficeExtension.ClientObject,__extends(hy,uy),Object.defineProperty(hy.prototype,"_className",{get:function(){return"BookmarkCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(hy.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(hy.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(hy.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(hy.prototype,"items",{get:function(){return m("items",this.m__items,fy,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(hy.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,fy,this._isNull),this.__R},enumerable:!0,configurable:!0}),hy.prototype.exists=function(e){return i(this,"Exists",0,[e],0,0)},hy.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},hy.prototype._handleResult=function(e){if(uy.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Bookmark,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},hy.prototype.load=function(e){return b(this,e)},hy.prototype.retrieve=function(e){return v(this,e)},hy.prototype._handleIdResult=function(e){uy.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},hy.prototype._handleRetrieveResult=function(e,t){var n=this;uy.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Bookmark,!1,n,e,t)})},hy.prototype.track=function(){return this.context.trackedObjects.add(this),this},hy.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},hy.prototype.toJSON=function(){return O(this,{},{},this.m__items)},hy.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Bookmark,!1,n,e,t)},function(e){return n.m__items=e})},hy);function hy(){return null!==uy&&uy.apply(this,arguments)||this}a.BookmarkCollection=dy,(py=a.StoryType||(a.StoryType={})).mainText="MainText",py.footnotes="Footnotes",py.endnotes="Endnotes",py.comments="Comments",py.textFrame="TextFrame",py.evenPagesHeader="EvenPagesHeader",py.primaryHeader="PrimaryHeader",py.evenPagesFooter="EvenPagesFooter",py.primaryFooter="PrimaryFooter",py.firstPageHeader="FirstPageHeader",py.firstPageFooter="FirstPageFooter",py.footnoteSeparator="FootnoteSeparator",py.footnoteContinuationSeparator="FootnoteContinuationSeparator",py.footnoteContinuationNotice="FootnoteContinuationNotice",py.endnoteSeparator="EndnoteSeparator",py.endnoteContinuationSeparator="EndnoteContinuationSeparator",py.endnoteContinuationNotice="EndnoteContinuationNotice";var gy,yy="Index",my=(gy=OfficeExtension.ClientObject,__extends(_y,gy),Object.defineProperty(_y.prototype,"_className",{get:function(){return"Index"},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId","separateAccentedLetterHeadings","filter","headingSeparator","indexLanguage","numberOfColumns","rightAlignPageNumbers","sortBy","tabLeader","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId","SeparateAccentedLetterHeadings","Filter","HeadingSeparator","IndexLanguage","NumberOfColumns","RightAlignPageNumbers","SortBy","TabLeader","Type"]},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!1,!1,!1,!1,!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"_navigationPropertyNames",{get:function(){return["range"]},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"range",{get:function(){return this._R||(this._R=e(a.Range,this,"Range",!1,4)),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"filter",{get:function(){return m("filter",this._F,yy,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"headingSeparator",{get:function(){return m("headingSeparator",this._H,yy,this._isNull),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"indexLanguage",{get:function(){return m("indexLanguage",this._I,yy,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"numberOfColumns",{get:function(){return m("numberOfColumns",this._N,yy,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"rightAlignPageNumbers",{get:function(){return m("rightAlignPageNumbers",this._Ri,yy,this._isNull),this._Ri},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"separateAccentedLetterHeadings",{get:function(){return m("separateAccentedLetterHeadings",this._S,yy,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"sortBy",{get:function(){return m("sortBy",this._So,yy,this._isNull),this._So},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"tabLeader",{get:function(){return m("tabLeader",this._T,yy,this._isNull),this._T},set:function(e){this._T=e,h(this,"TabLeader",e,0)},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"type",{get:function(){return m("type",this._Ty,yy,this._isNull),this._Ty},enumerable:!0,configurable:!0}),Object.defineProperty(_y.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,yy,this._isNull),this.__R},enumerable:!0,configurable:!0}),_y.prototype.set=function(e,t){this._recursivelySet(e,t,["tabLeader"],["range"],[])},_y.prototype.delete=function(){i(this,"Delete",0,[],0,0)},_y.prototype.update=function(){i(this,"Update",0,[],0,0)},_y.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},_y.prototype._handleResult=function(e){if(gy.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t.Filter)||(this._F=t.Filter),y(t.HeadingSeparator)||(this._H=t.HeadingSeparator),y(t.IndexLanguage)||(this._I=t.IndexLanguage),y(t.NumberOfColumns)||(this._N=t.NumberOfColumns),y(t.RightAlignPageNumbers)||(this._Ri=t.RightAlignPageNumbers),y(t.SeparateAccentedLetterHeadings)||(this._S=t.SeparateAccentedLetterHeadings),y(t.SortBy)||(this._So=t.SortBy),y(t.TabLeader)||(this._T=t.TabLeader),y(t.Type)||(this._Ty=t.Type),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["range","Range"])}},_y.prototype.load=function(e){return b(this,e)},_y.prototype.retrieve=function(e){return v(this,e)},_y.prototype._handleIdResult=function(e){gy.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},_y.prototype._handleRetrieveResult=function(e,t){gy.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},_y.prototype.track=function(){return this.context.trackedObjects.add(this),this},_y.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},_y.prototype.toJSON=function(){return O(this,{filter:this._F,headingSeparator:this._H,indexLanguage:this._I,numberOfColumns:this._N,rightAlignPageNumbers:this._Ri,separateAccentedLetterHeadings:this._S,sortBy:this._So,tabLeader:this._T,type:this._Ty},{range:this._R})},_y.prototype.setMockData=function(e){I(this,e)},_y.prototype.ensureUnchanged=function(e){d(this,e)},_y);function _y(){return null!==gy&&gy.apply(this,arguments)||this}a.Index=my;var by,vy,Oy,Py,Cy,Ry,Sy,Iy,Ay,Ty,Ny,Dy,xy,Ey,ky,jy="IndexCollection",wy=(by=OfficeExtension.ClientObject,__extends(Fy,by),Object.defineProperty(Fy.prototype,"_className",{get:function(){return"IndexCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Fy.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Fy.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fy.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Fy.prototype,"items",{get:function(){return m("items",this.m__items,jy,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Fy.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,jy,this._isNull),this.__R},enumerable:!0,configurable:!0}),Fy.prototype.add=function(e,t){return p(a.Index,this,"Add",0,[e,t],!1,!0,null,0)},Fy.prototype.getFormat=function(){return i(this,"GetFormat",0,[],0,0)},Fy.prototype.markAllEntries=function(e,t){i(this,"MarkAllEntries",0,[e,t],0,0)},Fy.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Fy.prototype._handleResult=function(e){if(by.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.Index,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Fy.prototype.load=function(e){return b(this,e)},Fy.prototype.retrieve=function(e){return v(this,e)},Fy.prototype._handleIdResult=function(e){by.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Fy.prototype._handleRetrieveResult=function(e,t){var n=this;by.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.Index,!1,n,e,t)})},Fy.prototype.track=function(){return this.context.trackedObjects.add(this),this},Fy.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Fy.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Fy.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.Index,!1,n,e,t)},function(e){return n.m__items=e})},Fy);function Fy(){return null!==by&&by.apply(this,arguments)||this}a.IndexCollection=wy,(vy=a.HeadingSeparator||(a.HeadingSeparator={})).none="None",vy.blankLine="BlankLine",vy.letter="Letter",vy.letterLow="LetterLow",vy.letterFull="LetterFull",(Oy=a.DropPosition||(a.DropPosition={})).none="None",Oy.normal="Normal",Oy.margin="Margin",(Py=a.TabAlignment||(a.TabAlignment={})).left="Left",Py.center="Center",Py.right="Right",Py.decimal="Decimal",Py.bar="Bar",Py.list="List",(Cy=a.IndexFilter||(a.IndexFilter={})).none="None",Cy.aiueo="Aiueo",Cy.akasatana="Akasatana",Cy.chosung="Chosung",Cy.low="Low",Cy.medium="Medium",Cy.full="Full",(Ry=a.IndexFormat||(a.IndexFormat={})).template="Template",Ry.classic="Classic",Ry.fancy="Fancy",Ry.modern="Modern",Ry.bulleted="Bulleted",Ry.formal="Formal",Ry.simple="Simple",(Sy=a.IndexSortBy||(a.IndexSortBy={})).stroke="Stroke",Sy.syllable="Syllable",(Iy=a.IndexType||(a.IndexType={})).indent="Indent",Iy.runin="Runin",(Ay=a.TabLeader||(a.TabLeader={})).spaces="Spaces",Ay.dots="Dots",Ay.dashes="Dashes",Ay.lines="Lines",Ay.heavy="Heavy",Ay.middleDot="MiddleDot",(Ty=a.ConditionCode||(a.ConditionCode={})).firstRow="FirstRow",Ty.lastRow="LastRow",Ty.oddRowBanding="OddRowBanding",Ty.evenRowBanding="EvenRowBanding",Ty.firstColumn="FirstColumn",Ty.lastColumn="LastColumn",Ty.oddColumnBanding="OddColumnBanding",Ty.evenColumnBanding="EvenColumnBanding",Ty.topRightCell="TopRightCell",Ty.topLeftCell="TopLeftCell",Ty.bottomRightCell="BottomRightCell",Ty.bottomLeftCell="BottomLeftCell",(Ny=a.DeleteCells||(a.DeleteCells={})).shiftLeft="ShiftLeft",Ny.shiftUp="ShiftUp",Ny.entireRow="EntireRow",Ny.entireColumn="EntireColumn",(Dy=a.RowHeightRule||(a.RowHeightRule={})).auto="Auto",Dy.atLeast="AtLeast",Dy.exactly="Exactly",(xy=a.TableDirection||(a.TableDirection={})).rightToLeft="RightToLeft",xy.leftToRight="LeftToRight",(Ey=a.TableFieldSeparator||(a.TableFieldSeparator={})).paragraph="Paragraph",Ey.tab="Tab",Ey.comma="Comma",Ey.defaultListSeparator="DefaultListSeparator",(ky=a.TableFormatType||(a.TableFormatType={})).none="None",ky.simple1="Simple1",ky.simple2="Simple2",ky.simple3="Simple3",ky.classic1="Classic1",ky.classic2="Classic2",ky.classic3="Classic3",ky.classic4="Classic4",ky.colorful1="Colorful1",ky.colorful2="Colorful2",ky.colorful3="Colorful3",ky.columns1="Columns1",ky.columns2="Columns2",ky.columns3="Columns3",ky.columns4="Columns4",ky.columns5="Columns5",ky.grid1="Grid1",ky.grid2="Grid2",ky.grid3="Grid3",ky.grid4="Grid4",ky.grid5="Grid5",ky.grid6="Grid6",ky.grid7="Grid7",ky.grid8="Grid8",ky.list1="List1",ky.list2="List2",ky.list3="List3",ky.list4="List4",ky.list5="List5",ky.list6="List6",ky.list7="List7",ky.list8="List8",ky.threeDEffects1="ThreeDEffects1",ky.threeDEffects2="ThreeDEffects2",ky.threeDEffects3="ThreeDEffects3",ky.contemporary="Contemporary",ky.elegant="Elegant",ky.professional="Professional",ky.subtle1="Subtle1",ky.subtle2="Subtle2",ky.web1="Web1",ky.web2="Web2",ky.web3="Web3";var Ly,My=(Ly=OfficeExtension.ClientObject,__extends(By,Ly),Object.defineProperty(By.prototype,"_className",{get:function(){return"FontNameCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(By.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(By.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(By.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"FontNameCollection",this._isNull),this.__R},enumerable:!0,configurable:!0}),By.prototype.getCount=function(){return i(this,"GetCount",1,[],4,0)},By.prototype.getItemAt=function(e){return i(this,"GetItemAt",1,[e],4,0)},By.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},By.prototype._handleResult=function(e){if(Ly.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId)}},By.prototype.load=function(e){return b(this,e)},By.prototype._handleIdResult=function(e){Ly.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},By.prototype._handleRetrieveResult=function(e,t){Ly.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},By.prototype.track=function(){return this.context.trackedObjects.add(this),this},By.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},By.prototype.toJSON=function(){return O(this,{},{})},By);function By(){return null!==Ly&&Ly.apply(this,arguments)||this}a.FontNameCollection=My;var Hy,Uy="ListTemplateCollection",Wy=(Hy=OfficeExtension.ClientObject,__extends(Gy,Hy),Object.defineProperty(Gy.prototype,"_className",{get:function(){return"ListTemplateCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(Gy.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Gy.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gy.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(Gy.prototype,"items",{get:function(){return m("items",this.m__items,Uy,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(Gy.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Uy,this._isNull),this.__R},enumerable:!0,configurable:!0}),Gy.prototype.add=function(e){return _("ListTemplateCollection.add","WordApiDesktop","1.5",l),p(a.ListTemplate,this,"Add",0,[e],!1,!0,null,0)},Gy.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},Gy.prototype._handleResult=function(e){if(Hy.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ListTemplate,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},Gy.prototype.load=function(e){return b(this,e)},Gy.prototype.retrieve=function(e){return v(this,e)},Gy.prototype._handleIdResult=function(e){Hy.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},Gy.prototype._handleRetrieveResult=function(e,t){var n=this;Hy.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.ListTemplate,!1,n,e,t)})},Gy.prototype.track=function(){return this.context.trackedObjects.add(this),this},Gy.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},Gy.prototype.toJSON=function(){return O(this,{},{},this.m__items)},Gy.prototype.setMockData=function(e){var n=this;I(this,e,function(e,t){return f(a.ListTemplate,!1,n,e,t)},function(e){return n.m__items=e})},Gy);function Gy(){return null!==Hy&&Hy.apply(this,arguments)||this}a.ListTemplateCollection=Wy;var Vy,zy=(Vy=OfficeExtension.ClientObject,__extends(qy,Vy),Object.defineProperty(qy.prototype,"_className",{get:function(){return"ListTemplateGallery"},enumerable:!0,configurable:!0}),Object.defineProperty(qy.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(qy.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(qy.prototype,"_navigationPropertyNames",{get:function(){return["listTemplates"]},enumerable:!0,configurable:!0}),Object.defineProperty(qy.prototype,"listTemplates",{get:function(){return this._L||(this._L=e(a.ListTemplateCollection,this,"ListTemplates",!0,4)),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(qy.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,"ListTemplateGallery",this._isNull),this.__R},enumerable:!0,configurable:!0}),qy.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},qy.prototype._handleResult=function(e){if(Vy.prototype._handleResult.call(this,e),!g(e)){var t=e;P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),C(this,t,["listTemplates","ListTemplates"])}},qy.prototype.load=function(e){return b(this,e)},qy.prototype.retrieve=function(e){return v(this,e)},qy.prototype._handleIdResult=function(e){Vy.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},qy.prototype._handleRetrieveResult=function(e,t){Vy.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t)},qy.prototype.track=function(){return this.context.trackedObjects.add(this),this},qy.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},qy.prototype.toJSON=function(){return O(this,{},{})},qy);function qy(){return null!==Vy&&Vy.apply(this,arguments)||this}a.ListTemplateGallery=zy;var Ky,Jy,Xy,Qy,Yy,Zy="ListTemplateGalleryCollection",$y=(Ky=OfficeExtension.ClientObject,__extends(em,Ky),Object.defineProperty(em.prototype,"_className",{get:function(){return"ListTemplateGalleryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(em.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(em.prototype,"_scalarPropertyNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(em.prototype,"_scalarPropertyOriginalNames",{get:function(){return["_ReferenceId"]},enumerable:!0,configurable:!0}),Object.defineProperty(em.prototype,"items",{get:function(){return m("items",this.m__items,Zy,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(em.prototype,"_ReferenceId",{get:function(){return m("_ReferenceId",this.__R,Zy,this._isNull),this.__R},enumerable:!0,configurable:!0}),em.prototype.getByType=function(e){return p(a.ListTemplateGallery,this,"GetByType",1,[e],!1,!1,null,4)},em.prototype._KeepReference=function(){i(this,"_KeepReference",1,[],4,0)},em.prototype._handleResult=function(e){if(Ky.prototype._handleResult.call(this,e),!g(e)){var t=e;if(P(this,t),y(t._ReferenceId)||(this.__R=t._ReferenceId),!g(t[OfficeExtension.Constants.items])){this.m__items=[];for(var n=t[OfficeExtension.Constants.items],r=0;r<n.length;r++){var i=f(a.ListTemplateGallery,!1,this,n[r],r);i._handleResult(n[r]),this.m__items.push(i)}}}},em.prototype.load=function(e){return b(this,e)},em.prototype.retrieve=function(e){return v(this,e)},em.prototype._handleIdResult=function(e){Ky.prototype._handleIdResult.call(this,e),g(e)||y(e._ReferenceId)||(this.__R=e._ReferenceId)},em.prototype._handleRetrieveResult=function(e,t){var n=this;Ky.prototype._handleRetrieveResult.call(this,e,t),S(this,e,t,function(e,t){return f(a.ListTemplateGallery,!1,n,e,t)})},em.prototype.track=function(){return this.context.trackedObjects.add(this),this},em.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},em.prototype.toJSON=function(){return O(this,{},{},this.m__items)},em);function em(){return null!==Ky&&Ky.apply(this,arguments)||this}a.ListTemplateGalleryCollection=$y,(Jy=a.ListTemplateGalleryType||(a.ListTemplateGalleryType={})).bullets="Bullets",Jy.number="Number",Jy.outlineNumbered="OutlineNumbered",(Xy=a.CoauthoringLockType||(a.CoauthoringLockType={})).none="None",Xy.reservation="Reservation",Xy.ephemeral="Ephemeral",Xy.changed="Changed",(Qy=a.EditorType||(a.EditorType={})).current="Current",Qy.editors="Editors",Qy.everyone="Everyone",Qy.owners="Owners",(Yy=a.ErrorCodes||(a.ErrorCodes={})).accessDenied="AccessDenied",Yy.generalException="GeneralException",Yy.invalidArgument="InvalidArgument",Yy.itemNotFound="ItemNotFound",Yy.notAllowed="NotAllowed",Yy.notImplemented="NotImplemented",Yy.searchDialogIsOpen="SearchDialogIsOpen",Yy.searchStringInvalidOrTooLong="SearchStringInvalidOrTooLong",a.Interfaces||(a.Interfaces={})}(Word=Word||{}),void 0!==Word.Style&&function(e){e.other="Other",e.normal="Normal",e.heading1="Heading1",e.heading2="Heading2",e.heading3="Heading3",e.heading4="Heading4",e.heading5="Heading5",e.heading6="Heading6",e.heading7="Heading7",e.heading8="Heading8",e.heading9="Heading9",e.toc1="Toc1",e.toc2="Toc2",e.toc3="Toc3",e.toc4="Toc4",e.toc5="Toc5",e.toc6="Toc6",e.toc7="Toc7",e.toc8="Toc8",e.toc9="Toc9",e.footnoteText="FootnoteText",e.header="Header",e.footer="Footer",e.caption="Caption",e.footnoteReference="FootnoteReference",e.endnoteReference="EndnoteReference",e.endnoteText="EndnoteText",e.title="Title",e.subtitle="Subtitle",e.hyperlink="Hyperlink",e.strong="Strong",e.emphasis="Emphasis",e.noSpacing="NoSpacing",e.listParagraph="ListParagraph",e.quote="Quote",e.intenseQuote="IntenseQuote",e.subtleEmphasis="SubtleEmphasis",e.intenseEmphasis="IntenseEmphasis",e.subtleReference="SubtleReference",e.intenseReference="IntenseReference",e.bookTitle="BookTitle",e.bibliography="Bibliography",e.tocHeading="TocHeading",e.tableGrid="TableGrid",e.plainTable1="PlainTable1",e.plainTable2="PlainTable2",e.plainTable3="PlainTable3",e.plainTable4="PlainTable4",e.plainTable5="PlainTable5",e.tableGridLight="TableGridLight",e.gridTable1Light="GridTable1Light",e.gridTable1Light_Accent1="GridTable1Light_Accent1",e.gridTable1Light_Accent2="GridTable1Light_Accent2",e.gridTable1Light_Accent3="GridTable1Light_Accent3",e.gridTable1Light_Accent4="GridTable1Light_Accent4",e.gridTable1Light_Accent5="GridTable1Light_Accent5",e.gridTable1Light_Accent6="GridTable1Light_Accent6",e.gridTable2="GridTable2",e.gridTable2_Accent1="GridTable2_Accent1",e.gridTable2_Accent2="GridTable2_Accent2",e.gridTable2_Accent3="GridTable2_Accent3",e.gridTable2_Accent4="GridTable2_Accent4",e.gridTable2_Accent5="GridTable2_Accent5",e.gridTable2_Accent6="GridTable2_Accent6",e.gridTable3="GridTable3",e.gridTable3_Accent1="GridTable3_Accent1",e.gridTable3_Accent2="GridTable3_Accent2",e.gridTable3_Accent3="GridTable3_Accent3",e.gridTable3_Accent4="GridTable3_Accent4",e.gridTable3_Accent5="GridTable3_Accent5",e.gridTable3_Accent6="GridTable3_Accent6",e.gridTable4="GridTable4",e.gridTable4_Accent1="GridTable4_Accent1",e.gridTable4_Accent2="GridTable4_Accent2",e.gridTable4_Accent3="GridTable4_Accent3",e.gridTable4_Accent4="GridTable4_Accent4",e.gridTable4_Accent5="GridTable4_Accent5",e.gridTable4_Accent6="GridTable4_Accent6",e.gridTable5Dark="GridTable5Dark",e.gridTable5Dark_Accent1="GridTable5Dark_Accent1",e.gridTable5Dark_Accent2="GridTable5Dark_Accent2",e.gridTable5Dark_Accent3="GridTable5Dark_Accent3",e.gridTable5Dark_Accent4="GridTable5Dark_Accent4",e.gridTable5Dark_Accent5="GridTable5Dark_Accent5",e.gridTable5Dark_Accent6="GridTable5Dark_Accent6",e.gridTable6Colorful="GridTable6Colorful",e.gridTable6Colorful_Accent1="GridTable6Colorful_Accent1",e.gridTable6Colorful_Accent2="GridTable6Colorful_Accent2",e.gridTable6Colorful_Accent3="GridTable6Colorful_Accent3",e.gridTable6Colorful_Accent4="GridTable6Colorful_Accent4",e.gridTable6Colorful_Accent5="GridTable6Colorful_Accent5",e.gridTable6Colorful_Accent6="GridTable6Colorful_Accent6",e.gridTable7Colorful="GridTable7Colorful",e.gridTable7Colorful_Accent1="GridTable7Colorful_Accent1",e.gridTable7Colorful_Accent2="GridTable7Colorful_Accent2",e.gridTable7Colorful_Accent3="GridTable7Colorful_Accent3",e.gridTable7Colorful_Accent4="GridTable7Colorful_Accent4",e.gridTable7Colorful_Accent5="GridTable7Colorful_Accent5",e.gridTable7Colorful_Accent6="GridTable7Colorful_Accent6",e.listTable1Light="ListTable1Light",e.listTable1Light_Accent1="ListTable1Light_Accent1",e.listTable1Light_Accent2="ListTable1Light_Accent2",e.listTable1Light_Accent3="ListTable1Light_Accent3",e.listTable1Light_Accent4="ListTable1Light_Accent4",e.listTable1Light_Accent5="ListTable1Light_Accent5",e.listTable1Light_Accent6="ListTable1Light_Accent6",e.listTable2="ListTable2",e.listTable2_Accent1="ListTable2_Accent1",e.listTable2_Accent2="ListTable2_Accent2",e.listTable2_Accent3="ListTable2_Accent3",e.listTable2_Accent4="ListTable2_Accent4",e.listTable2_Accent5="ListTable2_Accent5",e.listTable2_Accent6="ListTable2_Accent6",e.listTable3="ListTable3",e.listTable3_Accent1="ListTable3_Accent1",e.listTable3_Accent2="ListTable3_Accent2",e.listTable3_Accent3="ListTable3_Accent3",e.listTable3_Accent4="ListTable3_Accent4",e.listTable3_Accent5="ListTable3_Accent5",e.listTable3_Accent6="ListTable3_Accent6",e.listTable4="ListTable4",e.listTable4_Accent1="ListTable4_Accent1",e.listTable4_Accent2="ListTable4_Accent2",e.listTable4_Accent3="ListTable4_Accent3",e.listTable4_Accent4="ListTable4_Accent4",e.listTable4_Accent5="ListTable4_Accent5",e.listTable4_Accent6="ListTable4_Accent6",e.listTable5Dark="ListTable5Dark",e.listTable5Dark_Accent1="ListTable5Dark_Accent1",e.listTable5Dark_Accent2="ListTable5Dark_Accent2",e.listTable5Dark_Accent3="ListTable5Dark_Accent3",e.listTable5Dark_Accent4="ListTable5Dark_Accent4",e.listTable5Dark_Accent5="ListTable5Dark_Accent5",e.listTable5Dark_Accent6="ListTable5Dark_Accent6",e.listTable6Colorful="ListTable6Colorful",e.listTable6Colorful_Accent1="ListTable6Colorful_Accent1",e.listTable6Colorful_Accent2="ListTable6Colorful_Accent2",e.listTable6Colorful_Accent3="ListTable6Colorful_Accent3",e.listTable6Colorful_Accent4="ListTable6Colorful_Accent4",e.listTable6Colorful_Accent5="ListTable6Colorful_Accent5",e.listTable6Colorful_Accent6="ListTable6Colorful_Accent6",e.listTable7Colorful="ListTable7Colorful",e.listTable7Colorful_Accent1="ListTable7Colorful_Accent1",e.listTable7Colorful_Accent2="ListTable7Colorful_Accent2",e.listTable7Colorful_Accent3="ListTable7Colorful_Accent3",e.listTable7Colorful_Accent4="ListTable7Colorful_Accent4",e.listTable7Colorful_Accent5="ListTable7Colorful_Accent5",e.listTable7Colorful_Accent6="ListTable7Colorful_Accent6"}(Word.Style),function(n){var r,e=(r=OfficeCore.RequestContext,__extends(t,r),Object.defineProperty(t.prototype,"document",{get:function(){return this.m_document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"application",{get:function(){return null==this.m_application&&(this.m_application=new n.Application(this,OfficeExtension.ObjectPathFactory.createNewObjectObjectPath(this,"Microsoft.WordServices.Application",!1))),this.m_application},enumerable:!0,configurable:!0}),t);function t(e){var t=r.call(this,e)||this;return t.m_document=new n.Document(t,OfficeExtension.ObjectPathFactory.createGlobalObjectObjectPath(t)),t._rootObject=t.m_document,t}n.RequestContext=e,n.run=function(e,t){return OfficeExtension.ClientRequestContext._runBatch("Word.run",arguments,function(){return new n.RequestContext})}}(Word=Word||{}),function(e){var t,n=OfficeExtension.BatchApiHelper.invokeMethod;(t=e.AutorunEventType||(e.AutorunEventType={})).onDocumentSave="OnDocumentSave",t.onDocumentSaveAs="OnDocumentSaveAs",(Document=e.Document||(e.Document={})).prototype.autorunEventCompleted=function(e){n(this,"AutorunEventCompleted",0,[e],0,0)}}(Word=Word||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.ActiveViewChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeView",{get:function(){return this.m_activeView.activeView},enumerable:!0,configurable:!0}),n);function n(e){this.m_activeView=e}e.ActiveViewChangedEventArgs=t}(OSF=OSF||{}),function(c){var e=(t.prototype.verifyArguments=function(e,t){for(var n in e){var r=e[n],i=t[n];if(r.enum)switch(typeof i){case"string":if(c.OUtil.listContainsValue(r.enum,i))break;case"undefined":throw 5007;default:throw c.Utility.createArgumentException(this._displayName)}if(r.types&&!c.OUtil.listContainsValue(r.types,typeof i))throw c.Utility.createArgumentException(this._displayName)}},t.prototype.extractRequiredArguments=function(e,t,n){if(e.length<this._requiredCount)throw c.Utility.createParameterException(c.ErrorNames.MissingRequiredArguments);var r,i=[];for(r=0;r<this._requiredCount;r++)i.push(e[r]);this.verifyArguments(this._requiredParameters,i);var o={};for(r=0;r<this._requiredCount;r++){var a=this._requiredParameters[r],s=i[r];if(a.verify&&!a.verify(s,t,n))throw c.Utility.createArgumentException(this._displayName);o[a.name]=s}return o},t.prototype.fillOptions=function(e,t,n,r){for(var i in e=e||{},this._supportedOptions)if(!c.OUtil.listContainsKey(e,i)){var o=void 0,a=this._supportedOptions[i];a.calculate&&t&&(o=a.calculate(t,n,r)),o||void 0===a.defaultValue||(o=a.defaultValue),e[i]=o}return e},t.prototype.constructCallArgs=function(e,t,n,r){var i={};for(var o in e)i[o]=e[o];for(var a in t)i[a]=t[a];for(var s in this._privateStateCallbacks)i[s]=this._privateStateCallbacks[s](n,r);return this._checkCallArgs&&(i=this._checkCallArgs(i,n,r)),i},t);function t(e,t,n,r,i){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._checkCallArgs=r,this._displayName=i,this._requiredCount=e.length}c.ApiMethodCall=e}(OSF=OSF||{}),function(c){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),i=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,i,t,n)},t.prototype.processResponse=function(e,t,n,r){return 0==e?this._onSucceeded?this._onSucceeded(t,n,r):t:this._onFailed?this._onFailed(e,t):c.DDA.ErrorCodeManager.getErrorArgs(e)},t.prototype.getCallArgs=function(e){for(var t,n,r=e.length-1;r>=this._requiredCount;r--){var i=e[r];switch(typeof i){case"object":t=i;break;case"function":n=i}}return t=t||{},n&&(t[c.ParameterNames.Callback]=n),t},t.prototype.extractOptions=function(e,t,n,r){if(e.length>this._requiredCount+2)throw c.Utility.createParameterException(c.ErrorNames.TooManyArguments);for(var i,o,a=e.length-1;a>=this._requiredCount;a--){var s=e[a];switch(typeof s){case"object":if(i)throw c.Utility.createParameterException(c.ErrorNames.TooManyOptionalObjects);i=s;break;case"function":if(o)throw c.Utility.createParameterException(c.ErrorNames.TooManyOptionalFunctions);o=s;break;default:throw c.Utility.createArgumentException(c.ErrorNames.InvalidValue)}}if(i=this._apiMethods.fillOptions(i,t,n,r),o){if(i[c.ParameterNames.Callback])throw c.ErrorNames.RedundantCallbackSpecification;i[c.ParameterNames.Callback]=o}return this._apiMethods.verifyArguments(this._supportedOptions,i),i},t);function t(e,t,n,r,i,o,a){this._requiredParameters=e,this._supportedOptions=t,this._privateStateCallbacks=n,this._onSucceeded=r,this._onFailed=i,this._displayName=a,this._checkCallArgs=o,this._requiredCount=e.length,this._apiMethods=new c.ApiMethodCall(e,t,n,o,a)}c.AsyncMethodCall=e}(OSF=OSF||{}),function(i){var e,o;e=i.AsyncMethodCalls||(i.AsyncMethodCalls={}),o={},e.define=function(e){var t,n,r;o[e.method]=(n=(t=e).supportedOptions?i.OUtil.createObject(t.supportedOptions):[],r=t.privateStateCallbacks?i.OUtil.createObject(t.privateStateCallbacks):[],new i.AsyncMethodCall(t.requiredArguments||[],n,r,t.onSucceeded,t.onFailed,t.checkCallArgs,t.method))},e.get=function(e){return o[e]}}(OSF=OSF||{}),(OSF||(OSF={})).AsyncMethods={AddColumnsAsync:"addColumnsAsync",AddFromSelectionAsync:"addFromSelectionAsync",AddFromNamedItemAsync:"addFromNamedItemAsync",AddFromPromptAsync:"addFromPromptAsync",AddHandlerAsync:"addHandlerAsync",AddRowsAsync:"addRowsAsync",BindingSelectionChanged:"bindingSelectionChanged",BindingDataChanged:"bindingDataChanged",ClearFormatsAsync:"clearFormatsAsync",CloseAsync:"close",CloseContainerAsync:"closeContainer",DeleteAllDataValuesAsync:"deleteAllDataValuesAsync",DisplayDialogAsync:"displayDialogAsync",ExecuteFeature:"executeFeature",ExecuteRichApiRequestAsync:"executeRichApiRequestAsync",GetAllAsync:"getAllAsync",GetAccessTokenAsync:"getAccessTokenAsync",GetByIdAsync:"getByIdAsync",GetDataAsync:"getDataAsync",GetDocumentCopyAsync:"getFileAsync",GetDocumentCopyChunkAsync:"getSliceAsync",GetFilePropertiesAsync:"getFilePropertiesAsync",GetSelectedDataAsync:"getSelectedDataAsync",GoToByIdAsync:"goToByIdAsync",OpenBrowserWindow:"openBrowserWindow",QueryFeature:"queryFeature",ReleaseByIdAsync:"releaseByIdAsync",RemoveHandlerAsync:"removeHandlerAsync",ReleaseDocumentCopyAsync:"closeAsync",SetDataAsync:"setDataAsync",SetFormatsAsync:"setFormatsAsync",SetSelectedDataAsync:"setSelectedDataAsync",SetTableOptionsAsync:"setTableOptionsAsync",GetOfficeThemeAsync:"getOfficeThemeAsync",GetDocumentThemeAsync:"getDocumentThemeAsync"},function(e){var t;(t=e.PropertyDescriptors||(e.PropertyDescriptors={})).Subset="subset",t.BindingProperties="BindingProperties";var n=(Object.defineProperty(r.prototype,"startRow",{get:function(){return this.m_subset.startRow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startColumn",{get:function(){return this.m_subset.startColumn},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rowCount",{get:function(){return this.m_subset.rowCount},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"columnCount",{get:function(){return this.m_subset.columnCount},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return e.EventType.BindingSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),r);function r(e,t){this.m_bindingInstance=e,this.m_subset=t}e.BindingSelectionChangedEventArgs=n;var i=(Object.defineProperty(o.prototype,"type",{get:function(){return e.EventType.BindingDataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"binding",{get:function(){return this.m_bindingInstance},enumerable:!0,configurable:!0}),o);function o(e){this.m_bindingInstance=e}e.BindingDataChangedEventArgs=i}(OSF=OSF||{}),function(e){var t,n,r,i,o,a;(t=e.PropertyDescriptors||(e.PropertyDescriptors={})).DataPartProperties="DataPartProperties",t.DataNodeProperties="DataNodeProperties",n=e.Marshaling||(e.Marshaling={}),r=n.Customxml||(n.Customxml={}),(i=r.DataNodeEventProperties||(r.DataNodeEventProperties={})).OldNode="OldNode",i.NewNode="NewNode",i.NextSiblingNode="NextSiblingNode",i.InUndoRedo="InUndoRedo",(o=e.EventDescriptors||(e.EventDescriptors={})).DataNodeInsertedEvent="DataNodeInsertedEvent",o.DataNodeReplacedEvent="DataNodeReplacedEvent",o.DataNodeDeletedEvent="DataNodeDeletedEvent",(a=e.DataNodeEventProperties||(e.DataNodeEventProperties={})).OldNode="OldNode",a.NewNode="NewNode",a.NextSiblingNode="NextSiblingNode",a.InUndoRedo="InUndoRedo";var s=(Object.defineProperty(c.prototype,"type",{get:function(){return e.EventType.DataNodeInserted},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),c);function c(e,t){this.m_newNode=e,this.m_inUndoRedo=t}e.NodeInsertedEventArgs=s;var l=(Object.defineProperty(u.prototype,"type",{get:function(){return e.EventType.DataNodeReplaced},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"newNode",{get:function(){return this.m_newNode},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),u);function u(e,t,n){this.m_oldNode=e,this.m_newNode=t,this.m_inUndoRedo=n}e.NodeReplacedEventArgs=l;var p=(Object.defineProperty(f.prototype,"type",{get:function(){return e.EventType.DataNodeDeleted},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"oldNode",{get:function(){return this.m_oldNode},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"oldNextSibling",{get:function(){return this.m_oldNextSibling},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"inUndoRedo",{get:function(){return this.m_inUndoRedo},enumerable:!0,configurable:!0}),f);function f(e,t,n){this.m_oldNode=e,this.m_oldNextSibling=t,this.m_inUndoRedo=n}e.NodeDeletedEventArgs=p}(OSF=OSF||{}),function(t){function e(e){0==e[t.PropertyDescriptors.MessageType]?t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogMessageReceived},message:{value:e[t.PropertyDescriptors.MessageContent]},origin:{value:e[t.PropertyDescriptors.MessageOrigin]}}):t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogEventReceived},error:{value:e[t.PropertyDescriptors.MessageType]}})}var n;t.DialogEventArgs=e,(n=t.PropertyDescriptors||(t.PropertyDescriptors={})).MessageType="messageType",n.MessageContent="messageContent",n.MessageOrigin="messageOrigin"}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.DocumentSelectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_docInstance=e}e.DocumentSelectionChangedEventArgs=t}(OSF=OSF||{}),function(t){function e(e){t.OUtil.defineEnumerableProperties(this,{type:{value:t.EventType.DialogParentMessageReceived},message:{value:e[t.PropertyDescriptors.MessageContent]},origin:{value:e[t.PropertyDescriptors.MessageOrigin]}})}t.DialogParentEventArgs=e}(OSF=OSF||{}),function(m){var e,o;function h(e){return e==m.EventDispId.dispidObjectDeletedEvent||e==m.EventDispId.dispidObjectSelectionChangedEvent||e==m.EventDispId.dispidObjectDataChangedEvent||e==m.EventDispId.dispidContentControlAddedEvent}function _(e,t,n,r){if("number"!=typeof e)throw e;O(r=r||t.getCallArgs(n),e,m.DDA.ErrorCodeManager.getErrorArgs(e))}function b(e){return(m._OfficeAppFactory.getHostInfo().hostPlatform==m.HostInfoPlatform.web?m.WACDelegate:m.SafeArrayDelegate)[e]}function v(){return o||function(){o={};var e={GoToByIdAsync:82,GetSelectedDataAsync:64,SetSelectedDataAsync:65,GetDocumentCopyChunkAsync:80,ReleaseDocumentCopyAsync:81,GetDocumentCopyAsync:77,AddFromSelectionAsync:66,AddFromPromptAsync:67,AddFromNamedItemAsync:78,GetAllAsync:74,GetByIdAsync:68,ReleaseByIdAsync:69,GetDataAsync:70,SetDataAsync:71,AddRowsAsync:72,AddColumnsAsync:79,DeleteAllDataValuesAsync:73,RefreshAsync:75,SaveAsync:76,GetActiveViewAsync:83,GetFilePropertiesAsync:86,GetOfficeThemeAsync:85,GetDocumentThemeAsync:84,ClearFormatsAsync:87,SetTableOptionsAsync:88,SetFormatsAsync:89,GetUserIdentityInfoAsync:92,GetAccessTokenAsync:98,GetAuthContextAsync:99,ExecuteRichApiRequestAsync:93,AppCommandInvocationCompletedAsync:94,CloseContainerAsync:97,OpenBrowserWindow:102,CreateDocumentAsync:105,InsertFormAsync:106,ExecuteFeature:146,QueryFeature:147,AddDataPartAsync:128,GetDataPartByIdAsync:129,GetDataPartsByNameSpaceAsync:130,GetPartXmlAsync:131,GetPartNodesAsync:132,DeleteDataPartAsync:133,GetNodeValueAsync:134,GetNodeXmlAsync:135,GetRelativeNodesAsync:136,SetNodeValueAsync:137,SetNodeXmlAsync:138,AddDataPartNamespaceAsync:139,GetDataPartNamespaceAsync:140,GetDataPartPrefixAsync:141,GetNodeTextAsync:142,SetNodeTextAsync:143,GetSelectedTask:110,GetTask:112,GetWSSUrl:114,GetTaskField:115,GetSelectedResource:111,GetResourceField:113,GetProjectField:116,GetSelectedView:117,GetTaskByIndex:118,GetResourceByIndex:119,SetTaskField:120,SetResourceField:121,GetMaxTaskIndex:122,GetMaxResourceIndex:123,CreateTask:124};for(var t in e)m.AsyncMethods[t]&&(o[m.AsyncMethods[t]]=e[t]);var n={MessageParent:144,SendMessage:145};for(var t in n)m.SyncMethods[t]&&(o[m.SyncMethods[t]]=n[t]);var r={SettingsChanged:m.EventDispId.dispidSettingsChangedEvent,DocumentSelectionChanged:m.EventDispId.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:m.EventDispId.dispidBindingSelectionChangedEvent,BindingDataChanged:m.EventDispId.dispidBindingDataChangedEvent,ActiveViewChanged:m.EventDispId.dispidActiveViewChangedEvent,OfficeThemeChanged:m.EventDispId.dispidOfficeThemeChangedEvent,DocumentThemeChanged:m.EventDispId.dispidDocumentThemeChangedEvent,AppCommandInvoked:m.EventDispId.dispidAppCommandInvokedEvent,DialogMessageReceived:m.EventDispId.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:m.EventDispId.dispidDialogParentMessageReceivedEvent,ObjectDeleted:m.EventDispId.dispidObjectDeletedEvent,ObjectSelectionChanged:m.EventDispId.dispidObjectSelectionChangedEvent,ObjectDataChanged:m.EventDispId.dispidObjectDataChangedEvent,ContentControlAdded:m.EventDispId.dispidContentControlAddedEvent,LiveShareStateChanged:m.EventDispId.dispidLiveShareStateChangedEvent,RichApiMessage:m.EventDispId.dispidRichApiMessageEvent,DataNodeInserted:m.EventDispId.dispidDataNodeAddedEvent,DataNodeReplaced:m.EventDispId.dispidDataNodeReplacedEvent,DataNodeDeleted:m.EventDispId.dispidDataNodeDeletedEvent};for(var i in r)m.EventType[i]&&(o[m.EventType[i]]=r[i])}(),o}function O(e,t,n){var r=e[m.ParameterNames.Callback];if(r){var i,o={};o[m.DDA.AsyncResultEnum.Properties.Context]=e[m.ParameterNames.AsyncContext],0==t?o[m.DDA.AsyncResultEnum.Properties.Value]=n:(i={},n=n||m.DDA.ErrorCodeManager.getErrorArgs(5001),i[m.DDA.AsyncResultEnum.ErrorProperties.Code]=t||5001,i[m.DDA.AsyncResultEnum.ErrorProperties.Name]=n.name||n,i[m.DDA.AsyncResultEnum.ErrorProperties.Message]=n.message||n),r(new m.DDA.AsyncResult(o,i))}}m.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1},(e=m.DispIdHost||(m.DispIdHost={})).InvokeMethod=function(e,t,i,n){var r,o;try{var a=m.AsyncMethodCalls.get(e);o=a.verifyAndExtractCall(t,i,n);var s=v()[e],c=b("executeAsync"),l=null,u=!1,p=void 0;if(window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0,u=(r=function(e){var t=!1,n=void 0;if(void 0!==m&&m._OfficeAppFactory&&"function"==typeof m._OfficeAppFactory.getHostInfo&&m.HostInfoPlatform&&m.HostInfoPlatform.ios){var r=m._OfficeAppFactory.getHostInfo();if(r&&r.hostPlatform&&(t=r.hostPlatform===m.HostInfoPlatform.ios)&&m.AsyncMethods)for(var i=Object.keys(m.AsyncMethods),o=0;o<i.length;o++){var a=i[o];if(m.AsyncMethods[a]===e){n=a;break}}}return{isIOSPlatformDetected:t,methodId:n}}(e)).isIOSPlatformDetected,p=r.methodId),window.Excel&&window.Excel._RedirectV1APIs&&(l=window.Excel._V1APIMap[u&&void 0!==p?p:e])){var f=m.OUtil.shallowCopy(o);delete f[m.ParameterNames.AsyncContext],l.preprocess&&(f=l.preprocess(f));var d=new window.Excel.RequestContext,h=l.call(d,f);d.sync().then(function(){var e=h.value,t=e.status;delete e.status,delete e["@odata.type"],l.postprocess&&(e=l.postprocess(e,f)),0!=t&&(e=m.DDA.ErrorCodeManager.getErrorArgs(t)),O(o,t,e)}).catch(function(e){O(o,13991,null)})}else{var g;g=m.HostParameterMap.toHost(s,o);var y=(new Date).getTime();c({dispId:s,hostCallArgs:g,onCalling:function(){},onReceiving:function(){},onComplete:function(e,t){var n;n=0==e?m.HostParameterMap.fromHost(s,t):t;var r=a.processResponse(e,n,i,o);O(o,e,r),m.AppTelemetry&&m.AppTelemetry.onMethodDone(s,g,Math.abs((new Date).getTime()-y),e)}})}}catch(e){_(e,a,t,o)}},e.AddEventHandler=function(t,n,r,e){var i,o,a,s=!1;function c(e){var t;0==e&&((s?n.addObjectEventHandler(o,i[m.ParameterNames.Id],a):n.addEventHandler(o,a))||(e=13991));0!=e&&(t=m.DDA.ErrorCodeManager.getErrorArgs(e)),O(i,e,t)}try{var l=m.AsyncMethodCalls.get(m.AsyncMethods.AddHandlerAsync);if(i=l.verifyAndExtractCall(t,r,n),o=i[m.ParameterNames.EventType],a=i[m.ParameterNames.Handler],e)return void c(0);var u=v()[o],p=(s=h(u))?i[m.ParameterNames.Id]:r.id||"";if(0==(s?n.getObjectEventHandlerCount(o,p):n.getEventHandlerCount(o)))b("registerEventAsync")({eventType:o,dispId:u,targetId:p,onCalling:function(){},onReceiving:function(){},onComplete:c,onEvent:function(e){var t=m.HostParameterMap.fromHost(u,e);s?n.fireObjectEvent(p,m.manufactureEventArgs(o,p,t)):n.fireEvent(m.manufactureEventArgs(o,r,t))}});else c(0)}catch(e){_(e,l,t,i)}},e.RemoveEventHandler=function(t,e,n){var r,i,o,a=!1;function s(e){var t;0!=e&&(t=m.DDA.ErrorCodeManager.getErrorArgs(e)),O(r,e,t)}try{var c=m.AsyncMethodCalls.get(m.AsyncMethods.RemoveHandlerAsync);i=(r=c.verifyAndExtractCall(t,n,e))[m.ParameterNames.EventType],o=r[m.ParameterNames.Handler];var l,u,p=v()[i],f=(a=h(p))?r[m.ParameterNames.Id]:n.id||"";l=null===o?(u=a?e.clearObjectEventHandlers(i,f):e.clearEventHandlers(i),0):(u=a?e.removeObjectEventHandler(i,f,o):e.removeEventHandler(i,o))?0:5003;var d=a?e.getObjectEventHandlerCount(i,f):e.getEventHandlerCount(i);if(u&&0==d)b("unregisterEventAsync")({eventType:i,dispId:p,targetId:f,onCalling:function(){},onReceiving:function(){},onComplete:s});else s(l)}catch(e){_(e,c,t,r)}},e.OpenDialog=function(t,i,o){var r,a,s=m.EventType.DialogMessageReceived,c=m.EventType.DialogEventReceived;function e(e){if(0!=e)n=m.DDA.ErrorCodeManager.getErrorArgs(e);else{var t={};t.id=a,t.data=i;var n=l.processResponse(e,t,o,r);m.DialogShownStatus.hasDialogShown=!0,i.clearEventHandlers(s),i.clearEventHandlers(c)}O(r,e,n)}try{if(null!=s&&null!=c||e(5e3),null==m.AsyncMethods.DisplayDialogAsync)return void e(5001);var l=m.AsyncMethodCalls.get(m.AsyncMethods.DisplayDialogAsync);r=l.verifyAndExtractCall(t,o,i);var u=v()[s],n=b("openDialog");a=JSON.stringify(r),m.DialogShownStatus.hasDialogShown||(i.clearQueuedEvent(s),i.clearQueuedEvent(c),i.clearQueuedEvent(m.EventType.DialogParentMessageReceived)),n({eventType:s,dispId:u,targetId:a,onCalling:function(){},onReceiving:function(){},onComplete:e,onEvent:function(e){var t=m.HostParameterMap.fromHost(u,e),n=m.manufactureEventArgs(s,o,t);if(n.type==c){m.DDA.ErrorCodeManager.getErrorArgs(n.error);var r={};r.code=status||5001,n.error=new m.DDA.Error(r[m.DDA.AsyncResultEnum.ErrorProperties.Name],r[m.DDA.AsyncResultEnum.ErrorProperties.Message],r[m.DDA.AsyncResultEnum.ErrorProperties.Code])}i.fireOrQueueEvent(n),12006==t.messageType&&(i.clearEventHandlers(s),i.clearEventHandlers(c),i.clearEventHandlers(m.EventType.DialogParentMessageReceived),m.DialogShownStatus.hasDialogShown=!1)}})}catch(e){_(e,l,t,r)}},e.CloseDialog=function(t,e,n,r){var i,o,a;try{var s=m.AsyncMethodCalls.get(m.AsyncMethods.CloseAsync);i=s.verifyAndExtractCall(t,r,n),o=m.EventType.DialogMessageReceived,a=m.EventType.DialogEventReceived,n.clearEventHandlers(o),n.clearEventHandlers(a);var c=v()[o];b("closeDialog")({eventType:o,dispId:c,targetId:e,onCalling:function(){},onReceiving:function(){},onComplete:function(e){m.DialogShownStatus.hasDialogShown=!1}})}catch(e){_(e,s,t,i)}},e.MessageParent=function(e,t){var n=m.SyncMethodCalls.get(m.SyncMethods.MessageParent).verifyAndExtractCall(e,t,{});return b("messageParent")({dispId:v()[m.SyncMethods.MessageParent],hostCallArgs:n,onCalling:function(){},onReceiving:function(){}})},e.SendMessage=function(e,t,n){var r=m.SyncMethodCalls.get(m.SyncMethods.SendMessage).verifyAndExtractCall(e,n,{});return b("sendMessage")({dispId:v()[m.SyncMethods.SendMessage],hostCallArgs:r,onCalling:function(){},onReceiving:function(){}})},e.addAsyncMethods=function(t,e,n){for(var r in e){var i=e[r];t[i]||m.OUtil.defineEnumerableProperty(t,i,{value:function(e){return function(){(0,m.DispIdHost.InvokeMethod)(e,arguments,t,n)}}(i)})}},e.addEventSupport=function(e,t,n){var r=m.AsyncMethods.AddHandlerAsync,i=m.AsyncMethods.RemoveHandlerAsync;e[r]||m.OUtil.defineEnumerableProperty(e,r,{value:function(){(0,m.DispIdHost.AddEventHandler)(arguments,t,e,n)}}),e[i]||m.OUtil.defineEnumerableProperty(e,i,{value:function(){(0,m.DispIdHost.RemoveEventHandler)(arguments,t,e)}})},e.issueAsyncResult=O}(OSF=OSF||{}),function(i){i.manufactureEventArgs=function(e,t,n){var r;switch(e){case i.EventType.DocumentSelectionChanged:r=new i.DocumentSelectionChangedEventArgs(t);break;case i.EventType.BindingSelectionChanged:r=new i.BindingSelectionChangedEventArgs(i.manufactureBinding(n,t.document),n[i.PropertyDescriptors.Subset]);break;case i.EventType.BindingDataChanged:r=new i.BindingDataChangedEventArgs(i.manufactureBinding(n,t.document));break;case i.EventType.SettingsChanged:r=new i.SettingsChangedEventArgs(t);break;case i.EventType.ActiveViewChanged:r=new i.ActiveViewChangedEventArgs(n);break;case i.EventType.LiveShareStateChanged:r=new i.LiveShareStateChangedEventArgs(n);break;case i.EventType.OfficeThemeChanged:r=new i.DDA.Theming.OfficeThemeChangedEventArgs(n);break;case i.EventType.DocumentThemeChanged:r=new i.DDA.Theming.DocumentThemeChangedEventArgs(n);break;case i.EventType.DataNodeInserted:r=new i.NodeInsertedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.NewNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DataNodeReplaced:r=new i.NodeReplacedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.OldNode]),i.manufactureDataNode(n[i.DataNodeEventProperties.NewNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DataNodeDeleted:r=new i.NodeDeletedEventArgs(i.manufactureDataNode(n[i.DataNodeEventProperties.OldNode]),i.manufactureDataNode(n[i.DataNodeEventProperties.NextSiblingNode]),n[i.DataNodeEventProperties.InUndoRedo]);break;case i.EventType.DialogMessageReceived:r=new i.DialogEventArgs(n);break;case i.EventType.DialogParentMessageReceived:r=new i.DialogParentEventArgs(n)}return r}}(OSF=OSF||{}),function(d){var h="toHost",g="fromHost";!function(u){var t;u.self="self",u.dynamicTypes={},u.dynamicTypes[d.ParameterNames.Data]={toHost:function(e){if(null!=e&&void 0!==e.rows){var t={};t[d.TableDataProperties.TableRows]=e.rows,t[d.TableDataProperties.TableHeaders]=e.headers,e=t}return e},fromHost:function(e){return e}},u.dynamicTypes.sampleData=u.dynamicTypes.data;var p={};function r(e,t){var n,r;if(t.map)for(var i in r={},n=t.map){var o=n[i];o==u.self&&(o=i),r[o]=i}else n=t.toHost,r=t.fromHost;var a=p[e];if(a){var s=a[h];for(var c in s)n[c]=s[c];for(var l in s=a[g])r[l]=s[l]}else a=p[e]={};a[h]=n,a[g]=r}function i(e){f().addComplexType(e)}function l(e,t){var n=e?{}:void 0;for(var r in e){var i,o=e[r];if(d.ListType.isListType(r))for(var a in i=[],o)i.push(l(o[a],t));else if(d.OUtil.listContainsKey(u.dynamicTypes,r))i=u.dynamicTypes[r][t](o);else if(t==g&&f().preserveNesting(r))i=l(o,t);else{var s=p[r];if(s){var c=s[t];c&&void 0===(i=c[o])&&(i=o)}else i=o}n[r]=i}return n}function n(e,t,n){var r,i=p[e][n];if("toHost"==n)r=function e(t,n){var r;for(var i in n){var o;if(null!=(o=f().isComplexType(i)?e(t,p[i][h]):t[i])){r=r||{};var a=n[i];a==u.self&&(a=i),r[a]=f().pack(i,o)}}return r}(l(t,n),i);else if("fromHost"==n){r=l(function e(t,n,r){for(var i in r=r||{},n){var o,a,s=n[i];if(s==u.self)o=t;else{if("sourceData"==s){r[i]=t.toArray();continue}o=t[s]}if(null==o)r[i]=void 0;else if(o=f().unpack(i,o),f().isComplexType(i))a=p[i][g],f().preserveNesting(i)?r[i]=e(o,a):e(o,a,r);else if(d.ListType.isListType(i)){(a={})[d.ListType.getDescriptor(i)]=u.self;var c=new Array(o.length);for(var l in o)c[l]=e(o[l],a);r[i]=c}else r[i]=o}return r}(t,i),n)}return r}function f(){if(!t){var e=d._OfficeAppFactory.getHostInfo();t=e.hostPlatform==d.HostInfoPlatform.web?new d.WebSpecialProcessor:new d.SafeArraySpecialProcessor}return t}function o(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t}u.define=function(e){var t={},n=o(e.toHost);e.invertible?t.map=n:e.canonical?t.toHost=t.fromHost=n:(t.toHost=n,t.fromHost=o(e.fromHost)),r(e.type,t),e.isComplexType&&i(e.type)},u.toHost=function(e,t){return n(e,t,h)},u.fromHost=function(e,t){return n(e,t,g)},u.addMapping=r,u.addComplexType=i,u.getDynamicType=function(e){return f().getDynamicType(e)},u.setDynamicType=function(e,t){f().setDynamicType(e,t)},u.doMapValues=function(e,t){return l(e,t)}}(d.HostParameterMap||(d.HostParameterMap={}))}(OSF=OSF||{}),function(t){var e,n;e=t.ListType||(t.ListType={}),n={},e.setListType=function(e,t){n[e]=t},e.isListType=function(e){return t.OUtil.listContainsKey(n,e)},e.getDescriptor=function(e){return n[e]}}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.LiveShareStateChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"liveShareState",{get:function(){return this.m_liveShareStateInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_liveShareStateInstance=e}e.LiveShareStateChangedEventArgs=t}(OSF=OSF||{}),function(e){var t;(t=e.EventType||(e.EventType={})).ActiveViewChanged="activeViewChanged",t.DialogMessageReceived="dialogMessageReceived",t.DialogParentMessageReceived="dialogParentMessageReceived",t.DialogParentEventReceived="dialogParentEventReceived",t.DialogEventReceived="dialogEventReceived",t.BindingDataChanged="bindingDataChanged",t.BindingSelectionChanged="bindingSelectionChanged",t.OfficeThemeChanged="officeThemeChanged",t.DocumentThemeChanged="documentThemeChanged",t.DataNodeDeleted="nodeDeleted",t.DataNodeInserted="nodeInserted",t.DataNodeReplaced="nodeReplaced",t.DocumentSelectionChanged="documentSelectionChanged",t.LiveShareStateChanged="liveShareStateChanged",t.NodeDeleted="nodeDeleted",t.NodeInserted="nodeInserted",t.NodeReplaced="nodeReplaced",t.SettingsChanged="settingsChanged"}(Office=Office||{}),function(e){var t;(t=e.TableDataProperties||(e.TableDataProperties={})).TableRows="TableRows",t.TableHeaders="TableHeaders"}(OSF=OSF||{}),function(d){!function(e){var t,n,r,i,o,a,s;function c(){try{var e=window.navigator.userAgent;return-1<e.indexOf("MSIE ")||-1<e.indexOf("Trident/")||-1<e.indexOf("Edge/")}catch(e){return f("Error happens in isInternetExplorer.",e),!1}}function l(e){if("undefined"!=typeof JSON)try{return JSON.stringify(e)}catch(e){}return""}(t=e.HostThemeButtonStyleKeys||(e.HostThemeButtonStyleKeys={})).ButtonBorderColor="buttonBorderColor",t.ButtonBackgroundColor="buttonBackgroundColor",(r=n=n||{}).HostButtonBorderColor="#86bfa0",r.HostButtonBackgroundColor="#d3f0e0",(o=i=i||{}).HostButtonBorderColor="#a3bde3",o.HostButtonBackgroundColor="#d5e1f2",(s=a=a||{}).HostButtonBorderColor="#f5ba9d",s.HostButtonBackgroundColor="#fcf0ed",e.finalizeProperties=function(e,t){t=t||{};for(var n=Object.getOwnPropertyNames(e),r=n.length,i=0;i<r;i++){var o=n[i],a=Object.getOwnPropertyDescriptor(e,o);a.get||a.set||(a.writable=t.writable||!1),a.configurable=t.configurable||!1,a.enumerable=t.enumerable||!0,Object.defineProperty(e,o,a)}return e},e.defineEnumerableProperties=function(e,t){return function(e,t,n){for(var r in t=t||{})p(e,r,t[r],n);return e}(e,t,["enumerable"])},e.defineEnumerableProperty=function(e,t,n){return p(e,t,n,["enumerable"])},e.listContainsKey=function(e,t){for(var n in e)if(t==n)return!0;return!1},e.augmentList=function(n,e){var t=n.push?function(e,t){n.push(t)}:function(e,t){n[e]=t};for(var r in e)t(r,e[r])},e.createObject=function(e){var t=null;if(e){t={};for(var n=e.length,r=0;r<n;r++)t[e[r].name]=e[r].value}return t},e.listContainsValue=function(e,t){for(var n in e)if(t==e[n])return!0;return!1},e.shouldUseLocalStorageToPassMessage=function(){try{for(var e=["Windows NT 6.1","Windows NT 6.2","Windows NT 6.3","Windows NT 10.0"],t=window.navigator.userAgent,n=0,r=e.length;n<r;n++)if(-1<t.indexOf(e[n]))return c();return!1}catch(e){return f("Error happens in shouldUseLocalStorageToPassMessage.",e),!1}},e.isInternetExplorer=c,e.serializeObjectToString=l,e.formatString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e;return r[0].replace(/{(\d+)}/gm,function(e,t){var n=parseInt(t,10)+1;return void 0===r[n]?"{"+t+"}":r[n]})},e.addHostInfoAsQueryParam=function(e,t){if(!e)return null;var n,r="#",i=(e=e.trim()||"").split(r),o=i.shift(),a=i.join(r),s=o.split("?");return 1<s.length?n=o+"&_host_Info="+t:0<s.length&&(n=o+"?_host_Info="+t),a?[n,r,a].join(""):n},e.getHostnamePortionForLogging=function(e){var t=e.split("."),n=t.length;return 2<=n?t[n-2]+"."+t[n-1]:1==n?t[0]:void 0},e.shallowCopy=function(e){if(null==e)return null;if(e instanceof Object){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}var r=e.constructor();for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);return r}return e},e.getXdmEventName=function(e,t){return t==d.EventType.BindingSelectionChanged||t==d.EventType.BindingDataChanged||t==d.EventType.DataNodeDeleted||t==d.EventType.DataNodeInserted||t==d.EventType.DataNodeReplaced?e+"_"+t:t},e.getCommonUI=function(){switch(Office.context.host){case Office.HostType.Excel:return n;case Office.HostType.Word:return i;case Office.HostType.PowerPoint:return a}return null},e.getDomainForUrl=function(e){if(!e)return null;var t=document.createElement("a");return t.href=e,t.protocol+"//"+t.host};var u=-1;function p(e,t,n,r){for(var i in n=n||{},r){var o=r[i];null==n[o]&&(n[o]=!0)}return Object.defineProperty(e,t,n),e}function f(e,t){d.Utility.trace(e+" Exception details: "+l(t))}e.getUniqueId=function(){return(u+=1).toString()}}(d.OUtil||(d.OUtil={}))}(OSF=OSF||{}),function(e){var t;(t=e.ParameterNames||(e.ParameterNames={})).BindingType="bindingType",t.CoercionType="coercionType",t.ValueFormat="valueFormat",t.FilterType="filterType",t.Columns="columns",t.SampleData="sampleData",t.GoToType="goToType",t.SelectionMode="selectionMode",t.Id="id",t.PromptText="promptText",t.ItemName="itemName",t.FailOnCollision="failOnCollision",t.StartRow="startRow",t.StartColumn="startColumn",t.RowCount="rowCount",t.ColumnCount="columnCount",t.Rows="rows",t.OverwriteIfStale="overwriteIfStale",t.FileType="fileType",t.EventType="eventType",t.Handler="handler",t.SliceSize="sliceSize",t.SliceIndex="sliceIndex",t.ActiveView="activeView",t.Status="status",t.PlatformType="platformType",t.HostType="hostType",t.Email="email",t.OfficeTheme="officeTheme",t.DocumentTheme="documentTheme",t.ForceConsent="forceConsent",t.ForceAddAccount="forceAddAccount",t.AuthChallenge="authChallenge",t.AllowConsentPrompt="allowConsentPrompt",t.ForMSGraphAccess="forMSGraphAccess",t.AllowSignInPrompt="allowSignInPrompt",t.JsonPayload="jsonPayload",t.EnableNewHosts="enableNewHosts",t.AccountTypeFilter="accountTypeFilter",t.AddinTrustId="addinTrustId",t.Reserved="reserved",t.Tcid="tcid",t.Xml="xml",t.Namespace="namespace",t.Prefix="prefix",t.XPath="xPath",t.Text="text",t.ImageLeft="imageLeft",t.ImageTop="imageTop",t.ImageWidth="imageWidth",t.ImageHeight="imageHeight",t.TaskId="taskId",t.FieldId="fieldId",t.FieldValue="fieldValue",t.ServerUrl="serverUrl",t.ListName="listName",t.ResourceId="resourceId",t.ViewType="viewType",t.ViewName="viewName",t.GetRawValue="getRawValue",t.CellFormat="cellFormat",t.TableOptions="tableOptions",t.TaskIndex="taskIndex",t.ResourceIndex="resourceIndex",t.CustomFieldId="customFieldId",t.Url="url",t.MessageHandler="messageHandler",t.Width="width",t.Height="height",t.RequireHTTPs="requireHTTPS",t.DisplayInIframe="displayInIframe",t.HideTitle="hideTitle",t.UseDeviceIndependentPixels="useDeviceIndependentPixels",t.PromptBeforeOpen="promptBeforeOpen",t.EnforceAppDomain="enforceAppDomain",t.UrlNoHostInfo="urlNoHostInfo",t.Base64="base64",t.FormId="formId"}(OSF=OSF||{}),function(s){var e;function r(n,r){var i=(new Date).getTime();return function(e){r.onReceiving&&r.onReceiving();var t=e.toArray?e.toArray()[0]:e;return r.onComplete&&r.onComplete(t),s.AppTelemetry&&s.AppTelemetry.onRegisterDone(n,r.dispId,Math.abs((new Date).getTime()-i),t),!0}}function c(e){var t=e;if(null!=e&&e.toArray){var n=e.toArray();t=new Array(n.length);for(var r=0;r<n.length;r++)t[r]=c(n[r])}return t}(e=s.SafeArrayDelegate||(s.SafeArrayDelegate={})).executeAsync=function(a){try{a.onCalling&&a.onCalling(),s._OfficeAppFactory.getClientHostController().execute(a.dispId,function e(t){var n=t;if(s.OUtil.isArray(t))for(var r=n.length,i=0;i<r;i++)n[i]=e(n[i]);else if(s.OUtil.isDate(t))n=t.getVarDate();else if("object"==typeof t&&!s.OUtil.isArray(t))for(var o in n=[],t)s.OUtil.isFunction(t[o])||(n[o]=e(t[o]));return n}(a.hostCallArgs),function(e){var t,n;if(1==(n="number"==typeof e?(t=[],e):(t=e.toArray())[0]))return null!=(r=c(r=t[1]))&&(a._chunkResultData||(a._chunkResultData=new Array),a._chunkResultData[r[0]]=r[1]),!1;if(a.onReceiving&&a.onReceiving(),a.onComplete){var r;if(0==n){if(2<t.length){r=[];for(var i=1;i<t.length;i++)r[i-1]=t[i]}else r=t[1];if(a._chunkResultData&&null!=(r=c(r))){var o=r[r.length-1];a._chunkResultData.length==o?r[r.length-1]=a._chunkResultData:n=5001}}else r=t[1];a.onComplete(n,r)}return!0})}catch(e){s.SafeArrayDelegate.onException(e,a)}},e.registerEventAsync=function(n){n.onCalling&&n.onCalling();var e=r(!0,n);try{s._OfficeAppFactory.getClientHostController().registerEvent(n.dispId,void 0,n.targetId,function(e,t){n.onEvent&&n.onEvent(t),s.AppTelemetry&&s.AppTelemetry.onEventDone(n.dispId)},e)}catch(e){s.SafeArrayDelegate.onException(e,n)}},e.unregisterEventAsync=function(t){t.onCalling&&t.onCalling();var e=r(!1,t);try{s._OfficeAppFactory.getClientHostController().unregisterEvent(t.dispId,void 0,t.targetId,e)}catch(e){s.SafeArrayDelegate.onException(e,t)}},e.onException=function(e,t){var n,r=e.number;if(r)switch(r){case-2146828218:n=7e3;break;case-2147467259:n=t.dispId==s.EventDispId.dispidDialogMessageReceivedEvent?12007:5001;break;case-2146828283:case-2147209089:n=5010;break;case-2147208704:n=5100;break;case-2146827850:default:n=5001}t.onComplete&&t.onComplete(n||5001)},e.onExceptionSyncMethod=function(e,t){var n,r=e.number;if(r)switch(r){case-2146828218:n=7e3;break;case-2146827850:default:n=5001}return n||5001},e.getOnAfterRegisterEvent=r}(OSF=OSF||{}),function(e){var t=(Object.defineProperty(n.prototype,"type",{get:function(){return e.EventType.SettingsChanged},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"settings",{get:function(){return this.m_settingsInstance},enumerable:!0,configurable:!0}),n);function n(e){this.m_settingsInstance=e}e.SettingsChangedEventArgs=t}(OSF=OSF||{}),function(t){var e=(n.prototype.addComplexType=function(e){this._complexTypes.push(e)},n.prototype.getDynamicType=function(e){return this.dynamicTypes[e]},n.prototype.setDynamicType=function(e,t){this.dynamicTypes[e]=t},n.prototype.isComplexType=function(e){return t.OUtil.listContainsValue(this._complexTypes,e)},n.prototype.isDynamicType=function(e){return t.OUtil.listContainsKey(this.dynamicTypes,e)},n.prototype.preserveNesting=function(e){return!1},n.prototype.pack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].toHost(t):t},n.prototype.unpack=function(e,t){return this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},n);function n(e,t){this._complexTypes=e,this.dynamicTypes=t}t.SpecialProcessor=e}(OSF=OSF||{});__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(r){var t,e=(t=r.SpecialProcessor,__extends(n,t),n.prototype.unpack=function(e,t){return this.isComplexType(e)||r.ListType.isListType(e)?void 0!==t&&void 0!==t.toArray?t.toArray():t||{}:this.isDynamicType(e)?this.dynamicTypes[e].fromHost(t):t},n);function n(){var e={};return e[r.ParameterNames.Data]={toHost:function(e){if(r.TableDataProperties&&"string"!=typeof e&&void 0!==e[r.TableDataProperties.TableRows]){var t=[];t[0]=e[r.TableDataProperties.TableRows],t[1]=e[r.TableDataProperties.TableHeaders],e=t}return e},fromHost:function(e){var t;if(e.toArray)if(2===e.dimensions())t=r.Utility.twoDVBArrayToJaggedArray(e);else{var n=e.toArray();2===n.length&&(null!=n[0]&&n[0].toArray||null!=n[1]&&n[1].toArray)?((t={})[r.TableDataProperties.TableRows]=r.Utility.twoDVBArrayToJaggedArray(n[0]),t[r.TableDataProperties.TableHeaders]=r.Utility.twoDVBArrayToJaggedArray(n[1])):t=n}else t=e;return t}},t.call(this,[],e)||this}r.SafeArraySpecialProcessor=e}(OSF=OSF||{}),function(s){var e=(t.prototype.verifyAndExtractCall=function(e,t,n){var r=this._apiMethods.extractRequiredArguments(e,t,n),i=this.extractOptions(e,r,t,n);return this._apiMethods.constructCallArgs(r,i,t,n)},t.prototype.extractOptions=function(e,t,n,r){if(e.length>this._requiredCount+1)throw s.Utility.createParameterException(s.ErrorNames.TooManyArguments);for(var i,o=e.length-1;o>=this._requiredCount;o--){var a=e[o];switch(typeof a){case"object":if(i)throw s.Utility.createParameterException(s.ErrorNames.TooManyArguments);i=a;break;default:throw s.Utility.createArgumentException(s.ErrorNames.InvalidOptionalArgument)}}return i=this._apiMethods.fillOptions(i,t,n,r),this._apiMethods.verifyArguments(this._supportedOptions,i),i},t);function t(e,t,n,r,i){this._requiredCount=e.length,this._apiMethods=new s.ApiMethodCall(e,t,n,r,i),this._supportedOptions=t}s.SyncMethodCall=e}(OSF=OSF||{}),function(r){var e,i;e=r.SyncMethodCalls||(r.SyncMethodCalls={}),i={},e.define=function(e){var t,n;i[e.method]=(n=(t=e).supportedOptions?r.OUtil.createObject(t.supportedOptions):[],new r.SyncMethodCall(t.requiredArguments||[],n,t.privateStateCallbacks,t.checkCallArgs,t.method.displayName))},e.get=function(e){return i[e]}}(OSF=OSF||{}),(OSF||(OSF={})).SyncMethods={MessageParent:"messageParent",MessageChild:"messageChild",SendMessage:"sendMessage",AddMessageHandler:"addEventHandler"},function(l){var e;(function(e){var t,n,r,i;function o(e){for(var t=[{name:l.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent1,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent2,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent3,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent4,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent5,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Accent6,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.Hyperlink,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,needToConvertToHex:!0},{name:l.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyLatinFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyScriptFont,needToConvertToHex:!1},{name:l.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,needToConvertToHex:!1}],n={},r=0;r<t.length;r++)t[r].needToConvertToHex?n[t[r].name]=l.OUtil.convertIntToCssHexColor(e[t[r].name]):n[t[r].name]=e[t[r].name];return n}function a(e){var t={};if(e){var n=l.DDA.Theming.OfficeThemeEnum,r={bodyBackgroundColor:{name:n.BodyBackgroundColor,convertToHex:!0},bodyForegroundColor:{name:n.BodyForegroundColor,convertToHex:!0},controlBackgroundColor:{name:n.ControlBackgroundColor,convertToHex:!0},controlForegroundColor:{name:n.ControlForegroundColor,convertToHex:!0},primaryFontColor:{name:n.BodyForegroundColor,convertToHex:!0},primaryBackgroundColor:{name:n.BodyBackgroundColor,convertToHex:!0},secondaryFontColor:{name:n.ControlForegroundColor,convertToHex:!0},secondaryBackgroundColor:{name:n.ControlBackgroundColor,convertToHex:!0},fluentThemeData:{name:n.FluentThemeData,convertToHex:!1}};for(var i in e){var o=!1,a=i;r[i]&&(a=r[i].name,o=r[i].convertToHex),t[a]=o?l.OUtil.convertIntToCssHexColor(e[i]):e[i]}null==t[n.IsDarkTheme]&&(t[n.IsDarkTheme]=l.DDA.Theming.GetIsDarkThemeFromCSSHexColor(t[n.BodyBackgroundColor])),null==t[n.ThemeId]&&(t[n.ThemeId]=t[n.IsDarkTheme]?l.DDA.Theming.ThemeId.Black:l.DDA.Theming.ThemeId.White)}return t}(t=e.DocumentThemeEnum||(e.DocumentThemeEnum={})).PrimaryFontColor="primaryFontColor",t.PrimaryBackgroundColor="primaryBackgroundColor",t.SecondaryFontColor="secondaryFontColor",t.SecondaryBackgroundColor="secondaryBackgroundColor",t.Accent1="accent1",t.Accent2="accent2",t.Accent3="accent3",t.Accent4="accent4",t.Accent5="accent5",t.Accent6="accent6",t.Hyperlink="hyperlink",t.FollowedHyperlink="followedHyperlink",t.HeaderLatinFont="headerLatinFont",t.HeaderEastAsianFont="headerEastAsianFont",t.HeaderScriptFont="headerScriptFont",t.HeaderLocalizedFont="headerLocalizedFont",t.BodyLatinFont="bodyLatinFont",t.BodyEastAsianFont="bodyEastAsianFont",t.BodyScriptFont="bodyScriptFont",t.BodyLocalizedFont="bodyLocalizedFont",(n=e.OfficeThemeEnum||(e.OfficeThemeEnum={})).BodyBackgroundColor="bodyBackgroundColor",n.BodyForegroundColor="bodyForegroundColor",n.ControlBackgroundColor="controlBackgroundColor",n.ControlForegroundColor="controlForegroundColor",n.IsDarkTheme="isDarkTheme",n.ThemeId="themeId",n.FluentThemeData="fluentThemeData",(r=e.OfficeThemeEnumWac||(e.OfficeThemeEnumWac={})).PrimaryFontColor="primaryFontColor",r.PrimaryBackgroundColor="primaryBackgroundColor",r.SecondaryFontColor="secondaryFontColor",r.SecondaryBackgroundColor="secondaryBackgroundColor",r.IsDarkTheme="isDarkTheme",r.ThemeId="themeId",(i=e.ThemeId||(e.ThemeId={}))[i.Colorful=0]="Colorful",i[i.DarkGray=1]="DarkGray",i[i.Black=2]="Black",i[i.White=3]="White",e.ConvertToDocumentTheme=o,e.GetIsDarkThemeFromCSSHexColor=function(e){var t="#"===e.charAt(0)?e.substring(1,7):e;return.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16)<186},e.ConvertToOfficeTheme=a;function s(e){var t=null,n=l._OfficeAppFactory.getHostInfo();t=n.hostPlatform==l.HostInfoPlatform.web?e:a(e);var r=l.DDA.Theming.OfficeThemeEnum;void 0===t[r.IsDarkTheme]&&(t.isDarkTheme=l.DDA.Theming.GetIsDarkThemeFromCSSHexColor(e[r.BodyBackgroundColor])),void 0===t[r.ThemeId]&&(t.themeId=t.isDarkTheme?l.DDA.Theming.ThemeId.Black:l.DDA.Theming.ThemeId.White),n.hostPlatform!=l.HostInfoPlatform.web&&"mac"!=n.hostPlatform.toLowerCase()&&"ios"!=n.hostPlatform.toLowerCase()||Office.context&&Office.context.officeTheme&&(Office.context.officeTheme.bodyBackgroundColor=t.bodyBackgroundColor,Office.context.officeTheme.bodyForegroundColor=t.bodyForegroundColor,Office.context.officeTheme.controlBackgroundColor=t.controlBackgroundColor,Office.context.officeTheme.controlForegroundColor=t.controlForegroundColor,Office.context.officeTheme.isDarkTheme=t.isDarkTheme,Office.context.officeTheme.themeId=t.themeId),l.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.OfficeThemeChanged},officeTheme:{value:t}})}e.OfficeThemeChangedEventArgs=s;function c(e){var t=o(e);l.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentThemeChanged},documentTheme:{value:t}})}e.DocumentThemeChangedEventArgs=c})((e=l.DDA||(l.DDA={})).Theming||(e.Theming={}))}(OSF=OSF||{}),function(t){var e,n;e=t.V10ApiFeatureRegistry||(t.V10ApiFeatureRegistry={}),n=[],e.initialize=function(){n.forEach(function(e){e.defineMethodsFunc(),t.OUtil.getHostPlatform()==t.HostInfoPlatform.web?"function"==typeof e.defineWebParameterMapFunc&&e.defineWebParameterMapFunc():"function"==typeof e.defineSafeArrayParameterMapFunc&&e.defineSafeArrayParameterMapFunc(),"function"==typeof e.initializeFunc&&e.initializeFunc()})},e.register=function(e){n.push(e)}}(OSF=OSF||{}),function(a){var e,t;function n(r,i){var o=(new Date).getTime();return function(e,t){var n;if(i.onReceiving&&i.onReceiving(),0!=e)switch(e){case-5:n=7e3;break;default:n=5001}else n=t?t.Error?t.Error:0:5001;i.onComplete&&i.onComplete(n),a.AppTelemetry&&a.AppTelemetry.onRegisterDone(r,i.dispId,Math.abs((new Date).getTime()-o),n)}}(e=a.WACDelegate||(a.WACDelegate={})).version=1,(t=e.UniqueArguments||(e.UniqueArguments={})).Data="Data",t.Properties="Properties",t.BindingRequest="DdaBindingsMethod",t.BindingResponse="Bindings",t.SingleBindingResponse="singleBindingResponse",t.GetData="DdaGetBindingData",t.AddRowsColumns="DdaAddRowsColumns",t.SetData="DdaSetBindingData",t.ClearFormats="DdaClearBindingFormats",t.SetFormats="DdaSetBindingFormats",t.SettingsRequest="DdaSettingsMethod",t.BindingEventSource="ddaBinding",t.ArrayData="ArrayData",e.executeAsync=function(r){r.hostCallArgs||(r.hostCallArgs={}),r.hostCallArgs.DdaMethod={ControlId:a._OfficeAppFactory.getId(),Version:a.WACDelegate.version,DispatchId:r.dispId},r.hostCallArgs.__timeout__=-1,r.onCalling&&r.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().invoke("executeMethod",function(e,t){var n;if(r.onReceiving&&r.onReceiving(),0==e)a.WACDelegate.version=t.Version,n=t.Error;else switch(e){case-5:n=7e3;break;default:n=5001}r.onComplete&&r.onComplete(n,t)},r.hostCallArgs)},e.getOnAfterRegisterEvent=n,e.registerEventAsync=function(t){t.onCalling&&t.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().registerForEvent(a.OUtil.getXdmEventName(t.targetId,t.eventType),function(e){t.onEvent&&t.onEvent(e),a.AppTelemetry&&a.AppTelemetry.onEventDone(t.dispId)},n(!0,t),{controlId:a._OfficeAppFactory.getId(),eventDispId:t.dispId,targetId:t.targetId})},e.unregisterEventAsync=function(e){e.onCalling&&e.onCalling(),a.getClientEndPoint()&&a.getClientEndPoint().unregisterForEvent(a.OUtil.getXdmEventName(e.targetId,e.eventType),n(!1,e),{controlId:a._OfficeAppFactory.getId(),eventDispId:e.dispId,targetId:e.targetId})}}(OSF=OSF||{}),function(t){var n,e=(n=t.SpecialProcessor,__extends(r,n),r);function r(){var e=[t.WACDelegate.UniqueArguments.SingleBindingResponse,t.WACDelegate.UniqueArguments.BindingRequest,t.WACDelegate.UniqueArguments.BindingResponse,t.WACDelegate.UniqueArguments.GetData,t.WACDelegate.UniqueArguments.AddRowsColumns,t.WACDelegate.UniqueArguments.SetData,t.WACDelegate.UniqueArguments.ClearFormats,t.WACDelegate.UniqueArguments.SetFormats,t.WACDelegate.UniqueArguments.SettingsRequest,t.WACDelegate.UniqueArguments.BindingEventSource];return n.call(this,e,{})||this}t.WebSpecialProcessor=e}(OSF=OSF||{});__extends=this&&this.__extends||function(){var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();!function(e){var t,n,r;t=e.context||(e.context={}),n=t.document||(t.document={}),(r=n.bindings||(n.bindings={}))._eventDispatches=[],r.addFromSelectionAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromSelectionAsync,arguments,this,void 0)},r.addFromNamedItemAsync=function(e,t,n,r){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromNamedItemAsync,arguments,this,void 0)},r.addFromPromptAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.AddFromPromptAsync,arguments,this,void 0)},r.getAllAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetAllAsync,arguments,this,void 0)},r.getByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetByIdAsync,arguments,this,void 0)},r.releaseByIdAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseByIdAsync,arguments,this,void 0)}}(Office=Office||{}),function(s){var e,t,n,r,i,o,a;function c(e){return s.manufactureBinding(e,Office.context.document)}function l(e){return e.id}function u(e,t,n){var r=e[s.ParameterNames.Data];return s.TableDataProperties&&r&&(null!=r[s.TableDataProperties.TableRows]||null!=r[s.TableDataProperties.TableHeaders])&&(r=Office.manufactureTableData(r)),null==(r=s.DataCoercion.coerceData(r,n[s.ParameterNames.CoercionType]))?null:r}(e=s.BindingProperties||(s.BindingProperties={})).Id="BindingId",e.Type="bindingType",e.RowCount="RowCount",e.ColumnCount="BindingColumnCount",e.HasHeaders="HasHeaders",(s.ListDescriptors||(s.ListDescriptors={})).BindingList="BindingList",s.ListType.setListType(s.ListDescriptors.BindingList,s.PropertyDescriptors.BindingProperties),(s.EventDescriptors||(s.EventDescriptors={})).BindingSelectionChangedEvent="BindingSelectionChangedEvent",t=s.Marshaling||(s.Marshaling={}),(n=t.BindingParameterKeys||(t.BindingParameterKeys={})).Id="BindingId",n.BindingType="BindingType",n.ItemName="ItemName",n.StartRow="StartRow",n.StartCol="StartCol",n.RowCount="RowCount",n.ColCount="ColCount",(r=t.TableBindingParameterKeys||(t.TableBindingParameterKeys={})).TableHeaders="TableHeaders",r.TableRows="TableRows",(i=t.AppBindingKeys||(t.AppBindingKeys={})).BindingId="Name",i.BindingType="BindingType",i[i.BindingProperties=0]="BindingProperties",i.BindingEventSource="ddaBinding",i.RowCount="RowCount",i.ColumnCount="ColCount",i.HasHeaders="HasHeaders",(o=t.TableSubsetKeys||(t.TableSubsetKeys={})).TableSubset="subset",o.StartRow="startRow",o.StartColumn="startColumn",o.RowCount="rowCount",o.ColumnCount="columnCount",(a=t.BindingType||(t.BindingType={}))[a.Table=1]="Table",a[a.Text=2]="Text",a[a.Matrix=3]="Matrix",s.Bindings||(s.Bindings={}),s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){s.AsyncMethodCalls.define({method:s.AsyncMethods.AddFromPromptAsync,requiredArguments:[{name:s.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:s.ParameterNames.Id,value:{types:["string"],calculate:D}},{name:s.ParameterNames.PromptText,value:{types:["string"],calculate:function(){return""}}},{name:s.ParameterNames.SampleData,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:function(e){return s.manufactureBinding(e,Office.context.document)}}),s.AsyncMethodCalls.define({method:s.AsyncMethods.AddFromSelectionAsync,requiredArguments:[{name:s.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:s.ParameterNames.Id,value:{types:["string"],calculate:D}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:c}),s.AsyncMethodCalls.define({method:s.AsyncMethods.AddFromNamedItemAsync,requiredArguments:[{name:s.ParameterNames.ItemName,types:["string"]},{name:s.ParameterNames.BindingType,enum:Office.BindingType}],supportedOptions:[{name:s.ParameterNames.Id,value:{types:["string"],calculate:D}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[{name:s.ParameterNames.FailOnCollision,value:function(){return!0}}],onSucceeded:c}),s.AsyncMethodCalls.define({method:s.AsyncMethods.GetAllAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(e){return e[s.ListDescriptors.BindingList].map(c)}}),s.AsyncMethodCalls.define({method:s.AsyncMethods.GetByIdAsync,requiredArguments:[{name:s.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:c}),s.AsyncMethodCalls.define({method:s.AsyncMethods.ReleaseByIdAsync,requiredArguments:[{name:s.ParameterNames.Id,types:["string"]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(e,t,n){var r=n[s.ParameterNames.Id];delete t._eventDispatches[r]}}),s.AsyncMethodCalls.define({method:s.AsyncMethods.GetDataAsync,requiredArguments:[],supportedOptions:[{name:s.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(e,t){return s.DataCoercion.getCoercionDefaultForBinding(t.type)}}},{name:s.ParameterNames.ValueFormat,value:{enum:Office.ValueFormat,defaultValue:Office.ValueFormat.Unformatted}},{name:s.ParameterNames.FilterType,value:{enum:Office.FilterType,defaultValue:Office.FilterType.All}},{name:s.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:s.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.RowCount,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.ColumnCount,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(e,t,n){if(0==e[s.ParameterNames.StartRow]&&0==e[s.ParameterNames.StartColumn]&&0==e[s.ParameterNames.RowCount]&&0==e[s.ParameterNames.ColumnCount]&&(delete e[s.ParameterNames.StartRow],delete e[s.ParameterNames.StartColumn],delete e[s.ParameterNames.RowCount],delete e[s.ParameterNames.ColumnCount]),e[s.ParameterNames.CoercionType]!=s.DataCoercion.getCoercionDefaultForBinding(t.type)&&(e[s.ParameterNames.StartRow]||e[s.ParameterNames.StartColumn]||e[s.ParameterNames.RowCount]||e[s.ParameterNames.ColumnCount]))throw 1002;return e},privateStateCallbacks:[{name:s.ParameterNames.Id,value:l}],onSucceeded:u}),s.AsyncMethodCalls.define({method:s.AsyncMethods.SetDataAsync,requiredArguments:[{name:s.ParameterNames.Data,types:["string","object","number","boolean"]}],supportedOptions:[{name:s.ParameterNames.CoercionType,value:{enum:Office.CoercionType,calculate:function(e){return s.DataCoercion.determineCoercionType(e[s.ParameterNames.Data])}}},{name:s.ParameterNames.Rows,value:{types:["object","string"],defaultValue:null}},{name:s.ParameterNames.Columns,value:{types:["object"],defaultValue:null}},{name:s.ParameterNames.StartRow,value:{types:["number"],defaultValue:0}},{name:s.ParameterNames.StartColumn,value:{types:["number"],defaultValue:0}}],checkCallArgs:function(e,t,n){if(0==e[s.ParameterNames.StartRow]&&0==e[s.ParameterNames.StartColumn]&&(delete e[s.ParameterNames.StartRow],delete e[s.ParameterNames.StartColumn]),e[s.ParameterNames.CoercionType]!=s.DataCoercion.getCoercionDefaultForBinding(t.type)&&(e[s.ParameterNames.StartRow]||e[s.ParameterNames.StartColumn]))throw 1002;return e},privateStateCallbacks:[{name:s.ParameterNames.Id,value:l}]})},defineSafeArrayParameterMapFunc:function(){s.HostParameterMap.define({type:"bindingSpecificData",fromHost:[{name:s.BindingProperties.RowCount,value:0},{name:s.BindingProperties.ColumnCount,value:1},{name:s.BindingProperties.HasHeaders,value:2}],isComplexType:!0}),s.HostParameterMap.define({type:s.PropertyDescriptors.Subset,toHost:[{name:"offset",value:0},{name:"run",value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:"offset",toHost:[{name:s.ParameterNames.StartRow,value:0},{name:s.ParameterNames.StartColumn,value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:"run",toHost:[{name:s.ParameterNames.RowCount,value:0},{name:s.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:"run",toHost:[{name:s.ParameterNames.RowCount,value:0},{name:s.ParameterNames.ColumnCount,value:1}],canonical:!0,isComplexType:!0}),s.HostParameterMap.define({type:79,toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.Data,value:1}]}),s.HostParameterMap.define({type:73,toHost:[{name:s.ParameterNames.Id,value:0}]}),s.HostParameterMap.define({type:s.PropertyDescriptors.BindingProperties,fromHost:[{name:s.BindingProperties.Id,value:0},{name:s.BindingProperties.Type,value:1},{name:"bindingSpecificData",value:2}],isComplexType:!0}),s.HostParameterMap.define({type:s.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:0},{name:Office.BindingType.Matrix,value:1},{name:Office.BindingType.Table,value:2}],invertible:!0}),s.HostParameterMap.define({type:66,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.BindingType,value:1}]}),s.HostParameterMap.define({type:78,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.ItemName,value:0},{name:s.ParameterNames.Id,value:1},{name:s.ParameterNames.BindingType,value:2},{name:s.ParameterNames.FailOnCollision,value:3}]}),s.HostParameterMap.define({type:67,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.BindingType,value:1},{name:s.ParameterNames.PromptText,value:2}]}),s.HostParameterMap.define({type:69,toHost:[{name:s.ParameterNames.Id,value:0}]}),s.HostParameterMap.define({type:68,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0}]}),s.HostParameterMap.define({type:74,fromHost:[{name:s.ListDescriptors.BindingList,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:70,fromHost:[{name:s.ParameterNames.Data,value:s.HostParameterMap.self}],toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.CoercionType,value:1},{name:s.ParameterNames.ValueFormat,value:2},{name:s.ParameterNames.FilterType,value:3},{name:s.PropertyDescriptors.Subset,value:4}]}),s.HostParameterMap.define({type:71,toHost:[{name:s.ParameterNames.Id,value:0},{name:s.ParameterNames.CoercionType,value:1},{name:s.ParameterNames.Data,value:2},{name:"offset",value:3}]})},defineWebParameterMapFunc:function(){s.HostParameterMap.define({type:72,toHost:[{name:s.WACDelegate.UniqueArguments.AddRowsColumns,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:79,toHost:[{name:s.WACDelegate.UniqueArguments.AddRowsColumns,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:73,toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:s.WACDelegate.UniqueArguments.AddRowsColumns,toHost:[{name:s.ParameterNames.Id,value:"BindingId"},{name:s.ParameterNames.Data,value:s.WACDelegate.UniqueArguments.Data}]}),s.HostParameterMap.define({type:s.PropertyDescriptors.Subset,fromHost:[{name:s.ParameterNames.StartRow,value:"StartRow"},{name:s.ParameterNames.StartColumn,value:"StartCol"},{name:s.ParameterNames.RowCount,value:"RowCount"},{name:s.ParameterNames.ColumnCount,value:"ColCount"}]}),s.HostParameterMap.define({type:s.WACDelegate.UniqueArguments.BindingRequest,toHost:[{name:s.ParameterNames.ItemName,value:"ItemName"},{name:s.ParameterNames.Id,value:"BindingId"},{name:s.ParameterNames.BindingType,value:"BindingType"},{name:s.ParameterNames.PromptText,value:"PromptText"},{name:s.ParameterNames.Columns,value:"Columns"},{name:s.ParameterNames.SampleData,value:"SampleData"},{name:s.ParameterNames.FailOnCollision,value:"FailOnCollision"}]}),s.HostParameterMap.addComplexType(s.PropertyDescriptors.BindingProperties),s.HostParameterMap.define({type:s.ParameterNames.BindingType,toHost:[{name:Office.BindingType.Text,value:2},{name:Office.BindingType.Matrix,value:3},{name:Office.BindingType.Table,value:1}],invertible:!0}),s.HostParameterMap.define({type:s.PropertyDescriptors.BindingProperties,fromHost:[{name:s.BindingProperties.Id,value:"Name"},{name:s.BindingProperties.Type,value:"BindingType"},{name:s.BindingProperties.RowCount,value:"RowCount"},{name:s.BindingProperties.ColumnCount,value:"ColCount"},{name:s.BindingProperties.HasHeaders,value:"HasHeaders"}]}),s.HostParameterMap.define({type:s.WACDelegate.UniqueArguments.SingleBindingResponse,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:0}]}),s.HostParameterMap.define({type:66,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:67,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:78,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:69,toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:68,fromHost:[{name:s.WACDelegate.UniqueArguments.SingleBindingResponse,value:s.WACDelegate.UniqueArguments.BindingResponse}],toHost:[{name:s.WACDelegate.UniqueArguments.BindingRequest,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:74,fromHost:[{name:s.ListDescriptors.BindingList,value:s.WACDelegate.UniqueArguments.BindingResponse}]}),s.HostParameterMap.define({type:70,fromHost:[{name:s.ParameterNames.Data,value:s.WACDelegate.UniqueArguments.Data}],toHost:[{name:s.WACDelegate.UniqueArguments.GetData,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:71,toHost:[{name:s.WACDelegate.UniqueArguments.SetData,value:s.HostParameterMap.self}]})},initializeFunc:function(){s.manufactureBinding=function(e,t){var n,r=e[s.BindingProperties.Id],i=e[s.BindingProperties.RowCount],o=e[s.BindingProperties.ColumnCount],a=e[s.BindingProperties.HasHeaders];switch(e[s.BindingProperties.Type]){case Office.BindingType.Text:n=new s.TextBinding(r,t);break;case Office.BindingType.Matrix:n=null,n=new s.MatrixBinding(r,t,i,o);break;case Office.BindingType.Table:n=new(s._OfficeAppFactory.getHostInfo().hostType==s.HostInfoHostType.excel&&Office.context.document&&s.ExcelTableBinding?s.ExcelTableBinding:s.TableBinding)(r,t,i,o,a);break;default:n=new s.UnknownBinding(r,t)}return n}}}),s.BindingEvents||(s.BindingEvents={}),s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}],isComplexType:!0}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource},{name:s.PropertyDescriptors.Subset,value:s.PropertyDescriptors.Subset}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource}]})}});var p=(Object.defineProperty(f.prototype,"onFail",{get:function(){return this.m_errorCallback},set:function(e){var t=typeof e;if("undefined"!=t&&"function"!=t)throw s.ErrorNames.CallbackNotFunction;this.m_errorCallback=e},enumerable:!0,configurable:!0}),f.prototype._fetch=function(t){if(this.m_binding)t&&t(this.m_binding);else if(!this.m_binding){var n=this;Office.context.document.bindings.getByIdAsync(this.m_id,function(e){e.status==Office.AsyncResultStatus.Succeeded?(s.OUtil.defineEnumerableProperty(n,"binding",{value:e.value}),t&&t(n.m_binding)):n.onFail&&n.onFail(e)})}return this},f.prototype.getDataAsync=function(){var t=arguments;return this._fetch(function(e){e.getDataAsync.apply(e,t)}),this},f.prototype.setDataAsync=function(){var t=arguments;return this._fetch(function(e){e.setDataAsync.apply(e,t)}),this},f.prototype.addHandlerAsync=function(){var t=arguments;return this._fetch(function(e){e.addHandlerAsync.apply(e,t)}),this},f.prototype.removeHandlerAsync=function(){var t=arguments;return this._fetch(function(e){e.removeHandlerAsync.apply(e,t)}),this},f.prototype.setTableOptionsAsync=function(){var t=arguments;return this._fetch(function(e){e.setTableOptionsAsync.apply(e,t)}),this},f.prototype.setFormatsAsync=function(){var t=arguments;return this._fetch(function(e){e.setFormatsAsync.apply(e,t)}),this},f.prototype.clearFormatsAsync=function(){var t=arguments;return this._fetch(function(e){e.clearFormatsAsync.apply(e,t)}),this},f);function f(e){this.m_id=e}s.BindingPromise=p;var d=(Object.defineProperty(h.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),h);function h(e,t){this.m_id=e,this.m_docInstance=t}s.UnknownBinding=d;var g=(y.prototype.getDataAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.GetDataAsync,arguments,this,void 0)},y.prototype.setDataAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetDataAsync,arguments,this,void 0)},Object.defineProperty(y.prototype,"document",{get:function(){return this.m_docInstance},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),y);function y(e,t){this.m_id=e,this.m_docInstance=t;var n=s.EventType,r=t.bindings._eventDispatches;r[e]||(r[e]=new s.EventDispatch([n.BindingSelectionChanged,n.BindingDataChanged]));var i=r[e];s.DispIdHost.addEventSupport(this,i)}s.Binding=g;var m,_=(m=s.Binding,__extends(b,m),Object.defineProperty(b.prototype,"type",{get:function(){return Office.BindingType.Matrix},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),b);function b(e,t,n,r){var i=m.call(this,e,t)||this;return i.m_rows=n,i.m_cols=r,i}s.MatrixBinding=_;var v,O=(v=s.Binding,__extends(P,v),Object.defineProperty(P.prototype,"type",{get:function(){return Office.BindingType.Table},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"rowCount",{get:function(){return this.m_rows?this.m_rows:0},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"columnCount",{get:function(){return this.m_cols?this.m_cols:0},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"hasHeaders",{get:function(){return!!this.m_hasHeaders&&this.m_hasHeaders},enumerable:!0,configurable:!0}),P.prototype.addRowsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.AddRowsAsync,arguments,this,void 0)},P.prototype.addColumnsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.AddColumnsAsync,arguments,this,void 0)},P.prototype.deleteAllDataValuesAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.DeleteAllDataValuesAsync,arguments,this,void 0)},P);function P(e,t,n,r,i){var o=v.call(this,e,t)||this;return o.m_rows=n,o.m_cols=r,o.m_hasHeaders=i,o}s.TableBinding=O;var C,R=(C=s.TableBinding,__extends(S,C),S.prototype.clearFormatsAsync=function(e,t){s.DispIdHost.InvokeMethod(s.AsyncMethods.ClearFormatsAsync,arguments,this,void 0)},S.prototype.setTableOptionsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetTableOptionsAsync,arguments,this,void 0)},S.prototype.setFormatsAsync=function(e,t,n){s.DispIdHost.InvokeMethod(s.AsyncMethods.SetFormatsAsync,arguments,this,void 0)},S);function S(e,t,n,r,i){var o=C.call(this,e,t,n,r,i)||this;return s.OUtil.finalizeProperties(o),o}function I(e){return e.id}s.ExcelTableBinding=R,s.TableBindingMethods||(s.TableBindingMethods={}),s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){s.AsyncMethodCalls.define({method:s.AsyncMethods.AddRowsAsync,requiredArguments:[{name:s.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:I}]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.AddColumnsAsync,requiredArguments:[{name:s.ParameterNames.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:I}]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:s.ParameterNames.Id,value:I}]})}});var A,T=(A=s.Binding,__extends(N,A),Object.defineProperty(N.prototype,"type",{get:function(){return Office.BindingType.Text},enumerable:!0,configurable:!0}),N);function N(e,t){return A.call(this,e,t)||this}function D(){return"UnnamedBinding_"+s.OUtil.getUniqueId()+"_"+(new Date).getTime()}s.TextBinding=T,s.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){s.AsyncMethodCalls.define({method:s.AsyncMethods.BindingSelectionChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),s.AsyncMethodCalls.define({method:s.AsyncMethods.BindingDataChanged,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:0},{name:s.PropertyDescriptors.Subset,value:1}],isComplexType:!0}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}],isComplexType:!0}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){s.HostParameterMap.define({type:s.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource},{name:s.PropertyDescriptors.Subset,value:s.PropertyDescriptors.Subset}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:s.EventDescriptors.BindingSelectionChangedEvent,value:s.HostParameterMap.self}]}),s.HostParameterMap.define({type:s.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:s.PropertyDescriptors.BindingProperties,value:s.WACDelegate.UniqueArguments.BindingEventSource}]})}})}(OSF=OSF||{}),function(e){var t,n,r;t=e.context||(e.context={}),n=t.document||(t.document={}),(r=n.customXmlParts||(n.customXmlParts={}))._eventDispatches=[],r.addAsync=function(e,t,n){"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){var t={id:e[0],DataPartBuiltIn:e[1]};return OSF.processDataPart(t)},toWebHost:function(){return{xml:e}},fromWebHost:function(e){var t={id:e.DataPartProperties.id,DataPartBuiltIn:e.DataPartProperties.DataPartBuiltIn};return OSF.processDataPart(t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(128,r,n,null!=t?t.asyncContext:void 0)},r.getByIdAsync=function(e,t,n){"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){var t={id:e[0],DataPartBuiltIn:e[1]};return OSF.processDataPart(t)},toWebHost:function(){return{id:e}},fromWebHost:function(e){var t={id:e.DataPartProperties.id,DataPartBuiltIn:e.DataPartProperties.DataPartBuiltIn};return OSF.processDataPart(t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(129,r,n,null!=t?t.asyncContext:void 0)},r.getByNamespaceAsync=function(e,t,n){"function"==typeof t&&(n=t);var r={toSafeArrayHost:function(){return[e]},fromSafeArrayHost:function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r={id:e[n][0],DataPartBuiltIn:e[n][1]},i=OSF.processDataPart(r);t.push(i)}return t},toWebHost:function(){return{namespace:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataPartList.length;n++){var r={id:e.DataPartList[n].id,DataPartBuiltIn:e.DataPartList[n].DataPartBuiltIn},i=OSF.processDataPart(r);t.push(i)}return t}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(130,r,n,null!=t?t.asyncContext:void 0)}}(Office=Office||{}),function(a){var e,t,n;(e=a.DataPartProperties||(a.DataPartProperties={})).Id="id",e.BuiltIn="DataPartBuiltIn",(t=a.DataNodeProperties||(a.DataNodeProperties={})).Handle="DataNodeHandle",t.BaseName="DataNodeBaseName",t.NamespaceUri="DataNodeNamespaceUri",t.NodeType="DataNodeType",(n=a.ListDescriptors||(a.ListDescriptors={})).DataPartList="DataPartList",n.DataNodeList="DataNodeList",a.ListType.setListType(a.ListDescriptors.DataPartList,a.PropertyDescriptors.DataPartProperties),a.ListType.setListType(a.ListDescriptors.DataNodeList,a.PropertyDescriptors.DataPartProperties);var r=(Object.defineProperty(i.prototype,"builtIn",{get:function(){return this.m_builtIn},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"namespaceManager",{get:function(){return new o(this.m_id)},enumerable:!0,configurable:!0}),i.prototype.deleteAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[null==n.m_id?void 0:n.m_id]},fromSafeArrayHost:function(e){},toWebHost:function(){return{id:null==n.m_id?void 0:n.m_id}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(133,r,t,null!=e?e.asyncContext:void 0)},i.prototype.getNodesAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[null==r.m_id?void 0:r.m_id,e]},fromSafeArrayHost:function(e){for(var t=[],n=0;n<e.length;n++){var r={DataNodeHandle:e[n][0],DataNodeBaseName:e[n][1],DataNodeNamespaceUri:e[n][2],DataNodeType:e[n][3]},i=a.processDataNode(r);t.push(i)}return t},toWebHost:function(){return{id:null==r.m_id?void 0:r.m_id,xpath:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataNodeList.length;n++){var r={DataNodeHandle:e.DataNodeList[n].DataNodeHandle,DataNodeBaseName:e.DataNodeList[n].DataNodeBaseName,DataNodeNamespaceUri:e.DataNodeList[n].DataNodeNamespaceUri,DataNodeType:e.DataNodeList[n].DataNodeType},i=a.processDataNode(r);t.push(i)}return t}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(132,i,n,null!=t?t.asyncContext:void 0)},i.prototype.getXmlAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[null==n.m_id?void 0:n.m_id]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==n.m_id?void 0:n.m_id}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(131,r,t,null!=e?e.asyncContext:void 0)},i);function i(e,t,n){this.m_customXmlParts=e,this.m_id=t,this.m_builtIn=n;var r=e._eventDispatches,i=r[t];if(!i){var o=a.EventType;i=new a.EventDispatch([o.DataNodeDeleted,o.DataNodeInserted,o.DataNodeReplaced]),r[t]=i}a.DispIdHost.addEventSupport(this,i)}a.CustomXmlPart=r;var o=(s.prototype.addNamespaceAsync=function(e,t,n,r){var i=this;"function"==typeof n&&(r=n);var o={toSafeArrayHost:function(){return[null==i.m_partId?void 0:i.m_partId,e,t]},fromSafeArrayHost:function(e){},toWebHost:function(){return{id:null==i.m_partId?void 0:i.m_partId,prefix:e,namespace:t}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(139,o,r,null!=n?n.asyncContext:void 0)},s.prototype.getNamespaceAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[null==r.m_partId?void 0:r.m_partId,e]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==r.m_partId?void 0:r.m_partId,prefix:e}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(140,i,n,null!=t?t.asyncContext:void 0)},s.prototype.getPrefixAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[null==r.m_partId?void 0:r.m_partId,e]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{id:null==r.m_partId?void 0:r.m_partId,namespace:e}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(141,i,n,null!=t?t.asyncContext:void 0)},s);function s(e){this.m_partId=e}a.CustomXmlPrefixMappings=o;var c,l,u,p,f,d,h,g=(Object.defineProperty(y.prototype,"baseName",{get:function(){return this.m_baseName},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"namespaceUri",{get:function(){return this.m_ns},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"nodeType",{get:function(){return this.m_nodeType},enumerable:!0,configurable:!0}),y.prototype.getNodesAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){for(var t=[],n=0;n<e.length;n++){var r={DataNodeBaseName:e[n][2],DataNodeNamespaceUri:e[n][3],DataNodeType:e[n][4]},i=a.processDataNode(r);t.push(i)}return t},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),xpath:e}},fromWebHost:function(e){for(var t=[],n=0;n<e.DataNodeList.length;n++){var r={DataNodeHandle:e.DataNodeList[n].DataNodeHandle,DataNodeBaseName:e.DataNodeList[n].DataNodeBaseName,DataNodeNamespaceUri:e.DataNodeList[n].DataNodeNamespaceUri,DataNodeType:e.DataNodeList[n].DataNodeType},i=a.processDataNode(r);t.push(i)}return t}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(136,i,n,null!=t?t.asyncContext:void 0)},y.prototype.getNodeValueAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[m(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:m(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(134,r,t,null!=e?e.asyncContext:void 0)},y.prototype.setNodeValueAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),Data:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(137,i,n,null!=t?t.asyncContext:void 0)},y.prototype.getXmlAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[m(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:m(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(135,r,t,null!=e?e.asyncContext:void 0)},y.prototype.setXmlAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),xml:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(138,i,n,null!=t?t.asyncContext:void 0)},y.prototype.getTextAsync=function(e,t){var n=this;"function"==typeof e&&(t=e);var r={toSafeArrayHost:function(){return[m(n,n.m_handle)]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DataNodeHandle:m(n,n.m_handle)}},fromWebHost:function(e){return{data:e.Data}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(142,r,t,null!=e?e.asyncContext:void 0)},y.prototype.setTextAsync=function(e,t,n){var r=this;"function"==typeof t&&(n=t);var i={toSafeArrayHost:function(){return[m(r,r.m_handle),e]},fromSafeArrayHost:function(e){},toWebHost:function(){return{DataNodeHandle:m(r,r.m_handle),undefined:e}},fromWebHost:function(e){return{}}};a._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(143,i,n,null!=t?t.asyncContext:void 0)},y);function y(e,t,n,r){this.m_handle=e,this.m_nodeType=t,this.m_ns=n,this.m_baseName=r}function m(e,t){return t}a.CustomXmlNode=g,a.manufactureDataNode=function(e){if(e)return new a.CustomXmlNode(e[a.DataNodeProperties.Handle],e[a.DataNodeProperties.NodeType],e[a.DataNodeProperties.NamespaceUri],e[a.DataNodeProperties.BaseName])},a.manufactureDataPart=function(e,t){return new a.CustomXmlPart(t,e[a.DataPartProperties.Id],e[a.DataPartProperties.BuiltIn])},c=a.Marshaling||(a.Marshaling={}),l=c.Customxml||(c.Customxml={}),(u=l.CustomXmlPartsKeys||(l.CustomXmlPartsKeys={})).Id="id",u.Namespace="namespace",u.Xml="xml",u.XPath="xpath",u.Prefix="prefix",(p=l.DataPartProperties||(l.DataPartProperties={})).Id="id",p.BuiltIn="DataPartBuiltIn",(f=l.PropertyDescriptors||(l.PropertyDescriptors={})).DataPartProperties="DataPartProperties",f.DataNodeProperties="DataNodeProperties",(d=l.DataNodeProperties||(l.DataNodeProperties={})).Handle="DataNodeHandle",d.BaseName="DataNodeBaseName",d.NamespaceUri="DataNodeNamespaceUri",d.NodeType="DataNodeType",(h=l.ListDescriptors||(l.ListDescriptors={})).DataPartList="DataPartList",h.DataNodeList="DataNodeList",a.CustomXml||(a.CustomXml={}),a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){a.HostParameterMap.define({type:a.EventDescriptors.DataNodeInsertedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:0},{name:a.DataNodeEventProperties.NewNode,value:1}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeReplacedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:0},{name:a.DataNodeEventProperties.OldNode,value:1},{name:a.DataNodeEventProperties.NewNode,value:2}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeDeletedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:0},{name:a.DataNodeEventProperties.OldNode,value:1},{name:a.DataNodeEventProperties.NextSiblingNode,value:2}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.OldNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NewNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NextSiblingNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeAddedEvent,fromHost:[{name:a.EventDescriptors.DataNodeInsertedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeReplacedEvent,fromHost:[{name:a.EventDescriptors.DataNodeReplacedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeDeletedEvent,fromHost:[{name:a.EventDescriptors.DataNodeDeletedEvent,value:a.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){a.HostParameterMap.define({type:a.EventDescriptors.DataNodeInsertedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:a.Marshaling.Customxml.DataNodeEventProperties.InUndoRedo},{name:a.DataNodeEventProperties.NewNode,value:a.Marshaling.Customxml.DataNodeEventProperties.NewNode}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeReplacedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:a.Marshaling.Customxml.DataNodeEventProperties.InUndoRedo},{name:a.DataNodeEventProperties.OldNode,value:a.Marshaling.Customxml.DataNodeEventProperties.OldNode},{name:a.DataNodeEventProperties.NewNode,value:a.Marshaling.Customxml.DataNodeEventProperties.NewNode}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDescriptors.DataNodeDeletedEvent,fromHost:[{name:a.DataNodeEventProperties.InUndoRedo,value:a.Marshaling.Customxml.DataNodeEventProperties.InUndoRedo},{name:a.DataNodeEventProperties.OldNode,value:a.Marshaling.Customxml.DataNodeEventProperties.OldNode},{name:a.DataNodeEventProperties.NextSiblingNode,value:a.Marshaling.Customxml.DataNodeEventProperties.NextSiblingNode}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.OldNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NewNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DataNodeEventProperties.NextSiblingNode,fromHost:[{name:a.PropertyDescriptors.DataNodeProperties,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeAddedEvent,fromHost:[{name:a.EventDescriptors.DataNodeInsertedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeReplacedEvent,fromHost:[{name:a.EventDescriptors.DataNodeReplacedEvent,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.EventDispId.dispidDataNodeDeletedEvent,fromHost:[{name:a.EventDescriptors.DataNodeDeletedEvent,value:a.HostParameterMap.self}]})}}),a.processDataPart=function(e){return a.manufactureDataPart(e,Office.context.document.customXmlParts)},a.processDataNode=function(e){return a.manufactureDataNode(e)}}(OSF=OSF||{}),function(i){var e;function r(e){if(null==e||null==e)return null;var t=null,n=typeof e;return void 0!==e.rows?t=Office.CoercionType.Table:i.OUtil.isArray(e)?t=Office.CoercionType.Matrix:"string"!=n&&"number"!=n&&"boolean"!=n&&!i.OUtil.isDate(e)||(t=Office.CoercionType.Text),t}function o(e,t,n){return(n=n||r(e))&&n!=t&&(e=function(e,t){var n;switch(e){case Office.CoercionType.Table:n=t;break;case Office.CoercionType.Matrix:n=function(e){var t=e.rows;null!=e.headers&&t.unshift(e.headers);return t}(t);break;case Office.CoercionType.SlideRange:i.manufactureSlideRange&&null==(n=i.manufactureSlideRange(s(t)))&&(n=s(t));break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:n=s(t)}return n}(t,function(e,t){null==t&&(t=r(e));var n;switch(t){case Office.CoercionType.Table:n=e;break;case Office.CoercionType.Matrix:n=new Office.TableData(e);break;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:n=new Office.TableData(function(e){for(var t=e.split("\n"),n=0;n<t.length;n++)t[n]=t[n].split("\t");return t}(e))}return n}(e,n))),e}function a(e){if(1==e.length&&1==e[0].length)return""+e[0][0];for(var t="",n=0;n<e.length;n++)t+=e[n].join("\t")+"\n";return t.substring(0,t.length-1)}function s(e){var t="";null!=e.headers&&(t=a([e.headers])+"\n");var n=a(e.rows);return""==n&&(t=t.substring(0,t.length-1)),t+n}e=i.DataCoercion||(i.DataCoercion={}),i.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7}]});var e=i._OfficeAppFactory.getHostInfo();e.hostPlatform!=i.HostInfoPlatform.win32&&e.hostPlatform!=i.HostInfoPlatform.mac&&e.hostPlatform!=i.HostInfoPlatform.ios&&e.hostPlatform!=i.HostInfoPlatform.android||(i.OUtil.augmentList(Office.CoercionType,{Image:"image"}),i.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:"image",value:8},{name:"xmlSvg",value:9}]}));i.HostParameterMap.define({type:i.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),i.HostParameterMap.define({type:i.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})},defineWebParameterMapFunc:function(){i.OUtil.augmentList(Office.CoercionType,{Image:"image"}),i.OUtil.augmentList(Office.CoercionType,{XmlSvg:"xmlSvg"}),i.HostParameterMap.define({type:i.ParameterNames.CoercionType,toHost:[{name:Office.CoercionType.Text,value:0},{name:Office.CoercionType.Matrix,value:1},{name:Office.CoercionType.Table,value:2},{name:Office.CoercionType.Html,value:3},{name:Office.CoercionType.Ooxml,value:4},{name:Office.CoercionType.OoxmlPackage,value:5},{name:Office.CoercionType.PdfFile,value:6},{name:Office.CoercionType.SlideRange,value:7},{name:"image",value:8},{name:"xmlSvg",value:9}]}),i.HostParameterMap.define({type:i.ParameterNames.ValueFormat,toHost:[{name:Office.ValueFormat.Unformatted,value:0},{name:Office.ValueFormat.Formatted,value:1}]}),i.HostParameterMap.define({type:i.ParameterNames.FilterType,toHost:[{name:Office.FilterType.All,value:0}]})}}),e.findArrayDimensionality=function e(t){if(i.OUtil.isArray(t)){for(var n=0,r=0;r<t.length;r++)n=Math.max(n,e(t[r]));return n+1}return 0},e.getCoercionDefaultForBinding=function(e){switch(e){case Office.BindingType.Matrix:return Office.CoercionType.Matrix;case Office.BindingType.Table:return Office.CoercionType.Table;case Office.BindingType.Text:default:return Office.CoercionType.Text}},e.getBindingDefaultForCoercion=function(e){switch(e){case Office.CoercionType.Matrix:return Office.BindingType.Matrix;case Office.CoercionType.Table:return Office.BindingType.Table;case Office.CoercionType.Text:case Office.CoercionType.Html:case Office.CoercionType.Ooxml:default:return Office.BindingType.Text}},e.determineCoercionType=r,e.coerceData=o,e.serializeDynamicData=function(e){if(null!=e&&void 0!==e.rows){var t={};t[i.TableDataProperties.TableRows]=e.rows,t[i.TableDataProperties.TableHeaders]=e.headers,e=t}var n;if(i._OfficeAppFactory.getHostInfo().hostPlatform==i.HostInfoPlatform.web)return"string"!=typeof e&&void 0!==e[i.TableDataProperties.TableRows]?((n={}).Rows=e[i.TableDataProperties.TableRows],n.Headers=e[i.TableDataProperties.TableHeaders],e=n):i.DataCoercion.determineCoercionType(e)==Office.CoercionType.Text&&(e=[[e]]),e;if(i.TableDataProperties&&"string"!=typeof e&&void 0!==e[i.TableDataProperties.TableRows]){(n=[])[0]=e[i.TableDataProperties.TableRows],n[1]=e[i.TableDataProperties.TableHeaders],e=n}return e},e.deserializeDynamicData=function(e,t){var n=null;if(i._OfficeAppFactory.getHostInfo().hostPlatform==i.HostInfoPlatform.web)null!=e.Rows?((n={})[i.TableDataProperties.TableRows]=e.Rows,n[i.TableDataProperties.TableHeaders]=e.Headers):n=e,!n||null==n[i.TableDataProperties.TableRows]&&null==n[i.TableDataProperties.TableHeaders]||(n=Office.manufactureTableData(n)),n=o(n,t);else{if(2===e.length){(n={})[i.TableDataProperties.TableRows]=e[0],n[i.TableDataProperties.TableHeaders]=e[1],n=Office.manufactureTableData(n)}else n=e;n=o(n,t)}return n}}(OSF=OSF||{}),function(e){var t,n,r;((t=e.Marshaling||(e.Marshaling={})).GetDataKeys||(t.GetDataKeys={})).CoercionType="CoerceType",(n=t.SetDataKeys||(t.SetDataKeys={})).CoercionType="CoerceType",n.Data="Data",n.ImageLeft="ImageLeft",n.ImageTop="ImageTop",n.ImageWidth="ImageWidth",n.ImageHeight="ImageHeight",(r=t.CoercionTypeKeys||(t.CoercionTypeKeys={})).Html="html",r.Ooxml="ooxml",r.SlideRange="slideRange",r.Text="text",r.Table="table",r.Matrix="matrix",r.Image="image",r.XmlSvg="xmlSvg",e.DataIO||(e.DataIO={}),e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineWebParameterMapFunc:function(){e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.GetData,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.CoercionType,value:"CoerceType"},{name:e.ParameterNames.ValueFormat,value:"ValueFormat"},{name:e.ParameterNames.FilterType,value:"FilterType"},{name:e.ParameterNames.Rows,value:"Rows"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.RowCount,value:"RowCount"},{name:e.ParameterNames.ColumnCount,value:"ColCount"}]}),e.HostParameterMap.define({type:e.WACDelegate.UniqueArguments.SetData,toHost:[{name:e.ParameterNames.Id,value:"BindingId"},{name:e.ParameterNames.CoercionType,value:"CoerceType"},{name:e.ParameterNames.Data,value:e.WACDelegate.UniqueArguments.Data},{name:e.ParameterNames.Rows,value:"Rows"},{name:e.ParameterNames.Columns,value:"Columns"},{name:e.ParameterNames.StartRow,value:"StartRow"},{name:e.ParameterNames.StartColumn,value:"StartCol"},{name:e.ParameterNames.ImageLeft,value:"ImageLeft"},{name:e.ParameterNames.ImageTop,value:"ImageTop"},{name:e.ParameterNames.ImageWidth,value:"ImageWidth"},{name:e.ParameterNames.ImageHeight,value:"ImageHeight"}]})}})}(OSF=OSF||{}),function(e){var t,n,r,i,o;t=e.Marshaling||(e.Marshaling={}),(n=t.DialogMessageReceivedEventKeys||(t.DialogMessageReceivedEventKeys={})).MessageType="messageType",n.MessageContent="messageContent",n.MessageOrigin="messageOrigin",(r=t.DialogParentMessageReceivedEventKeys||(t.DialogParentMessageReceivedEventKeys={})).MessageType="messageType",r.MessageContent="messageContent",r.MessageOrigin="messageOrigin",(i=t.MessageParentKeys||(t.MessageParentKeys={})).MessageToParent="messageToParent",i.TargetOrigin="targetOrigin",(t.DialogNotificationShownEventType||(t.DialogNotificationShownEventType={})).DialogNotificationShown="dialogNotificationShown",(o=t.SendMessageKeys||(t.SendMessageKeys={})).MessageContent="messageContent",o.TargetOrigin="targetOrigin"}(OSF=OSF||{}),function(u){var e;(e=u.EventDescriptors||(u.EventDescriptors={})).DialogParentMessageReceivedEvent="DialogParentMessageReceivedEvent",e.DialogMessageReceivedEvent="DialogMessageReceivedEvent",u.DialogParentMessageEventDispatch=new u.EventDispatch([u.EventType.DialogParentMessageReceived,u.EventType.DialogParentEventReceived]),u.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){u.AsyncMethodCalls.define({method:u.AsyncMethods.DisplayDialogAsync,requiredArguments:[{name:u.ParameterNames.Url,types:["string"]}],supportedOptions:[{name:u.ParameterNames.Width,value:{types:["number"],defaultValue:99}},{name:u.ParameterNames.Height,value:{types:["number"],defaultValue:99}},{name:u.ParameterNames.RequireHTTPs,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.HideTitle,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:!1}},{name:u.ParameterNames.PromptBeforeOpen,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.EnforceAppDomain,value:{types:["boolean"],defaultValue:!0}},{name:u.ParameterNames.UrlNoHostInfo,value:{types:["boolean"],defaultValue:!1}}],privateStateCallbacks:[],onSucceeded:function(e,t,n){var r=e[u.ParameterNames.Id],i=e[u.ParameterNames.Data],o={},a=u.AsyncMethods.CloseAsync;u.OUtil.defineEnumerableProperty(o,a,{value:function(){(0,u.DispIdHost.CloseDialog)(arguments,r,i,o)}});var s=u.SyncMethods.AddMessageHandler;if(u.OUtil.defineEnumerableProperty(o,s,{value:function(){var e=u.SyncMethodCalls.get(u.SyncMethods.AddMessageHandler).verifyAndExtractCall(arguments,o,i),t=e[u.ParameterNames.EventType],n=e[u.ParameterNames.Handler];return i.addEventHandlerAndFireQueuedEvent(t,n)}}),!0===u.EnableSendMessageDialogAPI){var c=u.SyncMethods.SendMessage;u.OUtil.defineEnumerableProperty(o,c,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,i,o)}})}if(!0===u.EnableMessageChildDialogAPI){var l=u.SyncMethods.MessageChild;u.OUtil.defineEnumerableProperty(o,l,{value:function(){return(0,u.DispIdHost.SendMessage)(arguments,i,o)}})}return o},checkCallArgs:function(e,t,n){return e[u.ParameterNames.Width]<=0&&(e[u.ParameterNames.Width]=1),!e[u.ParameterNames.UseDeviceIndependentPixels]&&100<e[u.ParameterNames.Width]&&(e[u.ParameterNames.Width]=99),e[u.ParameterNames.Height]<=0&&(e[u.ParameterNames.Height]=1),!e[u.ParameterNames.UseDeviceIndependentPixels]&&100<e[u.ParameterNames.Height]&&(e[u.ParameterNames.Height]=99),e[u.ParameterNames.RequireHTTPs]||(e[u.ParameterNames.RequireHTTPs]=!0),e}}),u.AsyncMethodCalls.define({method:u.AsyncMethods.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]}),u.SyncMethodCalls.define({method:u.SyncMethods.MessageParent,requiredArguments:[{name:u.ParameterNames.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[{name:u.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}]}),u.SyncMethodCalls.define({method:u.SyncMethods.AddMessageHandler,requiredArguments:[{name:u.ParameterNames.EventType,enum:u.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:u.ParameterNames.Handler,types:["function"]}],supportedOptions:[]}),u.SyncMethodCalls.define({method:u.SyncMethods.SendMessage,requiredArguments:[{name:u.ParameterNames.MessageContent,types:["string"]}],supportedOptions:[{name:u.ParameterNames.TargetOrigin,value:{types:["string"],defaultValue:""}}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:function(){u.HostParameterMap.define({type:u.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogMessageReceivedEvent,value:u.HostParameterMap.self}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:0},{name:u.PropertyDescriptors.MessageContent,value:1},{name:u.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogParentMessageReceivedEvent,value:u.HostParameterMap.self}],isComplexType:!0}),u.HostParameterMap.define({type:u.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:0},{name:u.PropertyDescriptors.MessageContent,value:1},{name:u.PropertyDescriptors.MessageOrigin,value:2}],isComplexType:!0})},defineWebParameterMapFunc:function(){u.HostParameterMap.define({type:u.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogMessageReceivedEvent,value:u.HostParameterMap.self}]}),u.HostParameterMap.addComplexType(u.EventDescriptors.DialogMessageReceivedEvent),u.HostParameterMap.define({type:u.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageType},{name:u.PropertyDescriptors.MessageContent,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageContent},{name:u.PropertyDescriptors.MessageOrigin,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),u.HostParameterMap.define({type:u.EventDispId.dispidDialogParentMessageReceivedEvent,fromHost:[{name:u.EventDescriptors.DialogParentMessageReceivedEvent,value:u.HostParameterMap.self}]}),u.HostParameterMap.addComplexType(u.EventDescriptors.DialogParentMessageReceivedEvent),u.HostParameterMap.define({type:u.EventDescriptors.DialogParentMessageReceivedEvent,fromHost:[{name:u.PropertyDescriptors.MessageType,value:u.Marshaling.DialogParentMessageReceivedEventKeys.MessageType},{name:u.PropertyDescriptors.MessageContent,value:u.Marshaling.DialogParentMessageReceivedEventKeys.MessageContent},{name:u.PropertyDescriptors.MessageOrigin,value:u.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin}]}),u.HostParameterMap.define({type:144,toHost:[{name:u.ParameterNames.MessageToParent,value:u.Marshaling.MessageParentKeys.MessageToParent},{name:u.ParameterNames.TargetOrigin,value:u.Marshaling.MessageParentKeys.TargetOrigin}]}),u.HostParameterMap.define({type:145,toHost:[{name:u.ParameterNames.MessageContent,value:u.Marshaling.SendMessageKeys.MessageContent},{name:u.ParameterNames.TargetOrigin,value:u.Marshaling.MessageParentKeys.TargetOrigin}]})},initializeFunc:function(){var e=u.OUtil.isPopupWindow();u.EnableMessageChildDialogAPI=!0,"onenote"==u._OfficeAppFactory.getHostInfo().hostType?u.EnableSendMessageDialogAPI=!1:u.EnableSendMessageDialogAPI=!0;var t=Office.context.ui;if(u.OUtil.isDialog()){var n=u.SyncMethods.MessageParent;t[n]||u.OUtil.defineEnumerableProperty(t,n,{value:function(){return(0,u.DispIdHost.MessageParent)(arguments,t)}});var r=u.SyncMethods.AddMessageHandler;t[r]||void 0===u.DialogParentMessageEventDispatch||u.DispIdHost.addEventSupport(t,u.DialogParentMessageEventDispatch,e),e&&u.WacDialogAction.registerMessageReceivedEvent()}else{var i;i=null!=u.EventType.DialogParentMessageReceived?new u.EventDispatch([u.EventType.DialogMessageReceived,u.EventType.DialogEventReceived,u.EventType.DialogParentMessageReceived]):new u.EventDispatch([u.EventType.DialogMessageReceived,u.EventType.DialogEventReceived]);var o=u.AsyncMethods.DisplayDialogAsync;t[o]||u.OUtil.defineEnumerableProperty(t,o,{value:function(){(0,u.DispIdHost.OpenDialog)(arguments,i,t)}})}u.OUtil.finalizeProperties(t)}})}(OSF=OSF||{});var OfficeExt,Office,OSF,DialogApiManager=function(){function e(){}return e.messageChildRichApiBridge=function(){if(!0===OSF.EnableMessageChildDialogAPI)return(0,OSF.DispIdHost.SendMessage)(arguments,null,null)},e}();__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},__awaiter=this&&this.__awaiter||function(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,r)}i((c=c.apply(o,a||[])).next())})},__generator=this&&this.__generator||function(n,r){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(n,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};!function(g){var e,t,f,d,y,m,a,_,b,h,i,n,o,s,r,v,c,l,O,P;function u(e,t){var n=t.message,r=t.targetOrigin;if(r)e.postMessage(n,r);else{var i=window.location.origin;i=i||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),e.postMessage(n,i)}}function p(){try{m&&m.id==v&&_&&_(12009)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during executing displayDialogAsync callback."+e)}D()}function C(o,a){return __awaiter(this,void 0,void 0,function(){var t,n,r,i;return __generator(this,function(e){switch(e.label){case 0:return[4,g.OUtil.ensureOfficeStringsJs()];case 1:return e.sent(),t=!1,n=g.WacCommonUICssManager.getDialogCssManager(a),y=E(n),document.body.insertBefore(y,document.body.firstChild),(m=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),w(n);var r=document.createElement("div");r.style.cssText=e.getCrossZoneNotificationTextPanelCSS(),r.id=O;var i=document.createElement("a");i.id=l,i.href="#",i.innerText=Strings.OfficeOM.L_NewWindowCrossZoneConfigureBrowserLink,i.setAttribute("onclick","window.open('https://support.microsoft.com/en-us/help/17479/windows-internet-explorer-11-change-security-privacy-settings', '_blank', 'fullscreen=1')");var o=document.createElement("span");if(Strings.OfficeOM.L_NewWindowCrossZone){var a=Strings.OfficeOM.L_NewWindowCrossZone.replace(/{1+}/gm,g.OUtil.getDomainForUrl(t)).split("{0}");o.appendChild(document.createTextNode(a[0])),o.appendChild(i),o.appendChild(document.createTextNode(a[1]))}return r.appendChild(o),n.appendChild(r),n}(n,o)).id=c,r=k(n),i=A(n,Strings.OfficeOM.L_DialogOK?Strings.OfficeOM.L_DialogOK:"OK"),r.appendChild(i),m.appendChild(r),document.body.insertBefore(m,document.body.firstChild),b=!0,i.onclick=function(){D()},i.addEventListener("keydown",function(e){9==e.keyCode?(document.getElementById(l).focus(),e.preventDefault(),e.stopPropagation()):13==e.keyCode&&(t=!0,e.preventDefault(),e.stopPropagation())},!1),i.addEventListener("keyup",function(e){13==e.keyCode&&t&&(t=!1,D(),e.preventDefault(),e.stopPropagation())},!1),document.getElementById(l).addEventListener("keydown",function(e){9==e.keyCode&&(i.focus(),e.preventDefault(),e.stopPropagation())},!1),window.focus(),i.focus(),[2]}})})}function R(e){if(e.source==f)try{var t=e.origin;if(!function(e,t,n){if(void 0===n&&(n=!0),!e||!t)return!1;var r=g.OUtil.parseUrl(e),i=g.OUtil.parseUrl(t),o=g._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(!("https:"===r.protocol))return!1;var a=r.protocol===i.protocol&&r.hostname===i.hostname&&r.port===i.port,s=g.XdmCommunicationManager.checkUrlWithAppDomains(o,e),c=a||s;return!c&&n&&(c=g.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(t,e)),c}(t,g._OfficeAppFactory.getOfficeAppContext().get_docUrl(),!0))throw new Error("Received a message from a dialog with an untrusted domain.");var n={};n[g.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=e.data,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=t,d(n)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during receive message handler."+e)}}function S(e){var t=g._OfficeAppFactory.getId()+i;if(e.key==t)try{var n={};n[g.Marshaling.DialogMessageReceivedEventKeys.MessageType]=0,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=e.newValue,n[g.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=e.origin,d(n)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during storage changed handler."+e)}}function I(e){var t=g._OfficeAppFactory.getHostInfo(),n=[t.hostType,t.hostPlatform,t.hostSpecificFileVersion,t.hostLocale,t.osfControlAppCorrelationId,"isDialog",t.disableLogging?"disableLogging":"",t.flags&g.HostInfoFlags.PublicAddin].join("$"),r=g._OfficeAppFactory.getOfficeAppContext();r.set_taskpaneUrl(window.location.origin),r.get_taskpaneUrl()||r.set_taskpaneUrl(window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var i=e.url;e[g.ShowWindowDialogParameterKeys.UrlNoHostInfo]||(i=g.OUtil.addHostInfoAsQueryParam(i,n));var o=JSON.parse(window.name);o.hostInfo=n;var a=__assign({},r);if(a._appName===g.AppName.ExcelWebApp){if(!a._settings&&a._settingsFunc){var s=a._settingsFunc();a._settings=Object.keys(s).map(function(e){return[e,s[e]]})}if(!a._hostSettings&&a._hostSettingsFunc){var c=a._hostSettingsFunc();a._hostSettings=Object.keys(c).map(function(e){return[e,c[e]]})}o.appContext=a}else o.appContext=r;var l=e[g.ShowWindowDialogParameterKeys.Width]*screen.width/100,u=e[g.ShowWindowDialogParameterKeys.Height]*screen.height/100,p="width="+l+", height="+u+", left="+(r.get_clientWindowWidth()/2-l/2)+", top="+(r.get_clientWindowHeight()/2-u/2)+",channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no";if(null==(f=window.open(i,g.OUtil.serializeObjectToString(o),p)))return g.AppTelemetry.logAppCommonMessage("Encountered cross zone issue in displayDialogAsync api."),x(),C(i,t.hostType),void _(12011);g.OUtil.shouldUseLocalStorageToPassMessage()?window.addEventListener("storage",S):window.addEventListener("message",R),h=window.setInterval(function(){try{if(null==f||f.closed){window.clearInterval(h),g.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",S):window.removeEventListener("message",R);var e={};e[g.Marshaling.DialogMessageReceivedEventKeys.MessageType]=12006,d(e)}}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during check or handle window close."+e)}},1e3),null!=_?_(0):g.AppTelemetry&&g.AppTelemetry.logAppException("showDialogCallback can not be null.")}function A(e,t){var n=document.createElement("input");n.setAttribute("type","button"),n.style.cssText=e.getDialogButtonCSS(),n.style.borderColor=o,n.style.backgroundColor=s,n.setAttribute("value",t);function r(){T(n)}function i(){N(n)}return n.addEventListener("mouseover",r),n.addEventListener("focus",r),n.addEventListener("mouseout",i),n.addEventListener("focusout",i),n}function T(e){null!=n?(e.style.borderColor=n.HostButtonBorderColor,e.style.backgroundColor=n.HostButtonBackgroundColor):g.OUtil.getCommonUI()?(e.style.borderColor=g.OUtil.getCommonUI().HostButtonBorderColor,e.style.backgroundColor=g.OUtil.getCommonUI().HostButtonBackgroundColor):e.style.backgroundColor=r}function N(e){e.style.borderColor=o,e.style.backgroundColor=s}function D(){P.onCalling=function(e){x(),j(e)},g.WACDelegate.unregisterEventAsync(P)}function x(){null!=m&&(document.body.removeChild(m),m=null),null!=y&&(document.body.removeChild(y),y=null)}function E(e){var t=document.createElement("div");return t.style.cssText=e.getOverlayElementCSS(),t}function k(e){var t=document.createElement("div");return t.style.cssText=e.getDialogNotificationButtonPanelCSS(),"rtl"==document.documentElement.getAttribute("dir")?t.style.cssFloat="left":t.style.cssFloat="right",t}function j(e){if(0!=e){var t=document.querySelectorAll(g._OfficeAppFactory.getInitializationHelper().getTabbableElements());g.OUtil.focusToFirstTabbable(t,!1)}}function w(e){e.setAttribute("role","dialog"),e.setAttribute("aria-describedby",O)}(e=g.ShowWindowDialogParameterKeys||(g.ShowWindowDialogParameterKeys={})).Url="url",e.Width="width",e.Height="height",e.DisplayInIframe="displayInIframe",e.HideTitle="hideTitle",e.UseDeviceIndependentPixels="useDeviceIndependentPixels",e.PromptBeforeOpen="promptBeforeOpen",e.EnforceAppDomain="enforceAppDomain",e.UrlNoHostInfo="urlNoHostInfo",e.TargetOrigin="targetOrigin",function(e){var t="excel",n="word",r="powerpoint",i="outlook",o="visio";e.getDialogCssManager=function(e){switch(e){case t:case n:case r:case i:case o:default:return new a}};var a=(s.prototype.getOverlayElementCSS=function(){return this.overlayElementCSS.join(";")},s.prototype.getDialogNotificationPanelCSS=function(){return this.dialogNotificationPanelCSS.join(";")},s.prototype.getNewWindowNotificationTextPanelCSS=function(){return this.newWindowNotificationTextPanelCSS.join(";")},s.prototype.getNewWindowNotificationTextSpanCSS=function(){return this.newWindowNotificationTextSpanCSS.join(";")},s.prototype.getCrossZoneNotificationTextPanelCSS=function(){return this.crossZoneNotificationTextPanelCSS.join(";")},s.prototype.getDialogNotificationButtonPanelCSS=function(){return this.dialogNotificationButtonPanelCSS},s.prototype.getDialogButtonCSS=function(){return this.buttonStyleCSS.join(";")},s);function s(){this.overlayElementCSS=["position: absolute","top: 0","left: 0","width: 100%","height: 100%","background-color: rgba(198, 198, 198, 0.5)","z-index: 99998"],this.dialogNotificationPanelCSS=["width: 100%","height: 190px","position: absolute","z-index: 99999","background-color: rgba(255, 255, 255, 1)","left: 0px","top: 50%","margin-top: -95px"],this.newWindowNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px","line-height: 100px"],this.newWindowNotificationTextSpanCSS=["display: inline-block","line-height: normal","vertical-align: middle"],this.crossZoneNotificationTextPanelCSS=["margin: 20px 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","font-size: 14px","height: 100px"],this.dialogNotificationButtonPanelCSS="margin:0px 9px",this.buttonStyleCSS=["text-align: center","width: 70px","height: 25px","font-size: 14px","font-family: Segoe UI,Arial,Verdana,sans-serif","margin: 0px 5px","border-width: 1px","border-style: solid"]}e.DefaultDialogCSSManager=a}(g.WacCommonUICssManager||(g.WacCommonUICssManager={})),t=g.WacDialogAction||(g.WacDialogAction={}),b=!(a="osfDialogInternal:action=closeDialog"),h=-1,i="messageParentKey",n=_=m=y=d=f=null,o="#ababab",s="#ffffff",r="#ccc",v="newWindowNotificaiton",c="crossZoneNotification",l="configureBrowserLink",O="dialogNotificationTextPanel",P={dispId:g.EventDispId.dispidDialogNotificationShownInAddinEvent,eventType:g.Marshaling.DialogNotificationShownEventType.DialogNotificationShown,onComplete:null,onCalling:null},t.setHostThemeButtonStyle=function(e){var t=e.input;null!=t&&(n={HostButtonBorderColor:t[g.OUtil.HostThemeButtonStyleKeys.ButtonBorderColor],HostButtonBackgroundColor:t[g.OUtil.HostThemeButtonStyleKeys.ButtonBackgroundColor]}),e.completed()},t.removeEventListenersForDialog=function(e){!function(e){function t(){g._OfficeAppFactory.getWebAppState().focused||(g._OfficeAppFactory.getWebAppState().focused=!0),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.Select])}function n(){g&&(g._OfficeAppFactory.getWebAppState().focused&&(g._OfficeAppFactory.getWebAppState().focused=!1),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.UnSelect]))}function r(e){if(e.preventDefault=e.preventDefault||function(){e.returnValue=!1},117==e.keyCode&&(e.ctrlKey||e.metaKey)){e.preventDefault();var t=g.AgaveHostAction.CtrlF6Exit;e.shiftKey&&(t=g.AgaveHostAction.CtrlF6ExitShift),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,t])}else if(9==e.keyCode){e.preventDefault();var n=document.querySelectorAll(o._tabbableElements);g.OUtil.focusToNextTabbable(n,e.target||e.srcElement,e.shiftKey)||(o._hostInfo.isDialog?g.OUtil.focusToFirstTabbable(n,e.shiftKey):e.shiftKey?g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.TabExitShift]):g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.TabExit]))}else if(27==e.keyCode)e.preventDefault(),p(),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.EscExit]);else if(113==e.keyCode)e.preventDefault(),g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.F2Exit]);else if((e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&1<=e.keyCode&&e.keyCode<=255){var r={keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};g.getClientEndPoint().invoke("ContextActivationManager_notifyHost",null,[o._webAppState.id,g.AgaveHostAction.KeyboardShortcuts,r])}}function i(e){117==e.keyCode&&e.ctrlKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}var o=this;e?(g.OUtil.addEventListener(window,"focus",t),g.OUtil.addEventListener(window,"blur",n),g.OUtil.addEventListener(window,"keydown",r),g.OUtil.addEventListener(window,"keypress",i)):(g.OUtil.removeEventListener(window,"focus",t),g.OUtil.removeEventListener(window,"blur",n),g.OUtil.removeEventListener(window,"keydown",r),g.OUtil.removeEventListener(window,"keypress",i))}(!1),e.completed()},t.handleNewWindowDialog=function(h){return __awaiter(this,void 0,void 0,function(){function i(e){P.onCalling=function(e){x(),j(e),_(12009)},g.WACDelegate.unregisterEventAsync(P),e.preventDefault(),e.stopPropagation()}function o(e){p.focus()}var a,s,c,l,u,p,f,d;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=h,n=g._OfficeAppFactory.getOfficeAppContext().get_appDomains(),r=t.url,g.XdmCommunicationManager.checkUrlWithAppDomains(n,r)||g._OfficeAppFactory.getOfficeAppContext().get_docUrl()&&g.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(g._OfficeAppFactory.getOfficeAppContext().get_docUrl(),r)?h[g.ShowWindowDialogParameterKeys.PromptBeforeOpen]?[4,g.OUtil.ensureOfficeStringsJs()]:(I(h),[2]):(_(12004),[2]);case 1:return e.sent(),a=b=!1,s=g._OfficeAppFactory.getHostInfo(),c=g.WacCommonUICssManager.getDialogCssManager(s.hostType),l=g.OUtil.formatString(Strings.OfficeOM.L_ShowWindowDialogNotification,g._OfficeAppFactory.getOfficeAppContext().get_addinName()),y=E(c),document.body.insertBefore(y,document.body.firstChild),(m=function(e,t){var n=document.createElement("div");n.style.cssText=e.getDialogNotificationPanelCSS(),w(n);var r=document.createElement("div");r.style.cssText=e.getNewWindowNotificationTextPanelCSS(),r.id=O,"rtl"==document.documentElement.getAttribute("dir")?r.style.paddingRight="30px":r.style.paddingLeft="30px";var i=document.createElement("span");return i.style.cssText=e.getNewWindowNotificationTextSpanCSS(),i.innerText=t,r.appendChild(i),n.appendChild(r),n}(c,l)).id=v,u=k(c),p=A(c,Strings.OfficeOM.L_ShowWindowDialogNotificationAllow),f=A(c,Strings.OfficeOM.L_ShowWindowDialogNotificationIgnore),u.appendChild(p),u.appendChild(f),m.appendChild(u),document.body.insertBefore(m,document.body.firstChild),p.onclick=function(e){I(h),b||D(),e.preventDefault(),e.stopPropagation()},f.onclick=i,p.addEventListener("keydown",function(e){e.shiftKey&&9==e.keyCode&&(N(p),T(f),f.focus(),e.preventDefault(),e.stopPropagation())},!1),f.addEventListener("keydown",function(e){e.shiftKey||9!=e.keyCode?13==e.keyCode&&(a=!0,e.preventDefault(),e.stopPropagation()):(N(f),T(p),p.focus(),e.preventDefault(),e.stopPropagation())},!1),f.addEventListener("keyup",function(e){13==e.keyCode&&a&&(a=!1,i(e))},!1),window.focus(),P.onCalling=o,g.WACDelegate.registerEventAsync(P),[3,3];case 2:return d=e.sent(),g.AppTelemetry&&g.AppTelemetry.logAppException("Exception happens at new window dialog."+d),_(5001),[3,3];case 3:return[2]}var t,n,r})})},t.closeDialog=function(t){try{if(null!=f){var e=g._OfficeAppFactory.getOfficeAppContext().get_appDomains();if(e)for(var n=0;n<e.length&&-1!==e[n].indexOf("://");n++)f.postMessage(a,e[n]);null==f||f.closed||f.close(),g.OUtil.shouldUseLocalStorageToPassMessage()?window.removeEventListener("storage",S):window.removeEventListener("message",R),window.clearInterval(h),f=null,t(0)}else t(5001)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Exception happens at close window dialog."+e),t(5001)}},t.messageParent=function(e){var t=e.hostCallArgs[g.ParameterNames.MessageToParent],n=e.hostCallArgs[g.ParameterNames.TargetOrigin]||null;if(g.OUtil.shouldUseLocalStorageToPassMessage())try{var r=g._OfficeAppFactory.getId()+i;window.localStorage.setItem(r,t)}catch(e){g.AppTelemetry&&g.AppTelemetry.logAppException("Error happened during messageParent method:"+e)}else u(window.opener,{message:t,targetOrigin:n})},t.sendMessage=function(e){if(null!=f){var t=e.hostCallArgs,n=t[g.ParameterNames.TargetOrigin]||null;delete t[g.ParameterNames.TargetOrigin],"string"!=typeof t&&(t=JSON.stringify(t)),u(f,{message:t,targetOrigin:n})}},t.postDialogMessage=u,t.registerMessageReceivedEvent=function(){window.addEventListener("message",function(e){if(e.source==window.opener)if("string"==typeof e.data&&-1<e.data.indexOf(a))window.close();else{var t=e.data,n=typeof t;if(t&&("object"==n||"string"==n)){var r="string"==n?JSON.parse(t):t,i={};i[g.Marshaling.DialogMessageReceivedEventKeys.MessageContent]=r.messageContent,i[g.Marshaling.DialogMessageReceivedEventKeys.MessageOrigin]=e.origin;var o=g.manufactureEventArgs(g.EventType.DialogParentMessageReceived,null,i);g.DialogParentMessageEventDispatch.fireEvent(o)}}})},t.setHandlerAndShowDialogCallback=function(e,t){d=e,_=t},t.escDismissDialogNotification=p,t.showCrossZoneNotification=C,t.getUrlProtocolHostnamePort=function(e){var t=e.port?":"+e.port:"";return e.protocol+"//"+e.hostname+t}}(OSF=OSF||{}),function(r){var e;(e=r.SafeArrayDelegate||(r.SafeArrayDelegate={})).openDialog=function(n){try{n.onCalling&&n.onCalling();var e=r.SafeArrayDelegate.getOnAfterRegisterEvent(!0,n);r._OfficeAppFactory.getClientHostController().openDialog(n.dispId,void 0,n.targetId,function(e,t){n.onEvent&&n.onEvent(t),r.AppTelemetry&&r.AppTelemetry.onEventDone(n.dispId)},e)}catch(e){r.SafeArrayDelegate.onException(e,n)}},e.closeDialog=function(t){t.onCalling&&t.onCalling();var e=r.SafeArrayDelegate.getOnAfterRegisterEvent(!1,t);try{r._OfficeAppFactory.getClientHostController().closeDialog(t.dispId,void 0,t.targetId,e)}catch(e){r.SafeArrayDelegate.onException(e,t)}},e.messageParent=function(e){try{e.onCalling&&e.onCalling();var t=(new Date).getTime(),n=r._OfficeAppFactory.getClientHostController().messageParent(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),r.AppTelemetry&&r.AppTelemetry.onMethodDone(e.dispId,e.hostCallArgs,Math.abs((new Date).getTime()-t),n),n}catch(e){return r.SafeArrayDelegate.onExceptionSyncMethod(e)}},e.sendMessage=function(e){try{e.onCalling&&e.onCalling();(new Date).getTime();var t=r._OfficeAppFactory.getClientHostController().sendMessage(e.hostCallArgs);return e.onReceiving&&e.onReceiving(),t}catch(e){return r.SafeArrayDelegate.onExceptionSyncMethod(e)}}}(OSF=OSF||{}),function(y){var m;(m=y.WACDelegate||(y.WACDelegate={})).openDialog=function(t){var e=JSON.parse(t.targetId),n=m.getOnAfterRegisterEvent(!0,t);function r(e){var t={Error:e};try{n(0,t)}catch(e){y.AppTelemetry&&y.AppTelemetry.logAppException("Exception happens at showDialogCallback."+e)}}if(y.DialogShownStatus.hasDialogShown)r(12007);else{var i=e[y.ShowWindowDialogParameterKeys.Url].toLowerCase(),o=window.location.href.toLowerCase();if(y.AppTelemetry){var a=!1,s=!1,c=!1,l=!1,u="",p="";if(y.OUtil){var f=y.OUtil.parseUrl(i),d=y.OUtil.parseUrl(o);a=f.protocol===d.protocol&&f.hostname===d.hostname&&f.port===d.port,u=y.OUtil.getHostnamePortionForLogging(f.hostname),a?p=u:(p=y.OUtil.getHostnamePortionForLogging(d.hostname),s=y.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(i,o),c=y.XdmCommunicationManager.isTargetSubdomainOfSourceLocation(o,i));var h=y._OfficeAppFactory.getOfficeAppContext().get_appDomains();l=y.XdmCommunicationManager.checkUrlWithAppDomains(h,i)}var g="openDialog isInline: "+e[y.ShowWindowDialogParameterKeys.DisplayInIframe].toString()+", taskpaneHostname: "+p+", dialogHostName: "+u+", isSameDomain: "+a.toString()+", parentIsSubdomain: "+s.toString()+", childIsSubdomain: "+c.toString()+", isAppDomain: "+l.toString();y.AppTelemetry.logAppCommonMessage(g)}null!=i&&"https://"===i.substr(0,"https://".length)?e[y.ShowWindowDialogParameterKeys.DisplayInIframe]?(y.DialogShownStatus.isWindowDialog=!1,y.WACDelegate.registerEventAsync(t)):(y.DialogShownStatus.isWindowDialog=!0,y.WacDialogAction.setHandlerAndShowDialogCallback(function(e){t.onEvent&&t.onEvent(e),y.AppTelemetry&&y.AppTelemetry.onEventDone(t.dispId)},r),y.WacDialogAction.handleNewWindowDialog(e)):"http://"===i.substr(0,"http://".length)?r(12005):r(12003)}},m.messageParent=function(e){var t=!!e.hostCallArgs.targetOrigin;if(null!=window.opener)y.WacDialogAction.messageParent(e);else{var n=window.location.origin;n=n||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),t||(e.hostCallArgs.targetOrigin=n),y.WACDelegate.executeAsync(e)}},m.sendMessage=function(e){y.DialogShownStatus.hasDialogShown&&(y.DialogShownStatus.isWindowDialog?y.WacDialogAction.sendMessage(e):y.WACDelegate.executeAsync(e))},m.closeDialog=function(e){var n=m.getOnAfterRegisterEvent(!1,e);function t(e){var t={Error:e};try{n(0,t)}catch(e){y.AppTelemetry&&y.AppTelemetry.logAppException("Exception happens at closeDialogCallback."+e)}}y.DialogShownStatus.hasDialogShown?y.DialogShownStatus.isWindowDialog?(e.onCalling&&e.onCalling(),y.WacDialogAction.closeDialog(t)):y.WACDelegate.unregisterEventAsync(e):t(12006)}}(OSF=OSF||{}),function(t){t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},defineSafeArrayParameterMapFunc:function(){t.HostParameterMap.define({type:t.EventDispId.dispidDocumentSelectionChangedEvent})},defineWebParameterMapFunc:function(){t.HostParameterMap.define({type:t.EventDispId.dispidDocumentSelectionChangedEvent})},initializeFunc:function(){var e=Office.context.document;t.DispIdHost.addEventSupport(e,new t.EventDispatch([t.EventType.DocumentSelectionChanged,t.EventType.ActiveViewChanged]))}})}(OSF=OSF||{}),function(e){e.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){e.AsyncMethodCalls.define({method:e.AsyncMethods.AddHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}},{name:e.ParameterNames.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]}),e.AsyncMethodCalls.define({method:e.AsyncMethods.RemoveHandlerAsync,requiredArguments:[{name:e.ParameterNames.EventType,enum:e.EventType,verify:function(e,t,n){return n.supportsEvent(e)}}],supportedOptions:[{name:e.ParameterNames.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]})}})}(OSF=OSF||{}),function(t){var e;function n(){t.HostParameterMap.define({type:t.PropertyDescriptors.FeatureProperties,fromHost:[{name:t.PropertyDescriptors.TcidEnabled,value:0},{name:t.PropertyDescriptors.TcidVisible,value:1}],isComplexType:!0}),t.HostParameterMap.define({type:146,toHost:[{name:t.ParameterNames.Tcid,value:0}]}),t.HostParameterMap.define({type:147,fromHost:[{name:t.PropertyDescriptors.FeatureProperties,value:t.HostParameterMap.self}],toHost:[{name:t.ParameterNames.Tcid,value:0}]})}(e=t.PropertyDescriptors||(t.PropertyDescriptors={})).FeatureProperties="FeatureProperties",e.TcidEnabled="TcidEnabled",e.TcidVisible="TcidVisible",t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){t.AsyncMethodCalls.define({method:t.AsyncMethods.ExecuteFeature,requiredArguments:[{name:t.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]}),t.AsyncMethodCalls.define({method:t.AsyncMethods.QueryFeature,requiredArguments:[{name:t.ParameterNames.Tcid,types:["number"]}],privateStateCallbacks:[]})},defineSafeArrayParameterMapFunc:n,defineWebParameterMapFunc:n,initializeFunc:function(){var e=Office.context.ui;t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.ExecuteFeature]),t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.QueryFeature])}})}(OSF=OSF||{}),function(e){var t,n;((t=e.context||(e.context={})).extensionLifeCycle||(t.extensionLifeCycle={})).launchExtensionComponent=function(e,t,n,r,i){var o=OSF.OUtil.Guid.generateNewGuid();null==i&&(i={OptionalProperties:{},DevProperties:{}}),i.OptionalProperties.InstanceToken=o;var a={ExtId:e,ComponentType:t,ComponentId:n,HostProps:r,OptionalProps:i};if(OSF._OfficeAppFactory.getHostInfo().hostPlatform!=OSF.HostInfoPlatform.web)throw OSF.Utility.createNotImplementedException();var s=OSF._OfficeAppFactory.getWebAppState();return s.clientEndPoint.invoke("ContextActivationManager_notifyHost",null,[s.id,OSF.AgaveHostAction.LaunchExtensionComponent,a]),{Id:e,ComponentType:t,ComponentId:n,InstanceToken:o,LaunchProperties:i}},(n=e.ExtensionLifeCycle||(e.ExtensionLifeCycle={})).close=function(e){OSF._OfficeAppFactory.getClientHostController().closeSdxDialog(e)},n.resize=function(e,t){OSF.Utility.isNullOrUndefined(e)||OSF.Utility.isNullOrUndefined(t)||"number"!=typeof e||"number"!=typeof t?OSF.Utility.debugLog("Invaid dialog width or height. Kindly provide two numbers as input parameters."):OSF._OfficeAppFactory.getClientHostController().resizeSdxDialog(e,t)}}(Office=Office||{}),function(e){var t=(Object.defineProperty(n.prototype,"size",{get:function(){return this.m_fileSize},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sliceCount",{get:function(){return Math.ceil(this.m_fileSize/this.m_sliceSize)},enumerable:!0,configurable:!0}),n.prototype.getSliceAsync=function(e,t){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyChunkAsync,arguments,this,this.m_privateState)},n.prototype.closeAsync=function(e){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.ReleaseDocumentCopyAsync,arguments,this,this.m_privateState)},n);function n(e,t,n){this.m_fileSize=t,this.m_sliceSize=n,this.m_privateState={},this.m_privateState[OSF.FileProperties.Handle]=e,this.m_privateState[OSF.FileProperties.SliceSize]=n}e.File=t}(Office=Office||{}),function(r){var e;((e=r.context||(r.context={})).document||(e.document={})).getFileAsync=function(e,t,n){OSF.DispIdHost.InvokeMethod(OSF.AsyncMethods.GetDocumentCopyAsync,arguments,r.context.document,void 0)}}(Office=Office||{}),function(i){var e,t,n,r,o,a,s,c;(e=i.PropertyDescriptors||(i.PropertyDescriptors={})).FileProperties="FileProperties",e.FileSliceProperties="FileSliceProperties",(t=i.FileProperties||(i.FileProperties={})).Handle="FileHandle",t.FileSize="FileSize",t.SliceSize="sliceSize",(i.additionalParameter||(i.additionalParameter={})).FileSliceOffset="fileSliceoffset",n=i.Marshaling||(i.Marshaling={}),r=n.File||(n.File={}),(o=r.FilePropertiesKeys||(r.FilePropertiesKeys={}))[o.Handle=0]="Handle",o[o.FileSize=1]="FileSize",(a=r.SlicePropertiesKeys||(r.SlicePropertiesKeys={}))[a.Data=0]="Data",a[a.SliceSize=1]="SliceSize",(s=r.FileType||(r.FileType={}))[s.Text=0]="Text",s[s.Compressed=1]="Compressed",s[s.Pdf=2]="Pdf",(c=r.ParameterKeys||(r.ParameterKeys={}))[c.FileType=0]="FileType",c[c.SliceSize=1]="SliceSize",c[c.Handle=2]="Handle",c[c.SliceIndex=3]="SliceIndex",i.File||(i.File={}),i.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){i.AsyncMethodCalls.define({method:i.AsyncMethods.GetDocumentCopyAsync,requiredArguments:[{name:i.ParameterNames.FileType,enum:Office.FileType}],supportedOptions:[{name:i.ParameterNames.SliceSize,value:{types:["number"],defaultValue:i.OUtil.getHostPlatform()==i.HostInfoPlatform.ios?65536:4194304}}],checkCallArgs:function(e,t,n){var r=e[i.ParameterNames.SliceSize];if(r<=0||4194304<r)throw 11002;return e},onSucceeded:function(e,t,n){return new Office.File(e[i.FileProperties.Handle],e[i.FileProperties.FileSize],n[i.ParameterNames.SliceSize])}}),i.AsyncMethodCalls.define({method:i.AsyncMethods.GetDocumentCopyChunkAsync,requiredArguments:[{name:i.ParameterNames.SliceIndex,types:["number"]}],privateStateCallbacks:[{name:i.FileProperties.Handle,value:function(e,t){return t[i.FileProperties.Handle]}},{name:i.FileProperties.SliceSize,value:function(e,t){return t[i.FileProperties.SliceSize]}}],checkCallArgs:function(e,t,n){var r=e[i.ParameterNames.SliceIndex];if(r<0||r>=t.sliceCount)throw 5008;return e[i.additionalParameter.FileSliceOffset]=parseInt((r*n[i.FileProperties.SliceSize]).toString()),e},onSucceeded:function(e,t,n){var r={};return i.OUtil.defineEnumerableProperties(r,{data:{value:i.OUtil.getHostPlatform()==i.HostInfoPlatform.mac?i.OUtil.shallowCopy(e[i.ParameterNames.Data]):e[i.ParameterNames.Data]},index:{value:n[i.ParameterNames.SliceIndex]},size:{value:e[i.FileProperties.SliceSize]}}),r}}),i.AsyncMethodCalls.define({method:i.AsyncMethods.ReleaseDocumentCopyAsync,privateStateCallbacks:[{name:i.FileProperties.Handle,value:function(e,t){return t[i.FileProperties.Handle]}}]})},defineSafeArrayParameterMapFunc:function(){i.HostParameterMap.define({type:i.PropertyDescriptors.FileProperties,fromHost:[{name:i.FileProperties.Handle,value:0},{name:i.FileProperties.FileSize,value:1}],isComplexType:!0}),i.HostParameterMap.define({type:i.PropertyDescriptors.FileSliceProperties,fromHost:[{name:i.ParameterNames.Data,value:0},{name:i.FileProperties.SliceSize,value:1}],isComplexType:!0}),i.HostParameterMap.define({type:i.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:0},{name:Office.FileType.Compressed,value:5},{name:Office.FileType.Pdf,value:6}]}),i.HostParameterMap.define({type:77,toHost:[{name:i.ParameterNames.FileType,value:0}],fromHost:[{name:i.PropertyDescriptors.FileProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:80,toHost:[{name:i.FileProperties.Handle,value:0},{name:i.additionalParameter.FileSliceOffset,value:1},{name:i.FileProperties.SliceSize,value:2}],fromHost:[{name:i.PropertyDescriptors.FileSliceProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:81,toHost:[{name:i.FileProperties.Handle,value:0}]})},defineWebParameterMapFunc:function(){i.HostParameterMap.addComplexType(i.PropertyDescriptors.FileProperties),i.HostParameterMap.addComplexType(i.PropertyDescriptors.FileSliceProperties),i.HostParameterMap.define({type:i.PropertyDescriptors.FileProperties,fromHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.FilePropertiesKeys.Handle},{name:i.FileProperties.FileSize,value:i.Marshaling.File.FilePropertiesKeys.FileSize}]}),i.HostParameterMap.define({type:i.PropertyDescriptors.FileSliceProperties,fromHost:[{name:i.ParameterNames.Data,value:i.Marshaling.File.SlicePropertiesKeys.Data},{name:i.FileProperties.SliceSize,value:i.Marshaling.File.SlicePropertiesKeys.SliceSize}]}),i.HostParameterMap.define({type:i.ParameterNames.FileType,toHost:[{name:Office.FileType.Text,value:i.Marshaling.File.FileType.Text},{name:Office.FileType.Compressed,value:i.Marshaling.File.FileType.Compressed},{name:Office.FileType.Pdf,value:i.Marshaling.File.FileType.Pdf}]}),i.HostParameterMap.define({type:77,toHost:[{name:i.ParameterNames.FileType,value:i.Marshaling.File.ParameterKeys.FileType},{name:i.ParameterNames.SliceSize,value:i.Marshaling.File.ParameterKeys.SliceSize}],fromHost:[{name:i.PropertyDescriptors.FileProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:80,toHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.ParameterKeys.Handle},{name:i.ParameterNames.SliceIndex,value:i.Marshaling.File.ParameterKeys.SliceIndex}],fromHost:[{name:i.PropertyDescriptors.FileSliceProperties,value:i.HostParameterMap.self}]}),i.HostParameterMap.define({type:81,toHost:[{name:i.FileProperties.Handle,value:i.Marshaling.File.ParameterKeys.Handle}]})}})}(OSF=OSF||{}),(OfficeExt||(OfficeExt={})).FileProperties=function(e){OSF.OUtil.defineEnumerableProperties(this,{url:{value:e[OSF.FilePropertiesDescriptor.Url]}})},function(t){var e,n;t.FilePropertiesDescriptor={Url:"Url"},(t.PropertyDescriptors||(t.PropertyDescriptors={})).FilePropertiesDescriptor="FilePropertiesDescriptor",e=t.Marshaling||(t.Marshaling={}),(n=e.FilePropertiesKeys||(e.FilePropertiesKeys={}))[n.Properties=0]="Properties",n[n.Url=1]="Url",t.FileProperties||(t.FileProperties={}),t.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){t.AsyncMethodCalls.define({method:t.AsyncMethods.GetFilePropertiesAsync,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:0}],requiredArguments:[],supportedOptions:[],onSucceeded:function(e,t,n){return new OfficeExt.FileProperties(e)}})},defineSafeArrayParameterMapFunc:function(){t.HostParameterMap.define({type:t.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:t.FilePropertiesDescriptor.Url,value:0}],isComplexType:!0}),t.HostParameterMap.define({type:86,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:t.HostParameterMap.self}]})},defineWebParameterMapFunc:function(){t.HostParameterMap.addComplexType(t.PropertyDescriptors.FilePropertiesDescriptor),t.HostParameterMap.define({type:t.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:t.FilePropertiesDescriptor.Url,value:t.Marshaling.FilePropertiesKeys.Url}]}),t.HostParameterMap.define({type:86,fromHost:[{name:t.PropertyDescriptors.FilePropertiesDescriptor,value:t.Marshaling.FilePropertiesKeys.Properties}]})},initializeFunc:function(){var e=Office.context.document;t.DispIdHost.addAsyncMethods(e,[t.AsyncMethods.GetFilePropertiesAsync])}})}(OSF=OSF||{}),function(a){var i;function e(){this._events=[]}a.NestedAppAuth||(a.NestedAppAuth={}),e.prototype.postMessage=function(e){var t,n,r,i,o=this;t=e,n=function(t){"succeeded"==t.status&&o._events.forEach(function(e){e(t.value)})},r=a._OfficeAppFactory.getAsyncMethodExecutor(),i={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){return null},toWebHost:function(){return{requestPayload:t}},fromWebHost:function(e){return e.responsePayload}},r.executeAsync(209,i,n)},e.prototype.addEventListener=function(e,t){"message"===e&&this._events.push(t)},e.prototype.removeEventListener=function(e,t){"message"===e&&(this._events=this._events.filter(function(e){return e!=t}))},i=e,a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){},initializeFunc:function(){var e=a._OfficeAppFactory.getOfficeAppContext(),t=e.get_nestedAppAuthBridgeType();if(1===t)window.nestedAppAuthBridge=new i;else if(2!==t||window.nestedAppAuthBridge){if(3===t){var n=e.get_topFrameOrigin();a.pairwiseBrokerConfig={enabled:!0,trustedBrokerDomain:n||void 0}}}else{var r=e.get_topFrameOrigin();r&&a._OfficeAppFactory.getInitializationHelper().setCreateNaaBridge(function(){return function(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=a.LoadScriptHelper.getHostBundleJsBasePath()+"webauth/hubsdknaabridge.min.js",[4,a.OUtil.loadScriptPromise(t,a.LoadScriptHelper.getTrustedTypesPolicy())];case 1:return e.sent()&&HubSdkNaaBridge.initializeBridge(n),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}})})}(r)})}}})}(OSF=OSF||{}),function(r){var e;((e=r.DDA||(r.DDA={})).Auth||(e.Auth={})).getAuthContextAsync=function(e){function t(e){var t=e.userObjectId||"",n=e.tenantId||"",r=e.userPrincipalName||"";return{userObjectId:t,tenantId:n,userPrincipalName:r,authorityType:e.authorityType||"",authorityBaseUrl:e.authorityBaseUrl||"",puid:e.puid||"",loginHint:e.loginHint||r}}var n={toSafeArrayHost:function(){return[]},fromSafeArrayHost:function(e){try{return t(JSON.parse(e))}catch(e){return null}},toWebHost:function(){return{}},fromWebHost:function(e){return t(e)}};r._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(205,n,e)}}(OSF=OSF||{}),function(r){(r.auth||(r.auth={})).getAuthContext=function(){return new r.Promise(function(t,n){OSF.DDA.Auth.getAuthContextAsync(function(e){e.status===r.AsyncResultStatus.Succeeded?t(e.value):n(e.error)})})}}(Office=Office||{}),(Office||(Office={})).select=function(e,t){var n;if(e&&"string"==typeof e){var r=e.indexOf("#");if(-1!=r){var i=e.substring(0,r),o=e.substring(r+1);switch(i){case"binding":case"bindings":o&&(n=new OSF.BindingPromise(o))}}}if(n)return n.onFail=t,n;if(t){var a=typeof t;if("function"!=a)throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,a);var s={};s[OSF.ParameterNames.Callback]=t,OSF.DispIdHost.issueAsyncResult(s,5004,OSF.DDA.ErrorCodeManager.getErrorArgs(5004))}},function(s){var e,t;function c(e){var t=0;switch(e){case s.CoercionType.Text:t=0;break;case s.CoercionType.Matrix:t=1;break;case s.CoercionType.Table:t=2;break;case s.CoercionType.Html:t=3;break;case s.CoercionType.Ooxml:t=4;break;case s.CoercionType.OoxmlPackage:t=5;break;case s.CoercionType.PdfFile:t=6;break;case s.CoercionType.SlideRange:t=7;break;case"image":t=8;break;case"xmlSvg":t=9}return t}e=s.context||(s.context={}),(t=e.document||(e.document={})).setSelectedDataAsync=function(t,n,e){var r=null==n.coercionType?OSF.DataCoercion.determineCoercionType(t):n.coercionType;"function"==typeof n&&(e=n);var i={toSafeArrayHost:function(){var e=OSF._OfficeAppFactory.getHostInfo();return e.hostType.toLowerCase()==s.HostType.Word.toLowerCase()||e.hostType.toLowerCase()==s.HostType.PowerPoint.toLowerCase()||e.hostType.toLowerCase()==s.HostType.OneNote.toLowerCase()||e.hostType.toLowerCase()==s.HostType.Visio.toLowerCase()||"image"==r||"xmlSvg"==r?[c(r),OSF.DataCoercion.serializeDynamicData(t),null!=n.imageLeft&&n.imageLeft,null!=n.imageTop&&n.imageTop,null!=n.imageWidth&&n.imageWidth,null!=n.imageHeight&&n.imageHeight]:e.hostType.toLowerCase()==s.HostType.Excel.toLowerCase()?[c(r),OSF.DataCoercion.serializeDynamicData(t),null==n.cellFormat?[]:n.cellFormat,null==n.tableOptions?[]:n.tableOptions,null!=n.imageWidth&&n.imageWidth,null!=n.imageHeight&&n.imageHeight]:[c(r),OSF.DataCoercion.serializeDynamicData(t),null==n.cellFormat?[]:n.cellFormat,null==n.tableOptions?[]:n.tableOptions]},fromSafeArrayHost:function(e){return e},toWebHost:function(){return{DdaSetBindingData:{CoerceType:r,Data:OSF.DataCoercion.serializeDynamicData(t),CellFormat:[],TableOptions:[]}}},fromWebHost:function(e){return e}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(65,i,e,null)},t.getSelectedDataAsync=function(t,e,n){var r,i=s.ValueFormat.Unformatted,o=s.FilterType.All;"function"==typeof e?n=e:void 0!==e&&(void 0!==e.valueFormat&&(i=e.valueFormat),void 0!==e.filterType&&(o=e.filterType),void 0!==e.asyncContext&&(r=e.asyncContext));var a={toSafeArrayHost:function(){return[c(t),function(e){var t=0;switch(e){case s.ValueFormat.Unformatted:t=0;break;case s.ValueFormat.Formatted:t=1}return t}(i),function(e){var t=0;switch(e){case s.FilterType.All:t=0;break;case s.FilterType.OnlyVisible:t=1}return t}(o)]},fromSafeArrayHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e,t)},toWebHost:function(){return{DdaGetBindingData:{CoerceType:t,ValueFormat:i,FilterType:o}}},fromWebHost:function(e){return OSF.DataCoercion.deserializeDynamicData(e.Data,t)}};OSF._OfficeAppFactory.getAsyncMethodExecutor().executeAsync(64,a,n,r)}}(Office=Office||{}),function(t){var e=(Object.defineProperty(n.prototype,"headers",{get:function(){return this._header},set:function(e){this._header=this.fixData(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=null==e||OSF.OUtil.isArray(e)&&0==e.length?[]:this.fixData(e)},enumerable:!0,configurable:!0}),n.prototype.fixData=function(e){if(null==e||null==e)return null;try{for(var t=OSF.DataCoercion.findArrayDimensionality(e);t<2;t++)e=[e];return e}catch(e){}},n);function n(e,t){this._rows=e,this._header=t}t.TableData=e,t.manufactureTableData=function(e){return new t.TableData(e[OSF.TableDataProperties.TableRows],e[OSF.TableDataProperties.TableHeaders])}}(Office=Office||{}),function(e){e.BootStrapExtension.prepareApiSurface=function(){return new Promise(function(){e.V10ApiFeatureRegistry.initialize()})}}(OSF=OSF||{}),function(a){var e;(function(r){var e;(e=r.EventDescriptors||(r.EventDescriptors={})).OfficeThemeChangedEvent="OfficeThemeChangedEvent",e.DocumentThemeChangedEvent="DocumentThemeChangedEvent",a.V10ApiFeatureRegistry.register({defineMethodsFunc:function(){a.AsyncMethodCalls.define({method:a.AsyncMethods.GetDocumentThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:a.DDA.Theming.ConvertToDocumentTheme}),a.AsyncMethodCalls.define({method:a.AsyncMethods.GetOfficeThemeAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:a.DDA.Theming.ConvertToOfficeTheme})},defineSafeArrayParameterMapFunc:function(){a.HostParameterMap.define({type:85,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.ParameterNames.OfficeTheme,fromHost:[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:0},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:1},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:2},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:3},{name:a.DDA.Theming.OfficeThemeEnum.ThemeId,value:4},{name:a.DDA.Theming.OfficeThemeEnum.IsDarkTheme,value:5},{name:a.DDA.Theming.OfficeThemeEnum.FluentThemeData,value:6}],isComplexType:!0}),a.HostParameterMap.define({type:a.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:a.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,value:a.HostParameterMap.self}],isComplexType:!0}),a.HostParameterMap.define({type:a.DDA.Theming.EventDescriptors.OfficeThemeChangedEvent,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}],isComplexType:!0})},defineWebParameterMapFunc:function(){a.HostParameterMap.addComplexType(a.ParameterNames.DocumentTheme),a.HostParameterMap.addComplexType(a.ParameterNames.OfficeTheme),a.HostParameterMap.define({type:a.EventDispId.dispidOfficeThemeChangedEvent,fromHost:[{name:a.ParameterNames.OfficeTheme,value:a.HostParameterMap.self}]}),a.HostParameterMap.define({type:a.ParameterNames.OfficeTheme,fromHost:[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.PrimaryFontColor},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.PrimaryBackgroundColor},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.SecondaryFontColor},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,value:a.DDA.Theming.OfficeThemeEnumWac.SecondaryBackgroundColor}],isComplexType:!0})},initializeFunc:function(){var e=a._OfficeAppFactory.getHostInfo(),t=e.hostType.toLowerCase();if(e.hostPlatform==a.HostInfoPlatform.web&&(t==Office.HostType.Word.toLowerCase()||t==Office.HostType.PowerPoint.toLowerCase())&&Office.context.officeTheme){var n=r.GetIsDarkThemeFromCSSHexColor(Office.context.officeTheme.bodyBackgroundColor);Office.context.officeTheme[a.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=n,Office.context.officeTheme[a.DDA.Theming.OfficeThemeEnum.ThemeId]=n?a.DDA.Theming.ThemeId.Black:a.DDA.Theming.ThemeId.White}Office.context&&Office.context.themeManager&&Office.context.themeManager.InitializeAndChangeOnce()}});var t=(n.prototype.InitializeThemeManager=function(){this._eventTarget=this,a.DispIdHost.addAsyncMethods(this,[a.AsyncMethods.GetOfficeThemeAsync,a.AsyncMethods.GetDocumentThemeAsync]),a.DispIdHost.addEventSupport(this,new a.EventDispatch([Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,Microsoft.Office.WebExtension.EventType.DocumentThemeChanged]))},n.prototype.InitializeAndChangeOnce=function(e){var t=this;this._officeCss=this._getOfficeThemesCss(),this._officeCss?(this._onAsyncCallsCompleted=e,this._asyncCallsCompleted={},this._asyncCallsCompleted[a.AsyncMethods.GetOfficeThemeAsync]=!1,this._asyncCallsCompleted[a.AsyncMethods.GetDocumentThemeAsync]=!1,this._getAndProcessThemeData(this._eventTarget.getOfficeThemeAsync,function(e){t._processOfficeThemeData(e)},a.AsyncMethods.GetOfficeThemeAsync)):e&&e()},n.prototype.isDarkTheme=function(){var e=!1;if(Office.context&&Office.context.officeTheme&&Office.context.officeTheme.bodyBackgroundColor){var t=Office.context.officeTheme.bodyBackgroundColor;e=r.GetIsDarkThemeFromCSSHexColor(t)}return e},n.prototype._getOfficeThemesCss=function(){try{return function(){for(var e="officethemes.css",t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(!n.disabled&&n.href&&e==n.href.substring(n.href.length-e.length,n.href.length).toLowerCase())return n.cssRules||n.rules?n:(a.AppTelemetry&&a.AppTelemetry.logAppException("Browser styleSheet object does not implement cssRules or rules property. Viloates browser's css access rule"),null)}}()}catch(e){return a.AppTelemetry&&a.AppTelemetry.logAppException("Exception thrown when trying to read officethems.css:["+e+"]"),null}},n.prototype._changeCss=function(e,t,n){for(var r=e.cssRules?e.cssRules.length:e.rules.length,i=0;i<r;i++){var o=(e.cssRules?e.cssRules[i]:e.rules[i]).selectorText;o&&o.toLowerCase()==t.toLowerCase()&&(e.cssRules?(e.deleteRule(i),e.insertRule(o+n,i)):(e.removeRule(i),e.addRule(o,n,i)))}},n.prototype._changeDocumentThemeData=function(e){for(var t=[{name:a.DDA.Theming.DocumentThemeEnum.PrimaryFontColor,cssSelector:".office-docTheme-primary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.PrimaryBackgroundColor,cssSelector:".office-docTheme-primary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.SecondaryFontColor,cssSelector:".office-docTheme-secondary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.SecondaryBackgroundColor,cssSelector:".office-docTheme-secondary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-color",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent1,cssSelector:".office-contentAccent1-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent2,cssSelector:".office-contentAccent2-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent3,cssSelector:".office-contentAccent3-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent4,cssSelector:".office-contentAccent4-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent5,cssSelector:".office-contentAccent5-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Accent6,cssSelector:".office-contentAccent6-borderColor",cssProperty:"border-color"},{name:a.DDA.Theming.DocumentThemeEnum.Hyperlink,cssSelector:".office-a",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.FollowedHyperlink,cssSelector:".office-a:visited",cssProperty:"color"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderLatinFont,cssSelector:".office-headerFont-latin",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderEastAsianFont,cssSelector:".office-headerFont-eastAsian",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderScriptFont,cssSelector:".office-headerFont-script",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.HeaderLocalizedFont,cssSelector:".office-headerFont-localized",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyLatinFont,cssSelector:".office-bodyFont-latin",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyEastAsianFont,cssSelector:".office-bodyFont-eastAsian",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyScriptFont,cssSelector:".office-bodyFont-script",cssProperty:"font-family"},{name:a.DDA.Theming.DocumentThemeEnum.BodyLocalizedFont,cssSelector:".office-bodyFont-localized",cssProperty:"font-family"}],n=e.type==a.EventType.DocumentThemeChanged?e.documentTheme:e,r=0;r<t.length;r++)if(null===this._previousDocumentThemeData||this._previousDocumentThemeData[t[r].name]!=n[t[r].name])if(null!=n[t[r].name]&&""!=n[t[r].name]){var i=n[t[r].name];"font-family"===t[r].cssProperty&&(i='"'+i.replace(new RegExp('"',"g"),'\\"')+'"'),this._changeCss(this._officeCss,t[r].cssSelector,"{"+t[r].cssProperty+":"+i+";}")}else this._changeCss(this._officeCss,t[r].cssSelector,"{}");this._previousDocumentThemeData=n},n.prototype._changeOfficeThemeData=function(e){for(var t=[{name:a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor,cssSelector:".office-officeTheme-primary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor,cssSelector:".office-officeTheme-primary-bgColor",cssProperty:"background-color"},{name:a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor,cssSelector:".office-officeTheme-secondary-fontColor",cssProperty:"color"},{name:a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor,cssSelector:".office-officeTheme-secondary-bgColor",cssProperty:"background-color"}],n=e.type==a.EventType.OfficeThemeChanged?e.officeTheme:e,r=0;r<t.length;r++)null!==this._previousOfficeThemeData&&this._previousOfficeThemeData[t[r].name]==n[t[r].name]||void 0!==n[t[r].name]&&this._changeCss(this._officeCss,t[r].cssSelector,"{"+t[r].cssProperty+":"+n[t[r].name]+";}");this._previousOfficeThemeData=n},n.prototype._getAndProcessThemeData=function(e,n,r){var i=this,t=a._OfficeAppFactory.getHostInfo();if(t&&t.hostPlatform==a.HostInfoPlatform.web){if(r==a.AsyncMethods.GetOfficeThemeAsync&&Office.context.officeTheme){var o={};o[a.DDA.Theming.OfficeThemeEnum.BodyBackgroundColor]=Office.context.officeTheme.bodyBackgroundColor,o[a.DDA.Theming.OfficeThemeEnum.BodyForegroundColor]=Office.context.officeTheme.bodyForegroundColor,o[a.DDA.Theming.OfficeThemeEnum.ControlBackgroundColor]=Office.context.officeTheme.controlBackgroundColor,o[a.DDA.Theming.OfficeThemeEnum.ControlForegroundColor]=Office.context.officeTheme.controlForegroundColor,o[a.DDA.Theming.OfficeThemeEnum.IsDarkTheme]=Office.context.officeTheme.isDarkTheme,o[a.DDA.Theming.OfficeThemeEnum.ThemeId]=Office.context.officeTheme.isDarkTheme?a.DDA.Theming.ThemeId.Black:a.DDA.Theming.ThemeId.White,o[a.DDA.Theming.OfficeThemeEnum.FluentThemeData]=Office.context.officeTheme.fluentThemeData,n(o)}}else e(function(e){if("succeeded"==e.status){var t=e.value;n(t)}i._areAllCallsCompleted(r)&&i._onAsyncCallsCompleted&&(i._onAsyncCallsCompleted(),i._onAsyncCallsCompleted=null)})},n.prototype._processOfficeThemeData=function(e){var t=this;this._changeOfficeThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.OfficeThemeChanged,function(e){t._changeOfficeThemeData(e)},null)},n.prototype._processDocumentThemeData=function(e){var t=this;this._changeDocumentThemeData(e),this._eventTarget.addHandlerAsync(Microsoft.Office.WebExtension.EventType.DocumentThemeChanged,function(e){t._changeDocumentThemeData(e)},null)},n.prototype._areAllCallsCompleted=function(e){var t;if(!(t=this._asyncCallsCompleted))return!0;for(var n in e&&t.hasOwnProperty(e)&&(t[e]=!0),t)if(!t.hasOwnProperty(n)||!t[n])return!1;return!0},n);function n(){this._eventTarget=null,this._previousDocumentThemeData=null,this._previousOfficeThemeData=null,this._officeCss=null,this._asyncCallsCompleted=null,this._onAsyncCallsCompleted=null}r.InternalThemeHandler=t})((e=a.DDA||(a.DDA={})).Theming||(e.Theming={}))}(OSF=OSF||{}),function(e){var t,n;t=e.context||(e.context={}),OSF.definePropertyOnNamespace(t,"themeManager",function(){return n||(n=new OSF.DDA.Theming.InternalThemeHandler).InitializeThemeManager(),n})}(Office=Office||{}),function(e){if(!function(){try{return"object"==typeof process&&"[object process]"===String(process)}catch(e){return}}()&&!e.isOfficeReactNative()){try{e.Flights=e.OUtil.parseFlights(!0),e.DisabledChangeGates=e.OUtil.parseDisabledChangeGates(!0)}catch(e){}function t(){OSFPerformance.hostSpecificFileName=e.LoadScriptHelper.getHostBundleJsName(),Office.onReadyInternal(function(){OSFPerfUtil.sendPerformanceTelemetry()})}e._OfficeAppFactory.bootstrap(function(){},function(e){e instanceof Error?console.warn(e.message):console.warn(JSON.stringify(e))}),"complete"===document.readyState||"interactive"===document.readyState?t():window.addEventListener("DOMContentLoaded",function(e){t()})}}(OSF=OSF||{}),OSFPerformance.hostInitializationEnd=OSFPerformance.now(),OSFPerformance.totalJSHeapSize=OSFPerformance.getTotalJSHeapSize(),OSFPerformance.usedJSHeapSize=OSFPerformance.getUsedJSHeapSize(),OSFPerformance.jsHeapSizeLimit=OSFPerformance.getJSHeapSizeLimit();