PageSourceSearch

https://www.bny.com/etc.clientlibs/imemea/clientlibs/imemea.one-bn…-6a2da5da41f74b2d53de6610f32cc202-lc.min.js

js bny.com collected 2026-10-09 22:39:37 UTC 14,812 bytes, 35 lines download raw bytes

vendor: 9,088 bytes, lines 1-22
1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
3$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};
4$jscomp.polyfill=function(a,b,c,e){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,e):$jscomp.polyfillUnisolated(a,b,c,e))};$jscomp.polyfillUnisolated=function(a,b,c,e){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];if(!(d in c))return;c=c[d]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
5$jscomp.polyfillIsolated=function(a,b,c,e){var d=a.split(".");a=1===d.length;e=d[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<d.length-1;f++){var h=d[f];if(!(h in e))return;e=e[h]}d=d[d.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?e[d]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,d,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[d]&&($jscomp.propertyToPolyfillSymbol[d]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(d):
6$jscomp.POLYFILL_PREFIX+d),d=$jscomp.propertyToPolyfillSymbol[d],$jscomp.defineProperty(e,d,{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;
7$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.generator={};
8$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
9$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};
10$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};
11$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)};$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};
12$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};
13$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0};
14$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
15$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
16$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
17$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(c){return{value:c,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
18$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
19$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var e=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(e);if(!e.done)return this.context_.stop_(),e;var d=e.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,d);return this.nextStep_()};
20$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
21$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b};
22$jscomp.asyncExecutePromiseGenerator=function(a){function b(e){return a.next(e)}function c(e){return a.throw(e)}return new Promise(function(e,d){function f(h){h.done?e(h.value):Promise.resolve(h.value).then(b,c).then(f,d)}f(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
23var page=document.documentElement,countryDialog=document.getElementById("country-dialog"),countryCloseButton=document.getElementById("country-dialog__close");$(document).ready(function(){var a=document.getElementById("countrySelector");countryDialog&&a.addEventListener("click",openCountryDialog);countryCloseButton&&countryCloseButton.addEventListener("click",closeCountryDialog)});
24function openCountryDialog(){var a=["A","E","I","O","U"],b=document.getElementById("combobox-usertype");null!==b&&(a.includes(b.textContent.at(0))&&"I am based in"===document.getElementById("dropdown1-label").textContent&&(document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].setAttribute("data-i18n-en","and I am an"),document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].innerText="and I am an",document.getElementsByClassName("roleBasedClass")[0].setAttribute("data-i18n-en",
25"I am an"),document.getElementsByClassName("roleBasedClass")[0].innerText="I am an"),a.includes(b.textContent.at(0))||"I am based in"!==document.getElementById("dropdown1-label").textContent||(document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].setAttribute("data-i18n-en","and I am a"),document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].innerText="and I am a",document.getElementsByClassName("roleBasedClass")[0].setAttribute("data-i18n-en",
26"I am a"),document.getElementsByClassName("roleBasedClass")[0].innerText="I am a"));countryDialog.showModal();countryDialog.classList.contains("full-screen")?countryDialog.addEventListener("cancel",function(c){c.preventDefault()}):setTimeout(function(){countryCloseButton.focus()},100)}function closeCountryDialog(a){a.preventDefault();countryDialog.classList.remove("full-screen");countryDialog.close();countryDialog.removeEventListener("cancel",arguments.callee,!1);page.style.overflow="auto"}$(document).ready(consentBasedPopUp);
27function consentBasedPopUp(){populateUserSelections();if("true"===$("#publishRunMode").html()){var a=!1,b=getLocalStorage("consentPath"),c=getLocalStorage("consentPathArray");if(b){window.location.pathname.includes("/outlook")&&(a=!0);var e=window.location.pathname.split(".html")[0];if(b.includes("https://")&&b.includes("/investments/")){var d=b.split("https://");d=new URL("https://"+d[1]);d=d.pathname;var f=d.indexOf("/investments/");-1!==f&&(b=d.substring(f+13),e.includes("/"+b)&&(a=!0))}else e.includes(b)&&
28(a=!0)}if(c&&!a)for(e=window.location.pathname.split(".html")[0],b=0;b<c.split(",").length-1;b++)d=c.split(",")[b],d.includes("https://")&&d.includes("/investments/")?(d=d.split("https://"),d=new URL("https://"+d[1]),d=d.pathname,f=d.indexOf("/investments/"),-1!==f&&(d=d.substring(f+13),e.includes("/"+d)&&(a=!0))):e.includes(d)&&(a=!0);a||(document.getElementById("siteSelectorCountry"),document.getElementById("country-dialog").classList.add("full-screen"),openCountryDialog())}}
29function populateUserSelections(){var a,b,c,e,d,f,h,k;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){switch(g.nextAddress){case 1:if(!$("#country").html()||!$("#role").html()){$("#countrySelector").replaceWith("\x3cspan class\x3d'site-selector__extra' style\x3d'padding-top: 5px;'\x3e\x3c/span\x3e");g.jumpTo(0);break}a=$("#role").html();b=$("#country").html();c=$("#language").html();"hk"==b&&"individual"==a&&(a="individual-or-intermediary");"sg"==b&&("individual"==a&&(a="individual-private"),
30"institutional"==a&&(a="institutional-investor-or-accredited"));return g.yield(fetch("/content/dam/imemea/web/json/countryLanguageAttestation.json"),4);case 4:return g.yield(g.yieldResult.json(),3);case 3:return e=g.yieldResult,d=e[b].metadata.title,f=a,e[b].role[a]&&(f=e[b].role[a].metadata.title),displayRoleTitle=f.trim(),"sg"!=b&&(displayRoleTitle=f.split("Investor")[0].trim()),h="\x3cimg src\x3d'/content/dam/imemea/web/images/flags/"+b+".svg' border\x3d'0' /\x3e",g.yield(fetch("/content/dam/imemea/web/json/translation.json"),
316);case 6:return g.yield(g.yieldResult.json(),5);case 5:k=g.yieldResult,k[d]?d=k[d][c]:console.log("missing key:: "+d),k[displayRoleTitle]?displayRoleTitle=k[displayRoleTitle][c]:console.log("missing key:: "+displayRoleTitle),d="UK"==d?"United Kingdom":d,$("#roleTitle").html(f),$("#siteSelectorCountry").html(h+d),$("#siteSelectorUser").html(displayRoleTitle),g.jumpToEnd()}})}var locaStoreTtl=15552E6;
32function setLocalStorage(a,b){b={value:b,expiry:(new Date).getTime()+locaStoreTtl};localStorage.setItem(a,JSON.stringify(b))}function getLocalStorage(a){var b=new Date;if(a=localStorage.getItem(a))try{var c=JSON.parse(a);return"undefined"!=typeof c.value&&"undefined"!=typeof c.expiry?c.expiry>b.getTime()?c.value:!1:!1}catch(e){return"string"!=typeof a?a:!1}
32else return!1}
33var currentLocation=new URL(window.location),langPath=currentLocation.pathname,lastSlashIndex=langPath.lastIndexOf("/"),lastDotIndex=langPath.lastIndexOf("."),glselected="en";glselected=1<langPath.length?langPath.substring(lastSlashIndex+1,lastDotIndex):"en";var glWrapper=document.getElementById("glwrapper");
34if(glWrapper){var glButton=document.getElementById("glbutton"),glMenu=document.getElementById("glmenu"),glOptions=glMenu.querySelectorAll("li");Array.from(glOptions).forEach(function(a){a.dataset.value===glselected&&(a.firstChild.setAttribute("aria-selected",!0),glButton.firstChild.textContent=a.firstChild.textContent)});glWrapper.addEventListener("mouseenter",function(a){a.target.classList.add("active");glButton.setAttribute("aria-expanded",!0)});glWrapper.addEventListener("mouseleave",function(a){a.target.classList.remove("active");
35glButton.setAttribute("aria-expanded",!1)})};

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.