@elliemae/ssf-guest 2.19.0 → 2.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Credit Service</title><style>body{margin:0}</style><script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script><script>window.addEventListener("DOMContentLoaded",async()=>{window.__ICE__={diagnosticsUrl:"https://int.api.ellielabs.com/diagnostics/v2/logging"};const e=new URL(window.location),i=e?.searchParams?.get?.("src");window.__ICE__.ssfGuest=new ice.guest.SSFGuest({logger:{index:"creditServiceGuest",team:"ui platform",appName:"credit-service"}}),await window.__ICE__.ssfGuest.addScript(i,document.body)})</script><script defer="defer" src="js/emuiSsfGuest.bb29d41c0e22d4dc6455.js"></script></head><body></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Credit Service</title><style>body{margin:0}</style><script src="https://cdn.qa1.ice.com/pui-diagnostics@3"></script><script>window.addEventListener("DOMContentLoaded",async()=>{window.__ICE__={diagnosticsUrl:"https://int.api.ellielabs.com/diagnostics/v2/logging"};const e=new URL(window.location),i=e?.searchParams?.get?.("src");window.__ICE__.ssfGuest=new ice.guest.SSFGuest({logger:{index:"creditServiceGuest",team:"ui platform",appName:"credit-service"}}),await window.__ICE__.ssfGuest.addScript(i,document.body)})</script><script defer="defer" src="js/emuiSsfGuest.4e036e212e638f408fc6.js"></script></head><body></body></html>
@@ -1 +1 @@
1
- <!doctype html><html lang="en" style="height:100%"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Plugin</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiSsfGuest.bb29d41c0e22d4dc6455.js"></script></head><body class="px-2 h-full"><main class="h-full"><h1 class="text-md font-bold">Credit Score Service</h1><div class="h-full mt-2"><output id="msg" class="mt-2 p-2"></output></div></main></body></html>
1
+ <!doctype html><html lang="en" style="height:100%"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Plugin</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiSsfGuest.4e036e212e638f408fc6.js"></script></head><body class="px-2 h-full"><main class="h-full"><h1 class="text-md font-bold">Credit Score Service</h1><div class="h-full mt-2"><output id="msg" class="mt-2 p-2"></output></div></main></body></html>
@@ -24,6 +24,6 @@ __p += '`),D&&(m+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+m+`return __p
27
- }`;var P=yo(function(){return M(s,E+"return "+m).apply(f,o)});if(P.source=m,Ui(P))throw P;return P}function pd(n){return G(n).toLowerCase()}function vd(n){return G(n).toUpperCase()}function _d(n,e,t){if(n=G(n),n&&(t||e===f))return Tu(n);if(!n||!(e=An(e)))return n;var r=Nn(n),i=Nn(e),s=Cu(r,i),o=Pu(r,i)+1;return xe(r,s,o).join("")}function wd(n,e,t){if(n=G(n),n&&(t||e===f))return n.slice(0,Uu(n)+1);if(!n||!(e=An(e)))return n;var r=Nn(n),i=Pu(r,Nn(e))+1;return xe(r,0,i).join("")}function md(n,e,t){if(n=G(n),n&&(t||e===f))return n.replace(Fr,"");if(!n||!(e=An(e)))return n;var r=Nn(n),i=Cu(r,Nn(e));return xe(r,i).join("")}function bd(n,e){var t=et,r=yt;if(Z(e)){var i="separator"in e?e.separator:i;t="length"in e?C(e.length):t,r="omission"in e?An(e.omission):r}n=G(n);var s=n.length;if(qe(n)){var o=Nn(n);s=o.length}if(t>=s)return n;var l=t-He(r);if(l<1)return r;var h=o?xe(o,0,l).join(""):n.slice(0,l);if(i===f)return h+r;if(o&&(l+=h.length-l),Fi(i)){if(n.slice(l).search(i)){var v,_=h;for(i.global||(i=Qr(i.source,G(Qi.exec(i))+"g")),i.lastIndex=0;v=i.exec(_);)var m=v.index;h=h.slice(0,m===f?l:m)}}else if(n.indexOf(An(i),l)!=l){var x=h.lastIndexOf(i);x>-1&&(h=h.slice(0,x))}return h+r}function xd(n){return n=G(n),n&&Co.test(n)?n.replace(ki,Jf):n}var yd=Xe(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Mi=ys("toUpperCase");function xo(n,e,t){return n=G(n),e=t?f:e,e===f?zf(n)?jf(n):Bf(n):n.match(e)||[]}var yo=W(function(n,e){try{return xn(n,f,e)}catch(t){return Ui(t)?t:new R(t)}}),Ad=ie(function(n,e){return Cn(e,function(t){t=Xn(t),te(n,t,Pi(n[t],n))}),n});function Ed(n){var e=n==null?0:n.length,t=I();return n=e?Y(n,function(r){if(typeof r[1]!="function")throw new Pn(mn);return[t(r[0]),r[1]]}):[],W(function(r){for(var i=-1;++i<e;){var s=n[i];if(xn(s[0],this,r))return xn(s[1],this,r)}})}function Id(n){return Jl(Un(n,Mn))}function Gi(n){return function(){return n}}function Sd(n,e){return n==null||n!==n?e:n}var Ld=Es(),Od=Es(!0);function wn(n){return n}function $i(n){return ns(typeof n=="function"?n:Un(n,Mn))}function Rd(n){return ts(Un(n,Mn))}function Td(n,e){return rs(n,Un(e,Mn))}var Cd=W(function(n,e){return function(t){return pt(t,n,e)}}),Pd=W(function(n,e){return function(t){return pt(n,t,e)}});function Ni(n,e,t){var r=un(e),i=Qt(e,r);t==null&&!(Z(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=Qt(e,un(e)));var s=!(Z(t)&&"chain"in t)||!!t.chain,o=se(n);return Cn(i,function(l){var h=e[l];n[l]=h,o&&(n.prototype[l]=function(){var v=this.__chain__;if(s||v){var _=n(this.__wrapped__),m=_.__actions__=pn(this.__actions__);return m.push({func:h,args:arguments,thisArg:n}),_.__chain__=v,_}return h.apply(n,pe([this.value()],arguments))})}),n}function Wd(){return fn._===this&&(fn._=ul),this}function qi(){}function Ud(n){return n=C(n),W(function(e){return is(e,n)})}var Fd=mi(Y),Bd=mi(Iu),Dd=mi(Kr);function Ao(n){return Si(n)?zr(Xn(n)):gc(n)}function Md(n){return function(e){return n==null?f:Te(n,e)}}var Gd=Ss(),$d=Ss(!0);function Hi(){return[]}function Ki(){return!1}function Nd(){return{}}function qd(){return""}function Hd(){return!0}function Kd(n,e){if(n=C(n),n<1||n>Yn)return[];var t=bn,r=cn(n,bn);e=I(e),n-=bn;for(var i=kr(r,e);++t<n;)e(t);return i}function zd(n){return T(n)?Y(n,Xn):En(n)?[n]:pn(qs(G(n)))}function Yd(n){var e=++rl;return G(n)+e}var Zd=rr(function(n,e){return n+e},0),kd=bi("ceil"),Xd=rr(function(n,e){return n/e},1),Jd=bi("floor");function Qd(n){return n&&n.length?Jt(n,wn,ui):f}function Vd(n,e){return n&&n.length?Jt(n,I(e,2),ui):f}function jd(n){return Ou(n,wn)}function np(n,e){return Ou(n,I(e,2))}function ep(n){return n&&n.length?Jt(n,wn,li):f}function tp(n,e){return n&&n.length?Jt(n,I(e,2),li):f}var rp=rr(function(n,e){return n*e},1),ip=bi("round"),up=rr(function(n,e){return n-e},0);function sp(n){return n&&n.length?Zr(n,wn):0}function op(n,e){return n&&n.length?Zr(n,I(e,2)):0}return u.after=Rh,u.ary=js,u.assign=vg,u.assignIn=go,u.assignInWith=vr,u.assignWith=_g,u.at=wg,u.before=no,u.bind=Pi,u.bindAll=Ad,u.bindKey=eo,u.castArray=Nh,u.chain=Js,u.chunk=Jc,u.compact=Qc,u.concat=Vc,u.cond=Ed,u.conforms=Id,u.constant=Gi,u.countBy=sh,u.create=mg,u.curry=to,u.curryRight=ro,u.debounce=io,u.defaults=bg,u.defaultsDeep=xg,u.defer=Th,u.delay=Ch,u.difference=jc,u.differenceBy=na,u.differenceWith=ea,u.drop=ta,u.dropRight=ra,u.dropRightWhile=ia,u.dropWhile=ua,u.fill=sa,u.filter=fh,u.flatMap=ah,u.flatMapDeep=hh,u.flatMapDepth=gh,u.flatten=Ys,u.flattenDeep=oa,u.flattenDepth=fa,u.flip=Ph,u.flow=Ld,u.flowRight=Od,u.fromPairs=la,u.functions=Og,u.functionsIn=Rg,u.groupBy=dh,u.initial=aa,u.intersection=ha,u.intersectionBy=ga,u.intersectionWith=da,u.invert=Cg,u.invertBy=Pg,u.invokeMap=vh,u.iteratee=$i,u.keyBy=_h,u.keys=un,u.keysIn=_n,u.map=cr,u.mapKeys=Ug,u.mapValues=Fg,u.matches=Rd,u.matchesProperty=Td,u.memoize=hr,u.merge=Bg,u.mergeWith=po,u.method=Cd,u.methodOf=Pd,u.mixin=Ni,u.negate=gr,u.nthArg=Ud,u.omit=Dg,u.omitBy=Mg,u.once=Wh,u.orderBy=wh,u.over=Fd,u.overArgs=Uh,u.overEvery=Bd,u.overSome=Dd,u.partial=Wi,u.partialRight=uo,u.partition=mh,u.pick=Gg,u.pickBy=vo,u.property=Ao,u.propertyOf=Md,u.pull=wa,u.pullAll=ks,u.pullAllBy=ma,u.pullAllWith=ba,u.pullAt=xa,u.range=Gd,u.rangeRight=$d,u.rearg=Fh,u.reject=yh,u.remove=ya,u.rest=Bh,u.reverse=Ti,u.sampleSize=Eh,u.set=Ng,u.setWith=qg,u.shuffle=Ih,u.slice=Aa,u.sortBy=Oh,u.sortedUniq=Ta,u.sortedUniqBy=Ca,u.split=ad,u.spread=Dh,u.tail=Pa,u.take=Wa,u.takeRight=Ua,u.takeRightWhile=Fa,u.takeWhile=Ba,u.tap=Qa,u.throttle=Mh,u.thru=lr,u.toArray=co,u.toPairs=_o,u.toPairsIn=wo,u.toPath=zd,u.toPlainObject=ho,u.transform=Hg,u.unary=Gh,u.union=Da,u.unionBy=Ma,u.unionWith=Ga,u.uniq=$a,u.uniqBy=Na,u.uniqWith=qa,u.unset=Kg,u.unzip=Ci,u.unzipWith=Xs,u.update=zg,u.updateWith=Yg,u.values=Ve,u.valuesIn=Zg,u.without=Ha,u.words=xo,u.wrap=$h,u.xor=Ka,u.xorBy=za,u.xorWith=Ya,u.zip=Za,u.zipObject=ka,u.zipObjectDeep=Xa,u.zipWith=Ja,u.entries=_o,u.entriesIn=wo,u.extend=go,u.extendWith=vr,Ni(u,u),u.add=Zd,u.attempt=yo,u.camelCase=Qg,u.capitalize=mo,u.ceil=kd,u.clamp=kg,u.clone=qh,u.cloneDeep=Kh,u.cloneDeepWith=zh,u.cloneWith=Hh,u.conformsTo=Yh,u.deburr=bo,u.defaultTo=Sd,u.divide=Xd,u.endsWith=Vg,u.eq=Hn,u.escape=jg,u.escapeRegExp=nd,u.every=oh,u.find=lh,u.findIndex=Ks,u.findKey=yg,u.findLast=ch,u.findLastIndex=zs,u.findLastKey=Ag,u.floor=Jd,u.forEach=Qs,u.forEachRight=Vs,u.forIn=Eg,u.forInRight=Ig,u.forOwn=Sg,u.forOwnRight=Lg,u.get=Bi,u.gt=Zh,u.gte=kh,u.has=Tg,u.hasIn=Di,u.head=Zs,u.identity=wn,u.includes=ph,u.indexOf=ca,u.inRange=Xg,u.invoke=Wg,u.isArguments=We,u.isArray=T,u.isArrayBuffer=Xh,u.isArrayLike=vn,u.isArrayLikeObject=J,u.isBoolean=Jh,u.isBuffer=ye,u.isDate=Qh,u.isElement=Vh,u.isEmpty=jh,u.isEqual=ng,u.isEqualWith=eg,u.isError=Ui,u.isFinite=tg,u.isFunction=se,u.isInteger=so,u.isLength=dr,u.isMap=oo,u.isMatch=rg,u.isMatchWith=ig,u.isNaN=ug,u.isNative=sg,u.isNil=fg,u.isNull=og,u.isNumber=fo,u.isObject=Z,u.isObjectLike=X,u.isPlainObject=xt,u.isRegExp=Fi,u.isSafeInteger=lg,u.isSet=lo,u.isString=pr,u.isSymbol=En,u.isTypedArray=Qe,u.isUndefined=cg,u.isWeakMap=ag,u.isWeakSet=hg,u.join=pa,u.kebabCase=ed,u.last=Bn,u.lastIndexOf=va,u.lowerCase=td,u.lowerFirst=rd,u.lt=gg,u.lte=dg,u.max=Qd,u.maxBy=Vd,u.mean=jd,u.meanBy=np,u.min=ep,u.minBy=tp,u.stubArray=Hi,u.stubFalse=Ki,u.stubObject=Nd,u.stubString=qd,u.stubTrue=Hd,u.multiply=rp,u.nth=_a,u.noConflict=Wd,u.noop=qi,u.now=ar,u.pad=id,u.padEnd=ud,u.padStart=sd,u.parseInt=od,u.random=Jg,u.reduce=bh,u.reduceRight=xh,u.repeat=fd,u.replace=ld,u.result=$g,u.round=ip,u.runInContext=a,u.sample=Ah,u.size=Sh,u.snakeCase=cd,u.some=Lh,u.sortedIndex=Ea,u.sortedIndexBy=Ia,u.sortedIndexOf=Sa,u.sortedLastIndex=La,u.sortedLastIndexBy=Oa,u.sortedLastIndexOf=Ra,u.startCase=hd,u.startsWith=gd,u.subtract=up,u.sum=sp,u.sumBy=op,u.template=dd,u.times=Kd,u.toFinite=oe,u.toInteger=C,u.toLength=ao,u.toLower=pd,u.toNumber=Dn,u.toSafeInteger=pg,u.toString=G,u.toUpper=vd,u.trim=_d,u.trimEnd=wd,u.trimStart=md,u.truncate=bd,u.unescape=xd,u.uniqueId=Yd,u.upperCase=yd,u.upperFirst=Mi,u.each=Qs,u.eachRight=Vs,u.first=Zs,Ni(u,function(){var n={};return Zn(u,function(e,t){N.call(u.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),u.VERSION=j,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),Cn(["drop","take"],function(n,e){B.prototype[n]=function(t){t=t===f?1:en(C(t),0);var r=this.__filtered__&&!e?new B(this):this.clone();return r.__filtered__?r.__takeCount__=cn(t,r.__takeCount__):r.__views__.push({size:cn(t,bn),type:n+(r.__dir__<0?"Right":"")}),r},B.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Cn(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==At||t==Ar;B.prototype[n]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:I(i,3),type:t}),s.__filtered__=s.__filtered__||r,s}}),Cn(["head","last"],function(n,e){var t="take"+(e?"Right":"");B.prototype[n]=function(){return this[t](1).value()[0]}}),Cn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");B.prototype[n]=function(){return this.__filtered__?new B(this):this[t](1)}}),B.prototype.compact=function(){return this.filter(wn)},B.prototype.find=function(n){return this.filter(n).head()},B.prototype.findLast=function(n){return this.reverse().find(n)},B.prototype.invokeMap=W(function(n,e){return typeof n=="function"?new B(this):this.map(function(t){return pt(t,n,e)})}),B.prototype.reject=function(n){return this.filter(gr(I(n)))},B.prototype.slice=function(n,e){n=C(n);var t=this;return t.__filtered__&&(n>0||e<0)?new B(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=C(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},B.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},B.prototype.toArray=function(){return this.take(bn)},Zn(B.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var o=this.__wrapped__,l=r?[1]:arguments,h=o instanceof B,v=l[0],_=h||T(o),m=function(U){var D=i.apply(u,pe([U],l));return r&&x?D[0]:D};_&&t&&typeof v=="function"&&v.length!=1&&(h=_=!1);var x=this.__chain__,E=!!this.__actions__.length,S=s&&!x,P=h&&!E;if(!s&&_){o=P?o:new B(this);var L=n.apply(o,l);return L.__actions__.push({func:lr,args:[m],thisArg:f}),new Wn(L,x)}return S&&P?n.apply(this,l):(L=this.thru(m),S?r?L.value()[0]:L.value():L)})}),Cn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ft[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(T(s)?s:[],i)}return this[t](function(o){return e.apply(T(o)?o:[],i)})}}),Zn(B.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";N.call(Ye,r)||(Ye[r]=[]),Ye[r].push({name:e,func:t})}}),Ye[tr(f,Qn).name]=[{name:"wrapper",func:f}],B.prototype.clone=xl,B.prototype.reverse=yl,B.prototype.value=Al,u.prototype.at=Va,u.prototype.chain=ja,u.prototype.commit=nh,u.prototype.next=eh,u.prototype.plant=rh,u.prototype.reverse=ih,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=uh,u.prototype.first=u.prototype.head,ft&&(u.prototype[ft]=th),u},Ut=nl();fn._=Ut,je=function(){return Ut}.call(sn,k,sn,$),je!==f&&($.exports=je)}).call(this)}},Ae={};function Ln($){var sn=Ae[$];if(sn!==void 0)return sn.exports;var k=Ae[$]={id:$,loaded:!1,exports:{}};return Ue[$].call(k.exports,k,k.exports,Ln),k.loaded=!0,k.exports}Ln.d=($,sn)=>{for(var k in sn)Ln.o(sn,k)&&!Ln.o($,k)&&Object.defineProperty($,k,{enumerable:!0,get:sn[k]})},Ln.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Ln.o=($,sn)=>Object.prototype.hasOwnProperty.call($,sn),Ln.r=$=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),Object.defineProperty($,"__esModule",{value:!0})},Ln.nmd=$=>($.paths=[],$.children||($.children=[]),$);var _r={};return(()=>{"use strict";Ln.r(_r),Ln.d(_r,{SSFGuest:()=>ge});const sn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let k;const je=new Uint8Array(16);function f(){if(!k&&(k=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!k))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(je)}const j=[];for(let b=0;b<256;++b)j.push((b+256).toString(16).slice(1));function Fe(b,c=0){return j[b[c+0]]+j[b[c+1]]+j[b[c+2]]+j[b[c+3]]+"-"+j[b[c+4]]+j[b[c+5]]+"-"+j[b[c+6]]+j[b[c+7]]+"-"+j[b[c+8]]+j[b[c+9]]+"-"+j[b[c+10]]+j[b[c+11]]+j[b[c+12]]+j[b[c+13]]+j[b[c+14]]+j[b[c+15]]}function Yi(b,c=0){const p=Fe(b,c);if(!validate(p))throw TypeError("Stringified UUID is invalid");return p}const mn=null;function wr(b,c,p){if(sn.randomUUID&&!c&&!b)return sn.randomUUID();b=b||{};const w=b.random||(b.rng||f)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,c){p=p||0;for(let y=0;y<16;++y)c[p+y]=w[y];return c}return Fe(w)}const le=wr;var mr=Ln(918);const Ee="elli:remoting",Mn="elli:remoting:response",nt="elli:remoting:exception",On=({messageType:b,messageBody:c,onewayMsg:p=!1})=>({requestId:p?null:le(),source:Ee,type:b,body:c}),Jn=b=>{const{targetWin:c,targetOrigin:p,messageType:w,messageBody:y}=b,O=On({messageType:w,messageBody:y});c.postMessage(O,p)};class Be{#i;#n;#e=new Map;#s=new Map;#o=null;#t=new Map;constructor(c,p){if(!c)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#i=p,this.#n=c}#l=()=>{const c=Date.now(),p=[];this.#s.forEach((w,y)=>{const{requestId:O,cancelTime:F}=w;this.#n.debug(`Checking response timeout for requestId: ${O}) @ ${F??""}`),w.cancelTime&&w.cancelTime<c&&(this.#n.debug(`Detected response timeout for requestId: ${O}...`),p.push(y),w.resolve(),this.#n.debug(`Aborted waiting for response to requestid: ${O})`))}),p.forEach(w=>{this.#n.debug(`removing invocations with requestId ${w} from cache since response time has expired`),this.#s.delete(w)}),this.#s.size===0&&(this.#n.debug("stopping response monitor"),this.#d())};#g=()=>{this.#o===null&&(this.#n.debug("Staring response timeout evaluator"),this.#o=window.setInterval(this.#l,200))};#d=()=>{this.#o!==null&&(window.clearInterval(this.#o),this.#o=null,this.#n.debug("Stopped response timeout evaluator"))};#a=c=>{const p=this.#s.get(c);return this.#n.debug(`serving requestId: ${c}`),this.#s.delete(c),p};#f=c=>{const{requestId:p}=c;this.#n.debug(`Response received for invocation requestId: ${p}`);const w=this.#a(p);return w?(w.resolve(c.body),!0):(this.#n.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#u=c=>{this.#n.debug(`Exception received for invocation (requestId = ${c.requestId})`);const p=this.#a(c.requestId);return p?(p.reject(new Error(c.body)),!0):(this.#n.warn(`Received exception for stale/invalid request (requestId = ${c.requestId})`),!1)};#v=({sourceWin:c,sourceOrigin:p,message:w})=>{this.#n.debug(`Received message of type "${w.type}"`);const y=this.#e.get(w.type);return y?(y.forEach(O=>{this.#n.debug(`Invoking message handler ${O.name}`),O({sourceWin:c,sourceOrigin:p,requestId:w.requestId,type:w.type,body:w.body})}),!0):!1};#r=c=>{if(this.#n.debug(`Remoting: Received message ${JSON.stringify(c.data)}`),this.#t.size===0||!c.source)return!1;const p=this.#t.get(c.source);return!p||c?.data?.source!==Ee?!1:(c.data.type===Mn?this.#f(c.data):c.data.type===nt?this.#u(c.data):this.#v({sourceWin:c.source,sourceOrigin:p,message:c.data}),!0)};addSender=c=>{const{origin:p,window:w}=c;if(!p)throw new Error("origin is required");if(!w)throw new Error("window is required");this.#t.set(w,p)};initialize=c=>{c.removeEventListener("message",this.#r),c.addEventListener("message",this.#r),this.#n.debug(`initialized remoting id: ${this.#i}`)};close=()=>{window.removeEventListener("message",this.#r),this.#n.debug(`closed remoting id: ${this.#i}`)};invoke=c=>{const{targetWin:p,targetOrigin:w,messageType:y,messageBody:O,responseTimeoutMs:F}=c;return new Promise((tn,V)=>{const rn=On({messageType:y,messageBody:O});this.#s.set(rn.requestId,{requestId:rn.requestId,resolve:tn,reject:V,cancelTime:F?Date.now()+Number.parseInt(F,10):null}),p.postMessage(rn,w);const{requestId:Vn}=rn;this.#n.debug(`Posted invocation message of type ${y} requestId: ${Vn||""}`),F&&(this.#n.debug(`starting response monitor for requestId: ${Vn||""} for ${F} ms`),this.#g())})};listen=c=>{const{messageType:p,callback:w}=c,y=this.#e.get(p)||[];y.push(w),this.#e.set(p,y)};send=c=>{const{targetWin:p,targetOrigin:w,messageType:y,messageBody:O}=c,F=On({messageType:y,messageBody:O,onewayMsg:!0});p.postMessage(F,w),this.#n.debug(`Posted one-way message of type "${y}"`)};removeSender=c=>{const{window:p}=c;p&&this.#t.delete(p)};respond=c=>{const{targetWin:p,targetOrigin:w,requestId:y,response:O}=c,F=On({messageType:Mn,messageBody:O});F.requestId=y,p.postMessage(F,w),this.#n.debug(`Response sent to caller for invocation requestId: ${y}`)};raiseException=c=>{const{targetWin:p,targetOrigin:w,requestId:y,ex:O}=c,F=On({messageType:nt,messageBody:O});F.requestId=y,p.postMessage(F,w),this.#n.debug(`Exception sent to caller for invocation. requestId: ${y}`)}}var H=(b=>(b.GuestClose="guest:close",b.GuestFocus="guest:focus",b.GuestReady="guest:ready",b.GuestReadyComplete="guest:readyComplete",b.GuestResize="guest:resize",b.HandShake="handshake",b.HandShakeAck="handshake:ack",b.HostClose="host:close",b.HostConfig="host:config",b.ListObjects="list:objects",b.ObjectEvent="object:event",b.ObjectGet="object:get",b.ObjectInvoke="object:invoke",b))(H||{});class Qn{__TYPE__="Proxy";id;objectType;constructor(c,p){this.id=c,this.objectType=p}}const br=b=>b?.constructor?.name==="Proxy"||b?.constructor?.name==="ScriptingObjectProxy"||b?.__TYPE__==="Proxy";class Rn{name;objectId;id;constructor(c){const{name:p,objectId:w}=c;if(!p)throw new Error("Event name is required");if(!w)throw new Error("Scripting object id is required");this.objectId=w,this.name=p,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class ce{static[Symbol.hasInstance](c){return c.getType?.()==="ProxyEvent"}#i;objectId;name;id;getType(){return"ProxyEvent"}constructor(c){const{name:p,objectId:w,eventSrc:y}=c;this.objectId=w,this.name=p,this.#i=y,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=c=>this.#i.subscribe({eventId:this.id,callback:c});unsubscribe=c=>{this.#i.unsubscribe({eventId:this.id,token:c})}}const Gn=b=>b instanceof Rn,ae=(b,c)=>`${b.toLowerCase()}.${c.toLowerCase()}`;var on=Ln(388);const he=()=>{const{parent:b}=window;try{return b?.location?.href}catch{return null}},De=b=>{if(!b||b==="about:blank")return"*";try{const{origin:c}=new URL(b);return c==="null"||!c?b:c}catch{const{origin:p}=new URL(b,document.baseURI);return p}},et=()=>window.self!==window.parent,yt=(b,c)=>{const p=c||document.body,w=document.defaultView?.getComputedStyle?.(p,null),y=w?w[b]:"0";return parseInt(y,10)},xr=new RegExp("^https?://(.*.elliemae.io|.*.ellielabs.com|.*.ellieservices.com|.*.encompassloconnect.com|.*.ice.com|localhost:[0-9]+)","i"),yr="elli:remoting",At=()=>new Promise(b=>{if(et())b({origin:De(document.referrer||he()),window:window.parent});else{const c=window,p=w=>{if(xr.test(w.origin)){const{source:y,type:O}=w.data||{};if(y===yr&&O===H.HandShake){const{origin:F}=w,tn=w.source;Jn({targetWin:tn,targetOrigin:F,messageType:H.HandShakeAck,messageBody:{}}),c.removeEventListener("message",p),b({origin:F,window:tn})}}};c.addEventListener("message",p)}});let Ie=!1;const Ar=b=>{Ie=b},zn=(b=null)=>{let c=b;const p=()=>{if(!c&&(c=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!c))throw new Error("Guest definition not found");return c};window.elli=window.elli??{},window.elli.script={guest:{create:async(w,y)=>p().addScript(w,y)},connect:async w=>p().connect(w),getObject:async w=>p().getObject(w),setLogLevel:w=>p().setLogLevel(w),subscribe:(w,y,O)=>p().subscribe({eventId:`${w}.${y}`,callback:F=>O(F?.obj,F?.eventParams,F?.eventOptions)}),unsubscribe:(w,y,O)=>p().unsubscribe({eventId:`${w}.${y}`,token:O})}};zn();var Yn=(b=>(b.OBJECT="object",b.VALUE="value",b))(Yn||{});const Et=12e4,Me={eventFeedback:!0},bn=()=>{const{document:b}=window,c=b.body,p=b.documentElement,y={height:c.offsetHeight+yt("marginTop")+yt("marginBottom"),width:Math.max(c.scrollWidth,p.scrollWidth)};Jn({targetWin:window.parent,targetOrigin:De(b.referrer||he()),messageType:H.GuestResize,messageBody:y}),window.removeEventListener("load",bn)};et()&&window.addEventListener("load",bn);const It={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},St=["click","scroll","keypress","touchstart"],Er=()=>{const b=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_pui-microfe_master/209/libs/ssf-guest/lib/guest.ts",c=b?new URL(b).hostname:"localhost";return It[c]||It["cdn.qa1.ice.com"]};class ge{#i;#n;#e;#s=!1;#o=null;#t=!1;#l=new Map;#g=null;#d=null;#a=null;#f=null;#u=null;#v=!1;#r=null;#h=null;#p=null;#b=!0;#x=Et;#w;#_=null;constructor(c){const{console:p=!1,url:w=window.__ICE__?.diagnosticsUrl||Er(),index:y="ssf-guest-v2",team:O="ICE",appName:F="SSF Guest V2 Application"}=c?.logger??{};this.#w=c?.logger,this.#v=c?.usesDevConnectAPI??!1,this.#b=c?.keepAlive??!0,this.#x=c?.keepAliveInterval??Et;const tn=p?(0,on.Console)():(0,on.http)(w);this.#n=c?.appLogger??(0,on.logger)({transport:tn,index:y,team:O,appName:F}),(0,on.webvitals)(this.#n),(0,on.logUnhandledErrors)(this.#n),this.#i=le(),this.#e=new Be(this.#n,this.#i),zn(this),this.#n.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#i})}#c=()=>({guestId:this.#g,guestTitle:this.#d,guestUrl:this.#a});#m=c=>{if(!c||!c.objectId)throw this.#n.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const p=new Qn(c.objectId,c.objectType);return c.functions&&c.functions.forEach(w=>{Object.defineProperty(p,w,{value:async(...y)=>this.#y({objectId:p.id,functionName:w,functionParams:[].slice.call(y)}),enumerable:!0})}),c.events&&c.events.forEach(w=>{Object.defineProperty(p,w,{value:new ce({objectId:p.id,name:w,eventSrc:this}),enumerable:!0})}),this.#n.debug(`Created guest proxy for scripting object (id = "${p.id}")`),p};#y=async({objectId:c,functionName:p,functionParams:w})=>{this.#n.debug(`Invoking scripting object method ${c}.${p}()...`);const y=[];if(w)for(let tn=0;tn<w.length;tn+=1){const V=w[tn];V instanceof Promise&&y.push(V.then(rn=>{w[tn]=rn}))}await Promise.all(y);const O=await this.#e.invoke({targetWin:this.#u,targetOrigin:this.#f,messageType:H.ObjectInvoke,messageBody:{objectId:c,functionName:p,functionParams:w}}),F=this.#A(O);return this.#n.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:c,scriptingMethod:p,...this.#c()}),F};#A=c=>c?.type==="object"&&"object"in c?this.#m(c.object):c?.type==="value"?c.value:c;#E=({body:c})=>{c?.logLevel&&(this.#n.setLogLevel(c.logLevel),this.#n.debug(`Log level changed by host to ${c.logLevel}`)),this.#g=c?.guestId??null,this.#d=c?.guestTitle??null,this.#a=c?.guestUrl??null,this.#n.audit({message:"Received configuration from Host",...this.#c()})};#I=()=>{window.focus()};#S=async()=>{await this.close(),window.close()};#L=()=>{et()||setInterval(()=>{this.#u?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#O=async({sourceWin:c,sourceOrigin:p,requestId:w,body:y})=>{const O=this.#m(y.object);if(O){const F=ae(O.id,y.eventName);this.#n.debug(`Received event "${F}" from host`);let tn;y.eventHandler?tn=[{callback:window[y.eventHandler],token:le()}]:tn=this.#l.get(F)||[];const V=[];if(tn.forEach(rn=>{if(rn?.callback){this.#n.debug(`Invoking event subscriber ${rn.callback.name} for event ${F}`);const Vn=rn.callback({obj:O,eventName:y.eventName,eventParams:y.eventParams,eventOptions:y.eventOptions});Vn instanceof Promise?V.push(Vn):typeof Vn<"u"&&V.push(Promise.resolve(Vn))}}),w){const rn=await Promise.all(V);this.#e.respond({targetWin:c,targetOrigin:p,requestId:w,response:rn}),this.#n.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:F,scriptingObject:O.id,...this.#c()})}else this.#n.audit({message:"Guest proxy processed event from host",scriptingEventId:F,scriptingObject:O.id,...this.#c()})}};#R=async()=>{!this.#r||!this.#h||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#r,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#T=async()=>{if(this.#r&&this.#h&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#r,client_id:this.#h}).toString()}`,{method:"POST"})}catch(c){this.#n.error(`Error revoking token. ${c.message}`)}finally{this.#r=null,this.#h=null}};#C=async()=>{if(this.#b)try{const c=await this.getObject("application");c?(this.#_=(0,mr.throttle)(async()=>{try{await c.keepSessionAlive(),await this.#R()}catch(p){this.#n.error(`Error keeping session alive. ${p.message}`)}},this.#x,{leading:!1}),St.forEach(p=>{document.addEventListener(p,this.#_)})):this.#n.warn("Application object not available to send keep alive")}catch(c){this.#n.error(`Error getting application object. ${c.message}`)}};#P=async()=>{try{const c=await this.getObject("module");if(c?.log&&!this.#w.console){const{index:p="",team:w="",appName:y=""}=this.#w||{};if(!p||!w||!y)throw new Error("Missing one of required logger options: index, team, appName");this.#n=(0,on.logger)({transport:(0,on.parentApp)(c),index:p,team:w,appName:y})}}catch(c){this.#n.info(`Module object not exposed from hosting application. using local logger instance. ${c.message}`)}};addScript=async(c,p)=>{if(!this.#s&&c){await this.connect();const w=document.createElement("script");w.setAttribute("src",c),w.setAttribute("type","module"),await new Promise(y=>{const O=()=>{w?.removeEventListener?.("load",O),this.#s=!0,Ar(!0),y()};w.addEventListener("load",O),this.#o=p.appendChild(w)})}};close=async()=>{this.#t&&(this.#e.send({targetWin:this.#u,targetOrigin:this.#f,messageType:H.GuestClose,messageBody:{}}),this.#e.removeSender({origin:this.#f,window:this.#u}),this.#e.close(),this.#_&&St.forEach(c=>{document.removeEventListener(c,this.#_)}),await this.#T(),window.removeEventListener("beforeunload",this.close),this.#t=!1,this.#n.audit({message:"Guest disconnected from host",...this.#c()}),this.#g=null,this.#a=null,this.#d=null)};connect=async c=>{if(!this.#t){let p=window,w={...Me};if(c){p=c.window||p;const O={...c};delete O.window,w=Object.assign(w,O)}const y=await At();this.#f=y.origin,this.#u=y.window,this.#e.initialize(p),this.#e.addSender({origin:this.#f,window:this.#u}),this.#e.listen({messageType:H.ObjectEvent,callback:this.#O.bind(this)}),this.#e.listen({messageType:H.HostConfig,callback:this.#E.bind(this)}),this.#e.listen({messageType:H.GuestFocus,callback:this.#I.bind(this)}),this.#e.listen({messageType:H.HostClose,callback:this.#S.bind(this)}),this.#e.send({targetWin:this.#u,targetOrigin:this.#f,messageType:H.GuestReady,messageBody:w}),this.#t=!0,this.#L(),this.#v&&await this.getAuthToken(),await this.#C(),window.addEventListener("beforeunload",this.close),this.#n.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#r&&this.#t)try{const c=await this.getObject("auth");if(c){const p=await c.getAccessToken();this.#r=p?.access_token,this.#p=p?.host_name,this.#h=p?.client_id}else this.#n.warn("Auth object not available to get access token from host")}catch(c){console.dir(c,{depth:null}),this.#n.error(`Error getting access token from auth object. ${c.message}`)}return this.#r};getObject=async c=>{if(this.#n.debug(`Retrieving scripting object "${c}" from host...`),!this.#t)throw new Error("Not connected to host");const p=await this.#e.invoke({targetWin:this.#u,targetOrigin:this.#f,messageType:H.ObjectGet,messageBody:{objectId:c}}),w=this.#m(p.object);return this.#n.audit({message:"Received scripting object from host",scriptingObject:c,...this.#c()}),w};listObjects=async()=>{if(this.#n.debug("Retrieving names of scripting objects exposed by host..."),!this.#t)throw new Error("Not connected to host");const c=await this.#e.invoke({targetWin:this.#u,targetOrigin:this.#f,messageType:H.ListObjects,messageBody:{}});return this.#n.audit({message:"Received names of all scripting objects exposed by host",objects:c,...this.#c()}),c};removeScript=()=>{if(this.#s&&this.#o){const{parentNode:c}=this.#o;c?.removeChild?.(this.#o)}};setLogLevel=c=>{this.#n.setLogLevel(c),this.#n.debug(`Log level changed by guest to ${c}`)};subscribe=c=>{const{eventId:p,callback:w}=c;this.#n.debug(`Registering subscription for event ${p}`);const y=this.#l.get(p.toLowerCase())||[],O=le();return y.push({callback:w,token:O}),this.#l.set(p.toLowerCase(),y),O};unsubscribe=c=>{const{eventId:p,token:w}=c;let y=this.#l.get(p.toLowerCase());y&&(y=y.filter(O=>O.token!==w),this.#l.set(p.toLowerCase(),y))}}})(),_r})());
27
+ }`;var P=yo(function(){return M(s,E+"return "+m).apply(f,o)});if(P.source=m,Ui(P))throw P;return P}function pd(n){return G(n).toLowerCase()}function vd(n){return G(n).toUpperCase()}function _d(n,e,t){if(n=G(n),n&&(t||e===f))return Tu(n);if(!n||!(e=An(e)))return n;var r=Nn(n),i=Nn(e),s=Cu(r,i),o=Pu(r,i)+1;return xe(r,s,o).join("")}function wd(n,e,t){if(n=G(n),n&&(t||e===f))return n.slice(0,Uu(n)+1);if(!n||!(e=An(e)))return n;var r=Nn(n),i=Pu(r,Nn(e))+1;return xe(r,0,i).join("")}function md(n,e,t){if(n=G(n),n&&(t||e===f))return n.replace(Fr,"");if(!n||!(e=An(e)))return n;var r=Nn(n),i=Cu(r,Nn(e));return xe(r,i).join("")}function bd(n,e){var t=et,r=yt;if(Z(e)){var i="separator"in e?e.separator:i;t="length"in e?C(e.length):t,r="omission"in e?An(e.omission):r}n=G(n);var s=n.length;if(qe(n)){var o=Nn(n);s=o.length}if(t>=s)return n;var l=t-He(r);if(l<1)return r;var h=o?xe(o,0,l).join(""):n.slice(0,l);if(i===f)return h+r;if(o&&(l+=h.length-l),Fi(i)){if(n.slice(l).search(i)){var v,_=h;for(i.global||(i=Qr(i.source,G(Qi.exec(i))+"g")),i.lastIndex=0;v=i.exec(_);)var m=v.index;h=h.slice(0,m===f?l:m)}}else if(n.indexOf(An(i),l)!=l){var x=h.lastIndexOf(i);x>-1&&(h=h.slice(0,x))}return h+r}function xd(n){return n=G(n),n&&Co.test(n)?n.replace(ki,Jf):n}var yd=Xe(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Mi=ys("toUpperCase");function xo(n,e,t){return n=G(n),e=t?f:e,e===f?zf(n)?jf(n):Bf(n):n.match(e)||[]}var yo=W(function(n,e){try{return xn(n,f,e)}catch(t){return Ui(t)?t:new R(t)}}),Ad=ie(function(n,e){return Cn(e,function(t){t=Xn(t),te(n,t,Pi(n[t],n))}),n});function Ed(n){var e=n==null?0:n.length,t=I();return n=e?Y(n,function(r){if(typeof r[1]!="function")throw new Pn(mn);return[t(r[0]),r[1]]}):[],W(function(r){for(var i=-1;++i<e;){var s=n[i];if(xn(s[0],this,r))return xn(s[1],this,r)}})}function Id(n){return Jl(Un(n,Mn))}function Gi(n){return function(){return n}}function Sd(n,e){return n==null||n!==n?e:n}var Ld=Es(),Od=Es(!0);function wn(n){return n}function $i(n){return ns(typeof n=="function"?n:Un(n,Mn))}function Rd(n){return ts(Un(n,Mn))}function Td(n,e){return rs(n,Un(e,Mn))}var Cd=W(function(n,e){return function(t){return pt(t,n,e)}}),Pd=W(function(n,e){return function(t){return pt(n,t,e)}});function Ni(n,e,t){var r=un(e),i=Qt(e,r);t==null&&!(Z(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=Qt(e,un(e)));var s=!(Z(t)&&"chain"in t)||!!t.chain,o=se(n);return Cn(i,function(l){var h=e[l];n[l]=h,o&&(n.prototype[l]=function(){var v=this.__chain__;if(s||v){var _=n(this.__wrapped__),m=_.__actions__=pn(this.__actions__);return m.push({func:h,args:arguments,thisArg:n}),_.__chain__=v,_}return h.apply(n,pe([this.value()],arguments))})}),n}function Wd(){return fn._===this&&(fn._=ul),this}function qi(){}function Ud(n){return n=C(n),W(function(e){return is(e,n)})}var Fd=mi(Y),Bd=mi(Iu),Dd=mi(Kr);function Ao(n){return Si(n)?zr(Xn(n)):gc(n)}function Md(n){return function(e){return n==null?f:Te(n,e)}}var Gd=Ss(),$d=Ss(!0);function Hi(){return[]}function Ki(){return!1}function Nd(){return{}}function qd(){return""}function Hd(){return!0}function Kd(n,e){if(n=C(n),n<1||n>Yn)return[];var t=bn,r=cn(n,bn);e=I(e),n-=bn;for(var i=kr(r,e);++t<n;)e(t);return i}function zd(n){return T(n)?Y(n,Xn):En(n)?[n]:pn(qs(G(n)))}function Yd(n){var e=++rl;return G(n)+e}var Zd=rr(function(n,e){return n+e},0),kd=bi("ceil"),Xd=rr(function(n,e){return n/e},1),Jd=bi("floor");function Qd(n){return n&&n.length?Jt(n,wn,ui):f}function Vd(n,e){return n&&n.length?Jt(n,I(e,2),ui):f}function jd(n){return Ou(n,wn)}function np(n,e){return Ou(n,I(e,2))}function ep(n){return n&&n.length?Jt(n,wn,li):f}function tp(n,e){return n&&n.length?Jt(n,I(e,2),li):f}var rp=rr(function(n,e){return n*e},1),ip=bi("round"),up=rr(function(n,e){return n-e},0);function sp(n){return n&&n.length?Zr(n,wn):0}function op(n,e){return n&&n.length?Zr(n,I(e,2)):0}return u.after=Rh,u.ary=js,u.assign=vg,u.assignIn=go,u.assignInWith=vr,u.assignWith=_g,u.at=wg,u.before=no,u.bind=Pi,u.bindAll=Ad,u.bindKey=eo,u.castArray=Nh,u.chain=Js,u.chunk=Jc,u.compact=Qc,u.concat=Vc,u.cond=Ed,u.conforms=Id,u.constant=Gi,u.countBy=sh,u.create=mg,u.curry=to,u.curryRight=ro,u.debounce=io,u.defaults=bg,u.defaultsDeep=xg,u.defer=Th,u.delay=Ch,u.difference=jc,u.differenceBy=na,u.differenceWith=ea,u.drop=ta,u.dropRight=ra,u.dropRightWhile=ia,u.dropWhile=ua,u.fill=sa,u.filter=fh,u.flatMap=ah,u.flatMapDeep=hh,u.flatMapDepth=gh,u.flatten=Ys,u.flattenDeep=oa,u.flattenDepth=fa,u.flip=Ph,u.flow=Ld,u.flowRight=Od,u.fromPairs=la,u.functions=Og,u.functionsIn=Rg,u.groupBy=dh,u.initial=aa,u.intersection=ha,u.intersectionBy=ga,u.intersectionWith=da,u.invert=Cg,u.invertBy=Pg,u.invokeMap=vh,u.iteratee=$i,u.keyBy=_h,u.keys=un,u.keysIn=_n,u.map=cr,u.mapKeys=Ug,u.mapValues=Fg,u.matches=Rd,u.matchesProperty=Td,u.memoize=hr,u.merge=Bg,u.mergeWith=po,u.method=Cd,u.methodOf=Pd,u.mixin=Ni,u.negate=gr,u.nthArg=Ud,u.omit=Dg,u.omitBy=Mg,u.once=Wh,u.orderBy=wh,u.over=Fd,u.overArgs=Uh,u.overEvery=Bd,u.overSome=Dd,u.partial=Wi,u.partialRight=uo,u.partition=mh,u.pick=Gg,u.pickBy=vo,u.property=Ao,u.propertyOf=Md,u.pull=wa,u.pullAll=ks,u.pullAllBy=ma,u.pullAllWith=ba,u.pullAt=xa,u.range=Gd,u.rangeRight=$d,u.rearg=Fh,u.reject=yh,u.remove=ya,u.rest=Bh,u.reverse=Ti,u.sampleSize=Eh,u.set=Ng,u.setWith=qg,u.shuffle=Ih,u.slice=Aa,u.sortBy=Oh,u.sortedUniq=Ta,u.sortedUniqBy=Ca,u.split=ad,u.spread=Dh,u.tail=Pa,u.take=Wa,u.takeRight=Ua,u.takeRightWhile=Fa,u.takeWhile=Ba,u.tap=Qa,u.throttle=Mh,u.thru=lr,u.toArray=co,u.toPairs=_o,u.toPairsIn=wo,u.toPath=zd,u.toPlainObject=ho,u.transform=Hg,u.unary=Gh,u.union=Da,u.unionBy=Ma,u.unionWith=Ga,u.uniq=$a,u.uniqBy=Na,u.uniqWith=qa,u.unset=Kg,u.unzip=Ci,u.unzipWith=Xs,u.update=zg,u.updateWith=Yg,u.values=Ve,u.valuesIn=Zg,u.without=Ha,u.words=xo,u.wrap=$h,u.xor=Ka,u.xorBy=za,u.xorWith=Ya,u.zip=Za,u.zipObject=ka,u.zipObjectDeep=Xa,u.zipWith=Ja,u.entries=_o,u.entriesIn=wo,u.extend=go,u.extendWith=vr,Ni(u,u),u.add=Zd,u.attempt=yo,u.camelCase=Qg,u.capitalize=mo,u.ceil=kd,u.clamp=kg,u.clone=qh,u.cloneDeep=Kh,u.cloneDeepWith=zh,u.cloneWith=Hh,u.conformsTo=Yh,u.deburr=bo,u.defaultTo=Sd,u.divide=Xd,u.endsWith=Vg,u.eq=Hn,u.escape=jg,u.escapeRegExp=nd,u.every=oh,u.find=lh,u.findIndex=Ks,u.findKey=yg,u.findLast=ch,u.findLastIndex=zs,u.findLastKey=Ag,u.floor=Jd,u.forEach=Qs,u.forEachRight=Vs,u.forIn=Eg,u.forInRight=Ig,u.forOwn=Sg,u.forOwnRight=Lg,u.get=Bi,u.gt=Zh,u.gte=kh,u.has=Tg,u.hasIn=Di,u.head=Zs,u.identity=wn,u.includes=ph,u.indexOf=ca,u.inRange=Xg,u.invoke=Wg,u.isArguments=We,u.isArray=T,u.isArrayBuffer=Xh,u.isArrayLike=vn,u.isArrayLikeObject=J,u.isBoolean=Jh,u.isBuffer=ye,u.isDate=Qh,u.isElement=Vh,u.isEmpty=jh,u.isEqual=ng,u.isEqualWith=eg,u.isError=Ui,u.isFinite=tg,u.isFunction=se,u.isInteger=so,u.isLength=dr,u.isMap=oo,u.isMatch=rg,u.isMatchWith=ig,u.isNaN=ug,u.isNative=sg,u.isNil=fg,u.isNull=og,u.isNumber=fo,u.isObject=Z,u.isObjectLike=X,u.isPlainObject=xt,u.isRegExp=Fi,u.isSafeInteger=lg,u.isSet=lo,u.isString=pr,u.isSymbol=En,u.isTypedArray=Qe,u.isUndefined=cg,u.isWeakMap=ag,u.isWeakSet=hg,u.join=pa,u.kebabCase=ed,u.last=Bn,u.lastIndexOf=va,u.lowerCase=td,u.lowerFirst=rd,u.lt=gg,u.lte=dg,u.max=Qd,u.maxBy=Vd,u.mean=jd,u.meanBy=np,u.min=ep,u.minBy=tp,u.stubArray=Hi,u.stubFalse=Ki,u.stubObject=Nd,u.stubString=qd,u.stubTrue=Hd,u.multiply=rp,u.nth=_a,u.noConflict=Wd,u.noop=qi,u.now=ar,u.pad=id,u.padEnd=ud,u.padStart=sd,u.parseInt=od,u.random=Jg,u.reduce=bh,u.reduceRight=xh,u.repeat=fd,u.replace=ld,u.result=$g,u.round=ip,u.runInContext=a,u.sample=Ah,u.size=Sh,u.snakeCase=cd,u.some=Lh,u.sortedIndex=Ea,u.sortedIndexBy=Ia,u.sortedIndexOf=Sa,u.sortedLastIndex=La,u.sortedLastIndexBy=Oa,u.sortedLastIndexOf=Ra,u.startCase=hd,u.startsWith=gd,u.subtract=up,u.sum=sp,u.sumBy=op,u.template=dd,u.times=Kd,u.toFinite=oe,u.toInteger=C,u.toLength=ao,u.toLower=pd,u.toNumber=Dn,u.toSafeInteger=pg,u.toString=G,u.toUpper=vd,u.trim=_d,u.trimEnd=wd,u.trimStart=md,u.truncate=bd,u.unescape=xd,u.uniqueId=Yd,u.upperCase=yd,u.upperFirst=Mi,u.each=Qs,u.eachRight=Vs,u.first=Zs,Ni(u,function(){var n={};return Zn(u,function(e,t){N.call(u.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),u.VERSION=j,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),Cn(["drop","take"],function(n,e){B.prototype[n]=function(t){t=t===f?1:en(C(t),0);var r=this.__filtered__&&!e?new B(this):this.clone();return r.__filtered__?r.__takeCount__=cn(t,r.__takeCount__):r.__views__.push({size:cn(t,bn),type:n+(r.__dir__<0?"Right":"")}),r},B.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Cn(["filter","map","takeWhile"],function(n,e){var t=e+1,r=t==At||t==Ar;B.prototype[n]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:I(i,3),type:t}),s.__filtered__=s.__filtered__||r,s}}),Cn(["head","last"],function(n,e){var t="take"+(e?"Right":"");B.prototype[n]=function(){return this[t](1).value()[0]}}),Cn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");B.prototype[n]=function(){return this.__filtered__?new B(this):this[t](1)}}),B.prototype.compact=function(){return this.filter(wn)},B.prototype.find=function(n){return this.filter(n).head()},B.prototype.findLast=function(n){return this.reverse().find(n)},B.prototype.invokeMap=W(function(n,e){return typeof n=="function"?new B(this):this.map(function(t){return pt(t,n,e)})}),B.prototype.reject=function(n){return this.filter(gr(I(n)))},B.prototype.slice=function(n,e){n=C(n);var t=this;return t.__filtered__&&(n>0||e<0)?new B(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=C(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},B.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},B.prototype.toArray=function(){return this.take(bn)},Zn(B.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],s=r||/^find/.test(e);i&&(u.prototype[e]=function(){var o=this.__wrapped__,l=r?[1]:arguments,h=o instanceof B,v=l[0],_=h||T(o),m=function(U){var D=i.apply(u,pe([U],l));return r&&x?D[0]:D};_&&t&&typeof v=="function"&&v.length!=1&&(h=_=!1);var x=this.__chain__,E=!!this.__actions__.length,S=s&&!x,P=h&&!E;if(!s&&_){o=P?o:new B(this);var L=n.apply(o,l);return L.__actions__.push({func:lr,args:[m],thisArg:f}),new Wn(L,x)}return S&&P?n.apply(this,l):(L=this.thru(m),S?r?L.value()[0]:L.value():L)})}),Cn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ft[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return e.apply(T(s)?s:[],i)}return this[t](function(o){return e.apply(T(o)?o:[],i)})}}),Zn(B.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";N.call(Ye,r)||(Ye[r]=[]),Ye[r].push({name:e,func:t})}}),Ye[tr(f,Qn).name]=[{name:"wrapper",func:f}],B.prototype.clone=xl,B.prototype.reverse=yl,B.prototype.value=Al,u.prototype.at=Va,u.prototype.chain=ja,u.prototype.commit=nh,u.prototype.next=eh,u.prototype.plant=rh,u.prototype.reverse=ih,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=uh,u.prototype.first=u.prototype.head,ft&&(u.prototype[ft]=th),u},Ut=nl();fn._=Ut,je=function(){return Ut}.call(sn,k,sn,$),je!==f&&($.exports=je)}).call(this)}},Ae={};function Ln($){var sn=Ae[$];if(sn!==void 0)return sn.exports;var k=Ae[$]={id:$,loaded:!1,exports:{}};return Ue[$].call(k.exports,k,k.exports,Ln),k.loaded=!0,k.exports}Ln.d=($,sn)=>{for(var k in sn)Ln.o(sn,k)&&!Ln.o($,k)&&Object.defineProperty($,k,{enumerable:!0,get:sn[k]})},Ln.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Ln.o=($,sn)=>Object.prototype.hasOwnProperty.call($,sn),Ln.r=$=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),Object.defineProperty($,"__esModule",{value:!0})},Ln.nmd=$=>($.paths=[],$.children||($.children=[]),$);var _r={};return(()=>{"use strict";Ln.r(_r),Ln.d(_r,{SSFGuest:()=>ge});const sn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let k;const je=new Uint8Array(16);function f(){if(!k&&(k=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!k))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(je)}const j=[];for(let b=0;b<256;++b)j.push((b+256).toString(16).slice(1));function Fe(b,c=0){return j[b[c+0]]+j[b[c+1]]+j[b[c+2]]+j[b[c+3]]+"-"+j[b[c+4]]+j[b[c+5]]+"-"+j[b[c+6]]+j[b[c+7]]+"-"+j[b[c+8]]+j[b[c+9]]+"-"+j[b[c+10]]+j[b[c+11]]+j[b[c+12]]+j[b[c+13]]+j[b[c+14]]+j[b[c+15]]}function Yi(b,c=0){const p=Fe(b,c);if(!validate(p))throw TypeError("Stringified UUID is invalid");return p}const mn=null;function wr(b,c,p){if(sn.randomUUID&&!c&&!b)return sn.randomUUID();b=b||{};const w=b.random||(b.rng||f)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,c){p=p||0;for(let y=0;y<16;++y)c[p+y]=w[y];return c}return Fe(w)}const le=wr;var mr=Ln(918);const Ee="elli:remoting",Mn="elli:remoting:response",nt="elli:remoting:exception",On=({messageType:b,messageBody:c,onewayMsg:p=!1})=>({requestId:p?null:le(),source:Ee,type:b,body:c}),Jn=b=>{const{targetWin:c,targetOrigin:p,messageType:w,messageBody:y}=b,O=On({messageType:w,messageBody:y});c.postMessage(O,p)};class Be{#i;#n;#e=new Map;#s=new Map;#o=null;#t=new Map;constructor(c,p){if(!c)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#i=p,this.#n=c}#l=()=>{const c=Date.now(),p=[];this.#s.forEach((w,y)=>{const{requestId:O,cancelTime:F}=w;this.#n.debug(`Checking response timeout for requestId: ${O}) @ ${F??""}`),w.cancelTime&&w.cancelTime<c&&(this.#n.debug(`Detected response timeout for requestId: ${O}...`),p.push(y),w.resolve(),this.#n.debug(`Aborted waiting for response to requestid: ${O})`))}),p.forEach(w=>{this.#n.debug(`removing invocations with requestId ${w} from cache since response time has expired`),this.#s.delete(w)}),this.#s.size===0&&(this.#n.debug("stopping response monitor"),this.#d())};#g=()=>{this.#o===null&&(this.#n.debug("Staring response timeout evaluator"),this.#o=window.setInterval(this.#l,200))};#d=()=>{this.#o!==null&&(window.clearInterval(this.#o),this.#o=null,this.#n.debug("Stopped response timeout evaluator"))};#a=c=>{const p=this.#s.get(c);return this.#n.debug(`serving requestId: ${c}`),this.#s.delete(c),p};#f=c=>{const{requestId:p}=c;this.#n.debug(`Response received for invocation requestId: ${p}`);const w=this.#a(p);return w?(w.resolve(c.body),!0):(this.#n.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#u=c=>{this.#n.debug(`Exception received for invocation (requestId = ${c.requestId})`);const p=this.#a(c.requestId);return p?(p.reject(new Error(c.body)),!0):(this.#n.warn(`Received exception for stale/invalid request (requestId = ${c.requestId})`),!1)};#v=({sourceWin:c,sourceOrigin:p,message:w})=>{this.#n.debug(`Received message of type "${w.type}"`);const y=this.#e.get(w.type);return y?(y.forEach(O=>{this.#n.debug(`Invoking message handler ${O.name}`),O({sourceWin:c,sourceOrigin:p,requestId:w.requestId,type:w.type,body:w.body})}),!0):!1};#r=c=>{if(this.#n.debug(`Remoting: Received message ${JSON.stringify(c.data)}`),this.#t.size===0||!c.source)return!1;const p=this.#t.get(c.source);return!p||c?.data?.source!==Ee?!1:(c.data.type===Mn?this.#f(c.data):c.data.type===nt?this.#u(c.data):this.#v({sourceWin:c.source,sourceOrigin:p,message:c.data}),!0)};addSender=c=>{const{origin:p,window:w}=c;if(!p)throw new Error("origin is required");if(!w)throw new Error("window is required");this.#t.set(w,p)};initialize=c=>{c.removeEventListener("message",this.#r),c.addEventListener("message",this.#r),this.#n.debug(`initialized remoting id: ${this.#i}`)};close=()=>{window.removeEventListener("message",this.#r),this.#n.debug(`closed remoting id: ${this.#i}`)};invoke=c=>{const{targetWin:p,targetOrigin:w,messageType:y,messageBody:O,responseTimeoutMs:F}=c;return new Promise((tn,V)=>{const rn=On({messageType:y,messageBody:O});this.#s.set(rn.requestId,{requestId:rn.requestId,resolve:tn,reject:V,cancelTime:F?Date.now()+Number.parseInt(F,10):null}),p.postMessage(rn,w);const{requestId:Vn}=rn;this.#n.debug(`Posted invocation message of type ${y} requestId: ${Vn||""}`),F&&(this.#n.debug(`starting response monitor for requestId: ${Vn||""} for ${F} ms`),this.#g())})};listen=c=>{const{messageType:p,callback:w}=c,y=this.#e.get(p)||[];y.push(w),this.#e.set(p,y)};send=c=>{const{targetWin:p,targetOrigin:w,messageType:y,messageBody:O}=c,F=On({messageType:y,messageBody:O,onewayMsg:!0});p.postMessage(F,w),this.#n.debug(`Posted one-way message of type "${y}"`)};removeSender=c=>{const{window:p}=c;p&&this.#t.delete(p)};respond=c=>{const{targetWin:p,targetOrigin:w,requestId:y,response:O}=c,F=On({messageType:Mn,messageBody:O});F.requestId=y,p.postMessage(F,w),this.#n.debug(`Response sent to caller for invocation requestId: ${y}`)};raiseException=c=>{const{targetWin:p,targetOrigin:w,requestId:y,ex:O}=c,F=On({messageType:nt,messageBody:O});F.requestId=y,p.postMessage(F,w),this.#n.debug(`Exception sent to caller for invocation. requestId: ${y}`)}}var H=(b=>(b.GuestClose="guest:close",b.GuestFocus="guest:focus",b.GuestReady="guest:ready",b.GuestReadyComplete="guest:readyComplete",b.GuestResize="guest:resize",b.HandShake="handshake",b.HandShakeAck="handshake:ack",b.HostClose="host:close",b.HostConfig="host:config",b.ListObjects="list:objects",b.ObjectEvent="object:event",b.ObjectGet="object:get",b.ObjectInvoke="object:invoke",b))(H||{});class Qn{__TYPE__="Proxy";id;objectType;constructor(c,p){this.id=c,this.objectType=p}}const br=b=>b?.constructor?.name==="Proxy"||b?.constructor?.name==="ScriptingObjectProxy"||b?.__TYPE__==="Proxy";class Rn{name;objectId;id;constructor(c){const{name:p,objectId:w}=c;if(!p)throw new Error("Event name is required");if(!w)throw new Error("Scripting object id is required");this.objectId=w,this.name=p,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class ce{static[Symbol.hasInstance](c){return c.getType?.()==="ProxyEvent"}#i;objectId;name;id;getType(){return"ProxyEvent"}constructor(c){const{name:p,objectId:w,eventSrc:y}=c;this.objectId=w,this.name=p,this.#i=y,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=c=>this.#i.subscribe({eventId:this.id,callback:c});unsubscribe=c=>{this.#i.unsubscribe({eventId:this.id,token:c})}}const Gn=b=>b instanceof Rn,ae=(b,c)=>`${b.toLowerCase()}.${c.toLowerCase()}`;var on=Ln(388);const he=()=>{const{parent:b}=window;try{return b?.location?.href}catch{return null}},De=b=>{if(!b||b==="about:blank")return"*";try{const{origin:c}=new URL(b);return c==="null"||!c?b:c}catch{const{origin:p}=new URL(b,document.baseURI);return p}},et=()=>window.self!==window.parent,yt=(b,c)=>{const p=c||document.body,w=document.defaultView?.getComputedStyle?.(p,null),y=w?w[b]:"0";return parseInt(y,10)},xr=new RegExp("^https?://(.*.elliemae.io|.*.ellielabs.com|.*.ellieservices.com|.*.encompassloconnect.com|.*.ice.com|localhost:[0-9]+)","i"),yr="elli:remoting",At=()=>new Promise(b=>{if(et())b({origin:De(document.referrer||he()),window:window.parent});else{const c=window,p=w=>{if(xr.test(w.origin)){const{source:y,type:O}=w.data||{};if(y===yr&&O===H.HandShake){const{origin:F}=w,tn=w.source;Jn({targetWin:tn,targetOrigin:F,messageType:H.HandShakeAck,messageBody:{}}),c.removeEventListener("message",p),b({origin:F,window:tn})}}};c.addEventListener("message",p)}});let Ie=!1;const Ar=b=>{Ie=b},zn=(b=null)=>{let c=b;const p=()=>{if(!c&&(c=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!c))throw new Error("Guest definition not found");return c};window.elli=window.elli??{},window.elli.script={guest:{create:async(w,y)=>p().addScript(w,y)},connect:async w=>p().connect(w),getObject:async w=>p().getObject(w),setLogLevel:w=>p().setLogLevel(w),subscribe:(w,y,O)=>p().subscribe({eventId:`${w}.${y}`,callback:F=>O(F?.obj,F?.eventParams,F?.eventOptions)}),unsubscribe:(w,y,O)=>p().unsubscribe({eventId:`${w}.${y}`,token:O})}};zn();var Yn=(b=>(b.OBJECT="object",b.VALUE="value",b))(Yn||{});const Et=12e4,Me={eventFeedback:!0},bn=()=>{const{document:b}=window,c=b.body,p=b.documentElement,y={height:c.offsetHeight+yt("marginTop")+yt("marginBottom"),width:Math.max(c.scrollWidth,p.scrollWidth)};Jn({targetWin:window.parent,targetOrigin:De(b.referrer||he()),messageType:H.GuestResize,messageBody:y}),window.removeEventListener("load",bn)};et()&&window.addEventListener("load",bn);const It={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},St=["click","scroll","keypress","touchstart"],Er=()=>{const b=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_pui-microfe_master/211/libs/ssf-guest/lib/guest.ts",c=b?new URL(b).hostname:"localhost";return It[c]||It["cdn.qa1.ice.com"]};class ge{#i;#n;#e;#s=!1;#o=null;#t=!1;#l=new Map;#g=null;#d=null;#a=null;#f=null;#u=null;#v=!1;#r=null;#h=null;#p=null;#b=!0;#x=Et;#w;#_=null;constructor(c){const{console:p=!1,url:w=window.__ICE__?.diagnosticsUrl||Er(),index:y="ssf-guest-v2",team:O="ICE",appName:F="SSF Guest V2 Application"}=c?.logger??{};this.#w=c?.logger,this.#v=c?.usesDevConnectAPI??!1,this.#b=c?.keepAlive??!0,this.#x=c?.keepAliveInterval??Et;const tn=p?(0,on.Console)():(0,on.http)(w);this.#n=c?.appLogger??(0,on.logger)({transport:tn,index:y,team:O,appName:F}),(0,on.webvitals)(this.#n),(0,on.logUnhandledErrors)(this.#n),this.#i=le(),this.#e=new Be(this.#n,this.#i),zn(this),this.#n.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#i})}#c=()=>({guestId:this.#g,guestTitle:this.#d,guestUrl:this.#a});#m=c=>{if(!c||!c.objectId)throw this.#n.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const p=new Qn(c.objectId,c.objectType);return c.functions&&c.functions.forEach(w=>{Object.defineProperty(p,w,{value:async(...y)=>this.#y({objectId:p.id,functionName:w,functionParams:[].slice.call(y)}),enumerable:!0})}),c.events&&c.events.forEach(w=>{Object.defineProperty(p,w,{value:new ce({objectId:p.id,name:w,eventSrc:this}),enumerable:!0})}),this.#n.debug(`Created guest proxy for scripting object (id = "${p.id}")`),p};#y=async({objectId:c,functionName:p,functionParams:w})=>{this.#n.debug(`Invoking scripting object method ${c}.${p}()...`);const y=[];if(w)for(let tn=0;tn<w.length;tn+=1){const V=w[tn];V instanceof Promise&&y.push(V.then(rn=>{w[tn]=rn}))}await Promise.all(y);const O=await this.#e.invoke({targetWin:this.#u,targetOrigin:this.#f,messageType:H.ObjectInvoke,messageBody:{objectId:c,functionName:p,functionParams:w}}),F=this.#A(O);return this.#n.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:c,scriptingMethod:p,...this.#c()}),F};#A=c=>c?.type==="object"&&"object"in c?this.#m(c.object):c?.type==="value"?c.value:c;#E=({body:c})=>{c?.logLevel&&(this.#n.setLogLevel(c.logLevel),this.#n.debug(`Log level changed by host to ${c.logLevel}`)),this.#g=c?.guestId??null,this.#d=c?.guestTitle??null,this.#a=c?.guestUrl??null,this.#n.audit({message:"Received configuration from Host",...this.#c()})};#I=()=>{window.focus()};#S=async()=>{await this.close(),window.close()};#L=()=>{et()||setInterval(()=>{this.#u?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#O=async({sourceWin:c,sourceOrigin:p,requestId:w,body:y})=>{const O=this.#m(y.object);if(O){const F=ae(O.id,y.eventName);this.#n.debug(`Received event "${F}" from host`);let tn;y.eventHandler?tn=[{callback:window[y.eventHandler],token:le()}]:tn=this.#l.get(F)||[];const V=[];if(tn.forEach(rn=>{if(rn?.callback){this.#n.debug(`Invoking event subscriber ${rn.callback.name} for event ${F}`);const Vn=rn.callback({obj:O,eventName:y.eventName,eventParams:y.eventParams,eventOptions:y.eventOptions});Vn instanceof Promise?V.push(Vn):typeof Vn<"u"&&V.push(Promise.resolve(Vn))}}),w){const rn=await Promise.all(V);this.#e.respond({targetWin:c,targetOrigin:p,requestId:w,response:rn}),this.#n.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:F,scriptingObject:O.id,...this.#c()})}else this.#n.audit({message:"Guest proxy processed event from host",scriptingEventId:F,scriptingObject:O.id,...this.#c()})}};#R=async()=>{!this.#r||!this.#h||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#r,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#T=async()=>{if(this.#r&&this.#h&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#r,client_id:this.#h}).toString()}`,{method:"POST"})}catch(c){this.#n.error(`Error revoking token. ${c.message}`)}finally{this.#r=null,this.#h=null}};#C=async()=>{if(this.#b)try{const c=await this.getObject("application");c?(this.#_=(0,mr.throttle)(async()=>{try{await c.keepSessionAlive(),await this.#R()}catch(p){this.#n.error(`Error keeping session alive. ${p.message}`)}},this.#x,{leading:!1}),St.forEach(p=>{document.addEventListener(p,this.#_)})):this.#n.warn("Application object not available to send keep alive")}catch(c){this.#n.error(`Error getting application object. ${c.message}`)}};#P=async()=>{try{const c=await this.getObject("module");if(c?.log&&!this.#w.console){const{index:p="",team:w="",appName:y=""}=this.#w||{};if(!p||!w||!y)throw new Error("Missing one of required logger options: index, team, appName");this.#n=(0,on.logger)({transport:(0,on.parentApp)(c),index:p,team:w,appName:y})}}catch(c){this.#n.info(`Module object not exposed from hosting application. using local logger instance. ${c.message}`)}};addScript=async(c,p)=>{if(!this.#s&&c){await this.connect();const w=document.createElement("script");w.setAttribute("src",c),w.setAttribute("type","module"),await new Promise(y=>{const O=()=>{w?.removeEventListener?.("load",O),this.#s=!0,Ar(!0),y()};w.addEventListener("load",O),this.#o=p.appendChild(w)})}};close=async()=>{this.#t&&(this.#e.send({targetWin:this.#u,targetOrigin:this.#f,messageType:H.GuestClose,messageBody:{}}),this.#e.removeSender({origin:this.#f,window:this.#u}),this.#e.close(),this.#_&&St.forEach(c=>{document.removeEventListener(c,this.#_)}),await this.#T(),window.removeEventListener("beforeunload",this.close),this.#t=!1,this.#n.audit({message:"Guest disconnected from host",...this.#c()}),this.#g=null,this.#a=null,this.#d=null)};connect=async c=>{if(!this.#t){let p=window,w={...Me};if(c){p=c.window||p;const O={...c};delete O.window,w=Object.assign(w,O)}const y=await At();this.#f=y.origin,this.#u=y.window,this.#e.initialize(p),this.#e.addSender({origin:this.#f,window:this.#u}),this.#e.listen({messageType:H.ObjectEvent,callback:this.#O.bind(this)}),this.#e.listen({messageType:H.HostConfig,callback:this.#E.bind(this)}),this.#e.listen({messageType:H.GuestFocus,callback:this.#I.bind(this)}),this.#e.listen({messageType:H.HostClose,callback:this.#S.bind(this)}),this.#e.send({targetWin:this.#u,targetOrigin:this.#f,messageType:H.GuestReady,messageBody:w}),this.#t=!0,this.#L(),this.#v&&await this.getAuthToken(),await this.#C(),window.addEventListener("beforeunload",this.close),this.#n.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#r&&this.#t)try{const c=await this.getObject("auth");if(c){const p=await c.getAccessToken();this.#r=p?.access_token,this.#p=p?.host_name,this.#h=p?.client_id}else this.#n.warn("Auth object not available to get access token from host")}catch(c){console.dir(c,{depth:null}),this.#n.error(`Error getting access token from auth object. ${c.message}`)}return this.#r};getObject=async c=>{if(this.#n.debug(`Retrieving scripting object "${c}" from host...`),!this.#t)throw new Error("Not connected to host");const p=await this.#e.invoke({targetWin:this.#u,targetOrigin:this.#f,messageType:H.ObjectGet,messageBody:{objectId:c}}),w=this.#m(p.object);return this.#n.audit({message:"Received scripting object from host",scriptingObject:c,...this.#c()}),w};listObjects=async()=>{if(this.#n.debug("Retrieving names of scripting objects exposed by host..."),!this.#t)throw new Error("Not connected to host");const c=await this.#e.invoke({targetWin:this.#u,targetOrigin:this.#f,messageType:H.ListObjects,messageBody:{}});return this.#n.audit({message:"Received names of all scripting objects exposed by host",objects:c,...this.#c()}),c};removeScript=()=>{if(this.#s&&this.#o){const{parentNode:c}=this.#o;c?.removeChild?.(this.#o)}};setLogLevel=c=>{this.#n.setLogLevel(c),this.#n.debug(`Log level changed by guest to ${c}`)};subscribe=c=>{const{eventId:p,callback:w}=c;this.#n.debug(`Registering subscription for event ${p}`);const y=this.#l.get(p.toLowerCase())||[],O=le();return y.push({callback:w,token:O}),this.#l.set(p.toLowerCase(),y),O};unsubscribe=c=>{const{eventId:p,token:w}=c;let y=this.#l.get(p.toLowerCase());y&&(y=y.filter(O=>O.token!==w),this.#l.set(p.toLowerCase(),y))}}})(),_r})());
28
28
 
29
- //# sourceMappingURL=emuiSsfGuest.bb29d41c0e22d4dc6455.js.map
29
+ //# sourceMappingURL=emuiSsfGuest.4e036e212e638f408fc6.js.map