/*! * ------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- * * This file is based on or incorporates material from the projects listed below (Third Party IP). The original copyright notice and the license under which Microsoft received such Third Party IP, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party IP to you under the licensing terms for the Microsoft product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise. * * json2.js (2016-05-01) * https://github.com/douglascrockford/JSON-js * License: Public Domain * * Provided for Informational Purposes Only * * ----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------ */!function(e){function n(n){for(var t,i,o=n[0],r=n[1],s=0,c=[];s0){var e=o.slice();o=[],setTimeout((function(){for(var n=0,t=e.length;n=10){var n=T.getIEVersion();p=null!==n&&n>=12}}return p},isChrome:function(){return null===b&&(b=navigator.userAgent.toLowerCase().indexOf("chrome")>-1),b},isFirefoxNewerThan:function(e){if(g[e]===undefined){var n=T.getFirefoxVersion();g[e]=n&&n>e}return g[e]},isChromeNewerThan:function(e){if(m[e]===undefined){var n=T.getChromeVersion();m[e]=n&&n>e}return m[e]},isIOSSafari:function(){if(null===v){var e=u.navigator.userAgent.toLowerCase();v=/safari/.test(e)&&/iphone|ipod|ipad/.test(e)&&!u.MSStream}return v},isIOSUIWebView:function(){if(null===h){var e=u.navigator.userAgent.toLowerCase();h=!1===/safari/.test(e)&&/iphone|ipod|ipad/.test(e)&&!u.MSStream}return h},isQtCarBrowser:function(){return null===_&&(_=navigator.userAgent.toLowerCase().indexOf("qtcarbrowser")>-1),_},isEdgeClientBrowser:function(){return null===C&&(C=navigator.userAgent.toLowerCase().indexOf("edgeclient/")>-1),C},isOnTouchStartEventSupported:function(){return"ontouchstart"in document.documentElement},getIEVersion:function(){var e=u.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){var t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):null},getFirefoxVersion:function(){var e=u.navigator.userAgent.match(/(firefox(?=\/))\/?\s*(\d+)/i);return e&&3===e.length&&"firefox"===e[1].toLowerCase()?parseInt(e[2]):null},getChromeVersion:function(){var e=u.navigator.userAgent.match(/(chrome(?=\/))\/?\s*(\d+)/i);return e&&3===e.length&&"chrome"===e[1].toLowerCase()?parseInt(e[2]):null},getWindowsVersion:function(){return null!==new RegExp("Windows NT ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)?parseFloat(RegExp.$1):null},htmlEscape:function(e){if(!e)return"";var n=document.createElement("textarea");return n.innerText=e,n.innerHTML},htmlUnescape:function(e){if(!e)return"";if(e.match(/<[^<>]+>/))return e;var n=document.createElement("textarea");return n.innerHTML=e,n.value},getStackSize:function(e){var n=0,t=null==e;try{!function i(){n++,(t||n<=e)&&i()}()}catch(i){}return n},getAnimationEndEventName:function(){var e=document.createElement("div"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(var t in n)if(e.style[t]!==undefined)return n[t];return""},isStackSizeGreaterThan:function(e){return e=e||0,T.getStackSize(e)>e},isSvgImgSupported:function(){return null===k&&(k=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),k},isPlaceholderAttributeAllowed:function(e){return null===x&&(x=T.isChromeNewerThan(16)||T.isEdge()||T.isFirefoxNewerThan(14)||e&&T.isIOSUIWebView()||T.isIOSSafari()||T.isQtCarBrowser()),x},isCSSAnimationSupported:function(){var e=!1,n=document.createElement("div");(e=n.style.animationName!==undefined)||(e=!!l.first(["Webkit","Moz","O"],(function(e){return n.style[e+"AnimationName"]!==undefined})));return e},isStyleSupported:function(e){return e in document.documentElement.style},isCORSSupported:function(){return u.XDomainRequest||u.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest},isHistorySupported:function(){if(null===w){if(w=u.history&&u.history.pushState&&"undefined"!=typeof u.history.state&&"undefined"!=typeof u.onpopstate)try{u.history.replaceState("__history_test",""),("__history_test"!==u.history.state||T.isEdgeClientBrowser())&&(w=!1)}catch(e){w=!1}}return w},isFidoSupportedAsync:function(e,n){if(!n){if(!(u.navigator.credentials!==undefined&&u.navigator.credentials.create!==undefined&&u.navigator.credentials.get!==undefined&&u.PublicKeyCredential!==undefined&&u.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable!==undefined))return r.resolve(!1);if(u.PublicKeyCredential.isExternalCTAP2SecurityKeySupported)return s.newPromiseWithTimeout(u.PublicKeyCredential.isExternalCTAP2SecurityKeySupported,a.PromiseTimeout,!1)}return r.resolve(e)},isChangingInputTypeSupported:function(){return!T.isIEOlderThan(9)},getComputedSpan:function(){var e=document.createElement("span");e.style.borderLeftColor="red",e.style.borderRightColor="blue",e.style.backgroundColor="Window",e.style.position="absolute",e.style.top="-999px",document.body.appendChild(e);var n=T.getComputedStyle(e),t=n.borderLeftColor,i=n.borderRightColor,a=n.backgroundColor;return document.body.removeChild(e),{borderLeftColor:t,borderRightColor:i,backgroundColor:a}},isHighContrast:function(){if(null===S){var e=T.getComputedSpan();S=e.borderLeftColor===e.borderRightColor,P&&!S&&(S=T.getIsHighContrastUsingCssMediaQuery().isHighContrast)}return S},getIsHighContrastUsingCssMediaQuery:function(){var e=document.getElementsByTagName("head")[0],n=document.createElement("style");n.innerHTML='@media (-ms-high-contrast: active) { .high-contrast-detection::before { content: "active"; display: none; }}@media (-ms-high-contrast: black-on-white) { .high-contrast-detection::before { content: "white"; display: none; }}@media (-ms-high-contrast: white-on-black) { .high-contrast-detection::before { content: "black"; display: none; }}',e.appendChild(n);var t=document.createElement("div");t.className="high-contrast-detection",document.body.appendChild(t);var i=window.getComputedStyle(t,"::before").content,a="";return'"black"'===i?a="black":'"white"'===i&&(a="white"),document.body.removeChild(t),e.removeChild(n),{isHighContrast:-1!==['"active"','"black"','"white"'].indexOf(i),theme:a}},getHighContrastTheme:function(){function e(e,n,t){function i(e,n,t,i){return new RegExp("^rgba?\\("+n+",\\s?"+t+",\\s?"+i+"(,\\s?\\d+\\.?\\d*)?\\)$","i").test(e.trim())}for(var a=0;ai?e:r},remove:function(e,n){var t=D.parse(e);t.query=t.query||{};var i=c.findOwnProperty(t.query,n,!0);return i&&delete t.query[i],D.join(t)},extract:function(e,n){n||""===n||(n=document.location.search);var t=D.parse(n);t.query=t.query||{};var i=c.findOwnProperty(t.query,e,!0);return i?t.query[i]:""},appendOrReplaceFromCurrentUrl:function(e,n){var t=D.extract(n);return t?D.appendOrReplace(e,n,t):e},stripQueryStringAndFragment:function(e){return D.parse(e).originAndPath}},E=n.Cookies={expireDate:"Thu, 30-Oct-1980 16:00:00 GMT",persistTTLDays:390,cookieSafeRegex:/^[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]+$/,enabled:function(){var e="G"+(new Date).getTime();E.write("CkTst",e);var n=!!E.getCookie("CkTst");return E.remove("CkTst"),n},getCookies:function(){return d.doubleSplit(document.cookie,";","=",!1,d.trim)},getCookie:function(e){var n=E.getCookies();return n[e]?n[e]:null},getObject:function(e){var n=E.getCookie(e)||"";return d.doubleSplit(n,"&","=")},remove:function(e,n,t){var i=n||document.location.hostname,a=i.split("."),o=a.length,r=a[o-2]+"."+a[o-1],s=t||"/",c="https:"===document.location.protocol,l=c?";secure":"",u=E.getDefaultSameSiteAttribute(c);document.cookie=d.format("{0}= ;domain=.{1};path={2};expires={3}{4}{5}",e,r,s,E.expireDate,l,u),document.cookie=d.format("{0}= ;domain=.{1};path={2};expires={3}{4}{5}",e,i,s,E.expireDate,l,u)},write:function(e,n,t,i,a,o,r,s,c){var d=o?".":"",l=document.domain.split(".");a&&l.splice(0,Math.max(0,l.length-2));var u=d+l.join(".");E.writeWithExpiration(e,n,t,i?E.getPersistDate():null,u,r,s,c)},writeWithExpiration:function(e,n,t,a,o,r,s,l){if(""===n)E.remove(e,o);else{"object"===i(n)&&(n=c.join(n,"&","="));var u,p=a?";expires="+a:"",f=o?";domain="+o:"",g=r||"/",m=t?";secure":"";u=s&&"none"!==s.toLowerCase()?";SameSite="+s:E.getDefaultSameSiteAttribute(t);var b=d.format("{0};path={1}{2}{3}{4}",f,g,p,m,u);if(l){for(var v=4e3-b.length-e.length-1,h=Math.ceil(n.length/v),_=E.getCookies(),C=0;C"~"||-1!==e.indexOf(" "))return!1;var n=e.indexOf("@");if(-1===n||-1===e.indexOf(".",n))return!1;var t=e.split("@");if(t.length>2||t[0].length<1||t[1].length<2)return!1;if(s.ServerData.fApplyAsciiRegexOnInput){var i=new RegExp(/^[\x21-\x7E]+$/);return!!e.match(i)}return!0},isPhoneNumber:function(e){var n=e.replace(/\D+/g,"");return n.length>=4&&n.length<=50},isSkypeName:function(e){e=d.trim(e);var n=new RegExp(/^[a-zA-Z][a-zA-Z0-9.,\-_:']{0,128}$/);return!!e.match(n)},extractDomain:function(e,n,t){if(!d.isEmailAddress(e))return e;var i=d.trim(e).split("@")[1];return e=t?"@":"",n?e+i.slice(0,i.lastIndexOf(".")+1):e+i},extractDomainFromUrl:function(e){if(e){var n=document.createElement("a");return n.href=e,n.hostname}return""},extractOriginFromUrl:function(e){if(e){var n=document.createElement("a");n.href=e;var t=n.origin;return t||(t=n.protocol+"//"+n.hostname+(n.port?":"+n.port:"")),t}return""},doOriginsMatch:function(e,n){var t=d.extractOriginFromUrl(e);return d.extractOriginFromUrl(n)===t},capFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},cleanseUsername:function(e,n){if(!e)return"";if(e=d.trim(e).toLowerCase(),!d.isEmailAddress(e)&&!d.isSkypeName(e)&&d.isPhoneNumber(e)){var t="";return n&&"+"===e.charAt(0)&&(t="+"),t+e.replace(/\D+/g,"")}return e},maskString:function(e,n){if(!e)return"";if(e.length<=2*n)return e;var t=e.length-2*n,i=Array(t+1).join("*");return e.substring(0,n)+i+e.substring(n+t)},utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var n="",t=0;t127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(63&i|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(63&i|128))}return n}},l=n.Array={first:a.utils.arrayFirst,forEach:a.utils.arrayForEach,map:a.utils.arrayMap,removeItem:a.utils.arrayRemoveItem,arrayFilter:a.utils.arrayFilter,findIndex:function(e,n){if(e&&"object"===i(e)&&e.length)for(var t=0;t=400&&(a=!0);break;case"parsererror":r="Unable to parse response",a=!0}t.error={code:o,message:r,debugMessage:"(xhr status "+e.status+") xhr.responseText: "+e.responseText,stackTrace:"",isFatal:a}}return t}function C(e){var t,a=(e=e||{}).error||null,o={startTime:f,endTime:(new Date).getTime()};if(e.apiCanary&&(u.apiCanary=e.apiCanary,delete e.apiCanary),a){t=(t=a.stackTrace)&&t.encodeJson?t.encodeJson():"";var c=i.stringify({code:a.code,message:a.message,debug:a.debugMessage,stacktrace:t,requestUrl:g});n.Errors.push(c),n.Errors.length>100&&n.Errors.shift(),(8002!==a.code||m)&&s&&s(e,o)}else r&&r(e,o)}function S(e){return setTimeout((function(){C({error:{code:e,message:"Request Failed!",isFatal:!0}})}),0),null}if(t&&!u.apiCanary)return v?S(8002):(setTimeout((function(){C({error:{code:8002,message:"Request Failed!",isFatal:!0}})}),0),null);if(b&&null===a&&null!==d)n.Get(e,o.ContentType.Json,(function(e,n){if(p)if(v)try{C(i.parse(n))}catch(t){S(8e3)}else C(i.parse(n))}),(function(e,n,t,i){p&&C(h(n,t))}),c,d,l);else{var x=_(a);n.Post(e,o.ContentType.Json,x,(function(e,n){if(p)if(v)try{C(i.parse(n))}catch(t){S(8e3)}else C(i.parse(n))}),(function(e,n,t,i){p&&C(h(n,t))}),c)}},n.Post=function(e,t,i,o,r,s){var c=e.url,d={},l=!1;o||r||(l=!0),S(d,e,a.RequestType.Post,s,t,l);var u={targetUrl:c,contentType:t,data:i,requestType:a.RequestType.Post,timeout:s||3e4,successCallback:function(e,n){x(d,"Success",n,!0,(function(){o&&o(e,n)}))},failureCallback:function(e,n,t){x(d,"Failed",w(n,t),!1,(function(){r&&r(e,n,t)}))},timeoutCallback:function(e,n,t){x(d,"Timeout",w(n,t),!1,(function(){r&&r(e,n,t)}))}};C(u),a.Handler.call(n,u),n.sendRequest()},n.Get=function(e,t,i,o,r,s,c){var d=e.url,l={},u=!1;i||o||(u=!0),S(l,e,a.RequestType.Get,r,t,u);var p={targetUrl:d,contentType:t,requestType:a.RequestType.Get,timeout:r||3e4,successCallback:function(e,n){x(l,"Success",n,!0,(function(){i&&i(e,n)}))},failureCallback:function(e,n,t){x(l,"Failed",w(n,t),!1,(function(){o&&o(e,n,t)}))},timeoutCallback:function(e,n,t){x(l,"Timeout",w(n,t),!1,(function(){o&&o(e,n,t)}))}};if(C(p),b){if(s)for(var g in s)s.hasOwnProperty(g)&&(p.headers[g]=s[g]);if(c){var m=f.add(d,c);p.targetUrl=m}}a.Handler.call(n,p),n.sendRequest()},n.Beacon=function(e,t,i,a,o){var r=[],s=h(!0);p.forEach(s,(function(e,n){r.push([e,n])}));var c=e.url;if(c=f.add(c,r),e.url=c,navigator.sendBeacon){var d={};S(d,e,"Beacon",o,null,!1);var l=_(t),u=navigator.sendBeacon(c,l);x(d,u?"Success":"Failed",null,u,(function(){u&&i?i():!u&&a&&a()}))}else n.Json(e,t,i,a,o)}}},function(e,n,t){var i=t(2),a=t(1),o=t(4);var r=window;function s(e){var n,t,r=this,s=(e=e||{}).serverData,c=e.primaryButtonId,d=s.fConsentButtonIdViaName,l=!(!d||!e.needsIdNameProtection);if(d){var u=c||"idSIButton9";n=l?undefined:u,t=l?u:undefined}else n=c,t=undefined;var p,f,g=e.secondaryButtonId,m=e.primaryButtonText,b=e.secondaryButtonText,v=!1!==e.isPrimaryButtonVisible,h=!1!==e.isSecondaryButtonVisible,_=!1!==e.isPrimaryButtonEnabled,C=!1!==e.isSecondaryButtonEnabled;d?(p=!l&&(e.focusOnPrimaryButton||!1),f=e.focusOnSecondaryButton||!!l&&e.focusOnPrimaryButton):(p=e.focusOnPrimaryButton||!1,f=e.focusOnSecondaryButton||!1);var S=e.primaryButtonDescribedBy,x=e.secondaryButtonDescribedBy,w=e.primaryButtonCss,y=e.secondaryButtonCss,k=e.primaryButtonType||"submit",P=e.removeBottomMargin,T=e.primaryButtonPreventTabbing||{direction:"none"};r.primaryButtonId=n,r.secondaryButtonId=g,r.primaryButtonCss=w,r.secondaryButtonCss=y,r.primaryButtonText=i.observable(m),r.secondaryButtonText=i.observable(b),r.isPrimaryButtonVisible=i.observable(v),r.isSecondaryButtonVisible=i.observable(h),r.isPrimaryButtonEnabled=i.observable(_),r.isSecondaryButtonEnabled=i.observable(C),r.focusOnPrimaryButton=i.observable(p),r.focusOnSecondaryButton=i.observable(f),r.hasOneButtonVisible=i.pureComputed((function(){var e=0;return r.isPrimaryButtonVisible()&&e++,r.isSecondaryButtonVisible()&&e++,1===e})),r.primaryButtonDescribedBy=S,r.secondaryButtonDescribedBy=x,r.removeBottomMargin=P,r.primaryButtonPreventTabbing=T,r.primaryButtonAttributes=i.pureComputed((function(){var e;return e=d?{id:n,name:t,"aria-describedby":S}:{id:r.primaryButtonId||"idSIButton9","aria-describedby":r.primaryButtonDescribedBy},a.Helper.isChangingInputTypeSupported()&&(e.type=k),e})),r.onPrimaryButtonClick=o.create(),r.onSecondaryButtonClick=o.create(),r.setTextPrimaryButton=function(e){r.primaryButtonText(e)},r.setTextSecondaryButton=function(e){r.secondaryButtonText(e)},r.setVisibilityPrimaryButton=function(e){r.isPrimaryButtonVisible(e)},r.setVisibilitySecondaryButton=function(e){r.isSecondaryButtonVisible(e)},r.setEnabledPrimaryButton=function(e){r.isPrimaryButtonEnabled(e)},r.setEnabledSecondaryButton=function(e){r.isSecondaryButtonEnabled(e)},r.primaryButton_onClick=function(){r.onPrimaryButtonClick()},r.secondaryButton_onClick=function(){r.onSecondaryButtonClick()}}i.components.register("footer-buttons-field",{viewModel:s,template:t(369),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=t(2),a=t(3),o=t(1),r=t(0),s=t(9),c=t(75),d=t(85),l=t(244),u=window,p=o.Helper,f=a.String,g=a.Object,m=r.LayoutTemplateType,b=r.Branding,v=u.ServerData.fUseNonMicrosoftDefaultBrandingForCiam,h=u.ServerData.fIsCiamUserFlowUx,_=u.ServerData.fRemoveCustomCss,C=u.ServerData.fEnableLivePreview,S={loadTenantBranding:function(e){var n={};if(e){var t=e[0]||{},a=e[1]||{};i.utils.arrayForEach(["BoilerPlateText","UserIdLabel","TileLogo","TileDarkLogo","BannerLogo","BackgroundColor","Illustration","KeepMeSignedInDisabled","UseTransparentLightBox","LayoutTemplateConfig","CustomizationFiles","AccessRecoveryLink","CantAccessYourAccountText","ForgotPasswordText","FooterTOULink","FooterTOUText","FooterPrivacyLink","FooterPrivacyText","Favicon"],(function(e){if("LayoutTemplateConfig"===e||"CustomizationFiles"===e){var i=a[e],o=t[e];n[e]=g.assignRecursive({},o,i)}else n[e]=a[e]||t[e]||""})),n.TileDarkLogo||(n.TileDarkLogo=n.TileLogo)}return n},getPageBranding:function(e,n,t){var i={useDefaultBackground:!1};if(e&&(i.bannerLogoUrl=e.BannerLogo),e&&(e.BackgroundColor||e.Illustration))i.color=e.BackgroundColor,i.backgroundImageUrl=e.Illustration,i.useTransparentLightBox=e.UseTransparentLightBox,i.useImageMask=!v||!h;else if(n&&(n.backgroundImageIndex>=0||n.backgroundLogoIndex>=0||n.backgroundColor||n.friendlyAppName))n.backgroundImageIndex>=0&&(i.backgroundImageUrl=d(f.format("./{0}.jpg",n.backgroundImageIndex)),p.isStyleSupported("backgroundSize")&&(i.smallImageUrl=d(f.format("./{0}-small.jpg",n.backgroundImageIndex)))),n.backgroundLogoIndex>=0&&(i.backgroundLogoUrl=l(f.format("./{0}.png",n.backgroundLogoIndex))),i.color=n.backgroundColor,i.friendlyAppName=n.friendlyAppName;else if(n&&n.urlLegacyBackgroundLogo)i.backgroundLogoUrl=n.urlLegacyBackgroundLogo;else if(v&&h)i.color=b.DefaultBackgroundColor;else if(t>=0){var a=p.isSvgImgSupported();i.backgroundImageUrl=c(f.format("./{0}.{1}",t,a?"svg":"jpg")),!a&&p.isStyleSupported("backgroundSize")&&(i.smallImageUrl=c(f.format("./{0}-small.jpg",t))),i.useDefaultBackground=!0}return i},getMergedBranding:function(e,n,t,i){var a;if(t)a=n;else{a=e,n=n||{},i?(n.BannerLogo&&(a.BannerLogo=n.BannerLogo),n.BoilerPlateText&&(a.BoilerPlateText=n.BoilerPlateText),n.KeepMeSignedInDisabled&&(a.KeepMeSignedInDisabled=n.KeepMeSignedInDisabled),n.AccessRecoveryLink&&(a.AccessRecoveryLink=n.AccessRecoveryLink),n.CantAccessYourAccountText&&(a.CantAccessYourAccountText=n.CantAccessYourAccountText),n.ForgotPasswordText&&(a.ForgotPasswordText=n.ForgotPasswordText)):(a.BannerLogo=n.BannerLogo||"",a.BoilerPlateText=n.BoilerPlateText||"",a.KeepMeSignedInDisabled=n.KeepMeSignedInDisabled||!1,a.AccessRecoveryLink=n.AccessRecoveryLink||"",a.CantAccessYourAccountText=n.CantAccessYourAccountText||"",a.ForgotPasswordText=n.ForgotPasswordText||"");var o=!1;if(n.LayoutTemplateConfig&&(o=n.LayoutTemplateConfig.hideAccountResetCredentials),a.LayoutTemplateConfig=a.LayoutTemplateConfig||S.getLayoutTemplateConfig({}),a.LayoutTemplateConfig.hideAccountResetCredentials=o,a.CustomizationFiles=a.CustomizationFiles||{},n.CustomizationFiles){var r={strings:n.CustomizationFiles.strings,customCssUrl:n.CustomizationFiles.customCssUrl};a.CustomizationFiles.customCssUrl!==r.customCssUrl&&(r.customCssUrl=null),a.CustomizationFiles=r}}return a},getLayoutTemplateConfig:function(e){var n=e.LayoutTemplateConfig;return n&&n!=={}||(n={showHeader:!1,headerLogo:"",layoutType:m.Lightbox,showFooter:!0,hideTOU:!1,hidePrivacy:!1,hideAccountResetCredentials:!1},v&&h&&(n.showFooter=!1)),n},createMergedBrandingObservables:function(e){e.masterPageMethods=i.observable(),e.isVerticalSplitTemplate=i.observable(),e.showHeader=i.observable(!1),e.headerLogo=i.observable(),e.showFooter=i.observable(!0),e.hideTOU=i.observable(!1),e.hidePrivacy=i.observable(!1),e.termsText=i.observable(),e.termsLink=i.observable(),e.privacyText=i.observable(),e.privacyLink=i.observable(),e.userIdLabel=i.observable(),e.cantAccessYourAccountText=i.observable(),e.forgotPasswordText=i.observable(),e.accessRecoveryLink=i.observable(),e.boilerPlateText=i.observable(),e.hideAccountResetCredentials=i.observable(!1)},updateMergedBrandingObservables:function(e,n){if(n){var t=S.getLayoutTemplateConfig(n);e.masterPageMethods()&&e.masterPageMethods().updateBranding(n),e.isVerticalSplitTemplate(t.layoutType===m.VerticalSplit),e.showHeader(t.showHeader),e.headerLogo(t.headerLogo),e.showFooter(t.showFooter),e.hideTOU(t.hideTOU),e.hidePrivacy(t.hidePrivacy),e.termsText(n.FooterTOUText),e.termsLink(n.FooterTOULink),e.privacyText(n.FooterPrivacyText),e.privacyLink(n.FooterPrivacyLink),C&&(e.hideAccountResetCredentials(t.hideAccountResetCredentials),e.userIdLabel(n.UserIdLabel),e.cantAccessYourAccountText(n.CantAccessYourAccountText),e.forgotPasswordText(n.ForgotPasswordText),e.accessRecoveryLink(n.AccessRecoveryLink),e.boilerPlateText(n.BoilerPlateText))}},updateFavicon:function(e,n){var t=document.querySelector("link[rel~='icon']");t&&(e&&e.Favicon?t.href=e.Favicon:n&&(t.href=n))},removeCustomCss:function(){var e=document.head.querySelector("#customCssStyle");e&&document.head.removeChild(e)},loadCustomizationFiles:function(e,n){if(!_||n&&e&&e.CustomizationFiles&&e.CustomizationFiles.customCssUrl||S.removeCustomCss(),n){if(!e||!e.CustomizationFiles)return n.isLoadComplete(!0),void n.strings.isLoadComplete(!0);var t=e.CustomizationFiles,i=t.customCssUrl,a=t.strings;if(a||i){n.initialize();var o={customStringsFiles:a,customCss:i};s.throwUnhandledExceptionOnRejection(n.load(o))}else n.isLoadComplete(!0),n.strings.isLoadComplete(!0)}},createCustomizationLoader:function(e,n,i,a){t.e(8).then(function(){var o=new(t(542))({serverData:e,pageId:a});i?(i(o),S.loadCustomizationFiles(n,i())):S.loadCustomizationFiles(n,o)}.bind(null,t))["catch"](t.oe)}};e.exports=S},function(e,n,t){var i=t(2),a=t(1),o=window,r=a.Helper;function s(){var e=this;e.useCssAnimation=!1,r.isCSSAnimationSupported()&&!r.isHighContrast()&&(e.useCssAnimation=!0)}i.components.register("marching-ants-control",{viewModel:s,template:t(377),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents)}),e.exports=s},function(e,n,t){var i=t(26),a=t(1),o=i.Helper,r=a.QueryString,s=n.Properties={State:"State",SessionLookupKey:"SessionLookupKey",DisplaySignForUI:"DisplaySignForUI",FlowToken:"FlowToken"},c=n.Purpose={Password:"eOTT_OneTimePassword",RemoteNGC:"eOTT_RemoteNGC",NoPassword:"eOTT_NoPasswordAccountLoginCode",OtcLogin:"eOTT_OtcLogin",XboxRemoteConnect:"RemoteSignInWithUserCode"},d=n.Channel={Authenticator:"Authenticator",MobileSms:"SMS",EmailAddress:"Email",VoiceCall:"Voice",PushNotifications:"PushNotifications",VerifiableCredentials:"VerifiableCredentials"},l=n.Type={EmailAddress:"AltEmail",EmailAddressEncrypted:"AltEmailE",Mobile:"MobileNum",MobileEncrypted:"MobileNumE",SessionApprover:"SAPId"};n.Event={OnSend:"otcsend",OnSendFail:"otcsendfailed",OnFlowExpired:"otcflowexpired"};var u=n.RequestParam={Username:"login",Purpose:"purpose",FlowToken:"flowtoken",CanaryFlowToken:"canaryFlowToken",Channel:"channel",UIMode:"UIMode",PhoneCountry:"MobileCountry",PhoneCountryCode:"MobileCC",UnauthSessionId:"uaid",ProofConfirmation:"ProofConfirmation"},p=n.Status={None:0,Error:200,Success:201,HIPError:202,FTError:203,InputError:204,DestinationError:205,Timeout:300},f=n.ProofTypeToChannel=function(e){var n=null;switch(e){case PROOF.Type.SMS:n=d.MobileSms;break;case PROOF.Type.Voice:n=d.VoiceCall;break;case PROOF.Type.Email:case PROOF.Type.AltEmail:n=d.EmailAddress;break;case PROOF.Type.TOTPAuthenticatorV2:n=d.PushNotifications}return n},g=n.ProofTypeToOtcType=function(e,n){var t=null;switch(e){case PROOF.Type.Voice:case PROOF.Type.SMS:t=n?l.MobileEncrypted:l.Mobile;break;case PROOF.Type.Email:case PROOF.Type.AltEmail:t=n?l.EmailAddressEncrypted:l.EmailAddress;break;case PROOF.Type.TOTPAuthenticatorV2:t=l.SessionApprover}return t};n.Proof=function(e){var n=e.username||"",t=e.flowToken||"",i=e.purpose||c.Password,a=e.proofType,o=e.proofData||"",r=e.isEncrypted,s=e.uiMode,d=e.lcid,l=e.phoneCountry||"",p=e.phoneCountryCode||"",m=e.unauthSessionId,b=e.proofConfirmation,v=e.canaryFlowToken;this[u.Username]=n,this[u.FlowToken]=t,this[u.Purpose]=i,this[u.Channel]=f(a),this[g(a,r)]=o,s&&(this[u.UIMode]=s),d&&(this.lcid=d),r||a!==PROOF.Type.SMS&&a!==PROOF.Type.Voice||(this[u.PhoneCountry]=l,this[u.PhoneCountryCode]=p),m&&(this[u.UnauthSessionId]=m),b&&(this[u.ProofConfirmation]=b),v&&(this[u.CanaryFlowToken]=v)},n.Request=function(e){var n,t,a,c,d=this,l=p.None,u="",f="",g="",m=e.data,b=e.onSend,v=e.onSendFail,h=e.onFlowExpired,_=e.timeout||3e4,C=e.siteId,S=e.clientId,x=e.forwardedClientId,w=e.noPaBubbleVersion;function y(e){var n=!1,t=d.getResponseJson();g=t[s.FlowToken]||"",t[s.State]?(l=t[s.State],u=t[s.SessionLookupKey]||"",f=t[s.DisplaySignForUI]||"",n=l!==p.Success):(l=p.Error,u="",f="",n=!0),n?l===p.FTError?h(e,d):v(e,d):b(e)}function k(){g="",l=p.Error,u="",f="",v(d)}function P(){l=p.Timeout,u="",f="",g="",v(d)}d.getOtcStatus=function(){return d.isComplete()?l:p.None},d.getSessionKey=function(){return d.isComplete()?u:""},d.getDisplaySign=function(){return d.isComplete()?f:""},d.getFlowToken=function(){return d.isComplete()?g:""},n=r.extract("mkt"),t=r.extract("lc"),a=[].concat(n?[["mkt",n]]:[],t?[["lcid",t]]:[],C?[["id",C]]:[],S?[["client_id",S]]:[],x?[["fci",x]]:[],w?[["nopa",w]]:[]),c={targetUrl:r.add("GetOneTimeCode.srf",a),requestType:i.RequestType.Post,data:o.generateRequestString(m),isAsync:!0,timeout:_,successCallback:y,failureCallback:k,timeoutCallback:P},i.Handler.call(d,c)}},function(e,n,t){var i=t(30),a=t(9),o=t(42),r=t(5),s=window,c=s.navigator,d=s.PublicKeyCredential,l=s.ServerData.fShouldPlatformKeyBeSuppressed;n.makeCredential=function(e,n,t,a,r,s,d,l){var u=[];s&&(u=s.map((function(e){return{type:"public-key",id:o.base64UrlStringToArrayBuffer(e)}})));var p=i.SupportedKeyAlgorithms.map((function(e){return{type:"public-key",alg:e}})),f={challenge:o.stringToArrayBuffer(e),rp:{name:"Microsoft",id:l},user:{id:o.base64UrlStringToArrayBuffer(n),name:t,displayName:a,icon:r},pubKeyCredParams:p,timeout:i.Timeout,excludeCredentials:u,authenticatorSelection:{authenticatorAttachment:d,requireResidentKey:!0,userVerification:"required"},attestation:"direct",extensions:{hmacCreateSecret:!0,credentialProtectionPolicy:"userVerificationOptional"}};return c.credentials.create({publicKey:f})},n.getAssertion=function(e,n,t){var a=[];n&&(a=n.map((function(e){return{type:"public-key",id:o.base64UrlStringToArrayBuffer(e)}})));var r={challenge:o.stringToArrayBuffer(e),timeout:i.Timeout,rpId:t,allowCredentials:a,userVerification:"required"};return c.credentials.get({publicKey:r})},n.isPlatformAuthenticatorAvailable=function(e){return l||!d?r.resolve(null):e?r.resolve(!0):a.newPromiseWithTimeout(d.isUserVerifyingPlatformAuthenticatorAvailable,i.PromiseTimeout,!1)}},function(e,n,t){t(357);var i=t(358);function a(e,n){return e&&e[n]?e[n]:""}function o(e){if(!e||!e.ver)return"";var n=e.ver.v||e.ver||"";return Array.isArray(n)&&n.length>0?n.join("."):n}var r=null;n.getInstance=function(e){if(e.fEnableOneDSClientTelemetry)try{r=r||function(e){var n=e||{},t=e.browser||{},r=n.clientEvents||{},s=n.serverDetails||{},c=n.correlationId?n.correlationId:"";return r.correlationID=c,r.hostPageID=n.hpgid,r.pageName=n.pgid||n.sPageId,r.actorID=n.hpgact||n.sCID,r.appId=n.appId,r.autoCaptureJsErrors=n.fAutoCaptureJsErrors||!1,r.autoCaptureClicks=n.fAutoCaptureClicks||!1,r.autoCaptureEvents=n.fAutoCaptureEvents||!1,r.environment=n.environment,r.serverDetails={datacenter:a(s,"dc"),role:a(s,"r"),roleInstance:a(s,"ri"),version:o(s)},t.IE&&r.appInsightsConfig&&(r.appInsightsConfig.PostChannel?r.appInsightsConfig.PostChannel.disableXhrSync=!0:r.appInsightsConfig.PostChannel={disableXhrSync:!0}),new i.TelemetryHelper(r)}(e)}catch(n){}return r}},function(e,n,t){e.exports=t.p+"content/images/documentation_white_9ad8d18b22266935b952ba85a2fb252c.png"},function(e,n,t){e.exports=t.p+"content/images/documentation_white_7849019e114f05613d891a7b3805dda2.svg"},function(e,n,t){e.exports=t.p+"content/images/documentation_136bc3add990843012b1ec60612de803.png"},function(e,n,t){e.exports=t.p+"content/images/documentation_dae218aac2d25462ae286ceba8d80ce2.svg"},function(e,n,t){(function(n){e.exports=n.ko=t(69)}).call(this,t(40))},function(e,n,t){var i=t(16),a=t(8),o=t(11).getInstance(window.ServerData);e.exports=function(e){var n=null,t=e.username,r=e.proofData,s=e.proofType,c=e.purpose||i.Purpose.Password,d=e.flowToken,l=e.canaryFlowToken,u=!1!==e.isEncrypted,p=e.uiMode,f=e.lcid,g=e.unauthSessionId,m=e.proofConfirmation,b=e.phoneCountry,v=e.phoneCountryCode,h=e.siteId,_=e.clientId,C=e.forwardedClientId,S=e.noPaBubbleVersion,x=e.successCallback,w=e.failureCallback,y=e.clientTracingOptions,k={};function P(e,n,t,i,a){o.traceEndRequest(e,n,t,i,a)}function T(){P(k,"Success",null,!0,(function(){x&&x(n)}))}function D(){var e={otcStatus:n.getOtcStatus()};P(k,"Failed",e,!1,(function(){w&&w(n)}))}this.sendRequest=function(){var e,x={data:(e={username:t,proofData:r,proofType:s,purpose:c,flowToken:d,canaryFlowToken:l,isEncrypted:u,uiMode:p,lcid:f,unauthSessionId:g,proofConfirmation:m,phoneCountry:b,phoneCountryCode:v},new i.Proof(e)),siteId:h,clientId:_,forwardedClientId:C,noPaBubbleVersion:S,onSend:T,onSendFail:D,onFlowExpired:D},w={};w.proofType=s,w.purpose=c,w.uiMode=p,w.lcid=f,w.phoneCountry=b,w.phoneCountryCode=v,function(e,n){var t=y||{};t.hasOwnProperty("eventId")||(t.eventId=a.EventIds.Api_GetOneTimeToken);if(t.eventId){var i={eventType:"POST",eventId:t.eventId,eventLevel:t.eventLevel||a.EventLevel.Info,eventArgs:n,eventOptions:t};o.traceBeginRequest(e,i)}}(k,w),(n=new i.Request(x)).sendRequest()}}},function(e,n,t){var i=t(0),a=t(7),o=t(5),r=t(14),s=t(1),c=t(3),d=t(12),l=t(8),u=s.Helper,p=s.QueryString,f=c.String,g=c.Object,m=i.CredentialType,b=i.RemoteNgcType,v=i.Error,h=i.ApiErrorCodes,_=i.EstsError,C=i.PaginatedState,S=i.IfExistsResult,x=i.ThrottleStatus,w=i.DomainType,y=i.BindProvider,k=a.AllowedIdentitiesType,P=i.SessionPullFlags;var T=E.GctResultAction={ShowError:1,SwitchView:2,Redirect:3},D=E.GctRequestHelperFlags={CheckCurrentIdpOnly:1,IsPhoneNumberFullyQualified:2,DisableDesktopSsoPreferredCred:4,DisableAutoSend:8,ForceOtcLogin:16,IsPostRequest:32,IsSignup:64};function E(e,n){var a=this,s=!1,E=null,I=null,A=null,R=!1,L={},B=null,O=e,U=0!=(n&D.CheckCurrentIdpOnly),F=0!=(n&D.IsPhoneNumberFullyQualified),N=0!=(n&D.DisableDesktopSsoPreferredCred),M=0!=(n&D.DisableAutoSend),V=0!=(n&D.ForceOtcLogin),j=0!=(n&D.IsPostRequest),H=0!=(n&D.IsSignup),W=O.str,$=O.sUnauthSessionID,G=O.iAllowedIdentities,q=O.fIsFedDisabled,K=!!O.fIsRemoteNGCSupported,z=!!O.fShowCookieBanner,Q=!!O.fIsFidoSupported,J=O.fIsOtcLoginDisabled,X=O.fIsNoPaOtcDisabled,Y=!!O.fIsExternalFederationDisallowed,Z=!!O.fIsPassthroughDisallowed,ee=!!O.fIsPhoneNumberSignupDisallowed,ne=O.fIsVerifiableCredentialsSupportEnabled,te=O.sCtx,ie=O.fDoIfExists,ae=O.fCheckProofForAliases,oe=O.fCheckApiCanary,re=O.urlGetCredentialType,se=O.fCBShowSignUp,ce=O.fAllowSkypeNameLogin,de=e.urlMsaSignUp,le=O.urlSignUp,ue=O.fUseCertificateInterstitialView,pe=O.oSignUpPostParams,fe=O.fUseConsumerEmailError,ge=O.oUrlOtherIdpPostParams,me=O.desktopSsoConfig,be=O.sFedQS,ve=O.staticTenantBranding,he=O.dynamicTenantBranding,_e=O.isGlobalTenant,Ce=(O.fCheckForWindowsSku,O.country),Se=O.arrProofData||{},xe=parseInt(O.sProofType),we=O.urlChangePassword,ye=!!O.fAllowRemoteConnect,ke=O.fBindCookiesUsingPoP,Pe=O.iGctFederationFlags||0,Te=O.fIgnoreViralUsers,De=O.fAccessPassSupported,Ee=O.fHidePhoneCobasiInOtherSignIn,Ie=O.fIsRestrictedWsi,Ae=O.fUseResetPwdUrlForPwdRequiredErr,Re=O.urlResetPassword,Le=O.fIsSelfServiceSignupUxEnabled,Be=O.fEnableWebNativeBridge,Oe=O.sWAMExtension,Ue=O.sWAMChannel,Fe=O.canaryTokenName,Ne=O.canary,Me=O.fDeprecateSmsAutoSend,Ve=O.fUseWebviewFidoCustomProtocol,je=!!O.fIsQrCodePinSupported,He=O.fEnableDFPIntegration,We=O.fIsImprovedUsernameRecovery,$e=O.fFixPhoneDisambigSignupRedirect,Ge=O.fEnableRefreshCookiesFix,qe=O.fEnableFIDOBluetoothError,Ke=O.fFixUrlExternalIdpFederation,ze=!!O.fEnablePasskeyAwpError;function Qe(e,n,t){var i=e.Credentials&&e.Credentials.OtcLoginEligibleProofs,a=[];if(i){var o=e.Credentials&&e.Credentials.HasPhone&&e.Credentials.CobasiApp;c.Array.forEach(i,(function(e){if(e.isDefault===n){var t={credType:m.OneTimeCode,proof:e};switch(t.proof.isEncrypted=!0,e.type){case PROOF.Type.SMS:case PROOF.Type.Voice:if(!e.isVoiceOnly){var i=g.clone(t);i.proof.otcSent&&j&&xe===PROOF.Type.Voice&&(i.proof.otcSent=!1),i.proof.type=PROOF.Type.SMS,Ee&&!o&&(i.shownOnlyOnPicker=!0),a.push(i)}if(e.voiceEnabled){var r=g.clone(t);!r.proof.otcSent||j&&xe===PROOF.Type.Voice||(r.proof.otcSent=!1),r.proof.type=PROOF.Type.Voice,a.push(r)}break;case PROOF.Type.Email:a.push(g.clone(t))}}}))}if(n&&0===a.length&&Ze(e,t)===m.OneTimeCode){var r=e.Credentials&&e.Credentials.HasPassword,s={credType:m.OneTimeCode,proof:{display:e.Display,data:f.cleanseUsername(e.Display),otcSent:!0,isEncrypted:!1,isDefault:!0,isNopa:!r,type:f.isEmailAddress(e.Username)?PROOF.Type.Email:PROOF.Type.SMS}};a.push(s)}return a}function Je(e){e.proof.str={},g.extend(e.proof.str,Se[e.proof.type]||{}),g.forEach(e.proof.str,(function(n,t){t&&(e.proof.str[n]=f.format(t,e.proof.display+"\u200e",e.proof.clearDigits||""))}))}function Xe(e,n,t,i,o,r){var c={},d=me&&i.EstsProperties&&i.EstsProperties.DesktopSsoEnabled&&!function(e){return e&&me.lastUsernameTried&&e.toLowerCase()===me.lastUsernameTried.toLowerCase()}(n),l=i.ErrorHR,g=on(n,i,o),h=a.getGctSharedData(i,o,r);if(h.username=n,l===v.PP_E_INVALID_PHONENUMBER||l===v.PP_E_LIBPHONENUMBERINTEROP_NUMBERPARSE_EXCEPTION)c=function(e){if(F)return ln(W.CT_PWD_STR_Error_InvalidPhoneNumber,!0);return dn(C.PhoneDisambiguation,{phoneDisambigError:e})}(l);else if(l===v.PP_E_NAME_INVALID||l===v.PP_E_INVALIDARG)c=ln(W.CT_PWD_STR_Error_InvalidUsername);else if(l===v.PP_E_FEDERATION_INLINELOGIN_DISALLOWED)c=ln(W.CT_PWD_STR_Error_FedNotAllowed,!0);else if(l===v.PP_E_LOGIN_NOPA_USER_PASSWORD_REQUIRED)c=ln(Ae?f.format(W.CT_STR_Error_PasswordRequired,p.stripQueryStringAndFragment(Re)):f.format(W.CT_STR_Error_PasswordRequired,p.stripQueryStringAndFragment(we)));else if(i.RequiresPhoneDisambiguation)c=dn(C.PhoneDisambiguation);else{if(i.AliasDisabledForLogin)return ln(W.CT_PWD_STR_Error_AliasDisabled,!0);if(i.IfExistsResult===S.NotExist)c=function(e,n,t,i){var a,o=cn(e,t),r=t.EstsProperties||{},s=r.DomainType&&r.DomainType!==w.Unknown&&r.DomainType!==w.Consumer;if(t.IsProofForAlias)return We?an(e,t,de):dn(C.ConfirmRecoverUsername);if(se&&o&&(ie||ae))return ie?an(e,t):dn(C.ConfirmSignup);a=Le?W.CT_PWD_STR_SSSU_Error_EmailAccountNotFound:n?t.ThrottleStatus===x.NotThrottled&&s?W.CT_PWD_STR_Error_UsernameNotExist_Alternate_VerifiedDomain:W.CT_PWD_STR_Error_UsernameNotExist_Alternate:Ze(t,i)===m.OneTimeCode?t.ThrottleStatus===x.MsaThrottled?W.CT_PWD_STR_Error_UsernameNotExists_EmailOtpAllowed_MsaFailed:W.CT_PWD_STR_Error_UsernameNotExists_EmailOtpAllowed:fe&&r.DomainType===w.Consumer?W.CT_PWD_STR_Error_UsernameNotExist_ConsumerEmail:t.ThrottleStatus===x.NotThrottled&&s?o?W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain_SignupAllowed:W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain:t.ThrottleStatus===x.MsaThrottled?s&&o?W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain_MsaFailed_SignupAllowed:s?W.CT_PWD_STR_Error_UsernameNotExist_VerifiedDomain_MsaFailed:se&&!le?W.CT_PWD_STR_Error_UsernameNotExist_Guest_SignupAllowed_MsaFailed:W.CT_PWD_STR_Error_UnknownDomain_MsaFailed:H&&!s?W.CT_PWD_STR_Error_UsernameNotExist_Guest_Signup:F?W.CT_PWD_STR_Error_InvalidPhoneNumber:W.CT_PWD_STR_Error_UsernameNotExist;return ln(f.format(a,u.htmlEscape(f.extractDomain(e)),u.htmlEscape(e)),!0)}(n,t,i,o);else if(i.IfExistsResult===S.ExistsBothIDPs)c=dn(C.IdpDisambiguation,{desktopSsoEnabled:d,idpRedirectUrl:g.idpRedirectUrl,idpRedirectPostParams:g.idpRedirectPostParams,idpRedirectProvider:g.idpRedirectProvider});else if(i.IfExistsResult===S.ExistsInOtherMicrosoftIDP)c=tn(e,n);else if(!s||i.IfExistsResult!==S.Error&&i.IfExistsResult!==S.Throttled&&0==(i.ThrottleStatus&x.MsaThrottled))if(i.ShowRemoteConnect)c=dn(C.RemoteLoginPolling);else{c=function(e,n,t,i,a,o){var r=Ze(i,o);if(Ie&&!(i.Credentials.HasPassword||i.Credentials.HasGoogleFed||i.Credentials.HasCertAuth||i.Credentials.HasFido||i.Credentials.HasRemoteNGC||i.Credentials.HasPhone||i.Credentials.HasFacebookFed)&&(B=!0,r!==m.AccessPass))return dn(C.MoreInfo);if(!N&&n)return dn(C.FetchSessionsProgress,{unsafe_desktopSsoDomainToUse:f.extractDomain(e),sessionPullType:P.Dsso});if(i.NativeBridgeRequest&&!R)return dn(C.WebNativeBridge,Ge?{request:i.NativeBridgeRequest,flowToken:i.FlowToken,serverData:O,nonce:i.Nonce||null}:{request:i.NativeBridgeRequest,flowToken:i.FlowToken,serverData:O});var s={idpRedirectUrl:t.idpRedirectUrl,idpRedirectPostParams:t.idpRedirectPostParams,idpRedirectProvider:t.idpRedirectProvider};switch(r){case m.OneTimeCode:var c=C.OneTimeCode;return(M||i.Credentials.OTCNotAutoSent)&&(c=a?C.ProofConfirmation:C.ConfirmSend),dn(c);case m.PublicIdentifierCode:return Me&&i.Credentials.OtcNotAutoSent?dn(C.ConfirmSend):M||i.Credentials.SasParams&&i.Credentials.SasParams.Success?dn(M?C.ConfirmSend:C.OneTimeCode):ln(W.CT_PWD_STR_Error_GetCredentialTypeError,!1,!0);case m.Fido:return dn(C.Fido);case m.RemoteNGC:var d=i.Credentials.RemoteNgcParams.DefaultType===b.PushNotification;return dn(M&&d?C.ConfirmSend:C.RemoteNGC,s);case m.Federation:case m.CloudFederation:return dn(C.IdpRedirect,s);case m.LinkedIn:case m.GitHub:case m.Google:case m.Facebook:return dn(en(i,o).length>1||nn(i,o).length>0?C.IdpRedirectSpeedbump:C.IdpRedirect,s);case m.AccessPass:return dn(C.AccessPass,s);case m.NoPreferredCredential:return dn(C.CredentialPicker,s);case m.OtherMicrosoftIdpFederation:return an(e,i,de);case m.Certificate:return ue?dn(C.CertificateInterstitialView):un(i.Credentials.CertAuthParams.CertAuthUrl,rn(i.FlowToken));case m.QrCodePin:return dn(C.QrCodeScan);case m.Password:default:return dn(C.Password)}}(n,d,g,i,h.otcCredential&&h.otcCredential.proof.clearDigits,o)}else c=dn(C.IdpDisambiguation,{hasIdpDisambigError:!0,desktopSsoEnabled:d,idpRedirectUrl:g.idpRedirectUrl,idpRedirectPostParams:g.idpRedirectPostParams,idpRedirectProvider:g.idpRedirectProvider})}return c.flowToken=i.FlowToken||null,c.bypassCache||(L[n]=i,L[n].FlowToken=null),c.sharedData=h,c}function Ye(e){var n={};if(e&&e.error)switch(e.error.code){case h.AuthFailure:n=ln(W.CT_PWD_STR_Error_FlowTokenExpired);break;case _.PublicIdentifierSasBeginCallNonRetriableError:case _.PublicIdentifierSasBeginCallRetriableError:n=ln(W.CT_PWD_STR_Error_GetCredentialTypeError,!1,!0);break;default:n=ln(W.CT_PWD_STR_Error_GetCredentialTypeError)}else n=ln(W.CT_PWD_STR_Error_GetCredentialTypeError);return n.flowToken=e.FlowToken||null,n}function Ze(e,n){var t=m.Password,i=e.Credentials;return i&&((t=i.PrefCredential)!==m.Fido||n||(t=i.RemoteNgcParams&&i.RemoteNgcParams.SessionIdentifier?m.RemoteNGC:m.Password)),t}function en(e,n){var t=e.Credentials||{},i=t.SasParams,a=t.LinkedInParams,o=t.GitHubParams,r=t.GoogleParams,s=t.FacebookParams,d=t.CertAuthParams,l=t.QrCodePinParams,u=e.EstsProperties||{},p=[].concat(t.HasPassword&&u.DomainType!==w.Federated?{credType:m.Password}:[],t.FederationRedirectUrl&&u.DomainType===w.Federated?{credType:m.Federation}:[],t.FederationRedirectUrl&&u.DomainType===w.CloudFederated?{credType:m.CloudFederation}:[],t.HasRemoteNGC?{credType:m.RemoteNGC}:[],t.HasFido&&n?{credType:m.Fido}:[],t.HasPhone&&i?{credType:m.PublicIdentifierCode}:[],t.HasLinkedInFed&&a?{credType:m.LinkedIn,redirectUrl:a.LinkedInRedirectUrl}:[],t.HasGitHubFed&&o?{credType:m.GitHub,redirectUrl:o.GithubRedirectUrl}:[],t.HasGoogleFed&&r?{credType:m.Google,redirectUrl:r.GoogleRedirectUrl}:[],t.HasFacebookFed&&s?{credType:m.Facebook,redirectUrl:s.FacebookRedirectUrl}:[],t.HasAccessPass?{credType:m.AccessPass}:[],t.HasVerifiableCredential&&ne?{credType:m.VerifiableCredential}:[],t.HasQrCodePin&&je&&l?{credType:m.QrCodePin}:[],t.HasCertAuth?{credType:m.Certificate,redirectUrl:d.CertAuthUrl,redirectPostParams:rn(e.FlowToken)}:[]);if(Se[PROOF.Type.Email]&&Se[PROOF.Type.SMS]&&Se[PROOF.Type.Voice]){var f=Qe(e,!0,n);f.length>0&&(c.Array.forEach(f,Je),p=p.concat(f))}return p}function nn(e,n){var t=[];if(Se[PROOF.Type.Email]&&Se[PROOF.Type.SMS]&&Se[PROOF.Type.Voice]){var i=Qe(e,!1,n);i.length>0&&(c.Array.forEach(i,Je),t=t.concat(i),c.Array.first(i,(function(e){return!e.proof.isNopa}))&&(t=t.concat({credType:m.Password,isDefault:!1})))}return t}function tn(e,n){var t=encodeURIComponent(n).replace(new RegExp("'","g"),"%27");e=p.appendOrReplace(e,"username",t),e=p.appendOrReplace(e,"login_hint",t);var i=ge?g.clone(ge):null;return i&&(i.unsafe_username=n),un(e,i,!0,l.EventIds.Redirect_OtherIdpRedirection)}function an(e,n,t){t=t||le,t=p.remove(t,"username"),t=p.remove(t,"login_hint");var i=pe?g.clone(pe):null;return n&&(n.IfExistsResult===S.NotExist||n.IsUnmanaged&&n.IfExistsResult===S.Exists)&&cn(e,n)&&(i?i.unsafe_username=e:(t=p.appendOrReplace(t,"username",encodeURIComponent(e)),t=p.appendOrReplace(t,"login_hint",encodeURIComponent(e)))),un(t,i,!1,l.EventIds.Redirect_MSASignUpPage)}function on(e,n,t){var i={},a=Ze(n,t),o=n.EstsProperties||{};if(!(n.Credentials&&(n.Credentials.FederationRedirectUrl||n.Credentials.LinkedInParams||n.Credentials.GitHubParams||n.Credentials.GoogleParams||n.Credentials.FacebookParams)))return i;switch(a){case m.RemoteNGC:case m.Federation:case m.AccessPass:case m.NoPreferredCredential:o&&o.SamlRequest&&o.RelayState?(i.idpRedirectUrl=n.Credentials.FederationRedirectUrl,i.idpRedirectPostParams={SAMLRequest:o.SamlRequest,RelayState:o.RelayState,unsafe_username:e}):Ke&&n.Credentials.HasExternalOidcFed?i.idpRedirectUrl=n.Credentials.FederationRedirectUrl:i.idpRedirectUrl=function(e,n){if(be){var t=p.appendOrReplace("?"+be,"wctx","LoginOptions%3D3%26"+p.extract("wctx","?"+be));t=t.substr(1),e=p.append(e,t)}else e=p.appendOrReplace(e,"wctx","LoginOptions%3D3%26"+p.extract("wctx",e));return e=p.appendOrReplace(e,"cbcxt",encodeURIComponent(decodeURIComponent(p.extract("cbcxt")))),e=p.appendOrReplace(e,"username",encodeURIComponent(n)),e=p.appendOrReplace(e,"mkt",encodeURIComponent(decodeURIComponent(p.extract("mkt")))),e=p.appendOrReplace(e,"lc",encodeURIComponent(decodeURIComponent(p.extract("lc"))))}(n.Credentials.FederationRedirectUrl,e);break;case m.CloudFederation:i.idpRedirectUrl=n.Credentials.FederationRedirectUrl;break;case m.LinkedIn:i.idpRedirectUrl=n.Credentials.LinkedInParams.LinkedInRedirectUrl,i.idpRedirectProvider=y.LinkedIn;break;case m.GitHub:i.idpRedirectUrl=n.Credentials.GitHubParams.GithubRedirectUrl,i.idpRedirectProvider=y.GitHub;break;case m.Google:i.idpRedirectUrl=n.Credentials.GoogleParams.GoogleRedirectUrl,i.idpRedirectProvider=y.Google;break;case m.Facebook:i.idpRedirectUrl=n.Credentials.FacebookParams.FacebookRedirectUrl,i.idpRedirectProvider=y.Facebook}return i}function rn(e){var n={ctx:te,flowToken:e};return Fe&&(n[Fe]=Ne),n}function sn(e){return f.cleanseUsername(e,!0)}function cn(e,n){var t=ce&&f.isSkypeName(e),i=n.EstsProperties||{};return i.DomainType&&i.DomainType!==w.Unknown&&i.DomainType!==w.Consumer?!1===n.IsSignupDisallowed:!n.IsSignupDisallowed&&!t}function dn(e,n){return{action:T.SwitchView,viewId:e,viewParams:n}}function ln(e,n,t){return{action:T.ShowError,error:e,isBlockingError:n,bypassCache:t}}function un(e,n,t,i){return{action:T.Redirect,redirectUrl:e,redirectPostParams:n,isIdpRedirect:t,eventId:i}}a.sendAsync=function(e,n,t){var a=sn(n),r=L[a]?L[a]:null,c=!!r,u=r?o.resolve(r):function(e,n){var t=[I].concat(A||[]);return o.all(t).then((function(t){var a=t[0],r=t[1];return new o((function(t,o){new d({checkApiCanary:oe}).Json({url:re,eventId:l.EventIds.Api_GetCredentialType},function(e,n,t,i){var a={unsafe_username:e,uaid:$,isOtherIdpSupported:s,isFederationDisabled:q,checkPhones:f.isPhoneNumber(e),isRemoteNGCSupported:K,isCookieBannerShown:z,isFidoSupported:t,originalRequest:te,country:Ce,forceotclogin:V,otclogindisallowed:J,isExternalFederationDisallowed:Y,isRemoteConnectSupported:ye,federationFlags:Pe,isSignup:H,flowToken:n};(ae||We)&&(a.checkProofForAliases=!0);X&&(a.noPaOtcDisallowed=!0);Z&&(a.isPassthroughDisallowed=!0);ee&&(a.isPhoneNumberSignupDisallowed=!0);Te&&(a.ignoreViralUsers=!0);ke&&(i=i||{cpa:"",err:"Authenticator not generated."},a.cpa=i.cpa,a.cpa_err=i.err);De&&(a.isAccessPassSupported=!0);je&&(a.isQrCodePinSupported=!0);return a}(e,n,a,r),t,o,i.DefaultRequestTimeout)}))}))}(a,t);return o.all([E,u,I]).then((function(n){var t=n[0],i=n[1],o=n[2];return Xe(e,a,t,i,o,c)}),Ye)},a.getResult=function(e,n,t,i){return Xe(e,sn(n),!1,t,i,!1)},a.getState=function(){return{cache:L}},a.restoreState=function(e){e&&(L=e.cache||{})},a.cacheResponse=function(e,n){$e&&f.isPhoneNumber(e)||(L[sn(e)]=n)},a.getSignupRedirectGctResult=function(e){var n=sn(e);return an(n,L[n]?L[n]:null)},a.getOtherIdpRedirectGctResult=function(e,n){return tn(e,sn(n))},a.getGctSharedData=function(e,n,t){var i={},a=Ze(e,n),o=e.Credentials||{},s=o.RemoteNgcParams,d=o.FidoParams,l=o.QrCodePinParams,u=e.EstsProperties||{},p=s?s.DefaultType:null,f=!!s&&s.ShowAnimatedGifWhilePolling,g=!!s&&s.StyleCredSwitchLinkAsButton,b=r.loadTenantBranding(u.UserTenantBranding||he),v=r.loadTenantBranding(ve),h=on(e.Username,e,n),_=e&&e.acmaProperties&&e.acmaProperties.RecoveryContinuationToken,C=e&&e.acmaProperties&&e.acmaProperties.UndirectedRecoveryUrl;return He&&e.DfpProperties&&e.DfpProperties.DfpUrl&&(i.urlDeviceFingerprinting=e.DfpProperties.DfpUrl),i.preferredCredential=a,i.location=e.Location,i.fedRedirectParams=h,i.isTapRestrictedWsi=B,i.supportsNativeCredentialRecovery=e.SupportsNativeCredentialRecovery,i.isSignup=e.IfExistsResult===S.NotExist&&Le,e.Display&&(i.displayName=e.Display),i.availableCreds=en(e,n),i.evictedCreds=nn(e,n),a===m.OneTimeCode&&(i.otcCredential=c.Array.first(i.availableCreds,(function(e){return e.credType===m.OneTimeCode&&e.proof.otcSent})),!i.otcCredential&&e.Credentials&&e.Credentials.OTCNotAutoSent&&(i.otcCredential=c.Array.first(i.availableCreds,(function(e){return e.credType===m.OneTimeCode&&e.proof.type===PROOF.Type.SMS}))),i.useEvictedCredentials=!1),i.remoteNgcParams={requestSent:!M&&!t&&a===m.RemoteNGC&&s&&s.hasOwnProperty("Entropy"),sessionIdentifier:s?s.SessionIdentifier:null,entropy:s?s.Entropy:null,defaultType:p,showAnimatedGifWhilePolling:f,styleCredSwitchLinkAsButton:g},i.otcParams={requestSent:(a===m.OneTimeCode||a===m.PublicIdentifierCode)&&e.IfExistsResult!==S.ExistsBothIDPs},d&&d.AllowList&&(i.fidoParams=ze&&qe?{allowList:d.AllowList,hasMsftAuthAppPasskey:d.HasCrossDeviceCapablePasskey,hasMsftAndroidAuthAppPasskey:d.HasMsftAndroidAuthAppPasskey,hasOnlyMsftAndroidAuthAppPasskey:d.HasOnlyMsftAndroidAuthAppPasskey}:qe?{allowList:d.AllowList,hasMsftAuthAppPasskey:d.HasCrossDeviceCapablePasskey}:{allowList:d.AllowList}),je&&l&&l.AllowList&&(i.qrCodePinParams={allowList:l.AllowList,nonce:l.Nonce}),i.callMetadata=u&&u.CallMetadata?u.CallMetadata:{},i.userTenantBranding=r.getMergedBranding(v,b,_e),i.undirectedRecoveryContinuationToken=_,i.undirectedRecoveryUrl=C,i},s=!U&&G===k.Both,E=o.resolve(!1),I=u.isFidoSupportedAsync(Q,Ve),ke&&t.e(28).then(function(){var e=t(543);A=e.computePoPAuthenticator("POST",re).then((function(e){return{cpa:e,err:null}}),(function(e){return{cpa:"",err:e.message}}))}.bind(null,t))["catch"](t.oe),Be&&t.e(42).then(function(){t(500).getBrowserCoreProvider(Oe,Ue).then((function(){}),(function(){R=!0}))}.bind(null,t))["catch"](t.oe)}e.exports=E},function(e,n,t){var i=t(10),a=t(1),o=t(3),r=o.Object,s=a.HttpCode,c=window;n.RequestType={Post:"POST",Get:"GET"};var d=n.State={Unsupported:-1,Unsent:0,Done:4,Timeout:5};n.Event={OnSuccess:"ajaxsuccess",OnError:"ajaxerror",OnTimeout:"ajaxtimeout"},n.Helper={generateRequestString:function(e){var n="";return e&&r.forEach(e,(function(e,t){(t||""===t)&&(n.length>0&&(n+="&"),n+=e+"="+t)})),n}},n.Handler=function(e){var n=this,t="",l=[],u=null,p=null,f=!1,g=!0,m=null,b=!1,v=!!e.contentType,h=!!e.headers,_=!!e.headerValue,C=e.data||"",S=e.targetUrl||"",x=e.requestType||"",w=!1!==e.isAsync,y=e.timeout||0,k=e.username||"",P=e.password||"",T=e.contentType||"application/x-www-form-urlencoded",D=e.withCredentials||!1,E=e.breakCache||!1,I=e.responseType||"",A=e.headers||{},R=e.successCallback,L=e.failureCallback,B=e.timeoutCallback;function O(e,i){e||n.isSuccess()?R&&R(u,t):(i||!n.isSuccess()&&!f)&&L&&L(u,p,p.statusText)}function U(){if(m=null,f=!0,n.cancel(),B){var e={status:s.Timeout,statusText:"timeout"};B(u,e,e.statusText)}}function F(e){if(j(),!n.isComplete()&&!p.canceled&&L){var t={status:s.ClientClosedRequest,statusText:"abort"};L(e,t,t.statusText)}}function N(e){n.isComplete()||V(e)}function M(e){n.isComplete()&&!f&&V(e)}function V(e){j(),t=p.responseText,u=e,O()}function j(){m&&(clearTimeout(m),m=null)}function H(e){j(),t=p.responseText,O(e,!e)}n.sendRequest=function(e){u=e,function(){f=!1;var e="withCredentials"in new XMLHttpRequest;if(!b||e){var t=S;(p=new XMLHttpRequest).onreadystatechange=M,p.addEventListener&&(p.addEventListener("abort",F),p.addEventListener("error",N)),E&&(t=a.QueryString.appendOrReplace(t,"_",(new Date).getTime())),k.length>0?p.open(x,t,w,k,P):p.open(x,t,w),n.clearResponse(),r.forEach(A,(function(e,n){p.setRequestHeader(e,n)})),p.responseType=I,p.withCredentials=D}else c.XDomainRequest?!w||k||P||v||h||_||D?g=!1:((p=new c.XDomainRequest).onerror=function(){H(!1)},p.onload=function(){H(!0)},p.open(x,S),n.clearResponse()):g=!1}(),g&&(y>0&&(m=setTimeout((function(){U.call(n)}),y)),p.send(C))},n.getState=function(){return g?f?d.Timeout:p?p.readyState:d.Unsent:d.Unsupported},n.getStatus=function(){return f?s.Timeout:p?p.status:0},n.cancel=function(){p&&(p.canceled=!0,p.abort())},n.getResponseJson=function(){return t?i.parse(t):{}},n.isComplete=function(){return n.getState()===d.Done||n.getState()===d.Timeout},n.isSuccess=function(){return n.isComplete()&&l[n.getStatus()]},n.clearResponse=function(){t=""},function(){A["Content-type"]=T,l[s.Ok]=!0,l[s.NotModified]=!0,l[s.Timeout]=!1;var e=o.String.extractDomainFromUrl(S);e&&(b=o.String.extractDomainFromUrl(document.location.href)!==e)}()}},function(e,n,t){var i=t(3),a=t(8),o={},r=null;n.setDataPoint=function(e,n,t,i){var o={scope:i||a.DataPointScope.ClientEvent},r=s(e);r.tracingDataPoints=r.tracingDataPoints||{},r.tracingDataPoints[n]={options:o,value:function(){return t}}};var s=n.getTracingContextObject=function(e){return e?(o[e]||(o[e]={}),o[e]):r=r||{}};n.getTracingContextObjects=function(){var e=[];return i.Object.forEach(o,(function(n,t){t&&e.push({viewModel:n,context:t})})),r&&e.push(r),e},n.registerTracingObservables=function(e,n,t){var i=s(e);i.tracingObservables=i.tracingObservables||[],i.tracingObservables.push({options:t,value:n})},n.deleteTracingContextObject=function(e){e?o[e]&&delete o[e]:r=null},n.attachViewLoadClientTracingOptions=function(e,n){s(e).viewLoadClientTracingOptions=n}},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=window;function s(e,n){var t=this,i=e.dialogId,a=e.data,r=n;t.onRegisterDialog=o.create(),t.onUnregisterDialog=o.create(),t.dispose=function(){t.onUnregisterDialog(i)},t.onRegisterDialog(i,{templateNodes:r,data:a})}i.components.register("dialog-content-control",{viewModel:{createViewModel:function(e,n){return new s(e,n.templateNodes)}},template:"\x3c!-- --\x3e",synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=t(0),s=window,c=r.AgreementType,d=a.Helper,l=r.PaginatedState;function u(e){var n=this,t=e.serverData,a=e.showLogo,r=e.showLinks,u=e.hideFooter,p=e.debugDetails,f=e.showDebugDetails,g=e.hasDarkBackground,m=e.useDefaultBackground,b=e.showFooter,v=e.hideTOU,h=e.hidePrivacy,_=e.termsText,C=e.privacyText,S=e.termsLink,x=e.privacyLink,w=t.str,y=t.fIsHosted,k=t.fIsChinaDc,P=t.urlFooterTOU||t.urlHostedTOULink,T=t.urlFooterPrivacy||t.urlHostedPrivacyLink,D=t.urlImpressum,E=t.a11yConformeLink,I=t.urlGallatinIcp,A=t.fEnableLivePreview;function R(e,t){y&&!k?n.onAgreementClick(e):s.open(t,"_blank")}n.onAgreementClick=o.create(),n.onShowDebugDetails=o.create(),n.onSwitchView=o.create(),n.showDebugDetails=i.observable(!!f),n.focusMoreInfo=i.observable(!1).extend({notify:"always"}),n.showFooter=b===undefined||b,n.hideTOU=v||!1,n.hidePrivacy=h||!1,n.termsText=d.htmlUnescape(_)||w.MOBILE_STR_Footer_Terms,n.privacyText=d.htmlUnescape(C)||w.MOBILE_STR_Footer_Privacy,n.termsLink=S||P,n.privacyLink=x||T,n.showLogo=a&&!k,n.showLinks=r,n.hideFooter=u,n.showIcpLicense=k,n.debugDetails=p,n.impressumLink=D,n.a11yConformeLink=E,n.icpLink=I,n.hasDarkBackground=g,n.useDefaultBackground=m,n.privacyLink_onClick=function(){R(c.Privacy,n.privacyLink)},n.termsLink_onClick=function(){R(c.Tou,n.termsLink)},n.impressumLink_onClick=function(){R(c.Impressum,n.impressumLink)},n.services_onClick=function(){n.onSwitchView(l.SeeHowDataIsManaged)},n.a11yConformeLink_onClick=function(){R(c.A11yConforme,n.a11yConformeLink)},n.moreInfo_onClick=function(){A||(n.setDebugDetailsState(!n.showDebugDetails()),n.onShowDebugDetails(),n.showDebugDetails()||n.focusMoreInfo(!0))},n.setDebugDetailsState=function(e){n.showDebugDetails(e)},n.focusMoreInfoLink=function(){n.focusMoreInfo(!0)}}i.components.register("footer-control",{viewModel:u,template:t(471),synchronous:!s.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(s.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=u},function(e,n){n.PlatformTimeout=0,n.Timeout=6e5,n.PromiseTimeout=250,n.SupportedKeyAlgorithms=[-7,-257],n.Error={Internal:"InternalError",FidoCreateCallUnexpectedResponse:"FidoCreateCallUnexpectedResponse"}},function(e,n,t){var i=t(2),a=t(1),o=t(3),r=t(4),s=t(12),c=t(457),d=window,l=o.DateTime,u=a.Helper;function p(e){var n=this,t=null,a=e.debugDetails,o=e.serverData,c=e.isDebugTracingEnabled,d=e.useWiderWidth,p=o.strServiceExceptionMessage,f=o.urlSetDebugMode,g=o.sPOST_Username,m=o.sSigninName,b=o.str,v=o.sErrorCode;function h(){n.sending(!1),n.isDebugTracingEnabled(!n.isDebugTracingEnabled()),n.onSetDebugTracing()}function _(){n.sending(!1),n.debugModeError(b.STR_Error_Details_Debug_Mode_Failure)}n.onCloseBanner=r.create(),n.onSetDebugTracing=r.create(),n.debugModeError=i.observable(),n.isDebugTracingEnabled=i.observable(c),n.sending=i.observable(!1),n.showBanner=i.observable(!0),n.showDebugDetailsCopyMessage=i.observable(!1),n.isFocusActivated=i.observable(!1),n.unsafe_exceptionMessage=null,n.debugDetails=null,n.useWiderWidth=d,n.hideBanner_onClick=function(){n.onCloseBanner(),n.showBanner(!1)},n.setDebugMode_onClick=function(){if(!n.sending()){var e=new s;n.sending(!0),n.debugModeError("");var i={mode:n.isDebugTracingEnabled()?0:1,user:t};e.Json({url:f},i,h,_)}},n.activateFocus=function(){this.isFocusActivated(!0)},t=g||m||"",n.unsafe_exceptionMessage=u.htmlUnescape(p),n.debugDetails=a||{},v&&(n.debugDetails.errorCode=v),n.debugDetails.timestamp||(n.debugDetails.timestamp=l.getUTCString())}c.applyExtensions(i),i.components.register("debug-details-control",{viewModel:p,template:t(458),synchronous:!d.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(d.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=p},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=t(0),s=window,c=r.DialogId;function d(e){var n=this,t=e.isPlatformAuthenticatorAvailable;n.onRegisterDialog=o.create(),n.onUnregisterDialog=o.create(),n.onShowDialog=o.create(),n.isPlatformAuthenticatorAvailable=t,n.hasFocus=i.observable(!1),n.fidoHelp_onClick=function(){n.onShowDialog(c.FidoHelp).then((function(){n.hasFocus(!0)}))}}i.components.register("fido-help-button-control",{viewModel:d,template:t(492),synchronous:!s.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(s.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=d},function(e,n,t){var i=t(27);n.applyExtenders=function(e){e.extenders.preventExternalWrite=function(n){var t=n(),i=e.observable(t).extend({notify:"always"});return e.pureComputed({read:function(){return i()},write:function(e){e!==t&&i(t)}}).extend({notify:"always"})},e.extenders.flowTokenUpdate=function(n,t){return e.pureComputed({read:n,write:function(e){e&&(t&&(t.sFTTag&&(t.sFTTag=t.sFTTag.replace(t.sFT,e)),t.sFT=e),n(e))}}).extend({notify:"always"})},e.extenders.logValue=function(e,n){return n&&i.registerTracingObservables(n.viewModel,e,n.tracingOptions),e},e.extenders.loadImageFromUrl=function(n){return e.pureComputed({read:n,write:function(e){if(n()!==e)if(e){var t=new Image;t.onload=function(){n(e)},t.src=e}else n(e)}}).extend({notify:"always"})}}},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=t(0),s=t(17),c=t(9),d=t(24),l=t(16),u=t(3),p=window,f=u.String,g=r.PaginatedState,m=r.CredentialType,b=r.DialogId;function v(e){var n=this,t=e.serverData,a=e.username,r=e.availableCreds||[],u=e.currentCred||{},p=e.flowToken,v=e.showForgotUsername,h=e.hideCredSwitchLink,_=e.ariaDescribedBy,C=e.setFocus,S=t.str,x=t.urlForgotUsername,w=t.sSiteId,y=t.sClientId,k=t.sForwardedClientId,P=t.sNoPaBubbleVersion,T=t.fShowSignInOptionsAsButton,D=t.fOfflineAccountVisible,E=t.fUseCertificateInterstitialView,I=t.fIsPasskeySupportEnabled,A=t.fIsVerifiableCredentialsSupportEnabled,R=t.fUseWebviewFidoCustomProtocol,L=[],B=null,O=i.observable();function U(e){N(e),n.onSetPendingRequest(!1),n.onSwitchView(g.OneTimeCode,!1,B)}function F(e){var t,i=e.getOtcStatus();switch(N(e),i){case l.Status.FTError:t=S.CT_OTC_STR_Error_FlowExpired;break;default:t=B.proof.str.CT_OTCS_STR_Error_SendCodeServer||""}n.onSetPendingRequest(!1),n.credLinkError(t)}function N(e){e&&(e.getFlowToken?(p=e.getFlowToken(),n.onUpdateFlowToken(p)):e.FlowToken&&(p=e.FlowToken,n.onUpdateFlowToken(p)))}n.onSwitchView=o.create(),n.onRedirect=o.create(),n.onRegisterDialog=o.create(),n.onUnregisterDialog=o.create(),n.onShowDialog=o.create(),n.onSetPendingRequest=o.create(),n.onUpdateFlowToken=o.create(),n.credentialCount=0,n.selectedCredType=null,n.selectedCredShownOnlyOnPicker=!1,n.switchToCredId=null,n.switchToCredText=null,n.showSwitchToCredPickerLink=!1,n.showForgotUsername=v,n.isUserKnown=!!u.credType,n.displayHelp=!u.credType,n.hideCredSwitchLink=h,n.isOfflineAccountVisible=D,n.ariaDescribedBy=_,n.setFocus=C,n.isPlatformAuthenticatorAvailable=i.observable(!1),n.credLinkError=i.observable(),n.fidoHelp_onClick=function(){n.onShowDialog(b.FidoHelp)},n.view_onUpdateFlowToken=function(e){p=e},n.switchToCredPicker_onClick=function(){n.onSwitchView(g.CredentialPicker)},n.switchToCred_onClick=function(){var e=B&&B.credType||m.Password;switch(n.credLinkError(""),e){case m.OneTimeCode:if(B.proof.clearDigits)n.onSwitchView(g.ProofConfirmation,!1,B);else{var t=function(){var e={username:f.cleanseUsername(a),proofData:B.proof.data,proofType:B.proof.type,purpose:B.proof.isNopa?l.Purpose.NoPassword:l.Purpose.OtcLogin,flowToken:p,isEncrypted:B.proof.isEncrypted,siteId:w,clientId:y,forwardedClientId:k,noPaBubbleVersion:P,successCallback:U,failureCallback:F};if(e.isEncrypted)switch(B.proof.type){case PROOF.Type.Email:e.proofConfirmation=B.proof.display;break;case PROOF.Type.SMS:case PROOF.Type.Voice:e.proofConfirmation=f.cleanseUsername(B.proof.display).slice(-4)}return e}(),i=new d(t);n.onSetPendingRequest(!0),i.sendRequest()}break;case m.OtherMicrosoftIdpFederation:case m.LinkedIn:case m.GitHub:case m.Google:case m.Facebook:n.onRedirect(B.redirectUrl,B.redirectPostParams||null);break;case m.Certificate:E?n.onSwitchView(g.CertificateInterstitialView):n.onRedirect(B.redirectUrl,B.redirectPostParams||null);break;default:n.onSwitchView(L[e].viewId)}},n.forgotUsername_onClick=function(){document.location.assign(x)},n.getSwitchToCredText=function(){return i.unwrap(n.switchToCredText)},function(){if(L[m.Password]={viewId:g.Password,credId:"idA_PWD_SwitchToPassword",credText:S.CT_RNGC_STR_SwitchToPassword_Link},L[m.RemoteNGC]={viewId:g.RemoteNGC,credId:"idA_PWD_SwitchToRemoteNGC",credText:S.CT_PWD_STR_SwitchToRemoteNGC_Link},L[m.Fido]={viewId:g.Fido,credId:"idA_PWD_SwitchToFido",credText:I?S.CT_PWD_STR_SwitchToPasskey_Link:O},L[m.Certificate]={credId:"idA_PWD_SwitchToCertificate",credText:S.CT_STR_CredentialPicker_Option_Certificate},L[m.OtherMicrosoftIdpFederation]={credId:"useMicrosoftLink",credText:S.CT_PWD_STR_UseMicrosoft_Link},L[m.LinkedIn]={credId:"useLinkedInLink",credText:S.CT_PWD_STR_UseLinkedIn_Link},L[m.GitHub]={credId:"useGitHubLink",credText:S.CT_PWD_STR_UseGitHub_Link},L[m.Google]={credId:"useGoogleLink",credText:S.CT_PWD_STR_UseGoogle_Link},L[m.Facebook]={credId:"useGoogleLink",credText:S.CT_PWD_STR_UseFacebook_Link},L[m.Federation]={viewId:g.IdpRedirect,credId:"redirectToIdpLink",credText:S.CT_RNGC_STR_SwitchToFederated_Link},L[m.RemoteLogin]={viewId:g.RemoteLoginPolling,credId:"remoteLoginLink",credText:S.CT_PWD_STR_RemoteLoginLink},L[m.OneTimeCode]={viewId:g.OneTimeCode,credId:"otcLoginLink",credText:S.CT_PWD_STR_SwitchToOTC_Link},L[m.AccessPass]={viewId:g.AccessPass,credId:"accessPassLink",credText:S.CT_PWD_STR_Login_SwitchToAccessPassLink},A&&(L[m.VerifiableCredential]={viewId:g.VCPresentation,credId:"vcPresentation",credText:S.CT_PWD_STR_Login_SwitchToVerifiableCredentialLink}),O(S.CT_PWD_STR_SwitchToFidoCrossPlatform_Link),i.utils.arrayForEach(r,(function(e){if(L[e.credType]){var t=e.credType===u.credType,i=e.credType===m.OneTimeCode,a=t&&i&&e.proof.data===u.proof.data,o=t&&i&&e.proof.type===u.proof.type;(!t||i&&!a||i&&!o)&&(n.credentialCount++,B=e)}e.credType===m.Fido&&c.throwUnhandledExceptionOnRejection(s.isPlatformAuthenticatorAvailable(R).then(null,(function(){return!1})).then((function(e){e&&(O(S.CT_PWD_STR_SwitchToFido_Link),n.isPlatformAuthenticatorAvailable(!0))}))),e.credType===m.OfflineAccount&&(n.credentialCount++,n.selectedCredShownOnlyOnPicker=!0)})),B&&1===n.credentialCount&&(n.selectedCredType=B.credType,n.selectedCredShownOnlyOnPicker=!!B.shownOnlyOnPicker,n.switchToCredId=L[n.selectedCredType||m.Password].credId,n.switchToCredText=L[n.selectedCredType||m.Password].credText,n.selectedCredType===m.OneTimeCode))switch(B.proof.type){case PROOF.Type.Email:n.switchToCredText=f.format(S.CT_OTC_STR_SwitchToOtc_EmailLink,B.proof.display);break;case PROOF.Type.SMS:n.switchToCredText=f.format(S.CT_OTC_STR_SwitchToOtc_SmsLink,B.proof.display);break;case PROOF.Type.Voice:n.switchToCredText=f.format(S.CT_OTC_STR_SwitchToOtc_VoiceLink,B.proof.display)}n.showSwitchToCredPickerLink=(!T||n.isUserKnown)&&(n.credentialCount>1||1===n.credentialCount&&(v||n.selectedCredShownOnlyOnPicker))}()}i.components.register("cred-switch-link-control",{viewModel:v,template:t(491),synchronous:!p.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(p.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=v},function(e,n,t){var i=t(2),a=t(3).String;e.exports=function(e,n){var t=this,o=null;t.placeholderTextboxMethods=i.observable(),t.value=i.observable(n||""),t.focused=i.observable(!1).extend({notify:"always"}),t.error=e,t.textbox_onUpdateFocus=function(e){t.focused(e)},t.getTrimmedValue=function(e){var n=a.trim(t.value()||"");return e&&e>0&&(n=n.substring(0,e)),n},t.placeholderTextboxMethods.subscribe((function(e){e&&!o&&function(e){var n=t.value.peek();e.toggleVisibility(!n),o=t.value.subscribe((function(n){e.toggleVisibility(!n)}))}(e)}))}},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=window;function s(e){var n=this,t="placeholder"in document.createElement("input"),r=e.serverData,s=e.hintText,c=e.hintCss||"placeholder",d=r.fIsHosted;n.onUpdateFocus=o.create(),n.hintText=s,n.usePlaceholderAttribute=!1,n.placeholderVisible=i.observable(!0),n.hintCss=i.pureComputed((function(){var e={};return c&&i.utils.arrayForEach(c.split(" "),(function(n){e[n]=!0})),e})),n.placeholderText=i.pureComputed((function(){if(n.usePlaceholderAttribute)return n.hintText})),n.toggleVisibility=function(e){n.placeholderVisible(e)},n.placeholder_onClick=function(){n.onUpdateFocus(!0)},t&&a.Helper.isPlaceholderAttributeAllowed(d)&&(n.usePlaceholderAttribute=!0)}i.components.register("placeholder-textbox-field",{viewModel:s,template:t(490),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=t(2),a=t(1),o=t(3),r=window,s=o.String,c=a.Helper;function d(e){var n=this,t=e.serverData,i=e.title,a=e.subtitle,o=!1!==e.useSubtitle,r=e.isSignUpView,d=e.headerDescription,l=t.oAppCobranding,u=t.str,p=t.fIsSelfServiceSignupUxEnabled,f=t.fIsCiamUserFlowUxNewLogicEnabled&&t.fIsCiamUserFlowUx,g=t.sCompanyDisplayName,m=t.fUseNonMicrosoftDefaultBrandingForCiam;n.title=null,n.subtitle=null,n.headerDescription=null,function(){var e=!(!l||!l.friendlyAppName);if(n.isSubtitleVisible=o&&(e||a),n.title=i,n.subtitle=a,p||f){var t=c.htmlUnescape(g);if(d)n.headerDescription=d;else if(g){var b=r?u.STR_SSSU_SignUp_HeaderDescription:u.STR_SSSU_SignIn_HeaderDescription;n.headerDescription=m?s.format(b,t):s.format(b,g)}}}()}i.components.register("header-control",{viewModel:d,template:t(494),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents)}),e.exports=d},function(e,n,t){e.exports=t.p+"content/images/picker_account_msa_7a63b3ce03943629f052226aaa378291.png"},function(e,n,t){e.exports=t.p+"content/images/picker_account_msa_3b879963b4f70829fd7a25cbc9519792.svg"},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(i){"object"==typeof window&&(t=window)}e.exports=t},function(e,n,t){var i=t(2);n.errorComputed=function(e){var n=i.observable(),t=i.observable(),a=i.pureComputed(e).extend({notify:"always"}),o=i.pureComputed((function(){if(a())return a();if(n()){var e=n();return n(null),e}return null}));return i.utils.extend(i.pureComputed((function(){if(o())return o();if(t()){var e=t();return t(null),e}return null})),{isBlocking:function(){return null!==o()},setBlockingError:function(e){n(e)},setNonBlockingError:function(e){t(e)},setError:function(e,i){i?n(e):t(e)},clearNonBlockingError:function(){t(null),t.valueHasMutated()}})}},function(e,n){var t=n.stringToArrayBuffer=function(e){for(var n=new ArrayBuffer(e.length),t=new Uint8Array(n),i=0,a=e.length;i0?(f.forEach(a,(function(e){var i={ssoUniqueId:e.unique_id,displayName:e.display_name||"",name:e.upn,isWindowsSso:!0,isSignedIn:!0,url:n};t.push(i)})),h("User list processed. List: "+i.stringify(t))):h("User list is empty.");return t}(e.userList,n);return t.length>0?{newSessions:t}:s.reject("noUsers")}}))}():"chrome"===r&&(e=new c({logMessage:h,logDataPoint:_},t.nonce,"login.microsoftonline.com.office.indospace-adfs-o365.indospace.myshn.net",a,o).getCookiesAsync().then((function(e){if(!e||!e.length)return s.reject(new c.Error("PageException","Extension returned no cookies"));for(var n=0,t=e.length;n0&&(t.timing.customLoadEventEnd=a));e.getEntries&&(t.entries=i.utils.arrayMap(e.getEntries(),d));n.connection&&(t.connection=d(n.connection));return t}();try{o.SendTelemetryPerfData(e,"LPerf")}catch(n){}}()}),0)},n.setCustomPageLoadCompletedTime=function(e){a=e||(new Date).getTime()},t||setTimeout((function(){n.setPageLoadCompleted()}),100)}i.components.register("instrumentation-control",{viewModel:s,template:t(371),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=t(2),a=t(1),o=a.Helper,r=window;function s(e){var n=this,t=r.ServerData,i=e.bannerLogoUrl,a=e.isChinaDc,s=t.fIsCiamUserFlowUx,c=t.sCompanyDisplayName,d=t.fUseNonMicrosoftDefaultBrandingForCiam;n.bannerLogoUrl=i,n.isChinaDc=a,n.isCiamUserFlowUx=s,n.bannerLogoText=null,function(){if(d){var e=o.htmlUnescape(c);n.bannerLogoText=e.toUpperCase()}}()}i.components.register("logo-control",{viewModel:s,template:t(372),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents)}),e.exports=s},function(e,n,t){var i=t(2),a=t(3),o=t(1),r=t(4),s=null,c=null,d=t(380),l=window,u=null;function p(e,n){var c=this,l=!1,p=e.serverData,f=e.showButtons||!1,g=e.showFooterLinks,m=!1!==e.showFooterLogo,b=e.useWizardBehavior,v=e.hideFromAria||i.observable(!1),h=p.iProductIcon;p.fFixSignoutBrandingCiam;function _(e,n){var t=["Microsoft","OneDrive","Skype","Bing","Xbox","Word","Outlook","Office","Excel","PowerPoint","Cortana","SkypeDialer","Health","MileIQ","Beam","MSN","Minecraft"];return(e<0||e>=t.length)&&(e=0),a.String.format("./AppCentipede_{0}{1}.{2}",t[e],n?"_white":"",l?"svg":"png")}c.useLayoutTemplates=!0,c.templateNodes={},c.showButtons=f,c.footer={showLinks:g,showLogo:m},c.centipede={getLightUrl:function(){return d(_(h,!0))},getDarkUrl:function(){return d(_(h,!1))}},c.hideFromAria=v,c.isInternalModeEnabled="1"===o.QueryString.extract("psi"),c.viewModel=null,c.viewAgreement=i.observable(!1),c.agreementType=i.observable(),c.isLightboxTemplate=i.observable(!0),c.isVerticalSplitTemplate=i.observable(!1),c.isTemplateLoaded=i.observable(!1),c.onFooterAgreementClick=r.create(),c.footer_agreementClick=function(e){c.onFooterAgreementClick(e)},c.agreement_backButtonClick=function(){c.viewAgreement(!1)},c.showAgreement=function(e){c.agreementType(e),c.viewAgreement(!0)},c.updateBranding=function(e){var n;n=e,s.getLayoutTemplateConfig(n).layoutType===u.VerticalSplit?(c.isLightboxTemplate(!1),c.isVerticalSplitTemplate(!0),t.e(40).then(function(){t(544),c.isTemplateLoaded(!0)}.bind(null,t))["catch"](t.oe)):(c.isVerticalSplitTemplate(!1),c.isLightboxTemplate(!0))},function(){if(l=o.Helper.isSvgImgSupported(),n&&i.utils.arrayForEach(n,(function(e){e.id&&(c.templateNodes[e.id]=e.childNodes)})),b){0}}()}s=t(14),c=t(0),u=c.LayoutTemplateType,i.components.register("master-page",{viewModel:{createViewModel:function(e,n){return new p(e,n.templateNodes)}},template:t(449),synchronous:!l.ServerData.iMaxStackForKnockoutAsyncComponents||o.Helper.isStackSizeGreaterThan(l.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=p},function(e,n,t){var i=t(2),a=t(1),o=window;function r(){var e=this;e.isAppBranding=i.observable(!1),e.backgroundStyle=i.observable(),e.smallImageUrl=i.observable(),e.backgroundImageUrl=i.observable(),e.useImageMask=i.observable(!1),e.useTransparentLightBox=i.observable(!1),e.updateBranding=function(n){e.isAppBranding(!!n.backgroundLogoUrl),e.backgroundStyle(n.color),e.smallImageUrl(n.smallImageUrl),e.backgroundImageUrl(n.backgroundImageUrl),e.useImageMask(!!n.useImageMask),e.useTransparentLightBox(!!n.useTransparentLightBox)}}i.components.register("background-image-control",{viewModel:r,template:t(452),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=r},function(e,n,t){var i=t(2),a=t(1),o=window;i.components.register("environment-banner-control",{template:t(453),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents)})},function(e,n,t){var i=t(2),a=t(1),o=window;function r(e){var n=e.isVerticalSplitTemplate,t=e.hasHeader||!1;this.isVerticalSplitTemplate=n||!1,this.hasHeader=t}i.components.register("content-control",{viewModel:r,template:t(454),synchronous:!o.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(o.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=r},function(e,n,t){e.exports=t.p+"content/images/credentialoptions/cred_option_qrpin_white_97ee76155bdef68d51f882d111ce1a79.png"},function(e,n,t){e.exports=t.p+"content/images/credentialoptions/cred_option_qrpin_white_33f29ddd025aa33fa298befbb72a24a7.svg"},function(e,n,t){e.exports=t.p+"content/images/credentialoptions/cred_option_qrpin_4a5523d6de79a0f34c943d6029ea5168.png"},function(e,n,t){e.exports=t.p+"content/images/credentialoptions/cred_option_qrpin_ada5adc951d9c983f746704ac9363507.svg"},function(e,n,t){var i=t(2),a=t(0),o=t(1),r=t(472),s=t(4),c=t(9),d=t(18),l=t(11).getInstance(window.ServerData),u=t(8),p=window,f=document,g=f.head,m=a.PaginatedState.Previous,b=a.AnimationState,v=a.AnimationName,h=a.AnimationTimeout,_=o.Helper;function C(e,n,t,a){var o=this,C=p.ServerData,S=e.initialViewId||null,x=e.currentViewId||null,w=e.initialSharedData||{},y=e.initialError,k=e.enableCssAnimation,P=e.disableAnimationIfAnimationEndUnsupported,T=d.getInstance(C),D=e.saveSharedDataOnBack||!1,E=C.fRemoveMinWidthFromLightBox,I=C.fDisplayResourceAppConsentDetails,A=C.fPassTelephonyAuthMethod,R=(C.fFixSignoutBrandingCiam,t),L=a,B=null,O=b.End,U=!1,F=null,N=null,M=!1,V=null,j=i.observable();function H(){var e=o.currentViewIndex();return R[e]?R[e]():null}function W(e){j(null),o.view_onSetIdentityBackButtonState(),o.isInitialState=B.getState().isInitialState,o.onShowView(L[e].metadata,e),j(e),o.hasInitialViewShown(!0);var n=document.querySelectorAll("[data-viewid]");if(T&&n&&n.length>0)try{T.applyClientEventBindings(n[0])}catch(t){}}function $(e,n){var t=j(),i=o.onLoadView(e);if(T&&t)try{T.set("viewId",t,!0),T.post(!0)}catch(a){}i?c.throwUnhandledExceptionOnRejection(i.then((function(){G(t,e,n)}))):G(t,e,n)}function G(e,n,t){M&&(e!==n||t)&&(!y||e)?(P&&null===F&&(V=setTimeout((function(){M=!1,o.hidePaginatedView(!1),o.hidePaginatedView.hideSubView(!1),o.onSetLightBoxFadeIn(!1),O=b.End,$(n)}),h)),F=e,N=n,O=b.Begin,o.view_onAnimationEnd()):(o.animate(v.None),o.view_onAnimationEnd(),W(n),o.unsafe_displayName(o.showIdentityBanner()?_.htmlUnescape(o.sharedData.displayName||p.ServerData.sPOST_Username):""))}function q(e){var n=H();if(n){e&&n.saveSharedData(o.sharedData);var t=n.getState(),i=B.getState();i.viewState=t,B.replaceState(i)}}function K(){U=!0,q(!1)}function z(){U=!1}function Q(e){o.initialError=null,$(e.viewId,e.forceTransitionAnimation)}o.views=n,o.viewInterfaces=t,o.sharedData=w,o.initialError=y,o.isInitialState=!1,o.showLogo=e.showLogo||!1,o.bannerLogoUrl=e.bannerLogoUrl||"",o.isBackButtonVisible=i.observable(!1),o.isBackButtonFocused=i.observable(!1),o.backButtonDescribedBy=i.observable(null),o.hasInitialViewShown=i.observable(!1),o.unsafe_displayName=i.observable(),o.hidePaginatedView=i.utils.extend(i.observable(!1),{hideSubView:i.observable(!1)}),o.animate=i.utils.extend(i.observable(v.None),{animateBanner:i.observable(!1),isSlideOutNext:i.pureComputed((function(){return o.animate()===v.SlideOutNext})),isSlideInNext:i.pureComputed((function(){return o.animate()===v.SlideInNext})),isSlideOutBack:i.pureComputed((function(){return o.animate()===v.SlideOutBack})),isSlideInBack:i.pureComputed((function(){return o.animate()===v.SlideInBack}))}),o.showIdentityBanner=i.pureComputed((function(){var e=j();return e&&L[e].metadata&&L[e].metadata.showIdentityBanner})),o.currentViewIndex=i.pureComputed((function(){var e=j();return L[e]&&!isNaN(L[e].index)?L[e].index:-1})),o.onCancel=s.create(),o.onUnload=s.create(),o.onLoadView=s.create(),o.onShowView=s.create(),o.onSetLightBoxFadeIn=s.create(),o.onAnimationStateChange=s.create(),o.dispose=function(){o.onUnload(B.getState().viewId),B.dispose()},o.setDefaultFocus=function(){var e=H();e&&e.setDefaultFocus&&e.setDefaultFocus()},o.getCurrentViewId=function(){return j()},o.getSharedData=function(){return o.sharedData||{}},o.getSharedDataItem=function(e){return o.getSharedData()[e]},o.getCurrentView=function(){return{viewId:j(),viewInterface:H()}},o.setSharedDataItem=function(e,n){o.sharedData||(o.sharedData={}),o.sharedData[e]=n},o.saveSharedDataOnCurrentView=function(){var e=H();e&&e.saveSharedData(o.sharedData)},o.currentViewHasMetadata=function(e){var n=j();return!!L[n]&&!!L[n].metadata[e]},o.submitCurrentView=function(){var e=H();e&&e.submit&&e.submit()},o.identityBanner_onBackButtonClick=function(){(I||A)&&D&&o.saveSharedDataOnCurrentView(),o.view_onSwitchView(m)},o.restoreState=function(e){var n=B.getState();e&&e!==x&&(n={viewId:x=e},B.pushState(n)),setTimeout((function(){$(n.viewId)}),0)},o.view_onLoad=function(){var e=B.getState(),n=H();if(n){n.restoreState(e?e.viewState:null);var t=o.getCurrentViewId();if(l.setViewViewModel(n,t,L[t].metadata),l.logViewState(n),T&&t)try{T.set("viewId",t,!0)}catch(i){}o.setDefaultFocus()}},o.view_onSwitchView=function(e,n,t){l.logEvent({eventType:"view_onSwitchView",eventId:u.EventIds.Event_PaginationControl_ViewSwitch,eventLevel:u.EventLevel.Critical,eventArgs:{viewId:e,replaceHistory:n},eventOptions:{hidingMode:u.HidingMode.None}}),l.switchView(H());var i=B.getState()||{};t&&(i.forceTransitionAnimation=t,B.replaceState(i)),o.initialError=null,e===m?(U=!0,i.isInitialState?o.onCancel():B.goBack()):(U=!1,q(!0),(n|=e===j()&&!1!==n)?(i.viewId=e,i.viewState=null,B.replaceState(i)):(i={viewId:e},B.pushState(i)),$(e,t))},o.view_onCancel=function(){o.onCancel()},o.view_onSetIdentityBackButtonState=function(e,n,t){o.isBackButtonVisible(e||!1),o.isBackButtonFocused(n||!1),o.backButtonDescribedBy(t||null)},o.view_onAnimationEnd=function(){switch(o.onAnimationStateChange(O,U,!!F),O){case b.Begin:o.animate(v.None),o.animate.animateBanner(!F||L[F].metadata.showIdentityBanner!==L[N].metadata.showIdentityBanner),O=b.RenderNewView,F?o.animate(U?v.SlideOutBack:v.SlideOutNext):o.view_onAnimationEnd();break;case b.RenderNewView:W(N),o.animate.animateBanner()?o.hidePaginatedView(!0):o.hidePaginatedView.hideSubView(!0),o.unsafe_displayName(o.showIdentityBanner()?_.htmlUnescape(o.sharedData.displayName||p.ServerData.sPOST_Username):""),O=b.AnimateNewView,F?setTimeout(o.view_onAnimationEnd,0):o.onSetLightBoxFadeIn(!0);break;case b.AnimateNewView:V&&(clearTimeout(V),V=null),O=b.End,o.hidePaginatedView(!1),o.hidePaginatedView.hideSubView(!1),o.animate(U?v.SlideInBack:v.SlideInNext)}},function(){M=k&&_.isCSSAnimationSupported(),B=new r(K,z,Q);var e=null;if(null===S&&null===x||(S=null===S?x:S,x=null===x?S:x,e={viewId:S,isInitialState:!0},B.replaceState(e)),x!==S&&(e={viewId:x},B.pushState(e)),E){var n=f.createElement("style");n.type="text/css",n.innerHTML=".inner,.promoted-fed-cred-box,.sign-in-box,.new-session-popup-v2sso,.debug-details-banner,.vertical-split-content{min-width:0;}",g.appendChild(n)}}()}function S(e){var n={};return i.utils.arrayForEach(["wide","hideLogo","hideDefaultLogo","dynamicBranding","hideLwaDisclaimer","showIdentityBanner","showFedCredButton","showSignupFedCredButton","hidePageLevelTitleAndDesc","extraDebugDetails","showQrCodeSignInButton"],(function(t){var i=e.getAttribute("data-"+t);i&&(n[t]="true"===i.toLowerCase())})),n}i.components.register("pagination-control",{viewModel:{createViewModel:function(e,n){var t=[],a=[],o={},r=0;return i.utils.arrayForEach(n.templateNodes,(function(e){var n;1===e.nodeType&&null!==(n=e.getAttribute("data-viewid"))&&(t.push(e),a.push(i.observable()),n=isNaN(n)?n:parseInt(n),o[n]={index:r++,metadata:S(e)})})),new C(e,t,a,o)}},template:t(473),synchronous:!p.ServerData.iMaxStackForKnockoutAsyncComponents||o.Helper.isStackSizeGreaterThan(p.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0})},function(e,n,t){var i=t(2),a=t(1),o=t(4),r=window;function s(e){var n=e.isPlatformAuthenticatorAvailable;this.isPlatformAuthenticatorAvailable=n,this.onRegisterDialog=o.create(),this.onUnregisterDialog=o.create()}i.components.register("fido-help-dialog-content-control",{viewModel:s,template:t(493),synchronous:!r.ServerData.iMaxStackForKnockoutAsyncComponents||a.Helper.isStackSizeGreaterThan(r.ServerData.iMaxStackForKnockoutAsyncComponents),enableExtensions:!0}),e.exports=s},function(e,n,t){var i=window;t.p=i.ServerData.urlCdn,i.ServerData.urlImagePath=i.ServerData.urlCdn+"images/";var a=t(2),o=t(70),r=t(0),s=t(1),c=t(73),d=t(7),l=t(74);t(18).getInstance(window.ServerData);var u=r.LoginMode,p=s.Helper,f=s.QueryString,g=s.Cookies,m=d.LoginOption,b=!1;function v(e){!function(e){if(e){(new Image).src=e}}(e.urlIPv6Experiment),function(e){if(e.fUpgradeEVCert&&null!==new RegExp("Windows NT ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&parseFloat(RegExp.$1)<6&&p.getIEVersion()>=7)try{document.getElementById("ev").src=e.urlEVCertUpgrade}catch(n){}}(e)}o.applyExtensions(a),a.utils.registerEventHandler(i,"load",(function(){var e=i.ServerData;if(e.str=c.getStrings("str",e),e.html=c.getStrings("html",e),e.arrProofData=c.getStrings("proofData"),!b&&!function(e){try{if(top!==self&&top.location.replace(self.location.href),2===e.iFedState&&e.urlFed)return function(e,n,t,i){var a=i.sFedQS;n===m.NothingChecked&&(a=f.appendOrReplace("?"+a,"wctx","LoginOptions%3D3%26"+f.extract("wctx","?"+a)).substr(1));e=f.appendOrReplace(e,"cbcxt",encodeURIComponent(decodeURIComponent(f.extract("cbcxt")))),e=f.appendOrReplace(e,"vv",encodeURIComponent(decodeURIComponent(f.extract("cbcxt")))),e=f.appendOrReplace(e,"username",encodeURIComponent(t)),e=f.appendOrReplace(e,"mkt",encodeURIComponent(decodeURIComponent(f.extract("mkt")))),e=f.appendOrReplace(e,"lc",encodeURIComponent(decodeURIComponent(f.extract("lc")))),document.location.replace(f.append(e,a))}(e.urlFed,e.iDefaultLoginOptions,decodeURIComponent(f.extract("username")),e),!0;if(!g.enabled())return document.location=e.urlNoCookies,!0}catch(n){e.iLoginMode=u.GenericError}return!1}(e))switch(b=!0,e.iLoginMode){case u.GenericError:case u.GenericErrorMobile:case u.GenericErrorHost:case u.SwitchUser:case u.SwitchUserMobile:case u.SwitchUserHost:case u.InviteBlocked:case u.ServiceBlocked:case u.IDPFailed:case u.HIP_Lockout:case u.HIP_LockoutMobile:case u.HIP_LockoutHost:case u.BindFailed:t.e(1).then(function(){var n=t(502);document.body.appendChild(document.createElement("div")).innerHTML=t(503),a.applyBindings(new n(e)),v(e)}.bind(null,t))["catch"](t.oe);break;default:document.body.appendChild(document.createElement("div")).innerHTML=t(359),a.applyBindings(new l(e)),v(e)}}))},function(e,n,t){var i,a,o; /*! * Knockout JavaScript library v3.5.1 * (c) The Knockout.js team - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */!function(r){var s=this||(0,eval)("this"),c=s.document,d=s.navigator,l=s.jQuery,u=s.JSON;l||"undefined"==typeof jQuery||(l=jQuery),function(r){a=[n,t],(o="function"==typeof(i=r)?i.apply(n,a):i)===undefined||(e.exports=o)}((function(e,n){function t(e,n){return(null===e||typeof e in S)&&e===n}function i(e,n){var t;return function(){t||(t=C.a.setTimeout((function(){t=r,e()}),n))}}function a(e,n){var t;return function(){clearTimeout(t),t=C.a.setTimeout(e,n)}}function o(e,n){n&&"change"!==n?"beforeChange"===n?this.pc(e):this.gb(e,n):this.qc(e)}function p(e,n){null!==n&&n.s&&n.s()}function f(e,n){var t=this.qd,i=t[P];i.ra||(this.Qb&&this.mb[n]?(t.uc(n,e,this.mb[n]),this.mb[n]=null,--this.Qb):i.I[n]||t.uc(n,e,i.J?{da:e}:t.$c(e)),e.Ja&&e.gd())}var g,m,b,v,h,_,C=void 0!==e?e:{};C.b=function(e,n){for(var t=e.split("."),i=C,a=0;aC.a.A(n,e)&&n.push(e)})),n},Mb:function(e,n,t){var i=[];if(e)for(var a=0,o=e.length;ai?t&&e.push(n):t||e.splice(i,1)},Ba:o,extend:n,setPrototypeOf:t,Ab:o?t:n,P:e,Ga:function(e,n,t){if(!e)return e;var i,o={};for(i in e)a.call(e,i)&&(o[i]=n.call(t,e[i],i,e));return o},Tb:function(e){for(;e.firstChild;)C.removeNode(e.firstChild)},Yb:function(e){for(var n=((e=C.a.la(e))[0]&&e[0].ownerDocument||c).createElement("div"),t=0,i=e.length;tv?e.setAttribute("selected",n):e.selected=n},Db:function(e){return null===e||e===r?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,n){return e=e||"",!(n.length>e.length)&&e.substring(0,n.length)===n},vd:function(e,n){if(e===n)return!0;if(11===e.nodeType)return!1;if(n.contains)return n.contains(1!==e.nodeType?e.parentNode:e);if(n.compareDocumentPosition)return 16==(16&n.compareDocumentPosition(e));for(;e&&e!=n;)e=e.parentNode;return!!e},Sb:function(e){return C.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!C.a.Lb(e,C.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return C.onError?function(){try{return e.apply(this,arguments)}catch(n){throw C.onError&&C.onError(n),n}}:e},setTimeout:function(e,n){return setTimeout(C.a.Ac(e),n)},Gc:function(e){setTimeout((function(){throw C.onError&&C.onError(e),e}),0)},B:function(e,n,t){var i=C.a.Ac(t);if(t=b[n],C.options.useOnlyNativeEvents||t||!l)if(t||"function"!=typeof e.addEventListener){if("undefined"==typeof e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var a=function(n){i.call(e,n)},o="on"+n;e.attachEvent(o,a),C.a.K.za(e,(function(){e.detachEvent(o,a)}))}else e.addEventListener(n,i,!1);else m||(m="function"==typeof l(e).on?"on":"bind"),l(e)[m](n,i)},Fb:function(e,n){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var t;if(t=!("input"!==C.a.R(e)||!e.type||"click"!=n.toLowerCase())&&("checkbox"==(t=e.type)||"radio"==t),C.options.useOnlyNativeEvents||!l||t)if("function"==typeof c.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(t=c.createEvent(g[n]||"HTMLEvents")).initEvent(n,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(t)}else if(t&&e.click)e.click();else{if("undefined"==typeof e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+n)}else l(e).trigger(n)},f:function(e){return C.O(e)?e():e},bc:function(e){return C.O(e)?e.v():e},Eb:function(e,n,t){var a;n&&("object"==typeof e.classList?(a=e.classList[t?"add":"remove"],C.a.D(n.match(h),(function(n){a.call(e.classList,n)}))):"string"==typeof e.className.baseVal?i(e.className,"baseVal",n,t):i(e,"className",n,t))},Bb:function(e,n){var t=C.a.f(n);null!==t&&t!==r||(t="");var i=C.h.firstChild(e);!i||3!=i.nodeType||C.h.nextSibling(i)?C.h.va(e,[e.ownerDocument.createTextNode(t)]):i.data=t,C.a.Ad(e)},Yc:function(e,n){if(e.name=n,7>=v)try{var i=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(c.createElement(""),!1)}catch(t){}},Ad:function(e){9<=v&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(v){var n=e.style.width;e.style.width=0,e.style.width=n}},Pd:function(e,n){e=C.a.f(e),n=C.a.f(n);for(var t=[],i=e;i<=n;i++)t.push(i);return t},la:function(e){for(var n=[],t=0,i=e.length;t",""],tbody:m,tfoot:m,tr:[2,"","
"],td:b=[3,"","
"],th:b,option:v=[1,""],optgroup:v},_=8>=C.a.W,C.a.ua=function(e,n){var t;if(l){if(l.parseHTML)t=l.parseHTML(e,n)||[];else if((t=l.clean([e],n))&&t[0]){for(var i=t[0];i.parentNode&&11!==i.parentNode.nodeType;)i=i.parentNode;i.parentNode&&i.parentNode.removeChild(i)}}else{(t=n)||(t=c),i=t.parentWindow||t.defaultView||s;var a,o=C.a.Db(e).toLowerCase(),r=t.createElement("div");for(a=(o=o.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&h[o[1]]||g,o=a[0],a="ignored
"+a[1]+e+a[2]+"
","function"==typeof i.innerShiv?r.appendChild(i.innerShiv(a)):(_&&t.body.appendChild(r),r.innerHTML=a,_&&r.parentNode.removeChild(r));o--;)r=r.lastChild;t=C.a.la(r.lastChild.childNodes)}return t},C.a.Md=function(e,n){var t=C.a.ua(e,n);return t.length&&t[0].parentElement||C.a.Yb(t)},C.a.fc=function(e,n){if(C.a.Tb(e),null!==(n=C.a.f(n))&&n!==r)if("string"!=typeof n&&(n=n.toString()),l)l(e).html(n);else for(var t=C.a.ua(n,e.ownerDocument),i=0;in){if(5e3<=++a){o=i,C.a.Gc(Error("'Too much recursion' after processing "+a+" task groups."));break}n=i}try{e()}catch(r){C.a.Gc(r)}}}function n(){e(),o=i=t.length=0}var t=[],i=0,a=1,o=0;return{scheduler:s.MutationObserver?function(e){var n=c.createElement("div");return new MutationObserver(e).observe(n,{attributes:!0}),function(){n.classList.toggle("foo")}}(n):c&&"onreadystatechange"in c.createElement("script")?function(e){var n=c.createElement("script");n.onreadystatechange=function(){n.onreadystatechange=null,c.documentElement.removeChild(n),n=null,e()},c.documentElement.appendChild(n)}:function(e){setTimeout(e,0)},zb:function(e){return i||C.na.scheduler(n),t[i++]=e,a++},cancel:function(e){(e-=a-i)>=o&&et[0]?o+t[0]:t[0]),o),o=1===r?o:Math.min(n+(t[1]||0),o),r=n+r-2,l=Math.max(o,r);for(var u=[],p=[],f=2;nn;n++)e=e();return e}))},C.toJSON=function(e,n,t){return e=C.ad(e),C.a.hc(e,n,t)},n.prototype={constructor:n,save:function(e,n){var t=C.a.A(this.keys,e);0<=t?this.values[t]=n:(this.keys.push(e),this.values.push(n))},get:function(e){return 0<=(e=C.a.A(this.keys,e))?this.values[e]:r}}}(),C.b("toJS",C.ad),C.b("toJSON",C.toJSON),C.Wd=function(e,n,t){function i(n){var i=C.xb(e,t).extend({ma:"always"}),a=i.subscribe((function(e){e&&(a.s(),n(e))}));return i.notifySubscribers(i.v()),a}return"function"!=typeof Promise||n?i(n.bind(t)):new Promise(i)},C.b("when",C.Wd),C.w={M:function(e){switch(C.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?C.a.g.get(e,C.c.options.$b):7>=C.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?C.w.M(e.options[e.selectedIndex]):r;default:return e.value}},cb:function(e,n,t){switch(C.a.R(e)){case"option":"string"==typeof n?(C.a.g.set(e,C.c.options.$b,r),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=n):(C.a.g.set(e,C.c.options.$b,n),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=r);for(var i,a=-1,o=0,s=e.options.length;o=c){t.push(n&&s.length?{key:n,value:s.join("")}:{unknown:n||s.join("")}),n=c=0,s=[];continue}}else if(58===u){if(!c&&!n&&1===s.length){n=s.pop();continue}}else{if(47===u&&1arguments.length){if(!(n=c.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!n||1!==n.nodeType&&8!==n.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");p(g(e,t),n)},C.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?r:C.Td(e)},C.Ec=function(e){return(e=C.Dc(e))?e.$data:r},C.b("bindingHandlers",C.c),C.b("bindingEvent",C.i),C.b("bindingEvent.subscribe",C.i.subscribe),C.b("bindingEvent.startPossiblyAsyncContentBinding",C.i.Cb),C.b("applyBindings",C.vc),C.b("applyBindingsToDescendants",C.Oa),C.b("applyBindingAccessorsToNode",C.ib),C.b("applyBindingsToNode",C.ld),C.b("contextFor",C.Dc),C.b("dataFor",C.Ec)}(),function(e){function n(n,i){var r,s=Object.prototype.hasOwnProperty.call(a,n)?a[n]:e;s?s.subscribe(i):((s=a[n]=new C.T).subscribe(i),t(n,(function(e,t){var i=!(!t||!t.synchronous);o[n]={definition:e,Gd:i},delete a[n],r||i?s.notifySubscribers(e):C.na.zb((function(){s.notifySubscribers(e)}))})),r=!0)}function t(e,n){i("getConfig",[e],(function(t){t?i("loadComponent",[e,t],(function(e){n(e,t)})):n(null,null)}))}function i(n,t,a,o){o||(o=C.j.loaders.slice(0));var r=o.shift();if(r){var s=r[n];if(s){var c=!1;if(s.apply(r,t.concat((function(e){c?a(null):null!==e?a(e):i(n,t,a,o)})))!==e&&(c=!0,!r.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else i(n,t,a,o)}else a(null)}var a={},o={};C.j={get:function(t,i){var a=Object.prototype.hasOwnProperty.call(o,t)?o[t]:e;a?a.Gd?C.u.G((function(){i(a.definition)})):C.na.zb((function(){i(a.definition)})):n(t,i)},Bc:function(e){delete o[e]},oc:i},C.j.loaders=[],C.b("components",C.j),C.b("components.get",C.j.get),C.b("components.clearCachedDefinition",C.j.Bc)}(),function(){function e(e,n,t,i){function o(){0==--s&&i(r)}var r={},s=2,c=t.template;t=t.viewModel,c?a(n,c,(function(n){C.j.oc("loadTemplate",[e,n],(function(e){r.template=e,o()}))})):o(),t?a(n,t,(function(n){C.j.oc("loadViewModel",[e,n],(function(e){r[d]=e,o()}))})):o()}function t(e){switch(C.a.R(e)){case"script":return C.a.ua(e.text);case"textarea":return C.a.ua(e.value);case"template":if(i(e.content))return C.a.Ca(e.content.childNodes)}return C.a.Ca(e.childNodes)}function i(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function a(e,t,i){"string"==typeof t.require?n||s.require?(n||s.require)([t.require],(function(e){e&&"object"==typeof e&&e.Xd&&e["default"]&&(e=e["default"]),i(e)})):e("Uses require, but no AMD loader is present"):i(t)}function o(e){return function(n){throw Error("Component '"+e+"': "+n)}}var r={};C.j.register=function(e,n){if(!n)throw Error("Invalid configuration for "+e);if(C.j.tb(e))throw Error("Component "+e+" is already registered");r[e]=n},C.j.tb=function(e){return Object.prototype.hasOwnProperty.call(r,e)},C.j.unregister=function(e){delete r[e],C.j.Bc(e)},C.j.Fc={getConfig:function(e,n){n(C.j.tb(e)?r[e]:null)},loadComponent:function(n,t,i){var r=o(n);a(r,t,(function(t){e(n,r,t,i)}))},loadTemplate:function(e,n,a){if(e=o(e),"string"==typeof n)a(C.a.ua(n));else if(n instanceof Array)a(n);else if(i(n))a(C.a.la(n.childNodes));else if(n.element)if(n=n.element,s.HTMLElement?n instanceof HTMLElement:n&&n.tagName&&1===n.nodeType)a(t(n));else if("string"==typeof n){var r=c.getElementById(n);r?a(t(r)):e("Cannot find element with ID "+n)}else e("Unknown element type: "+n);else e("Unknown template value: "+n)},loadViewModel:function(e,n,t){!function i(e,n,t){if("function"==typeof n)t((function(e){return new n(e)}));else if("function"==typeof n[d])t(n[d]);else if("instance"in n){var a=n.instance;t((function(){return a}))}else"viewModel"in n?i(e,n.viewModel,t):e("Unknown viewModel value: "+n)}(o(e),n,t)}};var d="createViewModel";C.b("components.register",C.j.register),C.b("components.isRegistered",C.j.tb),C.b("components.unregister",C.j.unregister),C.b("components.defaultLoader",C.j.Fc),C.j.loaders.push(C.j.Fc),C.j.dd=r}(),function(){function e(e,t){if(i=e.getAttribute("params")){var i=n.parseBindingsString(i,t,e,{valueAccessors:!0,bindingParams:!0}),a=(i=C.a.Ga(i,(function(n){return C.o(n,null,{l:e})})),C.a.Ga(i,(function(n){var t=n.v();return n.ja()?C.o({read:function(){return C.a.f(n())},write:C.Za(t)&&function(e){n()(e)},l:e}):t})));return Object.prototype.hasOwnProperty.call(a,"$raw")||(a.$raw=i),a}return{$raw:{}}}C.j.getComponentNameForNode=function(e){var n=C.a.R(e);if(C.j.tb(n)&&(-1!=n.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=C.a.W&&e.tagName===n))return n},C.j.tc=function(n,t,i,a){if(1===t.nodeType){var o=C.j.getComponentNameForNode(t);if(o){if((n=n||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var r={name:o,params:e(t,i)};n.component=a?function(){return r}:r}}return n};var n=new C.ga;9>C.a.W&&(C.j.register=function(e){return function(n){return e.apply(this,arguments)}}(C.j.register),c.createDocumentFragment=function(e){return function(){var n,t=e(),i=C.j.dd;for(n in i);return t}}(c.createDocumentFragment))}(),function(){var e=0;C.c.component={init:function(n,t,i,a,o){function r(){var e=s&&s.dispose;"function"==typeof e&&e.call(s),d&&d.s(),c=s=d=null}var s,c,d,l=C.a.la(C.h.childNodes(n));return C.h.Ea(n),C.a.K.za(n,r),C.o((function(){var i,a,u=C.a.f(t());if("string"==typeof u?i=u:(i=C.a.f(u.name),a=C.a.f(u.params)),!i)throw Error("No component name specified");var p=C.i.Cb(n,o),f=c=++e;C.j.get(i,(function(e){if(c===f){if(r(),!e)throw Error("Unknown component '"+i+"'");!function(e,n,t){if(!(n=n.template))throw Error("Component '"+e+"' has no template");e=C.a.Ca(n),C.h.va(t,e)}(i,e,n);var t=function(e,n,t){var i=e.createViewModel;return i?i.call(e,n,t):n}(e,a,{element:n,templateNodes:l});e=p.createChildContext(t,{extend:function(e){e.$component=t,e.$componentTemplateNodes=l}}),t&&t.koDescendantsComplete&&(d=C.i.subscribe(n,C.i.pa,t.koDescendantsComplete,t)),s=t,C.Oa(e,n)}}))}),null,{l:n}),{controlsDescendantBindings:!0}}},C.h.ea.component=!0}();var A={"class":"className","for":"htmlFor"};C.c.attr={update:function(e,n){var t=C.a.f(n())||{};C.a.P(t,(function(n,t){t=C.a.f(t);var i=n.indexOf(":"),a=(i="lookupNamespaceURI"in e&&0=C.a.W&&n in A?(n=A[n],a?e.removeAttribute(n):e[n]=t):a||(i?e.setAttributeNS(i,n,t):e.setAttribute(n,t)),"name"===n&&C.a.Yc(e,a?"":t)}))}},C.c.checked={after:["value","attr"],init:function(e,n,t){function i(){var i=e.checked,c=a();if(!C.S.Ya()&&(i||!s&&!C.S.qa())){var u=C.u.G(n);if(d){var f=l?u.v():u,g=p;p=c,g!==c?i&&(C.a.Na(f,c,!0),C.a.Na(f,g,!1)):C.a.Na(f,c,i),l&&C.Za(u)&&u(f)}else o&&(c===r?c=i:i||(c=r)),C.m.eb(u,t,"checked",c,!0)}}var a=C.xb((function(){return t.has("checkedValue")?C.a.f(t.get("checkedValue")):u?t.has("value")?C.a.f(t.get("value")):e.value:void 0})),o="checkbox"==e.type,s="radio"==e.type;if(o||s){var c=n(),d=o&&C.a.f(c)instanceof Array,l=!(d&&c.push&&c.splice),u=s||d,p=d?a():r;s&&!e.name&&C.c.uniqueName.init(e,(function(){return!0})),C.o(i,null,{l:e}),C.a.B(e,"click",i),C.o((function(){var t=C.a.f(n()),i=a();d?(e.checked=0<=C.a.A(t,i),p=i):e.checked=o&&i===r?!!t:a()===t}),null,{l:e}),c=r}}},C.m.wa.checked=!0,C.c.checkedValue={update:function(e,n){e.value=C.a.f(n())}},C.c["class"]={update:function(e,n){var t=C.a.Db(C.a.f(n()));C.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=t,C.a.Eb(e,t,!0)}},C.c.css={update:function(e,n){var t=C.a.f(n());null!==t&&"object"==typeof t?C.a.P(t,(function(n,t){t=C.a.f(t),C.a.Eb(e,n,t)})):C.c["class"].update(e,n)}},C.c.enable={update:function(e,n){var t=C.a.f(n());t&&e.disabled?e.removeAttribute("disabled"):t||e.disabled||(e.disabled=!0)}},C.c.disable={update:function(e,n){C.c.enable.update(e,(function(){return!C.a.f(n())}))}},C.c.event={init:function(e,n,t,i,a){var o=n()||{};C.a.P(o,(function(o){"string"==typeof o&&C.a.B(e,o,(function(e){var r,s=n()[o];if(s){try{var c=C.a.la(arguments);i=a.$data,c.unshift(i),r=s.apply(i,c)}finally{!0!==r&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===t.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},C.c.foreach={Rc:function(e){return function(){var n=e(),t=C.a.bc(n);return t&&"number"!=typeof t.length?(C.a.f(n),{foreach:t.data,as:t.as,noChildContext:t.noChildContext,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:C.ba.Ma}):{foreach:n,templateEngine:C.ba.Ma}}},init:function(e,n){return C.c.template.init(e,C.c.foreach.Rc(n))},update:function(e,n,t,i,a){return C.c.template.update(e,C.c.foreach.Rc(n),t,i,a)}},C.m.Ra.foreach=!1,C.h.ea.foreach=!0,C.c.hasfocus={init:function(e,n,t){function i(i){e.__ko_hasfocusUpdating=!0;var a=e.ownerDocument;if("activeElement"in a){var o;try{o=a.activeElement}catch(r){o=a.body}i=o===e}a=n(),C.m.eb(a,t,"hasfocus",i,!0),e.__ko_hasfocusLastValue=i,e.__ko_hasfocusUpdating=!1}var a=i.bind(null,!0),o=i.bind(null,!1);C.a.B(e,"focus",a),C.a.B(e,"focusin",a),C.a.B(e,"blur",o),C.a.B(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,n){var t=!!C.a.f(n());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===t||(t?e.focus():e.blur(),!t&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),C.u.G(C.a.Fb,null,[e,t?"focusin":"focusout"]))}},C.m.wa.hasfocus=!0,C.c.hasFocus=C.c.hasfocus,C.m.wa.hasFocus="hasfocus",C.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,n){C.a.fc(e,n())}},function(){function e(e,n,t){C.c[e]={init:function(e,i,a,o,r){var s,c,d,l,u,p={};if(n){o=a.get("as");var f=a.get("noChildContext");p={as:o,noChildContext:f,exportDependencies:u=!(o&&f)}}return l=(d="render"==a.get("completeOn"))||a.has(C.i.pa),C.o((function(){var a,o=C.a.f(i()),f=!t!=!o,g=!c;(u||f!==s)&&(l&&(r=C.i.Cb(e,r)),f&&(n&&!u||(p.dataDependency=C.S.o()),a=n?r.createChildContext("function"==typeof o?o:i,p):C.S.qa()?r.extend(null,p):r),g&&C.S.qa()&&(c=C.a.Ca(C.h.childNodes(e),!0)),f?(g||C.h.va(e,C.a.Ca(c)),C.Oa(a,e)):(C.h.Ea(e),d||C.i.ma(e,C.i.H)),s=f)}),null,{l:e}),{controlsDescendantBindings:!0}}},C.m.Ra[e]=!1,C.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),C.c["let"]={init:function(e,n,t,i,a){return n=a.extend(n),C.Oa(n,e),{controlsDescendantBindings:!0}}},C.h.ea["let"]=!0;var R={};C.c.options={init:function(e){if("select"!==C.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0i)var d=C.a.g.Z(),l=C.a.g.Z(),u=function(e){var n=this.activeElement;(n=n&&C.a.g.get(n,l))&&n(e)},p=function(e,n){var t=e.ownerDocument;C.a.g.get(t,d)||(C.a.g.set(t,d,!0),C.a.B(t,"selectionchange",u)),C.a.g.set(e,l,n)};C.c.textInput={init:function(o,s,c){function d(e,n){C.a.B(o,e,n)}function l(){f||(g=o.value,f=C.a.setTimeout(u,4))}function u(){clearTimeout(f),g=f=r;var e=o.value;m!==e&&(m=e,C.m.eb(s(),c,"textInput",e))}var f,g,m=o.value,b=9==C.a.W?l:u,v=!1;i&&d("keypress",u),11>i&&d("propertychange",(function(e){v||"value"!==e.propertyName||b(e)})),8==i&&(d("keyup",u),d("keydown",u)),p&&(p(o,b),d("dragend",l)),(!i||9<=i)&&d("input",b),5>n&&"textarea"===C.a.R(o)?(d("keydown",l),d("paste",l),d("cut",l)):11>e?d("keydown",l):4>t?(d("DOMAutoComplete",u),d("dragdrop",u),d("drop",u)):a&&"number"===o.type&&d("keydown",l),d("change",u),d("blur",u),C.o((function h(){var e=C.a.f(s());null!==e&&e!==r||(e=""),g!==r&&e===g?C.a.setTimeout(h,4):o.value!==e&&(v=!0,o.value=e,v=!1,m=o.value)}),null,{l:o})}},C.m.wa.textInput=!0,C.c.textinput={preprocess:function(e,n,t){t("textInput",e)}}}(),C.c.uniqueName={init:function(e,n){if(n()){var t="ko_unique_"+ ++C.c.uniqueName.rd;C.a.Yc(e,t)}}},C.c.uniqueName.rd=0,C.c.using={init:function(e,n,t,i,a){var o;return t.has("as")&&(o={as:t.get("as"),noChildContext:t.get("noChildContext")}),n=a.createChildContext(n,o),C.Oa(n,e),{controlsDescendantBindings:!0}}},C.h.ea.using=!0,C.c.value={init:function(e,n,t){var i=C.a.R(e),a="input"==i;if(!a||"checkbox"!=e.type&&"radio"!=e.type){var o=[],s=t.get("valueUpdate"),c=!1,d=null;s&&(o="string"==typeof s?[s]:C.a.wc(s),C.a.Pa(o,"change"));var l,u,p=function(){d=null,c=!1;var i=n(),a=C.w.M(e);C.m.eb(i,t,"value",a)};!C.a.W||!a||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=C.a.A(o,"propertychange")||(C.a.B(e,"propertychange",(function(){c=!0})),C.a.B(e,"focus",(function(){c=!1})),C.a.B(e,"blur",(function(){c&&p()}))),C.a.D(o,(function(n){var t=p;C.a.Ud(n,"after")&&(t=function(){d=C.w.M(e),C.a.setTimeout(p,0)},n=n.substring(5)),C.a.B(e,n,t)})),l=a&&"file"==e.type?function(){var t=C.a.f(n());null===t||t===r||""===t?e.value="":C.u.G(p)}:function(){var a=C.a.f(n()),o=C.w.M(e);null!==d&&a===d?C.a.setTimeout(l,0):a===o&&o!==r||("select"===i?(o=t.get("valueAllowUnset"),C.w.cb(e,a,o),o||a===C.w.M(e)||C.u.G(p)):C.w.cb(e,a))},"select"===i?C.i.subscribe(e,C.i.H,(function(){u?t.get("valueAllowUnset")?l():p():(C.a.B(e,"change",p),u=C.o(l,null,{l:e}))}),null,{notifyImmediately:!0}):(C.a.B(e,"change",p),C.o(l,null,{l:e}))}else C.ib(e,{checkedValue:n})},update:function(){}},C.m.wa.value=!0,C.c.visible={update:function(e,n){var t=C.a.f(n()),i="none"!=e.style.display;t&&!i?e.style.display="":!t&&i&&(e.style.display="none")}},C.c.hidden={update:function(e,n){C.c.visible.update(e,(function(){return!C.a.f(n())}))}},function(e){C.c[e]={init:function(n,t,i,a,o){return C.c.event.init.call(this,n,(function(){var n={};return n[e]=t(),n}),i,a,o)}}}("click"),C.ca=function(){},C.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},C.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},C.ca.prototype.makeTemplateSource=function(e,n){if("string"==typeof e){var t=(n=n||c).getElementById(e);if(!t)throw Error("Cannot find template with ID "+e);return new C.C.F(t)}if(1==e.nodeType||8==e.nodeType)return new C.C.ia(e);throw Error("Unknown template type: "+e)},C.ca.prototype.renderTemplate=function(e,n,t,i){return e=this.makeTemplateSource(e,i),this.renderTemplateSource(e,n,t,i)},C.ca.prototype.isTemplateRewritten=function(e,n){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,n).data("isRewritten")},C.ca.prototype.rewriteTemplate=function(e,n,t){n=n((e=this.makeTemplateSource(e,t)).text()),e.text(n),e.data("isRewritten",!0)},C.b("templateEngine",C.ca),C.kc=function(){function e(e,n,t,i){e=C.m.ac(e);for(var a=C.m.Ra,o=0;o]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,t=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,n,t){n.isTemplateRewritten(e,t)||n.rewriteTemplate(e,(function(e){return C.kc.Ld(e,n)}),t)},Ld:function(i,a){return i.replace(n,(function(n,t,i,o,r){return e(r,t,i,a)})).replace(t,(function(n,t){return e(t,"\x3c!-- ko --\x3e","#comment",a)}))},md:function(e,n){return C.aa.Xb((function(t,i){var a=t.nextSibling;a&&a.nodeName.toLowerCase()===n&&C.ib(a,e,i)}))}}}(),C.b("__tr_ambtns",C.kc.md),function(){C.C={},C.C.F=function(e){if(this.F=e){var n=C.a.R(e);this.ab="script"===n?1:"textarea"===n?2:"template"==n&&e.content&&11===e.content.nodeType?3:4}},C.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var n=arguments[0];"innerHTML"===e?C.a.fc(this.F,n):this.F[e]=n};var e=C.a.g.Z()+"_";C.C.F.prototype.data=function(n){if(1===arguments.length)return C.a.g.get(this.F,e+n);C.a.g.set(this.F,e+n,arguments[1])};var n=C.a.g.Z();C.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var t=C.a.g.get(e,n)||{},i=t.lb||(3===this.ab?e.content:4===this.ab?e:r);if(!i||t.jd){var a=this.text();a&&a!==t.bb&&(i=C.a.Md(a,e.ownerDocument),C.a.g.set(e,n,{lb:i,bb:a,jd:!0}))}return i}t=arguments[0],this.ab!==r&&this.text(""),C.a.g.set(e,n,{lb:t})},C.C.ia=function(e){this.F=e},C.C.ia.prototype=new C.C.F,C.C.ia.prototype.constructor=C.C.ia,C.C.ia.prototype.text=function(){if(0==arguments.length){var e=C.a.g.get(this.F,n)||{};return e.bb===r&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}C.a.g.set(this.F,n,{bb:arguments[0]})},C.b("templateSources",C.C),C.b("templateSources.domElement",C.C.F),C.b("templateSources.anonymousTemplate",C.C.ia)}(),function(){function e(e,n,t){var i;for(n=C.h.nextSibling(n);e&&(i=e)!==n;)t(i,e=C.h.nextSibling(i))}function n(n,t){if(n.length){var i=n[0],a=n[n.length-1],o=i.parentNode,r=C.ga.instance,s=r.preprocessNode;if(s){if(e(i,a,(function(e,n){var t=e.previousSibling,o=s.call(r,e);o&&(e===i&&(i=o[0]||n),e===a&&(a=o[o.length-1]||t))})),n.length=0,!i)return;i===a?n.push(i):(n.push(i,a),C.a.Ua(n,o))}e(i,a,(function(e){1!==e.nodeType&&8!==e.nodeType||C.vc(t,e)})),e(i,a,(function(e){1!==e.nodeType&&8!==e.nodeType||C.aa.cd(e,[t])})),C.a.Ua(n,o)}}function t(e){return e.nodeType?e:0C.a.W||!e.nodes?null:e.nodes())?C.a.la(n.cloneNode(!0).childNodes):(e=e.text(),C.a.ua(e,i))},C.ba.Ma=new C.ba,C.gc(C.ba.Ma),C.b("nativeTemplateEngine",C.ba),function(){C.$a=function(){var e=this.Hd=function(){if(!l||!l.tmpl)return 0;try{if(0<=l.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(n,t,i,a){if(a=a||c,i=i||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=n.data("precompiled");return o||(o=n.text()||"",o=l.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),n.data("precompiled",o)),n=[t.$data],t=l.extend({koBindingContext:t},i.templateOptions),(t=l.tmpl(o,n,t)).appendTo(a.createElement("div")),l.fragments={},t},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,n){c.write("