Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

outlook-15.03.js 141KB

1234567891011121314151617
  1. /* Outlook specific API library */
  2. /* Version: 15.0.4812.3000 */
  3. /*
  4. Copyright (c) Microsoft Corporation. All rights reserved.
  5. */
  6. /*
  7. Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
  8. */
  9. /*!
  10. Copyright (c) Microsoft Corporation. All rights reserved.
  11. */
  12. /*!
  13. Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
  14. */
  15. Type.registerNamespace("Microsoft.Office.WebExtension.MailboxEnums");Microsoft.Office.WebExtension.MailboxEnums.EntityType={MeetingSuggestion:"meetingSuggestion",TaskSuggestion:"taskSuggestion",Address:"address",EmailAddress:"emailAddress",Url:"url",PhoneNumber:"phoneNumber",Contact:"contact",FlightReservations:"flightReservations",ParcelDeliveries:"parcelDeliveries"};Microsoft.Office.WebExtension.MailboxEnums.ItemType={Message:"message",Appointment:"appointment"};Microsoft.Office.WebExtension.MailboxEnums.ResponseType={None:"none",Organizer:"organizer",Tentative:"tentative",Accepted:"accepted",Declined:"declined"};Microsoft.Office.WebExtension.MailboxEnums.RecipientType={Other:"other",DistributionList:"distributionList",User:"user",ExternalUser:"externalUser"};Microsoft.Office.WebExtension.MailboxEnums.AttachmentType={File:"file",Item:"item",Cloud:"cloud"};Microsoft.Office.WebExtension.MailboxEnums.BodyType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType={ProgressIndicator:"progressIndicator",InformationalMessage:"informationalMessage",ErrorMessage:"errorMessage"};Microsoft.Office.WebExtension.CoercionType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.MailboxEnums.UserProfileType={Office365:"office365",OutlookCom:"outlookCom",Enterprise:"enterprise"};Microsoft.Office.WebExtension.MailboxEnums.RestVersion={v1_0:"v1.0",v2_0:"v2.0",Beta:"beta"};Type.registerNamespace("OSF.DDA");var OSF=window.OSF||{};OSF.DDA=OSF.DDA||{};window.OSF.DDA.OutlookAppOm=OSF.DDA.OutlookAppOm=function(n,t,i){this.$$d__callAppReadyCallback$p$0=Function.createDelegate(this,this._callAppReadyCallback$p$0);this.$$d_displayContactCardAsync=Function.createDelegate(this,this.displayContactCardAsync);this.$$d_displayNewMessageFormApi=Function.createDelegate(this,this.displayNewMessageFormApi);this.$$d__displayNewAppointmentFormApi$p$0=Function.createDelegate(this,this._displayNewAppointmentFormApi$p$0);this.$$d_windowOpenOverrideHandler=Function.createDelegate(this,this.windowOpenOverrideHandler);this.$$d__getEwsUrl$p$0=Function.createDelegate(this,this._getEwsUrl$p$0);this.$$d__getDiagnostics$p$0=Function.createDelegate(this,this._getDiagnostics$p$0);this.$$d__getUserProfile$p$0=Function.createDelegate(this,this._getUserProfile$p$0);this.$$d__getItem$p$0=Function.createDelegate(this,this._getItem$p$0);this.$$d__getInitialDataResponseHandler$p$0=Function.createDelegate(this,this._getInitialDataResponseHandler$p$0);window.OSF.DDA.OutlookAppOm._instance$p=this;this._officeAppContext$p$0=n;this._appReadyCallback$p$0=i;var u=this;var r=function(){i&&u.invokeHostMethod(1,null,u.$$d__getInitialDataResponseHandler$p$0)};this._areStringsLoaded$p$0()?r():this._loadLocalizedScript$p$0(r)};window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i=function(n){if(!n)throw Error.create(window._u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text);};window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i=function(n,t,i,r){if(n<t||n>i)throw Error.argumentOutOfRange(r);};window.OSF.DDA.OutlookAppOm._getHtmlBody$p=function(n){var t="";if("htmlBody"in n){window.OSF.DDA.OutlookAppOm._throwOnInvalidHtmlBody$p(n.htmlBody);t=n.htmlBody}return t};window.OSF.DDA.OutlookAppOm._getAttachments$p=function(n){var t=[];if("attachments"in n){t=n.attachments;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentsArray$p(t)}return t};window.OSF.DDA.OutlookAppOm._getOptionsAndCallback$p=function(n){var t=[];"options"in n&&(t[0]=n.options);"callback"in n&&(t[t.length]=n.callback);return t};window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p=function(n){var r=new Array(0);if(Array.isInstanceOfType(n))for(var t=0;t<n.length;t++)if(Object.isInstanceOfType(n[t])){var i=n[t];window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachment$p(i);r[t]=window.OSF.DDA.OutlookAppOm._createAttachmentData$p(i)}else throw Error.argument("attachments");return r};window.OSF.DDA.OutlookAppOm._throwOnInvalidHtmlBody$p=function(n){if(!String.isInstanceOfType(n))throw Error.argument("htmlBody");if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argument("htmlBody");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody")};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentsArray$p=function(n){if(!Array.isInstanceOfType(n))throw Error.argument("attachments");};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachment$p=function(n){if(!Object.isInstanceOfType(n))throw Error.argument("attachments");if(!("type"in n)||!("name"in n))throw Error.argument("attachments");if(!("url"in n||"itemId"in n))throw Error.argument("attachments");};window.OSF.DDA.OutlookAppOm._createAttachmentData$p=function(n){var i=null;if(n.type==="file"){var u=n.url;var t=n.name;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentUrlOrName$p(u,t);i=window.OSF.DDA.OutlookAppOm._createFileAttachmentData$p(u,t)}else if(n.type==="item"){var r=window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n.itemId);var t=n.name;window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentItemIdOrName$p(r,t);i=window.OSF.DDA.OutlookAppOm._createItemAttachmentData$p(r,t)}else throw Error.argument("attachments");return i};window.OSF.DDA.OutlookAppOm._createFileAttachmentData$p=function(n,t){return["file",t,n]};window.OSF.DDA.OutlookAppOm._createItemAttachmentData$p=function(n,t){return["item",t,n]};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentUrlOrName$p=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>2048)throw Error.argumentOutOfRange("attachments",n.length,window._u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text);window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p(t)};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentItemIdOrName$p=function(n,t){if(!String.isInstanceOfType(n)||!String.isInstanceOfType(t))throw Error.argument("attachments");if(n.length>200)throw Error.argumentOutOfRange("attachments",n.length,window._u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text);window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p(t)};window.OSF.DDA.OutlookAppOm._throwOnInvalidAttachmentName$p=function(n){if(n.length>255)throw Error.argumentOutOfRange("attachments",n.length,window._u.ExtensibilityStrings.l_AttachmentNameTooLong_Text);};window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p=function(n){if(!n)throw Error.argumentNull("restVersion");if(n!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v2_0&&n!==window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.Beta)throw Error.argument("restVersion");};window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost=function(n){return window.OSF.DDA.OutlookAppOm._instance$p._initialData$p$0&&window.OSF.DDA.OutlookAppOm._instance$p._initialData$p$0.get__isRestIdSupported$i$0()?window.OSF.DDA.OutlookAppOm._instance$p.convertToRestId(n,window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0):window.OSF.DDA.OutlookAppOm._instance$p.convertToEwsId(n,window.Microsoft.Office.WebExtension.MailboxEnums.RestVersion.v1_0)};window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p=function(n,t,i){if(Object.getType(n)!==t)throw Error.argumentType(i);};window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p=function(n,t,i,r){if(!$h.ScriptHelpers.isNullOrUndefined(n)){window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(n,String,r);var u=n;window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(u.length,t,i,r)}};window.OSF.DDA.OutlookAppOm._convertToOutlookParameters$p=function(n,t){var i=null;switch(n){case 1:case 2:case 12:case 3:case 14:case 18:case 26:case 32:case 41:case 34:break;case 4:var r=window.JSON.stringify(t.customProperties);i=[r];break;case 5:i=[t.body];break;case 8:case 9:i=[t.itemId];break;case 7:i=[window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.requiredAttendees),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.optionalAttendees),t.start,t.end,t.location,window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.resources),t.subject,t.body];break;case 44:i=[window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.toRecipients),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.ccRecipients),window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p(t.bccRecipients),t.subject,t.htmlBody,t.attachments];break;case 43:i=[t.ewsIdOrEmail];break;case 40:i=[t.extensionId,t.consentState];break;case 11:case 10:i=[t.htmlBody];break;case 31:case 30:i=[t.htmlBody,t.attachments];break;case 23:case 13:case 38:case 29:i=[t.data,t.coercionType];break;case 37:case 28:i=[t.coercionType];break;case 17:i=[t.subject];break;case 15:i=[t.recipientField];break;case 22:case 21:i=[t.recipientField,window.OSF.DDA.OutlookAppOm._convertComposeEmailDictionaryParameterForSetApi$p(t.recipientArray)];break;case 19:i=[t.itemId,t.name];break;case 16:i=[t.uri,t.name];break;case 20:i=[t.attachmentIndex];break;case 25:i=[t.TimeProperty,t.time];break;case 24:i=[t.TimeProperty];break;case 27:i=[t.location];break;case 33:case 35:i=[t.key,t.type,t.persistent,t.message,t.icon];break;case 36:i=[t.key];break;default:break}return i};window.OSF.DDA.OutlookAppOm._convertRecipientArrayParameterForOutlookForDisplayApi$p=function(n){return n?n.join(";"):null};window.OSF.DDA.OutlookAppOm._convertComposeEmailDictionaryParameterForSetApi$p=function(n){if(!n)return null;for(var i=new Array(n.length),t=0;t<n.length;t++)i[t]=[n[t].address,n[t].name];return i};window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p=function(n,t){if($h.ScriptHelpers.isNullOrUndefined(n))return null;window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(n,Array,t);var r=n;var u=null;var f=!1;window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(r.length,0,window.OSF.DDA.OutlookAppOm._maxRecipients$p,String.format("{0}.length",t));for(var i=0;i<r.length;i++)if($h.EmailAddressDetails.isInstanceOfType(r[i])){f=!0;break}f&&(u=[]);for(var i=0;i<r.length;i++)if(f){u[i]=$h.EmailAddressDetails.isInstanceOfType(r[i])?r[i].emailAddress:r[i];window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(u[i],String,String.format("{0}[{1}]",t,i))}else window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(r[i],String,String.format("{0}[{1}]",t,i));return u};OSF.DDA.OutlookAppOm.prototype={_initialData$p$0:null,_item$p$0:null,_userProfile$p$0:null,_diagnostics$p$0:null,_officeAppContext$p$0:null,_appReadyCallback$p$0:null,_clientEndPoint$p$0:null,get_clientEndPoint:function(){this._clientEndPoint$p$0||(this._clientEndPoint$p$0=window.OSF._OfficeAppFactory.getClientEndPoint());return this._clientEndPoint$p$0},set_clientEndPoint:function(n){this._clientEndPoint$p$0=n;return n},get_initialData:function(){return this._initialData$p$0},get__appName$i$0:function(){return this._officeAppContext$p$0.get_appName()},initialize:function(n){var t="itemType";this._initialData$p$0=new $h.InitialData(n);1===n[t]?this._item$p$0=new $h.Message(this._initialData$p$0):3===n[t]?this._item$p$0=new $h.MeetingRequest(this._initialData$p$0):2===n[t]?this._item$p$0=new $h.Appointment(this._initialData$p$0):4===n[t]?this._item$p$0=new $h.MessageCompose(this._initialData$p$0):5===n[t]&&(this._item$p$0=new $h.AppointmentCompose(this._initialData$p$0));this._userProfile$p$0=new $h.UserProfile(this._initialData$p$0);this._diagnostics$p$0=new $h.Diagnostics(this._initialData$p$0,this._officeAppContext$p$0.get_appName());this._initializeMethods$p$0();$h.InitialData._defineReadOnlyProperty$i(this,"item",this.$$d__getItem$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"userProfile",this.$$d__getUserProfile$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"diagnostics",this.$$d__getDiagnostics$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"ewsUrl",this.$$d__getEwsUrl$p$0);window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===64&&this._initialData$p$0.get__overrideWindowOpen$i$0()&&(window.open=this.$$d_windowOpenOverrideHandler)},windowOpenOverrideHandler:function(n,t,i,r){this.invokeHostMethod(403,{launchUrl:n},null)},makeEwsRequestAsync:function(n){for(var r=[],i=1;i<arguments.length;++i)r[i-1]=arguments[i];if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(n.length>window.OSF.DDA.OutlookAppOm._maxEwsRequestSize$p)throw Error.argument("data",window._u.ExtensibilityStrings.l_EwsRequestOversized_Text);this._throwOnMethodCallForInsufficientPermission$i$0(3,"makeEwsRequestAsync");var u=$h.CommonParameters.parse(r,!0,!0);var t=new $h.EwsRequest(u._asyncContext$p$0);var f=this;t.onreadystatechange=function(){4===t.get__requestState$i$1()&&u._callback$p$0(t._asyncResult$p$0)};t.send(n)},recordDataPoint:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.invokeHostMethod(402,n,null)},recordTrace:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.invokeHostMethod(401,n,null)},trackCtq:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.invokeHostMethod(400,n,null)},convertToLocalClientTime:function(n){var t=new Date(n.getTime());var i=t.getTimezoneOffset()*-1;if(this._initialData$p$0&&this._initialData$p$0.get__timeZoneOffsets$i$0()){t.setUTCMinutes(t.getUTCMinutes()-i);i=this._findOffset$p$0(t);t.setUTCMinutes(t.getUTCMinutes()+i)}var r=this._dateToDictionary$i$0(t);r.timezoneOffset=i;return r},convertToUtcClientTime:function(n){var t=this._dictionaryToDate$i$0(n);if(this._initialData$p$0&&this._initialData$p$0.get__timeZoneOffsets$i$0()){var i=this._findOffset$p$0(t);t.setUTCMinutes(t.getUTCMinutes()-i);i=n.timezoneOffset?n.timezoneOffset:t.getTimezoneOffset()*-1;t.setUTCMinutes(t.getUTCMinutes()+i)}return t},convertToRestId:function(n,t){if(!n)throw Error.argumentNull("itemId");window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p(t);return n.replace(new RegExp("[/]","g"),"-").replace(new RegExp("[+]","g"),"_")},convertToEwsId:function(n,t){if(!n)throw Error.argumentNull("itemId");window.OSF.DDA.OutlookAppOm._throwOnInvalidRestVersion$p(t);return n.replace(new RegExp("[-]","g"),"/").replace(new RegExp("[_]","g"),"+")},getUserIdentityTokenAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];this._throwOnMethodCallForInsufficientPermission$i$0(1,"getUserIdentityTokenAsync");var t=$h.CommonParameters.parse(i,!0,!0);this._invokeGetTokenMethodAsync$p$0(2,"GetUserIdentityToken",t._callback$p$0,t._asyncContext$p$0)},getCallbackTokenAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];this._throwOnMethodCallForInsufficientPermission$i$0(1,"getCallbackTokenAsync");var t=$h.CommonParameters.parse(i,!0,!0);this._invokeGetTokenMethodAsync$p$0(12,"GetCallbackToken",t._callback$p$0,t._asyncContext$p$0)},displayMessageForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.invokeHostMethod(8,{itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n)},null)},displayAppointmentForm:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("itemId");this.invokeHostMethod(9,{itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n)},null)},RegisterConsentAsync:function(n){if(n!==2&&n!==1&&n)throw Error.argumentOutOfRange("consentState");var t={};t.consentState=n.toString();t.extensionId=this.GetExtensionId();this.invokeHostMethod(40,t,null)},CloseApp:function(){this.invokeHostMethod(42,null,null)},GetIsRead:function(){return this._initialData$p$0.get__isRead$i$0()},GetEndNodeUrl:function(){return this._initialData$p$0.get__endNodeUrl$i$0()},GetConsentMetadata:function(){return this._initialData$p$0.get__consentMetadata$i$0()},GetEntryPointUrl:function(){return this._initialData$p$0.get__entryPointUrl$i$0()},GetMarketplaceContentMarket:function(){return this._initialData$p$0.get__marketplaceContentMarket$i$0()},GetMarketplaceAssetId:function(){return this._initialData$p$0.get__marketplaceAssetId$i$0()},GetExtensionId:function(){return this._initialData$p$0.get__extensionId$i$0()},createAsyncResult:function(n,t,i,r,u){var e={};var f=null;e[window.OSF.DDA.AsyncResultEnum.Properties.Value]=n;e[window.OSF.DDA.AsyncResultEnum.Properties.Context]=r;if(0!==t){f={};var o=$h.OutlookErrorManager.getErrorArgs(i);f[window.OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=o.name;f[window.OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=u?u:o.message;f[window.OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=i}return new window.OSF.DDA.AsyncResult(e,f)},_throwOnMethodCallForInsufficientPermission$i$0:function(n,t){if(this._initialData$p$0._permissionLevel$p$0<n)throw Error.create(String.format(window._u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text,t));},_displayReplyForm$i$0:function(n){this._displayReplyFormHelper$p$0(n,!1)},_displayReplyAllForm$i$0:function(n){this._displayReplyFormHelper$p$0(n,!0)},_displayReplyFormHelper$p$0:function(n,t){if(String.isInstanceOfType(n))this._doDisplayReplyForm$p$0(n,t);else if(Object.isInstanceOfType(n)&&Object.getTypeName(n)==="Object")this._doDisplayReplyFormWithAttachments$p$0(n,t);else throw Error.argumentType();},_doDisplayReplyForm$p$0:function(n,t){$h.ScriptHelpers.isNullOrUndefined(n)||window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");this.invokeHostMethod(t?11:10,{htmlBody:n},null)},_doDisplayReplyFormWithAttachments$p$0:function(n,t){var u=window.OSF.DDA.OutlookAppOm._getHtmlBody$p(n);var r=window.OSF.DDA.OutlookAppOm._getAttachments$p(n);var i=$h.CommonParameters.parse(window.OSF.DDA.OutlookAppOm._getOptionsAndCallback$p(n),!1);var f=this;this._standardInvokeHostMethod$i$0(t?31:30,{htmlBody:u,attachments:window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p(r)},function(n){return n},i._asyncContext$p$0,i._callback$p$0)},_standardInvokeHostMethod$i$0:function(n,t,i,r,u){var f=this;this.invokeHostMethod(n,t,function(n,t){if(u){var o=null;if(Object.isInstanceOfType(t)){var e=t;if("error"in e||"data"in e||"errorCode"in e)if(e.error){var s=e.errorCode;o=f.createAsyncResult(null,1,s,r,null)}else{var h=i?i(e.data):e.data;o=f.createAsyncResult(h,0,0,r,null)}}!o&&n&&(o=f.createAsyncResult(null,1,9002,r,null));u(o)}})},invokeHostMethod:function(n,t,i){if(64===this._officeAppContext$p$0.get_appName()){var r={ApiParams:t};r.MethodData={ControlId:window.OSF._OfficeAppFactory.getId(),DispatchId:n};n===1?this.get_clientEndPoint().invoke("GetInitialData",i,r):this.get_clientEndPoint().invoke("ExecuteMethod",i,r)}else if(this._isOwaOnlyMethod$p$0(n))i&&i(-2,null);else{var u=window.OSF.DDA.OutlookAppOm._convertToOutlookParameters$p(n,t);var f=this;window.OSF.ClientHostController.execute(n,u,function(n,t){if(i){var f=n.toArray();var u=window.JSON.parse(f[0]);if(Object.isInstanceOfType(u)){var r=u;if(f.length>1&&f[1]){r.error=!0;r.errorCode=f[1]}else r.error=!1;i(t,r)}else if(Number.isInstanceOfType(u)){var e={};e.error=!0;e.errorCode=u;i(t,e)}else throw Error.notImplemented("Return data type from host must be Dictionary or int");}})}},_dictionaryToDate$i$0:function(n){var t=new Date(n.year,n.month,n.date,n.hours,n.minutes,n.seconds,n.milliseconds?n.milliseconds:0);if(window.isNaN(t.getTime()))throw Error.format(window._u.ExtensibilityStrings.l_InvalidDate_Text);return t},_dateToDictionary$i$0:function(n){var t={};t.month=n.getMonth();t.date=n.getDate();t.year=n.getFullYear();t.hours=n.getHours();t.minutes=n.getMinutes();t.seconds=n.getSeconds();t.milliseconds=n.getMilliseconds();return t},_isOwaOnlyMethod$p$0:function(n){switch(n){case 402:case 401:case 400:case 403:return!0;default:return!1}},_displayNewAppointmentFormApi$p$0:function(n){var u=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.requiredAttendees,"requiredAttendees");var r=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.optionalAttendees,"optionalAttendees");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.location,0,window.OSF.DDA.OutlookAppOm._maxLocationLength$p,"location");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.body,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"body");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.subject,0,window.OSF.DDA.OutlookAppOm._maxSubjectLength$p,"subject");if(!$h.ScriptHelpers.isNullOrUndefined(n.start)){window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(n.start,Date,"start");var o=n.start;n.start=o.getTime();if(!$h.ScriptHelpers.isNullOrUndefined(n.end)){window.OSF.DDA.OutlookAppOm._throwOnArgumentType$p(n.end,Date,"end");var i=n.end;if(i<o)throw Error.argumentOutOfRange("end",i,window._u.ExtensibilityStrings.l_InvalidEventDates_Text);n.end=i.getTime()}}var t=null;if(u||r){t={};var s=n;for(var f in s){var e={key:f,value:s[f]};t[e.key]=e.value}u&&(t.requiredAttendees=u);r&&(t.optionalAttendees=r)}this.invokeHostMethod(7,t||n,null)},displayNewMessageFormApi:function(n){var t={};if(n){var e=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.toRecipients,"toRecipients");var o=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.ccRecipients,"ccRecipients");var s=window.OSF.DDA.OutlookAppOm._validateAndNormalizeRecipientEmails$p(n.bccRecipients,"bccRecipients");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.htmlBody,0,window.OSF.DDA.OutlookAppOm.maxBodyLength,"htmlBody");window.OSF.DDA.OutlookAppOm._validateOptionalStringParameter$p(n.subject,0,window.OSF.DDA.OutlookAppOm._maxSubjectLength$p,"subject");var f=window.OSF.DDA.OutlookAppOm._getAttachments$p(n);var i=n;for(var r in i){var u={key:r,value:i[r]};t[u.key]=u.value}e&&(t.toRecipients=e);o&&(t.ccRecipients=o);s&&(t.bccRecipients=s);f&&(t.attachments=window.OSF.DDA.OutlookAppOm._createAttachmentsDataForHost$p(f))}this.invokeHostMethod(44,t||n,null)},displayContactCardAsync:function(n,t){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("ewsIdOrEmail");var u=null;var r=null;if(t){var i=$h.CommonParameters.parse([t],!1);u=i._asyncContext$p$0;r=i._callback$p$0}this._standardInvokeHostMethod$i$0(43,{ewsIdOrEmail:n.trim()},null,u,r)},_initializeMethods$p$0:function(){var n=this;if($h.Item.isInstanceOfType(this._item$p$0)){n.displayNewAppointmentForm=this.$$d__displayNewAppointmentFormApi$p$0;n.displayNewMessageForm=this.$$d_displayNewMessageFormApi;n.displayContactCardAsync=this.$$d_displayContactCardAsync}},_getInitialDataResponseHandler$p$0:function(n,t){if(!n){this.initialize(t);this.displayName="mailbox";window.setTimeout(this.$$d__callAppReadyCallback$p$0,0)}},_callAppReadyCallback$p$0:function(){this._appReadyCallback$p$0()},_invokeGetTokenMethodAsync$p$0:function(n,t,i,r){if($h.ScriptHelpers.isNullOrUndefined(i))throw Error.argumentNull("callback");var u=this;this.invokeHostMethod(n,null,function(n,t){var e;if(n)e=u.createAsyncResult(null,1,9017,r,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,n));else{var f=t;e=f.wasSuccessful?u.createAsyncResult(f.token,0,0,r,null):u.createAsyncResult(null,1,f.errorCode,r,f.errorMessage)}i(e)})},_getItem$p$0:function(){return this._item$p$0},_getUserProfile$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._initialData$p$0._permissionLevel$p$0);return this._userProfile$p$0},_getDiagnostics$p$0:function(){return this._diagnostics$p$0},_getEwsUrl$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._initialData$p$0._permissionLevel$p$0);return this._initialData$p$0.get__ewsUrl$i$0()},_findOffset$p$0:function(n){for(var r=this._initialData$p$0.get__timeZoneOffsets$i$0(),i=0;i<r.length;i++){var t=r[i];var f=window.parseInt(t.start);var u=window.parseInt(t.end);if(n.getTime()-f>=0&&n.getTime()-u<0)return window.parseInt(t.offset)}throw Error.format(window._u.ExtensibilityStrings.l_InvalidDate_Text);},_areStringsLoaded$p$0:function(){var n=!1;try{n=!$h.ScriptHelpers.isNullOrUndefined(window._u.ExtensibilityStrings.l_EwsRequestOversized_Text)}catch(t){}return n},_loadLocalizedScript$p$0:function(n){for(var s=null,l="",a=document.getElementsByTagName("script"),o=a.length-1;o>=0;o--){var i=null;var v=a[o].attributes;if(v){var p=v.getNamedItem("src");p&&(i=p.value);if(i){var y=!1;i=i.toLowerCase();var f=i.indexOf("office_strings.js");if(f<0){f=i.indexOf("office_strings.debug.js");y=!0}if(f>0&&f<i.length){s=i.replace(y?"office_strings.debug.js":"office_strings.js","outlook_strings.js");var r=i.substring(0,f);var u=r.lastIndexOf("/",r.length-2);u===-1&&(u=r.lastIndexOf("\\",r.length-2));u!==-1&&r.length>u+1&&(l=r.substring(0,u+1));break}}}}if(s){var h=document.getElementsByTagName("head")[0];var t=null;var b=this;var e=function(){if(n&&(!t.readyState||t.readyState&&(t.readyState==="loaded"||t.readyState==="complete"))){t.onload=null;t.onreadystatechange=null;n()}};var c=this;var w=function(){if(!c._areStringsLoaded$p$0()){var n=l+"en-us/"+"outlook_strings.js";t.onload=null;t.onreadystatechange=null;t=c._createScriptElement$p$0(n);t.onload=e;t.onreadystatechange=e;h.appendChild(t)}};t=this._createScriptElement$p$0(s);t.onload=e;t.onreadystatechange=e;window.setTimeout(w,2e3);h.appendChild(t)}},_createScriptElement$p$0:function(n){var t=document.createElement("script");t.type="text/javascript";t.src=n;return t}};window.OSF.DDA.Settings=OSF.DDA.Settings=function(n){this._rawData$p$0=n};window.OSF.DDA.Settings._convertFromRawSettings$p=function(n){if(!n)return{};if(window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===8){var t=n.SettingsKey;if(t)return window.OSF.DDA.SettingsManager.deserializeSettings(t)}return n};OSF.DDA.Settings.prototype={_rawData$p$0:null,_settingsData$p$0:null,get__data$p$0:function(){if(!this._settingsData$p$0){this._settingsData$p$0=window.OSF.DDA.Settings._convertFromRawSettings$p(this._rawData$p$0);this._rawData$p$0=null}return this._settingsData$p$0},get:function(n){return this.get__data$p$0()[n]},set:function(n,t){this.get__data$p$0()[n]=t},remove:function(n){delete this.get__data$p$0()[n]},saveAsync:function(){for(var i=[],t=0;t<arguments.length;++t)i[t]=arguments[t];var n=$h.CommonParameters.parse(i,!1);if(window.JSON.stringify(window.OSF.DDA.SettingsManager.serializeSettings(this.get__data$p$0())).length>32768){var r=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,n._asyncContext$p$0,"");var u=this;window.setTimeout(function(){n._callback$p$0(r)},0);return}window.OSF.DDA.OutlookAppOm._instance$p.get__appName$i$0()===64?this._saveSettingsForOwa$p$0(n._callback$p$0,n._asyncContext$p$0):this._saveSettingsForOutlook$p$0(n._callback$p$0,n._asyncContext$p$0)},_saveSettingsForOutlook$p$0:function(n,t){var r=null;try{var f=window.OSF.DDA.SettingsManager.serializeSettings(this.get__data$p$0());var e=window.JSON.stringify(f);var u={SettingsKey:e};window.OSF.DDA.RichClientSettingsManager.write(u)}catch(o){r=o}if(n){var i;i=r?window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,t,r.message):window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,0,0,t,null);n(i)}},_saveSettingsForOwa$p$0:function(n,t){var i=window.OSF.DDA.SettingsManager.serializeSettings(this.get__data$p$0());var r=this;window.OSF.DDA.OutlookAppOm._instance$p.invokeHostMethod(404,[i],function(i,r){if(n){var u;if(i)u=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9017,t,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,i));else{var f=r;u=f.error?window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,9019,t,f.errorMessage):window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,0,0,t,null)}n(u)}})}};Type.registerNamespace("$h");var $h=window.$h||{};Type.registerNamespace("Office.cast");var Office=window.Office||{};Office.cast=Office.cast||{};$h.Appointment=function(n){this.$$d__getOrganizer$p$2=Function.createDelegate(this,this._getOrganizer$p$2);this.$$d__getNormalizedSubject$p$2=Function.createDelegate(this,this._getNormalizedSubject$p$2);this.$$d__getSubject$p$2=Function.createDelegate(this,this._getSubject$p$2);this.$$d__getResources$p$2=Function.createDelegate(this,this._getResources$p$2);this.$$d__getRequiredAttendees$p$2=Function.createDelegate(this,this._getRequiredAttendees$p$2);this.$$d__getOptionalAttendees$p$2=Function.createDelegate(this,this._getOptionalAttendees$p$2);this.$$d__getLocation$p$2=Function.createDelegate(this,this._getLocation$p$2);this.$$d__getEnd$p$2=Function.createDelegate(this,this._getEnd$p$2);this.$$d__getStart$p$2=Function.createDelegate(this,this._getStart$p$2);$h.Appointment.initializeBase(this,[n]);$h.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"resources",this.$$d__getResources$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"normalizedSubject",this.$$d__getNormalizedSubject$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"organizer",this.$$d__getOrganizer$p$2)};$h.Appointment.prototype={getEntities:function(){return this._data$p$0._getEntities$i$0()},getEntitiesByType:function(n){return this._data$p$0._getEntitiesByType$i$0(n)},getRegExMatches:function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatches");return this._data$p$0._getRegExMatches$i$0()},getFilteredEntitiesByName:function(n){return this._data$p$0._getFilteredEntitiesByName$i$0(n)},getRegExMatchesByName:function(n){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatchesByName");return this._data$p$0._getRegExMatchesByName$i$0(n)},displayReplyForm:function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyForm$i$0(n)},displayReplyAllForm:function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyAllForm$i$0(n)},getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},_getStart$p$2:function(){return this._data$p$0.get__start$i$0()},_getEnd$p$2:function(){return this._data$p$0.get__end$i$0()},_getLocation$p$2:function(){return this._data$p$0.get__location$i$0()},_getOptionalAttendees$p$2:function(){return this._data$p$0.get__cc$i$0()},_getRequiredAttendees$p$2:function(){return this._data$p$0.get__to$i$0()},_getResources$p$2:function(){return this._data$p$0.get__resources$i$0()},_getSubject$p$2:function(){return this._data$p$0.get__subject$i$0()},_getNormalizedSubject$p$2:function(){return this._data$p$0.get__normalizedSubject$i$0()},_getOrganizer$p$2:function(){return this._data$p$0.get__organizer$i$0()}};$h.AppointmentCompose=function(n){this.$$d__getLocation$p$2=Function.createDelegate(this,this._getLocation$p$2);this.$$d__getEnd$p$2=Function.createDelegate(this,this._getEnd$p$2);this.$$d__getStart$p$2=Function.createDelegate(this,this._getStart$p$2);this.$$d__getOptionalAttendees$p$2=Function.createDelegate(this,this._getOptionalAttendees$p$2);this.$$d__getRequiredAttendees$p$2=Function.createDelegate(this,this._getRequiredAttendees$p$2);$h.AppointmentCompose.initializeBase(this,[n]);$h.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$2)};$h.AppointmentCompose.prototype={_requiredAttendees$p$2:null,_optionalAttendees$p$2:null,_start$p$2:null,_end$p$2:null,_location$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Appointment},_getRequiredAttendees$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._requiredAttendees$p$2||(this._requiredAttendees$p$2=new $h.ComposeRecipient(0,"requiredAttendees"));return this._requiredAttendees$p$2},_getOptionalAttendees$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._optionalAttendees$p$2||(this._optionalAttendees$p$2=new $h.ComposeRecipient(1,"optionalAttendees"));return this._optionalAttendees$p$2},_getStart$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._start$p$2||(this._start$p$2=new $h.ComposeTime(1));return this._start$p$2},_getEnd$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._end$p$2||(this._end$p$2=new $h.ComposeTime(2));return this._end$p$2},_getLocation$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._location$p$2||(this._location$p$2=new $h.ComposeLocation);return this._location$p$2}};$h.AttachmentConstants=function(){};$h.AttachmentDetails=function(n){this.$$d__getIsInline$p$0=Function.createDelegate(this,this._getIsInline$p$0);this.$$d__getAttachmentType$p$0=Function.createDelegate(this,this._getAttachmentType$p$0);this.$$d__getSize$p$0=Function.createDelegate(this,this._getSize$p$0);this.$$d__getContentType$p$0=Function.createDelegate(this,this._getContentType$p$0);this.$$d__getName$p$0=Function.createDelegate(this,this._getName$p$0);this.$$d__getId$p$0=Function.createDelegate(this,this._getId$p$0);this._data$p$0=n;$h.InitialData._defineReadOnlyProperty$i(this,"id",this.$$d__getId$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"name",this.$$d__getName$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"contentType",this.$$d__getContentType$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"size",this.$$d__getSize$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"attachmentType",this.$$d__getAttachmentType$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"isInline",this.$$d__getIsInline$p$0)};$h.AttachmentDetails.prototype={_data$p$0:null,_getId$p$0:function(){return this._data$p$0.id},_getName$p$0:function(){return this._data$p$0.name},_getContentType$p$0:function(){return this._data$p$0.contentType},_getSize$p$0:function(){return this._data$p$0.size},_getAttachmentType$p$0:function(){var n=this._data$p$0.attachmentType;return n<$h.AttachmentDetails._attachmentTypeMap$p.length?$h.AttachmentDetails._attachmentTypeMap$p[n]:window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File},_getIsInline$p$0:function(){return this._data$p$0.isInline}};$h.Body=function(){};$h.Body._tryMapToHostCoercionType$i=function(n,t){t.val=undefined;if(n===window.Microsoft.Office.WebExtension.CoercionType.Html)t.val=3;else if(n===window.Microsoft.Office.WebExtension.CoercionType.Text)t.val=0;else return!1;return!0};$h.Body.prototype={getAsync:function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"body.getAsync");var e=$h.CommonParameters.parse(f,!0);var i;var u,r;if(!(r=$h.Body._tryMapToHostCoercionType$i(n,u={val:i}),i=u.val,r))throw Error.argument("coercionType");var o={coercionType:i};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(37,o,null,e._asyncContext$p$0,e._callback$p$0)}};$h.ComposeBody=function(){$h.ComposeBody.initializeBase(this)};$h.ComposeBody._createParameterDictionaryToHost$i=function(n,t){var r={data:n};if(t._options$p$0&&!$h.ScriptHelpers.isNull(t._options$p$0.coercionType)){var i;var f,u;if(!(u=$h.Body._tryMapToHostCoercionType$i(t._options$p$0.coercionType,f={val:i}),i=f.val,u)){t._callback$p$0&&t._callback$p$0(window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(null,1,1e3,t._asyncContext$p$0,null));return null}r.coercionType=i}else r.coercionType=0;return r};$h.ComposeBody.prototype={getTypeAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"body.getTypeAsync");var t=$h.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(14,null,null,t._asyncContext$p$0,t._callback$p$0)},setSelectedDataAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.setSelectedDataAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var r=$h.ComposeBody._createParameterDictionaryToHost$i(n,i);r&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(13,r,null,i._asyncContext$p$0,i._callback$p$0)},prependAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.prependAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var r=$h.ComposeBody._createParameterDictionaryToHost$i(n,i);r&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(23,r,null,i._asyncContext$p$0,i._callback$p$0)},setAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"body.setAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var r=$h.ComposeBody._createParameterDictionaryToHost$i(n,i);r&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(38,r,null,i._asyncContext$p$0,i._callback$p$0)}};$h.ComposeItem=function(n){this.$$d__getBody$p$1=Function.createDelegate(this,this._getBody$p$1);this.$$d__getSubject$p$1=Function.createDelegate(this,this._getSubject$p$1);$h.ComposeItem.initializeBase(this,[n]);$h.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$1);$h.InitialData._defineReadOnlyProperty$i(this,"body",this.$$d__getBody$p$1)};$h.ComposeItem.prototype={_subject$p$1:null,_body$p$1:null,addFileAttachmentAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"addFileAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("uri");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,2048,"uri");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(t.length,0,255,"attachmentName");var r=$h.CommonParameters.parse(u,!1);var f={uri:n,name:t,__timeout__:6e5};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(16,f,null,r._asyncContext$p$0,r._callback$p$0)},addItemAttachmentAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"addItemAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("itemId");if(!$h.ScriptHelpers.isNonEmptyString(t))throw Error.argument("attachmentName");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,200,"itemId");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(t.length,0,255,"attachmentName");var r=$h.CommonParameters.parse(u,!1);var f={itemId:window.OSF.DDA.OutlookAppOm.getItemIdBasedOnHost(n),name:t,__timeout__:6e5};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(19,f,null,r._asyncContext$p$0,r._callback$p$0)},removeAttachmentAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"removeAttachmentAsync");if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("attachmentId");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,200,"attachmentId");var i=$h.CommonParameters.parse(r,!1);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(20,{attachmentIndex:n},null,i._asyncContext$p$0,i._callback$p$0)},getSelectedDataAsync:function(n){for(var f=[],t=1;t<arguments.length;++t)f[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getSelectedDataAsync");var e=$h.CommonParameters.parse(f,!0);var i;var u,r;if(n!==window.Microsoft.Office.WebExtension.CoercionType.Html&&n!==window.Microsoft.Office.WebExtension.CoercionType.Text||!(r=$h.Body._tryMapToHostCoercionType$i(n,u={val:i}),i=u.val,r))throw Error.argument("coercionType");var o={coercionType:i};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(28,o,null,e._asyncContext$p$0,e._callback$p$0)},setSelectedDataAsync:function(n){for(var u=[],t=1;t<arguments.length;++t)u[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"setSelectedDataAsync");var i=$h.CommonParameters.parse(u,!1);if(!String.isInstanceOfType(n))throw Error.argumentType("data",Object.getType(n),String);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,1e6,"data");var r=$h.ComposeBody._createParameterDictionaryToHost$i(n,i);r&&window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(29,r,null,i._asyncContext$p$0,i._callback$p$0)},close:function(){window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(41,null,null,null,null)},_getBody$p$1:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._body$p$1||(this._body$p$1=new $h.ComposeBody);return this._body$p$1},_getSubject$p$1:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._subject$p$1||(this._subject$p$1=new $h.ComposeSubject);return this._subject$p$1},saveAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"saveAsync");var t=$h.CommonParameters.parse(i,!1);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(32,null,null,t._asyncContext$p$0,t._callback$p$0)}};$h.ComposeRecipient=function(n,t){this._type$p$0=n;this._propertyName$p$0=t};$h.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p=function(n,t){if(!n&&!t)throw Error.argument("recipients");if(n&&n.length>255)throw Error.argumentOutOfRange("recipients",n.length,window._u.ExtensibilityStrings.l_DisplayNameTooLong_Text);if(t&&t.length>571)throw Error.argumentOutOfRange("recipients",t.length,window._u.ExtensibilityStrings.l_EmailAddressTooLong_Text);};$h.ComposeRecipient._getAsyncFormatter$p=function(n){for(var r=n,i=[],t=0;t<r.length;t++){var u=new $h.EmailAddressDetails(r[t]);i[t]=u}return i};$h.ComposeRecipient._createEmailDictionaryForHost$p=function(n,t){return{address:n,name:t}};$h.ComposeRecipient.prototype={_propertyName$p$0:null,_type$p$0:0,getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,this._propertyName$p$0+".getAsync");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(15,{recipientField:this._type$p$0},$h.ComposeRecipient._getAsyncFormatter$p,t._asyncContext$p$0,t._callback$p$0)},setAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._propertyName$p$0+".setAsync");this.setAddHelper(n,i,!0)},addAsync:function(n){for(var i=[],t=1;t<arguments.length;++t)i[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._propertyName$p$0+".addAsync");this.setAddHelper(n,i,!1)},setAddHelper:function(n,t,i){window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,100,"recipients");var s=$h.CommonParameters.parse(t,!1);var f=[];if(Array.isInstanceOfType(n))for(var r=0;r<n.length;r++)if(String.isInstanceOfType(n[r])){$h.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(n[r],n[r]);f[r]=$h.ComposeRecipient._createEmailDictionaryForHost$p(n[r],n[r])}else if($h.EmailAddressDetails.isInstanceOfType(n[r])){var u=n[r];$h.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(u.displayName,u.emailAddress);f[r]=$h.ComposeRecipient._createEmailDictionaryForHost$p(u.emailAddress,u.displayName)}else if(Object.isInstanceOfType(n[r])){var h=n[r];var e=h.emailAddress;var o=h.displayName;$h.ComposeRecipient._throwOnInvalidDisplayNameOrEmail$p(o,e);f[r]=$h.ComposeRecipient._createEmailDictionaryForHost$p(e,o)}else throw Error.argument("recipients");else throw Error.argument("recipients");var c=this;window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(i?21:22,{recipientField:this._type$p$0,recipientArray:f},function(n){return n},s._asyncContext$p$0,s._callback$p$0)}};$h.ComposeRecipient.RecipientField=function(){};$h.ComposeRecipient.RecipientField.prototype={to:0,cc:1,bcc:2,requiredAttendees:0,optionalAttendees:1};$h.ComposeRecipient.RecipientField.registerEnum("$h.ComposeRecipient.RecipientField",!1);$h.ComposeLocation=function(){};$h.ComposeLocation.prototype={getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"location.getAsync");var t=$h.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(26,null,null,t._asyncContext$p$0,t._callback$p$0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"location.setAsync");var i=$h.CommonParameters.parse(r,!1);window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,255,"location");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(27,{location:n},null,i._asyncContext$p$0,i._callback$p$0)}};$h.ComposeSubject=function(){};$h.ComposeSubject.prototype={getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"subject.getAsync");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(18,null,null,t._asyncContext$p$0,t._callback$p$0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];var i=$h.CommonParameters.parse(r,!1);window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,"subject.setAsync");if(!String.isInstanceOfType(n))throw Error.argument("data");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,255,"data");window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(17,{subject:n},null,i._asyncContext$p$0,i._callback$p$0)}};$h.ComposeTime=function(n){this.$$d__ticksToDateFormatter$p$0=Function.createDelegate(this,this._ticksToDateFormatter$p$0);this._timeType$p$0=n};$h.ComposeTime.prototype={_timeType$p$0:0,getAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,this._getPropertyName$p$0()+".getAsync");var t=$h.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(24,{TimeProperty:this._timeType$p$0},this.$$d__ticksToDateFormatter$p$0,t._asyncContext$p$0,t._callback$p$0)},setAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(2,this._getPropertyName$p$0()+".setAsync");if(!Date.isInstanceOfType(n))throw Error.argumentType("dateTime",Object.getType(n),Date);if(window.isNaN(n.getTime()))throw Error.argument("dateTime");if(n.getTime()<-864e13||n.getTime()>864e13)throw Error.argumentOutOfRange("dateTime");var i=$h.CommonParameters.parse(r,!1);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(25,{TimeProperty:this._timeType$p$0,time:n.getTime()},null,i._asyncContext$p$0,i._callback$p$0)},_ticksToDateFormatter$p$0:function(n){var t=n;return new Date(t)},_getPropertyName$p$0:function(){return this._timeType$p$0===1?"start":"end"}};$h.ComposeTime.TimeType=function(){};$h.ComposeTime.TimeType.prototype={start:1,end:2};$h.ComposeTime.TimeType.registerEnum("$h.ComposeTime.TimeType",!1);$h.Contact=function(n){this.$$d__getContactString$p$0=Function.createDelegate(this,this._getContactString$p$0);this.$$d__getAddresses$p$0=Function.createDelegate(this,this._getAddresses$p$0);this.$$d__getUrls$p$0=Function.createDelegate(this,this._getUrls$p$0);this.$$d__getEmailAddresses$p$0=Function.createDelegate(this,this._getEmailAddresses$p$0);this.$$d__getPhoneNumbers$p$0=Function.createDelegate(this,this._getPhoneNumbers$p$0);this.$$d__getBusinessName$p$0=Function.createDelegate(this,this._getBusinessName$p$0);this.$$d__getPersonName$p$0=Function.createDelegate(this,this._getPersonName$p$0);this._data$p$0=n;$h.InitialData._defineReadOnlyProperty$i(this,"personName",this.$$d__getPersonName$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"businessName",this.$$d__getBusinessName$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"phoneNumbers",this.$$d__getPhoneNumbers$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"emailAddresses",this.$$d__getEmailAddresses$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"urls",this.$$d__getUrls$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"addresses",this.$$d__getAddresses$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"contactString",this.$$d__getContactString$p$0)};$h.Contact.prototype={_data$p$0:null,_phoneNumbers$p$0:null,_getPersonName$p$0:function(){return this._data$p$0.PersonName},_getBusinessName$p$0:function(){return this._data$p$0.BusinessName},_getAddresses$p$0:function(){return $h.Entities._getExtractedStringProperty$i(this._data$p$0,"Addresses")},_getEmailAddresses$p$0:function(){return $h.Entities._getExtractedStringProperty$i(this._data$p$0,"EmailAddresses")},_getUrls$p$0:function(){return $h.Entities._getExtractedStringProperty$i(this._data$p$0,"Urls")},_getPhoneNumbers$p$0:function(){if(!this._phoneNumbers$p$0){var n=this;this._phoneNumbers$p$0=$h.Entities._getExtractedObjects$i($h.PhoneNumber,this._data$p$0,"PhoneNumbers",function(n){return new $h.PhoneNumber(n)})}return this._phoneNumbers$p$0},_getContactString$p$0:function(){return this._data$p$0.ContactString}};$h.CustomProperties=function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");if(Array.isInstanceOfType(n)){var t=n;if(t.length>0)this._data$p$0=t[0];else throw Error.argument("data");}else this._data$p$0=n};$h.CustomProperties.prototype={_data$p$0:null,get:function(n){var i=this._data$p$0[n];if(typeof i=="string"){var t=i;if(t.length>6&&t.startsWith("Date(")&&t.endsWith(")")){var f=t.substring(5,t.length-1);var r=window.parseInt(f);if(!window.isNaN(r)){var u=new Date(r);u&&(i=u)}}}return i},set:function(n,t){window.OSF.OUtil.isDate(t)&&(t="Date("+t.getTime()+")");this._data$p$0[n]=t},remove:function(n){delete this._data$p$0[n]},saveAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var u=2500;if(window.JSON.stringify(this._data$p$0).length>u)throw Error.argument();var t=$h.CommonParameters.parse(i,!1,!0);var r=new $h.SaveDictionaryRequest(t._callback$p$0,t._asyncContext$p$0);r._sendRequest$i$0(4,"SaveCustomProperties",{customProperties:this._data$p$0})}};$h.Diagnostics=function(n,t){this.$$d__getOwaView$p$0=Function.createDelegate(this,this._getOwaView$p$0);this.$$d__getHostVersion$p$0=Function.createDelegate(this,this._getHostVersion$p$0);this.$$d__getHostName$p$0=Function.createDelegate(this,this._getHostName$p$0);this._data$p$0=n;this._appName$p$0=t;$h.InitialData._defineReadOnlyProperty$i(this,"hostName",this.$$d__getHostName$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"hostVersion",this.$$d__getHostVersion$p$0);64===this._appName$p$0&&$h.InitialData._defineReadOnlyProperty$i(this,"OWAView",this.$$d__getOwaView$p$0)};$h.Diagnostics.prototype={_data$p$0:null,_appName$p$0:0,_getHostName$p$0:function(){if(8===this._appName$p$0)return"Outlook";else if(64===this._appName$p$0)return"OutlookWebApp";return null},_getHostVersion$p$0:function(){return this._data$p$0.get__hostVersion$i$0()},_getOwaView$p$0:function(){return this._data$p$0.get__owaView$i$0()}};$h.EmailAddressDetails=function(n){this.$$d__getRecipientType$p$0=Function.createDelegate(this,this._getRecipientType$p$0);this.$$d__getAppointmentResponse$p$0=Function.createDelegate(this,this._getAppointmentResponse$p$0);this.$$d__getDisplayName$p$0=Function.createDelegate(this,this._getDisplayName$p$0);this.$$d__getEmailAddress$p$0=Function.createDelegate(this,this._getEmailAddress$p$0);this._data$p$0=n;$h.InitialData._defineReadOnlyProperty$i(this,"emailAddress",this.$$d__getEmailAddress$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"displayName",this.$$d__getDisplayName$p$0);$h.ScriptHelpers.dictionaryContainsKey(n,"appointmentResponse")&&$h.InitialData._defineReadOnlyProperty$i(this,"appointmentResponse",this.$$d__getAppointmentResponse$p$0);$h.ScriptHelpers.dictionaryContainsKey(n,"recipientType")&&$h.InitialData._defineReadOnlyProperty$i(this,"recipientType",this.$$d__getRecipientType$p$0)};$h.EmailAddressDetails._createFromEmailUserDictionary$i=function(n){var t={};var r=n.Name;var i=n.UserId;t.name=r||$h.EmailAddressDetails._emptyString$p;t.address=i||$h.EmailAddressDetails._emptyString$p;return new $h.EmailAddressDetails(t)};$h.EmailAddressDetails.prototype={_data$p$0:null,toJSON:function(){var n={};n.emailAddress=this._getEmailAddress$p$0();n.displayName=this._getDisplayName$p$0();$h.ScriptHelpers.dictionaryContainsKey(this._data$p$0,"appointmentResponse")&&(n.appointmentResponse=this._getAppointmentResponse$p$0());$h.ScriptHelpers.dictionaryContainsKey(this._data$p$0,"recipientType")&&(n.recipientType=this._getRecipientType$p$0());return n},_getEmailAddress$p$0:function(){return this._data$p$0.address},_getDisplayName$p$0:function(){return this._data$p$0.name},_getAppointmentResponse$p$0:function(){var n=this._data$p$0.appointmentResponse;return n<$h.EmailAddressDetails._responseTypeMap$p.length?$h.EmailAddressDetails._responseTypeMap$p[n]:window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None},_getRecipientType$p$0:function(){var n=this._data$p$0.recipientType;return n<$h.EmailAddressDetails._recipientTypeMap$p.length?$h.EmailAddressDetails._recipientTypeMap$p[n]:window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other}};$h.Entities=function(n,t,i,r){this.$$d__createMeetingSuggestion$p$0=Function.createDelegate(this,this._createMeetingSuggestion$p$0);this.$$d__getParcelDeliveries$p$0=Function.createDelegate(this,this._getParcelDeliveries$p$0);this.$$d__getFlightReservations$p$0=Function.createDelegate(this,this._getFlightReservations$p$0);this.$$d__getContacts$p$0=Function.createDelegate(this,this._getContacts$p$0);this.$$d__getPhoneNumbers$p$0=Function.createDelegate(this,this._getPhoneNumbers$p$0);this.$$d__getUrls$p$0=Function.createDelegate(this,this._getUrls$p$0);this.$$d__getEmailAddresses$p$0=Function.createDelegate(this,this._getEmailAddresses$p$0);this.$$d__getMeetingSuggestions$p$0=Function.createDelegate(this,this._getMeetingSuggestions$p$0);this.$$d__getTaskSuggestions$p$0=Function.createDelegate(this,this._getTaskSuggestions$p$0);this.$$d__getAddresses$p$0=Function.createDelegate(this,this._getAddresses$p$0);this._data$p$0=n||{};this._filteredData$p$0=t||{};this._dateTimeSent$p$0=i;$h.InitialData._defineReadOnlyProperty$i(this,"addresses",this.$$d__getAddresses$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"taskSuggestions",this.$$d__getTaskSuggestions$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"meetingSuggestions",this.$$d__getMeetingSuggestions$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"emailAddresses",this.$$d__getEmailAddresses$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"urls",this.$$d__getUrls$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"phoneNumbers",this.$$d__getPhoneNumbers$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"contacts",this.$$d__getContacts$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"flightReservations",this.$$d__getFlightReservations$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"parcelDeliveries",this.$$d__getParcelDeliveries$p$0);this._permissionLevel$p$0=r};$h.Entities._getExtractedObjects$i=function(n,t,i,r,u,f){var o=null;var e=t[i];if(!e)return new Array(0);u&&(e=$h.Entities._removeDuplicate$p(Object,e,$h.Entities._entityDictionaryEquals$p,f));o=new Array(e.length);for(var c=0,l=e,a=l.length,s=0;s<a;++s){var h=l[s];o[c++]=r?r(h):h}return o};$h.Entities._getExtractedStringProperty$i=function(n,t,i){var r=n[t];if(!r)return new Array(0);i&&(r=$h.Entities._removeDuplicate$p(String,r,$h.Entities._stringEquals$p,null));return r};$h.Entities._createContact$p=function(n){return new $h.Contact(n)};$h.Entities._createTaskSuggestion$p=function(n){return new $h.TaskSuggestion(n)};$h.Entities._createPhoneNumber$p=function(n){return new $h.PhoneNumber(n)};$h.Entities._entityDictionaryEquals$p=function(n,t,i){return n===t?!0:!n||!t?!1:n[i]===t[i]?!0:!1};$h.Entities._stringEquals$p=function(n,t,i){return n===t};$h.Entities._removeDuplicate$p=function(n,t,i,r){for(var u=t.length-1;u>=0;u--){for(var e=!1,f=u-1;f>=0;f--)if(i(t[u],t[f],r)){e=!0;break}e&&Array.removeAt(t,u)}return t};$h.Entities.prototype={_dateTimeSent$p$0:null,_data$p$0:null,_filteredData$p$0:null,_filteredEntitiesCache$p$0:null,_permissionLevel$p$0:0,_taskSuggestions$p$0:null,_meetingSuggestions$p$0:null,_phoneNumbers$p$0:null,_contacts$p$0:null,_addresses$p$0:null,_emailAddresses$p$0:null,_urls$p$0:null,_flightReservations$p$0:null,_parcelDeliveries$p$0:null,_getByType$i$0:function(n){if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.MeetingSuggestion)return this._getMeetingSuggestions$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.TaskSuggestion)return this._getTaskSuggestions$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Address)return this._getAddresses$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.PhoneNumber)return this._getPhoneNumbers$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.EmailAddress)return this._getEmailAddresses$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Url)return this._getUrls$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.Contact)return this._getContacts$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.FlightReservations)return this._getFlightReservations$p$0();else if(n===window.Microsoft.Office.WebExtension.MailboxEnums.EntityType.ParcelDeliveries)return this._getParcelDeliveries$p$0();return null},_getFilteredEntitiesByName$i$0:function(n){this._filteredEntitiesCache$p$0||(this._filteredEntitiesCache$p$0={});if(!$h.ScriptHelpers.dictionaryContainsKey(this._filteredEntitiesCache$p$0,n)){for(var r=!1,i=0;i<$h.Entities._allEntityKeys$p.length;i++){var u=$h.Entities._allEntityKeys$p[i];var t=this._filteredData$p$0[u];if(t&&$h.ScriptHelpers.dictionaryContainsKey(t,n)){switch(u){case"EmailAddresses":case"Urls":this._filteredEntitiesCache$p$0[n]=$h.Entities._getExtractedStringProperty$i(t,n);break;case"Addresses":this._filteredEntitiesCache$p$0[n]=$h.Entities._getExtractedStringProperty$i(t,n,!0);break;case"PhoneNumbers":this._filteredEntitiesCache$p$0[n]=$h.Entities._getExtractedObjects$i($h.PhoneNumber,t,n,$h.Entities._createPhoneNumber$p,!1,null);break;case"TaskSuggestions":this._filteredEntitiesCache$p$0[n]=$h.Entities._getExtractedObjects$i($h.TaskSuggestion,t,n,$h.Entities._createTaskSuggestion$p,!0,"TaskString");break;case"MeetingSuggestions":this._filteredEntitiesCache$p$0[n]=$h.Entities._getExtractedObjects$i($h.MeetingSuggestion,t,n,this.$$d__createMeetingSuggestion$p$0,!0,"MeetingString");break;case"Contacts":this._filteredEntitiesCache$p$0[n]=$h.Entities._getExtractedObjects$i($h.Contact,t,n,$h.Entities._createContact$p,!0,"ContactString");break}r=!0;break}}r||(this._filteredEntitiesCache$p$0[n]=null)}return this._filteredEntitiesCache$p$0[n]},_createMeetingSuggestion$p$0:function(n){return new $h.MeetingSuggestion(n,this._dateTimeSent$p$0)},_getAddresses$p$0:function(){this._addresses$p$0||(this._addresses$p$0=$h.Entities._getExtractedStringProperty$i(this._data$p$0,"Addresses",!0));return this._addresses$p$0},_getEmailAddresses$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._emailAddresses$p$0||(this._emailAddresses$p$0=$h.Entities._getExtractedStringProperty$i(this._data$p$0,"EmailAddresses",!1));return this._emailAddresses$p$0},_getUrls$p$0:function(){this._urls$p$0||(this._urls$p$0=$h.Entities._getExtractedStringProperty$i(this._data$p$0,"Urls",!1));return this._urls$p$0},_getPhoneNumbers$p$0:function(){this._phoneNumbers$p$0||(this._phoneNumbers$p$0=$h.Entities._getExtractedObjects$i($h.PhoneNumber,this._data$p$0,"PhoneNumbers",$h.Entities._createPhoneNumber$p));return this._phoneNumbers$p$0},_getTaskSuggestions$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._taskSuggestions$p$0||(this._taskSuggestions$p$0=$h.Entities._getExtractedObjects$i($h.TaskSuggestion,this._data$p$0,"TaskSuggestions",$h.Entities._createTaskSuggestion$p,!0,"TaskString"));return this._taskSuggestions$p$0},_getMeetingSuggestions$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._meetingSuggestions$p$0||(this._meetingSuggestions$p$0=$h.Entities._getExtractedObjects$i($h.MeetingSuggestion,this._data$p$0,"MeetingSuggestions",this.$$d__createMeetingSuggestion$p$0,!0,"MeetingString"));return this._meetingSuggestions$p$0},_getContacts$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._contacts$p$0||(this._contacts$p$0=$h.Entities._getExtractedObjects$i($h.Contact,this._data$p$0,"Contacts",$h.Entities._createContact$p,!0,"ContactString"));return this._contacts$p$0},_getParcelDeliveries$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._parcelDeliveries$p$0||(this._parcelDeliveries$p$0=$h.Entities._getExtractedObjects$i(Object,this._data$p$0,"ParcelDeliveries",null));return this._parcelDeliveries$p$0},_getFlightReservations$p$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0);this._flightReservations$p$0||(this._flightReservations$p$0=$h.Entities._getExtractedObjects$i(Object,this._data$p$0,"FlightReservations",null));return this._flightReservations$p$0}};$h.ReplyConstants=function(){};$h.AsyncConstants=function(){};window.Office.cast.item=Office.cast.item=function(){};window.Office.cast.item.toItemRead=function(n){if($h.Item.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toItemCompose=function(n){if($h.ComposeItem.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toMessage=function(n){return window.Office.cast.item.toMessageRead(n)};window.Office.cast.item.toMessageRead=function(n){if($h.Message.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toMessageCompose=function(n){if($h.MessageCompose.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toMeetingRequest=function(n){if($h.MeetingRequest.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toAppointment=function(n){return window.Office.cast.item.toAppointmentRead(n)};window.Office.cast.item.toAppointmentRead=function(n){if($h.Appointment.isInstanceOfType(n))return n;throw Error.argumentType();};window.Office.cast.item.toAppointmentCompose=function(n){if($h.AppointmentCompose.isInstanceOfType(n))return n;throw Error.argumentType();};$h.Item=function(n){this.$$d__getBody$p$1=Function.createDelegate(this,this._getBody$p$1);this.$$d__getAttachments$p$1=Function.createDelegate(this,this._getAttachments$p$1);this.$$d__getItemClass$p$1=Function.createDelegate(this,this._getItemClass$p$1);this.$$d__getItemId$p$1=Function.createDelegate(this,this._getItemId$p$1);this.$$d__getDateTimeModified$p$1=Function.createDelegate(this,this._getDateTimeModified$p$1);this.$$d__getDateTimeCreated$p$1=Function.createDelegate(this,this._getDateTimeCreated$p$1);$h.Item.initializeBase(this,[n]);$h.InitialData._defineReadOnlyProperty$i(this,"dateTimeCreated",this.$$d__getDateTimeCreated$p$1);$h.InitialData._defineReadOnlyProperty$i(this,"dateTimeModified",this.$$d__getDateTimeModified$p$1);$h.InitialData._defineReadOnlyProperty$i(this,"itemId",this.$$d__getItemId$p$1);$h.InitialData._defineReadOnlyProperty$i(this,"itemClass",this.$$d__getItemClass$p$1);$h.InitialData._defineReadOnlyProperty$i(this,"attachments",this.$$d__getAttachments$p$1);$h.InitialData._defineReadOnlyProperty$i(this,"body",this.$$d__getBody$p$1)};$h.Item.prototype={_body$p$1:null,_getItemId$p$1:function(){return this._data$p$0.get__itemId$i$0()},_getItemClass$p$1:function(){return this._data$p$0.get__itemClass$i$0()},_getDateTimeCreated$p$1:function(){return this._data$p$0.get__dateTimeCreated$i$0()},_getDateTimeModified$p$1:function(){return this._data$p$0.get__dateTimeModified$i$0()},_getAttachments$p$1:function(){return this._data$p$0.get__attachments$i$0()},_getBody$p$1:function(){this._body$p$1||(this._body$p$1=new $h.Body);return this._body$p$1}};$h.ItemBase=function(n){this.$$d__createCustomProperties$i$0=Function.createDelegate(this,this._createCustomProperties$i$0);this.$$d__getNotificationMessages$p$0=Function.createDelegate(this,this._getNotificationMessages$p$0);this.$$d_getItemType=Function.createDelegate(this,this.getItemType);this._data$p$0=n;$h.InitialData._defineReadOnlyProperty$i(this,"itemType",this.$$d_getItemType);$h.InitialData._defineReadOnlyProperty$i(this,"notificationMessages",this.$$d__getNotificationMessages$p$0)};$h.ItemBase.prototype={_data$p$0:null,_notificationMessages$p$0:null,get_data:function(){return this._data$p$0},loadCustomPropertiesAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];var t=$h.CommonParameters.parse(i,!0,!0);var r=new $h._loadDictionaryRequest(this.$$d__createCustomProperties$i$0,"customProperties",t._callback$p$0,t._asyncContext$p$0);r._sendRequest$i$0(3,"LoadCustomProperties",{})},_createCustomProperties$i$0:function(n){return new $h.CustomProperties(n)},_getNotificationMessages$p$0:function(){this._notificationMessages$p$0||(this._notificationMessages$p$0=new $h.NotificationMessages);return this._notificationMessages$p$0}};$h.MeetingRequest=function(n){this.$$d__getRequiredAttendees$p$3=Function.createDelegate(this,this._getRequiredAttendees$p$3);this.$$d__getOptionalAttendees$p$3=Function.createDelegate(this,this._getOptionalAttendees$p$3);this.$$d__getLocation$p$3=Function.createDelegate(this,this._getLocation$p$3);this.$$d__getEnd$p$3=Function.createDelegate(this,this._getEnd$p$3);this.$$d__getStart$p$3=Function.createDelegate(this,this._getStart$p$3);$h.MeetingRequest.initializeBase(this,[n]);$h.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStart$p$3);$h.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEnd$p$3);$h.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$3);$h.InitialData._defineReadOnlyProperty$i(this,"optionalAttendees",this.$$d__getOptionalAttendees$p$3);$h.InitialData._defineReadOnlyProperty$i(this,"requiredAttendees",this.$$d__getRequiredAttendees$p$3)};$h.MeetingRequest.prototype={_getStart$p$3:function(){return this._data$p$0.get__start$i$0()},_getEnd$p$3:function(){return this._data$p$0.get__end$i$0()},_getLocation$p$3:function(){return this._data$p$0.get__location$i$0()},_getOptionalAttendees$p$3:function(){return this._data$p$0.get__cc$i$0()},_getRequiredAttendees$p$3:function(){return this._data$p$0.get__to$i$0()}};$h.MeetingSuggestion=function(n,t){this.$$d__getEndTime$p$0=Function.createDelegate(this,this._getEndTime$p$0);this.$$d__getStartTime$p$0=Function.createDelegate(this,this._getStartTime$p$0);this.$$d__getSubject$p$0=Function.createDelegate(this,this._getSubject$p$0);this.$$d__getLocation$p$0=Function.createDelegate(this,this._getLocation$p$0);this.$$d__getAttendees$p$0=Function.createDelegate(this,this._getAttendees$p$0);this.$$d__getMeetingString$p$0=Function.createDelegate(this,this._getMeetingString$p$0);this._data$p$0=n;this._dateTimeSent$p$0=t;$h.InitialData._defineReadOnlyProperty$i(this,"meetingString",this.$$d__getMeetingString$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"attendees",this.$$d__getAttendees$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"location",this.$$d__getLocation$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"start",this.$$d__getStartTime$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"end",this.$$d__getEndTime$p$0)};$h.MeetingSuggestion.prototype={_dateTimeSent$p$0:null,_data$p$0:null,_attendees$p$0:null,_getMeetingString$p$0:function(){return this._data$p$0.MeetingString},_getLocation$p$0:function(){return this._data$p$0.Location},_getSubject$p$0:function(){return this._data$p$0.Subject},_getStartTime$p$0:function(){var n=this._createDateTimeFromParameter$p$0("StartTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this._dateTimeSent$p$0);return t.getTime()!==n.getTime()?window.OSF.DDA.OutlookAppOm._instance$p.convertToUtcClientTime(window.OSF.DDA.OutlookAppOm._instance$p._dateToDictionary$i$0(t)):n},_getEndTime$p$0:function(){var n=this._createDateTimeFromParameter$p$0("EndTime");var t=$h.MeetingSuggestionTimeDecoder.resolve(n,this._dateTimeSent$p$0);return t.getTime()!==n.getTime()?window.OSF.DDA.OutlookAppOm._instance$p.convertToUtcClientTime(window.OSF.DDA.OutlookAppOm._instance$p._dateToDictionary$i$0(t)):n},_createDateTimeFromParameter$p$0:function(n){var t=this._data$p$0[n];return t?new Date(t):null},_getAttendees$p$0:function(){if(!this._attendees$p$0){var n=this;this._attendees$p$0=$h.Entities._getExtractedObjects$i($h.EmailAddressDetails,this._data$p$0,"Attendees",function(n){return $h.EmailAddressDetails._createFromEmailUserDictionary$i(n)})}return this._attendees$p$0}};$h.MeetingSuggestionTimeDecoder=function(){};$h.MeetingSuggestionTimeDecoder.resolve=function(n,t){if(!t)return n;try{var f;var i;var r;var u=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);var s,o,e;if(e=$h.MeetingSuggestionTimeDecoder._decode$p(n,s={val:r},o={val:f}),r=s.val,f=o.val,e){i=$h._preciseDate.isInstanceOfType(r)?$h.MeetingSuggestionTimeDecoder._resolvePreciseDate$p(u,r):$h._relativeDate.isInstanceOfType(r)?$h.MeetingSuggestionTimeDecoder._resolveRelativeDate$p(u,r):u;if(window.isNaN(i.getTime()))return t;i.setMilliseconds(i.getMilliseconds()+f);return i}else return n}catch(h){return t}};$h.MeetingSuggestionTimeDecoder._isNullOrUndefined$i=function(n){return null===n||n===undefined};$h.MeetingSuggestionTimeDecoder._resolvePreciseDate$p=function(n,t){var r=t._year$i$1;var f=t._month$i$1?t._month$i$1-1:n.getMonth();var u=t._day$i$1;if(!u)return n;var i;if($h.MeetingSuggestionTimeDecoder._isNullOrUndefined$i(r)){i=new Date(n.getFullYear(),f,u);i.getTime()<n.getTime()&&(i=new Date(n.getFullYear()+1,f,u))}else i=new Date(r<50?2e3+r:1900+r,f,u);return i.getMonth()!==f?n:i};$h.MeetingSuggestionTimeDecoder._resolveRelativeDate$p=function(n,t){var i;switch(t._unit$i$1){case 0:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(i.getDate()+t._offset$i$1);return i;case 5:return $h.MeetingSuggestionTimeDecoder._findBestDateForWeekDate$p(n,t._offset$i$1,t._tag$i$1);case 2:var r=1;switch(t._modifier$i$1){case 1:break;case 2:r=16;break;default:t._offset$i$1||(r=n.getDate());break}i=new Date(n.getFullYear(),n.getMonth(),r);i.setMonth(i.getMonth()+t._offset$i$1);i.getTime()<n.getTime()&&i.setDate(i.getDate()+n.getDate()-1);return i;case 1:i=new Date(n.getFullYear(),n.getMonth(),n.getDate());i.setDate(n.getDate()+7*t._offset$i$1);if(t._modifier$i$1!==1&&t._modifier$i$1){if(t._modifier$i$1===2){i.setDate(i.getDate()+5-i.getDay());return i}}else{i.setDate(i.getDate()+1-i.getDay());return i.getTime()<n.getTime()?n:i}break;case 4:return $h.MeetingSuggestionTimeDecoder._findBestDateForWeekOfMonthDate$p(n,t);case 3:if(t._offset$i$1>0)return new Date(n.getFullYear()+t._offset$i$1,0,1);break;default:break}return n};$h.MeetingSuggestionTimeDecoder._findBestDateForWeekDate$p=function(n,t,i){if(t>-5&&t<5){var u;var r;u=(i+6)%7+1;r=7*t+(u-n.getDay());n.setDate(n.getDate()+r);return n}else{var r=(i-n.getDay())%7;r<0&&(r+=7);n.setDate(n.getDate()+r);return n}};$h.MeetingSuggestionTimeDecoder._findBestDateForWeekOfMonthDate$p=function(n,t){var f;var i;var r;f=n;if(t._tag$i$1<=0||t._tag$i$1>12||t._offset$i$1<=0||t._offset$i$1>5)return n;var e=(12+t._tag$i$1-f.getMonth()-1)%12;i=new Date(f.getFullYear(),f.getMonth()+e,1);if(t._modifier$i$1===1)if(t._offset$i$1===1&&i.getDay()!==6&&i.getDay())return i;else{r=new Date(i.getFullYear(),i.getMonth(),i.getDate());r.setDate(r.getDate()+(8-i.getDay())%7);i.getDay()!==6&&i.getDay()&&i.getDay()!==1&&r.setDate(r.getDate()-7);r.setDate(r.getDate()+7*(t._offset$i$1-1));return r.getMonth()+1!==t._tag$i$1?n:r}else{r=new Date(i.getFullYear(),i.getMonth(),$h.MeetingSuggestionTimeDecoder._daysInMonth$p(i.getMonth(),i.getFullYear()));var u=1-r.getDay();u>0&&(u=u-7);r.setDate(r.getDate()+u);r.setDate(r.getDate()+7*(1-t._offset$i$1));return r.getMonth()+1!==t._tag$i$1?i.getDay()!==6&&i.getDay()?i:n:r}};$h.MeetingSuggestionTimeDecoder._decode$p=function(n,t,i){var f=32767;t.val=null;i.val=0;if(!n)return!1;i.val=$h.MeetingSuggestionTimeDecoder._getTimeOfDayInMillisecondsUTC$p(n);var e=n.getTime()-i.val;var r=(e-$h.MeetingSuggestionTimeDecoder._baseDate$p.getTime())/864e5;if(r<0)return!1;else if(r>=262144)return!1;else{var u=r>>15;r=r&f;switch(u){case 0:return $h.MeetingSuggestionTimeDecoder._decodePreciseDate$p(r,t);case 1:return $h.MeetingSuggestionTimeDecoder._decodeRelativeDate$p(r,t);default:return!1}}};$h.MeetingSuggestionTimeDecoder._decodePreciseDate$p=function(n,t){var h=7;var e=15;var o=31;var s=127;var u=null;var r=0;var f=0;t.val=null;var i=n>>12&h;if((i&4)==4){u=n>>5&s;if((i&2)==2){if((i&1)==1)return!1;r=n>>1&e}}else{(i&2)==2&&(r=n>>8&e);(i&1)==1&&(f=n>>3&o)}t.val=new $h._preciseDate(f,r,u);return!0};$h.MeetingSuggestionTimeDecoder._decodeRelativeDate$p=function(n,t){var o=15;var e=63;var h=7;var s=3;var r=n&o;n>>=4;var i=$h.MeetingSuggestionTimeDecoder._fromComplement$p(n&e,6);n>>=6;var f=n&h;n>>=3;var u=n&s;try{t.val=new $h._relativeDate(u,i,f,r);return!0}catch(c){t.val=null;return!1}};$h.MeetingSuggestionTimeDecoder._fromComplement$p=function(n,t){var i=1<<t-1;var r=(1<<t)-1;return(n&i)===i?-((n^r)+1):n};$h.MeetingSuggestionTimeDecoder._daysInMonth$p=function(n,t){return 32-new Date(t,n,32).getDate()};$h.MeetingSuggestionTimeDecoder._getTimeOfDayInMillisecondsUTC$p=function(n){var t=0;t+=n.getUTCHours()*3600;t+=n.getUTCMinutes()*60;t+=n.getUTCSeconds();t*=1e3;t+=n.getUTCMilliseconds();return t};$h._extractedDate=function(){};$h._preciseDate=function(n,t,i){$h._preciseDate.initializeBase(this);this._day$i$1=n;this._month$i$1=t;$h.MeetingSuggestionTimeDecoder._isNullOrUndefined$i(i)||(this._year$i$1=i%100)};$h._preciseDate.prototype={_day$i$1:0,_month$i$1:0,_year$i$1:null};$h._relativeDate=function(n,t,i,r){$h._relativeDate.initializeBase(this);this._modifier$i$1=n;this._offset$i$1=t;this._unit$i$1=i;this._tag$i$1=r};$h._relativeDate.prototype={_modifier$i$1:0,_offset$i$1:0,_unit$i$1:0,_tag$i$1:0};$h.Message=function(n){this.$$d__getConversationId$p$2=Function.createDelegate(this,this._getConversationId$p$2);this.$$d__getInternetMessageId$p$2=Function.createDelegate(this,this._getInternetMessageId$p$2);this.$$d__getCc$p$2=Function.createDelegate(this,this._getCc$p$2);this.$$d__getTo$p$2=Function.createDelegate(this,this._getTo$p$2);this.$$d__getFrom$p$2=Function.createDelegate(this,this._getFrom$p$2);this.$$d__getSender$p$2=Function.createDelegate(this,this._getSender$p$2);this.$$d__getNormalizedSubject$p$2=Function.createDelegate(this,this._getNormalizedSubject$p$2);this.$$d__getSubject$p$2=Function.createDelegate(this,this._getSubject$p$2);$h.Message.initializeBase(this,[n]);$h.InitialData._defineReadOnlyProperty$i(this,"subject",this.$$d__getSubject$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"normalizedSubject",this.$$d__getNormalizedSubject$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"sender",this.$$d__getSender$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"from",this.$$d__getFrom$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"to",this.$$d__getTo$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"cc",this.$$d__getCc$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"internetMessageId",this.$$d__getInternetMessageId$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"conversationId",this.$$d__getConversationId$p$2)};$h.Message.prototype={getEntities:function(){return this._data$p$0._getEntities$i$0()},getEntitiesByType:function(n){return this._data$p$0._getEntitiesByType$i$0(n)},getFilteredEntitiesByName:function(n){return this._data$p$0._getFilteredEntitiesByName$i$0(n)},getRegExMatches:function(){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatches");return this._data$p$0._getRegExMatches$i$0()},getRegExMatchesByName:function(n){window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(1,"getRegExMatchesByName");return this._data$p$0._getRegExMatchesByName$i$0(n)},displayReplyForm:function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyForm$i$0(n)},displayReplyAllForm:function(n){window.OSF.DDA.OutlookAppOm._instance$p._displayReplyAllForm$i$0(n)},getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},_getSubject$p$2:function(){return this._data$p$0.get__subject$i$0()},_getNormalizedSubject$p$2:function(){return this._data$p$0.get__normalizedSubject$i$0()},_getSender$p$2:function(){return this._data$p$0.get__sender$i$0()},_getFrom$p$2:function(){return this._data$p$0.get__from$i$0()},_getTo$p$2:function(){return this._data$p$0.get__to$i$0()},_getCc$p$2:function(){return this._data$p$0.get__cc$i$0()},_getInternetMessageId$p$2:function(){return this._data$p$0.get__internetMessageId$i$0()},_getConversationId$p$2:function(){return this._data$p$0.get__conversationId$i$0()}};$h.MessageCompose=function(n){this.$$d__getConversationId$p$2=Function.createDelegate(this,this._getConversationId$p$2);this.$$d__getBcc$p$2=Function.createDelegate(this,this._getBcc$p$2);this.$$d__getCc$p$2=Function.createDelegate(this,this._getCc$p$2);this.$$d__getTo$p$2=Function.createDelegate(this,this._getTo$p$2);$h.MessageCompose.initializeBase(this,[n]);$h.InitialData._defineReadOnlyProperty$i(this,"to",this.$$d__getTo$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"cc",this.$$d__getCc$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"bcc",this.$$d__getBcc$p$2);$h.InitialData._defineReadOnlyProperty$i(this,"conversationId",this.$$d__getConversationId$p$2)};$h.MessageCompose.prototype={_to$p$2:null,_cc$p$2:null,_bcc$p$2:null,getItemType:function(){return window.Microsoft.Office.WebExtension.MailboxEnums.ItemType.Message},_getTo$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._to$p$2||(this._to$p$2=new $h.ComposeRecipient(0,"to"));return this._to$p$2},_getCc$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._cc$p$2||(this._cc$p$2=new $h.ComposeRecipient(1,"cc"));return this._cc$p$2},_getBcc$p$2:function(){this._data$p$0._throwOnRestrictedPermissionLevel$i$0();this._bcc$p$2||(this._bcc$p$2=new $h.ComposeRecipient(2,"bcc"));return this._bcc$p$2},_getConversationId$p$2:function(){return this._data$p$0.get__conversationId$i$0()}};$h.NotificationMessages=function(){};$h.NotificationMessages._mapToHostItemNotificationMessageType$p=function(n){var i;var t;i=n.type;if(i===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ProgressIndicator)t=1;else if(i===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage)t=0;else if(i===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.ErrorMessage)t=2;else throw Error.argument("type");n.type=t};$h.NotificationMessages._validateKey$p=function(n){if(!$h.ScriptHelpers.isNonEmptyString(n))throw Error.argument("key");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.length,0,32,"key")};$h.NotificationMessages._validateDictionary$p=function(n){if(!$h.ScriptHelpers.isNonEmptyString(n.type))throw Error.argument("type");if(n.type===window.Microsoft.Office.WebExtension.MailboxEnums.ItemNotificationMessageType.InformationalMessage){if(!$h.ScriptHelpers.isNonEmptyString(n.icon))throw Error.argument("icon");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.icon.length,0,32,"icon");if($h.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");if(!Boolean.isInstanceOfType(n.persistent))throw Error.argumentType("persistent",Object.getType(n.persistent),Boolean);}else{if(!$h.ScriptHelpers.isUndefined(n.icon))throw Error.argument("icon");if(!$h.ScriptHelpers.isUndefined(n.persistent))throw Error.argument("persistent");}if(!$h.ScriptHelpers.isNonEmptyString(n.message))throw Error.argument("message");window.OSF.DDA.OutlookAppOm._throwOnOutOfRange$i(n.message.length,0,150,"message")};$h.NotificationMessages.prototype={addAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.addAsync");var f=$h.CommonParameters.parse(u,!1);$h.NotificationMessages._validateKey$p(n);$h.NotificationMessages._validateDictionary$p(t);var r={};r=$h.ScriptHelpers.deepClone(t);r.key=n;$h.NotificationMessages._mapToHostItemNotificationMessageType$p(r);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(33,r,null,f._asyncContext$p$0,f._callback$p$0)},getAllAsync:function(){for(var i=[],n=0;n<arguments.length;++n)i[n]=arguments[n];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.getAllAsync");var t=$h.CommonParameters.parse(i,!0);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(34,null,null,t._asyncContext$p$0,t._callback$p$0)},replaceAsync:function(n,t){for(var u=[],i=2;i<arguments.length;++i)u[i-2]=arguments[i];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.replaceAsync");var f=$h.CommonParameters.parse(u,!1);$h.NotificationMessages._validateKey$p(n);$h.NotificationMessages._validateDictionary$p(t);var r={};r=$h.ScriptHelpers.deepClone(t);r.key=n;$h.NotificationMessages._mapToHostItemNotificationMessageType$p(r);window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(35,r,null,f._asyncContext$p$0,f._callback$p$0)},removeAsync:function(n){for(var r=[],t=1;t<arguments.length;++t)r[t-1]=arguments[t];window.OSF.DDA.OutlookAppOm._instance$p._throwOnMethodCallForInsufficientPermission$i$0(0,"NotificationMessages.removeAsync");var i=$h.CommonParameters.parse(r,!1);$h.NotificationMessages._validateKey$p(n);var u={key:n};window.OSF.DDA.OutlookAppOm._instance$p._standardInvokeHostMethod$i$0(36,u,null,i._asyncContext$p$0,i._callback$p$0)}};$h.OutlookErrorManager=function(){};$h.OutlookErrorManager.getErrorArgs=function(n){$h.OutlookErrorManager._isInitialized$p||$h.OutlookErrorManager._initialize$p();return window.OSF.DDA.ErrorCodeManager.getErrorArgs(n)};$h.OutlookErrorManager._initialize$p=function(){$h.OutlookErrorManager._addErrorMessage$p(9e3,"AttachmentSizeExceeded",window._u.ExtensibilityStrings.l_AttachmentExceededSize_Text);$h.OutlookErrorManager._addErrorMessage$p(9001,"NumberOfAttachmentsExceeded",window._u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text);$h.OutlookErrorManager._addErrorMessage$p(9002,"InternalFormatError",window._u.ExtensibilityStrings.l_InternalFormatError_Text);$h.OutlookErrorManager._addErrorMessage$p(9003,"InvalidAttachmentId",window._u.ExtensibilityStrings.l_InvalidAttachmentId_Text);$h.OutlookErrorManager._addErrorMessage$p(9004,"InvalidAttachmentPath",window._u.ExtensibilityStrings.l_InvalidAttachmentPath_Text);$h.OutlookErrorManager._addErrorMessage$p(9005,"CannotAddAttachmentBeforeUpgrade",window._u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text);$h.OutlookErrorManager._addErrorMessage$p(9006,"AttachmentDeletedBeforeUploadCompletes",window._u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text);$h.OutlookErrorManager._addErrorMessage$p(9007,"AttachmentUploadGeneralFailure",window._u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text);$h.OutlookErrorManager._addErrorMessage$p(9008,"AttachmentToDeleteDoesNotExist",window._u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text);$h.OutlookErrorManager._addErrorMessage$p(9009,"AttachmentDeleteGeneralFailure",window._u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text);$h.OutlookErrorManager._addErrorMessage$p(9010,"InvalidEndTime",window._u.ExtensibilityStrings.l_InvalidEndTime_Text);$h.OutlookErrorManager._addErrorMessage$p(9011,"HtmlSanitizationFailure",window._u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text);$h.OutlookErrorManager._addErrorMessage$p(9012,"NumberOfRecipientsExceeded",String.format(window._u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text,500));$h.OutlookErrorManager._addErrorMessage$p(9013,"NoValidRecipientsProvided",window._u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text);$h.OutlookErrorManager._addErrorMessage$p(9014,"CursorPositionChanged",window._u.ExtensibilityStrings.l_CursorPositionChanged_Text);$h.OutlookErrorManager._addErrorMessage$p(9016,"InvalidSelection",window._u.ExtensibilityStrings.l_InvalidSelection_Text);$h.OutlookErrorManager._addErrorMessage$p(9017,"AccessRestricted","");$h.OutlookErrorManager._addErrorMessage$p(9018,"GenericTokenError","");$h.OutlookErrorManager._addErrorMessage$p(9019,"GenericSettingsError","");$h.OutlookErrorManager._addErrorMessage$p(9020,"GenericResponseError","");$h.OutlookErrorManager._addErrorMessage$p(9021,"SaveError",window._u.ExtensibilityStrings.l_SaveError_Text);$h.OutlookErrorManager._addErrorMessage$p(9022,"MessageInDifferentStoreError",window._u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text);$h.OutlookErrorManager._addErrorMessage$p(9023,"DuplicateNotificationKey",window._u.ExtensibilityStrings.l_DuplicateNotificationKey_Text);$h.OutlookErrorManager._addErrorMessage$p(9024,"NotificationKeyNotFound",window._u.ExtensibilityStrings.l_NotificationKeyNotFound_Text);$h.OutlookErrorManager._addErrorMessage$p(9025,"NumberOfNotificationsExceeded",window._u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text);$h.OutlookErrorManager._addErrorMessage$p(9026,"PersistedNotificationArrayReadError",window._u.ExtensibilityStrings.l_PersistedNotificationArrayReadError_Text);$h.OutlookErrorManager._addErrorMessage$p(9027,"PersistedNotificationArraySaveError",window._u.ExtensibilityStrings.l_PersistedNotificationArraySaveError_Text);$h.OutlookErrorManager._addErrorMessage$p(9028,"CannotPersistPropertyInUnsavedDraftError",window._u.ExtensibilityStrings.l_CannotPersistPropertyInUnsavedDraftError_Text);$h.OutlookErrorManager._isInitialized$p=!0};$h.OutlookErrorManager._addErrorMessage$p=function(n,t,i){window.OSF.DDA.ErrorCodeManager.addErrorMessage(n,{name:t,message:i})};$h.OutlookErrorManager.OutlookErrorCodes=function(){};$h.OutlookErrorManager.OsfDdaErrorCodes=function(){};$h.PhoneNumber=function(n){this.$$d__getPhoneType$p$0=Function.createDelegate(this,this._getPhoneType$p$0);this.$$d__getOriginalPhoneString$p$0=Function.createDelegate(this,this._getOriginalPhoneString$p$0);this.$$d__getPhoneString$p$0=Function.createDelegate(this,this._getPhoneString$p$0);this._data$p$0=n;$h.InitialData._defineReadOnlyProperty$i(this,"phoneString",this.$$d__getPhoneString$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"originalPhoneString",this.$$d__getOriginalPhoneString$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"type",this.$$d__getPhoneType$p$0)};$h.PhoneNumber.prototype={_data$p$0:null,_getPhoneString$p$0:function(){return this._data$p$0.PhoneString},_getOriginalPhoneString$p$0:function(){return this._data$p$0.OriginalPhoneString},_getPhoneType$p$0:function(){return this._data$p$0.Type}};$h.TaskSuggestion=function(n){this.$$d__getAssignees$p$0=Function.createDelegate(this,this._getAssignees$p$0);this.$$d__getTaskString$p$0=Function.createDelegate(this,this._getTaskString$p$0);this._data$p$0=n;$h.InitialData._defineReadOnlyProperty$i(this,"taskString",this.$$d__getTaskString$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"assignees",this.$$d__getAssignees$p$0)};$h.TaskSuggestion.prototype={_data$p$0:null,_assignees$p$0:null,_getTaskString$p$0:function(){return this._data$p$0.TaskString},_getAssignees$p$0:function(){if(!this._assignees$p$0){var n=this;this._assignees$p$0=$h.Entities._getExtractedObjects$i($h.EmailAddressDetails,this._data$p$0,"Assignees",function(n){return $h.EmailAddressDetails._createFromEmailUserDictionary$i(n)})}return this._assignees$p$0}};$h.UserProfile=function(n){this.$$d__getUserProfileType$p$0=Function.createDelegate(this,this._getUserProfileType$p$0);this.$$d__getTimeZone$p$0=Function.createDelegate(this,this._getTimeZone$p$0);this.$$d__getEmailAddress$p$0=Function.createDelegate(this,this._getEmailAddress$p$0);this.$$d__getDisplayName$p$0=Function.createDelegate(this,this._getDisplayName$p$0);this._data$p$0=n;$h.InitialData._defineReadOnlyProperty$i(this,"displayName",this.$$d__getDisplayName$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"emailAddress",this.$$d__getEmailAddress$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"timeZone",this.$$d__getTimeZone$p$0);$h.InitialData._defineReadOnlyProperty$i(this,"type",this.$$d__getUserProfileType$p$0)};$h.UserProfile.prototype={_data$p$0:null,_getUserProfileType$p$0:function(){return this._data$p$0.get__userProfileType$i$0()},_getDisplayName$p$0:function(){return this._data$p$0.get__userDisplayName$i$0()},_getEmailAddress$p$0:function(){return this._data$p$0.get__userEmailAddress$i$0()},_getTimeZone$p$0:function(){return this._data$p$0.get__userTimeZone$i$0()}};$h.OutlookDispid=function(){};$h.OutlookDispid.prototype={owaOnlyMethod:0,getInitialData:1,getUserIdentityToken:2,loadCustomProperties:3,saveCustomProperties:4,ewsRequest:5,displayNewAppointmentForm:7,displayMessageForm:8,displayAppointmentForm:9,displayReplyForm:10,displayReplyAllForm:11,getCallbackToken:12,bodySetSelectedDataAsync:13,getBodyTypeAsync:14,getRecipientsAsync:15,addFileAttachmentAsync:16,setSubjectAsync:17,getSubjectAsync:18,addItemAttachmentAsync:19,removeAttachmentAsync:20,setRecipientsAsync:21,addRecipientsAsync:22,bodyPrependAsync:23,getTimeAsync:24,setTimeAsync:25,getLocationAsync:26,setLocationAsync:27,getSelectedDataAsync:28,setSelectedDataAsync:29,displayReplyFormWithAttachments:30,displayReplyAllFormWithAttachments:31,saveAsync:32,addNotficationMessageAsync:33,getAllNotficationMessagesAsync:34,replaceNotficationMessageAsync:35,removeNotficationMessageAsync:36,getBodyAsync:37,setBodyAsync:38,appCommands1:39,registerConsentAsync:40,close:41,closeApp:42,displayContactCardAsync:43,displayNewMessageForm:44,appCommands2:94,trackCtq:400,recordTrace:401,recordDataPoint:402,windowOpenOverrideHandler:403,saveSettingsRequest:404};$h.OutlookDispid.registerEnum("$h.OutlookDispid",!1);$h.RequestState=function(){};$h.RequestState.prototype={unsent:0,opened:1,headersReceived:2,loading:3,done:4};$h.RequestState.registerEnum("$h.RequestState",!1);$h.CommonParameters=function(n,t,i){this._options$p$0=n;this._callback$p$0=t;this._asyncContext$p$0=i};$h.CommonParameters.parse=function(n,t,i){var e;var s,h;if(i&&(h=$h.CommonParameters._tryParseLegacy$p(n,s={val:e}),e=s.val,h))return e;var f=n.length;var r=null;var u=null;var o=null;if(f===1)if(Function.isInstanceOfType(n[0]))u=n[0];else if(Object.isInstanceOfType(n[0]))r=n[0];else throw Error.argumentType();else if(f===2){if(!Object.isInstanceOfType(n[0]))throw Error.argument("options");if(!Function.isInstanceOfType(n[1]))throw Error.argument("callback");r=n[0];u=n[1]}else if(f)throw Error.parameterCount(window._u.ExtensibilityStrings.l_ParametersNotAsExpected_Text);if(t&&!u)throw Error.argumentNull("callback");r&&!$h.ScriptHelpers.isNullOrUndefined(r.asyncContext)&&(o=r.asyncContext);return new $h.CommonParameters(r,u,o)};$h.CommonParameters._tryParseLegacy$p=function(n,t){t.val=null;var i=n.length;var u=null;var r=null;if(!i||i>2||!Function.isInstanceOfType(n[0]))return!1;u=n[0];i>1&&(r=n[1]);t.val=new $h.CommonParameters(null,u,r);return!0};$h.CommonParameters.prototype={_options$p$0:null,_callback$p$0:null,_asyncContext$p$0:null,get_options:function(){return this._options$p$0},get_callback:function(){return this._callback$p$0},get_asyncContext:function(){return this._asyncContext$p$0}};$h.EwsRequest=function(n){$h.EwsRequest.initializeBase(this,[n])};$h.EwsRequest.prototype={readyState:1,status:0,statusText:null,onreadystatechange:null,responseText:null,get__statusCode$i$1:function(){return this.status},set__statusCode$i$1:function(n){this.status=n;return n},get__statusDescription$i$1:function(){return this.statusText},set__statusDescription$i$1:function(n){this.statusText=n;return n},get__requestState$i$1:function(){return this.readyState},set__requestState$i$1:function(n){this.readyState=n;return n},get_hasOnReadyStateChangeCallback:function(){return!$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)},get__response$i$1:function(){return this.responseText},set__response$i$1:function(n){this.responseText=n;return n},send:function(n){this._checkSendConditions$i$1();$h.ScriptHelpers.isNullOrUndefined(n)&&this._throwInvalidStateException$i$1();this._sendRequest$i$0(5,"EwsRequest",{body:n})},_callOnReadyStateChangeCallback$i$1:function(){$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)||this.onreadystatechange()},_parseExtraResponseData$i$1:function(n){},executeExtraFailedResponseSteps:function(){}};$h.InitialData=function(n){this._data$p$0=n;this._permissionLevel$p$0=this._calculatePermissionLevel$p$0()};$h.InitialData._defineReadOnlyProperty$i=function(n,t,i){var r={get:i,configurable:!1};Object.defineProperty(n,t,r)};$h.InitialData.prototype={_toRecipients$p$0:null,_ccRecipients$p$0:null,_attachments$p$0:null,_resources$p$0:null,_entities$p$0:null,_data$p$0:null,_permissionLevel$p$0:0,get__isRestIdSupported$i$0:function(){return this._data$p$0.isRestIdSupported},get__itemId$i$0:function(){return this._data$p$0.id},get__itemClass$i$0:function(){return this._data$p$0.itemClass},get__dateTimeCreated$i$0:function(){return new Date(this._data$p$0.dateTimeCreated)},get__dateTimeModified$i$0:function(){return new Date(this._data$p$0.dateTimeModified)},get__dateTimeSent$i$0:function(){return new Date(this._data$p$0.dateTimeSent)},get__subject$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.subject},get__normalizedSubject$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();return this._data$p$0.normalizedSubject},get__internetMessageId$i$0:function(){return this._data$p$0.internetMessageId},get__conversationId$i$0:function(){return this._data$p$0.conversationId},get__sender$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var n=this._data$p$0.sender;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get__from$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var n=this._data$p$0.from;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get__to$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._toRecipients$p$0&&(this._toRecipients$p$0=this._createEmailAddressDetails$p$0("to"));return this._toRecipients$p$0},get__cc$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._ccRecipients$p$0&&(this._ccRecipients$p$0=this._createEmailAddressDetails$p$0("cc"));return this._ccRecipients$p$0},get__attachments$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._attachments$p$0&&(this._attachments$p$0=this._createAttachmentDetails$p$0());return this._attachments$p$0},get__ewsUrl$i$0:function(){return this._data$p$0.ewsUrl},get__marketplaceAssetId$i$0:function(){return this._data$p$0.marketplaceAssetId},get__extensionId$i$0:function(){return this._data$p$0.extensionId},get__marketplaceContentMarket$i$0:function(){return this._data$p$0.marketplaceContentMarket},get__consentMetadata$i$0:function(){return this._data$p$0.consentMetadata},get__isRead$i$0:function(){return this._data$p$0.isRead},get__endNodeUrl$i$0:function(){return this._data$p$0.endNodeUrl},get__entryPointUrl$i$0:function(){return this._data$p$0.entryPointUrl},get__start$i$0:function(){return new Date(this._data$p$0.start)},get__end$i$0:function(){return new Date(this._data$p$0.end)},get__location$i$0:function(){return this._data$p$0.location},get__userProfileType$i$0:function(){return this._data$p$0.userProfileType},get__resources$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();null===this._resources$p$0&&(this._resources$p$0=this._createEmailAddressDetails$p$0("resources"));return this._resources$p$0},get__organizer$i$0:function(){this._throwOnRestrictedPermissionLevel$i$0();var n=this._data$p$0.organizer;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get__userDisplayName$i$0:function(){return this._data$p$0.userDisplayName},get__userEmailAddress$i$0:function(){return this._data$p$0.userEmailAddress},get__userTimeZone$i$0:function(){return this._data$p$0.userTimeZone},get__timeZoneOffsets$i$0:function(){return this._data$p$0.timeZoneOffsets},get__hostVersion$i$0:function(){return this._data$p$0.hostVersion},get__owaView$i$0:function(){return this._data$p$0.owaView},get__overrideWindowOpen$i$0:function(){return this._data$p$0.overrideWindowOpen},_getEntities$i$0:function(){this._entities$p$0||(this._entities$p$0=new $h.Entities(this._data$p$0.entities,this._data$p$0.filteredEntities,this.get__dateTimeSent$i$0(),this._permissionLevel$p$0));return this._entities$p$0},_getEntitiesByType$i$0:function(n){var t=this._getEntities$i$0();return t._getByType$i$0(n)},_getFilteredEntitiesByName$i$0:function(n){var t=this._getEntities$i$0();return t._getFilteredEntitiesByName$i$0(n)},_getRegExMatches$i$0:function(){return this._data$p$0.regExMatches?this._data$p$0.regExMatches:null},_getRegExMatchesByName$i$0:function(n){var t=this._getRegExMatches$i$0();return!t||!t[n]?null:t[n]},_throwOnRestrictedPermissionLevel$i$0:function(){window.OSF.DDA.OutlookAppOm._throwOnPropertyAccessForRestrictedPermission$i(this._permissionLevel$p$0)},_createEmailAddressDetails$p$0:function(n){var i=this._data$p$0[n];if($h.ScriptHelpers.isNullOrUndefined(i))return[];for(var r=[],t=0;t<i.length;t++)$h.ScriptHelpers.isNullOrUndefined(i[t])||(r[t]=new $h.EmailAddressDetails(i[t]));return r},_createAttachmentDetails$p$0:function(){var t=this._data$p$0.attachments;if($h.ScriptHelpers.isNullOrUndefined(t))return[];for(var i=[],n=0;n<t.length;n++)$h.ScriptHelpers.isNullOrUndefined(t[n])||(i[n]=new $h.AttachmentDetails(t[n]));return i},_calculatePermissionLevel$p$0:function(){var i=1;var r=2;var n=3;var t=this._data$p$0.permissionLevel;if($h.ScriptHelpers.isUndefined(this._permissionLevel$p$0))return 0;switch(t){case i:return 1;case n:return 2;case r:return 3;default:return 0}}};$h._loadDictionaryRequest=function(n,t,i,r){$h._loadDictionaryRequest.initializeBase(this,[r]);this._createResultObject$p$1=n;this._dictionaryName$p$1=t;this._callback$p$1=i};$h._loadDictionaryRequest.prototype={_dictionaryName$p$1:null,_createResultObject$p$1:null,_callback$p$1:null,handleResponse:function(n){if(n.wasSuccessful){var i=n[this._dictionaryName$p$1];var t=window.JSON.parse(i);this.createAsyncResult(this._createResultObject$p$1(t),0,0,null)}else this.createAsyncResult(null,1,9020,n.errorMessage);this._callback$p$1(this._asyncResult$p$0)}};$h.ProxyRequestBase=function(n){$h.ProxyRequestBase.initializeBase(this,[n])};$h.ProxyRequestBase.prototype={handleResponse:function(n){if(n.wasProxySuccessful){this.set__statusCode$i$1(n.statusCode);this.set__statusDescription$i$1(n.statusDescription);this.set__response$i$1(n.body);this.createAsyncResult(this.get__response$i$1(),0,0,null)}else{this.set__statusCode$i$1(500);this.set__statusDescription$i$1("Error");var t=n.errorMessage;this.set__response$i$1(t);this.createAsyncResult(null,1,9020,t)}this._parseExtraResponseData$i$1(n);this._cycleReadyStateFromHeadersReceivedToLoadingToDone$i$1()},_throwInvalidStateException$i$1:function(){throw Error.create("DOMException",{code:11,message:"INVALID_STATE_ERR"});},_cycleReadyStateFromHeadersReceivedToLoadingToDone$i$1:function(){var n=this;this._changeReadyState$i$1(2,function(){n._changeReadyState$i$1(3,function(){n._changeReadyState$i$1(4,null)})})},_changeReadyState$i$1:function(n,t){this.set__requestState$i$1(n);var i=this;window.setTimeout(function(){try{i._callOnReadyStateChangeCallback$i$1()}finally{$h.ScriptHelpers.isNullOrUndefined(t)||t()}},0)},_checkSendConditions$i$1:function(){this.get__requestState$i$1()!==1&&this._throwInvalidStateException$i$1();this._isSent$p$0&&this._throwInvalidStateException$i$1()}};$h.RequestBase=function(n){this._userContext$p$0=n};$h.RequestBase.prototype={_isSent$p$0:!1,_asyncResult$p$0:null,_userContext$p$0:null,get_asyncResult:function(){return this._asyncResult$p$0},_sendRequest$i$0:function(n,t,i){this._isSent$p$0=!0;var r=this;window.OSF.DDA.OutlookAppOm._instance$p.invokeHostMethod(n,i,function(n,t){n?r.createAsyncResult(null,1,9017,String.format(window._u.ExtensibilityStrings.l_InternalProtocolError_Text,n)):r.handleResponse(t)})},createAsyncResult:function(n,t,i,r){this._asyncResult$p$0=window.OSF.DDA.OutlookAppOm._instance$p.createAsyncResult(n,t,i,this._userContext$p$0,r)}};$h.SaveDictionaryRequest=function(n,t){$h.SaveDictionaryRequest.initializeBase(this,[t]);$h.ScriptHelpers.isNullOrUndefined(n)||(this._callback$p$1=n)};$h.SaveDictionaryRequest.prototype={_callback$p$1:null,handleResponse:function(n){n.wasSuccessful?this.createAsyncResult(null,0,0,null):this.createAsyncResult(null,1,9020,n.errorMessage);$h.ScriptHelpers.isNullOrUndefined(this._callback$p$1)||this._callback$p$1(this._asyncResult$p$0)}};$h.ScriptHelpers=function(){};$h.ScriptHelpers.isNull=function(n){return null===n};$h.ScriptHelpers.isNullOrUndefined=function(n){return $h.ScriptHelpers.isNull(n)||$h.ScriptHelpers.isUndefined(n)};$h.ScriptHelpers.isUndefined=function(n){return n===undefined};$h.ScriptHelpers.dictionaryContainsKey=function(n,t){return Object.isInstanceOfType(n)?t in n:!1};$h.ScriptHelpers.isNonEmptyString=function(n){return n?String.isInstanceOfType(n):!1};$h.ScriptHelpers.deepClone=function(n){return window.JSON.parse(window.JSON.stringify(n))};window.OSF.DDA.OutlookAppOm.registerClass("OSF.DDA.OutlookAppOm");window.OSF.DDA.Settings.registerClass("OSF.DDA.Settings");$h.ItemBase.registerClass("$h.ItemBase");$h.Item.registerClass("$h.Item",$h.ItemBase);$h.Appointment.registerClass("$h.Appointment",$h.Item);$h.ComposeItem.registerClass("$h.ComposeItem",$h.ItemBase);$h.AppointmentCompose.registerClass("$h.AppointmentCompose",$h.ComposeItem);$h.AttachmentConstants.registerClass("$h.AttachmentConstants");$h.AttachmentDetails.registerClass("$h.AttachmentDetails");$h.Body.registerClass("$h.Body");$h.ComposeBody.registerClass("$h.ComposeBody",$h.Body);$h.ComposeRecipient.registerClass("$h.ComposeRecipient");$h.ComposeLocation.registerClass("$h.ComposeLocation");$h.ComposeSubject.registerClass("$h.ComposeSubject");$h.ComposeTime.registerClass("$h.ComposeTime");$h.Contact.registerClass("$h.Contact");$h.CustomProperties.registerClass("$h.CustomProperties");$h.Diagnostics.registerClass("$h.Diagnostics");$h.EmailAddressDetails.registerClass("$h.EmailAddressDetails");$h.Entities.registerClass("$h.Entities");$h.ReplyConstants.registerClass("$h.ReplyConstants");$h.AsyncConstants.registerClass("$h.AsyncConstants");window.Office.cast.item.registerClass("Office.cast.item");$h.Message.registerClass("$h.Message",$h.Item);$h.MeetingRequest.registerClass("$h.MeetingRequest",$h.Message);$h.MeetingSuggestion.registerClass("$h.MeetingSuggestion");$h.MeetingSuggestionTimeDecoder.registerClass("$h.MeetingSuggestionTimeDecoder");$h._extractedDate.registerClass("$h._extractedDate");$h._preciseDate.registerClass("$h._preciseDate",$h._extractedDate);$h._relativeDate.registerClass("$h._relativeDate",$h._extractedDate);$h.MessageCompose.registerClass("$h.MessageCompose",$h.ComposeItem);$h.NotificationMessages.registerClass("$h.NotificationMessages");$h.OutlookErrorManager.registerClass("$h.OutlookErrorManager");$h.OutlookErrorManager.OutlookErrorCodes.registerClass("$h.OutlookErrorManager.OutlookErrorCodes");$h.OutlookErrorManager.OsfDdaErrorCodes.registerClass("$h.OutlookErrorManager.OsfDdaErrorCodes");$h.PhoneNumber.registerClass("$h.PhoneNumber");$h.TaskSuggestion.registerClass("$h.TaskSuggestion");$h.UserProfile.registerClass("$h.UserProfile");$h.CommonParameters.registerClass("$h.CommonParameters");$h.RequestBase.registerClass("$h.RequestBase");$h.ProxyRequestBase.registerClass("$h.ProxyRequestBase",$h.RequestBase);$h.EwsRequest.registerClass("$h.EwsRequest",$h.ProxyRequestBase);$h.InitialData.registerClass("$h.InitialData");$h._loadDictionaryRequest.registerClass("$h._loadDictionaryRequest",$h.RequestBase);$h.SaveDictionaryRequest.registerClass("$h.SaveDictionaryRequest",$h.RequestBase);$h.ScriptHelpers.registerClass("$h.ScriptHelpers");window.OSF.DDA.OutlookAppOm.asyncMethodTimeoutKeyName="__timeout__";window.OSF.DDA.OutlookAppOm.ewsIdOrEmailParamName="ewsIdOrEmail";window.OSF.DDA.OutlookAppOm._maxRecipients$p=100;window.OSF.DDA.OutlookAppOm._maxSubjectLength$p=255;window.OSF.DDA.OutlookAppOm.maxBodyLength=32768;window.OSF.DDA.OutlookAppOm._maxLocationLength$p=255;window.OSF.DDA.OutlookAppOm._maxEwsRequestSize$p=1e6;window.OSF.DDA.OutlookAppOm.executeMethodName="ExecuteMethod";window.OSF.DDA.OutlookAppOm.getInitialDataMethodName="GetInitialData";window.OSF.DDA.OutlookAppOm.itemIdParameterName="itemId";window.OSF.DDA.OutlookAppOm.restVersionParameterName="restVersion";window.OSF.DDA.OutlookAppOm._instance$p=null;$h.AttachmentConstants.maxAttachmentNameLength=255;$h.AttachmentConstants.maxUrlLength=2048;$h.AttachmentConstants.maxItemIdLength=200;$h.AttachmentConstants.maxRemoveIdLength=200;$h.AttachmentConstants.attachmentParameterName="attachments";$h.AttachmentConstants.attachmentTypeParameterName="type";$h.AttachmentConstants.attachmentUrlParameterName="url";$h.AttachmentConstants.attachmentItemIdParameterName="itemId";$h.AttachmentConstants.attachmentNameParameterName="name";$h.AttachmentConstants.attachmentTypeFileName="file";$h.AttachmentConstants.attachmentTypeItemName="item";$h.AttachmentDetails._attachmentTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.File,window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Item,window.Microsoft.Office.WebExtension.MailboxEnums.AttachmentType.Cloud];$h.Body.coercionTypeParameterName="coercionType";$h.ComposeRecipient.displayNameLengthLimit=255;$h.ComposeRecipient.maxSmtpLength=571;$h.ComposeRecipient.recipientsLimit=100;$h.ComposeRecipient.totalRecipientsLimit=500;$h.ComposeRecipient.addressParameterName="address";$h.ComposeRecipient.nameParameterName="name";$h.ComposeLocation.locationKey="location";$h.ComposeLocation.maximumLocationLength=255;$h.ComposeSubject.maximumSubjectLength=255;$h.ComposeTime.timeTypeName="TimeProperty";$h.ComposeTime.timeDataName="time";$h.Diagnostics.outlookAppName="Outlook";$h.Diagnostics.outlookWebAppName="OutlookWebApp";$h.EmailAddressDetails._emptyString$p="";$h.EmailAddressDetails._responseTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Organizer,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Tentative,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Accepted,window.Microsoft.Office.WebExtension.MailboxEnums.ResponseType.Declined];$h.EmailAddressDetails._recipientTypeMap$p=[window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.DistributionList,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.User,window.Microsoft.Office.WebExtension.MailboxEnums.RecipientType.ExternalUser];$h.Entities._allEntityKeys$p=["Addresses","EmailAddresses","Urls","PhoneNumbers","TaskSuggestions","MeetingSuggestions","Contacts","FlightReservations","ParcelDeliveries"];$h.ReplyConstants.htmlBodyKeyName="htmlBody";$h.AsyncConstants.optionsKeyName="options";$h.AsyncConstants.callbackKeyName="callback";$h.AsyncConstants.asyncResultKeyName="asyncResult";$h.MeetingSuggestionTimeDecoder._baseDate$p=new Date("0001-01-01T00:00:00Z");$h.NotificationMessages.maximumKeyLength=32;$h.NotificationMessages.maximumIconLength=32;$h.NotificationMessages.maximumMessageLength=150;$h.NotificationMessages.notificationsKeyParameterName="key";$h.NotificationMessages.notificationsTypeParameterName="type";$h.NotificationMessages.notificationsIconParameterName="icon";$h.NotificationMessages.notificationsMessageParameterName="message";$h.NotificationMessages.notificationsPersistentParameterName="persistent";$h.OutlookErrorManager.errorNameKey="name";$h.OutlookErrorManager.errorMessageKey="message";$h.OutlookErrorManager._isInitialized$p=!1;$h.OutlookErrorManager.OutlookErrorCodes.attachmentSizeExceeded=9e3;$h.OutlookErrorManager.OutlookErrorCodes.numberOfAttachmentsExceeded=9001;$h.OutlookErrorManager.OutlookErrorCodes.internalFormatError=9002;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentId=9003;$h.OutlookErrorManager.OutlookErrorCodes.invalidAttachmentPath=9004;$h.OutlookErrorManager.OutlookErrorCodes.cannotAddAttachmentBeforeUpgrade=9005;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeletedBeforeUploadCompletes=9006;$h.OutlookErrorManager.OutlookErrorCodes.attachmentUploadGeneralFailure=9007;$h.OutlookErrorManager.OutlookErrorCodes.attachmentToDeleteDoesNotExist=9008;$h.OutlookErrorManager.OutlookErrorCodes.attachmentDeleteGeneralFailure=9009;$h.OutlookErrorManager.OutlookErrorCodes.invalidEndTime=9010;$h.OutlookErrorManager.OutlookErrorCodes.htmlSanitizationFailure=9011;$h.OutlookErrorManager.OutlookErrorCodes.numberOfRecipientsExceeded=9012;$h.OutlookErrorManager.OutlookErrorCodes.noValidRecipientsProvided=9013;$h.OutlookErrorManager.OutlookErrorCodes.cursorPositionChanged=9014;$h.OutlookErrorManager.OutlookErrorCodes.invalidSelection=9016;$h.OutlookErrorManager.OutlookErrorCodes.accessRestricted=9017;$h.OutlookErrorManager.OutlookErrorCodes.genericTokenError=9018;$h.OutlookErrorManager.OutlookErrorCodes.genericSettingsError=9019;$h.OutlookErrorManager.OutlookErrorCodes.genericResponseError=9020;$h.OutlookErrorManager.OutlookErrorCodes.saveError=9021;$h.OutlookErrorManager.OutlookErrorCodes.messageInDifferentStoreError=9022;$h.OutlookErrorManager.OutlookErrorCodes.duplicateNotificationKey=9023;$h.OutlookErrorManager.OutlookErrorCodes.notificationKeyNotFound=9024;$h.OutlookErrorManager.OutlookErrorCodes.numberOfNotificationsExceeded=9025;$h.OutlookErrorManager.OutlookErrorCodes.persistedNotificationArrayReadError=9026;$h.OutlookErrorManager.OutlookErrorCodes.persistedNotificationArraySaveError=9027;$h.OutlookErrorManager.OutlookErrorCodes.cannotPersistPropertyInUnsavedDraftError=9028;$h.OutlookErrorManager.OutlookErrorCodes.ooeInvalidDataFormat=2006;$h.OutlookErrorManager.OsfDdaErrorCodes.ooeCoercionTypeNotSupported=1e3;$h.CommonParameters.asyncContextKeyName="asyncContext";$h.InitialData.userProfileTypeKey="userProfileType";$h.ScriptHelpers.emptyString="";OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};Microsoft.Office.WebExtension.FileType={Text:"text",Compressed:"compressed"};OSF.DDA.RichClientSettingsManager={read:function(n,t){var r=[],u=[];n&&n();window.external.GetContext().GetSettings().Read(r,u);t&&t();for(var f={},i=0;i<r.length;i++)f[r[i]]=u[i];return f},write:function(n,t,i,r){var e=[],f=[];for(var u in n){e.push(u);f.push(n[u])}i&&i();window.external.GetContext().GetSettings().Write(e,f);r&&r()}};OSF.DDA.DispIdHost.getRichClientDelegateMethods=function(n){var t={};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync;t[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync;t[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync;function i(n){return function(t){var r,i;try{i=n(t.hostCallArgs,t.onCalling,t.onReceiving);r=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}catch(u){r=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;i={name:Strings.OfficeOM.L_InternalError,message:u}}t.onComplete&&t.onComplete(r,i)}}function u(n,t,i){return OSF.DDA.RichClientSettingsManager.read(t,i)}function r(n,t,i){return OSF.DDA.RichClientSettingsManager.write(n[OSF.DDA.SettingsManager.SerializedSettings],n[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],t,i)}switch(n){case OSF.DDA.AsyncMethodNames.RefreshAsync.id:t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=i(u);break;case OSF.DDA.AsyncMethodNames.SaveAsync.id:t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=i(r)}return t};OSF.DDA.DispIdHost.getClientDelegateMethods=function(n){var t={};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync;t[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync;t[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync;if(OSF.DDA.AsyncMethodNames.RefreshAsync&&n==OSF.DDA.AsyncMethodNames.RefreshAsync.id){var r=function(n,t,i){return OSF.DDA.RichClientSettingsManager.read(t,i)};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.RichClientSettingsManager.getSettingsExecuteMethod(r)}if(OSF.DDA.AsyncMethodNames.SaveAsync&&n==OSF.DDA.AsyncMethodNames.SaveAsync.id){var i=function(n,t,i){return OSF.DDA.RichClientSettingsManager.write(n[OSF.DDA.SettingsManager.SerializedSettings],n[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],t,i)};t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.RichClientSettingsManager.getSettingsExecuteMethod(i)}return t};OSF.DDA.File=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{size:{value:t},sliceCount:{value:Math.ceil(t/i)}});var r={};r[OSF.DDA.FileProperties.Handle]=n;r[OSF.DDA.FileProperties.SliceSize]=i;var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[u.GetDocumentCopyChunkAsync,u.ReleaseDocumentCopyAsync],r)};OSF.DDA.FileSliceOffset="fileSliceoffset";OSF.DDA.CustomXmlParts=function(){this._eventDispatches=[];var n=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[n.AddDataPartAsync,n.GetDataPartByIdAsync,n.GetDataPartsByNameSpaceAsync])};OSF.DDA.CustomXmlPart=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{builtIn:{value:i},id:{value:t},namespaceManager:{value:new OSF.DDA.CustomXmlPrefixMappings(t)}});var f=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[f.DeleteDataPartAsync,f.GetPartNodesAsync,f.GetPartXmlAsync]);var e=n._eventDispatches,r=e[t];if(!r){var u=Microsoft.Office.WebExtension.EventType;r=new OSF.EventDispatch([u.DataNodeDeleted,u.DataNodeInserted,u.DataNodeReplaced]);e[t]=r}OSF.DDA.DispIdHost.addEventSupport(this,r)};OSF.DDA.CustomXmlPrefixMappings=function(n){var t=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[t.AddDataPartNamespaceAsync,t.GetDataPartNamespaceAsync,t.GetDataPartPrefixAsync],n)};OSF.DDA.CustomXmlNode=function(n,t,i,r){OSF.OUtil.defineEnumerableProperties(this,{baseName:{value:r},namespaceUri:{value:i},nodeType:{value:t}});var u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[u.GetRelativeNodesAsync,u.GetNodeValueAsync,u.GetNodeXmlAsync,u.SetNodeValueAsync,u.SetNodeXmlAsync,u.GetNodeTextAsync,u.SetNodeTextAsync],n)};OSF.DDA.NodeInsertedEventArgs=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DataNodeInserted},newNode:{value:n},inUndoRedo:{value:t}})};OSF.DDA.NodeReplacedEventArgs=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DataNodeReplaced},oldNode:{value:n},newNode:{value:t},inUndoRedo:{value:i}})};OSF.DDA.NodeDeletedEventArgs=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DataNodeDeleted},oldNode:{value:n},oldNextSibling:{value:t},inUndoRedo:{value:i}})};var OSFRichclient;(function(n){var t=function(){function n(){}n.prototype.execute=function(n,t,i){window.external.Execute(n,t,i)};n.prototype.registerEvent=function(n,t,i,r){window.external.RegisterEvent(n,t,i,r)};n.prototype.unregisterEvent=function(n,t,i){window.external.UnregisterEvent(n,t,i)};return n}();n.RichClientHostController=t})(OSFRichclient||(OSFRichclient={}));OSF.ClientHostController=new OSFRichclient.RichClientHostController;var OfficeExt;(function(n){(function(t){var r=function(){function r(){var n=this;this._pseudoDocument=null;this._eventDispatch=null;this._processAppCommandInvocation=function(t){var i=n._verifyManifestCallback(t.callbackName);if(i.errorCode!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){n._invokeAppCommandCompletedMethod(t.appCommandId,i.errorCode,"");return}var r=n._constructEventObjectForCallback(t);r?window.setTimeout(function(){i.callback(r)},0):n._invokeAppCommandCompletedMethod(t.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,"")}}r.initializeOsfDda=function(){OSF.DDA.AsyncMethodNames.addNames({AppCommandInvocationCompletedAsync:"appCommandInvocationCompletedAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:["string"]},{name:Microsoft.Office.WebExtension.Parameters.Status,types:["number"]},{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string"]}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{AppCommandInvoked:"appCommandInvoked"});OSF.OUtil.setNamespace("AppCommand",OSF.DDA);OSF.DDA.AppCommand.AppCommandInvokedEventArgs=n.AppCommand.AppCommandInvokedEventArgs};r.prototype.initializeAndChangeOnce=function(n){t.registerDdaFacade();this._pseudoDocument={};OSF.DDA.DispIdHost.addAsyncMethods(this._pseudoDocument,[OSF.DDA.AsyncMethodNames.AppCommandInvocationCompletedAsync]);this._eventDispatch=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.AppCommandInvoked]);var i=function(t){n&&(t.status=="succeeded"?n(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess):n(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError))};OSF.DDA.DispIdHost.addEventSupport(this._pseudoDocument,this._eventDispatch);this._pseudoDocument.addHandlerAsync(Microsoft.Office.WebExtension.EventType.AppCommandInvoked,this._processAppCommandInvocation,i)};r.prototype._verifyManifestCallback=function(n){var u={callback:null,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCallback};n=n.trim();try{for(var t=n.split("."),r=window,i=0;i<t.length-1;i++)if(r[t[i]]&&typeof r[t[i]]=="object")r=r[t[i]];else return u;var f=r[t[t.length-1]];if(typeof f!="function")return u}catch(e){return u}return{callback:f,errorCode:OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess}};r.prototype._invokeAppCommandCompletedMethod=function(n,t,i){this._pseudoDocument.appCommandInvocationCompletedAsync(n,t,i)};r.prototype._constructEventObjectForCallback=function(n){var u=this;var t=new i;try{var r=JSON.parse(n.eventObjStr);this._translateEventObjectInternal(r,t);Object.defineProperty(t,"completed",{value:function(){var i=JSON.stringify(t);u._invokeAppCommandCompletedMethod(n.appCommandId,OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,i)},enumerable:!0})}catch(f){t=null}return t};r.prototype._translateEventObjectInternal=function(n,t){for(var i in n)if(n.hasOwnProperty(i)){var r=n[i];if(typeof r=="object"&&r!=null){OSF.OUtil.defineEnumerableProperty(t,i,{value:{}});this._translateEventObjectInternal(r,t[i])}else Object.defineProperty(t,i,{value:r,enumerable:!0,writable:!0})}};r.prototype._constructObjectByTemplate=function(n,t){var r={};if(!n||!t)return r;for(var i in n)if(n.hasOwnProperty(i)){r[i]=null;if(t[i]!=null){var e=n[i];var f=t[i];var u=typeof f;typeof e=="object"&&e!=null?r[i]=this._constructObjectByTemplate(e,f):(u=="number"||u=="string"||u=="boolean")&&(r[i]=f)}}return r};r.instance=function(){r._instance==null&&(r._instance=new r);return r._instance};r._instance=null;return r}();t.AppCommandManager=r;var u=function(){function n(n,t,i){this.type=Microsoft.Office.WebExtension.EventType.AppCommandInvoked;this.appCommandId=n;this.callbackName=t;this.eventObjStr=i}n.create=function(i){return new n(i[t.AppCommandInvokedEventEnums.AppCommandId],i[t.AppCommandInvokedEventEnums.CallbackName],i[t.AppCommandInvokedEventEnums.EventObjStr])};return n}();t.AppCommandInvokedEventArgs=u;var i=function(){function n(){}return n}();t.AppCommandCallbackEventArgs=i;t.AppCommandInvokedEventEnums={AppCommandId:"appCommandId",CallbackName:"callbackName",EventObjStr:"eventObjStr"}})(n.AppCommand||(n.AppCommand={}));var t=n.AppCommand})(OfficeExt||(OfficeExt={}));OfficeExt.AppCommand.AppCommandManager.initializeOsfDda();var OfficeExt;(function(n){(function(t){function i(){if(OSF.DDA.SafeArray){var t=OSF.DDA.SafeArray.Delegate.ParameterMap;t.define({type:OSF.DDA.MethodDispId.dispidAppCommandInvocationCompletedMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Status,value:1},{name:Microsoft.Office.WebExtension.Parameters.Data,value:2}]});t.define({type:OSF.DDA.EventDispId.dispidAppCommandInvokedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,value:t.self}],isComplexType:!0});t.define({type:OSF.DDA.EventDescriptors.AppCommandInvokedEvent,fromHost:[{name:n.AppCommand.AppCommandInvokedEventEnums.AppCommandId,value:0},{name:n.AppCommand.AppCommandInvokedEventEnums.CallbackName,value:1},{name:n.AppCommand.AppCommandInvokedEventEnums.EventObjStr,value:2}],isComplexType:!0})}}t.registerDdaFacade=i})(n.AppCommand||(n.AppCommand={}));var t=n.AppCommand})(OfficeExt||(OfficeExt={}));var OfficeJsClient_OutlookWin32;(function(n){function t(){OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(OSF.DDA.DispIdHost.getClientDelegateMethods,OSF.DDA.SafeArray.Delegate.ParameterMap));var n=OfficeExt.AppCommand.AppCommandManager.instance();n.initializeAndChangeOnce()}n.prepareRightBeforeWebExtensionInitialize=t})(OfficeJsClient_OutlookWin32||(OfficeJsClient_OutlookWin32={}));OSF.OUtil.setNamespace("SafeArray",OSF.DDA);OSF.DDA.SafeArray.Response={Status:0,Payload:1};OSF.DDA.SafeArray.UniqueArguments={Offset:"offset",Run:"run",BindingSpecificData:"bindingSpecificData",MergedCellGuid:"{66e7831f-81b2-42e2-823c-89e872d541b3}"};OSF.OUtil.setNamespace("Delegate",OSF.DDA.SafeArray);OSF.DDA.SafeArray.Delegate.SpecialProcessor=function(){var t=this;function i(n){var t;try{var o=n.ubound(1),f=n.ubound(2);n=n.toArray();if(o==1&&f==1)t=[n];else{t=[];for(var u=0;u<o;u++){for(var i=[],r=0;r<f;r++){var e=n[u*f+r];e!=OSF.DDA.SafeArray.UniqueArguments.MergedCellGuid&&i.push(e)}i.length>0&&t.push(i)}}}catch(s){}return t}var r=[OSF.DDA.PropertyDescriptors.FileProperties,OSF.DDA.PropertyDescriptors.FileSliceProperties,OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,OSF.DDA.PropertyDescriptors.BindingProperties,OSF.DDA.SafeArray.UniqueArguments.BindingSpecificData,OSF.DDA.SafeArray.UniqueArguments.Offset,OSF.DDA.SafeArray.UniqueArguments.Run,OSF.DDA.PropertyDescriptors.Subset,OSF.DDA.PropertyDescriptors.DataPartProperties,OSF.DDA.PropertyDescriptors.DataNodeProperties,OSF.DDA.EventDescriptors.BindingSelectionChangedEvent,OSF.DDA.EventDescriptors.DataNodeInsertedEvent,OSF.DDA.EventDescriptors.DataNodeReplacedEvent,OSF.DDA.EventDescriptors.DataNodeDeletedEvent,OSF.DDA.EventDescriptors.DocumentThemeChangedEvent,OSF.DDA.EventDescriptors.OfficeThemeChangedEvent,OSF.DDA.EventDescriptors.ActiveViewChangedEvent,OSF.DDA.EventDescriptors.AppCommandInvokedEvent,OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode,Microsoft.Office.Internal.Parameters.OfficeTheme,Microsoft.Office.Internal.Parameters.DocumentTheme],n={};n[Microsoft.Office.WebExtension.Parameters.Data]=function(){var t=0,n=1;return{toHost:function(i){if(typeof i!="string"&&i[OSF.DDA.TableDataProperties.TableRows]!==undefined){var r=[];r[t]=i[OSF.DDA.TableDataProperties.TableRows];r[n]=i[OSF.DDA.TableDataProperties.TableHeaders];i=r}return i},fromHost:function(r){var f;if(r.toArray){var e=r.dimensions();if(e===2)f=i(r);else{var u=r.toArray();if(u.length===2&&(u[0]!=null&&u[0].toArray||u[1]!=null&&u[1].toArray)){f={};f[OSF.DDA.TableDataProperties.TableRows]=i(u[t]);f[OSF.DDA.TableDataProperties.TableHeaders]=i(u[n])}else f=u}}else f=r;return f}}}();OSF.DDA.SafeArray.Delegate.SpecialProcessor.uber.constructor.call(t,r,n);t.pack=function(t,i){var r;r=this.isDynamicType(t)?n[t].toHost(i):i;return r};t.unpack=function(t,i){var r;if(this.isComplexType(t)||OSF.DDA.ListType.isListType(t))try{r=i.toArray()}catch(u){r=i||{}}else r=this.isDynamicType(t)?n[t].fromHost(i):i;return r};t.dynamicTypes=n};OSF.OUtil.extend(OSF.DDA.SafeArray.Delegate.SpecialProcessor,OSF.DDA.SpecialProcessor);OSF.DDA.SafeArray.Delegate.ParameterMap=function(){var u=!0,f=new OSF.DDA.HostParameterMap(new OSF.DDA.SafeArray.Delegate.SpecialProcessor),n,r=f.self;function e(n){var i=null;if(n){i={};for(var r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value}return i}function t(n){var t={},i=e(n.toHost);if(n.invertible)t.map=i;else if(n.canonical)t.toHost=t.fromHost=i;else{t.toHost=i;t.fromHost=e(n.fromHost)}f.setMapping(n.type,t)}n=OSF.DDA.FileProperties;t({type:OSF.DDA.PropertyDescriptors.FileProperties,fromHost:[{name:n.Handle,value:0},{name:n.FileSize,value:1}]});t({type:OSF.DDA.PropertyDescriptors.FileSliceProperties,fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:0},{name:n.SliceSize,value:1}]});n=OSF.DDA.FilePropertiesDescriptor;t({type:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:n.Url,value:0}]});n=OSF.DDA.BindingProperties;t({type:OSF.DDA.PropertyDescriptors.BindingProperties,fromHost:[{name:n.Id,value:0},{name:n.Type,value:1},{name:OSF.DDA.SafeArray.UniqueArguments.BindingSpecificData,value:2}]});t({type:OSF.DDA.SafeArray.UniqueArguments.BindingSpecificData,fromHost:[{name:n.RowCount,value:0},{name:n.ColumnCount,value:1},{name:n.HasHeaders,value:2}]});n=OSF.DDA.SafeArray.UniqueArguments;t({type:OSF.DDA.PropertyDescriptors.Subset,toHost:[{name:n.Offset,value:0},{name:n.Run,value:1}],canonical:u});n=Microsoft.Office.WebExtension.Parameters;t({type:OSF.DDA.SafeArray.UniqueArguments.Offset,toHost:[{name:n.StartRow,value:0},{name:n.StartColumn,value:1}],canonical:u});t({type:OSF.DDA.SafeArray.UniqueArguments.Run,toHost:[{name:n.RowCount,value:0},{name:n.ColumnCount,value:1}],canonical:u});n=OSF.DDA.DataPartProperties;t({type:OSF.DDA.PropertyDescriptors.DataPartProperties,fromHost:[{name:n.Id,value:0},{name:n.BuiltIn,value:1}]});n=OSF.DDA.DataNodeProperties;t({type:OSF.DDA.PropertyDescriptors.DataNodeProperties,fromHost:[{name:n.Handle,value:0},{name:n.BaseName,value:1},{name:n.NamespaceUri,value:2},{name:n.NodeType,value:3}]});t({type:OSF.DDA.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:0},{name:OSF.DDA.PropertyDescriptors.Subset,value:1}]});t({type:OSF.DDA.EventDescriptors.DocumentThemeChangedEvent,fromHost:[{name:Microsoft.Office.Internal.Parameters.DocumentTheme,value:r}]});t({type:OSF.DDA.EventDescriptors.OfficeThemeChangedEvent,fromHost:[{name:Microsoft.Office.Internal.Parameters.OfficeTheme,value:r}]});t({type:OSF.DDA.EventDescriptors.ActiveViewChangedEvent,fromHost:[{name:Microsoft.Office.WebExtension.Parameters.ActiveView,value:0}]});n=OSF.DDA.DataNodeEventProperties;t({type:OSF.DDA.EventDescriptors.DataNodeInsertedEvent,fromHost:[{name:n.InUndoRedo,value:0},{name:n.NewNode,value:1}]});t({type:OSF.DDA.EventDescriptors.DataNodeReplacedEvent,fromHost:[{name:n.InUndoRedo,value:0},{name:n.OldNode,value:1},{name:n.NewNode,value:2}]});t({type:OSF.DDA.EventDescriptors.DataNodeDeletedEvent,fromHost:[{name:n.InUndoRedo,value:0},{name:n.OldNode,value:1},{name:n.NextSiblingNode,value:2}]});t({type:n.OldNode,fromHost:[{name:OSF.DDA.PropertyDescriptors.DataNodeProperties,value:r}]});t({type:n.NewNode,fromHost:[{name:OSF.DDA.PropertyDescriptors.DataNodeProperties,value:r}]});t({type:n.NextSiblingNode,fromHost:[{name:OSF.DDA.PropertyDescriptors.DataNodeProperties,value:r}]});n=Microsoft.Office.WebExtension.AsyncResultStatus;t({type:OSF.DDA.PropertyDescriptors.AsyncResultStatus,fromHost:[{name:n.Succeeded,value:0},{name:n.Failed,value:1}]});n=Microsoft.Office.WebExtension.CoercionType;t({type:Microsoft.Office.WebExtension.Parameters.CoercionType,toHost:[{name:n.Text,value:0},{name:n.Matrix,value:1},{name:n.Table,value:2},{name:n.Html,value:3},{name:n.Ooxml,value:4},{name:n.SlideRange,value:7},{name:n.Image,value:8}]});n=Microsoft.Office.WebExtension.GoToType;t({type:Microsoft.Office.WebExtension.Parameters.GoToType,toHost:[{name:n.Binding,value:0},{name:n.NamedItem,value:1},{name:n.Slide,value:2},{name:n.Index,value:3}]});n=Microsoft.Office.WebExtension.FileType;n&&t({type:Microsoft.Office.WebExtension.Parameters.FileType,toHost:[{name:n.Text,value:0},{name:n.Compressed,value:5},{name:n.Pdf,value:6}]});n=Microsoft.Office.WebExtension.BindingType;n&&t({type:Microsoft.Office.WebExtension.Parameters.BindingType,toHost:[{name:n.Text,value:0},{name:n.Matrix,value:1},{name:n.Table,value:2}],invertible:u});n=Microsoft.Office.WebExtension.ValueFormat;t({type:Microsoft.Office.WebExtension.Parameters.ValueFormat,toHost:[{name:n.Unformatted,value:0},{name:n.Formatted,value:1}]});n=Microsoft.Office.WebExtension.FilterType;t({type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:n.All,value:0},{name:n.OnlyVisible,value:1}]});n=Microsoft.Office.Internal.OfficeTheme;n&&t({type:Microsoft.Office.Internal.Parameters.OfficeTheme,fromHost:[{name:n.PrimaryFontColor,value:0},{name:n.PrimaryBackgroundColor,value:1},{name:n.SecondaryFontColor,value:2},{name:n.SecondaryBackgroundColor,value:3}]});n=Microsoft.Office.WebExtension.ActiveView;n&&t({type:Microsoft.Office.WebExtension.Parameters.ActiveView,fromHost:[{name:0,value:n.Read},{name:1,value:n.Edit}]});n=Microsoft.Office.Internal.DocumentTheme;n&&t({type:Microsoft.Office.Internal.Parameters.DocumentTheme,fromHost:[{name:n.PrimaryBackgroundColor,value:0},{name:n.PrimaryFontColor,value:1},{name:n.SecondaryBackgroundColor,value:2},{name:n.SecondaryFontColor,value:3},{name:n.Accent1,value:4},{name:n.Accent2,value:5},{name:n.Accent3,value:6},{name:n.Accent4,value:7},{name:n.Accent5,value:8},{name:n.Accent6,value:9},{name:n.Hyperlink,value:10},{name:n.FollowedHyperlink,value:11},{name:n.HeaderLatinFont,value:12},{name:n.HeaderEastAsianFont,value:13},{name:n.HeaderScriptFont,value:14},{name:n.HeaderLocalizedFont,value:15},{name:n.BodyLatinFont,value:16},{name:n.BodyEastAsianFont,value:17},{name:n.BodyScriptFont,value:18},{name:n.BodyLocalizedFont,value:19}]});n=Microsoft.Office.WebExtension.SelectionMode;t({type:Microsoft.Office.WebExtension.Parameters.SelectionMode,toHost:[{name:n.Default,value:0},{name:n.Selected,value:1},{name:n.None,value:2}]});n=Microsoft.Office.WebExtension.Parameters;var i=OSF.DDA.MethodDispId;t({type:i.dispidNavigateToMethod,toHost:[{name:n.Id,value:0},{name:n.GoToType,value:1},{name:n.SelectionMode,value:2}]});t({type:i.dispidGetSelectedDataMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:n.CoercionType,value:0},{name:n.ValueFormat,value:1},{name:n.FilterType,value:2}]});t({type:i.dispidSetSelectedDataMethod,toHost:[{name:n.CoercionType,value:0},{name:n.Data,value:1},{name:n.ImageLeft,value:2},{name:n.ImageTop,value:3},{name:n.ImageWidth,value:4},{name:n.ImageHeight,value:5}]});t({type:i.dispidGetFilePropertiesMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,value:r}]});t({type:i.dispidGetDocumentCopyMethod,toHost:[{name:n.FileType,value:0}],fromHost:[{name:OSF.DDA.PropertyDescriptors.FileProperties,value:r}]});t({type:i.dispidGetDocumentCopyChunkMethod,toHost:[{name:OSF.DDA.FileProperties.Handle,value:0},{name:OSF.DDA.FileSliceOffset,value:1},{name:OSF.DDA.FileProperties.SliceSize,value:2}],fromHost:[{name:OSF.DDA.PropertyDescriptors.FileSliceProperties,value:r}]});t({type:i.dispidReleaseDocumentCopyMethod,toHost:[{name:OSF.DDA.FileProperties.Handle,value:0}]});t({type:i.dispidAddBindingFromSelectionMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:r}],toHost:[{name:n.Id,value:0},{name:n.BindingType,value:1}]});t({type:i.dispidAddBindingFromPromptMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:r}],toHost:[{name:n.Id,value:0},{name:n.BindingType,value:1},{name:n.PromptText,value:2}]});t({type:i.dispidAddBindingFromNamedItemMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:r}],toHost:[{name:n.ItemName,value:0},{name:n.Id,value:1},{name:n.BindingType,value:2},{name:n.FailOnCollision,value:3}]});t({type:i.dispidReleaseBindingMethod,toHost:[{name:n.Id,value:0}]});t({type:i.dispidGetBindingMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:r}],toHost:[{name:n.Id,value:0}]});t({type:i.dispidGetAllBindingsMethod,fromHost:[{name:OSF.DDA.ListDescriptors.BindingList,value:r}]});t({type:i.dispidGetBindingDataMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:n.Id,value:0},{name:n.CoercionType,value:1},{name:n.ValueFormat,value:2},{name:n.FilterType,value:3},{name:OSF.DDA.PropertyDescriptors.Subset,value:4}]});t({type:i.dispidSetBindingDataMethod,toHost:[{name:n.Id,value:0},{name:n.CoercionType,value:1},{name:n.Data,value:2},{name:OSF.DDA.SafeArray.UniqueArguments.Offset,value:3}]});t({type:i.dispidAddRowsMethod,toHost:[{name:n.Id,value:0},{name:n.Data,value:1}]});t({type:i.dispidAddColumnsMethod,toHost:[{name:n.Id,value:0},{name:n.Data,value:1}]});t({type:i.dispidClearAllRowsMethod,toHost:[{name:n.Id,value:0}]});t({type:i.dispidClearFormatsMethod,toHost:[{name:n.Id,value:0}]});t({type:i.dispidSetTableOptionsMethod,toHost:[{name:n.Id,value:0},{name:n.TableOptions,value:1}]});t({type:i.dispidSetFormatsMethod,toHost:[{name:n.Id,value:0},{name:n.CellFormat,value:1}]});t({type:i.dispidLoadSettingsMethod,fromHost:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:r}]});t({type:i.dispidSaveSettingsMethod,toHost:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:OSF.DDA.SettingsManager.SerializedSettings},{name:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale,value:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale}]});t({type:OSF.DDA.MethodDispId.dispidGetOfficeThemeMethod,fromHost:[{name:Microsoft.Office.Internal.Parameters.OfficeTheme,value:r}]});t({type:OSF.DDA.MethodDispId.dispidGetDocumentThemeMethod,fromHost:[{name:Microsoft.Office.Internal.Parameters.DocumentTheme,value:r}]});t({type:OSF.DDA.MethodDispId.dispidGetActiveViewMethod,fromHost:[{name:Microsoft.Office.WebExtension.Parameters.ActiveView,value:r}]});t({type:i.dispidAddDataPartMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.DataPartProperties,value:r}],toHost:[{name:n.Xml,value:0}]});t({type:i.dispidGetDataPartByIdMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.DataPartProperties,value:r}],toHost:[{name:n.Id,value:0}]});t({type:i.dispidGetDataPartsByNamespaceMethod,fromHost:[{name:OSF.DDA.ListDescriptors.DataPartList,value:r}],toHost:[{name:n.Namespace,value:0}]});t({type:i.dispidGetDataPartXmlMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:n.Id,value:0}]});t({type:i.dispidGetDataPartNodesMethod,fromHost:[{name:OSF.DDA.ListDescriptors.DataNodeList,value:r}],toHost:[{name:n.Id,value:0},{name:n.XPath,value:1}]});t({type:i.dispidDeleteDataPartMethod,toHost:[{name:n.Id,value:0}]});t({type:i.dispidGetDataNodeValueMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:OSF.DDA.DataNodeProperties.Handle,value:0}]});t({type:i.dispidGetDataNodeXmlMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:OSF.DDA.DataNodeProperties.Handle,value:0}]});t({type:i.dispidGetDataNodesMethod,fromHost:[{name:OSF.DDA.ListDescriptors.DataNodeList,value:r}],toHost:[{name:OSF.DDA.DataNodeProperties.Handle,value:0},{name:n.XPath,value:1}]});t({type:i.dispidSetDataNodeValueMethod,toHost:[{name:OSF.DDA.DataNodeProperties.Handle,value:0},{name:n.Data,value:1}]});t({type:i.dispidSetDataNodeXmlMethod,toHost:[{name:OSF.DDA.DataNodeProperties.Handle,value:0},{name:n.Xml,value:1}]});t({type:i.dispidAddDataNamespaceMethod,toHost:[{name:OSF.DDA.DataPartProperties.Id,value:0},{name:n.Prefix,value:1},{name:n.Namespace,value:2}]});t({type:i.dispidGetDataUriByPrefixMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:OSF.DDA.DataPartProperties.Id,value:0},{name:n.Prefix,value:1}]});t({type:i.dispidGetDataPrefixByUriMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:OSF.DDA.DataPartProperties.Id,value:0},{name:n.Namespace,value:1}]});t({type:i.dispidGetDataNodeTextMethod,fromHost:[{name:n.Data,value:r}],toHost:[{name:OSF.DDA.DataNodeProperties.Handle,value:0}]});t({type:i.dispidSetDataNodeTextMethod,toHost:[{name:OSF.DDA.DataNodeProperties.Handle,value:0},{name:n.Text,value:1}]});t({type:i.dispidGetSelectedTaskMethod,fromHost:[{name:n.TaskId,value:r}]});t({type:i.dispidGetTaskMethod,fromHost:[{name:"taskName",value:0},{name:"wssTaskId",value:1},{name:"resourceNames",value:2}],toHost:[{name:n.TaskId,value:0}]});t({type:i.dispidGetTaskFieldMethod,fromHost:[{name:n.FieldValue,value:r}],toHost:[{name:n.TaskId,value:0},{name:n.FieldId,value:1},{name:n.GetRawValue,value:2}]});t({type:i.dispidGetWSSUrlMethod,fromHost:[{name:n.ServerUrl,value:0},{name:n.ListName,value:1}]});t({type:i.dispidGetSelectedResourceMethod,fromHost:[{name:n.ResourceId,value:r}]});t({type:i.dispidGetResourceFieldMethod,fromHost:[{name:n.FieldValue,value:r}],toHost:[{name:n.ResourceId,value:0},{name:n.FieldId,value:1},{name:n.GetRawValue,value:2}]});t({type:i.dispidGetProjectFieldMethod,fromHost:[{name:n.FieldValue,value:r}],toHost:[{name:n.FieldId,value:0},{name:n.GetRawValue,value:1}]});t({type:i.dispidGetSelectedViewMethod,fromHost:[{name:n.ViewType,value:0},{name:n.ViewName,value:1}]});i=OSF.DDA.EventDispId;t({type:i.dispidDocumentSelectionChangedEvent});t({type:i.dispidBindingSelectionChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.BindingSelectionChangedEvent,value:r}]});t({type:i.dispidBindingDataChangedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:r}]});t({type:i.dispidSettingsChangedEvent});t({type:i.dispidDocumentThemeChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DocumentThemeChangedEvent,value:r}]});t({type:i.dispidOfficeThemeChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.OfficeThemeChangedEvent,value:r}]});t({type:i.dispidActiveViewChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.ActiveViewChangedEvent,value:r}]});t({type:i.dispidDataNodeAddedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DataNodeInsertedEvent,value:r}]});t({type:i.dispidDataNodeReplacedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DataNodeReplacedEvent,value:r}]});t({type:i.dispidDataNodeDeletedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DataNodeDeletedEvent,value:r}]});t({type:i.dispidTaskSelectionChangedEvent});t({type:i.dispidResourceSelectionChangedEvent});t({type:i.dispidViewSelectionChangedEvent});f.define=t;return f}();OSF.DDA.SafeArray.Delegate._onException=function(n,t){var i,r=n.number;if(r)switch(r){case-2146828218:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2146827850:default:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}t.onComplete&&t.onComplete(i||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.SafeArray.Delegate.executeAsync=function(n){try{n.onCalling&&n.onCalling();function t(n){var i=n;if(OSF.OUtil.isArray(n))for(var f=i.length,r=0;r<f;r++)i[r]=t(i[r]);else if(OSF.OUtil.isDate(n))i=n.getVarDate();else if(typeof n=="object"&&!OSF.OUtil.isArray(n)){i=[];for(var u in n)OSF.OUtil.isFunction(n[u])||(i[u]=t(n[u]))}return i}var i=+new Date;window.external.Execute(n.dispId,t(n.hostCallArgs),function(t){n.onReceiving&&n.onReceiving();var r=t.toArray(),e=r[OSF.DDA.SafeArray.Response.Status];if(n.onComplete){var u;if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)if(r.length>2){u=[];for(var f=1;f<r.length;f++)u[f-1]=r[f]}else u=r[OSF.DDA.SafeArray.Response.Payload];else u=r[OSF.DDA.SafeArray.Response.Payload];n.onComplete(e,u)}OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(n.dispId,n.hostCallArgs,Math.abs(+new Date-i),e)})}catch(r){OSF.DDA.SafeArray.Delegate._onException(r,n)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(n,t){var i=+new Date;return function(r){t.onReceiving&&t.onReceiving();var u=r.toArray?r.toArray()[OSF.DDA.SafeArray.Response.Status]:r;t.onComplete&&t.onComplete(u);OSF.AppTelemetry&&OSF.AppTelemetry.onRegisterDone(n,t.dispId,Math.abs(+new Date-i),u)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);try{window.external.RegisterEvent(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{window.external.UnregisterEvent(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}}