@elliemae/pui-app-bridge 2.32.3 → 2.33.0
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/e2e-host.html +1 -1
- package/dist/public/e2e-index.html +1 -1
- package/dist/public/frame.html +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/emuiAppBridge.98b48029059036b0b437.js +17 -0
- package/dist/public/js/emuiAppBridge.98b48029059036b0b437.js.br +0 -0
- package/dist/public/js/emuiAppBridge.98b48029059036b0b437.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.98b48029059036b0b437.js.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +8 -8
- 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 +8 -8
- package/dist/public/js/emuiAppBridge.86943da5890574791d90.js +0 -17
- package/dist/public/js/emuiAppBridge.86943da5890574791d90.js.br +0 -0
- package/dist/public/js/emuiAppBridge.86943da5890574791d90.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.86943da5890574791d90.js.map +0 -1
package/dist/umd/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(wt,qe){typeof exports=="object"&&typeof module=="object"?module.exports=qe(require("React")):typeof define=="function"&&define.amd?define(["React"],qe):typeof exports=="object"?exports.ice=qe(require("React")):wt.ice=qe(wt.React)})(globalThis,fr=>(()=>{var wt={4674(i,p,t){"use strict";var o=t(7020),c={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},g={};g[o.ForwardRef]=u,g[o.Memo]=d;function m(F){return o.isMemo(F)?d:g[F.$$typeof]||c}var v=Object.defineProperty,w=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols,T=Object.getOwnPropertyDescriptor,I=Object.getPrototypeOf,D=Object.prototype;function L(F,z,X){if(typeof z!="string"){if(D){var ce=I(z);ce&&ce!==D&&L(F,ce,X)}var R=w(z);x&&(R=R.concat(x(z)));for(var Q=m(F),S=m(z),le=0;le<R.length;++le){var ne=R[le];if(!l[ne]&&!(X&&X[ne])&&!(S&&S[ne])&&!(Q&&Q[ne])){var ue=T(z,ne);try{v(F,ne,ue)}catch{}}}}return F}i.exports=L},8054(i,p,t){var o=t(5592),c=t(907),l=o(c,"DataView");i.exports=l},3219(i,p,t){var o=t(2130),c=t(1924),l=t(4743),u=t(1755),d=t(5203);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=o,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=d,i.exports=g},7321(i,p,t){var o=t(3044),c=t(4066),l=t(8461),u=t(4417),d=t(2777);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=o,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=d,i.exports=g},2565(i,p,t){var o=t(5592),c=t(907),l=o(c,"Map");i.exports=l},111(i,p,t){var o=t(4614),c=t(9504),l=t(9251),u=t(5791),d=t(1511);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=o,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=d,i.exports=g},8246(i,p,t){var o=t(5592),c=t(907),l=o(c,"Promise");i.exports=l},4099(i,p,t){var o=t(5592),c=t(907),l=o(c,"Set");i.exports=l},5963(i,p,t){var o=t(7321),c=t(1306),l=t(3180),u=t(5247),d=t(2835),g=t(9179);function m(v){var w=this.__data__=new o(v);this.size=w.size}m.prototype.clear=c,m.prototype.delete=l,m.prototype.get=u,m.prototype.has=d,m.prototype.set=g,i.exports=m},7759(i,p,t){var o=t(907),c=o.Symbol;i.exports=c},9386(i,p,t){var o=t(907),c=o.Uint8Array;i.exports=c},6221(i,p,t){var o=t(5592),c=t(907),l=o(c,"WeakMap");i.exports=l},6047(i){function p(t,o,c){switch(c.length){case 0:return t.call(o);case 1:return t.call(o,c[0]);case 2:return t.call(o,c[0],c[1]);case 3:return t.call(o,c[0],c[1],c[2])}return t.apply(o,c)}i.exports=p},6259(i){function p(t,o){for(var c=-1,l=t==null?0:t.length;++c<l&&o(t[c],c,t)!==!1;);return t}i.exports=p},1840(i){function p(t,o){for(var c=-1,l=t==null?0:t.length,u=0,d=[];++c<l;){var g=t[c];o(g,c,t)&&(d[u++]=g)}return d}i.exports=p},3737(i,p,t){var o=t(5562),c=t(1750),l=t(2619),u=t(3446),d=t(2159),g=t(3133),m=Object.prototype,v=m.hasOwnProperty;function w(x,T){var I=l(x),D=!I&&c(x),L=!I&&!D&&u(x),F=!I&&!D&&!L&&g(x),z=I||D||L||F,X=z?o(x.length,String):[],ce=X.length;for(var R in x)(T||v.call(x,R))&&!(z&&(R=="length"||L&&(R=="offset"||R=="parent")||F&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||d(R,ce)))&&X.push(R);return X}i.exports=w},5862(i){function p(t,o){for(var c=-1,l=t==null?0:t.length,u=Array(l);++c<l;)u[c]=o(t[c],c,t);return u}i.exports=p},9130(i){function p(t,o){for(var c=-1,l=o.length,u=t.length;++c<l;)t[u+c]=o[c];return t}i.exports=p},8971(i,p,t){var o=t(3706),c=t(9506);function l(u,d,g){(g!==void 0&&!c(u[d],g)||g===void 0&&!(d in u))&&o(u,d,g)}i.exports=l},3853(i,p,t){var o=t(3706),c=t(9506),l=Object.prototype,u=l.hasOwnProperty;function d(g,m,v){var w=g[m];(!(u.call(g,m)&&c(w,v))||v===void 0&&!(m in g))&&o(g,m,v)}i.exports=d},7831(i,p,t){var o=t(9506);function c(l,u){for(var d=l.length;d--;)if(o(l[d][0],u))return d;return-1}i.exports=c},2183(i,p,t){var o=t(7145),c=t(2096);function l(u,d){return u&&o(d,c(d),u)}i.exports=l},4076(i,p,t){var o=t(7145),c=t(7999);function l(u,d){return u&&o(d,c(d),u)}i.exports=l},3706(i,p,t){var o=t(4665);function c(l,u,d){u=="__proto__"&&o?o(l,u,{configurable:!0,enumerable:!0,value:d,writable:!0}):l[u]=d}i.exports=c},6057(i,p,t){var o=t(5963),c=t(6259),l=t(3853),u=t(2183),d=t(4076),g=t(5196),m=t(3549),v=t(6573),w=t(9934),x=t(6280),T=t(6839),I=t(1663),D=t(143),L=t(7265),F=t(8879),z=t(2619),X=t(3446),ce=t(7884),R=t(9323),Q=t(5070),S=t(2096),le=t(7999),ne=1,ue=2,oe=4,me="[object Arguments]",pe="[object Array]",B="[object Boolean]",ve="[object Date]",_="[object Error]",Ae="[object Function]",Ge="[object GeneratorFunction]",et="[object Map]",it="[object Number]",xt="[object Object]",Bt="[object RegExp]",Vt="[object Set]",ye="[object String]",St="[object Symbol]",hr="[object WeakMap]",gr="[object ArrayBuffer]",Gt="[object DataView]",At="[object Float32Array]",tt="[object Float64Array]",Et="[object Int8Array]",mr="[object Int16Array]",vr="[object Int32Array]",Ht="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Ot="[object Uint16Array]",Kt="[object Uint32Array]",se={};se[me]=se[pe]=se[gr]=se[Gt]=se[B]=se[ve]=se[At]=se[tt]=se[Et]=se[mr]=se[vr]=se[et]=se[it]=se[xt]=se[Bt]=se[Vt]=se[ye]=se[St]=se[Ht]=se[Wt]=se[Ot]=se[Kt]=!0,se[_]=se[Ae]=se[hr]=!1;function He(q,We,Ke,Ct,pt,Ee){var Oe,rt=We&ne,Te=We&ue,Ue=We&oe;if(Ke&&(Oe=pt?Ke(q,Ct,pt,Ee):Ke(q)),Oe!==void 0)return Oe;if(!R(q))return q;var Tt=z(q);if(Tt){if(Oe=D(q),!rt)return m(q,Oe)}else{var Ye=I(q),Pt=Ye==Ae||Ye==Ge;if(X(q))return g(q,rt);if(Ye==xt||Ye==me||Pt&&!pt){if(Oe=Te||Pt?{}:F(q),!rt)return Te?w(q,d(Oe,q)):v(q,u(Oe,q))}else{if(!se[Ye])return pt?q:{};Oe=L(q,Ye,rt)}}Ee||(Ee=new o);var It=Ee.get(q);if(It)return It;Ee.set(q,Oe),Q(q)?q.forEach(function(ke){Oe.add(He(ke,We,Ke,ke,q,Ee))}):ce(q)&&q.forEach(function(ke,Ve){Oe.set(Ve,He(ke,We,Ke,Ve,q,Ee))});var Yt=Ue?Te?T:x:Te?le:S,jt=Tt?void 0:Yt(q);return c(jt||q,function(ke,Ve){jt&&(Ve=ke,ke=q[Ve]),l(Oe,Ve,He(ke,We,Ke,Ve,q,Ee))}),Oe}i.exports=He},8514(i,p,t){var o=t(9323),c=Object.create,l=function(){function u(){}return function(d){if(!o(d))return{};if(c)return c(d);u.prototype=d;var g=new u;return u.prototype=void 0,g}}();i.exports=l},5795(i,p,t){var o=t(3375),c=o();i.exports=c},3208(i,p,t){var o=t(2155),c=t(5155);function l(u,d){d=o(d,u);for(var g=0,m=d.length;u!=null&&g<m;)u=u[c(d[g++])];return g&&g==m?u:void 0}i.exports=l},1405(i,p,t){var o=t(9130),c=t(2619);function l(u,d,g){var m=d(u);return c(u)?m:o(m,g(u))}i.exports=l},1490(i,p,t){var o=t(7759),c=t(4817),l=t(7748),u="[object Null]",d="[object Undefined]",g=o?o.toStringTag:void 0;function m(v){return v==null?v===void 0?d:u:g&&g in Object(v)?c(v):l(v)}i.exports=m},2780(i){var p=Object.prototype,t=p.hasOwnProperty;function o(c,l){return c!=null&&t.call(c,l)}i.exports=o},2960(i,p,t){var o=t(1490),c=t(2292),l="[object Arguments]";function u(d){return c(d)&&o(d)==l}i.exports=u},9694(i,p,t){var o=t(1663),c=t(2292),l="[object Map]";function u(d){return c(d)&&o(d)==l}i.exports=u},4401(i,p,t){var o=t(860),c=t(2958),l=t(9323),u=t(8815),d=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,m=Function.prototype,v=Object.prototype,w=m.toString,x=v.hasOwnProperty,T=RegExp("^"+w.call(x).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function I(D){if(!l(D)||c(D))return!1;var L=o(D)?T:g;return L.test(u(D))}i.exports=I},8172(i,p,t){var o=t(1663),c=t(2292),l="[object Set]";function u(d){return c(d)&&o(d)==l}i.exports=u},5283(i,p,t){var o=t(1490),c=t(5300),l=t(2292),u="[object Arguments]",d="[object Array]",g="[object Boolean]",m="[object Date]",v="[object Error]",w="[object Function]",x="[object Map]",T="[object Number]",I="[object Object]",D="[object RegExp]",L="[object Set]",F="[object String]",z="[object WeakMap]",X="[object ArrayBuffer]",ce="[object DataView]",R="[object Float32Array]",Q="[object Float64Array]",S="[object Int8Array]",le="[object Int16Array]",ne="[object Int32Array]",ue="[object Uint8Array]",oe="[object Uint8ClampedArray]",me="[object Uint16Array]",pe="[object Uint32Array]",B={};B[R]=B[Q]=B[S]=B[le]=B[ne]=B[ue]=B[oe]=B[me]=B[pe]=!0,B[u]=B[d]=B[X]=B[g]=B[ce]=B[m]=B[v]=B[w]=B[x]=B[T]=B[I]=B[D]=B[L]=B[F]=B[z]=!1;function ve(_){return l(_)&&c(_.length)&&!!B[o(_)]}i.exports=ve},2322(i,p,t){var o=t(8861),c=t(9692),l=Object.prototype,u=l.hasOwnProperty;function d(g){if(!o(g))return c(g);var m=[];for(var v in Object(g))u.call(g,v)&&v!="constructor"&&m.push(v);return m}i.exports=d},5045(i,p,t){var o=t(9323),c=t(8861),l=t(1779),u=Object.prototype,d=u.hasOwnProperty;function g(m){if(!o(m))return l(m);var v=c(m),w=[];for(var x in m)x=="constructor"&&(v||!d.call(m,x))||w.push(x);return w}i.exports=g},3912(i,p,t){var o=t(5963),c=t(8971),l=t(5795),u=t(8342),d=t(9323),g=t(7999),m=t(5760);function v(w,x,T,I,D){w!==x&&l(x,function(L,F){if(D||(D=new o),d(L))u(w,x,F,T,v,I,D);else{var z=I?I(m(w,F),L,F+"",w,x,D):void 0;z===void 0&&(z=L),c(w,F,z)}},g)}i.exports=v},8342(i,p,t){var o=t(8971),c=t(5196),l=t(5979),u=t(3549),d=t(8879),g=t(1750),m=t(2619),v=t(1891),w=t(3446),x=t(860),T=t(9323),I=t(1281),D=t(3133),L=t(5760),F=t(4514);function z(X,ce,R,Q,S,le,ne){var ue=L(X,R),oe=L(ce,R),me=ne.get(oe);if(me){o(X,R,me);return}var pe=le?le(ue,oe,R+"",X,ce,ne):void 0,B=pe===void 0;if(B){var ve=m(oe),_=!ve&&w(oe),Ae=!ve&&!_&&D(oe);pe=oe,ve||_||Ae?m(ue)?pe=ue:v(ue)?pe=u(ue):_?(B=!1,pe=c(oe,!0)):Ae?(B=!1,pe=l(oe,!0)):pe=[]:I(oe)||g(oe)?(pe=ue,g(ue)?pe=F(ue):(!T(ue)||x(ue))&&(pe=d(oe))):B=!1}B&&(ne.set(oe,pe),S(pe,oe,Q,le,ne),ne.delete(oe)),o(X,R,pe)}i.exports=z},6936(i,p,t){var o=t(4846),c=t(8619),l=t(9599);function u(d,g){return l(c(d,g,o),d+"")}i.exports=u},604(i,p,t){var o=t(3853),c=t(2155),l=t(2159),u=t(9323),d=t(5155);function g(m,v,w,x){if(!u(m))return m;v=c(v,m);for(var T=-1,I=v.length,D=I-1,L=m;L!=null&&++T<I;){var F=d(v[T]),z=w;if(F==="__proto__"||F==="constructor"||F==="prototype")return m;if(T!=D){var X=L[F];z=x?x(X,F,L):void 0,z===void 0&&(z=u(X)?X:l(v[T+1])?[]:{})}o(L,F,z),L=L[F]}return m}i.exports=g},7680(i,p,t){var o=t(6148),c=t(4665),l=t(4846),u=c?function(d,g){return c(d,"toString",{configurable:!0,enumerable:!1,value:o(g),writable:!0})}:l;i.exports=u},5562(i){function p(t,o){for(var c=-1,l=Array(t);++c<t;)l[c]=o(c);return l}i.exports=p},1978(i,p,t){var o=t(7759),c=t(5862),l=t(2619),u=t(7964),d=1/0,g=o?o.prototype:void 0,m=g?g.toString:void 0;function v(w){if(typeof w=="string")return w;if(l(w))return c(w,v)+"";if(u(w))return m?m.call(w):"";var x=w+"";return x=="0"&&1/w==-d?"-0":x}i.exports=v},6(i,p,t){var o=t(5082),c=/^\s+/;function l(u){return u&&u.slice(0,o(u)+1).replace(c,"")}i.exports=l},1155(i){function p(t){return function(o){return t(o)}}i.exports=p},2155(i,p,t){var o=t(2619),c=t(5304),l=t(4352),u=t(7164);function d(g,m){return o(g)?g:c(g,m)?[g]:l(u(g))}i.exports=d},2859(i,p,t){var o=t(9386);function c(l){var u=new l.constructor(l.byteLength);return new o(u).set(new o(l)),u}i.exports=c},5196(i,p,t){i=t.nmd(i);var o=t(907),c=p&&!p.nodeType&&p,l=c&&!0&&i&&!i.nodeType&&i,u=l&&l.exports===c,d=u?o.Buffer:void 0,g=d?d.allocUnsafe:void 0;function m(v,w){if(w)return v.slice();var x=v.length,T=g?g(x):new v.constructor(x);return v.copy(T),T}i.exports=m},7795(i,p,t){var o=t(2859);function c(l,u){var d=u?o(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}i.exports=c},6899(i){var p=/\w*$/;function t(o){var c=new o.constructor(o.source,p.exec(o));return c.lastIndex=o.lastIndex,c}i.exports=t},4518(i,p,t){var o=t(7759),c=o?o.prototype:void 0,l=c?c.valueOf:void 0;function u(d){return l?Object(l.call(d)):{}}i.exports=u},5979(i,p,t){var o=t(2859);function c(l,u){var d=u?o(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}i.exports=c},3549(i){function p(t,o){var c=-1,l=t.length;for(o||(o=Array(l));++c<l;)o[c]=t[c];return o}i.exports=p},7145(i,p,t){var o=t(3853),c=t(3706);function l(u,d,g,m){var v=!g;g||(g={});for(var w=-1,x=d.length;++w<x;){var T=d[w],I=m?m(g[T],u[T],T,g,u):void 0;I===void 0&&(I=u[T]),v?c(g,T,I):o(g,T,I)}return g}i.exports=l},6573(i,p,t){var o=t(7145),c=t(1454);function l(u,d){return o(u,c(u),d)}i.exports=l},9934(i,p,t){var o=t(7145),c=t(6649);function l(u,d){return o(u,c(u),d)}i.exports=l},3703(i,p,t){var o=t(907),c=o["__core-js_shared__"];i.exports=c},2917(i,p,t){var o=t(6936),c=t(9542);function l(u){return o(function(d,g){var m=-1,v=g.length,w=v>1?g[v-1]:void 0,x=v>2?g[2]:void 0;for(w=u.length>3&&typeof w=="function"?(v--,w):void 0,x&&c(g[0],g[1],x)&&(w=v<3?void 0:w,v=1),d=Object(d);++m<v;){var T=g[m];T&&u(d,T,m,w)}return d})}i.exports=l},3375(i){function p(t){return function(o,c,l){for(var u=-1,d=Object(o),g=l(o),m=g.length;m--;){var v=g[t?m:++u];if(c(d[v],v,d)===!1)break}return o}}i.exports=p},4665(i,p,t){var o=t(5592),c=function(){try{var l=o(Object,"defineProperty");return l({},"",{}),l}catch{}}();i.exports=c},6710(i){var p=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;i.exports=p},6280(i,p,t){var o=t(1405),c=t(1454),l=t(2096);function u(d){return o(d,l,c)}i.exports=u},6839(i,p,t){var o=t(1405),c=t(6649),l=t(7999);function u(d){return o(d,l,c)}i.exports=u},9257(i,p,t){var o=t(7500);function c(l,u){var d=l.__data__;return o(u)?d[typeof u=="string"?"string":"hash"]:d.map}i.exports=c},5592(i,p,t){var o=t(4401),c=t(2490);function l(u,d){var g=c(u,d);return o(g)?g:void 0}i.exports=l},553(i,p,t){var o=t(7937),c=o(Object.getPrototypeOf,Object);i.exports=c},4817(i,p,t){var o=t(7759),c=Object.prototype,l=c.hasOwnProperty,u=c.toString,d=o?o.toStringTag:void 0;function g(m){var v=l.call(m,d),w=m[d];try{m[d]=void 0;var x=!0}catch{}var T=u.call(m);return x&&(v?m[d]=w:delete m[d]),T}i.exports=g},1454(i,p,t){var o=t(1840),c=t(5615),l=Object.prototype,u=l.propertyIsEnumerable,d=Object.getOwnPropertySymbols,g=d?function(m){return m==null?[]:(m=Object(m),o(d(m),function(v){return u.call(m,v)}))}:c;i.exports=g},6649(i,p,t){var o=t(9130),c=t(553),l=t(1454),u=t(5615),d=Object.getOwnPropertySymbols,g=d?function(m){for(var v=[];m;)o(v,l(m)),m=c(m);return v}:u;i.exports=g},1663(i,p,t){var o=t(8054),c=t(2565),l=t(8246),u=t(4099),d=t(6221),g=t(1490),m=t(8815),v="[object Map]",w="[object Object]",x="[object Promise]",T="[object Set]",I="[object WeakMap]",D="[object DataView]",L=m(o),F=m(c),z=m(l),X=m(u),ce=m(d),R=g;(o&&R(new o(new ArrayBuffer(1)))!=D||c&&R(new c)!=v||l&&R(l.resolve())!=x||u&&R(new u)!=T||d&&R(new d)!=I)&&(R=function(Q){var S=g(Q),le=S==w?Q.constructor:void 0,ne=le?m(le):"";if(ne)switch(ne){case L:return D;case F:return v;case z:return x;case X:return T;case ce:return I}return S}),i.exports=R},2490(i){function p(t,o){return t?.[o]}i.exports=p},5728(i,p,t){var o=t(2155),c=t(1750),l=t(2619),u=t(2159),d=t(5300),g=t(5155);function m(v,w,x){w=o(w,v);for(var T=-1,I=w.length,D=!1;++T<I;){var L=g(w[T]);if(!(D=v!=null&&x(v,L)))break;v=v[L]}return D||++T!=I?D:(I=v==null?0:v.length,!!I&&d(I)&&u(L,I)&&(l(v)||c(v)))}i.exports=m},2130(i,p,t){var o=t(9444);function c(){this.__data__=o?o(null):{},this.size=0}i.exports=c},1924(i){function p(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}i.exports=p},4743(i,p,t){var o=t(9444),c="__lodash_hash_undefined__",l=Object.prototype,u=l.hasOwnProperty;function d(g){var m=this.__data__;if(o){var v=m[g];return v===c?void 0:v}return u.call(m,g)?m[g]:void 0}i.exports=d},1755(i,p,t){var o=t(9444),c=Object.prototype,l=c.hasOwnProperty;function u(d){var g=this.__data__;return o?g[d]!==void 0:l.call(g,d)}i.exports=u},5203(i,p,t){var o=t(9444),c="__lodash_hash_undefined__";function l(u,d){var g=this.__data__;return this.size+=this.has(u)?0:1,g[u]=o&&d===void 0?c:d,this}i.exports=l},143(i){var p=Object.prototype,t=p.hasOwnProperty;function o(c){var l=c.length,u=new c.constructor(l);return l&&typeof c[0]=="string"&&t.call(c,"index")&&(u.index=c.index,u.input=c.input),u}i.exports=o},7265(i,p,t){var o=t(2859),c=t(7795),l=t(6899),u=t(4518),d=t(5979),g="[object Boolean]",m="[object Date]",v="[object Map]",w="[object Number]",x="[object RegExp]",T="[object Set]",I="[object String]",D="[object Symbol]",L="[object ArrayBuffer]",F="[object DataView]",z="[object Float32Array]",X="[object Float64Array]",ce="[object Int8Array]",R="[object Int16Array]",Q="[object Int32Array]",S="[object Uint8Array]",le="[object Uint8ClampedArray]",ne="[object Uint16Array]",ue="[object Uint32Array]";function oe(me,pe,B){var ve=me.constructor;switch(pe){case L:return o(me);case g:case m:return new ve(+me);case F:return c(me,B);case z:case X:case ce:case R:case Q:case S:case le:case ne:case ue:return d(me,B);case v:return new ve;case w:case I:return new ve(me);case x:return l(me);case T:return new ve;case D:return u(me)}}i.exports=oe},8879(i,p,t){var o=t(8514),c=t(553),l=t(8861);function u(d){return typeof d.constructor=="function"&&!l(d)?o(c(d)):{}}i.exports=u},2159(i){var p=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function o(c,l){var u=typeof c;return l=l??p,!!l&&(u=="number"||u!="symbol"&&t.test(c))&&c>-1&&c%1==0&&c<l}i.exports=o},9542(i,p,t){var o=t(9506),c=t(644),l=t(2159),u=t(9323);function d(g,m,v){if(!u(v))return!1;var w=typeof m;return(w=="number"?c(v)&&l(m,v.length):w=="string"&&m in v)?o(v[m],g):!1}i.exports=d},5304(i,p,t){var o=t(2619),c=t(7964),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function d(g,m){if(o(g))return!1;var v=typeof g;return v=="number"||v=="symbol"||v=="boolean"||g==null||c(g)?!0:u.test(g)||!l.test(g)||m!=null&&g in Object(m)}i.exports=d},7500(i){function p(t){var o=typeof t;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?t!=="__proto__":t===null}i.exports=p},2958(i,p,t){var o=t(3703),c=function(){var u=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function l(u){return!!c&&c in u}i.exports=l},8861(i){var p=Object.prototype;function t(o){var c=o&&o.constructor,l=typeof c=="function"&&c.prototype||p;return o===l}i.exports=t},3044(i){function p(){this.__data__=[],this.size=0}i.exports=p},4066(i,p,t){var o=t(7831),c=Array.prototype,l=c.splice;function u(d){var g=this.__data__,m=o(g,d);if(m<0)return!1;var v=g.length-1;return m==v?g.pop():l.call(g,m,1),--this.size,!0}i.exports=u},8461(i,p,t){var o=t(7831);function c(l){var u=this.__data__,d=o(u,l);return d<0?void 0:u[d][1]}i.exports=c},4417(i,p,t){var o=t(7831);function c(l){return o(this.__data__,l)>-1}i.exports=c},2777(i,p,t){var o=t(7831);function c(l,u){var d=this.__data__,g=o(d,l);return g<0?(++this.size,d.push([l,u])):d[g][1]=u,this}i.exports=c},4614(i,p,t){var o=t(3219),c=t(7321),l=t(2565);function u(){this.size=0,this.__data__={hash:new o,map:new(l||c),string:new o}}i.exports=u},9504(i,p,t){var o=t(9257);function c(l){var u=o(this,l).delete(l);return this.size-=u?1:0,u}i.exports=c},9251(i,p,t){var o=t(9257);function c(l){return o(this,l).get(l)}i.exports=c},5791(i,p,t){var o=t(9257);function c(l){return o(this,l).has(l)}i.exports=c},1511(i,p,t){var o=t(9257);function c(l,u){var d=o(this,l),g=d.size;return d.set(l,u),this.size+=d.size==g?0:1,this}i.exports=c},3426(i,p,t){var o=t(8590),c=500;function l(u){var d=o(u,function(m){return g.size===c&&g.clear(),m}),g=d.cache;return d}i.exports=l},9444(i,p,t){var o=t(5592),c=o(Object,"create");i.exports=c},9692(i,p,t){var o=t(7937),c=o(Object.keys,Object);i.exports=c},1779(i){function p(t){var o=[];if(t!=null)for(var c in Object(t))o.push(c);return o}i.exports=p},1587(i,p,t){i=t.nmd(i);var o=t(6710),c=p&&!p.nodeType&&p,l=c&&!0&&i&&!i.nodeType&&i,u=l&&l.exports===c,d=u&&o.process,g=function(){try{var m=l&&l.require&&l.require("util").types;return m||d&&d.binding&&d.binding("util")}catch{}}();i.exports=g},7748(i){var p=Object.prototype,t=p.toString;function o(c){return t.call(c)}i.exports=o},7937(i){function p(t,o){return function(c){return t(o(c))}}i.exports=p},8619(i,p,t){var o=t(6047),c=Math.max;function l(u,d,g){return d=c(d===void 0?u.length-1:d,0),function(){for(var m=arguments,v=-1,w=c(m.length-d,0),x=Array(w);++v<w;)x[v]=m[d+v];v=-1;for(var T=Array(d+1);++v<d;)T[v]=m[v];return T[d]=g(x),o(u,this,T)}}i.exports=l},907(i,p,t){var o=t(6710),c=typeof self=="object"&&self&&self.Object===Object&&self,l=o||c||Function("return this")();i.exports=l},5760(i){function p(t,o){if(!(o==="constructor"&&typeof t[o]=="function")&&o!="__proto__")return t[o]}i.exports=p},9599(i,p,t){var o=t(7680),c=t(6101),l=c(o);i.exports=l},6101(i){var p=800,t=16,o=Date.now;function c(l){var u=0,d=0;return function(){var g=o(),m=t-(g-d);if(d=g,m>0){if(++u>=p)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}i.exports=c},1306(i,p,t){var o=t(7321);function c(){this.__data__=new o,this.size=0}i.exports=c},3180(i){function p(t){var o=this.__data__,c=o.delete(t);return this.size=o.size,c}i.exports=p},5247(i){function p(t){return this.__data__.get(t)}i.exports=p},2835(i){function p(t){return this.__data__.has(t)}i.exports=p},9179(i,p,t){var o=t(7321),c=t(2565),l=t(111),u=200;function d(g,m){var v=this.__data__;if(v instanceof o){var w=v.__data__;if(!c||w.length<u-1)return w.push([g,m]),this.size=++v.size,this;v=this.__data__=new l(w)}return v.set(g,m),this.size=v.size,this}i.exports=d},4352(i,p,t){var o=t(3426),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=o(function(d){var g=[];return d.charCodeAt(0)===46&&g.push(""),d.replace(c,function(m,v,w,x){g.push(w?x.replace(l,"$1"):v||m)}),g});i.exports=u},5155(i,p,t){var o=t(7964),c=1/0;function l(u){if(typeof u=="string"||o(u))return u;var d=u+"";return d=="0"&&1/u==-c?"-0":d}i.exports=l},8815(i){var p=Function.prototype,t=p.toString;function o(c){if(c!=null){try{return t.call(c)}catch{}try{return c+""}catch{}}return""}i.exports=o},5082(i){var p=/\s/;function t(o){for(var c=o.length;c--&&p.test(o.charAt(c)););return c}i.exports=t},8313(i,p,t){var o=t(6057),c=1,l=4;function u(d){return o(d,c|l)}i.exports=u},6148(i){function p(t){return function(){return t}}i.exports=p},671(i,p,t){var o=t(9323),c=t(5062),l=t(9480),u="Expected a function",d=Math.max,g=Math.min;function m(v,w,x){var T,I,D,L,F,z,X=0,ce=!1,R=!1,Q=!0;if(typeof v!="function")throw new TypeError(u);w=l(w)||0,o(x)&&(ce=!!x.leading,R="maxWait"in x,D=R?d(l(x.maxWait)||0,w):D,Q="trailing"in x?!!x.trailing:Q);function S(_){var Ae=T,Ge=I;return T=I=void 0,X=_,L=v.apply(Ge,Ae),L}function le(_){return X=_,F=setTimeout(oe,w),ce?S(_):L}function ne(_){var Ae=_-z,Ge=_-X,et=w-Ae;return R?g(et,D-Ge):et}function ue(_){var Ae=_-z,Ge=_-X;return z===void 0||Ae>=w||Ae<0||R&&Ge>=D}function oe(){var _=c();if(ue(_))return me(_);F=setTimeout(oe,ne(_))}function me(_){return F=void 0,Q&&T?S(_):(T=I=void 0,L)}function pe(){F!==void 0&&clearTimeout(F),X=0,T=z=I=F=void 0}function B(){return F===void 0?L:me(c())}function ve(){var _=c(),Ae=ue(_);if(T=arguments,I=this,z=_,Ae){if(F===void 0)return le(z);if(R)return clearTimeout(F),F=setTimeout(oe,w),S(z)}return F===void 0&&(F=setTimeout(oe,w)),L}return ve.cancel=pe,ve.flush=B,ve}i.exports=m},9506(i){function p(t,o){return t===o||t!==t&&o!==o}i.exports=p},2438(i,p,t){var o=t(3208);function c(l,u,d){var g=l==null?void 0:o(l,u);return g===void 0?d:g}i.exports=c},2146(i,p,t){var o=t(2780),c=t(5728);function l(u,d){return u!=null&&c(u,d,o)}i.exports=l},4846(i){function p(t){return t}i.exports=p},1750(i,p,t){var o=t(2960),c=t(2292),l=Object.prototype,u=l.hasOwnProperty,d=l.propertyIsEnumerable,g=o(function(){return arguments}())?o:function(m){return c(m)&&u.call(m,"callee")&&!d.call(m,"callee")};i.exports=g},2619(i){var p=Array.isArray;i.exports=p},644(i,p,t){var o=t(860),c=t(5300);function l(u){return u!=null&&c(u.length)&&!o(u)}i.exports=l},1891(i,p,t){var o=t(644),c=t(2292);function l(u){return c(u)&&o(u)}i.exports=l},3446(i,p,t){i=t.nmd(i);var o=t(907),c=t(9349),l=p&&!p.nodeType&&p,u=l&&!0&&i&&!i.nodeType&&i,d=u&&u.exports===l,g=d?o.Buffer:void 0,m=g?g.isBuffer:void 0,v=m||c;i.exports=v},860(i,p,t){var o=t(1490),c=t(9323),l="[object AsyncFunction]",u="[object Function]",d="[object GeneratorFunction]",g="[object Proxy]";function m(v){if(!c(v))return!1;var w=o(v);return w==u||w==d||w==l||w==g}i.exports=m},5300(i){var p=9007199254740991;function t(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=p}i.exports=t},7884(i,p,t){var o=t(9694),c=t(1155),l=t(1587),u=l&&l.isMap,d=u?c(u):o;i.exports=d},9323(i){function p(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}i.exports=p},2292(i){function p(t){return t!=null&&typeof t=="object"}i.exports=p},1281(i,p,t){var o=t(1490),c=t(553),l=t(2292),u="[object Object]",d=Function.prototype,g=Object.prototype,m=d.toString,v=g.hasOwnProperty,w=m.call(Object);function x(T){if(!l(T)||o(T)!=u)return!1;var I=c(T);if(I===null)return!0;var D=v.call(I,"constructor")&&I.constructor;return typeof D=="function"&&D instanceof D&&m.call(D)==w}i.exports=x},5070(i,p,t){var o=t(8172),c=t(1155),l=t(1587),u=l&&l.isSet,d=u?c(u):o;i.exports=d},7964(i,p,t){var o=t(1490),c=t(2292),l="[object Symbol]";function u(d){return typeof d=="symbol"||c(d)&&o(d)==l}i.exports=u},3133(i,p,t){var o=t(5283),c=t(1155),l=t(1587),u=l&&l.isTypedArray,d=u?c(u):o;i.exports=d},2096(i,p,t){var o=t(3737),c=t(2322),l=t(644);function u(d){return l(d)?o(d):c(d)}i.exports=u},7999(i,p,t){var o=t(3737),c=t(5045),l=t(644);function u(d){return l(d)?o(d,!0):c(d)}i.exports=u},8590(i,p,t){var o=t(111),c="Expected a function";function l(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new TypeError(c);var g=function(){var m=arguments,v=d?d.apply(this,m):m[0],w=g.cache;if(w.has(v))return w.get(v);var x=u.apply(this,m);return g.cache=w.set(v,x)||w,x};return g.cache=new(l.Cache||o),g}l.Cache=o,i.exports=l},8970(i,p,t){var o=t(3912),c=t(2917),l=c(function(u,d,g){o(u,d,g)});i.exports=l},5062(i,p,t){var o=t(907),c=function(){return o.Date.now()};i.exports=c},2154(i,p,t){var o=t(604);function c(l,u,d){return l==null?l:o(l,u,d)}i.exports=c},5615(i){function p(){return[]}i.exports=p},9349(i){function p(){return!1}i.exports=p},6712(i,p,t){var o=t(671),c=t(9323),l="Expected a function";function u(d,g,m){var v=!0,w=!0;if(typeof d!="function")throw new TypeError(l);return c(m)&&(v="leading"in m?!!m.leading:v,w="trailing"in m?!!m.trailing:w),o(d,g,{leading:v,maxWait:g,trailing:w})}i.exports=u},9480(i,p,t){var o=t(6),c=t(9323),l=t(7964),u=NaN,d=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,m=/^0o[0-7]+$/i,v=parseInt;function w(x){if(typeof x=="number")return x;if(l(x))return u;if(c(x)){var T=typeof x.valueOf=="function"?x.valueOf():x;x=c(T)?T+"":T}if(typeof x!="string")return x===0?x:+x;x=o(x);var I=g.test(x);return I||m.test(x)?v(x.slice(2),I?2:8):d.test(x)?u:+x}i.exports=w},4514(i,p,t){var o=t(7145),c=t(7999);function l(u){return o(u,c(u))}i.exports=l},7164(i,p,t){var o=t(1978);function c(l){return l==null?"":o(l)}i.exports=c},5360(i,p){"use strict";/** @license React v16.13.1
|
|
1
|
+
(function(wt,qe){typeof exports=="object"&&typeof module=="object"?module.exports=qe(require("React")):typeof define=="function"&&define.amd?define(["React"],qe):typeof exports=="object"?exports.ice=qe(require("React")):wt.ice=qe(wt.React)})(globalThis,hr=>(()=>{var wt={8054(o,f,n){var a=n(5592),c=n(907),l=a(c,"DataView");o.exports=l},3219(o,f,n){var a=n(2130),c=n(1924),l=n(4743),u=n(1755),p=n(5203);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},7321(o,f,n){var a=n(3044),c=n(4066),l=n(8461),u=n(4417),p=n(2777);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},2565(o,f,n){var a=n(5592),c=n(907),l=a(c,"Map");o.exports=l},111(o,f,n){var a=n(4614),c=n(9504),l=n(9251),u=n(5791),p=n(1511);function g(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}g.prototype.clear=a,g.prototype.delete=c,g.prototype.get=l,g.prototype.has=u,g.prototype.set=p,o.exports=g},8246(o,f,n){var a=n(5592),c=n(907),l=a(c,"Promise");o.exports=l},4099(o,f,n){var a=n(5592),c=n(907),l=a(c,"Set");o.exports=l},5963(o,f,n){var a=n(7321),c=n(1306),l=n(3180),u=n(5247),p=n(2835),g=n(9179);function m(v){var w=this.__data__=new a(v);this.size=w.size}m.prototype.clear=c,m.prototype.delete=l,m.prototype.get=u,m.prototype.has=p,m.prototype.set=g,o.exports=m},7759(o,f,n){var a=n(907),c=a.Symbol;o.exports=c},9386(o,f,n){var a=n(907),c=a.Uint8Array;o.exports=c},6221(o,f,n){var a=n(5592),c=n(907),l=a(c,"WeakMap");o.exports=l},6047(o){function f(n,a,c){switch(c.length){case 0:return n.call(a);case 1:return n.call(a,c[0]);case 2:return n.call(a,c[0],c[1]);case 3:return n.call(a,c[0],c[1],c[2])}return n.apply(a,c)}o.exports=f},6259(o){function f(n,a){for(var c=-1,l=n==null?0:n.length;++c<l&&a(n[c],c,n)!==!1;);return n}o.exports=f},1840(o){function f(n,a){for(var c=-1,l=n==null?0:n.length,u=0,p=[];++c<l;){var g=n[c];a(g,c,n)&&(p[u++]=g)}return p}o.exports=f},3737(o,f,n){var a=n(5562),c=n(1750),l=n(2619),u=n(3446),p=n(2159),g=n(3133),m=Object.prototype,v=m.hasOwnProperty;function w(x,P){var $=l(x),N=!$&&c(x),H=!$&&!N&&u(x),D=!$&&!N&&!H&&g(x),q=$||N||H||D,oe=q?a(x.length,String):[],ve=oe.length;for(var _ in x)(P||v.call(x,_))&&!(q&&(_=="length"||H&&(_=="offset"||_=="parent")||D&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||p(_,ve)))&&oe.push(_);return oe}o.exports=w},5862(o){function f(n,a){for(var c=-1,l=n==null?0:n.length,u=Array(l);++c<l;)u[c]=a(n[c],c,n);return u}o.exports=f},9130(o){function f(n,a){for(var c=-1,l=a.length,u=n.length;++c<l;)n[u+c]=a[c];return n}o.exports=f},8971(o,f,n){var a=n(3706),c=n(9506);function l(u,p,g){(g!==void 0&&!c(u[p],g)||g===void 0&&!(p in u))&&a(u,p,g)}o.exports=l},3853(o,f,n){var a=n(3706),c=n(9506),l=Object.prototype,u=l.hasOwnProperty;function p(g,m,v){var w=g[m];(!(u.call(g,m)&&c(w,v))||v===void 0&&!(m in g))&&a(g,m,v)}o.exports=p},7831(o,f,n){var a=n(9506);function c(l,u){for(var p=l.length;p--;)if(a(l[p][0],u))return p;return-1}o.exports=c},2183(o,f,n){var a=n(7145),c=n(2096);function l(u,p){return u&&a(p,c(p),u)}o.exports=l},4076(o,f,n){var a=n(7145),c=n(7999);function l(u,p){return u&&a(p,c(p),u)}o.exports=l},3706(o,f,n){var a=n(4665);function c(l,u,p){u=="__proto__"&&a?a(l,u,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[u]=p}o.exports=c},6057(o,f,n){var a=n(5963),c=n(6259),l=n(3853),u=n(2183),p=n(4076),g=n(5196),m=n(3549),v=n(6573),w=n(9934),x=n(6280),P=n(6839),$=n(1663),N=n(143),H=n(7265),D=n(8879),q=n(2619),oe=n(3446),ve=n(7884),_=n(9323),Ce=n(5070),ye=n(2096),Oe=n(7999),ae=1,pe=2,ce=4,le="[object Arguments]",de="[object Array]",G="[object Boolean]",be="[object Date]",J="[object Error]",we="[object Function]",Ue="[object GeneratorFunction]",st="[object Map]",Ut="[object Number]",kt="[object Object]",xt="[object RegExp]",ot="[object Set]",zt="[object String]",Bt="[object Symbol]",Vt="[object WeakMap]",me="[object ArrayBuffer]",St="[object DataView]",gr="[object Float32Array]",mr="[object Float64Array]",Gt="[object Int8Array]",At="[object Int16Array]",et="[object Int32Array]",Et="[object Uint8Array]",vr="[object Uint8ClampedArray]",yr="[object Uint16Array]",Ht="[object Uint32Array]",ie={};ie[le]=ie[de]=ie[me]=ie[St]=ie[G]=ie[be]=ie[gr]=ie[mr]=ie[Gt]=ie[At]=ie[et]=ie[st]=ie[Ut]=ie[kt]=ie[xt]=ie[ot]=ie[zt]=ie[Bt]=ie[Et]=ie[vr]=ie[yr]=ie[Ht]=!0,ie[J]=ie[we]=ie[Vt]=!1;function tt(Q,Ke,Ge,Wt,it,He){var xe,pt=Ke&ae,Fe=Ke&pe,_t=Ke&ce;if(Ge&&(xe=it?Ge(Q,Wt,it,He):Ge(Q)),xe!==void 0)return xe;if(!_(Q))return Q;var De=q(Q);if(De){if(xe=N(Q),!pt)return m(Q,xe)}else{var Pe=$(Q),Ct=Pe==we||Pe==Ue;if(oe(Q))return g(Q,pt);if(Pe==kt||Pe==le||Ct&&!it){if(xe=Fe||Ct?{}:D(Q),!pt)return Fe?w(Q,p(xe,Q)):v(Q,u(xe,Q))}else{if(!ie[Pe])return it?Q:{};xe=H(Q,Pe,pt)}}He||(He=new a);var Ot=He.get(Q);if(Ot)return Ot;He.set(Q,xe),Ce(Q)?Q.forEach(function(We){xe.add(tt(We,Ke,Ge,We,Q,He))}):ve(Q)&&Q.forEach(function(We,Ye){xe.set(Ye,tt(We,Ke,Ge,Ye,Q,He))});var Kt=_t?Fe?P:x:Fe?Oe:ye,Tt=De?void 0:Kt(Q);return c(Tt||Q,function(We,Ye){Tt&&(Ye=We,We=Q[Ye]),l(xe,Ye,tt(We,Ke,Ge,Ye,Q,He))}),xe}o.exports=tt},8514(o,f,n){var a=n(9323),c=Object.create,l=function(){function u(){}return function(p){if(!a(p))return{};if(c)return c(p);u.prototype=p;var g=new u;return u.prototype=void 0,g}}();o.exports=l},5795(o,f,n){var a=n(3375),c=a();o.exports=c},3208(o,f,n){var a=n(2155),c=n(5155);function l(u,p){p=a(p,u);for(var g=0,m=p.length;u!=null&&g<m;)u=u[c(p[g++])];return g&&g==m?u:void 0}o.exports=l},1405(o,f,n){var a=n(9130),c=n(2619);function l(u,p,g){var m=p(u);return c(u)?m:a(m,g(u))}o.exports=l},1490(o,f,n){var a=n(7759),c=n(4817),l=n(7748),u="[object Null]",p="[object Undefined]",g=a?a.toStringTag:void 0;function m(v){return v==null?v===void 0?p:u:g&&g in Object(v)?c(v):l(v)}o.exports=m},2780(o){var f=Object.prototype,n=f.hasOwnProperty;function a(c,l){return c!=null&&n.call(c,l)}o.exports=a},2960(o,f,n){var a=n(1490),c=n(2292),l="[object Arguments]";function u(p){return c(p)&&a(p)==l}o.exports=u},9694(o,f,n){var a=n(1663),c=n(2292),l="[object Map]";function u(p){return c(p)&&a(p)==l}o.exports=u},4401(o,f,n){var a=n(860),c=n(2958),l=n(9323),u=n(8815),p=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,m=Function.prototype,v=Object.prototype,w=m.toString,x=v.hasOwnProperty,P=RegExp("^"+w.call(x).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $(N){if(!l(N)||c(N))return!1;var H=a(N)?P:g;return H.test(u(N))}o.exports=$},8172(o,f,n){var a=n(1663),c=n(2292),l="[object Set]";function u(p){return c(p)&&a(p)==l}o.exports=u},5283(o,f,n){var a=n(1490),c=n(5300),l=n(2292),u="[object Arguments]",p="[object Array]",g="[object Boolean]",m="[object Date]",v="[object Error]",w="[object Function]",x="[object Map]",P="[object Number]",$="[object Object]",N="[object RegExp]",H="[object Set]",D="[object String]",q="[object WeakMap]",oe="[object ArrayBuffer]",ve="[object DataView]",_="[object Float32Array]",Ce="[object Float64Array]",ye="[object Int8Array]",Oe="[object Int16Array]",ae="[object Int32Array]",pe="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",de="[object Uint32Array]",G={};G[_]=G[Ce]=G[ye]=G[Oe]=G[ae]=G[pe]=G[ce]=G[le]=G[de]=!0,G[u]=G[p]=G[oe]=G[g]=G[ve]=G[m]=G[v]=G[w]=G[x]=G[P]=G[$]=G[N]=G[H]=G[D]=G[q]=!1;function be(J){return l(J)&&c(J.length)&&!!G[a(J)]}o.exports=be},2322(o,f,n){var a=n(8861),c=n(9692),l=Object.prototype,u=l.hasOwnProperty;function p(g){if(!a(g))return c(g);var m=[];for(var v in Object(g))u.call(g,v)&&v!="constructor"&&m.push(v);return m}o.exports=p},5045(o,f,n){var a=n(9323),c=n(8861),l=n(1779),u=Object.prototype,p=u.hasOwnProperty;function g(m){if(!a(m))return l(m);var v=c(m),w=[];for(var x in m)x=="constructor"&&(v||!p.call(m,x))||w.push(x);return w}o.exports=g},3912(o,f,n){var a=n(5963),c=n(8971),l=n(5795),u=n(8342),p=n(9323),g=n(7999),m=n(5760);function v(w,x,P,$,N){w!==x&&l(x,function(H,D){if(N||(N=new a),p(H))u(w,x,D,P,v,$,N);else{var q=$?$(m(w,D),H,D+"",w,x,N):void 0;q===void 0&&(q=H),c(w,D,q)}},g)}o.exports=v},8342(o,f,n){var a=n(8971),c=n(5196),l=n(5979),u=n(3549),p=n(8879),g=n(1750),m=n(2619),v=n(1891),w=n(3446),x=n(860),P=n(9323),$=n(1281),N=n(3133),H=n(5760),D=n(4514);function q(oe,ve,_,Ce,ye,Oe,ae){var pe=H(oe,_),ce=H(ve,_),le=ae.get(ce);if(le){a(oe,_,le);return}var de=Oe?Oe(pe,ce,_+"",oe,ve,ae):void 0,G=de===void 0;if(G){var be=m(ce),J=!be&&w(ce),we=!be&&!J&&N(ce);de=ce,be||J||we?m(pe)?de=pe:v(pe)?de=u(pe):J?(G=!1,de=c(ce,!0)):we?(G=!1,de=l(ce,!0)):de=[]:$(ce)||g(ce)?(de=pe,g(pe)?de=D(pe):(!P(pe)||x(pe))&&(de=p(ce))):G=!1}G&&(ae.set(ce,de),ye(de,ce,Ce,Oe,ae),ae.delete(ce)),a(oe,_,de)}o.exports=q},6936(o,f,n){var a=n(4846),c=n(8619),l=n(9599);function u(p,g){return l(c(p,g,a),p+"")}o.exports=u},604(o,f,n){var a=n(3853),c=n(2155),l=n(2159),u=n(9323),p=n(5155);function g(m,v,w,x){if(!u(m))return m;v=c(v,m);for(var P=-1,$=v.length,N=$-1,H=m;H!=null&&++P<$;){var D=p(v[P]),q=w;if(D==="__proto__"||D==="constructor"||D==="prototype")return m;if(P!=N){var oe=H[D];q=x?x(oe,D,H):void 0,q===void 0&&(q=u(oe)?oe:l(v[P+1])?[]:{})}a(H,D,q),H=H[D]}return m}o.exports=g},7680(o,f,n){var a=n(6148),c=n(4665),l=n(4846),u=c?function(p,g){return c(p,"toString",{configurable:!0,enumerable:!1,value:a(g),writable:!0})}:l;o.exports=u},5562(o){function f(n,a){for(var c=-1,l=Array(n);++c<n;)l[c]=a(c);return l}o.exports=f},1978(o,f,n){var a=n(7759),c=n(5862),l=n(2619),u=n(7964),p=1/0,g=a?a.prototype:void 0,m=g?g.toString:void 0;function v(w){if(typeof w=="string")return w;if(l(w))return c(w,v)+"";if(u(w))return m?m.call(w):"";var x=w+"";return x=="0"&&1/w==-p?"-0":x}o.exports=v},6(o,f,n){var a=n(5082),c=/^\s+/;function l(u){return u&&u.slice(0,a(u)+1).replace(c,"")}o.exports=l},1155(o){function f(n){return function(a){return n(a)}}o.exports=f},2155(o,f,n){var a=n(2619),c=n(5304),l=n(4352),u=n(7164);function p(g,m){return a(g)?g:c(g,m)?[g]:l(u(g))}o.exports=p},2859(o,f,n){var a=n(9386);function c(l){var u=new l.constructor(l.byteLength);return new a(u).set(new a(l)),u}o.exports=c},5196(o,f,n){o=n.nmd(o);var a=n(907),c=f&&!f.nodeType&&f,l=c&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===c,p=u?a.Buffer:void 0,g=p?p.allocUnsafe:void 0;function m(v,w){if(w)return v.slice();var x=v.length,P=g?g(x):new v.constructor(x);return v.copy(P),P}o.exports=m},7795(o,f,n){var a=n(2859);function c(l,u){var p=u?a(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}o.exports=c},6899(o){var f=/\w*$/;function n(a){var c=new a.constructor(a.source,f.exec(a));return c.lastIndex=a.lastIndex,c}o.exports=n},4518(o,f,n){var a=n(7759),c=a?a.prototype:void 0,l=c?c.valueOf:void 0;function u(p){return l?Object(l.call(p)):{}}o.exports=u},5979(o,f,n){var a=n(2859);function c(l,u){var p=u?a(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}o.exports=c},3549(o){function f(n,a){var c=-1,l=n.length;for(a||(a=Array(l));++c<l;)a[c]=n[c];return a}o.exports=f},7145(o,f,n){var a=n(3853),c=n(3706);function l(u,p,g,m){var v=!g;g||(g={});for(var w=-1,x=p.length;++w<x;){var P=p[w],$=m?m(g[P],u[P],P,g,u):void 0;$===void 0&&($=u[P]),v?c(g,P,$):a(g,P,$)}return g}o.exports=l},6573(o,f,n){var a=n(7145),c=n(1454);function l(u,p){return a(u,c(u),p)}o.exports=l},9934(o,f,n){var a=n(7145),c=n(6649);function l(u,p){return a(u,c(u),p)}o.exports=l},3703(o,f,n){var a=n(907),c=a["__core-js_shared__"];o.exports=c},2917(o,f,n){var a=n(6936),c=n(9542);function l(u){return a(function(p,g){var m=-1,v=g.length,w=v>1?g[v-1]:void 0,x=v>2?g[2]:void 0;for(w=u.length>3&&typeof w=="function"?(v--,w):void 0,x&&c(g[0],g[1],x)&&(w=v<3?void 0:w,v=1),p=Object(p);++m<v;){var P=g[m];P&&u(p,P,m,w)}return p})}o.exports=l},3375(o){function f(n){return function(a,c,l){for(var u=-1,p=Object(a),g=l(a),m=g.length;m--;){var v=g[n?m:++u];if(c(p[v],v,p)===!1)break}return a}}o.exports=f},4665(o,f,n){var a=n(5592),c=function(){try{var l=a(Object,"defineProperty");return l({},"",{}),l}catch{}}();o.exports=c},6710(o){var f=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;o.exports=f},6280(o,f,n){var a=n(1405),c=n(1454),l=n(2096);function u(p){return a(p,l,c)}o.exports=u},6839(o,f,n){var a=n(1405),c=n(6649),l=n(7999);function u(p){return a(p,l,c)}o.exports=u},9257(o,f,n){var a=n(7500);function c(l,u){var p=l.__data__;return a(u)?p[typeof u=="string"?"string":"hash"]:p.map}o.exports=c},5592(o,f,n){var a=n(4401),c=n(2490);function l(u,p){var g=c(u,p);return a(g)?g:void 0}o.exports=l},553(o,f,n){var a=n(7937),c=a(Object.getPrototypeOf,Object);o.exports=c},4817(o,f,n){var a=n(7759),c=Object.prototype,l=c.hasOwnProperty,u=c.toString,p=a?a.toStringTag:void 0;function g(m){var v=l.call(m,p),w=m[p];try{m[p]=void 0;var x=!0}catch{}var P=u.call(m);return x&&(v?m[p]=w:delete m[p]),P}o.exports=g},1454(o,f,n){var a=n(1840),c=n(5615),l=Object.prototype,u=l.propertyIsEnumerable,p=Object.getOwnPropertySymbols,g=p?function(m){return m==null?[]:(m=Object(m),a(p(m),function(v){return u.call(m,v)}))}:c;o.exports=g},6649(o,f,n){var a=n(9130),c=n(553),l=n(1454),u=n(5615),p=Object.getOwnPropertySymbols,g=p?function(m){for(var v=[];m;)a(v,l(m)),m=c(m);return v}:u;o.exports=g},1663(o,f,n){var a=n(8054),c=n(2565),l=n(8246),u=n(4099),p=n(6221),g=n(1490),m=n(8815),v="[object Map]",w="[object Object]",x="[object Promise]",P="[object Set]",$="[object WeakMap]",N="[object DataView]",H=m(a),D=m(c),q=m(l),oe=m(u),ve=m(p),_=g;(a&&_(new a(new ArrayBuffer(1)))!=N||c&&_(new c)!=v||l&&_(l.resolve())!=x||u&&_(new u)!=P||p&&_(new p)!=$)&&(_=function(Ce){var ye=g(Ce),Oe=ye==w?Ce.constructor:void 0,ae=Oe?m(Oe):"";if(ae)switch(ae){case H:return N;case D:return v;case q:return x;case oe:return P;case ve:return $}return ye}),o.exports=_},2490(o){function f(n,a){return n?.[a]}o.exports=f},5728(o,f,n){var a=n(2155),c=n(1750),l=n(2619),u=n(2159),p=n(5300),g=n(5155);function m(v,w,x){w=a(w,v);for(var P=-1,$=w.length,N=!1;++P<$;){var H=g(w[P]);if(!(N=v!=null&&x(v,H)))break;v=v[H]}return N||++P!=$?N:($=v==null?0:v.length,!!$&&p($)&&u(H,$)&&(l(v)||c(v)))}o.exports=m},2130(o,f,n){var a=n(9444);function c(){this.__data__=a?a(null):{},this.size=0}o.exports=c},1924(o){function f(n){var a=this.has(n)&&delete this.__data__[n];return this.size-=a?1:0,a}o.exports=f},4743(o,f,n){var a=n(9444),c="__lodash_hash_undefined__",l=Object.prototype,u=l.hasOwnProperty;function p(g){var m=this.__data__;if(a){var v=m[g];return v===c?void 0:v}return u.call(m,g)?m[g]:void 0}o.exports=p},1755(o,f,n){var a=n(9444),c=Object.prototype,l=c.hasOwnProperty;function u(p){var g=this.__data__;return a?g[p]!==void 0:l.call(g,p)}o.exports=u},5203(o,f,n){var a=n(9444),c="__lodash_hash_undefined__";function l(u,p){var g=this.__data__;return this.size+=this.has(u)?0:1,g[u]=a&&p===void 0?c:p,this}o.exports=l},143(o){var f=Object.prototype,n=f.hasOwnProperty;function a(c){var l=c.length,u=new c.constructor(l);return l&&typeof c[0]=="string"&&n.call(c,"index")&&(u.index=c.index,u.input=c.input),u}o.exports=a},7265(o,f,n){var a=n(2859),c=n(7795),l=n(6899),u=n(4518),p=n(5979),g="[object Boolean]",m="[object Date]",v="[object Map]",w="[object Number]",x="[object RegExp]",P="[object Set]",$="[object String]",N="[object Symbol]",H="[object ArrayBuffer]",D="[object DataView]",q="[object Float32Array]",oe="[object Float64Array]",ve="[object Int8Array]",_="[object Int16Array]",Ce="[object Int32Array]",ye="[object Uint8Array]",Oe="[object Uint8ClampedArray]",ae="[object Uint16Array]",pe="[object Uint32Array]";function ce(le,de,G){var be=le.constructor;switch(de){case H:return a(le);case g:case m:return new be(+le);case D:return c(le,G);case q:case oe:case ve:case _:case Ce:case ye:case Oe:case ae:case pe:return p(le,G);case v:return new be;case w:case $:return new be(le);case x:return l(le);case P:return new be;case N:return u(le)}}o.exports=ce},8879(o,f,n){var a=n(8514),c=n(553),l=n(8861);function u(p){return typeof p.constructor=="function"&&!l(p)?a(c(p)):{}}o.exports=u},2159(o){var f=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function a(c,l){var u=typeof c;return l=l??f,!!l&&(u=="number"||u!="symbol"&&n.test(c))&&c>-1&&c%1==0&&c<l}o.exports=a},9542(o,f,n){var a=n(9506),c=n(644),l=n(2159),u=n(9323);function p(g,m,v){if(!u(v))return!1;var w=typeof m;return(w=="number"?c(v)&&l(m,v.length):w=="string"&&m in v)?a(v[m],g):!1}o.exports=p},5304(o,f,n){var a=n(2619),c=n(7964),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function p(g,m){if(a(g))return!1;var v=typeof g;return v=="number"||v=="symbol"||v=="boolean"||g==null||c(g)?!0:u.test(g)||!l.test(g)||m!=null&&g in Object(m)}o.exports=p},7500(o){function f(n){var a=typeof n;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?n!=="__proto__":n===null}o.exports=f},2958(o,f,n){var a=n(3703),c=function(){var u=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function l(u){return!!c&&c in u}o.exports=l},8861(o){var f=Object.prototype;function n(a){var c=a&&a.constructor,l=typeof c=="function"&&c.prototype||f;return a===l}o.exports=n},3044(o){function f(){this.__data__=[],this.size=0}o.exports=f},4066(o,f,n){var a=n(7831),c=Array.prototype,l=c.splice;function u(p){var g=this.__data__,m=a(g,p);if(m<0)return!1;var v=g.length-1;return m==v?g.pop():l.call(g,m,1),--this.size,!0}o.exports=u},8461(o,f,n){var a=n(7831);function c(l){var u=this.__data__,p=a(u,l);return p<0?void 0:u[p][1]}o.exports=c},4417(o,f,n){var a=n(7831);function c(l){return a(this.__data__,l)>-1}o.exports=c},2777(o,f,n){var a=n(7831);function c(l,u){var p=this.__data__,g=a(p,l);return g<0?(++this.size,p.push([l,u])):p[g][1]=u,this}o.exports=c},4614(o,f,n){var a=n(3219),c=n(7321),l=n(2565);function u(){this.size=0,this.__data__={hash:new a,map:new(l||c),string:new a}}o.exports=u},9504(o,f,n){var a=n(9257);function c(l){var u=a(this,l).delete(l);return this.size-=u?1:0,u}o.exports=c},9251(o,f,n){var a=n(9257);function c(l){return a(this,l).get(l)}o.exports=c},5791(o,f,n){var a=n(9257);function c(l){return a(this,l).has(l)}o.exports=c},1511(o,f,n){var a=n(9257);function c(l,u){var p=a(this,l),g=p.size;return p.set(l,u),this.size+=p.size==g?0:1,this}o.exports=c},3426(o,f,n){var a=n(8590),c=500;function l(u){var p=a(u,function(m){return g.size===c&&g.clear(),m}),g=p.cache;return p}o.exports=l},9444(o,f,n){var a=n(5592),c=a(Object,"create");o.exports=c},9692(o,f,n){var a=n(7937),c=a(Object.keys,Object);o.exports=c},1779(o){function f(n){var a=[];if(n!=null)for(var c in Object(n))a.push(c);return a}o.exports=f},1587(o,f,n){o=n.nmd(o);var a=n(6710),c=f&&!f.nodeType&&f,l=c&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===c,p=u&&a.process,g=function(){try{var m=l&&l.require&&l.require("util").types;return m||p&&p.binding&&p.binding("util")}catch{}}();o.exports=g},7748(o){var f=Object.prototype,n=f.toString;function a(c){return n.call(c)}o.exports=a},7937(o){function f(n,a){return function(c){return n(a(c))}}o.exports=f},8619(o,f,n){var a=n(6047),c=Math.max;function l(u,p,g){return p=c(p===void 0?u.length-1:p,0),function(){for(var m=arguments,v=-1,w=c(m.length-p,0),x=Array(w);++v<w;)x[v]=m[p+v];v=-1;for(var P=Array(p+1);++v<p;)P[v]=m[v];return P[p]=g(x),a(u,this,P)}}o.exports=l},907(o,f,n){var a=n(6710),c=typeof self=="object"&&self&&self.Object===Object&&self,l=a||c||Function("return this")();o.exports=l},5760(o){function f(n,a){if(!(a==="constructor"&&typeof n[a]=="function")&&a!="__proto__")return n[a]}o.exports=f},9599(o,f,n){var a=n(7680),c=n(6101),l=c(a);o.exports=l},6101(o){var f=800,n=16,a=Date.now;function c(l){var u=0,p=0;return function(){var g=a(),m=n-(g-p);if(p=g,m>0){if(++u>=f)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}o.exports=c},1306(o,f,n){var a=n(7321);function c(){this.__data__=new a,this.size=0}o.exports=c},3180(o){function f(n){var a=this.__data__,c=a.delete(n);return this.size=a.size,c}o.exports=f},5247(o){function f(n){return this.__data__.get(n)}o.exports=f},2835(o){function f(n){return this.__data__.has(n)}o.exports=f},9179(o,f,n){var a=n(7321),c=n(2565),l=n(111),u=200;function p(g,m){var v=this.__data__;if(v instanceof a){var w=v.__data__;if(!c||w.length<u-1)return w.push([g,m]),this.size=++v.size,this;v=this.__data__=new l(w)}return v.set(g,m),this.size=v.size,this}o.exports=p},4352(o,f,n){var a=n(3426),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=a(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(c,function(m,v,w,x){g.push(w?x.replace(l,"$1"):v||m)}),g});o.exports=u},5155(o,f,n){var a=n(7964),c=1/0;function l(u){if(typeof u=="string"||a(u))return u;var p=u+"";return p=="0"&&1/u==-c?"-0":p}o.exports=l},8815(o){var f=Function.prototype,n=f.toString;function a(c){if(c!=null){try{return n.call(c)}catch{}try{return c+""}catch{}}return""}o.exports=a},5082(o){var f=/\s/;function n(a){for(var c=a.length;c--&&f.test(a.charAt(c)););return c}o.exports=n},8313(o,f,n){var a=n(6057),c=1,l=4;function u(p){return a(p,c|l)}o.exports=u},6148(o){function f(n){return function(){return n}}o.exports=f},671(o,f,n){var a=n(9323),c=n(5062),l=n(9480),u="Expected a function",p=Math.max,g=Math.min;function m(v,w,x){var P,$,N,H,D,q,oe=0,ve=!1,_=!1,Ce=!0;if(typeof v!="function")throw new TypeError(u);w=l(w)||0,a(x)&&(ve=!!x.leading,_="maxWait"in x,N=_?p(l(x.maxWait)||0,w):N,Ce="trailing"in x?!!x.trailing:Ce);function ye(J){var we=P,Ue=$;return P=$=void 0,oe=J,H=v.apply(Ue,we),H}function Oe(J){return oe=J,D=setTimeout(ce,w),ve?ye(J):H}function ae(J){var we=J-q,Ue=J-oe,st=w-we;return _?g(st,N-Ue):st}function pe(J){var we=J-q,Ue=J-oe;return q===void 0||we>=w||we<0||_&&Ue>=N}function ce(){var J=c();if(pe(J))return le(J);D=setTimeout(ce,ae(J))}function le(J){return D=void 0,Ce&&P?ye(J):(P=$=void 0,H)}function de(){D!==void 0&&clearTimeout(D),oe=0,P=q=$=D=void 0}function G(){return D===void 0?H:le(c())}function be(){var J=c(),we=pe(J);if(P=arguments,$=this,q=J,we){if(D===void 0)return Oe(q);if(_)return clearTimeout(D),D=setTimeout(ce,w),ye(q)}return D===void 0&&(D=setTimeout(ce,w)),H}return be.cancel=de,be.flush=G,be}o.exports=m},9506(o){function f(n,a){return n===a||n!==n&&a!==a}o.exports=f},2438(o,f,n){var a=n(3208);function c(l,u,p){var g=l==null?void 0:a(l,u);return g===void 0?p:g}o.exports=c},2146(o,f,n){var a=n(2780),c=n(5728);function l(u,p){return u!=null&&c(u,p,a)}o.exports=l},4846(o){function f(n){return n}o.exports=f},1750(o,f,n){var a=n(2960),c=n(2292),l=Object.prototype,u=l.hasOwnProperty,p=l.propertyIsEnumerable,g=a(function(){return arguments}())?a:function(m){return c(m)&&u.call(m,"callee")&&!p.call(m,"callee")};o.exports=g},2619(o){var f=Array.isArray;o.exports=f},644(o,f,n){var a=n(860),c=n(5300);function l(u){return u!=null&&c(u.length)&&!a(u)}o.exports=l},1891(o,f,n){var a=n(644),c=n(2292);function l(u){return c(u)&&a(u)}o.exports=l},3446(o,f,n){o=n.nmd(o);var a=n(907),c=n(9349),l=f&&!f.nodeType&&f,u=l&&!0&&o&&!o.nodeType&&o,p=u&&u.exports===l,g=p?a.Buffer:void 0,m=g?g.isBuffer:void 0,v=m||c;o.exports=v},860(o,f,n){var a=n(1490),c=n(9323),l="[object AsyncFunction]",u="[object Function]",p="[object GeneratorFunction]",g="[object Proxy]";function m(v){if(!c(v))return!1;var w=a(v);return w==u||w==p||w==l||w==g}o.exports=m},5300(o){var f=9007199254740991;function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=f}o.exports=n},7884(o,f,n){var a=n(9694),c=n(1155),l=n(1587),u=l&&l.isMap,p=u?c(u):a;o.exports=p},9323(o){function f(n){var a=typeof n;return n!=null&&(a=="object"||a=="function")}o.exports=f},2292(o){function f(n){return n!=null&&typeof n=="object"}o.exports=f},1281(o,f,n){var a=n(1490),c=n(553),l=n(2292),u="[object Object]",p=Function.prototype,g=Object.prototype,m=p.toString,v=g.hasOwnProperty,w=m.call(Object);function x(P){if(!l(P)||a(P)!=u)return!1;var $=c(P);if($===null)return!0;var N=v.call($,"constructor")&&$.constructor;return typeof N=="function"&&N instanceof N&&m.call(N)==w}o.exports=x},5070(o,f,n){var a=n(8172),c=n(1155),l=n(1587),u=l&&l.isSet,p=u?c(u):a;o.exports=p},7964(o,f,n){var a=n(1490),c=n(2292),l="[object Symbol]";function u(p){return typeof p=="symbol"||c(p)&&a(p)==l}o.exports=u},3133(o,f,n){var a=n(5283),c=n(1155),l=n(1587),u=l&&l.isTypedArray,p=u?c(u):a;o.exports=p},2096(o,f,n){var a=n(3737),c=n(2322),l=n(644);function u(p){return l(p)?a(p):c(p)}o.exports=u},7999(o,f,n){var a=n(3737),c=n(5045),l=n(644);function u(p){return l(p)?a(p,!0):c(p)}o.exports=u},8590(o,f,n){var a=n(111),c="Expected a function";function l(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new TypeError(c);var g=function(){var m=arguments,v=p?p.apply(this,m):m[0],w=g.cache;if(w.has(v))return w.get(v);var x=u.apply(this,m);return g.cache=w.set(v,x)||w,x};return g.cache=new(l.Cache||a),g}l.Cache=a,o.exports=l},8970(o,f,n){var a=n(3912),c=n(2917),l=c(function(u,p,g){a(u,p,g)});o.exports=l},5062(o,f,n){var a=n(907),c=function(){return a.Date.now()};o.exports=c},2154(o,f,n){var a=n(604);function c(l,u,p){return l==null?l:a(l,u,p)}o.exports=c},5615(o){function f(){return[]}o.exports=f},9349(o){function f(){return!1}o.exports=f},6712(o,f,n){var a=n(671),c=n(9323),l="Expected a function";function u(p,g,m){var v=!0,w=!0;if(typeof p!="function")throw new TypeError(l);return c(m)&&(v="leading"in m?!!m.leading:v,w="trailing"in m?!!m.trailing:w),a(p,g,{leading:v,maxWait:g,trailing:w})}o.exports=u},9480(o,f,n){var a=n(6),c=n(9323),l=n(7964),u=NaN,p=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,m=/^0o[0-7]+$/i,v=parseInt;function w(x){if(typeof x=="number")return x;if(l(x))return u;if(c(x)){var P=typeof x.valueOf=="function"?x.valueOf():x;x=c(P)?P+"":P}if(typeof x!="string")return x===0?x:+x;x=a(x);var $=g.test(x);return $||m.test(x)?v(x.slice(2),$?2:8):p.test(x)?u:+x}o.exports=w},4514(o,f,n){var a=n(7145),c=n(7999);function l(u){return a(u,c(u))}o.exports=l},7164(o,f,n){var a=n(1978);function c(l){return l==null?"":a(l)}o.exports=c},162(o){o.exports=function(n,a,c,l){var u=c?c.call(l,n,a):void 0;if(u!==void 0)return!!u;if(n===a)return!0;if(typeof n!="object"||!n||typeof a!="object"||!a)return!1;var p=Object.keys(n),g=Object.keys(a);if(p.length!==g.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(a),v=0;v<p.length;v++){var w=p[v];if(!m(w))return!1;var x=n[w],P=a[w];if(u=c?c.call(l,x,P,w):void 0,u===!1||u===void 0&&x!==P)return!1}return!0}},4883(o){"use strict";o.exports=hr}};const qe={};function Y(o){const f=qe[o];if(f!==void 0)return f.exports;const n=qe[o]={id:o,loaded:!1,exports:{}};return wt[o](n,n.exports,Y),n.loaded=!0,n.exports}Y.n=o=>{const f=o&&o.__esModule?()=>o.default:()=>o;return Y.d(f,{a:f}),f},Y.cw=o=>{var f;return()=>{if(o){var n=o;o=0,f={exports:{}},n.call(f.exports,f,f.exports)}return f.exports}},Y.d=(o,f)=>{for(var n in f)Y.o(f,n)&&!Y.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:f[n]})},Y.o=(o,f)=>Object.hasOwn(o,f),Y.r=o=>{Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},Y.nmd=o=>(o.paths=[],o.children||(o.children=[]),o),(()=>{let o;globalThis.importScripts&&(o=globalThis.location+"");const f=globalThis.document;if(!o&&f&&(f.currentScript?.tagName.toUpperCase()==="SCRIPT"&&(o=f.currentScript.src),!o)){const n=f.getElementsByTagName("script");if(n.length){let a=n.length-1;for(;a>-1&&(!o||!/^https?:/.test(o));)o=n[a--].src}}if(!o)throw new Error("Automatic publicPath is not supported in this browser");o=o.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),Y.p=o})(),Y.nc=void 0;let Nt={};return(()=>{"use strict";Y.r(Nt),Y.d(Nt,{CAppBridge:()=>rs,Event:()=>le,LaunchMode:()=>ae,MicroAppManager:()=>pe,ScriptLoader:()=>kr,ScriptingObject:()=>Ue,SecurityContext:()=>a,StyleLoader:()=>zr});var o=Y.cw(function(r,e){var t=n(),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},d={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},h={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},y={};y[t.ForwardRef]=d,y[t.Memo]=h;function S(M){return t.isMemo(M)?h:y[M.$$typeof]||s}var A=Object.defineProperty,E=Object.getOwnPropertyNames,O=Object.getOwnPropertySymbols,k=Object.getOwnPropertyDescriptor,L=Object.getPrototypeOf,F=Object.prototype;function U(M,X,W){if(typeof X!="string"){if(F){var ue=L(X);ue&&ue!==F&&U(M,ue,W)}var ee=E(X);O&&(ee=ee.concat(O(X)));for(var K=S(M),Ie=S(X),T=0;T<ee.length;++T){var fe=ee[T];if(!i[fe]&&!(W&&W[fe])&&!(Ie&&Ie[fe])&&!(K&&K[fe])){var Le=k(X,fe);try{A(M,fe,Le)}catch{}}}}return M}r.exports=U}),f=Y.cw(function(r,e){/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var t=typeof Symbol=="function"&&Symbol.for,o=t?Symbol.for("react.element"):60103,c=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,d=t?Symbol.for("react.profiler"):60114,g=t?Symbol.for("react.provider"):60109,m=t?Symbol.for("react.context"):60110,v=t?Symbol.for("react.async_mode"):60111,w=t?Symbol.for("react.concurrent_mode"):60111,x=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,I=t?Symbol.for("react.suspense_list"):60120,D=t?Symbol.for("react.memo"):60115,L=t?Symbol.for("react.lazy"):60116,F=t?Symbol.for("react.block"):60121,z=t?Symbol.for("react.fundamental"):60117,X=t?Symbol.for("react.responder"):60118,ce=t?Symbol.for("react.scope"):60119;function R(S){if(typeof S=="object"&&S!==null){var le=S.$$typeof;switch(le){case o:switch(S=S.type,S){case v:case w:case l:case d:case u:case T:return S;default:switch(S=S&&S.$$typeof,S){case m:case x:case L:case D:case g:return S;default:return le}}case c:return le}}}function Q(S){return R(S)===w}p.AsyncMode=v,p.ConcurrentMode=w,p.ContextConsumer=m,p.ContextProvider=g,p.Element=o,p.ForwardRef=x,p.Fragment=l,p.Lazy=L,p.Memo=D,p.Portal=c,p.Profiler=d,p.StrictMode=u,p.Suspense=T,p.isAsyncMode=function(S){return Q(S)||R(S)===v},p.isConcurrentMode=Q,p.isContextConsumer=function(S){return R(S)===m},p.isContextProvider=function(S){return R(S)===g},p.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===o},p.isForwardRef=function(S){return R(S)===x},p.isFragment=function(S){return R(S)===l},p.isLazy=function(S){return R(S)===L},p.isMemo=function(S){return R(S)===D},p.isPortal=function(S){return R(S)===c},p.isProfiler=function(S){return R(S)===d},p.isStrictMode=function(S){return R(S)===u},p.isSuspense=function(S){return R(S)===T},p.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===l||S===w||S===d||S===u||S===T||S===I||typeof S=="object"&&S!==null&&(S.$$typeof===L||S.$$typeof===D||S.$$typeof===g||S.$$typeof===m||S.$$typeof===x||S.$$typeof===z||S.$$typeof===X||S.$$typeof===ce||S.$$typeof===F)},p.typeOf=R},7020(i,p,t){"use strict";i.exports=t(5360)},162(i){i.exports=function(t,o,c,l){var u=c?c.call(l,t,o):void 0;if(u!==void 0)return!!u;if(t===o)return!0;if(typeof t!="object"||!t||typeof o!="object"||!o)return!1;var d=Object.keys(t),g=Object.keys(o);if(d.length!==g.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(o),v=0;v<d.length;v++){var w=d[v];if(!m(w))return!1;var x=t[w],T=o[w];if(u=c?c.call(l,x,T,w):void 0,u===!1||u===void 0&&x!==T)return!1}return!0}},4883(i){"use strict";i.exports=fr}};const qe={};function Y(i){const p=qe[i];if(p!==void 0)return p.exports;const t=qe[i]={id:i,loaded:!1,exports:{}};return wt[i](t,t.exports,Y),t.loaded=!0,t.exports}Y.n=i=>{const p=i&&i.__esModule?()=>i.default:()=>i;return Y.d(p,{a:p}),p},Y.d=(i,p)=>{if(Array.isArray(p))for(var t=0;t<p.length;){var o=p[t++],c=p[t++];Y.o(i,o)?c===0&&t++:c===0?Object.defineProperty(i,o,{enumerable:!0,value:p[t++]}):Object.defineProperty(i,o,{enumerable:!0,get:c})}else for(var o in p)Y.o(p,o)&&!Y.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:p[o]})},Y.o=(i,p)=>Object.hasOwn(i,p),Y.r=i=>{Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},Y.nmd=i=>(i.paths=[],i.children||(i.children=[]),i),(()=>{let i;globalThis.importScripts&&(i=globalThis.location+"");const p=globalThis.document;if(!i&&p&&(p.currentScript?.tagName.toUpperCase()==="SCRIPT"&&(i=p.currentScript.src),!i)){const t=p.getElementsByTagName("script");if(t.length){let o=t.length-1;for(;o>-1&&(!i||!/^http(s?):/.test(i));)i=t[o--].src}}if(!i)throw new Error("Automatic publicPath is not supported in this browser");i=i.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),Y.p=i})(),Y.nc=void 0;let zt={};return(()=>{"use strict";Y.r(zt),Y.d(zt,{CAppBridge:()=>ts,Event:()=>ne,LaunchMode:()=>Q,MicroAppManager:()=>S,ScriptLoader:()=>Ur,ScriptingObject:()=>ve,SecurityContext:()=>i,StyleLoader:()=>kr});var i=(n=>(n.USER="USER",n.PARTNER="PARTNER",n))(i||{}),p=Y(8313),t=Y.n(p),o=Y(2438),c=Y.n(o),l=Y(2154),u=Y.n(l),d=Y(2146),g=Y.n(d),m=Y(8970),v=Y.n(m);const w=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),x=n=>n.replace(/([^:]\/)\/+/g,"$1"),T=n=>{const e=document.createElement("a");return e.href=n,e.href},I=n=>n?.replace?.(/\/?$/,"/"),D=(n,e)=>`${n.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,L=n=>/^(\/|https?:\/\/)/.test(n),F=(n,e)=>{const r=I(e);if(L(r)){const{origin:s}=new URL(n,window.location.href);return x(new URL(r,s).href)}return x(new URL(r,I(n)).href)},z=(n,e)=>x(new URL("manifest.json",F(n,e)).href),X=()=>window.navigator.userAgent.includes("jsdom"),ce=n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),R=n=>{try{if(new URL(n,window.location.href).origin===window.location.origin)return n;const r=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${r}/frame.html`}catch{return n}};var Q=(n=>(n.DEVELOPMENT="development",n.PRODUCTION="production",n))(Q||{}),S=(n=>(n.SSF="ssf",n.APPSDK="appsdk",n))(S||{});class le{#e=w;#t;#r;constructor(e){this.#t=e?.version||"latest",this.#r=I(e?.baseUrl||"")}#o=e=>{const{activeEnv:r,env:s,...a}=e,f=s[r]||{};this.#e=v()({},a,f)};get=(e="",r=null)=>t()(c()(this.#e,e,r));set=(e,r)=>{u()(this.#e,e,r)};has=(e="")=>g()(this.#e,e);setPreloadedConfig=e=>{this.#e=e};#n=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#r)){const r=this.#t.match(/^(?:\d+\.\d+)*/g);return I(`${this.#r}${r?.[0]||"latest"}`)}return this.#r};#i=()=>{const e=this.#n();return I(e.replace(/(\/)(\d+\.\d+|latest)\/?$/,"$1latest/"))};load=async e=>{const r=e??`${this.#n()}app.config.json`,s=`${this.#i()}app.config.json`,a=h=>!e&&h!==s;let f;try{f=await fetch(r)}catch(h){if(a(r)){await this.load(s);return}throw new Error("Failed to fetch app config",{cause:h})}if(f.ok)try{const h=await f.json();this.#o(h)}catch(h){if(a(r)){await this.load(s);return}throw new Error("Failed to parse app config",{cause:h})}else if(a(r))await this.load(s);else throw new Error("Failed to load app config")}}class ne{name;objectId;id;constructor(e){const{name:r,objectId:s}=e;if(!r)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");this.objectId=s,this.name=r,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class ue{static[Symbol.hasInstance](e){return typeof e=="object"&&e!==null&&"getType"in e&&typeof e.getType=="function"&&e.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(e){const{name:r,objectId:s,eventSrc:a}=e;if(!r)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");if(!a)throw new Error("Event source is required");this.objectId=s,this.name=r,this.#e=a,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=e=>this.#e.subscribe({eventId:this.id,callback:e});unsubscribe=e=>{this.#e.unsubscribe({eventId:this.id,token:e})}}const oe=n=>n instanceof ne,me=(n,e)=>`${n.toLowerCase()}.${e.toLowerCase()}`,pe="function",B=(n,e)=>typeof n===pe&&!!e&&!e.startsWith("_");class ve{#e;#t="Object";constructor(e,r){this.#e=e,this.#t=r||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const e=[],r=[];return Object.keys(this).forEach(s=>{const a=this[s];oe(a)?r.push(s):B(a,s)&&e.push(s)}),{objectId:this.#e,objectType:this.#t,functions:e,events:r}};_dispose=()=>{};dispose=()=>{}}var _=Y(6712),Ae=Y.n(_);const et={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let it;const xt=new Uint8Array(16);function Bt(){if(!it&&(it=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!it))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return it(xt)}var Vt;const ye=[];for(let n=0;n<256;++n)ye.push((n+256).toString(16).slice(1));function St(n,e=0){return ye[n[e+0]]+ye[n[e+1]]+ye[n[e+2]]+ye[n[e+3]]+"-"+ye[n[e+4]]+ye[n[e+5]]+"-"+ye[n[e+6]]+ye[n[e+7]]+"-"+ye[n[e+8]]+ye[n[e+9]]+"-"+ye[n[e+10]]+ye[n[e+11]]+ye[n[e+12]]+ye[n[e+13]]+ye[n[e+14]]+ye[n[e+15]]}function hr(n,e=0){const r=St(n,e);if(!Vt(r))throw TypeError("Stringified UUID is invalid");return r}const gr=null;function Gt(n,e,r){if(et.randomUUID&&!e&&!n)return et.randomUUID();n=n||{};const s=n.random||(n.rng||Bt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){r=r||0;for(let a=0;a<16;++a)e[r+a]=s[a];return e}return St(s)}const At=Gt;var tt=(n=>(n.Analytics="analytics",n.Application="application",n.Auth="auth",n.Form="form",n.Global="global",n.Http="http",n.Loan="loan",n.LoanV2="loanV2",n.MemStorage="memstorage",n.Module="module",n.Service="service",n.Session="session",n.Styling="styling",n.Transaction="transaction",n.TransactionTemplate="transactiontemplate",n.WebSocket="websocket",n))(tt||{});const Et="module";var mr=null,vr=null;class Ht{#e=e=>e.trim().toLowerCase();#t=new Map;#r=new Map;#o=e=>{const{so:r,guestId:s,onDuplicate:a="throw",securityContext:f}=e,h=this.#e(r.id),y={so:r,guestId:s,securityContext:f},A=this.#r.get(s);if(!A){this.#r.set(s,new Map([[h,y]]));return}if(A.has(h)){if(a==="ignore")return;throw new Error(`Scripting Object ${r.id} already exists for guest ${s}`)}A.set(h,y)};#n=({so:e})=>{if(e._dispose&&typeof e._dispose=="function")try{e._dispose()}catch{}};#i=({objectId:e,guestId:r})=>{if(e===Et&&!r)for(const[,a]of this.#r){const f=a.get(e);if(f)return f}const s=r?this.#r.get(r):null;return s?s.get(e)??null:null};#s=({objectId:e,guestId:r}={})=>{if(r){if(!e){const a=this.#r.get(r);a&&a.forEach(this.#n),this.#r.delete(r);return}const s=this.#r.get(r);if(s){const a=s.get(e);a&&this.#n(a),s.delete(e)}}else e&&this.#r.forEach(s=>{const a=s.get(e);a&&this.#n(a),s.delete(e)})};addScriptingObject=(e,r)=>{const{guestId:s,onDuplicate:a="throw",securityContext:f}=r||{};if(!e?.id||!e?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=this.#e(e.id);if(h===Et&&!s)throw new Error("Guest id is required to add Module scripting object");if(s){this.#o({so:e,...r,guestId:s,onDuplicate:a});return}if(this.#t.has(h)){if(a==="ignore")return;throw new Error(`Scripting Object ${e.id} already exists`)}this.#t.set(h,{so:e,guestId:s,securityContext:f})};getObject=(e,r)=>{const s=this.#e(e);let a=this.#i({objectId:s,guestId:r?.id});a=a??this.#t.get(s)??null;const{so:f}=a||{};return f||null};has=(e,r)=>this.getObject(e,r)!==null;listScriptingObjects=e=>{const r=new Set(this.#t.keys()),s=this.#r.get(e);if(s)for(const a of s.keys())r.add(a);return Array.from(r)};removeScriptingObject=(e,r)=>{const s=this.#e(e);if(r)this.#s({objectId:s,guestId:r});else{this.#s({objectId:s});const a=this.#t.get(s);a&&this.#n(a),this.#t.delete(s)}};removeAllScriptingObjects=e=>{e?this.#s({guestId:e}):(this.#t.forEach(this.#n),this.#t.clear())}}class Wt{__TYPE__="Proxy";id;objectType;constructor(e,r){this.id=e,this.objectType=r}}const Ot=n=>n?.constructor?.name==="Proxy"||n?.constructor?.name==="ScriptingObjectProxy"||n?.__TYPE__==="Proxy";class Kt{#e=new Map;#t=new WeakMap;#r;constructor(e){this.#r=e}#o=(e,r)=>{const s=new Promise(a=>{setTimeout(()=>{a()},r)});return Promise.race([e,s])};#n=(e,r)=>{const s=r?.guestId;return!s||!e.guestId?!0:e.guestId===s};#i=e=>{const{eventName:r,scriptingObject:s,eventParams:a,listeners:f,eventOptions:h}=e;f.forEach(y=>{this.#n(y,h)&&(y.criteria&&!(a&&this.#c(a,y.criteria))||Promise.resolve(y.callback({obj:s,eventName:r,eventParams:a})).catch(A=>{this.#r?.warn(`Error in event listener for "${r}": ${A.message}`)}))})};#s=async({eventId:e,eventName:r,scriptingObject:s,eventParams:a,feedbackWaitTime:f,eventOptions:h})=>{const A=(this.#e.get(e)||[]).map(C=>!this.#n(C,h)||C.criteria&&!(a?this.#c(a,C.criteria):!1)?Promise.resolve():this.#o(C.callback({obj:s,eventName:r,eventParams:a}),f));return(await Promise.all(A)).flat(1/0).filter(C=>C!==void 0)};#c(e,r){return Object.entries(r).every(([s,a])=>{const f=e[s];if("eq"in a)return f===a.eq;if("in"in a)return Array.isArray(a.in)&&a.in.includes(f);if("includes"in a)return Array.isArray(f)&&f.includes(a.includes);if("gt"in a){const h=typeof f=="number"?f:Number(f);return!Number.isNaN(h)&&h>a.gt}if("lt"in a){const h=typeof f=="number"?f:Number(f);return!Number.isNaN(h)&&h<a.lt}if("regex"in a){let h=this.#t.get(a);if(h===void 0){try{h=new RegExp(a.regex)}catch{h=null}this.#t.set(a,h)}return h!==null&&typeof f=="string"&&h.test(f)}return!1})}dispatchEvent=async(e,r)=>{const{event:{id:s,name:a},eventParams:f,eventOptions:h}=r,{timeout:y}=h??{};if(!s)throw new Error("Event Id is required");const A=this.#e.get(s)||[];return!y||y<=0?(this.#i({eventName:a,scriptingObject:e,eventParams:f,listeners:A,eventOptions:h}),Promise.resolve()):this.#s({eventId:s,eventName:a,scriptingObject:e,eventParams:f,feedbackWaitTime:y,eventOptions:h})};subscribe=e=>{const{eventId:r,callback:s,criteria:a,guestId:f}=e;if(!r)throw new Error("eventId is required");if(!s)throw new Error("Callback is required");const h=this.#e.get(r)||[],y=At();return h.push({token:y,criteria:a,guestId:f,callback:s}),this.#e.set(r,h),y};unsubscribe=e=>{const{eventId:r,token:s}=e;if(!r)throw new Error("eventId id is required");if(s){const a=this.#e.get(r)||[],f=a.findIndex(h=>h.token===s);f>-1&&(a.splice(f,1),this.#e.set(r,a))}else this.#e.delete(r)};unsubscribeAll=()=>{this.#e.clear()};unsubscribeByGuestId=e=>{e&&this.#e.forEach((r,s)=>{const a=r.filter(f=>f.guestId!==e);a.length===0?this.#e.delete(s):a.length!==r.length&&this.#e.set(s,a)})}}const se=Y.p+"4cbbcfa9ded96b660559.html?resource",He="pui-app-container-",q=n=>{const e=n.src??se.default??se,r=R(e);if(!n.queryParams)return r;const s=n.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${r}${r.includes("?")?"&":"?"}${s}`},We=({documentEle:n,hostUrl:e,manifestPath:r,guestId:s})=>{const a=n.getElementById(He);a&&(a.id=`${a.id}${s}`);const f=F(e,r);let h=n.getElementsByTagName("base")?.[0];if(h){h.href=f;return}h=n.createElement("base"),h.href=f,n.getElementsByTagName("head")[0].appendChild(h)},Ke=({id:n,instanceId:e,manifestPath:r,hostUrl:s,options:a})=>new Promise((f,h)=>{const{signal:y}=a;if(y?.aborted){h(new DOMException("iframe creation aborted","AbortError"));return}const A=document.createElement("div");A.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const E=document.createElement("iframe");E.setAttribute("id",e),E.setAttribute("data-testid",n),E.setAttribute("title",a.title),E.setAttribute("allowfullscreen","true"),E.setAttribute("allowtransparency","true"),a.permissionPolicy&&E.setAttribute("allow",a.permissionPolicy),a.sandbox&&E.setAttribute("sandbox",a.sandbox),E.setAttribute("style",a.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),E.setAttribute("src",q(a));const C=1e4;let P=!1,W,H;const N=()=>{clearTimeout(W),y?.removeEventListener("abort",H)},K=()=>y?.aborted?(P||(P=!0,N(),A.remove(),h(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(H=()=>{K()},K())return;y?.addEventListener("abort",H),W=setTimeout(()=>{P||(P=!0,N(),A.remove(),h(new Error(`iframe for ${n} failed to load within ${C}ms`)))},C),E.addEventListener("error",()=>{P||(P=!0,N(),A.remove(),h(new Error(`iframe for ${n} failed to load`)))}),E.addEventListener("load",()=>{P||K()||E.contentDocument&&(P=!0,N(),We({documentEle:E.contentDocument,hostUrl:s,manifestPath:r,guestId:n}),f(E))}),A.appendChild(E);const{containerId:U}=a;(document.getElementById(U??"")??document.body).appendChild(A)}),Ct=n=>document.getElementById(n),Ee={create:Ke,remove:n=>{const e=Ct(n);e&&e.parentElement?.remove()},get:Ct},Oe=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});var rt=Y(7020),Te=Y(4883),Ue=Y.n(Te),Tt=Y(162),Ye=Y.n(Tt);function Pt(n){function e($,j,M,V,b){for(var ee=0,O=0,fe=0,te=0,ie,G,we=0,Ie=0,J,Ce=J=ie=0,re=0,xe=0,yt=0,Se=0,kt=M.length,bt=kt-1,Ne,k="",ge="",pr="",dr="",_e;re<kt;){if(G=M.charCodeAt(re),re===bt&&O+te+fe+ee!==0&&(O!==0&&(G=O===47?10:47),te=fe=ee=0,kt++,bt++),O+te+fe+ee===0){if(re===bt&&(0<xe&&(k=k.replace(W,"")),0<k.trim().length)){switch(G){case 32:case 9:case 59:case 13:case 10:break;default:k+=M.charAt(re)}G=59}switch(G){case 123:for(k=k.trim(),ie=k.charCodeAt(0),J=1,Se=++re;re<kt;){switch(G=M.charCodeAt(re)){case 123:J++;break;case 125:J--;break;case 47:switch(G=M.charCodeAt(re+1)){case 42:case 47:e:{for(Ce=re+1;Ce<bt;++Ce)switch(M.charCodeAt(Ce)){case 47:if(G===42&&M.charCodeAt(Ce-1)===42&&re+2!==Ce){re=Ce+1;break e}break;case 10:if(G===47){re=Ce+1;break e}}re=Ce}}break;case 91:G++;case 40:G++;case 34:case 39:for(;re++<bt&&M.charCodeAt(re)!==G;);}if(J===0)break;re++}switch(J=M.substring(Se,re),ie===0&&(ie=(k=k.replace(P,"").trim()).charCodeAt(0)),ie){case 64:switch(0<xe&&(k=k.replace(W,"")),G=k.charCodeAt(1),G){case 100:case 109:case 115:case 45:xe=j;break;default:xe=gt}if(J=e(j,xe,J,G,b+1),Se=J.length,0<$e&&(xe=r(gt,k,yt),_e=y(3,J,xe,j,De,Me,Se,G,b,V),k=xe.join(""),_e!==void 0&&(Se=(J=_e.trim()).length)===0&&(G=0,J="")),0<Se)switch(G){case 115:k=k.replace(Je,h);case 100:case 109:case 45:J=k+"{"+J+"}";break;case 107:k=k.replace(Z,"$1 $2"),J=k+"{"+J+"}",J=Pe===1||Pe===2&&f("@"+J,3)?"@-webkit-"+J+"@"+J:"@"+J;break;default:J=k+J,V===112&&(J=(ge+=J,""))}else J="";break;default:J=e(j,r(j,k,yt),J,V,b+1)}pr+=J,J=yt=xe=Ce=ie=0,k="",G=M.charCodeAt(++re);break;case 125:case 59:if(k=(0<xe?k.replace(W,""):k).trim(),1<(Se=k.length))switch(Ce===0&&(ie=k.charCodeAt(0),ie===45||96<ie&&123>ie)&&(Se=(k=k.replace(" ",":")).length),0<$e&&(_e=y(1,k,j,$,De,Me,ge.length,V,b,V))!==void 0&&(Se=(k=_e.trim()).length)===0&&(k="\0\0"),ie=k.charCodeAt(0),G=k.charCodeAt(1),ie){case 0:break;case 64:if(G===105||G===99){dr+=k+M.charAt(re);break}default:k.charCodeAt(Se-1)!==58&&(ge+=a(k,ie,G,k.charCodeAt(2)))}yt=xe=Ce=ie=0,k="",G=M.charCodeAt(++re)}}switch(G){case 13:case 10:O===47?O=0:1+ie===0&&V!==107&&0<k.length&&(xe=1,k+="\0"),0<$e*ut&&y(0,k,j,$,De,Me,ge.length,V,b,V),Me=1,De++;break;case 59:case 125:if(O+te+fe+ee===0){Me++;break}default:switch(Me++,Ne=M.charAt(re),G){case 9:case 32:if(te+ee+O===0)switch(we){case 44:case 58:case 9:case 32:Ne="";break;default:G!==32&&(Ne=" ")}break;case 0:Ne="\\0";break;case 12:Ne="\\f";break;case 11:Ne="\\v";break;case 38:te+O+ee===0&&(xe=yt=1,Ne="\f"+Ne);break;case 108:if(te+O+ee+Be===0&&0<Ce)switch(re-Ce){case 2:we===112&&M.charCodeAt(re-3)===58&&(Be=we);case 8:Ie===111&&(Be=Ie)}break;case 58:te+O+ee===0&&(Ce=re);break;case 44:O+fe+te+ee===0&&(xe=1,Ne+="\r");break;case 34:case 39:O===0&&(te=te===G?0:te===0?G:te);break;case 91:te+O+fe===0&&ee++;break;case 93:te+O+fe===0&&ee--;break;case 41:te+O+ee===0&&fe--;break;case 40:if(te+O+ee===0){if(ie===0)switch(2*we+3*Ie){case 533:break;default:ie=1}fe++}break;case 64:O+fe+te+ee+Ce+J===0&&(J=1);break;case 42:case 47:if(!(0<te+ee+fe))switch(O){case 0:switch(2*G+3*M.charCodeAt(re+1)){case 235:O=47;break;case 220:Se=re,O=42}break;case 42:G===47&&we===42&&Se+2!==re&&(M.charCodeAt(Se+2)===33&&(ge+=M.substring(Se,re+1)),Ne="",O=0)}}O===0&&(k+=Ne)}Ie=we,we=G,re++}if(Se=ge.length,0<Se){if(xe=j,0<$e&&(_e=y(2,ge,xe,$,De,Me,Se,V,b,V),_e!==void 0&&(ge=_e).length===0))return dr+ge+pr;if(ge=xe.join(",")+"{"+ge+"}",Pe*Be!==0){switch(Pe!==2||f(ge,2)||(Be=0),Be){case 111:ge=ge.replace(de,":-moz-$1")+ge;break;case 112:ge=ge.replace(be,"::-webkit-input-$1")+ge.replace(be,"::-moz-$1")+ge.replace(be,":-ms-input-$1")+ge}Be=0}}return dr+ge+pr}function r($,j,M){var V=j.trim().split(U);j=V;var b=V.length,ee=$.length;switch(ee){case 0:case 1:var O=0;for($=ee===0?"":$[0]+" ";O<b;++O)j[O]=s($,j[O],M).trim();break;default:var fe=O=0;for(j=[];O<b;++O)for(var te=0;te<ee;++te)j[fe++]=s($[te]+" ",V[O],M).trim()}return j}function s($,j,M){var V=j.charCodeAt(0);switch(33>V&&(V=(j=j.trim()).charCodeAt(0)),V){case 38:return j.replace(ae,"$1"+$.trim());case 58:return $.trim()+j.replace(ae,"$1"+$.trim());default:if(0<1*M&&0<j.indexOf("\f"))return j.replace(ae,($.charCodeAt(0)===58?"":"$1")+$.trim())}return $+j}function a($,j,M,V){var b=$+";",ee=2*j+3*M+4*V;if(ee===944){$=b.indexOf(":",9)+1;var O=b.substring($,b.length-1).trim();return O=b.substring(0,$).trim()+O+";",Pe===1||Pe===2&&f(O,1)?"-webkit-"+O+O:O}if(Pe===0||Pe===2&&!f(b,1))return b;switch(ee){case 1015:return b.charCodeAt(10)===97?"-webkit-"+b+b:b;case 951:return b.charCodeAt(3)===116?"-webkit-"+b+b:b;case 963:return b.charCodeAt(5)===110?"-webkit-"+b+b:b;case 1009:if(b.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+b+b;case 978:return"-webkit-"+b+"-moz-"+b+b;case 1019:case 983:return"-webkit-"+b+"-moz-"+b+"-ms-"+b+b;case 883:if(b.charCodeAt(8)===45)return"-webkit-"+b+b;if(0<b.indexOf("image-set(",11))return b.replace(lt,"$1-webkit-$2")+b;break;case 932:if(b.charCodeAt(4)===45)switch(b.charCodeAt(5)){case 103:return"-webkit-box-"+b.replace("-grow","")+"-webkit-"+b+"-ms-"+b.replace("grow","positive")+b;case 115:return"-webkit-"+b+"-ms-"+b.replace("shrink","negative")+b;case 98:return"-webkit-"+b+"-ms-"+b.replace("basis","preferred-size")+b}return"-webkit-"+b+"-ms-"+b+b;case 964:return"-webkit-"+b+"-ms-flex-"+b+b;case 1023:if(b.charCodeAt(8)!==99)break;return O=b.substring(b.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+O+"-webkit-"+b+"-ms-flex-pack"+O+b;case 1005:return N.test(b)?b.replace(H,":-webkit-")+b.replace(H,":-moz-")+b:b;case 1e3:switch(O=b.substring(13).trim(),j=O.indexOf("-")+1,O.charCodeAt(0)+O.charCodeAt(j)){case 226:O=b.replace(he,"tb");break;case 232:O=b.replace(he,"tb-rl");break;case 220:O=b.replace(he,"lr");break;default:return b}return"-webkit-"+b+"-ms-"+O+b;case 1017:if(b.indexOf("sticky",9)===-1)break;case 975:switch(j=(b=$).length-10,O=(b.charCodeAt(j)===33?b.substring(0,j):b).substring($.indexOf(":",7)+1).trim(),ee=O.charCodeAt(0)+(O.charCodeAt(7)|0)){case 203:if(111>O.charCodeAt(8))break;case 115:b=b.replace(O,"-webkit-"+O)+";"+b;break;case 207:case 102:b=b.replace(O,"-webkit-"+(102<ee?"inline-":"")+"box")+";"+b.replace(O,"-webkit-"+O)+";"+b.replace(O,"-ms-"+O+"box")+";"+b}return b+";";case 938:if(b.charCodeAt(5)===45)switch(b.charCodeAt(6)){case 105:return O=b.replace("-items",""),"-webkit-"+b+"-webkit-box-"+O+"-ms-flex-"+O+b;case 115:return"-webkit-"+b+"-ms-flex-item-"+b.replace(Re,"")+b;default:return"-webkit-"+b+"-ms-flex-line-pack"+b.replace("align-content","").replace(Re,"")+b}break;case 973:case 989:if(b.charCodeAt(3)!==45||b.charCodeAt(4)===122)break;case 931:case 953:if(Qe.test($)===!0)return(O=$.substring($.indexOf(":")+1)).charCodeAt(0)===115?a($.replace("stretch","fill-available"),j,M,V).replace(":fill-available",":stretch"):b.replace(O,"-webkit-"+O)+b.replace(O,"-moz-"+O.replace("fill-",""))+b;break;case 962:if(b="-webkit-"+b+(b.charCodeAt(5)===102?"-ms-"+b:"")+b,M+V===211&&b.charCodeAt(13)===105&&0<b.indexOf("transform",10))return b.substring(0,b.indexOf(";",27)+1).replace(K,"$1-webkit-$2")+b}return b}function f($,j){var M=$.indexOf(j===1?":":"{"),V=$.substring(0,j!==3?M:10);return M=$.substring(M+1,$.length-1),mt(j!==2?V:V.replace(ze,"$1"),M,j)}function h($,j){var M=a(j,j.charCodeAt(0),j.charCodeAt(1),j.charCodeAt(2));return M!==j+";"?M.replace(ct," or ($1)").substring(4):"("+j+")"}function y($,j,M,V,b,ee,O,fe,te,ie){for(var G=0,we=j,Ie;G<$e;++G)switch(Ie=Le[G].call(C,$,we,M,V,b,ee,O,fe,te,ie)){case void 0:case!1:case!0:case null:break;default:we=Ie}if(we!==j)return we}function A($){switch($){case void 0:case null:$e=Le.length=0;break;default:if(typeof $=="function")Le[$e++]=$;else if(typeof $=="object")for(var j=0,M=$.length;j<M;++j)A($[j]);else ut=!!$|0}return A}function E($){return $=$.prefix,$!==void 0&&(mt=null,$?typeof $!="function"?Pe=1:(Pe=2,mt=$):Pe=0),E}function C($,j){var M=$;if(33>M.charCodeAt(0)&&(M=M.trim()),vt=M,M=[vt],0<$e){var V=y(-1,j,M,M,De,Me,0,0,0,0);V!==void 0&&typeof V=="string"&&(j=V)}var b=e(gt,M,j,0,0);return 0<$e&&(V=y(-2,b,M,M,De,Me,b.length,0,0,0),V!==void 0&&(b=V)),vt="",Be=0,Me=De=1,b}var P=/^\0+/g,W=/[\0\r\f]/g,H=/: */g,N=/zoo|gra/,K=/([,: ])(transform)/g,U=/,\r+?/g,ae=/([\t\r\n ])*\f?&/g,Z=/@(k\w+)\s*(\S*)\s*/,be=/::(place)/g,de=/:(read-only)/g,he=/[svh]\w+-[tblr]{2}/,Je=/\(\s*(.*)\s*\)/g,ct=/([\s\S]*?);/g,Re=/-self|flex-/g,ze=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Qe=/stretch|:\s*\w+\-(?:conte|avail)/,lt=/([^-])(image-set\()/,Me=1,De=1,Be=0,Pe=1,gt=[],Le=[],$e=0,mt=null,ut=0,vt="";return C.use=A,C.set=E,n!==void 0&&E(n),C}const It=Pt;var Yt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const jt=Yt;function ke(n){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=n(r)),e[r]}}var Ve=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yr=ke(function(n){return Ve.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),Vr=Y(4674),Gr=Y.n(Vr),Mt,Hr,Rt,Wr,Kr,Yr;function je(){return(je=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n}).apply(this,arguments)}var br=function(n,e){for(var r=[n[0]],s=0,a=e.length;s<a;s+=1)r.push(e[s],n[s+1]);return r},Xt=function(n){return n!==null&&typeof n=="object"&&(n.toString?n.toString():Object.prototype.toString.call(n))==="[object Object]"&&!(0,rt.typeOf)(n)},$t=Object.freeze([]),Xe=Object.freeze({});function ot(n){return typeof n=="function"}function Zt(n){return n.displayName||n.name||"Component"}function Jt(n){return n&&typeof n.styledComponentId=="string"}var Ze=typeof process<"u"&&!0&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",rs="5.3.11",Qt=typeof window<"u"&&"HTMLElement"in window,Xr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&("MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==""?"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==""&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY)),Zr=null,ns=null;function ss(){for(var n=arguments.length<=0?void 0:arguments[0],e=[],r=1,s=arguments.length;r<s;r+=1)e.push(r<0||arguments.length<=r?void 0:arguments[r]);return e.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function Fe(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];throw new Error("An error occurred. See https://git.io/JUIaE#"+n+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Jr=function(){function n(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var e=n.prototype;return e.indexOfGroup=function(r){for(var s=0,a=0;a<r;a++)s+=this.groupSizes[a];return s},e.insertRules=function(r,s){if(r>=this.groupSizes.length){for(var a=this.groupSizes,f=a.length,h=f;r>=h;)(h<<=1)<0&&Fe(16,""+r);this.groupSizes=new Uint32Array(h),this.groupSizes.set(a),this.length=h;for(var y=f;y<h;y++)this.groupSizes[y]=0}for(var A=this.indexOfGroup(r+1),E=0,C=s.length;E<C;E++)this.tag.insertRule(A,s[E])&&(this.groupSizes[r]++,A++)},e.clearGroup=function(r){if(r<this.length){var s=this.groupSizes[r],a=this.indexOfGroup(r),f=a+s;this.groupSizes[r]=0;for(var h=a;h<f;h++)this.tag.deleteRule(a)}},e.getGroup=function(r){var s="";if(r>=this.length||this.groupSizes[r]===0)return s;for(var a=this.groupSizes[r],f=this.indexOfGroup(r),h=f+a,y=f;y<h;y++)s+=this.tag.getRule(y)+`/*!sc*/
|
|
9
|
-
`;return s},
|
|
10
|
-
`),s=[],
|
|
11
|
-
`}}}return f}(this)},n}(),cn=/(a)(d)/gi,Sr=function(n){return String.fromCharCode(n+(n>25?39:97))};function qt(n){var e,r="";for(e=Math.abs(n);e>52;e=e/52|0)r=Sr(e%52)+r;return(Sr(e%52)+r).replace(cn,"$1-$2")}var at=function(n,e){for(var r=e.length;r;)n=33*n^e.charCodeAt(--r);return n},Ar=function(n){return at(5381,n)};function Er(n){for(var e=0;e<n.length;e+=1){var r=n[e];if(ot(r)&&!Jt(r))return!1}return!0}var ln=Ar("5.3.11"),un=function(){function n(e,r,s){this.rules=e,this.staticRulesId="",this.isStatic=(s===void 0||s.isStatic)&&Er(e),this.componentId=r,this.baseHash=at(ln,r),this.baseStyle=s,ft.registerId(r)}return n.prototype.generateAndInjectStyles=function(e,r,s){var a=this.componentId,f=[];if(this.baseStyle&&f.push(this.baseStyle.generateAndInjectStyles(e,r,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&r.hasNameForId(a,this.staticRulesId))f.push(this.staticRulesId);else{var h=nt(this.rules,e,r,s).join(""),y=qt(at(this.baseHash,h)>>>0);if(!r.hasNameForId(a,y)){var A=s(h,"."+y,void 0,a);r.insertRules(a,y,A)}f.push(y),this.staticRulesId=y}else{for(var E=this.rules.length,C=at(this.baseHash,s.hash),P="",W=0;W<E;W++){var H=this.rules[W];if(typeof H=="string")P+=H;else if(H){var N=nt(H,e,r,s),K=Array.isArray(N)?N.join(""):N;C=at(C,K+W),P+=K}}if(P){var U=qt(C>>>0);if(!r.hasNameForId(a,U)){var ae=s(P,"."+U,void 0,a);r.insertRules(a,U,ae)}f.push(U)}}return f.join(" ")},n}(),pn=/^\s*\/\/.*$/gm,dn=[":","[",".","#"];function Or(n){var e,r,s,a,f=n===void 0?Xe:n,h=f.options,y=h===void 0?Xe:h,A=f.plugins,E=A===void 0?$t:A,C=new It(y),P=[],W=function(K){function U(ae){if(ae)try{K(ae+"}")}catch{}}return function(ae,Z,be,de,he,Je,ct,Re,ze,Qe){switch(ae){case 1:if(ze===0&&Z.charCodeAt(0)===64)return K(Z+";"),"";break;case 2:if(Re===0)return Z+"/*|*/";break;case 3:switch(Re){case 102:case 112:return K(be[0]+Z),"";default:return Z+(Qe===0?"/*|*/":"")}case-2:Z.split("/*|*/}").forEach(U)}}}(function(K){P.push(K)}),H=function(K,U,ae){return U===0&&dn.indexOf(ae[r.length])!==-1||ae.match(a)?K:"."+e};function N(K,U,ae,Z){Z===void 0&&(Z="&");var be=K.replace(pn,""),de=U&&ae?ae+" "+U+" { "+be+" }":be;return e=Z,r=U,s=new RegExp("\\"+r+"\\b","g"),a=new RegExp("(\\"+r+"\\b){2,}"),C(ae||!U?"":U,de)}return C.use([].concat(E,[function(K,U,ae){K===2&&ae.length&&ae[0].lastIndexOf(r)>0&&(ae[0]=ae[0].replace(s,H))},W,function(K){if(K===-2){var U=P;return P=[],U}}])),N.hash=E.length?E.reduce(function(K,U){return U.name||Fe(15),at(K,U.name)},5381).toString():"",N}var er=Ue().createContext(),is=er.Consumer,tr=Ue().createContext(),fn=(tr.Consumer,new ft),rr=Or();function nr(){return(0,Te.useContext)(er)||fn}function Cr(){return(0,Te.useContext)(tr)||rr}function hn(n){var e=(0,Te.useState)(n.stylisPlugins),r=e[0],s=e[1],a=nr(),f=(0,Te.useMemo)(function(){var y=a;return n.sheet?y=n.sheet:n.target&&(y=y.reconstructWithOptions({target:n.target},!1)),n.disableCSSOMInjection&&(y=y.reconstructWithOptions({useCSSOMInjection:!1})),y},[n.disableCSSOMInjection,n.sheet,n.target]),h=(0,Te.useMemo)(function(){return Or({options:{prefix:!n.disableVendorPrefixes},plugins:r})},[n.disableVendorPrefixes,r]);return(0,Te.useEffect)(function(){Ye()(r,n.stylisPlugins)||s(n.stylisPlugins)},[n.stylisPlugins]),Ue().createElement(er.Provider,{value:f},Ue().createElement(tr.Provider,{value:h},n.children))}var Tr=function(){function n(e,r){var s=this;this.inject=function(a,f){f===void 0&&(f=rr);var h=s.name+f.hash;a.hasNameForId(s.id,h)||a.insertRules(s.id,h,f(s.rules,h,"@keyframes"))},this.toString=function(){return Fe(12,String(s.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=r}return n.prototype.getName=function(e){return e===void 0&&(e=rr),this.name+e.hash},n}(),gn=/([A-Z])/,mn=/([A-Z])/g,vn=/^ms-/,yn=function(n){return"-"+n.toLowerCase()};function Pr(n){return gn.test(n)?n.replace(mn,yn).replace(vn,"-ms-"):n}var Ir=function(n){return n==null||n===!1||n===""};function nt(n,e,r,s){if(Array.isArray(n)){for(var a,f=[],h=0,y=n.length;h<y;h+=1)(a=nt(n[h],e,r,s))!==""&&(Array.isArray(a)?f.push.apply(f,a):f.push(a));return f}if(Ir(n))return"";if(Jt(n))return"."+n.styledComponentId;if(ot(n)){if(typeof(E=n)!="function"||E.prototype&&E.prototype.isReactComponent||!e)return n;var A=n(e);return nt(A,e,r,s)}var E;return n instanceof Tr?r?(n.inject(r,s),n.getName(s)):n:Xt(n)?function C(P,W){var H,N,K=[];for(var U in P)P.hasOwnProperty(U)&&!Ir(P[U])&&(Array.isArray(P[U])&&P[U].isCss||ot(P[U])?K.push(Pr(U)+":",P[U],";"):Xt(P[U])?K.push.apply(K,C(P[U],U)):K.push(Pr(U)+": "+(H=U,(N=P[U])==null||typeof N=="boolean"||N===""?"":typeof N!="number"||N===0||H in jt||H.startsWith("--")?String(N).trim():N+"px")+";"));return W?[W+" {"].concat(K,["}"]):K}(n):n.toString()}var jr=function(n){return Array.isArray(n)&&(n.isCss=!0),n};function ht(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];return ot(n)||Xt(n)?jr(nt(br($t,[n].concat(r)))):r.length===0&&n.length===1&&typeof n[0]=="string"?n:jr(nt(br(n,r)))}var os=/invalid hook call/i,as=new Set,cs=function(n,e){if(0)var r,s,a},sr=function(n,e,r){return r===void 0&&(r=Xe),n.theme!==r.theme&&n.theme||e||r.theme},bn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wn=/(^-|-$)/g;function ir(n){return n.replace(bn,"-").replace(wn,"")}var or=function(n){return qt(Ar(n)>>>0)};function Nt(n){return typeof n=="string"&&!0}var ar=function(n){return typeof n=="function"||typeof n=="object"&&n!==null&&!Array.isArray(n)},xn=function(n){return n!=="__proto__"&&n!=="constructor"&&n!=="prototype"};function Sn(n,e,r){var s=n[r];ar(e)&&ar(s)?Mr(s,e):n[r]=e}function Mr(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];for(var a=0,f=r;a<f.length;a++){var h=f[a];if(ar(h))for(var y in h)xn(y)&&Sn(n,h[y],y)}return n}var st=Ue().createContext(),ls=st.Consumer;function us(n){var e=Mt(st),r=Hr(function(){return function(s,a){if(!s)return Fe(14);if(ot(s)){var f=s(a);return f}return Array.isArray(s)||typeof s!="object"?Fe(8):a?je({},a,{},s):s}(n.theme,e)},[n.theme,e]);return n.children?Rt.createElement(st.Provider,{value:r},n.children):null}var cr={};function Rr(n,e,r){var s=Jt(n),a=!Nt(n),f=e.attrs,h=f===void 0?$t:f,y=e.componentId,A=y===void 0?function(Z,be){var de=typeof Z!="string"?"sc":ir(Z);cr[de]=(cr[de]||0)+1;var he=de+"-"+or("5.3.11"+de+cr[de]);return be?be+"-"+he:he}(e.displayName,e.parentComponentId):y,E=e.displayName,C=E===void 0?function(Z){return Nt(Z)?"styled."+Z:"Styled("+Zt(Z)+")"}(n):E,P=e.displayName&&e.componentId?ir(e.displayName)+"-"+e.componentId:e.componentId||A,W=s&&n.attrs?Array.prototype.concat(n.attrs,h).filter(Boolean):h,H=e.shouldForwardProp;s&&n.shouldForwardProp&&(H=e.shouldForwardProp?function(Z,be,de){return n.shouldForwardProp(Z,be,de)&&e.shouldForwardProp(Z,be,de)}:n.shouldForwardProp);var N,K=new un(r,P,s?n.componentStyle:void 0),U=K.isStatic&&h.length===0,ae=function(Z,be){return function(de,he,Je,ct){var Re=de.attrs,ze=de.componentStyle,Qe=de.defaultProps,lt=de.foldedComponentIds,Me=de.shouldForwardProp,De=de.styledComponentId,Be=de.target,Pe=function(V,b,ee){V===void 0&&(V=Xe);var O=je({},b,{theme:V}),fe={};return ee.forEach(function(te){var ie,G,we,Ie=te;for(ie in ot(Ie)&&(Ie=Ie(O)),Ie)O[ie]=fe[ie]=ie==="className"?(G=fe[ie],we=Ie[ie],G&&we?G+" "+we:G||we):Ie[ie]}),[O,fe]}(sr(he,(0,Te.useContext)(st),Qe)||Xe,he,Re),gt=Pe[0],Le=Pe[1],$e=function(V,b,ee,O){var fe=nr(),te=Cr(),ie=b?V.generateAndInjectStyles(Xe,fe,te):V.generateAndInjectStyles(ee,fe,te);return ie}(ze,ct,gt,void 0),mt=Je,ut=Le.$as||he.$as||Le.as||he.as||Be,vt=Nt(ut),$=Le!==he?je({},he,{},Le):he,j={};for(var M in $)M[0]!=="$"&&M!=="as"&&(M==="forwardedAs"?j.as=$[M]:(Me?Me(M,yr,ut):!vt||yr(M))&&(j[M]=$[M]));return he.style&&Le.style!==he.style&&(j.style=je({},he.style,{},Le.style)),j.className=Array.prototype.concat(lt,De,$e!==De?$e:null,he.className,Le.className).filter(Boolean).join(" "),j.ref=mt,(0,Te.createElement)(ut,j)}(N,Z,be,U)};return ae.displayName=C,(N=Ue().forwardRef(ae)).attrs=W,N.componentStyle=K,N.displayName=C,N.shouldForwardProp=H,N.foldedComponentIds=s?Array.prototype.concat(n.foldedComponentIds,n.styledComponentId):$t,N.styledComponentId=P,N.target=s?n.target:n,N.withComponent=function(Z){var be=e.componentId,de=function(Je,ct){if(Je==null)return{};var Re,ze,Qe={},lt=Object.keys(Je);for(ze=0;ze<lt.length;ze++)Re=lt[ze],ct.indexOf(Re)>=0||(Qe[Re]=Je[Re]);return Qe}(e,["componentId"]),he=be&&be+"-"+(Nt(Z)?Z:ir(Zt(Z)));return Rr(Z,je({},de,{attrs:W,componentId:he}),r)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(Z){this._foldedDefaultProps=s?Mr({},n.defaultProps,Z):Z}}),Object.defineProperty(N,"toString",{value:function(){return"."+N.styledComponentId}}),a&&Gr()(N,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var $r=function(n){return function e(r,s,a){if(a===void 0&&(a=Xe),!(0,rt.isValidElementType)(s))return Fe(1,String(s));var f=function(){return r(s,a,ht.apply(void 0,arguments))};return f.withConfig=function(h){return e(r,s,je({},a,{},h))},f.attrs=function(h){return e(r,s,je({},a,{attrs:Array.prototype.concat(a.attrs,h).filter(Boolean)}))},f}(Rr,n)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(n){$r[n]=$r(n)});var An=function(){function n(r,s){this.rules=r,this.componentId=s,this.isStatic=Er(r),ft.registerId(this.componentId+1)}var e=n.prototype;return e.createStyles=function(r,s,a,f){var h=f(nt(this.rules,s,a,f).join(""),""),y=this.componentId+r;a.insertRules(y,y,h)},e.removeStyles=function(r,s){s.clearRules(this.componentId+r)},e.renderStyles=function(r,s,a,f){r>2&&ft.registerId(this.componentId+r),this.removeStyles(r,a),this.createStyles(r,s,a,f)},n}();function ps(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];var a=ht.apply(void 0,[n].concat(r)),f="sc-global-"+or(JSON.stringify(a)),h=new An(a,f);function y(E){var C=nr(),P=Cr(),W=Mt(st),H=Wr(C.allocateGSInstance(f)).current;return C.server&&A(H,E,C,W,P),Kr(function(){if(!C.server)return A(H,E,C,W,P),function(){return h.removeStyles(H,C)}},[H,E,C,W,P]),null}function A(E,C,P,W,H){if(h.isStatic)h.renderStyles(E,Zr,P,H);else{var N=je({},C,{theme:sr(C,W,y.defaultProps)});h.renderStyles(E,N,P,H)}}return Rt.memo(y)}function ds(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];var a=ht.apply(void 0,[n].concat(r)).join(""),f=or(a);return new Tr(f,a)}var fs=function(){function n(){var r=this;this._emitSheetCSS=function(){var s=r.instance.toString();if(!s)return"";var a=_t();return"<style "+[a&&'nonce="'+a+'"',Ze+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+s+"</style>"},this.getStyleTags=function(){return r.sealed?Fe(2):r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)return Fe(2);var a=((s={})[Ze]="",s["data-styled-version"]="5.3.11",s.dangerouslySetInnerHTML={__html:r.instance.toString()},s),f=_t();return f&&(a.nonce=f),[Ue().createElement("style",je({},a,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new ft({isServer:!0}),this.sealed=!1}var e=n.prototype;return e.collectStyles=function(r){return this.sealed?Fe(2):Ue().createElement(hn,{sheet:this.instance},r)},e.interleaveWithNodeStream=function(r){return Fe(3)},n}(),hs=function(n){var e=Rt.forwardRef(function(r,s){var a=Mt(st),f=n.defaultProps,h=sr(r,a,f);return Rt.createElement(n,je({},r,{theme:h,ref:s}))});return Yr(e,n),e.displayName="WithTheme("+Zt(n)+")",e},gs=function(){return Mt(st)},ms=null;const vs=null,En=n=>Object.keys(n).reduce((e,r)=>(e[r]=(s,...a)=>ht`
|
|
12
|
-
@media (max-width: ${
|
|
13
|
-
${ht(s,...
|
|
8
|
+
*/var t=typeof Symbol=="function"&&Symbol.for,s=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,d=t?Symbol.for("react.fragment"):60107,h=t?Symbol.for("react.strict_mode"):60108,y=t?Symbol.for("react.profiler"):60114,S=t?Symbol.for("react.provider"):60109,A=t?Symbol.for("react.context"):60110,E=t?Symbol.for("react.async_mode"):60111,O=t?Symbol.for("react.concurrent_mode"):60111,k=t?Symbol.for("react.forward_ref"):60112,L=t?Symbol.for("react.suspense"):60113,F=t?Symbol.for("react.suspense_list"):60120,U=t?Symbol.for("react.memo"):60115,M=t?Symbol.for("react.lazy"):60116,X=t?Symbol.for("react.block"):60121,W=t?Symbol.for("react.fundamental"):60117,ue=t?Symbol.for("react.responder"):60118,ee=t?Symbol.for("react.scope"):60119;function K(T){if(typeof T=="object"&&T!==null){var fe=T.$$typeof;switch(fe){case s:switch(T=T.type,T){case E:case O:case d:case y:case h:case L:return T;default:switch(T=T&&T.$$typeof,T){case A:case k:case M:case U:case S:return T;default:return fe}}case i:return fe}}}function Ie(T){return K(T)===O}e.AsyncMode=E,e.ConcurrentMode=O,e.ContextConsumer=A,e.ContextProvider=S,e.Element=s,e.ForwardRef=k,e.Fragment=d,e.Lazy=M,e.Memo=U,e.Portal=i,e.Profiler=y,e.StrictMode=h,e.Suspense=L,e.isAsyncMode=function(T){return Ie(T)||K(T)===E},e.isConcurrentMode=Ie,e.isContextConsumer=function(T){return K(T)===A},e.isContextProvider=function(T){return K(T)===S},e.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===s},e.isForwardRef=function(T){return K(T)===k},e.isFragment=function(T){return K(T)===d},e.isLazy=function(T){return K(T)===M},e.isMemo=function(T){return K(T)===U},e.isPortal=function(T){return K(T)===i},e.isProfiler=function(T){return K(T)===y},e.isStrictMode=function(T){return K(T)===h},e.isSuspense=function(T){return K(T)===L},e.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===d||T===O||T===y||T===h||T===L||T===F||typeof T=="object"&&T!==null&&(T.$$typeof===M||T.$$typeof===U||T.$$typeof===S||T.$$typeof===A||T.$$typeof===k||T.$$typeof===W||T.$$typeof===ue||T.$$typeof===ee||T.$$typeof===X)},e.typeOf=K}),n=Y.cw(function(r,e){r.exports=f()}),a=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(a||{}),c=Y(8313),l=Y.n(c),u=Y(2438),p=Y.n(u),g=Y(2154),m=Y.n(g),v=Y(2146),w=Y.n(v),x=Y(8970),P=Y.n(x);const $=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),N=r=>r.replace(/([^:]\/)\/+/g,"$1"),H=r=>{const e=document.createElement("a");return e.href=r,e.href},D=r=>r?.replace?.(/\/?$/,"/"),q=(r,e)=>`${r.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,oe=r=>/^(\/|https?:\/\/)/.test(r),ve=(r,e)=>{const t=D(e);if(oe(t)){const{origin:s}=new URL(r,window.location.href);return N(new URL(t,s).href)}return N(new URL(t,D(r)).href)},_=(r,e)=>N(new URL("manifest.json",ve(r,e)).href),Ce=()=>window.navigator.userAgent.includes("jsdom"),ye=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=r=>{try{if(new URL(r,window.location.href).origin===window.location.origin)return r;const t=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${t}/frame.html`}catch{return r}};var ae=(r=>(r.DEVELOPMENT="development",r.PRODUCTION="production",r))(ae||{}),pe=(r=>(r.SSF="ssf",r.APPSDK="appsdk",r))(pe||{});class ce{#e=$;#t;#r;constructor(e){this.#t=e?.version||"latest",this.#r=D(e?.baseUrl||"")}#i=e=>{const{activeEnv:t,env:s,...i}=e,d=s[t]||{};this.#e=P()({},i,d)};get=(e="",t=null)=>l()(p()(this.#e,e,t));set=(e,t)=>{m()(this.#e,e,t)};has=(e="")=>w()(this.#e,e);setPreloadedConfig=e=>{this.#e=e};#n=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#r)){const t=this.#t.match(/^(?:\d+\.\d+)*/g);return D(`${this.#r}${t?.[0]||"latest"}`)}return this.#r};#o=()=>{const e=this.#n();return D(e.replace(/(\/)(\d+\.\d+|latest)\/?$/,"$1latest/"))};load=async e=>{const t=e??`${this.#n()}app.config.json`,s=`${this.#o()}app.config.json`,i=h=>!e&&h!==s;let d;try{d=await fetch(t)}catch(h){if(i(t)){await this.load(s);return}throw new Error("Failed to fetch app config",{cause:h})}if(d.ok)try{const h=await d.json();this.#i(h)}catch(h){if(i(t)){await this.load(s);return}throw new Error("Failed to parse app config",{cause:h})}else if(i(t))await this.load(s);else throw new Error("Failed to load app config")}}class le{name;objectId;id;constructor(e){const{name:t,objectId:s}=e;if(!t)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");this.objectId=s,this.name=t,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class de{static[Symbol.hasInstance](e){return typeof e=="object"&&e!==null&&"getType"in e&&typeof e.getType=="function"&&e.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(e){const{name:t,objectId:s,eventSrc:i}=e;if(!t)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");if(!i)throw new Error("Event source is required");this.objectId=s,this.name=t,this.#e=i,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=e=>this.#e.subscribe({eventId:this.id,callback:e});unsubscribe=e=>{this.#e.unsubscribe({eventId:this.id,token:e})}}const G=r=>r instanceof le,be=(r,e)=>`${r.toLowerCase()}.${e.toLowerCase()}`,J="function",we=(r,e)=>typeof r===J&&!!e&&!e.startsWith("_");class Ue{#e;#t="Object";constructor(e,t){this.#e=e,this.#t=t||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const e=[],t=[];return Object.keys(this).forEach(s=>{const i=this[s];G(i)?t.push(s):we(i,s)&&e.push(s)}),{objectId:this.#e,objectType:this.#t,functions:e,events:t}};_dispose=()=>{};dispose=()=>{}}var st=Y(6712),Ut=Y.n(st);const xt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ot;const zt=new Uint8Array(16);function Bt(){if(!ot&&(ot=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ot))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ot(zt)}var Vt;const me=[];for(let r=0;r<256;++r)me.push((r+256).toString(16).slice(1));function St(r,e=0){return me[r[e+0]]+me[r[e+1]]+me[r[e+2]]+me[r[e+3]]+"-"+me[r[e+4]]+me[r[e+5]]+"-"+me[r[e+6]]+me[r[e+7]]+"-"+me[r[e+8]]+me[r[e+9]]+"-"+me[r[e+10]]+me[r[e+11]]+me[r[e+12]]+me[r[e+13]]+me[r[e+14]]+me[r[e+15]]}function gr(r,e=0){const t=St(r,e);if(!Vt(t))throw TypeError("Stringified UUID is invalid");return t}const mr=null;function Gt(r,e,t){if(xt.randomUUID&&!e&&!r)return xt.randomUUID();r=r||{};const s=r.random||(r.rng||Bt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=s[i];return e}return St(s)}const At=Gt;var et=(r=>(r.Analytics="analytics",r.Application="application",r.Auth="auth",r.Form="form",r.Global="global",r.Http="http",r.Loan="loan",r.LoanV2="loanV2",r.MemStorage="memstorage",r.Module="module",r.Service="service",r.Session="session",r.Styling="styling",r.Transaction="transaction",r.TransactionTemplate="transactiontemplate",r.WebSocket="websocket",r))(et||{});const Et="module";var vr=null,yr=null;class Ht{#e=e=>e.trim().toLowerCase();#t=new Map;#r=new Map;#i=e=>{const{so:t,guestId:s,onDuplicate:i="throw",securityContext:d}=e,h=this.#e(t.id),y={so:t,guestId:s,securityContext:d},S=this.#r.get(s);if(!S){this.#r.set(s,new Map([[h,y]]));return}if(S.has(h)){if(i==="ignore")return;throw new Error(`Scripting Object ${t.id} already exists for guest ${s}`)}S.set(h,y)};#n=({so:e})=>{if(e._dispose&&typeof e._dispose=="function")try{e._dispose()}catch{}};#o=({objectId:e,guestId:t})=>{if(e===Et&&!t)for(const[,i]of this.#r){const d=i.get(e);if(d)return d}const s=t?this.#r.get(t):null;return s?s.get(e)??null:null};#s=({objectId:e,guestId:t}={})=>{if(t){if(!e){const i=this.#r.get(t);i&&i.forEach(this.#n),this.#r.delete(t);return}const s=this.#r.get(t);if(s){const i=s.get(e);i&&this.#n(i),s.delete(e)}}else e&&this.#r.forEach(s=>{const i=s.get(e);i&&this.#n(i),s.delete(e)})};addScriptingObject=(e,t)=>{const{guestId:s,onDuplicate:i="throw",securityContext:d}=t||{};if(!e?.id||!e?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=this.#e(e.id);if(h===Et&&!s)throw new Error("Guest id is required to add Module scripting object");if(s){this.#i({so:e,...t,guestId:s,onDuplicate:i});return}if(this.#t.has(h)){if(i==="ignore")return;throw new Error(`Scripting Object ${e.id} already exists`)}this.#t.set(h,{so:e,guestId:s,securityContext:d})};getObject=(e,t)=>{const s=this.#e(e);let i=this.#o({objectId:s,guestId:t?.id});i=i??this.#t.get(s)??null;const{so:d}=i||{};return d||null};has=(e,t)=>this.getObject(e,t)!==null;listScriptingObjects=e=>{const t=new Set(this.#t.keys()),s=this.#r.get(e);if(s)for(const i of s.keys())t.add(i);return Array.from(t)};removeScriptingObject=(e,t)=>{const s=this.#e(e);if(t)this.#s({objectId:s,guestId:t});else{this.#s({objectId:s});const i=this.#t.get(s);i&&this.#n(i),this.#t.delete(s)}};removeAllScriptingObjects=e=>{e?this.#s({guestId:e}):(this.#t.forEach(this.#n),this.#t.clear())}}class ie{__TYPE__="Proxy";id;objectType;constructor(e,t){this.id=e,this.objectType=t}}const tt=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";class Q{#e=new Map;#t=new WeakMap;#r;constructor(e){this.#r=e}#i=(e,t)=>{const s=new Promise(i=>{setTimeout(()=>{i()},t)});return Promise.race([e,s])};#n=(e,t)=>{const s=t?.guestId;return!s||!e.guestId?!0:e.guestId===s};#o=e=>{const{eventName:t,scriptingObject:s,eventParams:i,listeners:d,eventOptions:h}=e;d.forEach(y=>{this.#n(y,h)&&(y.criteria&&!(i&&this.#c(i,y.criteria))||Promise.resolve(y.callback({obj:s,eventName:t,eventParams:i})).catch(S=>{this.#r?.warn(`Error in event listener for "${t}": ${S.message}`)}))})};#s=async({eventId:e,eventName:t,scriptingObject:s,eventParams:i,feedbackWaitTime:d,eventOptions:h})=>{const S=(this.#e.get(e)||[]).map(E=>!this.#n(E,h)||E.criteria&&!(i?this.#c(i,E.criteria):!1)?Promise.resolve():this.#i(E.callback({obj:s,eventName:t,eventParams:i}),d));return(await Promise.all(S)).flat(1/0).filter(E=>E!==void 0)};#c(e,t){return Object.entries(t).every(([s,i])=>{const d=e[s];if("eq"in i)return d===i.eq;if("in"in i)return Array.isArray(i.in)&&i.in.includes(d);if("includes"in i)return Array.isArray(d)&&d.includes(i.includes);if("gt"in i){const h=typeof d=="number"?d:Number(d);return!Number.isNaN(h)&&h>i.gt}if("lt"in i){const h=typeof d=="number"?d:Number(d);return!Number.isNaN(h)&&h<i.lt}if("regex"in i){let h=this.#t.get(i);if(h===void 0){try{h=new RegExp(i.regex)}catch{h=null}this.#t.set(i,h)}return h!==null&&typeof d=="string"&&h.test(d)}return!1})}dispatchEvent=async(e,t)=>{const{event:{id:s,name:i},eventParams:d,eventOptions:h}=t,{timeout:y}=h??{};if(!s)throw new Error("Event Id is required");const S=this.#e.get(s)||[];return!y||y<=0?(this.#o({eventName:i,scriptingObject:e,eventParams:d,listeners:S,eventOptions:h}),Promise.resolve()):this.#s({eventId:s,eventName:i,scriptingObject:e,eventParams:d,feedbackWaitTime:y,eventOptions:h})};subscribe=e=>{const{eventId:t,callback:s,criteria:i,guestId:d}=e;if(!t)throw new Error("eventId is required");if(!s)throw new Error("Callback is required");const h=this.#e.get(t)||[],y=At();return h.push({token:y,criteria:i,guestId:d,callback:s}),this.#e.set(t,h),y};unsubscribe=e=>{const{eventId:t,token:s}=e;if(!t)throw new Error("eventId id is required");if(s){const i=this.#e.get(t)||[],d=i.findIndex(h=>h.token===s);d>-1&&(i.splice(d,1),this.#e.set(t,i))}else this.#e.delete(t)};unsubscribeAll=()=>{this.#e.clear()};unsubscribeByGuestId=e=>{e&&this.#e.forEach((t,s)=>{const i=t.filter(d=>d.guestId!==e);i.length===0?this.#e.delete(s):i.length!==t.length&&this.#e.set(s,i)})}}const Ke=Y.p+"4cbbcfa9ded96b660559.html?resource",Ge="pui-app-container-",Wt=r=>{const e=r.src??Ke.default??Ke,t=Oe(e);if(!r.queryParams)return t;const s=r.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${t}${t.includes("?")?"&":"?"}${s}`},it=({documentEle:r,hostUrl:e,manifestPath:t,guestId:s})=>{const i=r.getElementById(Ge);i&&(i.id=`${i.id}${s}`);const d=ve(e,t);let h=r.getElementsByTagName("base")?.[0];if(h){h.href=d;return}h=r.createElement("base"),h.href=d,r.getElementsByTagName("head")[0].appendChild(h)},He=({id:r,instanceId:e,manifestPath:t,hostUrl:s,options:i})=>new Promise((d,h)=>{const{signal:y}=i;if(y?.aborted){h(new DOMException("iframe creation aborted","AbortError"));return}const S=document.createElement("div");S.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const A=document.createElement("iframe");A.setAttribute("id",e),A.setAttribute("data-testid",r),A.setAttribute("title",i.title),A.setAttribute("allowfullscreen","true"),A.setAttribute("allowtransparency","true"),i.permissionPolicy&&A.setAttribute("allow",i.permissionPolicy),i.sandbox&&A.setAttribute("sandbox",i.sandbox),A.setAttribute("style",i.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),A.setAttribute("src",Wt(i));const E=1e4;let O=!1,k,L;const F=()=>{clearTimeout(k),y?.removeEventListener("abort",L)},U=()=>y?.aborted?(O||(O=!0,F(),S.remove(),h(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(L=()=>{U()},U())return;y?.addEventListener("abort",L),k=setTimeout(()=>{O||(O=!0,F(),S.remove(),h(new Error(`iframe for ${r} failed to load within ${E}ms`)))},E),A.addEventListener("error",()=>{O||(O=!0,F(),S.remove(),h(new Error(`iframe for ${r} failed to load`)))}),A.addEventListener("load",()=>{O||U()||A.contentDocument&&(O=!0,F(),it({documentEle:A.contentDocument,hostUrl:s,manifestPath:t,guestId:r}),d(A))}),S.appendChild(A);const{containerId:M}=i;(document.getElementById(M??"")??document.body).appendChild(S)}),xe=r=>document.getElementById(r),Fe={create:He,remove:r=>{const e=xe(r);e&&e.parentElement?.remove()},get:xe},_t=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});n();var De=Y(4883),Pe=Y.n(De),Ct=Y(162),Ot=Y.n(Ct);function Kt(r){function e(R,I,j,B,b){for(var te=0,C=0,he=0,re=0,se,V,Se=0,Me=0,Z,Te=Z=se=0,ne=0,Ae=0,yt=0,Ee=0,Lt=j.length,bt=Lt-1,Ve,z="",ge="",dr="",fr="",Qe;ne<Lt;){if(V=j.charCodeAt(ne),ne===bt&&C+re+he+te!==0&&(C!==0&&(V=C===47?10:47),re=he=te=0,Lt++,bt++),C+re+he+te===0){if(ne===bt&&(0<Ae&&(z=z.replace(k,"")),0<z.trim().length)){switch(V){case 32:case 9:case 59:case 13:case 10:break;default:z+=j.charAt(ne)}V=59}switch(V){case 123:for(z=z.trim(),se=z.charCodeAt(0),Z=1,Ee=++ne;ne<Lt;){switch(V=j.charCodeAt(ne)){case 123:Z++;break;case 125:Z--;break;case 47:switch(V=j.charCodeAt(ne+1)){case 42:case 47:e:{for(Te=ne+1;Te<bt;++Te)switch(j.charCodeAt(Te)){case 47:if(V===42&&j.charCodeAt(Te-1)===42&&ne+2!==Te){ne=Te+1;break e}break;case 10:if(V===47){ne=Te+1;break e}}ne=Te}}break;case 91:V++;case 40:V++;case 34:case 39:for(;ne++<bt&&j.charCodeAt(ne)!==V;);}if(Z===0)break;ne++}switch(Z=j.substring(Ee,ne),se===0&&(se=(z=z.replace(O,"").trim()).charCodeAt(0)),se){case 64:switch(0<Ae&&(z=z.replace(k,"")),V=z.charCodeAt(1),V){case 100:case 109:case 115:case 45:Ae=I;break;default:Ae=gt}if(Z=e(I,Ae,Z,V,b+1),Ee=Z.length,0<Ne&&(Ae=t(gt,z,yt),Qe=y(3,Z,Ae,I,ze,$e,Ee,V,b,B),z=Ae.join(""),Qe!==void 0&&(Ee=(Z=Qe.trim()).length)===0&&(V=0,Z="")),0<Ee)switch(V){case 115:z=z.replace(Ie,h);case 100:case 109:case 45:Z=z+"{"+Z+"}";break;case 107:z=z.replace(W,"$1 $2"),Z=z+"{"+Z+"}",Z=je===1||je===2&&d("@"+Z,3)?"@-webkit-"+Z+"@"+Z:"@"+Z;break;default:Z=z+Z,B===112&&(Z=(ge+=Z,""))}else Z="";break;default:Z=e(I,t(I,z,yt),Z,B,b+1)}dr+=Z,Z=yt=Ae=Te=se=0,z="",V=j.charCodeAt(++ne);break;case 125:case 59:if(z=(0<Ae?z.replace(k,""):z).trim(),1<(Ee=z.length))switch(Te===0&&(se=z.charCodeAt(0),se===45||96<se&&123>se)&&(Ee=(z=z.replace(" ",":")).length),0<Ne&&(Qe=y(1,z,I,R,ze,$e,ge.length,B,b,B))!==void 0&&(Ee=(z=Qe.trim()).length)===0&&(z="\0\0"),se=z.charCodeAt(0),V=z.charCodeAt(1),se){case 0:break;case 64:if(V===105||V===99){fr+=z+j.charAt(ne);break}default:z.charCodeAt(Ee-1)!==58&&(ge+=i(z,se,V,z.charCodeAt(2)))}yt=Ae=Te=se=0,z="",V=j.charCodeAt(++ne)}}switch(V){case 13:case 10:C===47?C=0:1+se===0&&B!==107&&0<z.length&&(Ae=1,z+="\0"),0<Ne*ut&&y(0,z,I,R,ze,$e,ge.length,B,b,B),$e=1,ze++;break;case 59:case 125:if(C+re+he+te===0){$e++;break}default:switch($e++,Ve=j.charAt(ne),V){case 9:case 32:if(re+te+C===0)switch(Se){case 44:case 58:case 9:case 32:Ve="";break;default:V!==32&&(Ve=" ")}break;case 0:Ve="\\0";break;case 12:Ve="\\f";break;case 11:Ve="\\v";break;case 38:re+C+te===0&&(Ae=yt=1,Ve="\f"+Ve);break;case 108:if(re+C+te+_e===0&&0<Te)switch(ne-Te){case 2:Se===112&&j.charCodeAt(ne-3)===58&&(_e=Se);case 8:Me===111&&(_e=Me)}break;case 58:re+C+te===0&&(Te=ne);break;case 44:C+he+re+te===0&&(Ae=1,Ve+="\r");break;case 34:case 39:C===0&&(re=re===V?0:re===0?V:re);break;case 91:re+C+he===0&&te++;break;case 93:re+C+he===0&&te--;break;case 41:re+C+te===0&&he--;break;case 40:if(re+C+te===0){if(se===0)switch(2*Se+3*Me){case 533:break;default:se=1}he++}break;case 64:C+he+re+te+Te+Z===0&&(Z=1);break;case 42:case 47:if(!(0<re+te+he))switch(C){case 0:switch(2*V+3*j.charCodeAt(ne+1)){case 235:C=47;break;case 220:Ee=ne,C=42}break;case 42:V===47&&Se===42&&Ee+2!==ne&&(j.charCodeAt(Ee+2)===33&&(ge+=j.substring(Ee,ne+1)),Ve="",C=0)}}C===0&&(z+=Ve)}Me=Se,Se=V,ne++}if(Ee=ge.length,0<Ee){if(Ae=I,0<Ne&&(Qe=y(2,ge,Ae,R,ze,$e,Ee,B,b,B),Qe!==void 0&&(ge=Qe).length===0))return fr+ge+dr;if(ge=Ae.join(",")+"{"+ge+"}",je*_e!==0){switch(je!==2||d(ge,2)||(_e=0),_e){case 111:ge=ge.replace(ee,":-moz-$1")+ge;break;case 112:ge=ge.replace(ue,"::-webkit-input-$1")+ge.replace(ue,"::-moz-$1")+ge.replace(ue,":-ms-input-$1")+ge}_e=0}}return fr+ge+dr}function t(R,I,j){var B=I.trim().split(M);I=B;var b=B.length,te=R.length;switch(te){case 0:case 1:var C=0;for(R=te===0?"":R[0]+" ";C<b;++C)I[C]=s(R,I[C],j).trim();break;default:var he=C=0;for(I=[];C<b;++C)for(var re=0;re<te;++re)I[he++]=s(R[re]+" ",B[C],j).trim()}return I}function s(R,I,j){var B=I.charCodeAt(0);switch(33>B&&(B=(I=I.trim()).charCodeAt(0)),B){case 38:return I.replace(X,"$1"+R.trim());case 58:return R.trim()+I.replace(X,"$1"+R.trim());default:if(0<1*j&&0<I.indexOf("\f"))return I.replace(X,(R.charCodeAt(0)===58?"":"$1")+R.trim())}return R+I}function i(R,I,j,B){var b=R+";",te=2*I+3*j+4*B;if(te===944){R=b.indexOf(":",9)+1;var C=b.substring(R,b.length-1).trim();return C=b.substring(0,R).trim()+C+";",je===1||je===2&&d(C,1)?"-webkit-"+C+C:C}if(je===0||je===2&&!d(b,1))return b;switch(te){case 1015:return b.charCodeAt(10)===97?"-webkit-"+b+b:b;case 951:return b.charCodeAt(3)===116?"-webkit-"+b+b:b;case 963:return b.charCodeAt(5)===110?"-webkit-"+b+b:b;case 1009:if(b.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+b+b;case 978:return"-webkit-"+b+"-moz-"+b+b;case 1019:case 983:return"-webkit-"+b+"-moz-"+b+"-ms-"+b+b;case 883:if(b.charCodeAt(8)===45)return"-webkit-"+b+b;if(0<b.indexOf("image-set(",11))return b.replace(lt,"$1-webkit-$2")+b;break;case 932:if(b.charCodeAt(4)===45)switch(b.charCodeAt(5)){case 103:return"-webkit-box-"+b.replace("-grow","")+"-webkit-"+b+"-ms-"+b.replace("grow","positive")+b;case 115:return"-webkit-"+b+"-ms-"+b.replace("shrink","negative")+b;case 98:return"-webkit-"+b+"-ms-"+b.replace("basis","preferred-size")+b}return"-webkit-"+b+"-ms-"+b+b;case 964:return"-webkit-"+b+"-ms-flex-"+b+b;case 1023:if(b.charCodeAt(8)!==99)break;return C=b.substring(b.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+C+"-webkit-"+b+"-ms-flex-pack"+C+b;case 1005:return F.test(b)?b.replace(L,":-webkit-")+b.replace(L,":-moz-")+b:b;case 1e3:switch(C=b.substring(13).trim(),I=C.indexOf("-")+1,C.charCodeAt(0)+C.charCodeAt(I)){case 226:C=b.replace(K,"tb");break;case 232:C=b.replace(K,"tb-rl");break;case 220:C=b.replace(K,"lr");break;default:return b}return"-webkit-"+b+"-ms-"+C+b;case 1017:if(b.indexOf("sticky",9)===-1)break;case 975:switch(I=(b=R).length-10,C=(b.charCodeAt(I)===33?b.substring(0,I):b).substring(R.indexOf(":",7)+1).trim(),te=C.charCodeAt(0)+(C.charCodeAt(7)|0)){case 203:if(111>C.charCodeAt(8))break;case 115:b=b.replace(C,"-webkit-"+C)+";"+b;break;case 207:case 102:b=b.replace(C,"-webkit-"+(102<te?"inline-":"")+"box")+";"+b.replace(C,"-webkit-"+C)+";"+b.replace(C,"-ms-"+C+"box")+";"+b}return b+";";case 938:if(b.charCodeAt(5)===45)switch(b.charCodeAt(6)){case 105:return C=b.replace("-items",""),"-webkit-"+b+"-webkit-box-"+C+"-ms-flex-"+C+b;case 115:return"-webkit-"+b+"-ms-flex-item-"+b.replace(fe,"")+b;default:return"-webkit-"+b+"-ms-flex-line-pack"+b.replace("align-content","").replace(fe,"")+b}break;case 973:case 989:if(b.charCodeAt(3)!==45||b.charCodeAt(4)===122)break;case 931:case 953:if(Xe.test(R)===!0)return(C=R.substring(R.indexOf(":")+1)).charCodeAt(0)===115?i(R.replace("stretch","fill-available"),I,j,B).replace(":fill-available",":stretch"):b.replace(C,"-webkit-"+C)+b.replace(C,"-moz-"+C.replace("fill-",""))+b;break;case 962:if(b="-webkit-"+b+(b.charCodeAt(5)===102?"-ms-"+b:"")+b,j+B===211&&b.charCodeAt(13)===105&&0<b.indexOf("transform",10))return b.substring(0,b.indexOf(";",27)+1).replace(U,"$1-webkit-$2")+b}return b}function d(R,I){var j=R.indexOf(I===1?":":"{"),B=R.substring(0,I!==3?j:10);return j=R.substring(j+1,R.length-1),mt(I!==2?B:B.replace(Le,"$1"),j,I)}function h(R,I){var j=i(I,I.charCodeAt(0),I.charCodeAt(1),I.charCodeAt(2));return j!==I+";"?j.replace(T," or ($1)").substring(4):"("+I+")"}function y(R,I,j,B,b,te,C,he,re,se){for(var V=0,Se=I,Me;V<Ne;++V)switch(Me=Be[V].call(E,R,Se,j,B,b,te,C,he,re,se)){case void 0:case!1:case!0:case null:break;default:Se=Me}if(Se!==I)return Se}function S(R){switch(R){case void 0:case null:Ne=Be.length=0;break;default:if(typeof R=="function")Be[Ne++]=R;else if(typeof R=="object")for(var I=0,j=R.length;I<j;++I)S(R[I]);else ut=!!R|0}return S}function A(R){return R=R.prefix,R!==void 0&&(mt=null,R?typeof R!="function"?je=1:(je=2,mt=R):je=0),A}function E(R,I){var j=R;if(33>j.charCodeAt(0)&&(j=j.trim()),vt=j,j=[vt],0<Ne){var B=y(-1,I,j,j,ze,$e,0,0,0,0);B!==void 0&&typeof B=="string"&&(I=B)}var b=e(gt,j,I,0,0);return 0<Ne&&(B=y(-2,b,j,j,ze,$e,b.length,0,0,0),B!==void 0&&(b=B)),vt="",_e=0,$e=ze=1,b}var O=/^\0+/g,k=/[\0\r\f]/g,L=/: */g,F=/zoo|gra/,U=/([,: ])(transform)/g,M=/,\r+?/g,X=/([\t\r\n ])*\f?&/g,W=/@(k\w+)\s*(\S*)\s*/,ue=/::(place)/g,ee=/:(read-only)/g,K=/[svh]\w+-[tblr]{2}/,Ie=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,fe=/-self|flex-/g,Le=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Xe=/stretch|:\s*\w+\-(?:conte|avail)/,lt=/([^-])(image-set\()/,$e=1,ze=1,_e=0,je=1,gt=[],Be=[],Ne=0,mt=null,ut=0,vt="";return E.use=S,E.set=A,r!==void 0&&A(r),E}const Tt=Kt;var We={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Ye=We;function Gr(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var Hr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,br=Gr(function(r){return Hr.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91});o();function Yt(){return Yt.c||(Yt.c=Y.n(o()))}var Pt,Wr,It,_r,Kr,Yr;function Re(){return(Re=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r}).apply(this,arguments)}var wr=function(r,e){for(var t=[r[0]],s=0,i=e.length;s<i;s+=1)t.push(e[s],r[s+1]);return t},Xt=function(r){return r!==null&&typeof r=="object"&&(r.toString?r.toString():Object.prototype.toString.call(r))==="[object Object]"&&!(0,f().typeOf)(r)},jt=Object.freeze([]),Ze=Object.freeze({});function at(r){return typeof r=="function"}function Zt(r){return r.displayName||r.name||"Component"}function Jt(r){return r&&typeof r.styledComponentId=="string"}var Je=typeof process<"u"&&!0&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",ns="5.3.11",Qt=typeof window<"u"&&"HTMLElement"in window,Xr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&("MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==""?"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==""&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY)),Zr=null,ss=null;function os(){for(var r=arguments.length<=0?void 0:arguments[0],e=[],t=1,s=arguments.length;t<s;t+=1)e.push(t<0||arguments.length<=t?void 0:arguments[t]);return e.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function ke(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];throw new Error("An error occurred. See https://git.io/JUIaE#"+r+" for more information."+(t.length>0?" Args: "+t.join(", "):""))}var Jr=function(){function r(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=r.prototype;return e.indexOfGroup=function(t){for(var s=0,i=0;i<t;i++)s+=this.groupSizes[i];return s},e.insertRules=function(t,s){if(t>=this.groupSizes.length){for(var i=this.groupSizes,d=i.length,h=d;t>=h;)(h<<=1)<0&&ke(16,""+t);this.groupSizes=new Uint32Array(h),this.groupSizes.set(i),this.length=h;for(var y=d;y<h;y++)this.groupSizes[y]=0}for(var S=this.indexOfGroup(t+1),A=0,E=s.length;A<E;A++)this.tag.insertRule(S,s[A])&&(this.groupSizes[t]++,S++)},e.clearGroup=function(t){if(t<this.length){var s=this.groupSizes[t],i=this.indexOfGroup(t),d=i+s;this.groupSizes[t]=0;for(var h=i;h<d;h++)this.tag.deleteRule(i)}},e.getGroup=function(t){var s="";if(t>=this.length||this.groupSizes[t]===0)return s;for(var i=this.groupSizes[t],d=this.indexOfGroup(t),h=d+i,y=d;y<h;y++)s+=this.tag.getRule(y)+`/*!sc*/
|
|
9
|
+
`;return s},r}(),Mt=new Map,Rt=new Map,dt=1,$t=function(r){if(Mt.has(r))return Mt.get(r);for(;Rt.has(dt);)dt++;var e=dt++;return Mt.set(r,e),Rt.set(e,r),e},Qr=function(r){return Rt.get(r)},qr=function(r,e){e>=dt&&(dt=e+1),Mt.set(r,e),Rt.set(e,r)},en="style["+Je+'][data-styled-version="5.3.11"]',tn=new RegExp("^"+Je+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),rn=function(r,e,t){for(var s,i=t.split(","),d=0,h=i.length;d<h;d++)(s=i[d])&&r.registerName(e,s)},nn=function(r,e){for(var t=(e.textContent||"").split(`/*!sc*/
|
|
10
|
+
`),s=[],i=0,d=t.length;i<d;i++){var h=t[i].trim();if(h){var y=h.match(tn);if(y){var S=0|parseInt(y[1],10),A=y[2];S!==0&&(qr(A,S),rn(r,A,y[3]),r.getTag().insertRules(S,s)),s.length=0}else s.push(h)}}},qt=function(){return Y.nc},xr=function(r){var e=document.head,t=r||e,s=document.createElement("style"),i=function(y){for(var S=y.childNodes,A=S.length;A>=0;A--){var E=S[A];if(E&&E.nodeType===1&&E.hasAttribute(Je))return E}}(t),d=i!==void 0?i.nextSibling:null;s.setAttribute(Je,"active"),s.setAttribute("data-styled-version","5.3.11");var h=qt();return h&&s.setAttribute("nonce",h),t.insertBefore(s,d),s},sn=function(){function r(t){var s=this.element=xr(t);s.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var d=document.styleSheets,h=0,y=d.length;h<y;h++){var S=d[h];if(S.ownerNode===i)return S}ke(17)}(s),this.length=0}var e=r.prototype;return e.insertRule=function(t,s){try{return this.sheet.insertRule(s,t),this.length++,!0}catch{return!1}},e.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.getRule=function(t){var s=this.sheet.cssRules[t];return s!==void 0&&typeof s.cssText=="string"?s.cssText:""},r}(),on=function(){function r(t){var s=this.element=xr(t);this.nodes=s.childNodes,this.length=0}var e=r.prototype;return e.insertRule=function(t,s){if(t<=this.length&&t>=0){var i=document.createTextNode(s),d=this.nodes[t];return this.element.insertBefore(i,d||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},r}(),an=function(){function r(t){this.rules=[],this.length=0}var e=r.prototype;return e.insertRule=function(t,s){return t<=this.length&&(this.rules.splice(t,0,s),this.length++,!0)},e.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.getRule=function(t){return t<this.length?this.rules[t]:""},r}(),Sr=Qt,cn={isServer:!Qt,useCSSOMInjection:!Xr},ft=function(){function r(t,s,i){t===void 0&&(t=Ze),s===void 0&&(s={}),this.options=Re({},cn,{},t),this.gs=s,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Qt&&Sr&&(Sr=!1,function(d){for(var h=document.querySelectorAll(en),y=0,S=h.length;y<S;y++){var A=h[y];A&&A.getAttribute(Je)!=="active"&&(nn(d,A),A.parentNode&&A.parentNode.removeChild(A))}}(this))}r.registerId=function(t){return $t(t)};var e=r.prototype;return e.reconstructWithOptions=function(t,s){return s===void 0&&(s=!0),new r(Re({},this.options,{},t),this.gs,s&&this.names||void 0)},e.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(s=this.options).isServer,d=s.useCSSOMInjection,h=s.target,t=i?new an(h):d?new sn(h):new on(h),new Jr(t)));var t,s,i,d,h},e.hasNameForId=function(t,s){return this.names.has(t)&&this.names.get(t).has(s)},e.registerName=function(t,s){if($t(t),this.names.has(t))this.names.get(t).add(s);else{var i=new Set;i.add(s),this.names.set(t,i)}},e.insertRules=function(t,s,i){this.registerName(t,s),this.getTag().insertRules($t(t),i)},e.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.clearRules=function(t){this.getTag().clearGroup($t(t)),this.clearNames(t)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(t){for(var s=t.getTag(),i=s.length,d="",h=0;h<i;h++){var y=Qr(h);if(y!==void 0){var S=t.names.get(y),A=s.getGroup(h);if(S&&A&&S.size){var E=Je+".g"+h+'[id="'+y+'"]',O="";S!==void 0&&S.forEach(function(k){k.length>0&&(O+=k+",")}),d+=""+A+E+'{content:"'+O+`"}/*!sc*/
|
|
11
|
+
`}}}return d}(this)},r}(),ln=/(a)(d)/gi,Ar=function(r){return String.fromCharCode(r+(r>25?39:97))};function er(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=Ar(e%52)+t;return(Ar(e%52)+t).replace(ln,"$1-$2")}var ct=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},Er=function(r){return ct(5381,r)};function Cr(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(at(t)&&!Jt(t))return!1}return!0}var un=Er("5.3.11"),pn=function(){function r(e,t,s){this.rules=e,this.staticRulesId="",this.isStatic=(s===void 0||s.isStatic)&&Cr(e),this.componentId=t,this.baseHash=ct(un,t),this.baseStyle=s,ft.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,s){var i=this.componentId,d=[];if(this.baseStyle&&d.push(this.baseStyle.generateAndInjectStyles(e,t,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&t.hasNameForId(i,this.staticRulesId))d.push(this.staticRulesId);else{var h=rt(this.rules,e,t,s).join(""),y=er(ct(this.baseHash,h)>>>0);if(!t.hasNameForId(i,y)){var S=s(h,"."+y,void 0,i);t.insertRules(i,y,S)}d.push(y),this.staticRulesId=y}else{for(var A=this.rules.length,E=ct(this.baseHash,s.hash),O="",k=0;k<A;k++){var L=this.rules[k];if(typeof L=="string")O+=L;else if(L){var F=rt(L,e,t,s),U=Array.isArray(F)?F.join(""):F;E=ct(E,U+k),O+=U}}if(O){var M=er(E>>>0);if(!t.hasNameForId(i,M)){var X=s(O,"."+M,void 0,i);t.insertRules(i,M,X)}d.push(M)}}return d.join(" ")},r}(),dn=/^\s*\/\/.*$/gm,fn=[":","[",".","#"];function Or(r){var e,t,s,i,d=r===void 0?Ze:r,h=d.options,y=h===void 0?Ze:h,S=d.plugins,A=S===void 0?jt:S,E=new Tt(y),O=[],k=function(U){function M(X){if(X)try{U(X+"}")}catch{}}return function(X,W,ue,ee,K,Ie,T,fe,Le,Xe){switch(X){case 1:if(Le===0&&W.charCodeAt(0)===64)return U(W+";"),"";break;case 2:if(fe===0)return W+"/*|*/";break;case 3:switch(fe){case 102:case 112:return U(ue[0]+W),"";default:return W+(Xe===0?"/*|*/":"")}case-2:W.split("/*|*/}").forEach(M)}}}(function(U){O.push(U)}),L=function(U,M,X){return M===0&&fn.indexOf(X[t.length])!==-1||X.match(i)?U:"."+e};function F(U,M,X,W){W===void 0&&(W="&");var ue=U.replace(dn,""),ee=M&&X?X+" "+M+" { "+ue+" }":ue;return e=W,t=M,s=new RegExp("\\"+t+"\\b","g"),i=new RegExp("(\\"+t+"\\b){2,}"),E(X||!M?"":M,ee)}return E.use([].concat(A,[function(U,M,X){U===2&&X.length&&X[0].lastIndexOf(t)>0&&(X[0]=X[0].replace(s,L))},k,function(U){if(U===-2){var M=O;return O=[],M}}])),F.hash=A.length?A.reduce(function(U,M){return M.name||ke(15),ct(U,M.name)},5381).toString():"",F}var tr=Pe().createContext(),is=tr.Consumer,rr=Pe().createContext(),hn=(rr.Consumer,new ft),nr=Or();function sr(){return(0,De.useContext)(tr)||hn}function Tr(){return(0,De.useContext)(rr)||nr}function gn(r){var e=(0,De.useState)(r.stylisPlugins),t=e[0],s=e[1],i=sr(),d=(0,De.useMemo)(function(){var y=i;return r.sheet?y=r.sheet:r.target&&(y=y.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(y=y.reconstructWithOptions({useCSSOMInjection:!1})),y},[r.disableCSSOMInjection,r.sheet,r.target]),h=(0,De.useMemo)(function(){return Or({options:{prefix:!r.disableVendorPrefixes},plugins:t})},[r.disableVendorPrefixes,t]);return(0,De.useEffect)(function(){Ot()(t,r.stylisPlugins)||s(r.stylisPlugins)},[r.stylisPlugins]),Pe().createElement(tr.Provider,{value:d},Pe().createElement(rr.Provider,{value:h},r.children))}var Pr=function(){function r(e,t){var s=this;this.inject=function(i,d){d===void 0&&(d=nr);var h=s.name+d.hash;i.hasNameForId(s.id,h)||i.insertRules(s.id,h,d(s.rules,h,"@keyframes"))},this.toString=function(){return ke(12,String(s.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return r.prototype.getName=function(e){return e===void 0&&(e=nr),this.name+e.hash},r}(),mn=/([A-Z])/,vn=/([A-Z])/g,yn=/^ms-/,bn=function(r){return"-"+r.toLowerCase()};function Ir(r){return mn.test(r)?r.replace(vn,bn).replace(yn,"-ms-"):r}var jr=function(r){return r==null||r===!1||r===""};function rt(r,e,t,s){if(Array.isArray(r)){for(var i,d=[],h=0,y=r.length;h<y;h+=1)(i=rt(r[h],e,t,s))!==""&&(Array.isArray(i)?d.push.apply(d,i):d.push(i));return d}if(jr(r))return"";if(Jt(r))return"."+r.styledComponentId;if(at(r)){if(typeof(A=r)!="function"||A.prototype&&A.prototype.isReactComponent||!e)return r;var S=r(e);return rt(S,e,t,s)}var A;return r instanceof Pr?t?(r.inject(t,s),r.getName(s)):r:Xt(r)?function E(O,k){var L,F,U=[];for(var M in O)O.hasOwnProperty(M)&&!jr(O[M])&&(Array.isArray(O[M])&&O[M].isCss||at(O[M])?U.push(Ir(M)+":",O[M],";"):Xt(O[M])?U.push.apply(U,E(O[M],M)):U.push(Ir(M)+": "+(L=M,(F=O[M])==null||typeof F=="boolean"||F===""?"":typeof F!="number"||F===0||L in Ye||L.startsWith("--")?String(F).trim():F+"px")+";"));return k?[k+" {"].concat(U,["}"]):U}(r):r.toString()}var Mr=function(r){return Array.isArray(r)&&(r.isCss=!0),r};function ht(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];return at(r)||Xt(r)?Mr(rt(wr(jt,[r].concat(t)))):t.length===0&&r.length===1&&typeof r[0]=="string"?r:Mr(rt(wr(r,t)))}var as=/invalid hook call/i,cs=new Set,ls=function(r,e){if(0)var t,s,i},or=function(r,e,t){return t===void 0&&(t=Ze),r.theme!==t.theme&&r.theme||e||t.theme},wn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xn=/(^-|-$)/g;function ir(r){return r.replace(wn,"-").replace(xn,"")}var ar=function(r){return er(Er(r)>>>0)};function Ft(r){return typeof r=="string"&&!0}var cr=function(r){return typeof r=="function"||typeof r=="object"&&r!==null&&!Array.isArray(r)},Sn=function(r){return r!=="__proto__"&&r!=="constructor"&&r!=="prototype"};function An(r,e,t){var s=r[t];cr(e)&&cr(s)?Rr(s,e):r[t]=e}function Rr(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];for(var i=0,d=t;i<d.length;i++){var h=d[i];if(cr(h))for(var y in h)Sn(y)&&An(r,h[y],y)}return r}var nt=Pe().createContext(),us=nt.Consumer;function ps(r){var e=Pt(nt),t=Wr(function(){return function(s,i){if(!s)return ke(14);if(at(s)){var d=s(i);return d}return Array.isArray(s)||typeof s!="object"?ke(8):i?Re({},i,{},s):s}(r.theme,e)},[r.theme,e]);return r.children?It.createElement(nt.Provider,{value:t},r.children):null}var lr={};function $r(r,e,t){var s=Jt(r),i=!Ft(r),d=e.attrs,h=d===void 0?jt:d,y=e.componentId,S=y===void 0?function(W,ue){var ee=typeof W!="string"?"sc":ir(W);lr[ee]=(lr[ee]||0)+1;var K=ee+"-"+ar("5.3.11"+ee+lr[ee]);return ue?ue+"-"+K:K}(e.displayName,e.parentComponentId):y,A=e.displayName,E=A===void 0?function(W){return Ft(W)?"styled."+W:"Styled("+Zt(W)+")"}(r):A,O=e.displayName&&e.componentId?ir(e.displayName)+"-"+e.componentId:e.componentId||S,k=s&&r.attrs?Array.prototype.concat(r.attrs,h).filter(Boolean):h,L=e.shouldForwardProp;s&&r.shouldForwardProp&&(L=e.shouldForwardProp?function(W,ue,ee){return r.shouldForwardProp(W,ue,ee)&&e.shouldForwardProp(W,ue,ee)}:r.shouldForwardProp);var F,U=new pn(t,O,s?r.componentStyle:void 0),M=U.isStatic&&h.length===0,X=function(W,ue){return function(ee,K,Ie,T){var fe=ee.attrs,Le=ee.componentStyle,Xe=ee.defaultProps,lt=ee.foldedComponentIds,$e=ee.shouldForwardProp,ze=ee.styledComponentId,_e=ee.target,je=function(B,b,te){B===void 0&&(B=Ze);var C=Re({},b,{theme:B}),he={};return te.forEach(function(re){var se,V,Se,Me=re;for(se in at(Me)&&(Me=Me(C)),Me)C[se]=he[se]=se==="className"?(V=he[se],Se=Me[se],V&&Se?V+" "+Se:V||Se):Me[se]}),[C,he]}(or(K,(0,De.useContext)(nt),Xe)||Ze,K,fe),gt=je[0],Be=je[1],Ne=function(B,b,te,C){var he=sr(),re=Tr(),se=b?B.generateAndInjectStyles(Ze,he,re):B.generateAndInjectStyles(te,he,re);return se}(Le,T,gt,void 0),mt=Ie,ut=Be.$as||K.$as||Be.as||K.as||_e,vt=Ft(ut),R=Be!==K?Re({},K,{},Be):K,I={};for(var j in R)j[0]!=="$"&&j!=="as"&&(j==="forwardedAs"?I.as=R[j]:($e?$e(j,br,ut):!vt||br(j))&&(I[j]=R[j]));return K.style&&Be.style!==K.style&&(I.style=Re({},K.style,{},Be.style)),I.className=Array.prototype.concat(lt,ze,Ne!==ze?Ne:null,K.className,Be.className).filter(Boolean).join(" "),I.ref=mt,(0,De.createElement)(ut,I)}(F,W,ue,M)};return X.displayName=E,(F=Pe().forwardRef(X)).attrs=k,F.componentStyle=U,F.displayName=E,F.shouldForwardProp=L,F.foldedComponentIds=s?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):jt,F.styledComponentId=O,F.target=s?r.target:r,F.withComponent=function(W){var ue=e.componentId,ee=function(Ie,T){if(Ie==null)return{};var fe,Le,Xe={},lt=Object.keys(Ie);for(Le=0;Le<lt.length;Le++)fe=lt[Le],T.indexOf(fe)>=0||(Xe[fe]=Ie[fe]);return Xe}(e,["componentId"]),K=ue&&ue+"-"+(Ft(W)?W:ir(Zt(W)));return $r(W,Re({},ee,{attrs:k,componentId:K}),t)},Object.defineProperty(F,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(W){this._foldedDefaultProps=s?Rr({},r.defaultProps,W):W}}),Object.defineProperty(F,"toString",{value:function(){return"."+F.styledComponentId}}),i&&Yt()()(F,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),F}var Fr=function(r){return function e(t,s,i){if(i===void 0&&(i=Ze),!(0,f().isValidElementType)(s))return ke(1,String(s));var d=function(){return t(s,i,ht.apply(void 0,arguments))};return d.withConfig=function(h){return e(t,s,Re({},i,{},h))},d.attrs=function(h){return e(t,s,Re({},i,{attrs:Array.prototype.concat(i.attrs,h).filter(Boolean)}))},d}($r,r)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(r){Fr[r]=Fr(r)});var En=function(){function r(t,s){this.rules=t,this.componentId=s,this.isStatic=Cr(t),ft.registerId(this.componentId+1)}var e=r.prototype;return e.createStyles=function(t,s,i,d){var h=d(rt(this.rules,s,i,d).join(""),""),y=this.componentId+t;i.insertRules(y,y,h)},e.removeStyles=function(t,s){s.clearRules(this.componentId+t)},e.renderStyles=function(t,s,i,d){t>2&&ft.registerId(this.componentId+t),this.removeStyles(t,i),this.createStyles(t,s,i,d)},r}();function ds(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];var i=ht.apply(void 0,[r].concat(t)),d="sc-global-"+ar(JSON.stringify(i)),h=new En(i,d);function y(A){var E=sr(),O=Tr(),k=Pt(nt),L=_r(E.allocateGSInstance(d)).current;return E.server&&S(L,A,E,k,O),Kr(function(){if(!E.server)return S(L,A,E,k,O),function(){return h.removeStyles(L,E)}},[L,A,E,k,O]),null}function S(A,E,O,k,L){if(h.isStatic)h.renderStyles(A,Zr,O,L);else{var F=Re({},E,{theme:or(E,k,y.defaultProps)});h.renderStyles(A,F,O,L)}}return It.memo(y)}function fs(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];var i=ht.apply(void 0,[r].concat(t)).join(""),d=ar(i);return new Pr(d,i)}var hs=function(){function r(){var t=this;this._emitSheetCSS=function(){var s=t.instance.toString();if(!s)return"";var i=qt();return"<style "+[i&&'nonce="'+i+'"',Je+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+s+"</style>"},this.getStyleTags=function(){return t.sealed?ke(2):t._emitSheetCSS()},this.getStyleElement=function(){var s;if(t.sealed)return ke(2);var i=((s={})[Je]="",s["data-styled-version"]="5.3.11",s.dangerouslySetInnerHTML={__html:t.instance.toString()},s),d=qt();return d&&(i.nonce=d),[Pe().createElement("style",Re({},i,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new ft({isServer:!0}),this.sealed=!1}var e=r.prototype;return e.collectStyles=function(t){return this.sealed?ke(2):Pe().createElement(gn,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return ke(3)},r}(),gs=function(r){var e=It.forwardRef(function(t,s){var i=Pt(nt),d=r.defaultProps,h=or(t,i,d);return It.createElement(r,Re({},t,{theme:h,ref:s}))});return Yr(e,r),e.displayName="WithTheme("+Zt(r)+")",e},ms=function(){return Pt(nt)},vs=null;const ys=null,Cn=r=>Object.keys(r).reduce((e,t)=>(e[t]=(s,...i)=>ht`
|
|
12
|
+
@media (max-width: ${r[t]}) {
|
|
13
|
+
${ht(s,...i)};
|
|
14
14
|
}
|
|
15
|
-
`,e),{}),On=n=>({space:{...n.spaces,xxxs:n.spaces[1],xxs:n.spaces[2],xxs2:n.spaces[3],xs:n.spaces[4],s:n.spaces[5],m:n.spaces[6],l:n.spaces[7],xl:n.spaces[8],xxl:n.spaces[9]},fontSizes:{...n.fontSizes,title:{500:n.fontSizes[3],600:n.fontSizes[4],700:n.fontSizes[5],800:n.fontSizes[6],900:n.fontSizes[7]},subTitle:{300:n.fontSizes[1],400:n.fontSizes[2]},label:{200:n.fontSizes[0],300:n.fontSizes[1],400:n.fontSizes[2]},value:{300:n.fontSizes[1],400:n.fontSizes[2],500:n.fontSizes[3],600:n.fontSizes[4]},hyperlink:{200:n.fontSizes[0],300:n.fontSizes[1],400:n.fontSizes[2]},microText:{200:n.fontSizes[0]}},fontWeights:{...n.fontWeights,thin:n.fontWeights[0],light:n.fontWeights[1],regular:n.fontWeights[3],semibold:n.fontWeights[5],bold:n.fontWeights[8]},lineHeights:{...n.lineHeights,r:n.lineHeights[0],m:n.lineHeights[1],l:n.lineHeights[2],xl:n.lineHeights[3]},letterSpacings:{normal:n.letterSpacings[0],tracked:n.letterSpacings[1],tight:n.letterSpacings[2],mega:n.letterSpacings[3]},fonts:{...n.fonts,default:n.fonts[0]},colors:{neutral:{"000":n.colors.neutral[0],"050":n.colors.neutral[1],"080":n.colors.neutral[2],100:n.colors.neutral[3],200:n.colors.neutral[4],300:n.colors.neutral[5],400:n.colors.neutral[6],500:n.colors.neutral[7],600:n.colors.neutral[8],700:n.colors.neutral[9],800:n.colors.neutral[10]},brand:{100:n.colors.brand[0],200:n.colors.brand[1],250:n.colors.brand[8],300:n.colors.brand[2],400:n.colors.brand[3],500:n.colors.brand[4],600:n.colors.brand[5],700:n.colors.brand[6],800:n.colors.brand[7]},success:{300:n.colors.success[0],400:n.colors.success[1],600:n.colors.success[2],900:n.colors.success[3],950:n.colors.success[4]},warning:{400:n.colors.warning[0],500:n.colors.warning[1],600:n.colors.warning[1],900:n.colors.warning[2],950:n.colors.warning[3]},danger:{200:n.colors.danger[0],400:n.colors.danger[1],600:n.colors.danger[2],900:n.colors.danger[3],950:n.colors.danger[4]}},shadows:{xs:n.shadows[0],s:n.shadows[1],m:n.shadows[2],l:n.shadows[3],xl:n.shadows[4]},breakpoints:{...n.breakpoints,xsmall:n.breakpoints[3],small:n.breakpoints[0],medium:n.breakpoints[1],large:n.breakpoints[2]},media:En({xsmall:n.breakpoints[3],small:n.breakpoints[0],medium:n.breakpoints[1],large:n.breakpoints[2]}),zIndex:{dialog:n.zIndex[0],popper:n.zIndex[1],tooltip:n.zIndex[2],backdrop:n.zIndex[3],loader:n.zIndex[4]},states:{_:n.states[0],motionSafe:n.states[1],motionReduce:n.states[2],first:n.states[3],last:n.states[4],odd:n.states[5],even:n.states[6],visited:n.states[7],checked:n.states[8],focusWithin:n.states[9],hover:n.states[10],focus:n.states[11],focusVisible:n.states[12],active:n.states[13],disabled:n.states[14],placeholder:n.states[15]}}),Cn=((n=Oe())=>()=>On(n))(),bs=()=>{try{return window.parent.document,window.parent}catch{return window}},lr=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),Fr=n=>Number(n.replace("px","")),Dr=()=>{const{width:n}=lr(),{breakpoints:e}=Cn();return n<=Fr(e.small)?"small":n<=Fr(e.medium)?"medium":"large"},Tn="microFrontendApps",Pn=()=>!0,In=n=>Pn()?!0:String(n).toLowerCase()===Q.PRODUCTION.toLowerCase(),jn=n=>n?new URL(n).pathname:"",Mn=n=>{const e=document.createElement("a");return e.href=n,e.href},Rn=(n,e)=>{const r=e.match(/^(?:\d+\.\d+)*/g);return n.replace(/{SYSTEM_VERSION}/,r&&r[0]||"latest")},Lr=n=>!n||!n.length?!1:n.every(e=>typeof e=="string"),$n=(n,e)=>{const{mode:r=Q.PRODUCTION}=e;if(String(r).toLowerCase()!==Q.PRODUCTION.toLowerCase()&&String(r).toLowerCase()!==Q.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(r)}' for ${n}`);const{production:s,development:a,microappManager:f=S.APPSDK}=e;if(String(f).toLowerCase()===S.APPSDK.toLowerCase()){if(String(r).toLowerCase()===Q.PRODUCTION.toLowerCase()){if(!s)throw new Error(`microFrontendApps.${n} is missing production section in app.config.json`);if(!Lr(s.files))throw new Error("invalid value for production.files")}if(String(r).toLowerCase()===Q.DEVELOPMENT.toLowerCase()){if(!a)throw new Error(`microFrontendApps.${n} is missing development section in app.config.json`);if(!Lr(a.files))throw new Error("invalid value for development.files")}}},Fn=({id:n,config:e,version:r="latest"})=>{const{mode:s=Q.PRODUCTION,production:a,development:f,...h}=e,y=In(s)?a:f,A=v()({id:n},{name:n,mode:Q.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:i.USER,isJsModule:!0},h,{mode:s},y);return A.hostUrl=I(Mn(A.hostUrl||"")),A.homeRoute=I(A.homeRoute)||jn(A.hostUrl),A.manifestPath=I(Rn(A.manifestPath,r)),A};class Dn{#e=[];init=({version:e,appConfig:r})=>{const s=r.get(Tn);s&&(this.#e=Object.keys(s).map(a=>($n(a,s[a]),Fn({id:a,config:s[a],version:e}))))};getConfigById=e=>this.#e.find(r=>r.id===e)}const Ln=/^https?:\/\//i,Nn=(n,e)=>{if(!Ln.test(n))return!1;try{return!n.startsWith(new URL(e).href)}catch{return!0}},Un=(n,e)=>{const r=[],s=[];return n.forEach(a=>{Nn(a.href,e)?r.push(a):s.push(a)}),{external:r,local:s}},kn=n=>{if(!n)return;const e=n,r=e.emui?._ASSET_PATH;r&&(e.__webpack_public_path__=new URL("../",r).href)},zn=(n,e)=>{if(!(!n||!e))try{const r=n;r.__webpack_public_path__=new URL("./",e).href}catch{}},Nr=(n,e)=>{if(!n)return;if(n.emui?._ASSET_PATH){kn(n);return}zn(n,e)},Bn="ice-script-";class Ur{#e;constructor(e){this.#e=e}#t=({href:e,isESMModule:r=!0,documentEle:s})=>{const a=s.createElement("link");a.rel=r?"modulepreload":"preload",a.href=e,a.crossOrigin="anonymous",r||(a.as="script"),s.head.appendChild(a)};#r=({id:e,documentEle:r,isESMModule:s=!0})=>{const a=r.createElement("script");return a.id=e,a.crossOrigin="anonymous",a.nonce="__CSP_NONCE__",!X()&&s&&(a.type="module"),a.async=!1,a};#o=(e,r)=>new Promise((s,a)=>{e.onload=s.bind(null,e.id),e.onerror=f=>{this.#e.error({message:`Error loading script ${e.src}`,exception:new Error(f)}),a(new Error(`Unable to load script ${e.src}`,{cause:new Error(f)}))},e.src=x(r)});#n=async(e,r,s)=>{if(e.length===0)return;const a=e.map(({id:h})=>this.#r({id:h,documentEle:r,isESMModule:s}));a.forEach(h=>{r.head.appendChild(h)});const f=e.map(({href:h},y)=>this.#o(a[y],h));await Promise.all(f)};#i=async({scripts:e,documentEle:r,isESMModule:s,hostUrl:a})=>{if(e.length===0)return;if(!a){await this.#n(e,r,s);return}const{external:f,local:h}=Un(e,a);await this.#n(f,r,s),Nr(r.defaultView,a),await this.#n(h,r,s)};load=async(e,r)=>{const{documentEle:s,isESMModule:a}=r,f=/^https?:\/\//i,h=e.map((y,A)=>{const E=`${Bn}${r.name.toLowerCase()}-${A}`,C=f.test(y)?y:new URL(y,r.hostUrl).href;return this.#t({href:C,documentEle:s,isESMModule:a}),{id:E,href:C}});return await this.#i({scripts:h,documentEle:s,isESMModule:a,hostUrl:r.hostUrl}),Nr(s.defaultView,r.hostUrl),h.map(y=>y.id)};remove=(e="",r=document)=>new Promise(s=>{const a=r.getElementById(e);if(!a){this.#e.warn(`script with id ${e} not found`),s();return}a.remove(),s()});removeDynamicImportedScripts=(e,r)=>{const s=new RegExp(ce(e),"i"),a=r.getElementsByTagName("script");for(let f=a.length-1;f>=0;f-=1){const h=a[f],{src:y}=h;s.test(y)&&h.remove()}};removePrefetchLinks=(e,r)=>{const s=new RegExp(ce(e),"i"),a=r.querySelectorAll('[rel="prefetch"]');for(let f=a.length-1;f>=0;f-=1){const h=a[f],{href:y}=h;s.test(y)&&h.remove()}}}const Vn="ice-style-";class kr{#e;constructor(e){this.#e=e}#t=({id:e,href:r,documentEle:s})=>new Promise((a,f)=>{const h=s.createElement("link");h.id=e,h.nonce="__CSP_NONCE__",h.rel="stylesheet",h.href=x(r),h.onload=a.bind(null,h.id),h.onerror=y=>{this.#e.error({message:`Error loading stylesheet ${h.href}`,exception:new Error(y)}),f(new Error(`Unable to load stylesheet ${h.href}`,{cause:new Error(y)}))},s.head.appendChild(h)});load=async(e,r)=>{const s=[],a=e.map((f,h)=>{const y=new URL(f,r.hostUrl),A=`${Vn}${r.name.toLowerCase()}-${h}`;return s.push(A),this.#t({id:A,href:y.href,documentEle:r.documentEle})});return await Promise.all(a),s};remove=(e="",r=document)=>new Promise(s=>{const a=r.getElementById(e);if(!a){this.#e.warn(`style with id ${e} not found`),s();return}a.remove(),s()});removeDynamicImportedStyles=(e,r)=>{const s=new RegExp(ce(e),"i"),a=r.querySelectorAll('[rel="stylesheet"]');for(let f=a.length-1;f>=0;f-=1){const h=a[f],{href:y}=h;s.test(y)&&h.remove()}}}const Gn=n=>n.replace(/\/\d+\.\d+/,"/latest"),Hn=n=>{let e;try{e=new URL(n)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"},ur=new Map,Ut={get:async({hostUrl:n,manifestPath:e})=>{const r=z(n,e),s=ur.get(r);if(s)return s;const a=async f=>{const h=await fetch(f);if(!h.ok)throw new Error(`unable to get manifest ${f}`);if(!(h.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${f} is not a valid json`);const A=await h.json();return ur.set(f,A),A};try{return await a(r)}catch(f){const h=Gn(e);if(e!==h){const y=z(n,h);return await a(y)}throw f}},getFullFileNameofAssets:(n,e=[])=>e.reduce((r,s)=>{const a=n[s];if(a)r.push(a);else if(Hn(s))r.push(s);else throw new Error(`unable to locate ${s} in manifest`);return r},[]),clearCache:()=>ur.clear()},Wn=new Set(["module.unloading","module.unmount"]);class Kn{#e;#t;#r;#o;#n;constructor(e){this.#e=e.guest,this.#t=e.instanceId,this.#r=e?.version||"latest",this.#o=e.soManager,this.#n=e.eventManager}get version(){return this.#r}getObject=e=>{try{const r=this.#o.getObject(e,this.#e);if(!r)return Promise.resolve(null);const s=new Wt(r.id,r.objectType);return Object.keys(r).forEach(a=>{const f=r[a];f instanceof ne?Object.defineProperty(s,a,{value:new ne({name:a,objectId:r.id}),enumerable:!0}):B(f,a)&&Object.defineProperty(s,a,{value:(...h)=>{const y=s[a]?.callContext?.callChain;return Object.defineProperty(f,"callContext",{value:{guest:{...this.#e,instanceId:this.#t},...y?.length?{callChain:y}:{}},configurable:!0,enumerable:!0,writable:!0}),r[a](...h)},enumerable:!0})}),Promise.resolve(s)}catch(r){return Promise.reject(r)}};setAppWindowSize=e=>{const{size:r}=e,s=document.getElementById(this.#t);s&&(s.style.height=`${r.height}px`,s.style.width=`${r.width}px`)};subscribe=e=>this.#n.subscribe({...e,...Wn.has(e.eventId)?{guestId:this.#t}:{}});unsubscribe=e=>{this.#n.unsubscribe(e)}}class Yn{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:e,app:r})=>{if(!e)throw new Error("appId is required");if(e==="__proto__"||e==="constructor"||e==="prototype")throw new Error(`Invalid appId: ${e}`);if(!r?.uuid)throw new Error("application uuid is required");if(window.emui[e]=window.emui[e]||[],Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(a=>a.uuid===r.uuid);s>-1?window.emui[e][s]=r:window.emui[e].push(r)}else{let s=window.emui[e];s?.uuid===r.uuid?(s={...s,...r},window.emui[e]=[s]):typeof s.init>"u"?window.emui[e]=[{...s,...r}]:window.emui[e]=[window.emui[e],r]}};get=({id:e,instanceId:r})=>{const s=window.emui?.[e];return Array.isArray(s)?s.find(f=>f.uuid===r)??null:s?.uuid===r?s:null};add=({id:e,instanceId:r,documentEle:s})=>{if(!r)throw new Error(`instanceId (uuid) is required to register application ${e}`);const a={uuid:r,init:null,mount:null,unmount:null},f=window.emui[e];f?Array.isArray(f)?f.push(a):window.emui[e]=[f,a]:window.emui[e]=[a],s.defaultView&&(s.defaultView.emui=s.defaultView.emui??{},s.defaultView.emui.uuid=r)};delete=({id:e,instanceId:r})=>{if(Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(a=>a.uuid===r);s>-1&&window.emui[e].splice(s,1),window.emui[e].length===0&&delete window.emui[e]}else delete window.emui[e]}}const Xn=12e4,Zn="module.unloading",Jn="module.unmount",Qn=1e3,_n=new ve(tt.Module),qn=n=>Array.isArray(n)&&n.some(e=>e===!1),zr=["click","scroll","keypress","touchstart"],es=/\.css$/,Br=n=>es.test(n);class ts{#e;#t;#r;#o;#n;#i=new Dn;#s;#c;#a=new Map;#u=new Map;#p=new Map;#d=new Set;#l=new Yn;#f=!0;constructor(e){const{logger:r}=e;if(!r)throw new Error("logger is required");this.#e=e.logger,this.#t=e.version,this.#f=e.extendSession??!0,this.#n=new le({version:e.version,baseUrl:e.appConfigBaseUrl}),this.#r=new Ur(r),this.#o=new kr(r),this.#s=new Ht,this.#c=new Kt(this.#e)}#w(e){return typeof e=="function"}#x=e=>e instanceof ue||typeof e?.subscribe=="function";#S=(e,r)=>`Application ${e} with instance id ${r} is not found. Most probably the appId property of app.config.json is not set to ${e}`;#A=(e,r=document)=>{const{elementIds:s}=this.#a.get(e)||{};s&&s.forEach(a=>{const f=r.getElementById(a);f&&f.remove()})};#E=({id:e,instanceId:r,documentEle:s,elementIds:a,microFEHost:f,selfInitialize:h})=>{const y=this.#l.get({id:e,instanceId:r});if(!y)throw new Error(this.#S(e,r));this.#a.set(r,{id:e,instanceId:r,elementIds:a,guest:{guestWindow:s?.defaultView,...y},microFEHost:f,selfInitialize:h})};#O=async({id:e,instanceId:r,containerId:s,hostUrl:a,manifestPath:f,homeRoute:h,initialRoute:y,history:A,theme:E,microFEHost:C})=>{const P=this.#l.get({id:e,instanceId:r});if(!P)throw new Error(`Application ${e} with instance id ${r} is not found. Most probably the appId property of app.config.json is not set to ${e}`);if(!P.init||typeof P.init!="function")throw new Error(`Application ${e} with instance id ${r} doesn't expose init method`);const W=C??this.#v({id:e,instanceId:r,containerId:s});return P.init({host:W,hostUrl:a,manifestPath:f,homeRoute:h,initialRoute:y,prevState:null,history:A,theme:E,hostBreakpoint:Dr(),hostViewportSize:lr(),logger:this.#e})};#C=async e=>{try{const{id:r,instanceId:s,files:a,name:f,hostUrl:h,documentEle:y,isJsModule:A}=e;this.#e.debug(`Application ${r} with instance id ${s} is loading...`);let E=a;const C=e.manifest??await Ut.get(e);E=Ut.getFullFileNameofAssets(C,a);const P=E.filter(U=>Br(U)),W=E.filter(U=>!Br(U)),H={name:f,hostUrl:h,documentEle:y,isESMModule:A},[N,K]=await Promise.all([this.#o.load(P,H),this.#r.load(W,H)]);this.#E({id:r,instanceId:s,documentEle:y,elementIds:[...N,...K],microFEHost:e.microFEHost,selfInitialize:e.selfInitialize}),e.selfInitialize||await this.#O(e),this.#e.audit(`Application ${r} with instance id ${s} loaded`)}catch(r){const s=`Application load failed. Unable to load one or more resources for ${e.id} with instance id ${e.instanceId}. ${r.message}`;throw this.#e.error({message:s,appId:e.id,exception:r}),new Error(s)}};#g=({id:e,instanceId:r,hostUrl:s,documentEle:a})=>{this.#e.debug(`Application ${e} with instance id ${r} unloading...`),this.#l.get({id:e,instanceId:r})&&(this.#A(r,a),this.#r.removeDynamicImportedScripts(s,a),this.#r.removePrefetchLinks(s,a),this.#o.removeDynamicImportedStyles(s,a),this.#l.delete({id:e,instanceId:r}),this.#e.audit(`Application ${e} with instance id ${r} unloaded`))};#m=async({id:e,instanceId:r})=>{const s=this.#l.get({id:e,instanceId:r});if(!s?.mount||typeof s?.mount!="function")throw new Error(`Application ${e} with instance id ${r} doesn't expose mount method`);return s.mount({containerId:`${He}${e}`,hostBreakpoint:Dr(),hostViewportSize:lr()})};#T=({id:e,instanceId:r})=>{const s=this.#l.get({id:e,instanceId:r});if(!s?.unmount)return null;if(typeof s.unmount!="function")throw new Error(`Application ${e} with instance id ${r} doesn't expose unmount method`);return s.unmount({containerId:`${He}${e}`})};#P=({id:e,instanceId:r})=>{if(this.#f)try{const s=this.#s.getObject(tt.Application);if(!s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`});return}const a=this.#a.get(r);if(!a)return;a.keepAlive=Ae()(async()=>{try{await s.keepSessionAlive()}catch(h){this.#e.error(`Error keeping session alive. ${h.message}`)}},Xn);const f=Ee.get(r);zr.forEach(h=>{f?.contentDocument?.addEventListener(h,a.keepAlive)})}catch(s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`,exception:s})}};#I=(e,r)=>{const s=r?.callContext?.guest;if(s?.instanceId&&this.#a.get(s.instanceId)?.id===e)return s.instanceId;const a=s?.guestWindow,f=Array.from(this.#a.entries()).filter(([,h])=>h.id===e);if(a){const h=f.find(([,y])=>y.guest.guestWindow===a);if(h)return h[0]}return f.length===1?f[0][0]:void 0};#j=(e,r)=>{this.#p.set(r,()=>this.closeApp(r));const s=this.#s.getObject(tt.Module,{id:e}),f=s?._setUnloadHandler;typeof f=="function"&&(this.#d.has(e)||(this.#d.add(e),f.call(s,async()=>{const h=s.unload,y=this.#I(e,typeof h=="function"?h:s);if(!y){this.#e.warn(`Cannot resolve instance for module.unload of ${e}`);return}await this.#p.get(y)?.()})))};#h=(e,r)=>{this.#p.delete(e),[...this.#a.entries()].some(([a,f])=>f.id===r&&a!==e)||this.#d.delete(r)};#M=e=>this.#s.getObject(tt.Module,{id:e});#v=({id:e,instanceId:r,containerId:s})=>new Kn({guest:{id:e},instanceId:r,version:this.#t,containerId:s,logger:this.#e,soManager:this.#s,eventManager:this.#c});#y=async(e,r,s)=>{const a=this.#M(e.id)??_n;return this.#c.dispatchEvent(a,{event:{id:r,name:s},eventParams:{moduleId:e.id},eventOptions:{timeout:Qn,guestId:e.instanceId}})};#R=async e=>{try{const r=await this.#y(e,Zn,"unloading");if(qn(r))return this.#e.info(`Unload denied by guest ${e.id} via module.unloading event`),!1}catch(r){this.#e.warn({message:`Error dispatching module.unloading event for ${e.id}; proceeding with unload`,exception:r})}return!0};#b=async({id:e,instanceId:r,selfInitialize:s})=>{if(!s){await this.#T({id:e,instanceId:r});return}try{await this.#y({id:e,instanceId:r},Jn,"unmount")}catch(a){this.#e.warn({message:`Error dispatching module.unmount event for ${e}`,exception:a})}};#$=e=>{if(!this.#f||!e)return;const{keepAlive:r,instanceId:s}=e;if(r){const f=Ee.get(s)?.contentDocument;f&&zr.forEach(h=>{f.removeEventListener(h,r)}),e.keepAlive?.cancel()}};addScriptingObject=(e,r)=>{if(Ot(e)){const s=this.cloneScriptingObject(e);this.#s.addScriptingObject(s,r)}else this.#s.addScriptingObject(e,r)};cloneScriptingObject=e=>{if(!e)throw new Error("proxy is required");const r=new ve(e.id,e.objectType);let s=[];return Object.keys(e).forEach(a=>{const f=e[a];if(this.#x(f)){const h=new ne({name:f.name||a,objectId:r.id});Object.defineProperty(r,a,{value:h,enumerable:!0});const y=({eventParams:E,eventOptions:C})=>this.dispatchEvent({event:h,eventParams:E,eventOptions:C}),A=f.subscribe(y);s.push(()=>{f.unsubscribe(A)})}else if(this.#w(f)&&(Object.defineProperty(r,a,{value:async(...h)=>{const y=r[a]?.callContext;if(y?.guest){const E=y.callChain??[],C=y.guest,P=C.instanceId??C.id,W=this.#u.get(P),H={id:C.id};W&&(H.metadata=W),Object.defineProperty(f,"callContext",{value:{callChain:[...E,H]},configurable:!0,enumerable:!0,writable:!0})}const A=await f(...h);return Ot(A)?this.cloneScriptingObject(A):A},enumerable:!0}),a==="dispose")){const h=r.dispose;Object.defineProperty(r,a,{value:()=>(r._dispose(),h.apply(r)),enumerable:!0})}}),r._dispose=()=>{s.forEach(a=>{a?.()}),s=[]},r};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async e=>{if(!e)throw new Error("instanceId is required");const r=this.#a.get(e);if(!r){this.#e.warn(`Application with instance id ${e} is not found`);return}const{id:s,selfInitialize:a}=r;if(!await this.#R({id:s,instanceId:e}))return;const f=this.#i.getConfigById(s);if(!f){this.#e.warn(`Configuration for application ${s} is not found`),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#a.delete(e),this.#u.delete(e),this.#h(e,s),Ee.remove(e);return}const{hostUrl:h}=f,y=Ee.get(e);try{this.#$(r),await this.#b({id:s,instanceId:e,selfInitialize:a})}finally{y?.contentDocument&&this.#g({id:s,instanceId:e,hostUrl:h,documentEle:y.contentDocument}),y&&(y.src="about:blank"),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#a.delete(e),this.#u.delete(e),this.#h(e,s),Ee.remove(e)}};dispatchEvent=async e=>{const{event:{id:r,name:s},eventOptions:a={}}=e,{guestId:f}=a;if(!r)throw new Error("Event Id is required");const h=r.split(".")?.[0],y=f?this.#s.getObject(h,{id:f}):this.#s.getObject(h);return y?this.#c.dispatchEvent(y,e):(this.#e.warn(`Attempt to dispatch event ${s} on unknown object ${h}`),Promise.resolve())};getApp=e=>this.#a.get(e)?.guest;getApps=()=>[...this.#a.values()].map(e=>e.guest);init=async e=>{e?this.#n.setPreloadedConfig(e):await this.#n.load(),this.#i.init({version:this.#t,appConfig:this.#n}),this.#F()};#F=()=>{const e=this.#n.get("microFrontendApps")??{},r=new Set;Object.keys(e).forEach(s=>{const a=this.#i.getConfigById(s);if(a?.hostUrl)try{r.add(new URL(a.hostUrl).origin)}catch{}}),r.forEach(s=>{const a=document.createElement("link");a.rel="preconnect",a.href=s,a.crossOrigin="anonymous",document.head.appendChild(a)})};mountApp=async e=>{if(!e)throw new Error("instanceId is required");const{id:r}=this.#a.get(e)||{};if(!r)throw new Error(`Application with instance id ${e} is not found`);const s=this.#i.getConfigById(r);if(!s)throw new Error(`Application with id ${r} is not found`);await this.#m({...s,instanceId:e})};#D=(e,r,s)=>{const a=this.#v(s),f=e.defaultView;f&&(f.emui=f.emui??{},f.emui.__host=a,f.emui.getHost=()=>f.emui?.__host??null);const h=e.createElement("link");return h.rel="preconnect",h.href=r.hostUrl,h.crossOrigin="anonymous",e.head.appendChild(h),a};openApp=async e=>{const{id:r,frameOptions:s,history:a,theme:f,homeRoute:h,initialRoute:y,metadata:A,selfInitialize:E}=e,C=At();A&&this.#u.set(C,A);const P=this.#i.getConfigById(r);if(!P)throw new Error(`Application ${r} is not found in app config`);const W=Ut.get(P);W.catch(()=>{});const H=await Ee.create({id:r,instanceId:C,manifestPath:P.manifestPath,hostUrl:P.hostUrl,options:{title:P.name,...s}});if(!H?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:r,instanceId:C,documentEle:H.contentDocument});const N=this.#D(H.contentDocument,P,{id:r,instanceId:C,containerId:s?.containerId}),K=await W;return await this.#C({instanceId:C,history:a,theme:f,documentEle:H.contentDocument,containerId:s?.containerId,...P,homeRoute:h??P.homeRoute,initialRoute:y,microFEHost:N,selfInitialize:E,manifest:K}),E||await this.#m({instanceId:C,...P}),this.#P({id:r,instanceId:C}),this.#j(r,C),C}catch(N){throw this.#u.delete(C),this.#h(C,r),this.#g({id:r,instanceId:C,hostUrl:P.hostUrl,documentEle:H.contentDocument}),Ee.remove(C),N}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=e=>{this.#s.removeAllScriptingObjects(e)};removeScriptingObject=(e,r)=>{this.#s.removeScriptingObject(e,r)};warmUp=e=>{const r=this.#i.getConfigById(e);r&&Ut.get(r).catch(()=>{})};unmountApp=async e=>{if(!e)throw new Error("instanceId is required");const r=this.#a.get(e),{id:s,selfInitialize:a}=r||{};if(!s)throw new Error(`Application with instance id ${e} is not found`);if(!this.#i.getConfigById(s))throw new Error(`Application with id ${s} is not found`);await this.#b({id:s,instanceId:e,selfInitialize:a})}}})(),zt})());
|
|
15
|
+
`,e),{}),On=r=>({space:{...r.spaces,xxxs:r.spaces[1],xxs:r.spaces[2],xxs2:r.spaces[3],xs:r.spaces[4],s:r.spaces[5],m:r.spaces[6],l:r.spaces[7],xl:r.spaces[8],xxl:r.spaces[9]},fontSizes:{...r.fontSizes,title:{500:r.fontSizes[3],600:r.fontSizes[4],700:r.fontSizes[5],800:r.fontSizes[6],900:r.fontSizes[7]},subTitle:{300:r.fontSizes[1],400:r.fontSizes[2]},label:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},value:{300:r.fontSizes[1],400:r.fontSizes[2],500:r.fontSizes[3],600:r.fontSizes[4]},hyperlink:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},microText:{200:r.fontSizes[0]}},fontWeights:{...r.fontWeights,thin:r.fontWeights[0],light:r.fontWeights[1],regular:r.fontWeights[3],semibold:r.fontWeights[5],bold:r.fontWeights[8]},lineHeights:{...r.lineHeights,r:r.lineHeights[0],m:r.lineHeights[1],l:r.lineHeights[2],xl:r.lineHeights[3]},letterSpacings:{normal:r.letterSpacings[0],tracked:r.letterSpacings[1],tight:r.letterSpacings[2],mega:r.letterSpacings[3]},fonts:{...r.fonts,default:r.fonts[0]},colors:{neutral:{"000":r.colors.neutral[0],"050":r.colors.neutral[1],"080":r.colors.neutral[2],100:r.colors.neutral[3],200:r.colors.neutral[4],300:r.colors.neutral[5],400:r.colors.neutral[6],500:r.colors.neutral[7],600:r.colors.neutral[8],700:r.colors.neutral[9],800:r.colors.neutral[10]},brand:{100:r.colors.brand[0],200:r.colors.brand[1],250:r.colors.brand[8],300:r.colors.brand[2],400:r.colors.brand[3],500:r.colors.brand[4],600:r.colors.brand[5],700:r.colors.brand[6],800:r.colors.brand[7]},success:{300:r.colors.success[0],400:r.colors.success[1],600:r.colors.success[2],900:r.colors.success[3],950:r.colors.success[4]},warning:{400:r.colors.warning[0],500:r.colors.warning[1],600:r.colors.warning[1],900:r.colors.warning[2],950:r.colors.warning[3]},danger:{200:r.colors.danger[0],400:r.colors.danger[1],600:r.colors.danger[2],900:r.colors.danger[3],950:r.colors.danger[4]}},shadows:{xs:r.shadows[0],s:r.shadows[1],m:r.shadows[2],l:r.shadows[3],xl:r.shadows[4]},breakpoints:{...r.breakpoints,xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]},media:Cn({xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]}),zIndex:{dialog:r.zIndex[0],popper:r.zIndex[1],tooltip:r.zIndex[2],backdrop:r.zIndex[3],loader:r.zIndex[4]},states:{_:r.states[0],motionSafe:r.states[1],motionReduce:r.states[2],first:r.states[3],last:r.states[4],odd:r.states[5],even:r.states[6],visited:r.states[7],checked:r.states[8],focusWithin:r.states[9],hover:r.states[10],focus:r.states[11],focusVisible:r.states[12],active:r.states[13],disabled:r.states[14],placeholder:r.states[15]}}),Tn=((r=_t())=>()=>On(r))(),ws=()=>{try{return window.parent.document,window.parent}catch{return window}},ur=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),Dr=r=>Number(r.replace("px","")),Lr=()=>{const{width:r}=ur(),{breakpoints:e}=Tn();return r<=Dr(e.small)?"small":r<=Dr(e.medium)?"medium":"large"},Pn="microFrontendApps",In=()=>!0,jn=r=>In()?!0:String(r).toLowerCase()===ae.PRODUCTION.toLowerCase(),Mn=r=>r?new URL(r).pathname:"",Rn=r=>{const e=document.createElement("a");return e.href=r,e.href},$n=(r,e)=>{const t=e.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,t&&t[0]||"latest")},Nr=r=>!r||!r.length?!1:r.every(e=>typeof e=="string"),Fn=(r,e)=>{const{mode:t=ae.PRODUCTION}=e;if(String(t).toLowerCase()!==ae.PRODUCTION.toLowerCase()&&String(t).toLowerCase()!==ae.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(t)}' for ${r}`);const{production:s,development:i,microappManager:d=pe.APPSDK}=e;if(String(d).toLowerCase()===pe.APPSDK.toLowerCase()){if(String(t).toLowerCase()===ae.PRODUCTION.toLowerCase()){if(!s)throw new Error(`microFrontendApps.${r} is missing production section in app.config.json`);if(!Nr(s.files))throw new Error("invalid value for production.files")}if(String(t).toLowerCase()===ae.DEVELOPMENT.toLowerCase()){if(!i)throw new Error(`microFrontendApps.${r} is missing development section in app.config.json`);if(!Nr(i.files))throw new Error("invalid value for development.files")}}},Dn=({id:r,config:e,version:t="latest"})=>{const{mode:s=ae.PRODUCTION,production:i,development:d,...h}=e,y=jn(s)?i:d,S=P()({id:r},{name:r,mode:ae.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:a.USER,isJsModule:!0},h,{mode:s},y);return S.hostUrl=D(Rn(S.hostUrl||"")),S.homeRoute=D(S.homeRoute)||Mn(S.hostUrl),S.manifestPath=D($n(S.manifestPath,t)),S};class Ln{#e=[];init=({version:e,appConfig:t})=>{const s=t.get(Pn);s&&(this.#e=Object.keys(s).map(i=>(Fn(i,s[i]),Dn({id:i,config:s[i],version:e}))))};getConfigById=e=>this.#e.find(t=>t.id===e)}const Nn=/^https?:\/\//i,Un=(r,e)=>{if(!Nn.test(r))return!1;try{return!r.startsWith(new URL(e).href)}catch{return!0}},kn=(r,e)=>{const t=[],s=[];return r.forEach(i=>{Un(i.href,e)?t.push(i):s.push(i)}),{external:t,local:s}},zn=r=>{if(!r)return;const e=r,t=e.emui?._ASSET_PATH;t&&(e.__webpack_public_path__=new URL("../",t).href)},Bn=(r,e)=>{if(!(!r||!e))try{const t=r;t.__webpack_public_path__=new URL("./",e).href}catch{}},Ur=(r,e)=>{if(!r)return;if(r.emui?._ASSET_PATH){zn(r);return}Bn(r,e)},Vn="ice-script-";class kr{#e;constructor(e){this.#e=e}#t=({href:e,isESMModule:t=!0,documentEle:s})=>{const i=s.createElement("link");i.rel=t?"modulepreload":"preload",i.href=e,i.crossOrigin="anonymous",t||(i.as="script"),s.head.appendChild(i)};#r=({id:e,documentEle:t,isESMModule:s=!0})=>{const i=t.createElement("script");return i.id=e,i.crossOrigin="anonymous",i.nonce="__CSP_NONCE__",!Ce()&&s&&(i.type="module"),i.async=!1,i};#i=(e,t)=>new Promise((s,i)=>{e.onload=s.bind(null,e.id),e.onerror=d=>{this.#e.error({message:`Error loading script ${e.src}`,exception:new Error(d)}),i(new Error(`Unable to load script ${e.src}`,{cause:new Error(d)}))},e.src=N(t)});#n=async(e,t,s)=>{if(e.length===0)return;const i=e.map(({id:h})=>this.#r({id:h,documentEle:t,isESMModule:s}));i.forEach(h=>{t.head.appendChild(h)});const d=e.map(({href:h},y)=>this.#i(i[y],h));await Promise.all(d)};#o=async({scripts:e,documentEle:t,isESMModule:s,hostUrl:i})=>{if(e.length===0)return;if(!i){await this.#n(e,t,s);return}const{external:d,local:h}=kn(e,i);await this.#n(d,t,s),Ur(t.defaultView,i),await this.#n(h,t,s)};load=async(e,t)=>{const{documentEle:s,isESMModule:i}=t,d=/^https?:\/\//i,h=e.map((y,S)=>{const A=`${Vn}${t.name.toLowerCase()}-${S}`,E=d.test(y)?y:new URL(y,t.hostUrl).href;return this.#t({href:E,documentEle:s,isESMModule:i}),{id:A,href:E}});return await this.#o({scripts:h,documentEle:s,isESMModule:i,hostUrl:t.hostUrl}),Ur(s.defaultView,t.hostUrl),h.map(y=>y.id)};remove=(e="",t=document)=>new Promise(s=>{const i=t.getElementById(e);if(!i){this.#e.warn(`script with id ${e} not found`),s();return}i.remove(),s()});removeDynamicImportedScripts=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.getElementsByTagName("script");for(let d=i.length-1;d>=0;d-=1){const h=i[d],{src:y}=h;s.test(y)&&h.remove()}};removePrefetchLinks=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.querySelectorAll('[rel="prefetch"]');for(let d=i.length-1;d>=0;d-=1){const h=i[d],{href:y}=h;s.test(y)&&h.remove()}}}const Gn="ice-style-";class zr{#e;constructor(e){this.#e=e}#t=({id:e,href:t,documentEle:s})=>new Promise((i,d)=>{const h=s.createElement("link");h.id=e,h.nonce="__CSP_NONCE__",h.rel="stylesheet",h.href=N(t),h.onload=i.bind(null,h.id),h.onerror=y=>{this.#e.error({message:`Error loading stylesheet ${h.href}`,exception:new Error(y)}),d(new Error(`Unable to load stylesheet ${h.href}`,{cause:new Error(y)}))},s.head.appendChild(h)});load=async(e,t)=>{const s=[],i=e.map((d,h)=>{const y=new URL(d,t.hostUrl),S=`${Gn}${t.name.toLowerCase()}-${h}`;return s.push(S),this.#t({id:S,href:y.href,documentEle:t.documentEle})});return await Promise.all(i),s};remove=(e="",t=document)=>new Promise(s=>{const i=t.getElementById(e);if(!i){this.#e.warn(`style with id ${e} not found`),s();return}i.remove(),s()});removeDynamicImportedStyles=(e,t)=>{const s=new RegExp(ye(e),"i"),i=t.querySelectorAll('[rel="stylesheet"]');for(let d=i.length-1;d>=0;d-=1){const h=i[d],{href:y}=h;s.test(y)&&h.remove()}}}const Hn=r=>r.replace(/\/\d+\.\d+/,"/latest"),Wn=r=>{let e;try{e=new URL(r)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"},pr=new Map,Dt={get:async({hostUrl:r,manifestPath:e})=>{const t=_(r,e),s=pr.get(t);if(s)return s;const i=async d=>{const h=await fetch(d);if(!h.ok)throw new Error(`unable to get manifest ${d}`);if(!(h.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${d} is not a valid json`);const S=await h.json();return pr.set(d,S),S};try{return await i(t)}catch(d){const h=Hn(e);if(e!==h){const y=_(r,h);return await i(y)}throw d}},getFullFileNameofAssets:(r,e=[])=>e.reduce((t,s)=>{const i=r[s];if(i)t.push(i);else if(Wn(s))t.push(s);else throw new Error(`unable to locate ${s} in manifest`);return t},[]),clearCache:()=>pr.clear()},_n=new Set(["module.unloading","module.unmount"]);class Kn{#e;#t;#r;#i;#n;constructor(e){this.#e=e.guest,this.#t=e.instanceId,this.#r=e?.version||"latest",this.#i=e.soManager,this.#n=e.eventManager}get version(){return this.#r}getObject=e=>{try{const t=this.#i.getObject(e,this.#e);if(!t)return Promise.resolve(null);const s=new ie(t.id,t.objectType);return Object.keys(t).forEach(i=>{const d=t[i];d instanceof le?Object.defineProperty(s,i,{value:new le({name:i,objectId:t.id}),enumerable:!0}):we(d,i)&&Object.defineProperty(s,i,{value:(...h)=>{const y=s[i]?.callContext?.callChain;return Object.defineProperty(d,"callContext",{value:{guest:{...this.#e,instanceId:this.#t},...y?.length?{callChain:y}:{}},configurable:!0,enumerable:!0,writable:!0}),t[i](...h)},enumerable:!0})}),Promise.resolve(s)}catch(t){return Promise.reject(t)}};setAppWindowSize=e=>{const{size:t}=e,s=document.getElementById(this.#t);s&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`)};subscribe=e=>this.#n.subscribe({...e,..._n.has(e.eventId)?{guestId:this.#t}:{}});unsubscribe=e=>{this.#n.unsubscribe(e)}}class Yn{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:e,app:t})=>{if(!e)throw new Error("appId is required");if(e==="__proto__"||e==="constructor"||e==="prototype")throw new Error(`Invalid appId: ${e}`);if(!t?.uuid)throw new Error("application uuid is required");if(window.emui[e]=window.emui[e]||[],Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(i=>i.uuid===t.uuid);s>-1?window.emui[e][s]=t:window.emui[e].push(t)}else{let s=window.emui[e];s?.uuid===t.uuid?(s={...s,...t},window.emui[e]=[s]):typeof s.init>"u"?window.emui[e]=[{...s,...t}]:window.emui[e]=[window.emui[e],t]}};get=({id:e,instanceId:t})=>{const s=window.emui?.[e];return Array.isArray(s)?s.find(d=>d.uuid===t)??null:s?.uuid===t?s:null};add=({id:e,instanceId:t,documentEle:s})=>{if(!t)throw new Error(`instanceId (uuid) is required to register application ${e}`);const i={uuid:t,init:null,mount:null,unmount:null},d=window.emui[e];d?Array.isArray(d)?d.push(i):window.emui[e]=[d,i]:window.emui[e]=[i],s.defaultView&&(s.defaultView.emui=s.defaultView.emui??{},s.defaultView.emui.uuid=t)};delete=({id:e,instanceId:t})=>{if(Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(i=>i.uuid===t);s>-1&&window.emui[e].splice(s,1),window.emui[e].length===0&&delete window.emui[e]}else delete window.emui[e]}}const Xn=12e4,Zn="module.unloading",Jn="module.unmount",Qn=1e3,qn=new Ue(et.Module),es=r=>Array.isArray(r)&&r.some(e=>e===!1),Br=["click","scroll","keypress","touchstart"],ts=/\.css$/,Vr=r=>ts.test(r);class rs{#e;#t;#r;#i;#n;#o=new Ln;#s;#c;#a=new Map;#u=new Map;#p=new Map;#d=new Set;#l=new Yn;#f=!0;constructor(e){const{logger:t}=e;if(!t)throw new Error("logger is required");this.#e=e.logger,this.#t=e.version,this.#f=e.extendSession??!0,this.#n=new ce({version:e.version,baseUrl:e.appConfigBaseUrl}),this.#r=new kr(t),this.#i=new zr(t),this.#s=new Ht,this.#c=new Q(this.#e)}#w(e){return typeof e=="function"}#x=e=>e instanceof de||typeof e?.subscribe=="function";#S=(e,t)=>`Application ${e} with instance id ${t} is not found. Most probably the appId property of app.config.json is not set to ${e}`;#A=(e,t=document)=>{const{elementIds:s}=this.#a.get(e)||{};s&&s.forEach(i=>{const d=t.getElementById(i);d&&d.remove()})};#E=({id:e,instanceId:t,documentEle:s,elementIds:i,microFEHost:d,selfInitialize:h})=>{const y=this.#l.get({id:e,instanceId:t});if(!y)throw new Error(this.#S(e,t));this.#a.set(t,{id:e,instanceId:t,elementIds:i,guest:{guestWindow:s?.defaultView,...y},microFEHost:d,selfInitialize:h})};#C=async({id:e,instanceId:t,containerId:s,hostUrl:i,manifestPath:d,homeRoute:h,initialRoute:y,history:S,theme:A,microFEHost:E})=>{const O=this.#l.get({id:e,instanceId:t});if(!O)throw new Error(`Application ${e} with instance id ${t} is not found. Most probably the appId property of app.config.json is not set to ${e}`);if(!O.init||typeof O.init!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose init method`);const k=E??this.#v({id:e,instanceId:t,containerId:s});return O.init({host:k,hostUrl:i,manifestPath:d,homeRoute:h,initialRoute:y,prevState:null,history:S,theme:A,hostBreakpoint:Lr(),hostViewportSize:ur(),logger:this.#e})};#O=async e=>{try{const{id:t,instanceId:s,files:i,name:d,hostUrl:h,documentEle:y,isJsModule:S}=e;this.#e.debug(`Application ${t} with instance id ${s} is loading...`);let A=i;const E=e.manifest??await Dt.get(e);A=Dt.getFullFileNameofAssets(E,i);const O=A.filter(M=>Vr(M)),k=A.filter(M=>!Vr(M)),L={name:d,hostUrl:h,documentEle:y,isESMModule:S},[F,U]=await Promise.all([this.#i.load(O,L),this.#r.load(k,L)]);this.#E({id:t,instanceId:s,documentEle:y,elementIds:[...F,...U],microFEHost:e.microFEHost,selfInitialize:e.selfInitialize}),e.selfInitialize||await this.#C(e),this.#e.audit(`Application ${t} with instance id ${s} loaded`)}catch(t){const s=`Application load failed. Unable to load one or more resources for ${e.id} with instance id ${e.instanceId}. ${t.message}`;throw this.#e.error({message:s,appId:e.id,exception:t}),new Error(s)}};#g=({id:e,instanceId:t,hostUrl:s,documentEle:i})=>{this.#e.debug(`Application ${e} with instance id ${t} unloading...`),this.#l.get({id:e,instanceId:t})&&(this.#A(t,i),this.#r.removeDynamicImportedScripts(s,i),this.#r.removePrefetchLinks(s,i),this.#i.removeDynamicImportedStyles(s,i),this.#l.delete({id:e,instanceId:t}),this.#e.audit(`Application ${e} with instance id ${t} unloaded`))};#m=async({id:e,instanceId:t})=>{const s=this.#l.get({id:e,instanceId:t});if(!s?.mount||typeof s?.mount!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose mount method`);return s.mount({containerId:`${Ge}${e}`,hostBreakpoint:Lr(),hostViewportSize:ur()})};#T=({id:e,instanceId:t})=>{const s=this.#l.get({id:e,instanceId:t});if(!s?.unmount)return null;if(typeof s.unmount!="function")throw new Error(`Application ${e} with instance id ${t} doesn't expose unmount method`);return s.unmount({containerId:`${Ge}${e}`})};#P=({id:e,instanceId:t})=>{if(this.#f)try{const s=this.#s.getObject(et.Application);if(!s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`});return}const i=this.#a.get(t);if(!i)return;i.keepAlive=Ut()(async()=>{try{await s.keepSessionAlive()}catch(h){this.#e.error(`Error keeping session alive. ${h.message}`)}},Xn);const d=Fe.get(t);Br.forEach(h=>{d?.contentDocument?.addEventListener(h,i.keepAlive)})}catch(s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`,exception:s})}};#I=(e,t)=>{const s=t?.callContext?.guest;if(s?.instanceId&&this.#a.get(s.instanceId)?.id===e)return s.instanceId;const i=s?.guestWindow,d=Array.from(this.#a.entries()).filter(([,h])=>h.id===e);if(i){const h=d.find(([,y])=>y.guest.guestWindow===i);if(h)return h[0]}return d.length===1?d[0][0]:void 0};#j=(e,t)=>{this.#p.set(t,()=>this.closeApp(t));const s=this.#s.getObject(et.Module,{id:e}),d=s?._setUnloadHandler;typeof d=="function"&&(this.#d.has(e)||(this.#d.add(e),d.call(s,async()=>{const h=s.unload,y=this.#I(e,typeof h=="function"?h:s);if(!y){this.#e.warn(`Cannot resolve instance for module.unload of ${e}`);return}await this.#p.get(y)?.()})))};#h=(e,t)=>{this.#p.delete(e),[...this.#a.entries()].some(([i,d])=>d.id===t&&i!==e)||this.#d.delete(t)};#M=e=>this.#s.getObject(et.Module,{id:e});#v=({id:e,instanceId:t,containerId:s})=>new Kn({guest:{id:e},instanceId:t,version:this.#t,containerId:s,logger:this.#e,soManager:this.#s,eventManager:this.#c});#y=async(e,t,s)=>{const i=this.#M(e.id)??qn;return this.#c.dispatchEvent(i,{event:{id:t,name:s},eventParams:{moduleId:e.id},eventOptions:{timeout:Qn,guestId:e.instanceId}})};#R=async e=>{try{const t=await this.#y(e,Zn,"unloading");if(es(t))return this.#e.info(`Unload denied by guest ${e.id} via module.unloading event`),!1}catch(t){this.#e.warn({message:`Error dispatching module.unloading event for ${e.id}; proceeding with unload`,exception:t})}return!0};#b=async({id:e,instanceId:t,selfInitialize:s})=>{if(!s){await this.#T({id:e,instanceId:t});return}try{await this.#y({id:e,instanceId:t},Jn,"unmount")}catch(i){this.#e.warn({message:`Error dispatching module.unmount event for ${e}`,exception:i})}};#$=e=>{if(!this.#f||!e)return;const{keepAlive:t,instanceId:s}=e;if(t){const d=Fe.get(s)?.contentDocument;d&&Br.forEach(h=>{d.removeEventListener(h,t)}),e.keepAlive?.cancel()}};addScriptingObject=(e,t)=>{if(tt(e)){const s=this.cloneScriptingObject(e);this.#s.addScriptingObject(s,t)}else this.#s.addScriptingObject(e,t)};cloneScriptingObject=e=>{if(!e)throw new Error("proxy is required");const t=new Ue(e.id,e.objectType);let s=[];return Object.keys(e).forEach(i=>{const d=e[i];if(this.#x(d)){const h=new le({name:d.name||i,objectId:t.id});Object.defineProperty(t,i,{value:h,enumerable:!0});const y=({eventParams:A,eventOptions:E})=>this.dispatchEvent({event:h,eventParams:A,eventOptions:E}),S=d.subscribe(y);s.push(()=>{d.unsubscribe(S)})}else if(this.#w(d)&&(Object.defineProperty(t,i,{value:async(...h)=>{const y=t[i]?.callContext;if(y?.guest){const A=y.callChain??[],E=y.guest,O=E.instanceId??E.id,k=this.#u.get(O),L={id:E.id};k&&(L.metadata=k),Object.defineProperty(d,"callContext",{value:{callChain:[...A,L]},configurable:!0,enumerable:!0,writable:!0})}const S=await d(...h);return tt(S)?this.cloneScriptingObject(S):S},enumerable:!0}),i==="dispose")){const h=t.dispose;Object.defineProperty(t,i,{value:()=>(t._dispose(),h.apply(t)),enumerable:!0})}}),t._dispose=()=>{s.forEach(i=>{i?.()}),s=[]},t};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async e=>{if(!e)throw new Error("instanceId is required");const t=this.#a.get(e);if(!t){this.#e.warn(`Application with instance id ${e} is not found`);return}const{id:s,selfInitialize:i}=t;if(!await this.#R({id:s,instanceId:e}))return;const d=this.#o.getConfigById(s);if(!d){this.#e.warn(`Configuration for application ${s} is not found`),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#a.delete(e),this.#u.delete(e),this.#h(e,s),Fe.remove(e);return}const{hostUrl:h}=d,y=Fe.get(e);try{this.#$(t),await this.#b({id:s,instanceId:e,selfInitialize:i})}finally{y?.contentDocument&&this.#g({id:s,instanceId:e,hostUrl:h,documentEle:y.contentDocument}),y&&(y.src="about:blank"),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#a.delete(e),this.#u.delete(e),this.#h(e,s),Fe.remove(e)}};dispatchEvent=async e=>{const{event:{id:t,name:s},eventOptions:i={}}=e,{guestId:d}=i;if(!t)throw new Error("Event Id is required");const h=t.split(".")?.[0],y=d?this.#s.getObject(h,{id:d}):this.#s.getObject(h);return y?this.#c.dispatchEvent(y,e):(this.#e.warn(`Attempt to dispatch event ${s} on unknown object ${h}`),Promise.resolve())};getApp=e=>this.#a.get(e)?.guest;getApps=()=>[...this.#a.values()].map(e=>e.guest);init=async e=>{e?this.#n.setPreloadedConfig(e):await this.#n.load(),this.#o.init({version:this.#t,appConfig:this.#n}),this.#F()};#F=()=>{const e=this.#n.get("microFrontendApps")??{},t=new Set;Object.keys(e).forEach(s=>{const i=this.#o.getConfigById(s);if(i?.hostUrl)try{t.add(new URL(i.hostUrl).origin)}catch{}}),t.forEach(s=>{const i=document.createElement("link");i.rel="preconnect",i.href=s,i.crossOrigin="anonymous",document.head.appendChild(i)})};mountApp=async e=>{if(!e)throw new Error("instanceId is required");const{id:t}=this.#a.get(e)||{};if(!t)throw new Error(`Application with instance id ${e} is not found`);const s=this.#o.getConfigById(t);if(!s)throw new Error(`Application with id ${t} is not found`);await this.#m({...s,instanceId:e})};#D=(e,t,s)=>{const i=this.#v(s),d=e.defaultView;d&&(d.emui=d.emui??{},d.emui.__host=i,d.emui.getHost=()=>d.emui?.__host??null);const h=e.createElement("link");return h.rel="preconnect",h.href=t.hostUrl,h.crossOrigin="anonymous",e.head.appendChild(h),i};openApp=async e=>{const{id:t,frameOptions:s,history:i,theme:d,homeRoute:h,initialRoute:y,metadata:S,selfInitialize:A}=e,E=At();S&&this.#u.set(E,S);const O=this.#o.getConfigById(t);if(!O)throw new Error(`Application ${t} is not found in app config`);const k=Dt.get(O);k.catch(()=>{});const L=await Fe.create({id:t,instanceId:E,manifestPath:O.manifestPath,hostUrl:O.hostUrl,options:{title:O.name,...s}});if(!L?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:t,instanceId:E,documentEle:L.contentDocument});const F=this.#D(L.contentDocument,O,{id:t,instanceId:E,containerId:s?.containerId}),U=await k;return await this.#O({instanceId:E,history:i,theme:d,documentEle:L.contentDocument,containerId:s?.containerId,...O,homeRoute:h??O.homeRoute,initialRoute:y,microFEHost:F,selfInitialize:A,manifest:U}),A||await this.#m({instanceId:E,...O}),this.#P({id:t,instanceId:E}),this.#j(t,E),E}catch(F){throw this.#u.delete(E),this.#h(E,t),this.#g({id:t,instanceId:E,hostUrl:O.hostUrl,documentEle:L.contentDocument}),Fe.remove(E),F}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=e=>{this.#s.removeAllScriptingObjects(e)};removeScriptingObject=(e,t)=>{this.#s.removeScriptingObject(e,t)};warmUp=e=>{const t=this.#o.getConfigById(e);t&&Dt.get(t).catch(()=>{})};unmountApp=async e=>{if(!e)throw new Error("instanceId is required");const t=this.#a.get(e),{id:s,selfInitialize:i}=t||{};if(!s)throw new Error(`Application with instance id ${e} is not found`);if(!this.#o.getConfigById(s))throw new Error(`Application with id ${s} is not found`);await this.#b({id:s,instanceId:e,selfInitialize:i})}}})(),Nt})());
|
|
16
16
|
|
|
17
17
|
//# sourceMappingURL=index.js.map
|