@elliemae/ssf-guest 2.22.0 → 2.22.2
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.
- package/dist/public/creditService.html +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiSsfGuest.60315897b4b299913718.js → emuiSsfGuest.8402b07b7960210b16bf.js} +2 -2
- package/dist/public/js/emuiSsfGuest.8402b07b7960210b16bf.js.br +0 -0
- package/dist/public/js/{emuiSsfGuest.60315897b4b299913718.js.gz → emuiSsfGuest.8402b07b7960210b16bf.js.gz} +0 -0
- package/dist/public/js/emuiSsfGuest.8402b07b7960210b16bf.js.map +1 -0
- package/dist/public/loanValidation.html +1 -1
- package/dist/public/pricingService.html +1 -1
- package/dist/public/titleService.html +1 -1
- package/dist/public/v2-guest.html +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.br +0 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +18 -19
- package/dist/public/js/emuiSsfGuest.60315897b4b299913718.js.br +0 -0
- package/dist/public/js/emuiSsfGuest.60315897b4b299913718.js.map +0 -1
|
@@ -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.mortgagetech.q1.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.
|
|
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.mortgagetech.q1.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.8402b07b7960210b16bf.js"></script></head><body></body></html>
|
package/dist/public/index.html
CHANGED
|
@@ -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.
|
|
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.8402b07b7960210b16bf.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>
|
package/dist/public/js/{emuiSsfGuest.60315897b4b299913718.js → emuiSsfGuest.8402b07b7960210b16bf.js}
RENAMED
|
@@ -24,6 +24,6 @@ __p += '`),D&&(m+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+m+`return __p
|
|
27
|
-
}`;var W=yo(function(){return M(s,S+"return "+m).apply(f,o)});if(W.source=m,Ui(W))throw W;return W}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(Br,"");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(k(e)){var i="separator"in e?e.separator:i;t="length"in e?P(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 c=t-He(r);if(c<1)return r;var h=o?xe(o,0,c).join(""):n.slice(0,c);if(i===f)return h+r;if(o&&(c+=h.length-c),Bi(i)){if(n.slice(c).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?c:m)}}else if(n.indexOf(An(i),c)!=c){var y=h.lastIndexOf(i);y>-1&&(h=h.slice(0,y))}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):Ff(n):n.match(e)||[]}var yo=U(function(n,e){try{return xn(n,f,e)}catch(t){return Ui(t)?t:new T(t)}}),Ad=ie(function(n,e){return Cn(e,function(t){t=Jn(t),te(n,t,Pi(n[t],n))}),n});function Ed(n){var e=n==null?0:n.length,t=L();return n=e?Z(n,function(r){if(typeof r[1]!="function")throw new Pn(mn);return[t(r[0]),r[1]]}):[],U(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 Sd(n){return Jc(Un(n,Mn))}function Gi(n){return function(){return n}}function Id(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=U(function(n,e){return function(t){return pt(t,n,e)}}),Pd=U(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&&!(k(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=Qt(e,un(e)));var s=!(k(t)&&"chain"in t)||!!t.chain,o=se(n);return Cn(i,function(c){var h=e[c];n[c]=h,o&&(n.prototype[c]=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._=uc),this}function qi(){}function Ud(n){return n=P(n),U(function(e){return is(e,n)})}var Bd=mi(Z),Fd=mi(Su),Dd=mi(Kr);function Ao(n){return Ii(n)?zr(Jn(n)):ga(n)}function Md(n){return function(e){return n==null?f:Te(n,e)}}var Gd=Is(),$d=Is(!0);function Hi(){return[]}function Ki(){return!1}function Nd(){return{}}function qd(){return""}function Hd(){return!0}function Kd(n,e){if(n=P(n),n<1||n>Yn)return[];var t=bn,r=an(n,bn);e=L(e),n-=bn;for(var i=kr(r,e);++t<n;)e(t);return i}function zd(n){return C(n)?Z(n,Jn):En(n)?[n]:pn(qs(G(n)))}function Yd(n){var e=++rc;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,L(e,2),ui):f}function jd(n){return Ou(n,wn)}function np(n,e){return Ou(n,L(e,2))}function ep(n){return n&&n.length?Jt(n,wn,ci):f}function tp(n,e){return n&&n.length?Jt(n,L(e,2),ci):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,L(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=Ja,u.compact=Qa,u.concat=Va,u.cond=Ed,u.conforms=Sd,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=ja,u.differenceBy=nl,u.differenceWith=el,u.drop=tl,u.dropRight=rl,u.dropRightWhile=il,u.dropWhile=ul,u.fill=sl,u.filter=fh,u.flatMap=lh,u.flatMapDeep=hh,u.flatMapDepth=gh,u.flatten=Ys,u.flattenDeep=ol,u.flattenDepth=fl,u.flip=Ph,u.flow=Ld,u.flowRight=Od,u.fromPairs=cl,u.functions=Og,u.functionsIn=Rg,u.groupBy=dh,u.initial=ll,u.intersection=hl,u.intersectionBy=gl,u.intersectionWith=dl,u.invert=Cg,u.invertBy=Pg,u.invokeMap=vh,u.iteratee=$i,u.keyBy=_h,u.keys=un,u.keysIn=_n,u.map=ar,u.mapKeys=Ug,u.mapValues=Bg,u.matches=Rd,u.matchesProperty=Td,u.memoize=hr,u.merge=Fg,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=Bd,u.overArgs=Uh,u.overEvery=Fd,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=wl,u.pullAll=ks,u.pullAllBy=ml,u.pullAllWith=bl,u.pullAt=xl,u.range=Gd,u.rangeRight=$d,u.rearg=Bh,u.reject=yh,u.remove=yl,u.rest=Fh,u.reverse=Ti,u.sampleSize=Eh,u.set=Ng,u.setWith=qg,u.shuffle=Sh,u.slice=Al,u.sortBy=Oh,u.sortedUniq=Tl,u.sortedUniqBy=Cl,u.split=ld,u.spread=Dh,u.tail=Pl,u.take=Wl,u.takeRight=Ul,u.takeRightWhile=Bl,u.takeWhile=Fl,u.tap=Ql,u.throttle=Mh,u.thru=cr,u.toArray=ao,u.toPairs=_o,u.toPairsIn=wo,u.toPath=zd,u.toPlainObject=ho,u.transform=Hg,u.unary=Gh,u.union=Dl,u.unionBy=Ml,u.unionWith=Gl,u.uniq=$l,u.uniqBy=Nl,u.uniqWith=ql,u.unset=Kg,u.unzip=Ci,u.unzipWith=Xs,u.update=zg,u.updateWith=Yg,u.values=Ve,u.valuesIn=Zg,u.without=Hl,u.words=xo,u.wrap=$h,u.xor=Kl,u.xorBy=zl,u.xorWith=Yl,u.zip=Zl,u.zipObject=kl,u.zipObjectDeep=Xl,u.zipWith=Jl,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=Id,u.divide=Xd,u.endsWith=Vg,u.eq=Hn,u.escape=jg,u.escapeRegExp=nd,u.every=oh,u.find=ch,u.findIndex=Ks,u.findKey=yg,u.findLast=ah,u.findLastIndex=zs,u.findLastKey=Ag,u.floor=Jd,u.forEach=Qs,u.forEachRight=Vs,u.forIn=Eg,u.forInRight=Sg,u.forOwn=Ig,u.forOwnRight=Lg,u.get=Fi,u.gt=Zh,u.gte=kh,u.has=Tg,u.hasIn=Di,u.head=Zs,u.identity=wn,u.includes=ph,u.indexOf=al,u.inRange=Xg,u.invoke=Wg,u.isArguments=We,u.isArray=C,u.isArrayBuffer=Xh,u.isArrayLike=vn,u.isArrayLikeObject=V,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=k,u.isObjectLike=J,u.isPlainObject=xt,u.isRegExp=Bi,u.isSafeInteger=cg,u.isSet=co,u.isString=pr,u.isSymbol=En,u.isTypedArray=Qe,u.isUndefined=ag,u.isWeakMap=lg,u.isWeakSet=hg,u.join=pl,u.kebabCase=ed,u.last=Fn,u.lastIndexOf=vl,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=_l,u.noConflict=Wd,u.noop=qi,u.now=lr,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=cd,u.result=$g,u.round=ip,u.runInContext=l,u.sample=Ah,u.size=Ih,u.snakeCase=ad,u.some=Lh,u.sortedIndex=El,u.sortedIndexBy=Sl,u.sortedIndexOf=Il,u.sortedLastIndex=Ll,u.sortedLastIndexBy=Ol,u.sortedLastIndexOf=Rl,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=P,u.toLength=lo,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 kn(u,function(e,t){N.call(u.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),u.VERSION=en,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),Cn(["drop","take"],function(n,e){F.prototype[n]=function(t){t=t===f?1:rn(P(t),0);var r=this.__filtered__&&!e?new F(this):this.clone();return r.__filtered__?r.__takeCount__=an(t,r.__takeCount__):r.__views__.push({size:an(t,bn),type:n+(r.__dir__<0?"Right":"")}),r},F.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;F.prototype[n]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:L(i,3),type:t}),s.__filtered__=s.__filtered__||r,s}}),Cn(["head","last"],function(n,e){var t="take"+(e?"Right":"");F.prototype[n]=function(){return this[t](1).value()[0]}}),Cn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");F.prototype[n]=function(){return this.__filtered__?new F(this):this[t](1)}}),F.prototype.compact=function(){return this.filter(wn)},F.prototype.find=function(n){return this.filter(n).head()},F.prototype.findLast=function(n){return this.reverse().find(n)},F.prototype.invokeMap=U(function(n,e){return typeof n=="function"?new F(this):this.map(function(t){return pt(t,n,e)})}),F.prototype.reject=function(n){return this.filter(gr(L(n)))},F.prototype.slice=function(n,e){n=P(n);var t=this;return t.__filtered__&&(n>0||e<0)?new F(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=P(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},F.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},F.prototype.toArray=function(){return this.take(bn)},kn(F.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__,c=r?[1]:arguments,h=o instanceof F,v=c[0],_=h||C(o),m=function(B){var D=i.apply(u,pe([B],c));return r&&y?D[0]:D};_&&t&&typeof v=="function"&&v.length!=1&&(h=_=!1);var y=this.__chain__,S=!!this.__actions__.length,O=s&&!y,W=h&&!S;if(!s&&_){o=W?o:new F(this);var R=n.apply(o,c);return R.__actions__.push({func:cr,args:[m],thisArg:f}),new Wn(R,y)}return O&&W?n.apply(this,c):(R=this.thru(m),O?r?R.value()[0]:R.value():R)})}),Cn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Bt[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(C(s)?s:[],i)}return this[t](function(o){return e.apply(C(o)?o:[],i)})}}),kn(F.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,Vn).name]=[{name:"wrapper",func:f}],F.prototype.clone=xc,F.prototype.reverse=yc,F.prototype.value=Ac,u.prototype.at=Vl,u.prototype.chain=jl,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=nc();fn._=Ut,je=function(){return Ut}.call(sn,X,sn,$),je!==f&&($.exports=je)}).call(this)}},Ae={};function Ln($){var sn=Ae[$];if(sn!==void 0)return sn.exports;var X=Ae[$]={id:$,loaded:!1,exports:{}};return Ue[$].call(X.exports,X,X.exports,Ln),X.loaded=!0,X.exports}Ln.d=($,sn)=>{for(var X in sn)Ln.o(sn,X)&&!Ln.o($,X)&&Object.defineProperty($,X,{enumerable:!0,get:sn[X]})},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 X;const je=new Uint8Array(16);function f(){if(!X&&(X=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!X))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return X(je)}const en=[];for(let b=0;b<256;++b)en.push((b+256).toString(16).slice(1));function Be(b,a=0){return en[b[a+0]]+en[b[a+1]]+en[b[a+2]]+en[b[a+3]]+"-"+en[b[a+4]]+en[b[a+5]]+"-"+en[b[a+6]]+en[b[a+7]]+"-"+en[b[a+8]]+en[b[a+9]]+"-"+en[b[a+10]]+en[b[a+11]]+en[b[a+12]]+en[b[a+13]]+en[b[a+14]]+en[b[a+15]]}function Yi(b,a=0){const p=Be(b,a);if(!validate(p))throw TypeError("Stringified UUID is invalid");return p}const mn=null;function wr(b,a,p){if(sn.randomUUID&&!a&&!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,a){p=p||0;for(let x=0;x<16;++x)a[p+x]=w[x];return a}return Be(w)}const ce=wr;var mr=Ln(918);const Ee="elli:remoting",Mn="elli:remoting:response",nt="elli:remoting:exception",On=({messageType:b,messageBody:a,onewayMsg:p=!1})=>({requestId:p?null:ce(),source:Ee,type:b,body:a}),Qn=b=>{const{targetWin:a,targetOrigin:p,messageType:w,messageBody:x}=b,E=On({messageType:w,messageBody:x});a.postMessage(E,p)};class Fe{#s;#n;#e=new Map;#o=new Map;#f=null;#r=new Map;constructor(a,p){if(!a)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#s=p,this.#n=a}#c=()=>{const a=Date.now(),p=[];this.#o.forEach((w,x)=>{const{requestId:E,cancelTime:I}=w;this.#n.debug(`Checking response timeout for requestId: ${E}) @ ${I??""}`),w.cancelTime&&w.cancelTime<a&&(this.#n.debug(`Detected response timeout for requestId: ${E}...`),p.push(x),w.resolve(),this.#n.debug(`Aborted waiting for response to requestid: ${E})`))}),p.forEach(w=>{this.#n.debug(`removing invocations with requestId ${w} from cache since response time has expired`),this.#o.delete(w)}),this.#o.size===0&&(this.#n.debug("stopping response monitor"),this.#d())};#g=()=>{this.#f===null&&(this.#n.debug("Staring response timeout evaluator"),this.#f=window.setInterval(this.#c,200))};#d=()=>{this.#f!==null&&(window.clearInterval(this.#f),this.#f=null,this.#n.debug("Stopped response timeout evaluator"))};#l=a=>{const p=this.#o.get(a);return this.#n.debug(`serving requestId: ${a}`),this.#o.delete(a),p};#i=a=>{const{requestId:p}=a;this.#n.debug(`Response received for invocation requestId: ${p}`);const w=this.#l(p);return w?(w.resolve(a.body),!0):(this.#n.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#t=a=>{this.#n.debug(`Exception received for invocation (requestId = ${a.requestId})`);const p=this.#l(a.requestId);return p?(p.reject(new Error(a.body)),!0):(this.#n.warn(`Received exception for stale/invalid request (requestId = ${a.requestId})`),!1)};#v=({sourceWin:a,sourceOrigin:p,message:w})=>{this.#n.debug(`Received message of type "${w.type}"`);const x=this.#e.get(w.type);return x?(x.forEach(E=>{this.#n.debug(`Invoking message handler ${E.name}`),E({sourceWin:a,sourceOrigin:p,requestId:w.requestId,type:w.type,body:w.body})}),!0):!1};#u=a=>{if(this.#n.debug(`Remoting: Received message ${JSON.stringify(a.data)}`),this.#r.size===0||!a.source)return!1;const p=this.#r.get(a.source);return!p||a?.data?.source!==Ee?!1:(a.data.type===Mn?this.#i(a.data):a.data.type===nt?this.#t(a.data):this.#v({sourceWin:a.source,sourceOrigin:p,message:a.data}),!0)};addSender=a=>{const{origin:p,window:w}=a;if(!p)throw new Error("origin is required");if(!w)throw new Error("window is required");this.#r.set(w,p)};initialize=a=>{a.removeEventListener("message",this.#u),a.addEventListener("message",this.#u),this.#n.debug(`initialized remoting id: ${this.#s}`)};close=()=>{window.removeEventListener("message",this.#u),this.#n.debug(`closed remoting id: ${this.#s}`)};invoke=a=>{const{targetWin:p,targetOrigin:w,messageType:x,messageBody:E,responseTimeoutMs:I}=a;return new Promise((Y,nn)=>{const Q=On({messageType:x,messageBody:E});this.#o.set(Q.requestId,{requestId:Q.requestId,resolve:Y,reject:nn,cancelTime:I?Date.now()+Number.parseInt(I,10):null}),p.postMessage(Q,w);const{requestId:jn}=Q;this.#n.debug(`Posted invocation message of type ${x} requestId: ${jn||""}`),I&&(this.#n.debug(`starting response monitor for requestId: ${jn||""} for ${I} ms`),this.#g())})};listen=a=>{const{messageType:p,callback:w}=a,x=this.#e.get(p)||[];x.push(w),this.#e.set(p,x)};send=a=>{const{targetWin:p,targetOrigin:w,messageType:x,messageBody:E}=a,I=On({messageType:x,messageBody:E,onewayMsg:!0});p.postMessage(I,w),this.#n.debug(`Posted one-way message of type "${x}"`)};removeSender=a=>{const{window:p}=a;p&&this.#r.delete(p)};respond=a=>{const{targetWin:p,targetOrigin:w,requestId:x,response:E}=a,I=On({messageType:Mn,messageBody:E});I.requestId=x,p.postMessage(I,w),this.#n.debug(`Response sent to caller for invocation requestId: ${x}`)};raiseException=a=>{const{targetWin:p,targetOrigin:w,requestId:x,ex:E}=a,I=On({messageType:nt,messageBody:E});I.requestId=x,p.postMessage(I,w),this.#n.debug(`Exception sent to caller for invocation. requestId: ${x}`)}}var q=(b=>(b.GuestClose="guest:close",b.GuestEventSubscribe="guest:eventSubscribe",b.GuestEventUnsubscribe="guest:eventUnsubscribe",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))(q||{});class Vn{__TYPE__="Proxy";id;objectType;constructor(a,p){this.id=a,this.objectType=p}}const br=b=>b?.constructor?.name==="Proxy"||b?.constructor?.name==="ScriptingObjectProxy"||b?.__TYPE__==="Proxy";class Rn{name;objectId;id;constructor(a){const{name:p,objectId:w}=a;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 ae{static[Symbol.hasInstance](a){return a.getType?.()==="ProxyEvent"}#s;objectId;name;id;getType(){return"ProxyEvent"}constructor(a){const{name:p,objectId:w,eventSrc:x}=a;this.objectId=w,this.name=p,this.#s=x,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=a=>this.#s.subscribe({eventId:this.id,callback:a});unsubscribe=a=>{this.#s.unsubscribe({eventId:this.id,token:a})}}const Gn=b=>b instanceof Rn,le=(b,a)=>`${b.toLowerCase()}.${a.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:a}=new URL(b);return a==="null"||!a?b:a}catch{const{origin:p}=new URL(b,document.baseURI);return p}},et=()=>window.self!==window.parent,yt=(b,a)=>{const p=a||document.body,w=document.defaultView?.getComputedStyle?.(p,null),x=w?w[b]:"0";return parseInt(x,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 a=window,p=w=>{if(xr.test(w.origin)){const{source:x,type:E}=w.data||{};if(x===yr&&E===q.HandShake){const{origin:I}=w,Y=w.source;Qn({targetWin:Y,targetOrigin:I,messageType:q.HandShakeAck,messageBody:{}}),a.removeEventListener("message",p),b({origin:I,window:Y})}}};a.addEventListener("message",p)}});let Se=!1;const Ar=b=>{Se=b},zn=(b=null)=>{let a=b;const p=()=>{if(!a&&(a=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!a))throw new Error("Guest definition not found");return a};window.elli=window.elli??{},window.elli.script={guest:{create:async(w,x)=>p().addScript(w,x)},connect:async w=>p().connect(w),getObject:async w=>p().getObject(w),setLogLevel:w=>p().setLogLevel(w),subscribe:(w,x,E,I)=>p().subscribe({eventId:`${w}.${x}`,callback:Y=>E(Y?.obj,Y?.eventParams,Y?.eventOptions),criteria:I?.criteria}),unsubscribe:(w,x,E)=>p().unsubscribe({eventId:`${w}.${x}`,token:E})}};zn();var Yn=(b=>(b.OBJECT="object",b.VALUE="value",b))(Yn||{});const Et=12e4,Me={eventFeedback:!0},bn=()=>{const{document:b}=window,a=b.body,p=b.documentElement,x={height:a.offsetHeight+yt("marginTop")+yt("marginBottom"),width:Math.max(a.scrollWidth,p.scrollWidth)};Qn({targetWin:window.parent,targetOrigin:De(b.referrer||he()),messageType:q.GuestResize,messageBody:x}),window.removeEventListener("load",bn)};et()&&window.addEventListener("load",bn);const St={"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","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},It=["click","scroll","keypress","touchstart"],Er=()=>{const b=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_pui-microfe_master/234/libs/ssf-guest/lib/guest.ts",a=b?new URL(b).hostname:"localhost";return St[a]||St["cdn.mortgagetech.q1.ice.com"]};class ge{#s;#n;#e;#o=!1;#f=null;#r=!1;#c=new Map;#g=null;#d=null;#l=null;#i=null;#t=null;#v=!1;#u=null;#h=null;#p=null;#b=!0;#x=Et;#w;#_=null;constructor(a){const{console:p=!1,url:w=window.__ICE__?.diagnosticsUrl||Er(),index:x="ssf-guest-v2",team:E="ICE",appName:I="SSF Guest V2 Application"}=a?.logger??{};this.#w=a?.logger,this.#v=a?.usesDevConnectAPI??!1,this.#b=a?.keepAlive??!0,this.#x=a?.keepAliveInterval??Et;const Y=p?(0,on.Console)():(0,on.http)(w);this.#n=a?.appLogger??(0,on.logger)({transport:Y,index:x,team:E,appName:I}),(0,on.webvitals)(this.#n),(0,on.logUnhandledErrors)(this.#n),this.#s=ce(),this.#e=new Fe(this.#n,this.#s),zn(this),this.#n.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#s})}#a=()=>({guestId:this.#g,guestTitle:this.#d,guestUrl:this.#l});#m=a=>{if(!a||!a.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 Vn(a.objectId,a.objectType);return a.functions&&a.functions.forEach(w=>{Object.defineProperty(p,w,{value:async(...x)=>this.#y({objectId:p.id,functionName:w,functionParams:[].slice.call(x)}),enumerable:!0})}),a.events&&a.events.forEach(w=>{Object.defineProperty(p,w,{value:new ae({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:a,functionName:p,functionParams:w})=>{this.#n.debug(`Invoking scripting object method ${a}.${p}()...`);const x=[];if(w)for(let Y=0;Y<w.length;Y+=1){const nn=w[Y];nn instanceof Promise&&x.push(nn.then(Q=>{w[Y]=Q}))}await Promise.all(x);const E=await this.#e.invoke({targetWin:this.#t,targetOrigin:this.#i,messageType:q.ObjectInvoke,messageBody:{objectId:a,functionName:p,functionParams:w}}),I=this.#E(E);return this.#n.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:a,scriptingMethod:p,...this.#a()}),I};#A(a,p){return Object.entries(p).every(([w,x])=>{const E=a[w];if("eq"in x)return E===x.eq;if("in"in x)return Array.isArray(x.in)&&x.in.includes(E);if("includes"in x)return Array.isArray(E)&&E.includes(x.includes);if("gt"in x){const I=typeof E=="number"?E:Number(E);return!Number.isNaN(I)&&I>x.gt}if("lt"in x){const I=typeof E=="number"?E:Number(E);return!Number.isNaN(I)&&I<x.lt}if("regex"in x)try{const I=new RegExp(x.regex);return typeof E=="string"&&I.test(E)}catch{return!1}return!1})}#E=a=>a?.type==="object"&&"object"in a?this.#m(a.object):a?.type==="value"?a.value:a;#S=({body:a})=>{a?.logLevel&&(this.#n.setLogLevel(a.logLevel),this.#n.debug(`Log level changed by host to ${a.logLevel}`)),this.#g=a?.guestId??null,this.#d=a?.guestTitle??null,this.#l=a?.guestUrl??null,this.#n.audit({message:"Received configuration from Host",...this.#a()})};#I=()=>{window.focus()};#L=async()=>{await this.close(),window.close()};#O=()=>{et()||setInterval(()=>{this.#t?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#R=async({sourceWin:a,sourceOrigin:p,requestId:w,body:x})=>{const E=this.#m(x.object);if(E){const I=le(E.id,x.eventName);this.#n.debug(`Received event "${I}" from host`);let Y;x.eventHandler?Y=[{callback:window[x.eventHandler],token:ce()}]:Y=this.#c.get(I)||[];const nn=[];if(Y.forEach(Q=>{if(Q?.callback){if(Q.criteria&&!(x.eventParams?this.#A(x.eventParams,Q.criteria):!1)){this.#n.debug(`Event ${I} did not match criteria for subscriber ${Q.callback.name}`);return}this.#n.debug(`Invoking event subscriber ${Q.callback.name} for event ${I}`);const jn=Q.callback({obj:E,eventName:x.eventName,eventParams:x.eventParams,eventOptions:x.eventOptions});jn instanceof Promise?nn.push(jn):typeof jn<"u"&&nn.push(Promise.resolve(jn))}}),w){const Q=await Promise.all(nn);this.#e.respond({targetWin:a,targetOrigin:p,requestId:w,response:Q}),this.#n.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:I,scriptingObject:E.id,...this.#a()})}else this.#n.audit({message:"Guest proxy processed event from host",scriptingEventId:I,scriptingObject:E.id,...this.#a()})}};#T=async()=>{!this.#u||!this.#h||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#u,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#C=async()=>{if(this.#u&&this.#h&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#u,client_id:this.#h}).toString()}`,{method:"POST"})}catch(a){this.#n.error(`Error revoking token. ${a.message}`)}finally{this.#u=null,this.#h=null}};#P=async()=>{if(this.#b)try{const a=await this.getObject("application");a?(this.#_=(0,mr.throttle)(async()=>{try{await a.keepSessionAlive(),await this.#T()}catch(p){this.#n.error(`Error keeping session alive. ${p.message}`)}},this.#x,{leading:!1}),It.forEach(p=>{document.addEventListener(p,this.#_)})):this.#n.warn("Application object not available to send keep alive")}catch(a){this.#n.error(`Error getting application object. ${a.message}`)}};#W=async()=>{try{const a=await this.getObject("module");if(a?.log&&!this.#w.console){const{index:p="",team:w="",appName:x=""}=this.#w||{};if(!p||!w||!x)throw new Error("Missing one of required logger options: index, team, appName");this.#n=(0,on.logger)({transport:(0,on.parentApp)(a),index:p,team:w,appName:x})}}catch(a){this.#n.info(`Module object not exposed from hosting application. using local logger instance. ${a.message}`)}};addScript=async(a,p)=>{if(!this.#o&&a){await this.connect();const w=document.createElement("script");w.setAttribute("src",a),w.setAttribute("type","module"),await new Promise(x=>{const E=()=>{w?.removeEventListener?.("load",E),this.#o=!0,Ar(!0),x()};w.addEventListener("load",E),this.#f=p.appendChild(w)})}};close=async()=>{this.#r&&(this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestClose,messageBody:{}}),this.#e.removeSender({origin:this.#i,window:this.#t}),this.#e.close(),this.#_&&It.forEach(a=>{document.removeEventListener(a,this.#_)}),await this.#C(),window.removeEventListener("beforeunload",this.close),this.#r=!1,this.#n.audit({message:"Guest disconnected from host",...this.#a()}),this.#g=null,this.#l=null,this.#d=null)};connect=async a=>{if(!this.#r){let p=window,w={...Me};if(a){p=a.window||p;const E={...a};delete E.window,w=Object.assign(w,E)}const x=await At();this.#i=x.origin,this.#t=x.window,this.#e.initialize(p),this.#e.addSender({origin:this.#i,window:this.#t}),this.#e.listen({messageType:q.ObjectEvent,callback:this.#R.bind(this)}),this.#e.listen({messageType:q.HostConfig,callback:this.#S.bind(this)}),this.#e.listen({messageType:q.GuestFocus,callback:this.#I.bind(this)}),this.#e.listen({messageType:q.HostClose,callback:this.#L.bind(this)}),this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestReady,messageBody:w}),this.#r=!0,this.#O(),this.#v&&await this.getAuthToken(),await this.#P(),window.addEventListener("beforeunload",this.close),this.#n.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#u&&this.#r)try{const a=await this.getObject("auth");if(a){const p=await a.getAccessToken();this.#u=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(a){this.#n.error(`Error getting access token from auth object. ${a.message}`)}return this.#u};getObject=async a=>{if(this.#n.debug(`Retrieving scripting object "${a}" from host...`),!this.#r)throw new Error("Not connected to host");const p=await this.#e.invoke({targetWin:this.#t,targetOrigin:this.#i,messageType:q.ObjectGet,messageBody:{objectId:a}}),w=this.#m(p.object);return this.#n.audit({message:"Received scripting object from host",scriptingObject:a,...this.#a()}),w};listObjects=async()=>{if(this.#n.debug("Retrieving names of scripting objects exposed by host..."),!this.#r)throw new Error("Not connected to host");const a=await this.#e.invoke({targetWin:this.#t,targetOrigin:this.#i,messageType:q.ListObjects,messageBody:{}});return this.#n.audit({message:"Received names of all scripting objects exposed by host",objects:a,...this.#a()}),a};removeScript=()=>{if(this.#o&&this.#f){const{parentNode:a}=this.#f;a?.removeChild?.(this.#f)}};setLogLevel=a=>{this.#n.setLogLevel(a),this.#n.debug(`Log level changed by guest to ${a}`)};subscribe=a=>{const{eventId:p,criteria:w,callback:x}=a;this.#n.debug(`Registering subscription for event ${p}`);const E=this.#c.get(p.toLowerCase())||[],I=ce();return E.push({callback:x,token:I,criteria:w}),this.#c.set(p.toLowerCase(),E),this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestEventSubscribe,messageBody:{eventId:p,criteria:w,token:I}}),this.#n.debug(`Subscribed to event ${p} with token ${I}`),I};unsubscribe=a=>{const{eventId:p,token:w}=a,x=this.#c.get(p.toLowerCase());if(x){const E=x.length,I=x.filter(Y=>Y.token!==w);I.length<E&&(this.#c.set(p.toLowerCase(),I),this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestEventUnsubscribe,messageBody:{eventId:p,token:w}}),this.#n.debug(`Unsubscribed from event ${p}`))}}}})(),_r})());
|
|
27
|
+
}`;var W=yo(function(){return M(s,S+"return "+m).apply(f,o)});if(W.source=m,Ui(W))throw W;return W}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(Br,"");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(k(e)){var i="separator"in e?e.separator:i;t="length"in e?P(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 c=t-He(r);if(c<1)return r;var h=o?xe(o,0,c).join(""):n.slice(0,c);if(i===f)return h+r;if(o&&(c+=h.length-c),Bi(i)){if(n.slice(c).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?c:m)}}else if(n.indexOf(An(i),c)!=c){var y=h.lastIndexOf(i);y>-1&&(h=h.slice(0,y))}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):Ff(n):n.match(e)||[]}var yo=U(function(n,e){try{return xn(n,f,e)}catch(t){return Ui(t)?t:new T(t)}}),Ad=ie(function(n,e){return Cn(e,function(t){t=Jn(t),te(n,t,Pi(n[t],n))}),n});function Ed(n){var e=n==null?0:n.length,t=L();return n=e?Z(n,function(r){if(typeof r[1]!="function")throw new Pn(mn);return[t(r[0]),r[1]]}):[],U(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 Sd(n){return Jc(Un(n,Mn))}function Gi(n){return function(){return n}}function Id(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=U(function(n,e){return function(t){return pt(t,n,e)}}),Pd=U(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&&!(k(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=Qt(e,un(e)));var s=!(k(t)&&"chain"in t)||!!t.chain,o=se(n);return Cn(i,function(c){var h=e[c];n[c]=h,o&&(n.prototype[c]=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._=uc),this}function qi(){}function Ud(n){return n=P(n),U(function(e){return is(e,n)})}var Bd=mi(Z),Fd=mi(Su),Dd=mi(Kr);function Ao(n){return Ii(n)?zr(Jn(n)):ga(n)}function Md(n){return function(e){return n==null?f:Te(n,e)}}var Gd=Is(),$d=Is(!0);function Hi(){return[]}function Ki(){return!1}function Nd(){return{}}function qd(){return""}function Hd(){return!0}function Kd(n,e){if(n=P(n),n<1||n>Yn)return[];var t=bn,r=an(n,bn);e=L(e),n-=bn;for(var i=kr(r,e);++t<n;)e(t);return i}function zd(n){return C(n)?Z(n,Jn):En(n)?[n]:pn(qs(G(n)))}function Yd(n){var e=++rc;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,L(e,2),ui):f}function jd(n){return Ou(n,wn)}function np(n,e){return Ou(n,L(e,2))}function ep(n){return n&&n.length?Jt(n,wn,ci):f}function tp(n,e){return n&&n.length?Jt(n,L(e,2),ci):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,L(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=Ja,u.compact=Qa,u.concat=Va,u.cond=Ed,u.conforms=Sd,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=ja,u.differenceBy=nl,u.differenceWith=el,u.drop=tl,u.dropRight=rl,u.dropRightWhile=il,u.dropWhile=ul,u.fill=sl,u.filter=fh,u.flatMap=lh,u.flatMapDeep=hh,u.flatMapDepth=gh,u.flatten=Ys,u.flattenDeep=ol,u.flattenDepth=fl,u.flip=Ph,u.flow=Ld,u.flowRight=Od,u.fromPairs=cl,u.functions=Og,u.functionsIn=Rg,u.groupBy=dh,u.initial=ll,u.intersection=hl,u.intersectionBy=gl,u.intersectionWith=dl,u.invert=Cg,u.invertBy=Pg,u.invokeMap=vh,u.iteratee=$i,u.keyBy=_h,u.keys=un,u.keysIn=_n,u.map=ar,u.mapKeys=Ug,u.mapValues=Bg,u.matches=Rd,u.matchesProperty=Td,u.memoize=hr,u.merge=Fg,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=Bd,u.overArgs=Uh,u.overEvery=Fd,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=wl,u.pullAll=ks,u.pullAllBy=ml,u.pullAllWith=bl,u.pullAt=xl,u.range=Gd,u.rangeRight=$d,u.rearg=Bh,u.reject=yh,u.remove=yl,u.rest=Fh,u.reverse=Ti,u.sampleSize=Eh,u.set=Ng,u.setWith=qg,u.shuffle=Sh,u.slice=Al,u.sortBy=Oh,u.sortedUniq=Tl,u.sortedUniqBy=Cl,u.split=ld,u.spread=Dh,u.tail=Pl,u.take=Wl,u.takeRight=Ul,u.takeRightWhile=Bl,u.takeWhile=Fl,u.tap=Ql,u.throttle=Mh,u.thru=cr,u.toArray=ao,u.toPairs=_o,u.toPairsIn=wo,u.toPath=zd,u.toPlainObject=ho,u.transform=Hg,u.unary=Gh,u.union=Dl,u.unionBy=Ml,u.unionWith=Gl,u.uniq=$l,u.uniqBy=Nl,u.uniqWith=ql,u.unset=Kg,u.unzip=Ci,u.unzipWith=Xs,u.update=zg,u.updateWith=Yg,u.values=Ve,u.valuesIn=Zg,u.without=Hl,u.words=xo,u.wrap=$h,u.xor=Kl,u.xorBy=zl,u.xorWith=Yl,u.zip=Zl,u.zipObject=kl,u.zipObjectDeep=Xl,u.zipWith=Jl,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=Id,u.divide=Xd,u.endsWith=Vg,u.eq=Hn,u.escape=jg,u.escapeRegExp=nd,u.every=oh,u.find=ch,u.findIndex=Ks,u.findKey=yg,u.findLast=ah,u.findLastIndex=zs,u.findLastKey=Ag,u.floor=Jd,u.forEach=Qs,u.forEachRight=Vs,u.forIn=Eg,u.forInRight=Sg,u.forOwn=Ig,u.forOwnRight=Lg,u.get=Fi,u.gt=Zh,u.gte=kh,u.has=Tg,u.hasIn=Di,u.head=Zs,u.identity=wn,u.includes=ph,u.indexOf=al,u.inRange=Xg,u.invoke=Wg,u.isArguments=We,u.isArray=C,u.isArrayBuffer=Xh,u.isArrayLike=vn,u.isArrayLikeObject=V,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=k,u.isObjectLike=J,u.isPlainObject=xt,u.isRegExp=Bi,u.isSafeInteger=cg,u.isSet=co,u.isString=pr,u.isSymbol=En,u.isTypedArray=Qe,u.isUndefined=ag,u.isWeakMap=lg,u.isWeakSet=hg,u.join=pl,u.kebabCase=ed,u.last=Fn,u.lastIndexOf=vl,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=_l,u.noConflict=Wd,u.noop=qi,u.now=lr,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=cd,u.result=$g,u.round=ip,u.runInContext=l,u.sample=Ah,u.size=Ih,u.snakeCase=ad,u.some=Lh,u.sortedIndex=El,u.sortedIndexBy=Sl,u.sortedIndexOf=Il,u.sortedLastIndex=Ll,u.sortedLastIndexBy=Ol,u.sortedLastIndexOf=Rl,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=P,u.toLength=lo,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 kn(u,function(e,t){N.call(u.prototype,t)||(n[t]=e)}),n}(),{chain:!1}),u.VERSION=en,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),Cn(["drop","take"],function(n,e){F.prototype[n]=function(t){t=t===f?1:rn(P(t),0);var r=this.__filtered__&&!e?new F(this):this.clone();return r.__filtered__?r.__takeCount__=an(t,r.__takeCount__):r.__views__.push({size:an(t,bn),type:n+(r.__dir__<0?"Right":"")}),r},F.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;F.prototype[n]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:L(i,3),type:t}),s.__filtered__=s.__filtered__||r,s}}),Cn(["head","last"],function(n,e){var t="take"+(e?"Right":"");F.prototype[n]=function(){return this[t](1).value()[0]}}),Cn(["initial","tail"],function(n,e){var t="drop"+(e?"":"Right");F.prototype[n]=function(){return this.__filtered__?new F(this):this[t](1)}}),F.prototype.compact=function(){return this.filter(wn)},F.prototype.find=function(n){return this.filter(n).head()},F.prototype.findLast=function(n){return this.reverse().find(n)},F.prototype.invokeMap=U(function(n,e){return typeof n=="function"?new F(this):this.map(function(t){return pt(t,n,e)})}),F.prototype.reject=function(n){return this.filter(gr(L(n)))},F.prototype.slice=function(n,e){n=P(n);var t=this;return t.__filtered__&&(n>0||e<0)?new F(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=P(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},F.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},F.prototype.toArray=function(){return this.take(bn)},kn(F.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__,c=r?[1]:arguments,h=o instanceof F,v=c[0],_=h||C(o),m=function(B){var D=i.apply(u,pe([B],c));return r&&y?D[0]:D};_&&t&&typeof v=="function"&&v.length!=1&&(h=_=!1);var y=this.__chain__,S=!!this.__actions__.length,O=s&&!y,W=h&&!S;if(!s&&_){o=W?o:new F(this);var R=n.apply(o,c);return R.__actions__.push({func:cr,args:[m],thisArg:f}),new Wn(R,y)}return O&&W?n.apply(this,c):(R=this.thru(m),O?r?R.value()[0]:R.value():R)})}),Cn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Bt[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(C(s)?s:[],i)}return this[t](function(o){return e.apply(C(o)?o:[],i)})}}),kn(F.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,Vn).name]=[{name:"wrapper",func:f}],F.prototype.clone=xc,F.prototype.reverse=yc,F.prototype.value=Ac,u.prototype.at=Vl,u.prototype.chain=jl,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=nc();fn._=Ut,je=function(){return Ut}.call(sn,X,sn,$),je!==f&&($.exports=je)}).call(this)}},Ae={};function Ln($){var sn=Ae[$];if(sn!==void 0)return sn.exports;var X=Ae[$]={id:$,loaded:!1,exports:{}};return Ue[$].call(X.exports,X,X.exports,Ln),X.loaded=!0,X.exports}Ln.d=($,sn)=>{for(var X in sn)Ln.o(sn,X)&&!Ln.o($,X)&&Object.defineProperty($,X,{enumerable:!0,get:sn[X]})},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 X;const je=new Uint8Array(16);function f(){if(!X&&(X=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!X))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return X(je)}const en=[];for(let b=0;b<256;++b)en.push((b+256).toString(16).slice(1));function Be(b,a=0){return en[b[a+0]]+en[b[a+1]]+en[b[a+2]]+en[b[a+3]]+"-"+en[b[a+4]]+en[b[a+5]]+"-"+en[b[a+6]]+en[b[a+7]]+"-"+en[b[a+8]]+en[b[a+9]]+"-"+en[b[a+10]]+en[b[a+11]]+en[b[a+12]]+en[b[a+13]]+en[b[a+14]]+en[b[a+15]]}function Yi(b,a=0){const p=Be(b,a);if(!validate(p))throw TypeError("Stringified UUID is invalid");return p}const mn=null;function wr(b,a,p){if(sn.randomUUID&&!a&&!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,a){p=p||0;for(let x=0;x<16;++x)a[p+x]=w[x];return a}return Be(w)}const ce=wr;var mr=Ln(918);const Ee="elli:remoting",Mn="elli:remoting:response",nt="elli:remoting:exception",On=({messageType:b,messageBody:a,onewayMsg:p=!1})=>({requestId:p?null:ce(),source:Ee,type:b,body:a}),Qn=b=>{const{targetWin:a,targetOrigin:p,messageType:w,messageBody:x}=b,E=On({messageType:w,messageBody:x});a.postMessage(E,p)};class Fe{#u;#n;#e=new Map;#s=new Map;#o=null;#r=new Map;#a;constructor(a,p,w){if(!a)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#u=p,this.#n=a,this.#a=w?.unsafeAllowAnyGuestOrigin??!1}#l=a=>this.#a?"*":a;#d=()=>{const a=Date.now(),p=[];this.#s.forEach((w,x)=>{const{requestId:E,cancelTime:I}=w;this.#n.debug(`Checking response timeout for requestId: ${E}) @ ${I??""}`),w.cancelTime&&w.cancelTime<a&&(this.#n.debug(`Detected response timeout for requestId: ${E}...`),p.push(x),w.resolve(),this.#n.debug(`Aborted waiting for response to requestid: ${E})`))}),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.#i())};#p=()=>{this.#o===null&&(this.#n.debug("Staring response timeout evaluator"),this.#o=window.setInterval(this.#d,200))};#i=()=>{this.#o!==null&&(window.clearInterval(this.#o),this.#o=null,this.#n.debug("Stopped response timeout evaluator"))};#t=a=>{const p=this.#s.get(a);return this.#n.debug(`serving requestId: ${a}`),this.#s.delete(a),p};#v=a=>{const{requestId:p}=a;this.#n.debug(`Response received for invocation requestId: ${p}`);const w=this.#t(p);return w?(w.resolve(a.body),!0):(this.#n.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#f=a=>{this.#n.debug(`Exception received for invocation (requestId = ${a.requestId})`);const p=this.#t(a.requestId);return p?(p.reject(new Error(a.body)),!0):(this.#n.warn(`Received exception for stale/invalid request (requestId = ${a.requestId})`),!1)};#h=({sourceWin:a,sourceOrigin:p,message:w})=>{this.#n.debug(`Received message of type "${w.type}"`);const x=this.#e.get(w.type);return x?(x.forEach(E=>{this.#n.debug(`Invoking message handler ${E.name}`),E({sourceWin:a,sourceOrigin:p,requestId:w.requestId,type:w.type,body:w.body})}),!0):!1};#c=a=>{if(this.#n.debug(`Remoting: Received message ${JSON.stringify(a.data)}`),this.#r.size===0||!a.source)return!1;const p=this.#r.get(a.source);return!p||a?.data?.source!==Ee?!1:(a.data.type===Mn?this.#v(a.data):a.data.type===nt?this.#f(a.data):this.#h({sourceWin:a.source,sourceOrigin:p,message:a.data}),!0)};addSender=a=>{const{origin:p,window:w}=a;if(!p)throw new Error("origin is required");if(!w)throw new Error("window is required");this.#r.set(w,p)};initialize=a=>{a.removeEventListener("message",this.#c),a.addEventListener("message",this.#c),this.#n.debug(`initialized remoting id: ${this.#u}`)};close=()=>{window.removeEventListener("message",this.#c),this.#n.debug(`closed remoting id: ${this.#u}`)};invoke=a=>{const{targetWin:p,targetOrigin:w,messageType:x,messageBody:E,responseTimeoutMs:I}=a;return new Promise((Y,nn)=>{const Q=On({messageType:x,messageBody:E});this.#s.set(Q.requestId,{requestId:Q.requestId,resolve:Y,reject:nn,cancelTime:I?Date.now()+Number.parseInt(I,10):null}),p.postMessage(Q,this.#l(w));const{requestId:jn}=Q;this.#n.debug(`Posted invocation message of type ${x} requestId: ${jn||""}`),I&&(this.#n.debug(`starting response monitor for requestId: ${jn||""} for ${I} ms`),this.#p())})};listen=a=>{const{messageType:p,callback:w}=a,x=this.#e.get(p)||[];x.push(w),this.#e.set(p,x)};send=a=>{const{targetWin:p,targetOrigin:w,messageType:x,messageBody:E}=a,I=On({messageType:x,messageBody:E,onewayMsg:!0});p.postMessage(I,this.#l(w)),this.#n.debug(`Posted one-way message of type "${x}"`)};removeSender=a=>{const{window:p}=a;p&&this.#r.delete(p)};respond=a=>{const{targetWin:p,targetOrigin:w,requestId:x,response:E}=a,I=On({messageType:Mn,messageBody:E});I.requestId=x,p.postMessage(I,this.#l(w)),this.#n.debug(`Response sent to caller for invocation requestId: ${x}`)};raiseException=a=>{const{targetWin:p,targetOrigin:w,requestId:x,ex:E}=a,I=On({messageType:nt,messageBody:E});I.requestId=x,p.postMessage(I,this.#l(w)),this.#n.debug(`Exception sent to caller for invocation. requestId: ${x}`)}}var q=(b=>(b.GuestClose="guest:close",b.GuestEventSubscribe="guest:eventSubscribe",b.GuestEventUnsubscribe="guest:eventUnsubscribe",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))(q||{});class Vn{__TYPE__="Proxy";id;objectType;constructor(a,p){this.id=a,this.objectType=p}}const br=b=>b?.constructor?.name==="Proxy"||b?.constructor?.name==="ScriptingObjectProxy"||b?.__TYPE__==="Proxy";class Rn{name;objectId;id;constructor(a){const{name:p,objectId:w}=a;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 ae{static[Symbol.hasInstance](a){return a.getType?.()==="ProxyEvent"}#u;objectId;name;id;getType(){return"ProxyEvent"}constructor(a){const{name:p,objectId:w,eventSrc:x}=a;this.objectId=w,this.name=p,this.#u=x,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=a=>this.#u.subscribe({eventId:this.id,callback:a});unsubscribe=a=>{this.#u.unsubscribe({eventId:this.id,token:a})}}const Gn=b=>b instanceof Rn,le=(b,a)=>`${b.toLowerCase()}.${a.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:a}=new URL(b);return a==="null"||!a?b:a}catch{const{origin:p}=new URL(b,document.baseURI);return p}},et=()=>window.self!==window.parent,yt=(b,a)=>{const p=a||document.body,w=document.defaultView?.getComputedStyle?.(p,null),x=w?w[b]:"0";return parseInt(x,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 a=window,p=w=>{if(xr.test(w.origin)){const{source:x,type:E}=w.data||{};if(x===yr&&E===q.HandShake){const{origin:I}=w,Y=w.source;Qn({targetWin:Y,targetOrigin:I,messageType:q.HandShakeAck,messageBody:{}}),a.removeEventListener("message",p),b({origin:I,window:Y})}}};a.addEventListener("message",p)}});let Se=!1;const Ar=b=>{Se=b},zn=(b=null)=>{let a=b;const p=()=>{if(!a&&(a=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!a))throw new Error("Guest definition not found");return a};window.elli=window.elli??{},window.elli.script={guest:{create:async(w,x)=>p().addScript(w,x)},connect:async w=>p().connect(w),getObject:async w=>p().getObject(w),setLogLevel:w=>p().setLogLevel(w),subscribe:(w,x,E,I)=>p().subscribe({eventId:`${w}.${x}`,callback:Y=>E(Y?.obj,Y?.eventParams,Y?.eventOptions),criteria:I?.criteria}),unsubscribe:(w,x,E)=>p().unsubscribe({eventId:`${w}.${x}`,token:E})}};zn();var Yn=(b=>(b.OBJECT="object",b.VALUE="value",b))(Yn||{});const Et=12e4,Me={eventFeedback:!0},bn=()=>{const{document:b}=window,a=b.body,p=b.documentElement,x={height:a.offsetHeight+yt("marginTop")+yt("marginBottom"),width:Math.max(a.scrollWidth,p.scrollWidth)};Qn({targetWin:window.parent,targetOrigin:De(b.referrer||he()),messageType:q.GuestResize,messageBody:x}),window.removeEventListener("load",bn)};et()&&window.addEventListener("load",bn);const St={"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","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},It=["click","scroll","keypress","touchstart"],Er=()=>{const b=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_pui-microfe_2.22.x/4/libs/ssf-guest/lib/guest.ts",a=b?new URL(b).hostname:"localhost";return St[a]||St["cdn.mortgagetech.q1.ice.com"]};class ge{#u;#n;#e;#s=!1;#o=null;#r=!1;#a=new Map;#l=null;#d=null;#p=null;#i=null;#t=null;#v=!1;#f=null;#h=null;#c=null;#b=!0;#x=Et;#w;#_=null;constructor(a){const{console:p=!1,url:w=window.__ICE__?.diagnosticsUrl||Er(),index:x="ssf-guest-v2",team:E="ICE",appName:I="SSF Guest V2 Application"}=a?.logger??{};this.#w=a?.logger,this.#v=a?.usesDevConnectAPI??!1,this.#b=a?.keepAlive??!0,this.#x=a?.keepAliveInterval??Et;const Y=p?(0,on.Console)():(0,on.http)(w);this.#n=a?.appLogger??(0,on.logger)({transport:Y,index:x,team:E,appName:I}),(0,on.webvitals)(this.#n),(0,on.logUnhandledErrors)(this.#n),this.#u=ce(),this.#e=new Fe(this.#n,this.#u),zn(this),this.#n.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#u})}#g=()=>({guestId:this.#l,guestTitle:this.#d,guestUrl:this.#p});#m=a=>{if(!a||!a.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 Vn(a.objectId,a.objectType);return a.functions&&a.functions.forEach(w=>{Object.defineProperty(p,w,{value:async(...x)=>this.#y({objectId:p.id,functionName:w,functionParams:[].slice.call(x)}),enumerable:!0})}),a.events&&a.events.forEach(w=>{Object.defineProperty(p,w,{value:new ae({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:a,functionName:p,functionParams:w})=>{this.#n.debug(`Invoking scripting object method ${a}.${p}()...`);const x=[];if(w)for(let Y=0;Y<w.length;Y+=1){const nn=w[Y];nn instanceof Promise&&x.push(nn.then(Q=>{w[Y]=Q}))}await Promise.all(x);const E=await this.#e.invoke({targetWin:this.#t,targetOrigin:this.#i,messageType:q.ObjectInvoke,messageBody:{objectId:a,functionName:p,functionParams:w}}),I=this.#E(E);return this.#n.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:a,scriptingMethod:p,...this.#g()}),I};#A(a,p){return Object.entries(p).every(([w,x])=>{const E=a[w];if("eq"in x)return E===x.eq;if("in"in x)return Array.isArray(x.in)&&x.in.includes(E);if("includes"in x)return Array.isArray(E)&&E.includes(x.includes);if("gt"in x){const I=typeof E=="number"?E:Number(E);return!Number.isNaN(I)&&I>x.gt}if("lt"in x){const I=typeof E=="number"?E:Number(E);return!Number.isNaN(I)&&I<x.lt}if("regex"in x)try{const I=new RegExp(x.regex);return typeof E=="string"&&I.test(E)}catch{return!1}return!1})}#E=a=>a?.type==="object"&&"object"in a?this.#m(a.object):a?.type==="value"?a.value:a;#S=({body:a})=>{a?.logLevel&&(this.#n.setLogLevel(a.logLevel),this.#n.debug(`Log level changed by host to ${a.logLevel}`)),this.#l=a?.guestId??null,this.#d=a?.guestTitle??null,this.#p=a?.guestUrl??null,this.#n.audit({message:"Received configuration from Host",...this.#g()})};#I=()=>{window.focus()};#L=async()=>{await this.close(),window.close()};#O=()=>{et()||setInterval(()=>{this.#t?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#R=async({sourceWin:a,sourceOrigin:p,requestId:w,body:x})=>{const E=this.#m(x.object);if(E){const I=le(E.id,x.eventName);this.#n.debug(`Received event "${I}" from host`);let Y;x.eventHandler?Y=[{callback:window[x.eventHandler],token:ce()}]:Y=this.#a.get(I)||[];const nn=[];if(Y.forEach(Q=>{if(Q?.callback){if(Q.criteria&&!(x.eventParams?this.#A(x.eventParams,Q.criteria):!1)){this.#n.debug(`Event ${I} did not match criteria for subscriber ${Q.callback.name}`);return}this.#n.debug(`Invoking event subscriber ${Q.callback.name} for event ${I}`);const jn=Q.callback({obj:E,eventName:x.eventName,eventParams:x.eventParams,eventOptions:x.eventOptions});jn instanceof Promise?nn.push(jn):typeof jn<"u"&&nn.push(Promise.resolve(jn))}}),w){const Q=await Promise.all(nn);this.#e.respond({targetWin:a,targetOrigin:p,requestId:w,response:Q}),this.#n.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:I,scriptingObject:E.id,...this.#g()})}else this.#n.audit({message:"Guest proxy processed event from host",scriptingEventId:I,scriptingObject:E.id,...this.#g()})}};#T=async()=>{!this.#f||!this.#h||!this.#c||await fetch(`${this.#c}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#f,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#C=async()=>{if(this.#f&&this.#h&&this.#c)try{await fetch(`${this.#c}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#f,client_id:this.#h}).toString()}`,{method:"POST"})}catch(a){this.#n.error(`Error revoking token. ${a.message}`)}finally{this.#f=null,this.#h=null}};#P=async()=>{if(this.#b)try{const a=await this.getObject("application");a?(this.#_=(0,mr.throttle)(async()=>{try{await a.keepSessionAlive(),await this.#T()}catch(p){this.#n.error(`Error keeping session alive. ${p.message}`)}},this.#x,{leading:!1}),It.forEach(p=>{document.addEventListener(p,this.#_)})):this.#n.warn("Application object not available to send keep alive")}catch(a){this.#n.error(`Error getting application object. ${a.message}`)}};#W=async()=>{try{const a=await this.getObject("module");if(a?.log&&!this.#w.console){const{index:p="",team:w="",appName:x=""}=this.#w||{};if(!p||!w||!x)throw new Error("Missing one of required logger options: index, team, appName");this.#n=(0,on.logger)({transport:(0,on.parentApp)(a),index:p,team:w,appName:x})}}catch(a){this.#n.info(`Module object not exposed from hosting application. using local logger instance. ${a.message}`)}};addScript=async(a,p)=>{if(!this.#s&&a){await this.connect();const w=document.createElement("script");w.setAttribute("src",a),w.setAttribute("type","module"),await new Promise(x=>{const E=()=>{w?.removeEventListener?.("load",E),this.#s=!0,Ar(!0),x()};w.addEventListener("load",E),this.#o=p.appendChild(w)})}};close=async()=>{this.#r&&(this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestClose,messageBody:{}}),this.#e.removeSender({origin:this.#i,window:this.#t}),this.#e.close(),this.#_&&It.forEach(a=>{document.removeEventListener(a,this.#_)}),await this.#C(),window.removeEventListener("beforeunload",this.close),this.#r=!1,this.#n.audit({message:"Guest disconnected from host",...this.#g()}),this.#l=null,this.#p=null,this.#d=null)};connect=async a=>{if(!this.#r){let p=window,w={...Me};if(a){p=a.window||p;const E={...a};delete E.window,w=Object.assign(w,E)}const x=await At();this.#i=x.origin,this.#t=x.window,this.#e.initialize(p),this.#e.addSender({origin:this.#i,window:this.#t}),this.#e.listen({messageType:q.ObjectEvent,callback:this.#R.bind(this)}),this.#e.listen({messageType:q.HostConfig,callback:this.#S.bind(this)}),this.#e.listen({messageType:q.GuestFocus,callback:this.#I.bind(this)}),this.#e.listen({messageType:q.HostClose,callback:this.#L.bind(this)}),this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestReady,messageBody:w}),this.#r=!0,this.#O(),this.#v&&await this.getAuthToken(),await this.#P(),window.addEventListener("beforeunload",this.close),this.#n.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#f&&this.#r)try{const a=await this.getObject("auth");if(a){const p=await a.getAccessToken();this.#f=p?.access_token,this.#c=p?.host_name,this.#h=p?.client_id}else this.#n.warn("Auth object not available to get access token from host")}catch(a){this.#n.error(`Error getting access token from auth object. ${a.message}`)}return this.#f};getObject=async a=>{if(this.#n.debug(`Retrieving scripting object "${a}" from host...`),!this.#r)throw new Error("Not connected to host");const p=await this.#e.invoke({targetWin:this.#t,targetOrigin:this.#i,messageType:q.ObjectGet,messageBody:{objectId:a}}),w=this.#m(p.object);return this.#n.audit({message:"Received scripting object from host",scriptingObject:a,...this.#g()}),w};listObjects=async()=>{if(this.#n.debug("Retrieving names of scripting objects exposed by host..."),!this.#r)throw new Error("Not connected to host");const a=await this.#e.invoke({targetWin:this.#t,targetOrigin:this.#i,messageType:q.ListObjects,messageBody:{}});return this.#n.audit({message:"Received names of all scripting objects exposed by host",objects:a,...this.#g()}),a};removeScript=()=>{if(this.#s&&this.#o){const{parentNode:a}=this.#o;a?.removeChild?.(this.#o)}};setLogLevel=a=>{this.#n.setLogLevel(a),this.#n.debug(`Log level changed by guest to ${a}`)};subscribe=a=>{const{eventId:p,criteria:w,callback:x}=a;this.#n.debug(`Registering subscription for event ${p}`);const E=this.#a.get(p.toLowerCase())||[],I=ce();return E.push({callback:x,token:I,criteria:w}),this.#a.set(p.toLowerCase(),E),this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestEventSubscribe,messageBody:{eventId:p,criteria:w,token:I}}),this.#n.debug(`Subscribed to event ${p} with token ${I}`),I};unsubscribe=a=>{const{eventId:p,token:w}=a,x=this.#a.get(p.toLowerCase());if(x){const E=x.length,I=x.filter(Y=>Y.token!==w);I.length<E&&(this.#a.set(p.toLowerCase(),I),this.#e.send({targetWin:this.#t,targetOrigin:this.#i,messageType:q.GuestEventUnsubscribe,messageBody:{eventId:p,token:w}}),this.#n.debug(`Unsubscribed from event ${p}`))}}}})(),_r})());
|
|
28
28
|
|
|
29
|
-
//# sourceMappingURL=emuiSsfGuest.
|
|
29
|
+
//# sourceMappingURL=emuiSsfGuest.8402b07b7960210b16bf.js.map
|
|
Binary file
|