/* Outlook specific API library */ /* Version: 15.0.4615.1000 */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419. */ /*! Copyright (c) Microsoft Corporation. All rights reserved. */ /*! Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419. */ 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"};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"};Microsoft.Office.WebExtension.MailboxEnums.BodyType={Text:"text",Html:"html"};Microsoft.Office.WebExtension.CoercionType={Text:"text",Html:"html"};Type.registerNamespace("OSF.DDA");OSF.DDA.OutlookAppOm=function(n,t,i){this.$$d_$2O_0=Function.createDelegate(this,this.$2O_0);this.$$d_$2g_0=Function.createDelegate(this,this.$2g_0);this.$$d_windowOpenOverrideHandler=Function.createDelegate(this,this.windowOpenOverrideHandler);this.$$d_$32_0=Function.createDelegate(this,this.$32_0);this.$$d_$30_0=Function.createDelegate(this,this.$30_0);this.$$d_$3S_0=Function.createDelegate(this,this.$3S_0);this.$$d_$3A_0=Function.createDelegate(this,this.$3A_0);this.$$d_$37_0=Function.createDelegate(this,this.$37_0);OSF.DDA.OutlookAppOm.$2=this;this.$X_0=n;this.$1X_0=i;var r=this;var u=function(){i&&r.$B_0(1,"GetInitialData",null,r.$$d_$37_0)};this.$1Y_0()?u():this.$3Z_0(u)};OSF.DDA.OutlookAppOm.$J=function(n){if(!n)throw Error.create(_u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text);};OSF.DDA.OutlookAppOm.$A=function(n,t,i,r){if(ni)throw Error.argumentOutOfRange(r);};OSF.DDA.OutlookAppOm.$M=function(n,t,i){if(Object.getType(n)!==t)throw Error.argumentType(i);};OSF.DDA.OutlookAppOm.$1W=function(n,t,i,r){if(!$h.ScriptHelpers.isNullOrUndefined(n)){OSF.DDA.OutlookAppOm.$M(n,String,r);var u=n;OSF.DDA.OutlookAppOm.$A(u.length,t,i,r)}};OSF.DDA.OutlookAppOm.$2T=function(n,t){var i=null;switch(n){case 1:case 2:case 12:case 3:case 14:case 18:case 26:break;case 4:var r=JSON.stringify(t.customProperties);i=[r];break;case 5:i=[t.body];break;case 8:case 9:i=[t.itemId];break;case 7:i=[OSF.DDA.OutlookAppOm.$o(t.requiredAttendees),OSF.DDA.OutlookAppOm.$o(t.optionalAttendees),t.start,t.end,t.location,OSF.DDA.OutlookAppOm.$o(t.resources),t.subject,t.body];break;case 11:case 10:i=[t.htmlBody];break;case 23:case 13:i=[t.data,t.coercionType||null];break;case 17:i=[t.subject];break;case 15:i=[t.recipientField];break;case 22:case 21:i=[t.recipientField,OSF.DDA.OutlookAppOm.$2R(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;default:break}return i};OSF.DDA.OutlookAppOm.$o=function(n){return n?n.join(";"):null};OSF.DDA.OutlookAppOm.$2R=function(n){if(!n)return null;for(var i=new Array(n.length),t=0;tOSF.DDA.OutlookAppOm.$27)throw Error.argument("data",_u.ExtensibilityStrings.l_EwsRequestOversized_Text);this.$4_0(3,"makeEwsRequestAsync");var u=$h.CommonParameters.parse(r,!0,!0);var i=new $h.EwsRequest(u.$3_0);var f=this;i.onreadystatechange=function(){4===i.get_$2C_1()&&u.get_callback()(i.$R_0)};i.send(n)},recordDataPoint:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$B_0(0,"RecordDataPoint",n,null)},recordTrace:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$B_0(0,"RecordTrace",n,null)},trackCtq:function(n){if($h.ScriptHelpers.isNullOrUndefined(n))throw Error.argumentNull("data");this.$B_0(0,"TrackCtq",n,null)},convertToLocalClientTime:function(n){var t=new Date(n.getTime());var i=t.getTimezoneOffset()*-1;if(this.$5_0&&this.$5_0.get_$1Q_0()){t.setUTCMinutes(t.getUTCMinutes()-i);i=this.$1q_0(t);t.setUTCMinutes(t.getUTCMinutes()+i)}var r=this.$r_0(t);r.timezoneOffset=i;return r},convertToUtcClientTime:function(n){var t=this.$2f_0(n);if(this.$5_0&&this.$5_0.get_$1Q_0()){var i=this.$1q_0(t);t.setUTCMinutes(t.getUTCMinutes()-i);i=n.timezoneOffset?n.timezoneOffset:t.getTimezoneOffset()*-1;t.setUTCMinutes(t.getUTCMinutes()+i)}return t},getUserIdentityTokenAsync:function(){for(var t=[],n=0;n1&&i[1]){f.error=!0;f.errorCode=i[1]}else f.error=!1;r(t,f)}else if(Number.isInstanceOfType(u)){var e={};e.error=!0;e.errorCode=u;r(t,e)}else throw Error.notImplemented("Return data type from host must be Dictionary or int");}})}else r&&r(-2,null)},$2f_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(isNaN(t.getTime()))throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);return t},$r_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},$2g_0:function(n){var i=OSF.DDA.OutlookAppOm.$2K(n.requiredAttendees,"requiredAttendees");var r=OSF.DDA.OutlookAppOm.$2K(n.optionalAttendees,"optionalAttendees");OSF.DDA.OutlookAppOm.$1W(n.location,0,OSF.DDA.OutlookAppOm.$28,"location");OSF.DDA.OutlookAppOm.$1W(n.body,0,OSF.DDA.OutlookAppOm.$W,"body");OSF.DDA.OutlookAppOm.$1W(n.subject,0,OSF.DDA.OutlookAppOm.$2A,"subject");if(!$h.ScriptHelpers.isNullOrUndefined(n.start)){OSF.DDA.OutlookAppOm.$M(n.start,Date,"start");var f=n.start;n.start=f.getTime();if(!$h.ScriptHelpers.isNullOrUndefined(n.end)){OSF.DDA.OutlookAppOm.$M(n.end,Date,"end");var u=n.end;if(u=0&&n.getTime()-f<0)return parseInt(i.offset)}throw Error.format(_u.ExtensibilityStrings.l_InvalidDate_Text);},$1Y_0:function(){var n=!1;try{n=!$h.ScriptHelpers.isNullOrUndefined(_u.ExtensibilityStrings.l_EwsRequestOversized_Text)}catch(t){}return n},$3Z_0:function(n){for(var o=null,h="",c=document.getElementsByTagName("script"),s=c.length-1;s>=0;s--){var i=null;var l=c[s].attributes;if(l){var a=l.getNamedItem("src");a&&(i=a.value);if(i){var v=!1;i=i.toLowerCase();var u=i.indexOf("office_strings.js");if(u<0){u=i.indexOf("office_strings.debug.js");v=!0}if(u>0&&uf+1&&(h=r.substring(0,f+1));break}}}}if(o){var y=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 p=this;var w=function(){if(!p.$1Y_0()){var n=h+"en-us/"+"outlook_strings.js";t.onload=null;t.onreadystatechange=null;t=p.$1h_0(n);t.onload=e;t.onreadystatechange=e;y.appendChild(t)}};t=this.$1h_0(o);t.onload=e;t.onreadystatechange=e;window.setTimeout(w,2e3);y.appendChild(t)}},$1h_0:function(n){var t=document.createElement("script");t.type="text/javascript";t.src=n;return t}};OSF.DDA.Settings=function(n){this.$1D_0=n};OSF.DDA.Settings.$2S=function(n){if(!n)return{};if(OSF.DDA.OutlookAppOm.$2.get_$c_0()===8){var t=n.SettingsKey;if(t)return OSF.DDA.SettingsManager.deserializeSettings(t)}return n};OSF.DDA.Settings.prototype={$1D_0:null,$1K_0:null,get_$N_0:function(){if(!this.$1K_0){this.$1K_0=OSF.DDA.Settings.$2S(this.$1D_0);this.$1D_0=null}return this.$1K_0},get:function(n){return this.get_$N_0()[n]},set:function(n,t){this.get_$N_0()[n]=t},remove:function(n){delete this.get_$N_0()[n]},saveAsync:function(){for(var i=[],n=0;n255)throw Error.argumentOutOfRange("recipients",n.length,_u.ExtensibilityStrings.l_DisplayNameTooLong_Text);if(t&&t.length>571)throw Error.argumentOutOfRange("recipients",t.length,_u.ExtensibilityStrings.l_EmailAddressTooLong_Text);};$h.ComposeRecipient.$2o=function(n){for(var i=n,r=[],t=0;t0)this.$0_0=t[0];else throw Error.argument("data");}else this.$0_0=n};$h.CustomProperties.prototype={$0_0:null,get:function(n){var i=this.$0_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=parseInt(f);if(!isNaN(r)){var u=new Date(r);u&&(i=u)}}}return i},set:function(n,t){OSF.OUtil.isDate(t)&&(t="Date("+t.getTime()+")");this.$0_0[n]=t},remove:function(n){delete this.$0_0[n]},saveAsync:function(){for(var t=[],n=0;nr)throw Error.argument();var i=$h.CommonParameters.parse(t,!1,!0);var u=new $h.SaveDictionaryRequest(i.get_callback(),i.$3_0);u.$1J_0(4,"SaveCustomProperties",{customProperties:this.$0_0})}};$h.Diagnostics=function(n,t){this.$$d_$3H_0=Function.createDelegate(this,this.$3H_0);this.$$d_$35_0=Function.createDelegate(this,this.$35_0);this.$$d_$34_0=Function.createDelegate(this,this.$34_0);this.$0_0=n;this.$Q_0=t;$h.InitialData.$1(this,"hostName",this.$$d_$34_0);$h.InitialData.$1(this,"hostVersion",this.$$d_$35_0);64===this.$Q_0&&$h.InitialData.$1(this,"OWAView",this.$$d_$3H_0)};$h.Diagnostics.prototype={$0_0:null,$Q_0:0,$34_0:function(){if(8===this.$Q_0)return"Outlook";else if(64===this.$Q_0)return"OutlookWebApp";return null},$35_0:function(){return this.$0_0.get_$3T_0()},$3H_0:function(){return this.$0_0.get_$3c_0()}};$h.EmailAddressDetails=function(n){this.$$d_$1z_0=Function.createDelegate(this,this.$1z_0);this.$$d_$1r_0=Function.createDelegate(this,this.$1r_0);this.$$d_$x_0=Function.createDelegate(this,this.$x_0);this.$$d_$y_0=Function.createDelegate(this,this.$y_0);this.$0_0=n;$h.InitialData.$1(this,"emailAddress",this.$$d_$y_0);$h.InitialData.$1(this,"displayName",this.$$d_$x_0);$h.ScriptHelpers.dictionaryContainsKey(n,"appointmentResponse")&&$h.InitialData.$1(this,"appointmentResponse",this.$$d_$1r_0);$h.ScriptHelpers.dictionaryContainsKey(n,"recipientType")&&$h.InitialData.$1(this,"recipientType",this.$$d_$1z_0)};$h.EmailAddressDetails.$1d=function(n){var t={};var i=n.Name;var r=n.UserId;t.name=i||$h.EmailAddressDetails.$t;t.address=r||$h.EmailAddressDetails.$t;return new $h.EmailAddressDetails(t)};$h.EmailAddressDetails.prototype={$0_0:null,toJSON:function(){var n={};n.emailAddress=this.$y_0();n.displayName=this.$x_0();$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"appointmentResponse")&&(n.appointmentResponse=this.$1r_0());$h.ScriptHelpers.dictionaryContainsKey(this.$0_0,"recipientType")&&(n.recipientType=this.$1z_0());return n},$y_0:function(){return this.$0_0.address},$x_0:function(){return this.$0_0.name},$1r_0:function(){var n=this.$0_0.appointmentResponse;return n<$h.EmailAddressDetails.$1I.length?$h.EmailAddressDetails.$1I[n]:Microsoft.Office.WebExtension.MailboxEnums.ResponseType.None},$1z_0:function(){var n=this.$0_0.recipientType;return n<$h.EmailAddressDetails.$1E.length?$h.EmailAddressDetails.$1E[n]:Microsoft.Office.WebExtension.MailboxEnums.RecipientType.Other}};$h.Entities=function(n,t,i,r){this.$$d_$2W_0=Function.createDelegate(this,this.$2W_0);this.$$d_$1t_0=Function.createDelegate(this,this.$1t_0);this.$$d_$13_0=Function.createDelegate(this,this.$13_0);this.$$d_$17_0=Function.createDelegate(this,this.$17_0);this.$$d_$z_0=Function.createDelegate(this,this.$z_0);this.$$d_$1w_0=Function.createDelegate(this,this.$1w_0);this.$$d_$21_0=Function.createDelegate(this,this.$21_0);this.$$d_$w_0=Function.createDelegate(this,this.$w_0);this.$0_0=n||{};this.$1p_0=t||{};this.$O_0=i;$h.InitialData.$1(this,"addresses",this.$$d_$w_0);$h.InitialData.$1(this,"taskSuggestions",this.$$d_$21_0);$h.InitialData.$1(this,"meetingSuggestions",this.$$d_$1w_0);$h.InitialData.$1(this,"emailAddresses",this.$$d_$z_0);$h.InitialData.$1(this,"urls",this.$$d_$17_0);$h.InitialData.$1(this,"phoneNumbers",this.$$d_$13_0);$h.InitialData.$1(this,"contacts",this.$$d_$1t_0);this.$D_0=r};$h.Entities.$3r=function(n,t,i,r,u,f){var o=null;var e=t[i];if(!e)return new Array(0);u&&(e=$h.Entities.$3s(Object,e,$h.Entities.$2h,f));o=new Array(e.length);for(var c=0,h=e,l=h.length,s=0;s=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={$O_0:null,$0_0:null,$1p_0:null,$E_0:null,$D_0:0,$1N_0:null,$1A_0:null,$L_0:null,$n_0:null,$a_0:null,$s_0:null,$1V_0:null,$2v_0:function(n){if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.MeetingSuggestion)return this.$1w_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.TaskSuggestion)return this.$21_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Address)return this.$w_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.PhoneNumber)return this.$13_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.EmailAddress)return this.$z_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Url)return this.$17_0();else if(n===Microsoft.Office.WebExtension.MailboxEnums.EntityType.Contact)return this.$1t_0();return null},$11_0:function(n){this.$E_0||(this.$E_0={});if(!$h.ScriptHelpers.dictionaryContainsKey(this.$E_0,n)){for(var r=!1,i=0;i<$h.Entities.$b.length;i++){var u=$h.Entities.$b[i];var t=this.$1p_0[u];if(t&&$h.ScriptHelpers.dictionaryContainsKey(t,n)){switch(u){case"EmailAddresses":case"Urls":this.$E_0[n]=$h.Entities.$F(t,n);break;case"Addresses":this.$E_0[n]=$h.Entities.$F(t,n,!0);break;case"PhoneNumbers":this.$E_0[n]=$h.Entities.$3r($h.PhoneNumber,t,n,$h.Entities.$1f,!1,null);break;case"TaskSuggestions":this.$E_0[n]=$h.Entities.$3r($h.TaskSuggestion,t,n,$h.Entities.$1i,!0,"TaskString");break;case"MeetingSuggestions":this.$E_0[n]=$h.Entities.$3r($h.MeetingSuggestion,t,n,this.$$d_$2W_0,!0,"MeetingString");break;case"Contacts":this.$E_0[n]=$h.Entities.$3r($h.Contact,t,n,$h.Entities.$1b,!0,"ContactString");break}r=!0;break}}r||(this.$E_0[n]=null)}return this.$E_0[n]},$2W_0:function(n){return new $h.MeetingSuggestion(n,this.$O_0)},$w_0:function(){this.$a_0||(this.$a_0=$h.Entities.$F(this.$0_0,"Addresses",!0));return this.$a_0},$z_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$s_0||(this.$s_0=$h.Entities.$F(this.$0_0,"EmailAddresses",!1));return this.$s_0},$17_0:function(){this.$1V_0||(this.$1V_0=$h.Entities.$F(this.$0_0,"Urls",!1));return this.$1V_0},$13_0:function(){this.$L_0||(this.$L_0=$h.Entities.$3r($h.PhoneNumber,this.$0_0,"PhoneNumbers",$h.Entities.$1f));return this.$L_0},$21_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$1N_0||(this.$1N_0=$h.Entities.$3r($h.TaskSuggestion,this.$0_0,"TaskSuggestions",$h.Entities.$1i,!0,"TaskString"));return this.$1N_0},$1w_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$1A_0||(this.$1A_0=$h.Entities.$3r($h.MeetingSuggestion,this.$0_0,"MeetingSuggestions",this.$$d_$2W_0,!0,"MeetingString"));return this.$1A_0},$1t_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0);this.$n_0||(this.$n_0=$h.Entities.$3r($h.Contact,this.$0_0,"Contacts",$h.Entities.$1b,!0,"ContactString"));return this.$n_0}};Office.cast.item=function(){};Office.cast.item.toItemRead=function(n){if($h.Item.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toItemCompose=function(n){if($h.ComposeItem.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessage=function(n){return Office.cast.item.toMessageRead(n)};Office.cast.item.toMessageRead=function(n){if($h.Message.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMessageCompose=function(n){if($h.MessageCompose.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toMeetingRequest=function(n){if($h.MeetingRequest.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointment=function(n){return Office.cast.item.toAppointmentRead(n)};Office.cast.item.toAppointmentRead=function(n){if($h.Appointment.isInstanceOfType(n))return n;throw Error.argumentType();};Office.cast.item.toAppointmentCompose=function(n){if($h.AppointmentCompose.isInstanceOfType(n))return n;throw Error.argumentType();};$h.Item=function(n){this.$$d_$2p_1=Function.createDelegate(this,this.$2p_1);this.$$d_$3B_1=Function.createDelegate(this,this.$3B_1);this.$$d_$3C_1=Function.createDelegate(this,this.$3C_1);this.$$d_$2z_1=Function.createDelegate(this,this.$2z_1);this.$$d_$2y_1=Function.createDelegate(this,this.$2y_1);$h.Item.initializeBase(this,[n]);$h.InitialData.$1(this,"dateTimeCreated",this.$$d_$2y_1);$h.InitialData.$1(this,"dateTimeModified",this.$$d_$2z_1);$h.InitialData.$1(this,"itemId",this.$$d_$3C_1);$h.InitialData.$1(this,"itemClass",this.$$d_$3B_1);$h.InitialData.$1(this,"attachments",this.$$d_$2p_1)};$h.Item.prototype={$3C_1:function(){return this.$0_0.get_$3Y_0()},$3B_1:function(){return this.$0_0.get_$3X_0()},$2y_1:function(){return this.$0_0.get_$2Y_0()},$2z_1:function(){return this.$0_0.get_$2Z_0()},$2p_1:function(){return this.$0_0.get_$2M_0()}};$h.ItemBase=function(n){this.$$d_$2V_0=Function.createDelegate(this,this.$2V_0);this.$$d_getItemType=Function.createDelegate(this,this.getItemType);this.$0_0=n;$h.InitialData.$1(this,"itemType",this.$$d_getItemType)};$h.ItemBase.prototype={$0_0:null,get_data:function(){return this.$0_0},loadCustomPropertiesAsync:function(){for(var t=[],n=0;n0)return new Date(n.getFullYear()+t.$C_1,0,1);break;default:break}return n};$h.MeetingSuggestionTimeDecoder.$2j=function(n,t,i){if(t>-5&&t<5){var u;var f;u=(i+6)%7+1;f=7*t+(u-n.getDay());n.setDate(n.getDate()+f);return n}else{var r=(i-n.getDay())%7;r<0&&(r+=7);n.setDate(n.getDate()+r);return n}};$h.MeetingSuggestionTimeDecoder.$2k=function(n,t){var u;var i;var r;u=n;if(t.$I_1<=0||t.$I_1>12||t.$C_1<=0||t.$C_1>5)return n;var e=(12+t.$I_1-u.getMonth()-1)%12;i=new Date(u.getFullYear(),u.getMonth()+e,1);if(t.$K_1===1)if(t.$C_1===1&&i.getDay()!==6&&i.getDay()!==0)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()!==0&&i.getDay()!==1&&r.setDate(r.getDate()-7);r.setDate(r.getDate()+7*(t.$C_1-1));return r.getMonth()+1!==t.$I_1?n:r}else{r=new Date(i.getFullYear(),i.getMonth(),$h.MeetingSuggestionTimeDecoder.$2b(i.getMonth(),i.getFullYear()));var f=1-r.getDay();f>0&&(f=f-7);r.setDate(r.getDate()+f);r.setDate(r.getDate()+7*(1-t.$C_1));return r.getMonth()+1!==t.$I_1?i.getDay()!==6&&i.getDay()!==0?i:n:r}};$h.MeetingSuggestionTimeDecoder.$2c=function(n,t,i){var u=32767;t.val=null;i.val=0;if(!n)return!1;i.val=$h.MeetingSuggestionTimeDecoder.$3Q(n);var f=n.getTime()-i.val;var r=(f-$h.MeetingSuggestionTimeDecoder.$1Z.getTime())/864e5;if(r<0)return!1;else if(r>=262144)return!1;else{var e=r>>15;r=r&u;switch(e){case 0:return $h.MeetingSuggestionTimeDecoder.$2d(r,t);case 1:return $h.MeetingSuggestionTimeDecoder.$2e(r,t);default:return!1}}};$h.MeetingSuggestionTimeDecoder.$2d=function(n,t){var o=7;var u=15;var s=31;var h=127;var f=null;var r=0;var e=0;t.val=null;var i=n>>12&o;if((i&4)==4){f=n>>5&h;if((i&2)==2){if((i&1)==1)return!1;r=n>>1&u}}else{(i&2)==2&&(r=n>>8&u);(i&1)==1&&(e=n>>3&s)}t.val=new $h.PreciseDate(e,r,f);return!0};$h.MeetingSuggestionTimeDecoder.$2e=function(n,t){var i=15;var r=63;var u=7;var f=3;var e=n&i;n>>=4;var o=$h.MeetingSuggestionTimeDecoder.$2m(n&r,6);n>>=6;var s=n&u;n>>=3;var h=n&f;try{t.val=new $h.RelativeDate(h,o,s,e);return!0}catch(c){t.val=null;return!1}};$h.MeetingSuggestionTimeDecoder.$2m=function(n,t){var i=1<2||!Function.isInstanceOfType(n[0]))return!1;r=n[0];i>1&&(u=n[1]);t.val=new $h.CommonParameters(null,r,u);return!0};$h.CommonParameters.prototype={$P_0:null,$G_0:null,$3_0:null,get_options:function(){return this.$P_0},get_callback:function(){return this.$G_0},get_asyncContext:function(){return this.$3_0}};$h.EwsRequest=function(n){this.readyState=1;$h.EwsRequest.initializeBase(this,[n])};$h.EwsRequest.prototype={status:0,statusText:null,onreadystatechange:null,responseText:null,get_$2E_1:function(){return this.status},set_$2E_1:function(n){this.status=n;return n},get_$2F_1:function(){return this.statusText},set_$2F_1:function(n){this.statusText=n;return n},get_$2C_1:function(){return this.readyState},set_$2C_1:function(n){this.readyState=n;return n},get_$1H_1:function(){return this.responseText},set_$1H_1:function(n){this.responseText=n;return n},send:function(n){this.$2Q_1();$h.ScriptHelpers.isNullOrUndefined(n)&&this.$1O_1();this.$1J_0(5,"EwsRequest",{body:n})},$2P_1:function(){$h.ScriptHelpers.isNullOrUndefined(this.onreadystatechange)||this.onreadystatechange()},$3d_1:function(n){}};$h.InitialData=function(n){this.$0_0=n;this.$D_0=this.$2N_0()};$h.InitialData.$1=function(n,t,i){var r={get:i,configurable:!1};Object.defineProperty(n,t,r)};$h.InitialData.prototype={$1T_0:null,$l_0:null,$e_0:null,$1G_0:null,$v_0:null,$0_0:null,$D_0:0,get_$3Y_0:function(){return this.$0_0.id},get_$3X_0:function(){return this.$0_0.itemClass},get_$2Y_0:function(){return new Date(this.$0_0.dateTimeCreated)},get_$2Z_0:function(){return new Date(this.$0_0.dateTimeModified)},get_$2a_0:function(){return new Date(this.$0_0.dateTimeSent)},get_$2G_0:function(){this.$6_0();return this.$0_0.subject},get_$2B_0:function(){this.$6_0();return this.$0_0.normalizedSubject},get_$3W_0:function(){return this.$0_0.internetMessageId},get_$1a_0:function(){return this.$0_0.conversationId},get_$3j_0:function(){this.$6_0();var n=this.$0_0.sender;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$2l_0:function(){this.$6_0();var n=this.$0_0.from;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$1S_0:function(){this.$6_0();null===this.$1T_0&&(this.$1T_0=this.$p_0("to"));return this.$1T_0},get_$k_0:function(){this.$6_0();null===this.$l_0&&(this.$l_0=this.$p_0("cc"));return this.$l_0},get_$2M_0:function(){this.$6_0();null===this.$e_0&&(this.$e_0=this.$2U_0());return this.$e_0},get_$2i_0:function(){return this.$0_0.ewsUrl},get_$2D_0:function(){return new Date(this.$0_0.start)},get_$1o_0:function(){return new Date(this.$0_0.end)},get_$26_0:function(){return this.$0_0.location},get_$3g_0:function(){this.$6_0();null===this.$1G_0&&(this.$1G_0=this.$p_0("resources"));return this.$1G_0},get_$3a_0:function(){this.$6_0();var n=this.$0_0.organizer;return $h.ScriptHelpers.isNullOrUndefined(n)?null:new $h.EmailAddressDetails(n)},get_$3o_0:function(){return this.$0_0.userDisplayName},get_$3p_0:function(){return this.$0_0.userEmailAddress},get_$3q_0:function(){return this.$0_0.userTimeZone},get_$1Q_0:function(){return this.$0_0.timeZoneOffsets},get_$3T_0:function(){return this.$0_0.hostVersion},get_$3c_0:function(){return this.$0_0.owaView},get_$3b_0:function(){return this.$0_0.overrideWindowOpen},$T_0:function(){this.$v_0||(this.$v_0=new $h.Entities(this.$0_0.entities,this.$0_0.filteredEntities,this.get_$2a_0(),this.$D_0));return this.$v_0},$1v_0:function(n){var t=this.$T_0();return t.$2v_0(n)},$11_0:function(n){var t=this.$T_0();return t.$11_0(n)},$14_0:function(){return this.$0_0.regExMatches?this.$0_0.regExMatches:null},$20_0:function(n){var t=this.$14_0();return!t||!t[n]?null:t[n]},$6_0:function(){OSF.DDA.OutlookAppOm.$J(this.$D_0)},$p_0:function(n){var i=this.$0_0[n];if($h.ScriptHelpers.isNullOrUndefined(i))return[];for(var r=[],t=0;t