File: C:/Users/fred/AppData/Local/Microsoft/OneDrive/26.168.0830.0006/WebAssets/static/platform/ecs.js
window.ViewLib=window.ViewLib||{},function(){function s(){var e=window._webView2Context;if(!e&&window.parent!==window)try{e=window.parent._webView2Context}catch{}return e}function l(){var e=s();return e&&e.ecsConfig||{}}var c=function(){var e=l();return{ecsFlightCount:Number.isSafeInteger(e.flightCount)&&e.flightCount>=0?e.flightCount:0,ursKillswitchCount:Number.isSafeInteger(e.killswitchCount)&&e.killswitchCount>=0?e.killswitchCount:0}}();function h(){return{ecsFlightCount:c.ecsFlightCount,ursKillswitchCount:c.ursKillswitchCount}}function o(){var e=s();return!!(e&&e.isE2ETestMode)}function f(e){var t=l(),i=t.ramps||{};return o()?i[e]!==!1:!!i[e]}function d(e){var t=l(),i=t.settings||{};return i[e]||""}function S(e,t){var i=d(e),n=parseInt(i,10);return isNaN(n)?t!==void 0?t:0:n}function a(e){var t=l(),i=t.killswitches||{};if(o()){var n=s()||{},r=n._e2eKSOverride||{};if(Object.prototype.hasOwnProperty.call(r,e))return r[e]!==!0;if(!n._e2eUseRealKS)return!0}return!i[e]}window.__vp_boot_span_recording_enabled=a(7054);function C(){return a(7235)?"text/plain;charset=UTF-8":"application/json"}function b(e){var t=l(),i={ramps:{},settings:{},killswitches:{}},n,r;if(e.ramps){var w=t.ramps||{},x=o();for(n=0;n<e.ramps.length;n++)r=e.ramps[n],x?i.ramps[r]=w[r]!==!1:i.ramps[r]=!!w[r]}if(e.settings){var V=t.settings||{};for(n=0;n<e.settings.length;n++)r=e.settings[n],i.settings[r]=V[r]||""}if(e.killswitches){var j=t.killswitches||{},u=o()?s()||{}:null,v=u?u._e2eKSOverride||{}:null,Q=u?!!u._e2eUseRealKS:!1;for(n=0;n<e.killswitches.length;n++){if(r=e.killswitches[n],u){if(Object.prototype.hasOwnProperty.call(v,r)){i.killswitches[r]=v[r]!==!0;continue}if(!Q){i.killswitches[r]=!0;continue}}i.killswitches[r]=!j[r]}}return i}function _(){return a(6216)}function m(){return a(6328)}function E(){return a(6600)}function O(){return a(6652)}function L(){return a(6790)}function y(e){if(o()){var t="_e2eForce"+e,i=s();if(i&&typeof i[t]=="boolean")return i[t];if(window.parent!==window)try{var n=window.parent._webView2Context;if(n&&typeof n[t]=="boolean")return n[t]}catch{}}}function D(){return a(6785)}function I(){return a(6939)}function k(){return a(6994)}function N(){return a(7431)}var T=7434;function P(){return a(T)}var F=7080,R=6888;function g(){return a(R)}function M(){return a(F)&&g()}function K(){var e=s();return e&&typeof e.isBusiness=="boolean"?e.isBusiness:!1}function U(e){return String(e).replace(/[\\/:*?"<>|]/g," ").replace(/\s+/g," ").trim().replace(/\.+$/,"").trim()}function A(){var e=s();return e&&typeof e.tenantDisplayName=="string"?U(e.tenantDisplayName):""}function B(){var e=s(),t=e&&e.photosStartMenuRegistryVariant;return t===1||t===2?t:0}if(window.ViewLib.ECS={isRampEnabled:f,getSettingString:d,getSettingInt:S,isKillswitchSafe:a,jsonRequestContentType:C,getBatch:b,getObservedCounts:h,getE2EOverride:y,peopleQueriesUseMergedEntities:_,peopleDontPersistThumbIdsInLocalStorage:m,peopleDedupeCardsOnInitialSyncRefresh:E,favoritesSortedIdsFavoritesFirst:O,mediaTagClutterSubscriptionEnabled:L,detailsPaneCloudLocalFallbackSafe:D,detailsPaneLocalOnlyCtxMenuSafe:I,detailsPaneUsePersistedDisplayPath:k,detailsPaneCtxMenuLocalIdFallbackSafe:N,oneUpLocalIdContentFallbackSafe:P,od4InlineDateControlAvailable:M,od4SharedBoundaryEngineSafe:g,photosStartMenuRegistryVariant:B,isBusinessAccount:K,getTenantDisplayName:A},o()){var p=function(){var e=window===window.top?"shell":location.pathname;console.log("[od4-e2e-diag] frame:",e,"isE2ETestMode:",o(),"isRampEnabled(99999):",f(99999))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",p):p()}}();