1const getScript = (source, callback, catchCallBack) => { 2 var script = document.createElement("script"); 3 var prior = document.getElementsByTagName("script")[0]; 4 script.async = 1; 5 script.onload = script.onreadystatechange = (_, isAbort) => { 6 if ( 7 isAbort || 8 !script.readyState || 9 /loaded|complete/.test(script.readyState) 10 ) { 11 script.onload = script.onreadystatechange = null; 12 script = undefined; 13 if (!isAbort) { 14 if (callback) callback(); 15 } 16 } 17 }; 18 19 script.onerror = () => { 20 if (catchCallBack) catchCallBack(); 21 }; 22 23 script.src = source; 24 prior.parentNode.insertBefore(script, prior); 25}; 26 27function fireRecaptchaReady(onReady) { 28 window.recaptchaLoading = false; 29 try { 30 window.dispatchEvent(new CustomEvent("recaptchaReady")); 31 } catch (e) {} 32 if (typeof onReady === "function") onReady(); 33} 34 35function dispatchRecaptchaLoadingStarted() { 36 window.recaptchaLoading = true; 37 try { 38 window.dispatchEvent(new CustomEvent("recaptchaLoadingStarted")); 39 } catch (e) {} 40} 41 42function executeRecaptchaV3() { 43 return new Promise(function (resolve) { 44 if ( 45 !window.grecaptcha || 46 !window.grecaptcha.ready || 47 !window.grecaptcha.execute 48 ) { 49 resolve(""); 50 return; 51 } 52 grecaptcha.ready(function () { 53 window.hasCaptcha = true; 54 grecaptcha 55 .execute("6Lc4v3QUAAAAABuUuxBMRR554lFIefyDJWlEosla", { 56 action: "validate_captcha", 57 }) 58 .then(function (token) { 59 window.captchaToken = token || ""; 60 window.captchaTokenCreatedAt = Date.now(); 61 resolve(window.captchaToken); 62 }) 63 .catch(function () { 64 resolve(""); 65 }); 66 }); 67 }); 68} 69 70function setupRecaptchaV3AutoRefresh() { 71 if (window._recaptchaV3AutoRefreshInit) return; 72 window._recaptchaV3AutoRefreshInit = true; 73 var REFRESH_INTERVAL_MS = 90000; 74 var lastAttemptAt = 0; 75 window._recaptchaV3RefreshPromise = null; 76 77 window.refreshRecaptchaToken = function (force) { 78 var now = Date.now(); 79 if (window._recaptchaV3RefreshPromise) { 80 return window._recaptchaV3RefreshPromise; 81 } 82 if (!force && now - lastAttemptAt < 10000) { 83 return Promise.resolve(window.captchaToken || ""); 84 } 85 lastAttemptAt = now; 86 dispatchRecaptchaLoadingStarted(); 87 window._recaptchaV3RefreshPromise = executeRecaptchaV3() 88 .then(function (token) { 89 fireRecaptchaReady(); 90 return token || ""; 91 }) 92 .catch(function () { 93 fireRecaptchaReady(); 94 return ""; 95 }) 96 .finally(function () { 97 window._recaptchaV3RefreshPromise = null; 98 }); 99 return window._recaptchaV3RefreshPromise; 100 }; 101 102 setInterval(function () { 103 if (document.visibilityState === "visible") { 104 window.refreshRecaptchaToken(false); 105 } 106 }, REFRESH_INTERVAL_MS); 107 108 document.addEventListener("visibilitychange", function () { 109 if (document.visibilityState === "visible") { 110 window.refreshRecaptchaToken(false); 111 } 112 }); 113 114 window.addEventListener("focus", function () { 115 window.refreshRecaptchaToken(false); 116 }); 117} 118 119function showRecaptcha(element, callback, onReady) { 120 var recaptchaVersion = 0 + 2 +0; 121 window.recaptchaEnabled = true; 122 window.recaptchaVersion = recaptchaVersion; 123 if (recaptchaVersion) { 124 dispatchRecaptchaLoadingStarted(); 125 } 126 if (recaptchaVersion == 3) { 127 getScript( 128 "https://www.recaptcha.net/recaptcha/api.js?render=6Lc4v3QUAAAAABuUuxBMRR554lFIefyDJWlEosla", 129 function () { 130 if (typeof window.grecaptcha === "undefined") { 131 fireRecaptchaReady(onReady); 132 return; 133 } 134 setupRecaptchaV3AutoRefresh(); 135 window 136 .refreshRecaptchaToken(true) 137 .then(function () { 138 fireRecaptchaReady(onReady); 139 }) 140 .catch(function () { 141 fireRecaptchaReady(onReady); 142 }); 143 }, 144 function () { 145 fireRecaptchaReady(onReady); 146 } 147 ); 148 } else if (recaptchaVersion) { 149 getScript( 150 "https://www.recaptcha.net/recaptcha/api.js", 151 function () { 152 if (window.grecaptcha) { 153 grecaptcha.ready(function () { 154 callback = callback || function () {}; 155 var captchaCallback = function (token) { 156 window.captchaToken = token || ""; 157 window.captchaTokenCreatedAt = Date.now(); 158 callback(token); 159 }; 160 window.grecaptcha.render(element, { 161 sitekey: "6Lc4v3QUAAAAABuUuxBMRR554lFIefyDJWlEosla", 162 callback: captchaCallback, 163 "expired-callback": function () { 164 window.captchaToken = ""; 165 window.captchaTokenCreatedAt = 0; 166 }, 167 "error-callback": function () { 168 window.captchaToken = ""; 169 window.captchaTokenCreatedAt = 0; 170 }, 171 }); 172 window.hasCaptcha = true; 173 fireRecaptchaReady(onReady); 174 }); 175 } else { 176 fireRecaptchaReady(onReady); 177 } 178 }, 179 function () { 180 fireRecaptchaReady(onReady); 181 } 182 ); 183 } else { 184 fireRecaptchaReady(onReady); 185 } 186} 187 188window.onload = function () { 189 showRecaptcha('recaptcha_div'); 190}; 191 192// Make functions globally available 193window.getScript = getScript; 194window.showRecaptcha = showRecaptcha; 195if (typeof passwordRule === "undefined") { 196 var passwordRule = {random_password_length:15,min_password_length:12,min_password_numbers:3,min_password_lowers:3,min_password_uppers:1,min_password_specials:2,unsafe_password_chars:'%/:\\'}; 197} 198window.passwordRule = passwordRule; 199 200window.customizations = { 201 login_page_default_theme: 'light', 202 login_page_column_style: 'double', 203 login_page_show_language_selection: 'true', 204 login_page_default_language: 'en', 205 login_page_languages_to_show: '', 206 login_page_save_languages_selection: 'true', 207 login_page_disable_cookie_policy: 'false', 208 login_page_privacy_policy_link: '', 209 login_page_autocomplete_off: 'false', 210 login_page_hide_email_password: 'false', 211 login_page_email_reset_token: 'true', 212 login_page_hide_login_inputs: 'false',
213 login_page_secondary_login_via_email: 'false' 214 }; 215 216//##GSIGNIN_SCRIPT## 217//##MSSIGNIN_SCRIPT## 218//##AZURE_B2C_SINGIN_SCRIPT## 219//##AMAZON_COGNITO_SINGIN_SCRIPT## 220//##SAML_SIGNIN_SCRIPT## 221//##OIDC_SIGNIN_SCRIPT## 222//##COVERIMAGEPATH## 223
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.