@elliemae/pui-app-sdk 5.42.2 → 5.42.3
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/README.md +3 -3
- package/build/docs/404.html +1 -1
- package/build/docs/api/classes/Analytics/index.html +1 -1
- package/build/docs/api/classes/CMicroAppGuest/index.html +1 -1
- package/build/docs/api/classes/CMicroAppHost/index.html +1 -1
- package/build/docs/api/classes/ErrorBoundary/index.html +1 -1
- package/build/docs/api/classes/GuestModule/index.html +1 -1
- package/build/docs/api/functions/AppRoot/index.html +1 -1
- package/build/docs/api/functions/Autocomplete/index.html +1 -1
- package/build/docs/api/functions/CheckBox/index.html +1 -1
- package/build/docs/api/functions/ComboBox/index.html +1 -1
- package/build/docs/api/functions/ComboBoxV3/index.html +1 -1
- package/build/docs/api/functions/ConnectForm/index.html +1 -1
- package/build/docs/api/functions/DateInput/index.html +1 -1
- package/build/docs/api/functions/DatePicker/index.html +1 -1
- package/build/docs/api/functions/DateRangePicker/index.html +1 -1
- package/build/docs/api/functions/DateTimePicker/index.html +1 -1
- package/build/docs/api/functions/Form/index.html +1 -1
- package/build/docs/api/functions/FormItemLayout/index.html +1 -1
- package/build/docs/api/functions/FormLayoutBlockItem/index.html +1 -1
- package/build/docs/api/functions/FormSubmitButton/index.html +1 -1
- package/build/docs/api/functions/InputMask/index.html +1 -1
- package/build/docs/api/functions/InputText/index.html +1 -1
- package/build/docs/api/functions/LargeTextBox/index.html +1 -1
- package/build/docs/api/functions/MaskedInputText/index.html +1 -1
- package/build/docs/api/functions/Page/index.html +1 -1
- package/build/docs/api/functions/Radio/index.html +1 -1
- package/build/docs/api/functions/RadioGroup/index.html +1 -1
- package/build/docs/api/functions/RegisterService/index.html +1 -1
- package/build/docs/api/functions/RenderWithStateAddOns/index.html +1 -1
- package/build/docs/api/functions/RequireAuth/index.html +1 -1
- package/build/docs/api/functions/SessionTimeout/index.html +1 -1
- package/build/docs/api/functions/TextBox/index.html +1 -1
- package/build/docs/api/functions/Toggle/index.html +1 -1
- package/build/docs/api/functions/authSaga/index.html +1 -1
- package/build/docs/api/functions/authorize/index.html +1 -1
- package/build/docs/api/functions/buildModuleParams/index.html +1 -1
- package/build/docs/api/functions/cleanup/index.html +1 -1
- package/build/docs/api/functions/configureStore/index.html +1 -1
- package/build/docs/api/functions/createGuestModule/index.html +1 -1
- package/build/docs/api/functions/createManager/index.html +1 -1
- package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +1 -1
- package/build/docs/api/functions/fetchHostAppData/index.html +1 -1
- package/build/docs/api/functions/fetchUserSettings/index.html +1 -1
- package/build/docs/api/functions/getApiActionCreator/index.html +1 -1
- package/build/docs/api/functions/getAppConfig/index.html +1 -1
- package/build/docs/api/functions/getAppConfigValue/index.html +1 -1
- package/build/docs/api/functions/getAuthHTTPClient/index.html +1 -1
- package/build/docs/api/functions/getAuthorizationHeader/index.html +1 -1
- package/build/docs/api/functions/getHTTPClient/index.html +1 -1
- package/build/docs/api/functions/getHostAppDataByKey/index.html +1 -1
- package/build/docs/api/functions/getLogger/index.html +1 -1
- package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +1 -1
- package/build/docs/api/functions/getNavigationLinks/index.html +1 -1
- package/build/docs/api/functions/getRedirectUrl/index.html +1 -1
- package/build/docs/api/functions/getSelectField/index.html +1 -1
- package/build/docs/api/functions/getStore/index.html +1 -1
- package/build/docs/api/functions/initServiceWorker/index.html +1 -1
- package/build/docs/api/functions/isCIBuild/index.html +1 -1
- package/build/docs/api/functions/isProd/index.html +1 -1
- package/build/docs/api/functions/isUserAuthorized/index.html +1 -1
- package/build/docs/api/functions/listenStorageEvents/index.html +1 -1
- package/build/docs/api/functions/loadAppConfig/index.html +1 -1
- package/build/docs/api/functions/loadable/index.html +1 -1
- package/build/docs/api/functions/login/index.html +1 -1
- package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +1 -1
- package/build/docs/api/functions/onAuthorizationFailure/index.html +1 -1
- package/build/docs/api/functions/onGuestUnloadStart/index.html +1 -1
- package/build/docs/api/functions/redactPii/index.html +1 -1
- package/build/docs/api/functions/removeDoubleSlash/index.html +1 -1
- package/build/docs/api/functions/removeStorageEvents/index.html +1 -1
- package/build/docs/api/functions/render/index.html +1 -1
- package/build/docs/api/functions/renderHook/index.html +1 -1
- package/build/docs/api/functions/renderWithHostData/index.html +1 -1
- package/build/docs/api/functions/renderWithRedux/index.html +1 -1
- package/build/docs/api/functions/renderWithRouter/index.html +1 -1
- package/build/docs/api/functions/renderWithRouterRedux/index.html +1 -1
- package/build/docs/api/functions/sdkBaseQuery/index.html +1 -1
- package/build/docs/api/functions/sendBAEvent/index.html +1 -1
- package/build/docs/api/functions/sendMessageToHost/index.html +1 -1
- package/build/docs/api/functions/setAppConfig/index.html +1 -1
- package/build/docs/api/functions/setAppConfigValue/index.html +1 -1
- package/build/docs/api/functions/setHostAppData/index.html +1 -1
- package/build/docs/api/functions/setLoginParams/index.html +1 -1
- package/build/docs/api/functions/subscribeToResetSession/index.html +1 -1
- package/build/docs/api/functions/subscribeToSessionExpiry/index.html +1 -1
- package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +1 -1
- package/build/docs/api/functions/trackActivity/index.html +1 -1
- package/build/docs/api/functions/useAppDispatch/index.html +1 -1
- package/build/docs/api/functions/useAppMiddleware/index.html +1 -1
- package/build/docs/api/functions/useInjectQuery/index.html +1 -1
- package/build/docs/api/functions/useInjectReducer/index.html +1 -1
- package/build/docs/api/functions/useInjectSaga/index.html +1 -1
- package/build/docs/api/functions/useInjectSideEffect/index.html +1 -1
- package/build/docs/api/functions/useMediaQueryList/index.html +1 -1
- package/build/docs/api/functions/useStateSelector/index.html +1 -1
- package/build/docs/api/functions/useStateSelectorShallow/index.html +1 -1
- package/build/docs/api/functions/waitFor/index.html +1 -1
- package/build/docs/api/functions/waitForElementToBeRemoved/index.html +1 -1
- package/build/docs/api/functions/withAppDecorator/index.html +1 -1
- package/build/docs/api/index.html +1 -1
- package/build/docs/api/interfaces/AppConfig/index.html +1 -1
- package/build/docs/api/interfaces/GuestProps/index.html +1 -1
- package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +1 -1
- package/build/docs/api/type-aliases/AppDispatch/index.html +1 -1
- package/build/docs/api/type-aliases/AppStore/index.html +1 -1
- package/build/docs/api/type-aliases/Await/index.html +1 -1
- package/build/docs/api/type-aliases/EMUI/index.html +1 -1
- package/build/docs/api/type-aliases/HostOptions/index.html +1 -1
- package/build/docs/api/type-aliases/HostProvidedParams/index.html +1 -1
- package/build/docs/api/type-aliases/ModuleOverrides/index.html +1 -1
- package/build/docs/api/type-aliases/OnHostInitCallback/index.html +1 -1
- package/build/docs/api/type-aliases/OnInitCallback/index.html +1 -1
- package/build/docs/api/type-aliases/OnMountCallback/index.html +1 -1
- package/build/docs/api/type-aliases/OnUnMountCallback/index.html +1 -1
- package/build/docs/api/type-aliases/RootState/index.html +1 -1
- package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +1 -1
- package/build/docs/api/variables/ErrorToast/index.html +1 -1
- package/build/docs/api/variables/FormPropsContext/index.html +1 -1
- package/build/docs/api/variables/GuestMicroApp/index.html +1 -1
- package/build/docs/api/variables/MASK_PIPES/index.html +1 -1
- package/build/docs/api/variables/MASK_TYPES/index.html +1 -1
- package/build/docs/api/variables/MicroApp/index.html +1 -1
- package/build/docs/api/variables/MicroIFrameApp/index.html +1 -1
- package/build/docs/api/variables/NavigationPrompt/index.html +1 -1
- package/build/docs/api/variables/NavigationPromptActions/index.html +1 -1
- package/build/docs/api/variables/Themes/index.html +1 -1
- package/build/docs/api/variables/VisuallyHidden/index.html +1 -1
- package/build/docs/api/variables/WaitMessage/index.html +1 -1
- package/build/docs/api/variables/act/index.html +1 -1
- package/build/docs/api/variables/ariaLive/index.html +1 -1
- package/build/docs/api/variables/auth/index.html +1 -1
- package/build/docs/api/variables/authReducer/index.html +1 -1
- package/build/docs/api/variables/clearSideEffects/index.html +1 -1
- package/build/docs/api/variables/createSideEffect/index.html +1 -1
- package/build/docs/api/variables/decorators/index.html +1 -1
- package/build/docs/api/variables/endSession/index.html +1 -1
- package/build/docs/api/variables/error/index.html +1 -1
- package/build/docs/api/variables/errorMiddleware/index.html +1 -1
- package/build/docs/api/variables/fireEvent/index.html +1 -1
- package/build/docs/api/variables/globalConstants/index.html +1 -1
- package/build/docs/api/variables/history/index.html +1 -1
- package/build/docs/api/variables/httpClientProps/index.html +1 -1
- package/build/docs/api/variables/logout/index.html +1 -1
- package/build/docs/api/variables/memoryHistory/index.html +1 -1
- package/build/docs/api/variables/removeSideEffect/index.html +1 -1
- package/build/docs/api/variables/resetUserIdleTime/index.html +1 -1
- package/build/docs/api/variables/screen/index.html +1 -1
- package/build/docs/api/variables/startSideEffect/index.html +1 -1
- package/build/docs/api/variables/updateBAEventParameters/index.html +1 -1
- package/build/docs/api/variables/useAppSelector/index.html +1 -1
- package/build/docs/api/variables/waitMessageAction/index.html +1 -1
- package/build/docs/api/variables/within/index.html +1 -1
- package/build/docs/assets/js/{main.e2c0c98b.js → main.e2e13725.js} +2 -2
- package/build/docs/index.html +1 -1
- package/build/docs/usage-guide/index.html +1 -1
- package/demo/{docs/5685.9dc6ce90.iframe.bundle.js → 5685.7040bb5c.iframe.bundle.js} +1 -1
- package/demo/5685.7040bb5c.iframe.bundle.js.br +0 -0
- package/demo/{docs/5685.9dc6ce90.iframe.bundle.js.gz → 5685.7040bb5c.iframe.bundle.js.gz} +0 -0
- package/demo/{5685.9dc6ce90.iframe.bundle.js → docs/5685.7040bb5c.iframe.bundle.js} +1 -1
- package/demo/docs/5685.7040bb5c.iframe.bundle.js.br +0 -0
- package/demo/{5685.9dc6ce90.iframe.bundle.js.gz → docs/5685.7040bb5c.iframe.bundle.js.gz} +0 -0
- package/demo/docs/iframe.html +1 -1
- package/demo/docs/index.html +1 -1
- package/demo/docs/{main.bab38e3aec58987b3b32.manager.bundle.js → main.7644e4ef6d4f1851046c.manager.bundle.js} +1 -1
- package/demo/docs/{main.bab38e3aec58987b3b32.manager.bundle.js.br → main.7644e4ef6d4f1851046c.manager.bundle.js.br} +0 -0
- package/demo/docs/main.7644e4ef6d4f1851046c.manager.bundle.js.gz +0 -0
- package/demo/docs/{main.84a32532.iframe.bundle.js → main.8b6c74fc.iframe.bundle.js} +1 -1
- package/demo/docs/main.8b6c74fc.iframe.bundle.js.br +0 -0
- package/demo/docs/{main.84a32532.iframe.bundle.js.gz → main.8b6c74fc.iframe.bundle.js.gz} +0 -0
- package/demo/docs/project.json +1 -1
- package/demo/iframe.html +1 -1
- package/demo/index.html +1 -1
- package/demo/{main.bab38e3aec58987b3b32.manager.bundle.js → main.7644e4ef6d4f1851046c.manager.bundle.js} +1 -1
- package/demo/{main.bab38e3aec58987b3b32.manager.bundle.js.br → main.7644e4ef6d4f1851046c.manager.bundle.js.br} +0 -0
- package/demo/main.7644e4ef6d4f1851046c.manager.bundle.js.gz +0 -0
- package/demo/{main.84a32532.iframe.bundle.js → main.8b6c74fc.iframe.bundle.js} +1 -1
- package/demo/main.8b6c74fc.iframe.bundle.js.br +0 -0
- package/demo/{main.84a32532.iframe.bundle.js.gz → main.8b6c74fc.iframe.bundle.js.gz} +0 -0
- package/demo/project.json +1 -1
- package/package.json +1 -1
- package/demo/5685.9dc6ce90.iframe.bundle.js.br +0 -0
- package/demo/docs/5685.9dc6ce90.iframe.bundle.js.br +0 -0
- package/demo/docs/main.84a32532.iframe.bundle.js.br +0 -0
- package/demo/docs/main.bab38e3aec58987b3b32.manager.bundle.js.gz +0 -0
- package/demo/main.84a32532.iframe.bundle.js.br +0 -0
- package/demo/main.bab38e3aec58987b3b32.manager.bundle.js.gz +0 -0
- /package/build/docs/assets/js/{main.e2c0c98b.js.LICENSE.txt → main.e2e13725.js.LICENSE.txt} +0 -0
|
@@ -18397,7 +18397,7 @@ ${V}`;console.warn(N),I.warned=!0}return T(z,k,F,...L)};return Object.defineProp
|
|
|
18397
18397
|
}
|
|
18398
18398
|
}
|
|
18399
18399
|
${d.L1}
|
|
18400
|
-
`},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"(u,o,e){"use strict";e.d(o,{AS:()=>g,Gs:()=>d,x7:()=>c});var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),r=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),s=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const d={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},a=null,c={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(s.Jl).description("Position on the screen to show the toast").defaultValue("bottom-left"),autoClose:n.A.oneOfType([n.A.number,n.A.oneOf([!1])]).description("ms to autoclose the toast, false if you don't want to automatically close").defaultValue(5e3),showProgressBar:n.A.bool.description("Whether to show a progress bar indicating when the toast is going to be closed").defaultValue(!1),closeOnClick:n.A.bool.description("Close toast handler").defaultValue(!1),enableMultiContainer:n.A.bool.description("Allows instantiating multiple Toast containers").defaultValue(!1),containerId:n.A.oneOfType([n.A.string,n.A.number]).description("unique id for multi container"),...(0,r.Y)(i.GM,i.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},m={children:n.A.node.isRequired.description("link text")},p={children:n.A.node.description("DSToastActionLink component or text string"),onClick:n.A.func.description("click handler"),onKeyDown:n.A.func.description("key down handler")},g={type:n.A.oneOf(s.Rm).description("Type of toast").defaultValue("default"),messageTitle:n.A.string.description("Toast message title").defaultValue(""),messageText:n.A.string.description("Toast message text").defaultValue(""),messageComponent:n.A.node.description("Toast message component")}},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/toast.js"(u,o,e){"use strict";e.d(o,{o:()=>v});var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),r=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.cjs.production.min.js"),s=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),d=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const m=h=>a.lA[h],p=h=>a.JC[h],g=({type:h=a.Ck.DEFAULT,messageTitle:x="",messageText:j="",messageComponent:E})=>{const P=m(h),w=p(h);return(0,n.jsxs)(d.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(d.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(P,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(d.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(d.Az,{className:"em-ds-toast-content__message-header",children:x}),(0,n.jsx)(d.uP,{className:"em-ds-toast-content__message-text",children:E||j})]})]})};g.displayName=c.VR;const b=(0,s.A)(g);b.propTypes=i.AS;const v=Object.assign(({type:h,messageTitle:x,messageText:j,messageComponent:E,...P},w)=>(0,r.oR)((0,n.jsx)(g,{messageText:j,messageComponent:E,messageTitle:x,type:h}),{...P,...w,type:h}),{...r.oR,isActive:h=>r.oR.isActive(h)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,_s:()=>s,b3:()=>n,xH:()=>r});class t{name;objectId;id;constructor(d){const{name:a,objectId:c}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");this.objectId=c,this.name=a,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](d){return typeof d=="object"&&d!==null&&"getType"in d&&typeof d.getType=="function"&&d.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(d){const{name:a,objectId:c,eventSrc:m}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");if(!m)throw new Error("Event source is required");this.objectId=c,this.name=a,this.#e=m,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=d=>this.#e.subscribe({eventId:this.id,callback:d});unsubscribe=d=>{this.#e.unsubscribe({eventId:this.id,token:d})}}const r=i=>i instanceof t,s=(i,d)=>`${i.toLowerCase()}.${d.toLowerCase()}`},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"(u,o,e){"use strict";e.d(o,{of:()=>s,ts:()=>i});const t=new Map;function n(d){return typeof d=="object"&&d!==null&&("eq"in d||"in"in d||"includes"in d||"gt"in d||"lt"in d||"regex"in d)}function r(d,a,c){if("eq"in a)return d===a.eq;if("in"in a)return Array.isArray(a.in)&&a.in.includes(d);if("includes"in a)return Array.isArray(d)&&d.includes(a.includes);if("gt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m>a.gt}if("lt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m<a.lt}if("regex"in a){const m=c??t;let p=m.get(a.regex);if(p===void 0){try{p=new RegExp(a.regex)}catch{p=null}m.set(a.regex,p)}return p!==null&&typeof d=="string"&&p.test(d)}return!1}function s(d){return d!=null&&Object.keys(d).length>0}function i(d,a,c){return Object.entries(a).every(([m,p])=>r(d[m],p,c?.regexCache))}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"(u,o,e){"use strict";e.d(o,{G:()=>t});var t=(n=>(n.GuestClose="guest:close",n.GuestEventSubscribe="guest:eventSubscribe",n.GuestEventUnsubscribe="guest:eventUnsubscribe",n.GuestFocus="guest:focus",n.GuestReady="guest:ready",n.GuestReadyComplete="guest:readyComplete",n.GuestResize="guest:resize",n.HandShake="handshake",n.HandShakeAck="handshake:ack",n.HostClose="host:close",n.HostConfig="host:config",n.ListObjects="list:objects",n.ObjectEvent="object:event",n.ObjectGet="object:get",n.ObjectInvoke="object:invoke",n))(t||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t,h:()=>n});class t{__TYPE__="Proxy";id;objectType;constructor(s,i){this.id=s,this.objectType=i}}const n=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy"},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>a,_:()=>d});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",r="elli:remoting:response",s="elli:remoting:exception",i=({messageType:c,messageBody:m,requestId:p,onewayMsg:g=!1})=>({requestId:p??(g?null:(0,t.A)()),source:n,type:c,body:m}),d=c=>{const{targetWin:m,targetOrigin:p,messageType:g,messageBody:b}=c,v=i({messageType:g,messageBody:b});m.postMessage(v,p)};class a{#e;#t;#n=new Map;#o=new Map;#r=null;#i=null;#s=new Map;constructor(m,p){if(!m)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#e=p,this.#t=m}#c=()=>{this.#r=null;const m=Date.now(),p=[];let g=null;if(this.#o.forEach((b,v)=>{const{requestId:h,cancelTime:x}=b;x&&x<=m?(this.#t.debug(`Detected response timeout for requestId: ${h}...`),p.push(v),b.resolve(void 0)):x&&(g=g===null?x:Math.min(g,x))}),p.forEach(b=>{this.#o.delete(b)}),g!==null){const b=Math.max(g-Date.now(),0);this.#a(b)}};#a=m=>{this.#r===null&&(this.#r=window.setTimeout(this.#c,m))};#p=()=>{this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)};#l=m=>{const p=this.#o.get(m);return this.#t.debug(`serving requestId: ${m}`),this.#o.delete(m),p};#u=m=>{const{requestId:p}=m;this.#t.debug(`Response received for invocation requestId: ${p}`);const g=this.#l(p);return g?(g.resolve(m.body),!0):(this.#t.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#h=m=>{this.#t.debug(`Exception received for invocation (requestId = ${m.requestId})`);const p=this.#l(m.requestId);return p?(p.reject(new Error(m.body)),!0):(this.#t.warn(`Received exception for stale/invalid request (requestId = ${m.requestId})`),!1)};#b=({sourceWin:m,sourceOrigin:p,message:g})=>{this.#t.debug(`Received message of type "${g.type}"`);const b=this.#n.get(g.type);return b?(b.forEach(v=>{this.#t.debug(`Invoking message handler ${v.name}`),v({sourceWin:m,sourceOrigin:p,requestId:g.requestId,type:g.type,body:g.body})}),!0):!1};#d=m=>{if(this.#s.size===0||!m.source)return!1;const p=this.#s.get(m.source);return!p||m?.data?.source!==n?!1:(this.#t.debug(`Remoting: Received message of type "${m.data.type}"`),m.data.type===r?this.#u(m.data):m.data.type===s?this.#h(m.data):this.#b({sourceWin:m.source,sourceOrigin:p,message:m.data}),!0)};addSender=m=>{const{origin:p,window:g}=m;if(!p)throw new Error("origin is required");if(!g)throw new Error("window is required");this.#s.set(g,p)};initialize=m=>{this.#i&&this.#i.removeEventListener("message",this.#d),m.addEventListener("message",this.#d),this.#i=m,this.#t.debug(`initialized remoting id: ${this.#e}`)};close=()=>{this.#i&&(this.#i.removeEventListener("message",this.#d),this.#i=null),this.#p(),this.#t.debug(`closed remoting id: ${this.#e}`)};invoke=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v,responseTimeoutMs:h}=m;return new Promise((x,j)=>{const E=i({messageType:b,messageBody:v});this.#o.set(E.requestId,{requestId:E.requestId,resolve:x,reject:j,cancelTime:h?Date.now()+h:null}),p.postMessage(E,g);const{requestId:P}=E;this.#t.debug(`Posted invocation message of type ${b} requestId: ${P||""}`),h&&(this.#t.debug(`scheduling timeout check for requestId: ${P||""} in ${h} ms`),this.#a(h))})};listen=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p)||[];b.push(g),this.#n.set(p,b)};unlisten=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p);if(!b)return;const v=b.indexOf(g);v!==-1&&b.splice(v,1)};send=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v}=m,h=i({messageType:b,messageBody:v,onewayMsg:!0});p.postMessage(h,g),this.#t.debug(`Posted one-way message of type "${b}"`)};removeSender=m=>{const{window:p}=m;p&&this.#s.delete(p)};respond=m=>{const{targetWin:p,targetOrigin:g,requestId:b,response:v}=m,h=i({messageType:r,messageBody:v,requestId:b});p.postMessage(h,g),this.#t.debug(`Response sent to caller for invocation requestId: ${b}`)};raiseException=m=>{const{targetWin:p,targetOrigin:g,requestId:b,ex:v}=m,h=v instanceof Error?v.message:v,x=i({messageType:s,messageBody:h,requestId:b});p.postMessage(x,g),this.#t.debug(`Exception sent to caller for invocation. requestId: ${b}`)}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s,Q:()=>r});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",r=(i,d)=>typeof i===n&&!!d&&!d.startsWith("_");class s{#e;#t="Object";constructor(d,a){this.#e=d,this.#t=a||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const d=[],a=[];return Object.keys(this).forEach(c=>{const m=this[c];(0,t.xH)(m)?a.push(c):r(m,c)&&d.push(c)}),{objectId:this.#e,objectType:this.#t,functions:d,events:a}};_dispose=()=>{};dispose=()=>{}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"(u,o,e){"use strict";e.d(o,{qE:()=>s});const t="module";var n=null,r=null;class s{#e=d=>d.trim().toLowerCase();#t=new Map;#n=new Map;#o=d=>{const{so:a,guestId:c,onDuplicate:m="throw",securityContext:p}=d,g=this.#e(a.id),b={so:a,guestId:c,securityContext:p},v=this.#n.get(c);if(!v){this.#n.set(c,new Map([[g,b]]));return}if(v.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${a.id} already exists for guest ${c}`)}v.set(g,b)};#r=({so:d})=>{if(d._dispose&&typeof d._dispose=="function")try{d._dispose()}catch{}};#i=({objectId:d,guestId:a})=>{if(d===t&&!a)for(const[,m]of this.#n){const p=m.get(d);if(p)return p}const c=a?this.#n.get(a):null;return c?c.get(d)??null:null};#s=({objectId:d,guestId:a}={})=>{if(a){if(!d){const m=this.#n.get(a);m&&m.forEach(this.#r),this.#n.delete(a);return}const c=this.#n.get(a);if(c){const m=c.get(d);m&&this.#r(m),c.delete(d)}}else d&&this.#n.forEach(c=>{const m=c.get(d);m&&this.#r(m),c.delete(d)})};addScriptingObject=(d,a)=>{const{guestId:c,onDuplicate:m="throw",securityContext:p}=a||{};if(!d?.id||!d?._toJSON)throw new Error("Object is not derived from ScriptingObject");const g=this.#e(d.id);if(g===t&&!c)throw new Error("Guest id is required to add Module scripting object");if(c){this.#o({so:d,...a,guestId:c,onDuplicate:m});return}if(this.#t.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${d.id} already exists`)}this.#t.set(g,{so:d,guestId:c,securityContext:p})};getObject=(d,a)=>{const c=this.#e(d);let m=this.#i({objectId:c,guestId:a?.id});m=m??this.#t.get(c)??null;const{so:p}=m||{};return p||null};has=(d,a)=>this.getObject(d,a)!==null;listScriptingObjects=d=>{const a=new Set(this.#t.keys()),c=this.#n.get(d);if(c)for(const m of c.keys())a.add(m);return Array.from(a)};removeScriptingObject=(d,a)=>{const c=this.#e(d);if(a)this.#s({objectId:c,guestId:a});else{this.#s({objectId:c});const m=this.#t.get(c);m&&this.#r(m),this.#t.delete(c)}};removeAllScriptingObjects=d=>{d?this.#s({guestId:d}):(this.#t.forEach(this.#r),this.#t.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"(u,o,e){"use strict";e.d(o,{j:()=>g});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=b=>typeof b!="number"||Number.isNaN(b)?0:b>=1?1:b<=0?0:b,r=b=>Math.round(n(b)*100/5)*5,s=b=>{const h=r(b),x=100,j=(P,w)=>w===0?P:j(w,P%w),E=j(h,x);return{numerator:h/E,denominator:x/E}};class i{#e=0;#t=0;#n=0;constructor(v){const h=s(v);this.#e=h.numerator,this.#t=h.denominator}shouldSample=()=>(this.#n+=1,this.#n<=this.#e?!0:(this.#n===this.#t&&(this.#n=0),!1))}class d{#e={};#t={};#n=new i(.25);constructor(v={}){Object.keys(v).forEach(h=>{this.#e[h]=new i(v[h]),this.#t[h]=v[h]})}shouldSample(v){return this.#e[v]?this.#e[v].shouldSample():this.#n.shouldSample()}setRatio(v,h){this.#e[v]=new i(h),this.#t[v]=h}deleteRatio(v){delete this.#e[v],delete this.#t[v]}getRatio(v){return this.#t[v]}getAllRatios(){return{...this.#t}}}var a=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js");const m=Promise.resolve(),p=/^(?:GTM-|G-)[A-Z0-9-]+(?::\S*)?$/;class g extends t.P{#e;#t;constructor(v){super("analytics"),this.#e=v.logger,this.#t=new d(v.timingEventSamplingRatios??v.samplingRatios),this.#n()}#n=()=>{try{new PerformanceObserver(h=>{const x=h.getEntries();queueMicrotask(()=>{this.#o(x)})}).observe({type:"measure",buffered:!0})}catch(v){this.#e.error({message:"Error while recording performance",exception:v})}};#o=v=>{for(const h of v)if(h.entryType==="measure"&&!p.test(h.name)&&this.#t.shouldSample(h.name)){const x=h.detail??{},j=h.duration.toString(),E=new Date(performance.timeOrigin+h.startTime).toISOString();this.#e.info({message:"timing",event:h.name,duration:j,startTime:E,detail:x}),this.#r(h.name,{...x,duration:j,startTime:E})}};#r=(v,h)=>{const x=`timing:${v}`;window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...h,event:x})};setTimingEventSamplingRatio=v=>{Object.entries(v).forEach(([h,x])=>{this.#t.setRatio(h,x)})};getTimingEventSamplingRatio=v=>{const h={};return v.forEach(x=>{h[x]=this.#t.getRatio(x)}),h};deleteTimingEventSamplingRatio=v=>{v.forEach(h=>{this.#t.deleteRatio(h)})};getAllTimingEventSamplingRatios=()=>this.#t.getAllRatios();sendBAEvent=v=>{const{event:h,...x}=v??{};return h&&(window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...x,event:h}),(0,a.As)(h,x)),m};startTiming=(v,h)=>{if(!v)throw new Error("parameter mark is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=performance.mark(v,{detail:h});return m.then(()=>({name:x?.name,startTime:x?.startTime}))};endTiming=(v,h)=>{if(!v)throw new Error("parameter start is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=v?.name??v,j=performance.getEntriesByName(x,"mark")?.[0],E={startAppId:j?.detail?.appId??h.appId,startAppUrl:j?.detail?.appUrl??h.appUrl,endAppId:h.appId,endAppUrl:h.appUrl};return j?(typeof v=="string"?performance.measure(x,{detail:E,start:x}):performance.measure(x,{detail:E,start:v.startTime}),performance.clearMarks(x)):performance.measure(x,{detail:E,end:performance.now()}),m}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";e.d(o,{QS:()=>d,nE:()=>a,np:()=>s});const t=(()=>{try{return window.parent.document,window.parent}catch{return window}})(),n=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),r=()=>{},s=()=>({productId:t?.emui?.appId??"",productPath:t.location.pathname,productUrl:t.location.href,productPageTitle:t.document.title,version:t?.emui?.version??"",appId:window?.emui?.appId??"",appPath:window.location.pathname,appUrl:window.location.href,appPageTitle:document.title});let i={};const d=()=>({...n(),...i}),a=c=>{i={...i,...c}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";e.d(o,{As:()=>E,E3:()=>h});const t=()=>window.emui?.logRocket,n=1e3,r=3,s=50,i=new Map,d=P=>{i.size<s||i.forEach((w,S)=>{P-w.windowStart>=n&&i.delete(S)})},a=2,c=(P,w)=>{let S=P;for(const A of Object.keys(w))S+=`|${A}:${String(w[A])}`;return S},m=20,p=[];let g="";const b=()=>{const P=t();if(!P)return;const w=sessionStorage.getItem("user");if(w)try{const S=JSON.parse(w),A=S.user_key;if(!A||A===g)return;const D=S.user_name||sessionStorage.getItem("userId")||"",T=S.encompass_instance_id||sessionStorage.getItem("instanceId")||"";P.identify(A,{name:D,instanceId:T}),g=A}catch{}},v=P=>{g=P},h=()=>{g="",p.length=0},x=(P,w,S)=>{const A=c(w,S),D=Date.now(),T=i.get(A);if(T&&D-T.windowStart<n){if(T.count>=r)return;T.count+=1}else d(D),i.set(A,{windowStart:D,count:1});const I=Object.keys(S).length;I>a&&console.warn(`[analytics] lrTrack "${w}" has ${I} properties. Keep it to ${a} or fewer to stay within LogRocket's 2,000 total-property session budget.`,S),P.track(w,S)},j=P=>{for(;p.length>0;){const w=p.shift();w&&x(P,w.event,w.eventEx)}},E=(P,w)=>{const S=t();if(!S){p.length<m&&p.push({event:P,eventEx:w});return}b(),j(S),x(S,P,w)}},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.28.6_@elliemae+pui-diagnostics@3.12.5_@elliemae+pui-logrocket@1.3._cu7aeoxsbpbexfro2txwzofllm/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>Qe});var t=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),r=(Me=>(Me.Analytics="analytics",Me.Application="application",Me.Auth="auth",Me.Form="form",Me.Global="global",Me.Http="http",Me.Loan="loan",Me.LoanV2="loanV2",Me.MemStorage="memstorage",Me.Module="module",Me.Service="service",Me.Session="session",Me.Styling="styling",Me.Transaction="transaction",Me.TransactionTemplate="transactiontemplate",Me.WebSocket="websocket",Me))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(me){this.#n=me}#o=(me,Ue)=>{const cn=new Promise(G=>{setTimeout(()=>{G()},Ue)});return Promise.race([me,cn])};#r=me=>{const{eventName:Ue,scriptingObject:cn,eventParams:G,listeners:ie}=me;ie.forEach(ae=>{ae.criteria&&!(G&&this.#s(G,ae.criteria))||Promise.resolve(ae.callback({obj:cn,eventName:Ue,eventParams:G})).catch(xe=>{this.#n?.warn(`Error in event listener for "${Ue}": ${xe.message}`)})})};#i=async({eventId:me,eventName:Ue,scriptingObject:cn,eventParams:G,feedbackWaitTime:ie})=>{const xe=(this.#e.get(me)||[]).map(Ln=>Ln.criteria&&!(G?this.#s(G,Ln.criteria):!1)?Promise.resolve():this.#o(Ln.callback({obj:cn,eventName:Ue,eventParams:G}),ie));return(await Promise.all(xe)).flat(1/0).filter(Ln=>Ln!==void 0)};#s(me,Ue){return Object.entries(Ue).every(([cn,G])=>{const ie=me[cn];if("eq"in G)return ie===G.eq;if("in"in G)return Array.isArray(G.in)&&G.in.includes(ie);if("includes"in G)return Array.isArray(ie)&&ie.includes(G.includes);if("gt"in G){const ae=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(ae)&&ae>G.gt}if("lt"in G){const ae=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(ae)&&ae<G.lt}if("regex"in G){let ae=this.#t.get(G);if(ae===void 0){try{ae=new RegExp(G.regex)}catch{ae=null}this.#t.set(G,ae)}return ae!==null&&typeof ie=="string"&&ae.test(ie)}return!1})}dispatchEvent=async(me,Ue)=>{const{event:{id:cn,name:G},eventParams:ie,eventOptions:ae}=Ue,{timeout:xe}=ae??{};if(!cn)throw new Error("Event Id is required");const Xe=this.#e.get(cn)||[];return!xe||xe<=0?(this.#r({eventName:G,scriptingObject:me,eventParams:ie,listeners:Xe}),Promise.resolve()):this.#i({eventId:cn,eventName:G,scriptingObject:me,eventParams:ie,feedbackWaitTime:xe})};subscribe=me=>{const{eventId:Ue,callback:cn,criteria:G}=me;if(!Ue)throw new Error("eventId is required");if(!cn)throw new Error("Callback is required");const ie=this.#e.get(Ue)||[],ae=(0,n.A)();return ie.push({token:ae,criteria:G,callback:cn}),this.#e.set(Ue,ie),ae};unsubscribe=me=>{const{eventId:Ue,token:cn}=me;if(!Ue)throw new Error("eventId id is required");if(cn){const G=this.#e.get(Ue)||[],ie=G.findIndex(ae=>ae.token===cn);ie>-1&&(G.splice(ie,1),this.#e.set(Ue,G))}else this.#e.delete(Ue)};unsubscribeAll=()=>{this.#e.clear()}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=Me=>Me.replace(/([^:]\/)\/+/g,"$1"),g=Me=>{const me=document.createElement("a");return me.href=Me,me.href},b=Me=>Me?.replace?.(/\/?$/,"/"),v=(Me,me)=>`${Me.replace(/\/+$/,"")}/${me.replace(/^\/+/,"")}`,h=Me=>/^(\/|https?:\/\/)/.test(Me),x=(Me,me)=>{const Ue=b(me);if(h(Ue)){const{origin:cn}=new URL(Me,window.location.href);return p(new URL(Ue,cn).href)}return p(new URL(Ue,b(Me)).href)},j=(Me,me)=>p(new URL("manifest.json",x(Me,me)).href),E=()=>window.navigator.userAgent.includes("jsdom"),P=Me=>Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=Me=>{try{if(new URL(Me,window.location.href).origin===window.location.origin)return Me;const Ue=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${Ue}/frame.html`}catch{return Me}},S="pui-app-container-",A=Me=>{const me=Me.src??m.default??m,Ue=w(me);if(!Me.queryParams)return Ue;const cn=Me.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${Ue}${Ue.includes("?")?"&":"?"}${cn}`},D=({documentEle:Me,hostUrl:me,manifestPath:Ue,guestId:cn})=>{const G=Me.getElementById(S);G&&(G.id=`${G.id}${cn}`);const ie=x(me,Ue);let ae=Me.getElementsByTagName("base")?.[0];if(ae){ae.href=ie;return}ae=Me.createElement("base"),ae.href=ie,Me.getElementsByTagName("head")[0].appendChild(ae)},T=({id:Me,instanceId:me,manifestPath:Ue,hostUrl:cn,options:G})=>new Promise((ie,ae)=>{const{signal:xe}=G;if(xe?.aborted){ae(new DOMException("iframe creation aborted","AbortError"));return}const Xe=document.createElement("div");Xe.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const Ln=document.createElement("iframe");Ln.setAttribute("id",me),Ln.setAttribute("data-testid",Me),Ln.setAttribute("title",G.title),Ln.setAttribute("allowfullscreen","true"),Ln.setAttribute("allowtransparency","true"),G.permissionPolicy&&Ln.setAttribute("allow",G.permissionPolicy),G.sandbox&&Ln.setAttribute("sandbox",G.sandbox),Ln.setAttribute("style",G.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),Ln.setAttribute("src",A(G));const lt=1e4;let Vn=!1,Vt,nr;const cr=()=>{clearTimeout(Vt),xe?.removeEventListener("abort",nr)},Ar=()=>xe?.aborted?(Vn||(Vn=!0,cr(),Xe.remove(),ae(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(nr=()=>{Ar()},Ar())return;xe?.addEventListener("abort",nr),Vt=setTimeout(()=>{Vn||(Vn=!0,cr(),Xe.remove(),ae(new Error(`iframe for ${Me} failed to load within ${lt}ms`)))},lt),Ln.addEventListener("error",()=>{Vn||(Vn=!0,cr(),Xe.remove(),ae(new Error(`iframe for ${Me} failed to load`)))}),Ln.addEventListener("load",()=>{Vn||Ar()||Ln.contentDocument&&(Vn=!0,cr(),D({documentEle:Ln.contentDocument,hostUrl:cn,manifestPath:Ue,guestId:Me}),ie(Ln))}),Xe.appendChild(Ln);const{containerId:dt}=G;(document.getElementById(dt??"")??document.body).appendChild(Xe)}),I=Me=>document.getElementById(Me),z={create:T,remove:Me=>{const me=I(Me);me&&me.parentElement?.remove()},get:I};var k=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const F=()=>{try{return window.parent.document,window.parent}catch{return window}},L=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),W=Me=>Number(Me.replace("px","")),V=()=>{const{width:Me}=L(),{breakpoints:me}=(0,k.getDefaultTheme)();return Me<=W(me.small)?"small":Me<=W(me.medium)?"medium":"large"};var N=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/cloneDeep.js"),M=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),B=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),$=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),X=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const H=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"}}}}'),Z="latest";var K=(Me=>(Me.DEVELOPMENT="development",Me.PRODUCTION="production",Me))(K||{}),q=(Me=>(Me.SSF="ssf",Me.APPSDK="appsdk",Me))(q||{});class te{#e=H;#t;#n;constructor(me){this.#t=me?.version||Z,this.#n=b(me?.baseUrl||"")}#o=me=>{const{activeEnv:Ue,env:cn,...G}=me,ie=cn[Ue]||{};this.#e=X({},G,ie)};get=(me="",Ue=null)=>N(M(this.#e,me,Ue));set=(me,Ue)=>{B(this.#e,me,Ue)};has=(me="")=>$(this.#e,me);setPreloadedConfig=me=>{this.#e=me};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const Ue=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${Ue?.[0]||Z}`)}return this.#n};load=async me=>{const Ue=me??`${this.#r()}app.config.json`;let cn;try{cn=await fetch(Ue)}catch(G){if(!me&&this.#t!==Z){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:G})}if(cn.ok)try{const G=await cn.json();this.#o(G)}catch(G){if(!me&&this.#t!==Z)await this.load(`${this.#n}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:G})}else{if(!me&&this.#t!==Z){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var ye=(Me=>(Me.USER="USER",Me.PARTNER="PARTNER",Me))(ye||{}),re=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const fe="microFrontendApps",ne=()=>re.env.CI==="true",oe=Me=>ne()?!0:String(Me).toLowerCase()===K.PRODUCTION.toLowerCase(),he=Me=>Me?new URL(Me).pathname:"",ee=Me=>{const me=document.createElement("a");return me.href=Me,me.href},be=(Me,me)=>{const Ue=me.match(/^(?:\d+\.\d+)*/g);return Me.replace(/{SYSTEM_VERSION}/,Ue&&Ue[0]||Z)},We=Me=>!Me||!Me.length?!1:Me.every(me=>typeof me=="string"),Ze=(Me,me)=>{const{mode:Ue=K.PRODUCTION}=me;if(String(Ue).toLowerCase()!==K.PRODUCTION.toLowerCase()&&String(Ue).toLowerCase()!==K.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(Ue)}' for ${Me}`);const{production:cn,development:G,microappManager:ie=q.APPSDK}=me;if(String(ie).toLowerCase()===q.APPSDK.toLowerCase()){if(String(Ue).toLowerCase()===K.PRODUCTION.toLowerCase()){if(!cn)throw new Error(`microFrontendApps.${Me} is missing production section in app.config.json`);if(!We(cn.files))throw new Error("invalid value for production.files")}if(String(Ue).toLowerCase()===K.DEVELOPMENT.toLowerCase()){if(!G)throw new Error(`microFrontendApps.${Me} is missing development section in app.config.json`);if(!We(G.files))throw new Error("invalid value for development.files")}}},nn=({id:Me,config:me,version:Ue="latest"})=>{const{mode:cn=K.PRODUCTION,production:G,development:ie,...ae}=me,xe=oe(cn)?G:ie,Xe=X({id:Me},{name:Me,mode:K.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:ye.USER,isJsModule:!0},ae,{mode:cn},xe);return Xe.hostUrl=b(ee(Xe.hostUrl||"")),Xe.homeRoute=b(Xe.homeRoute)||he(Xe.hostUrl),Xe.manifestPath=b(be(Xe.manifestPath,Ue)),Xe};class ve{#e=[];init=({version:me,appConfig:Ue})=>{const cn=Ue.get(fe);cn&&(this.#e=Object.keys(cn).map(G=>(Ze(G,cn[G]),nn({id:G,config:cn[G],version:me}))))};getConfigById=me=>this.#e.find(Ue=>Ue.id===me)}const ce=/^https?:\/\//i,Te=(Me,me)=>{if(!ce.test(Me))return!1;try{return!Me.startsWith(new URL(me).href)}catch{return!0}},Be=(Me,me)=>{const Ue=[],cn=[];return Me.forEach(G=>{Te(G.href,me)?Ue.push(G):cn.push(G)}),{external:Ue,local:cn}},Pe=Me=>{if(!Me)return;const me=Me,Ue=me.emui?._ASSET_PATH;Ue&&(me.__webpack_public_path__=new URL("../",Ue).href)},Ye=(Me,me)=>{if(!(!Me||!me))try{const Ue=Me;Ue.__webpack_public_path__=new URL("./",me).href}catch{}},Ge=(Me,me)=>{if(!Me)return;if(Me.emui?._ASSET_PATH){Pe(Me);return}Ye(Me,me)},on="ice-script-";class en{#e;constructor(me){this.#e=me}#t=({href:me,isESMModule:Ue=!0,documentEle:cn})=>{const G=cn.createElement("link");G.rel=Ue?"modulepreload":"preload",G.href=me,G.crossOrigin="anonymous",Ue||(G.as="script"),cn.head.appendChild(G)};#n=({id:me,href:Ue,documentEle:cn,isESMModule:G=!0})=>new Promise((ie,ae)=>{const xe=cn.createElement("script");xe.id=me,xe.src=p(Ue),xe.crossOrigin="anonymous",xe.nonce="__CSP_NONCE__",!E()&&G?xe.type="module":xe.async=!1,xe.onload=ie.bind(null,xe.id),xe.onerror=Xe=>{this.#e.error({message:`Error loading script ${xe.src}`,exception:new Error(Xe)}),ae(new Error(`Unable to load script ${xe.src}`,{cause:new Error(Xe)}))},cn.head.appendChild(xe)});#o=async(me,Ue,cn)=>{if(me.length===0)return;const G=me.map(({id:ie,href:ae})=>this.#n({id:ie,href:ae,documentEle:Ue,isESMModule:cn}));await Promise.all(G)};#r=async({scripts:me,documentEle:Ue,isESMModule:cn,hostUrl:G})=>{if(me.length===0)return;if(!G){await this.#o(me,Ue,cn);return}const{external:ie,local:ae}=Be(me,G);await this.#o(ie,Ue,cn),Ge(Ue.defaultView,G),await this.#o(ae,Ue,cn)};load=async(me,Ue)=>{const{documentEle:cn,isESMModule:G}=Ue,ie=/^https?:\/\//i,ae=me.map((xe,Xe)=>{const Ln=`${on}${Ue.name.toLowerCase()}-${Xe}`,lt=ie.test(xe)?xe:new URL(xe,Ue.hostUrl).href;return this.#t({href:lt,documentEle:cn,isESMModule:G}),{id:Ln,href:lt}});return await this.#r({scripts:ae,documentEle:cn,isESMModule:G,hostUrl:Ue.hostUrl}),Ge(cn.defaultView,Ue.hostUrl),ae.map(xe=>xe.id)};remove=(me="",Ue=document)=>new Promise(cn=>{const G=Ue.getElementById(me);if(!G){this.#e.warn(`script with id ${me} not found`),cn();return}G.remove(),cn()});removeDynamicImportedScripts=(me,Ue)=>{const cn=new RegExp(P(me),"i"),G=Ue.getElementsByTagName("script");for(let ie=G.length-1;ie>=0;ie-=1){const ae=G[ie],{src:xe}=ae;cn.test(xe)&&ae.remove()}};removePrefetchLinks=(me,Ue)=>{const cn=new RegExp(P(me),"i"),G=Ue.querySelectorAll('[rel="prefetch"]');for(let ie=G.length-1;ie>=0;ie-=1){const ae=G[ie],{href:xe}=ae;cn.test(xe)&&ae.remove()}}}const hn="ice-style-";class Fe{#e;constructor(me){this.#e=me}#t=({id:me,href:Ue,documentEle:cn})=>new Promise((G,ie)=>{const ae=cn.createElement("link");ae.id=me,ae.nonce="__CSP_NONCE__",ae.rel="stylesheet",ae.href=p(Ue),ae.onload=G.bind(null,ae.id),ae.onerror=xe=>{this.#e.error({message:`Error loading stylesheet ${ae.href}`,exception:new Error(xe)}),ie(new Error(`Unable to load stylesheet ${ae.href}`,{cause:new Error(xe)}))},cn.head.appendChild(ae)});load=async(me,Ue)=>{const cn=[],G=me.map((ie,ae)=>{const xe=new URL(ie,Ue.hostUrl),Xe=`${hn}${Ue.name.toLowerCase()}-${ae}`;return cn.push(Xe),this.#t({id:Xe,href:xe.href,documentEle:Ue.documentEle})});return await Promise.all(G),cn};remove=(me="",Ue=document)=>new Promise(cn=>{const G=Ue.getElementById(me);if(!G){this.#e.warn(`style with id ${me} not found`),cn();return}G.remove(),cn()});removeDynamicImportedStyles=(me,Ue)=>{const cn=new RegExp(P(me),"i"),G=Ue.querySelectorAll('[rel="stylesheet"]');for(let ie=G.length-1;ie>=0;ie-=1){const ae=G[ie],{href:xe}=ae;cn.test(xe)&&ae.remove()}}}const ue=Me=>Me.replace(/\/\d+\.\d+/,"/latest"),Se=Me=>{let me;try{me=new URL(Me)}catch{return!1}return me.protocol==="http:"||me.protocol==="https:"},He=new Map,ze={get:async({hostUrl:Me,manifestPath:me})=>{const Ue=j(Me,me),cn=He.get(Ue);if(cn)return cn;const G=async ie=>{const ae=await fetch(ie);if(!ae.ok)throw new Error(`unable to get manifest ${ie}`);if(!(ae.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${ie} is not a valid json`);const Xe=await ae.json();return He.set(ie,Xe),Xe};try{return await G(Ue)}catch(ie){const ae=ue(me);if(me!==ae){const xe=j(Me,ae);return await G(xe)}throw ie}},getFullFileNameofAssets:(Me,me=[])=>me.reduce((Ue,cn)=>{const G=Me[cn];if(G)Ue.push(G);else if(Se(cn))Ue.push(cn);else throw new Error(`unable to locate ${cn} in manifest`);return Ue},[]),clearCache:()=>He.clear()};class qe{#e;#t;#n;#o;#r;constructor(me){this.#t=me.guest,this.#e=me.containerId,this.#n=me?.version||Z,this.#o=me.soManager,this.#r=me.eventManager}get version(){return this.#n}getObject=me=>{try{const Ue=this.#o.getObject(me,this.#t);if(!Ue)return Promise.resolve(null);const cn=new d.V(Ue.id,Ue.objectType);return Object.keys(Ue).forEach(G=>{const ie=Ue[G];ie instanceof i.Jh?Object.defineProperty(cn,G,{value:new i.Jh({name:G,objectId:Ue.id}),enumerable:!0}):(0,a.Q)(ie,G)&&Object.defineProperty(cn,G,{value:(...ae)=>{const xe=cn[G]?.callContext?.callChain;return Object.defineProperty(ie,"callContext",{value:{guest:this.#t,...xe?.length?{callChain:xe}:{}},configurable:!0,enumerable:!0,writable:!0}),Ue[G](...ae)},enumerable:!0})}),Promise.resolve(cn)}catch(Ue){return Promise.reject(Ue)}};setAppWindowSize=me=>{if(!this.#e)return;const{size:Ue}=me,cn=document.getElementById(this.#e);cn&&(cn.style.height=`${Ue.height}px`,cn.style.width=`${Ue.width}px`)};subscribe=me=>this.#r.subscribe(me);unsubscribe=me=>{this.#r.unsubscribe(me)}}class ln{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:me,app:Ue})=>{if(!me)throw new Error("appId is required");if(me==="__proto__"||me==="constructor"||me==="prototype")throw new Error(`Invalid appId: ${me}`);if(!Ue?.uuid)throw new Error("application uuid is required");if(window.emui[me]=window.emui[me]||[],Array.isArray(window.emui[me])){const cn=window.emui[me].findIndex(G=>G.uuid===Ue.uuid);cn>-1?window.emui[me][cn]=Ue:window.emui[me].push(Ue)}else{let cn=window.emui[me];cn?.uuid===Ue.uuid?(cn={...cn,...Ue},window.emui[me]=[cn]):typeof cn.init>"u"?window.emui[me]=[{...cn,...Ue}]:window.emui[me]=[window.emui[me],Ue]}};get=({id:me,instanceId:Ue})=>{const cn=window.emui?.[me];return Array.isArray(cn)?cn.find(ie=>ie.uuid===Ue)??null:cn?.uuid===Ue?cn:null};add=({id:me,instanceId:Ue,documentEle:cn})=>{if(!Ue)throw new Error(`instanceId (uuid) is required to register application ${me}`);const G={uuid:Ue,init:null,mount:null,unmount:null},ie=window.emui[me];ie?Array.isArray(ie)?ie.push(G):window.emui[me]=[ie,G]:window.emui[me]=[G],cn.defaultView&&(cn.defaultView.emui=cn.defaultView.emui??{},cn.defaultView.emui.uuid=Ue)};delete=({id:me,instanceId:Ue})=>{if(Array.isArray(window.emui[me])){const cn=window.emui[me].findIndex(G=>G.uuid===Ue);cn>-1&&window.emui[me].splice(cn,1),window.emui[me].length===0&&delete window.emui[me]}else delete window.emui[me]}}const Le=12e4,Ae=["click","scroll","keypress","touchstart"],Cn=/\.css$/,Rn=Me=>Cn.test(Me);class Qe{#e;#t;#n;#o;#r;#i=new ve;#s;#c;#a=new Map;#p=new Map;#l=new ln;#u=!0;constructor(me){const{logger:Ue}=me;if(!Ue)throw new Error("logger is required");this.#e=me.logger,this.#t=me.version,this.#u=me.extendSession??!0,this.#r=new te({version:me.version,baseUrl:me.appConfigBaseUrl}),this.#n=new en(Ue),this.#o=new Fe(Ue),this.#s=new s.qE,this.#c=new c(this.#e)}#h(me){return typeof me=="function"}#b=me=>me instanceof i.b3||typeof me?.subscribe=="function";#d=(me,Ue)=>`Application ${me} with instance id ${Ue} is not found. Most probably the appId property of app.config.json is not set to ${me}`;#j=(me,Ue=document)=>{const{elementIds:cn}=this.#a.get(me)||{};cn&&cn.forEach(G=>{const ie=Ue.getElementById(G);ie&&ie.remove()})};#g=({id:me,instanceId:Ue,documentEle:cn,elementIds:G,microFEHost:ie})=>{const ae=this.#l.get({id:me,instanceId:Ue});if(!ae)throw new Error(this.#d(me,Ue));this.#a.set(Ue,{id:me,instanceId:Ue,elementIds:G,guest:{guestWindow:cn?.defaultView,...ae},microFEHost:ie})};#f=async({id:me,instanceId:Ue,containerId:cn,hostUrl:G,manifestPath:ie,homeRoute:ae,initialRoute:xe,history:Xe,theme:Ln,microFEHost:lt})=>{const Vn=this.#l.get({id:me,instanceId:Ue});if(!Vn)throw new Error(`Application ${me} with instance id ${Ue} is not found. Most probably the appId property of app.config.json is not set to ${me}`);if(!Vn.init||typeof Vn.init!="function")throw new Error(`Application ${me} with instance id ${Ue} doesn't expose init method`);const Vt=lt??new qe({guest:{id:me},version:this.#t,containerId:cn,logger:this.#e,soManager:this.#s,eventManager:this.#c});return Vn.init({host:Vt,hostUrl:G,manifestPath:ie,homeRoute:ae,initialRoute:xe,prevState:null,history:Xe,theme:Ln,hostBreakpoint:V(),hostViewportSize:L(),logger:this.#e})};#m=async me=>{try{const{id:Ue,instanceId:cn,files:G,name:ie,hostUrl:ae,documentEle:xe,isJsModule:Xe}=me;this.#e.debug(`Application ${Ue} with instance id ${cn} is loading...`);let Ln=G;const lt=me.manifest??await ze.get(me);Ln=ze.getFullFileNameofAssets(lt,G);const Vn=Ln.filter(dt=>Rn(dt)),Vt=Ln.filter(dt=>!Rn(dt)),nr={name:ie,hostUrl:ae,documentEle:xe,isESMModule:Xe},[cr,Ar]=await Promise.all([this.#o.load(Vn,nr),this.#n.load(Vt,nr)]);this.#g({id:Ue,instanceId:cn,documentEle:xe,elementIds:[...cr,...Ar],microFEHost:me.microFEHost}),me.selfInitialize||await this.#f(me),this.#e.audit(`Application ${Ue} with instance id ${cn} loaded`)}catch(Ue){const cn=`Application load failed. Unable to load one or more resources for ${me.id} with instance id ${me.instanceId}. ${Ue.message}`;throw this.#e.error({message:cn,appId:me.id,exception:Ue}),new Error(cn)}};#x=({id:me,instanceId:Ue,hostUrl:cn,documentEle:G})=>{this.#e.debug(`Application ${me} with instance id ${Ue} unloading...`),this.#l.get({id:me,instanceId:Ue})&&(this.#j(Ue,G),this.#n.removeDynamicImportedScripts(cn,G),this.#n.removePrefetchLinks(cn,G),this.#o.removeDynamicImportedStyles(cn,G),this.#l.delete({id:me,instanceId:Ue}),this.#e.audit(`Application ${me} with instance id ${Ue} unloaded`))};#w=async({id:me,instanceId:Ue})=>{const cn=this.#l.get({id:me,instanceId:Ue});if(!cn?.mount||typeof cn?.mount!="function")throw new Error(`Application ${me} with instance id ${Ue} doesn't expose mount method`);return cn.mount({containerId:`${S}${me}`,hostBreakpoint:V(),hostViewportSize:L()})};#S=({id:me,instanceId:Ue})=>{const cn=this.#l.get({id:me,instanceId:Ue});if(!cn?.unmount)return null;if(typeof cn.unmount!="function")throw new Error(`Application ${me} with instance id ${Ue} doesn't expose unmount method`);return cn.unmount({containerId:`${S}${me}`})};#E=({id:me,instanceId:Ue})=>{if(this.#u)try{const cn=this.#s.getObject(r.Application);if(!cn){this.#e.warn({message:`Application scripting object not available for ${me} to manage session`});return}const G=this.#a.get(Ue);if(!G)return;G.keepAlive=t(async()=>{try{await cn.keepSessionAlive()}catch(ae){this.#e.error(`Error keeping session alive. ${ae.message}`)}},Le);const ie=z.get(Ue);Ae.forEach(ae=>{ie?.contentDocument?.addEventListener(ae,G.keepAlive)})}catch(cn){this.#e.warn({message:`Application scripting object not available for ${me} to manage session`,exception:cn})}};#y=(me,Ue)=>{const ie=this.#s.getObject(r.Module,{id:me})?._setUnloadHandler;typeof ie=="function"&&ie(()=>this.closeApp(Ue))};#v=async me=>{const Ue=this.#s.getObject(r.Module,{id:me});if(!Ue)return!0;try{const cn=await this.#c.dispatchEvent(Ue,{event:{id:"module.unloading",name:"unloading"},eventParams:{moduleId:me},eventOptions:{timeout:1e3}});if(Array.isArray(cn)&&cn.some(G=>G===!1))return this.#e.info(`Unload denied by guest ${me} via module.unloading event`),!1}catch(cn){this.#e.warn({message:`Error dispatching module.unloading event for ${me}`,exception:cn})}return!0};#_=me=>{if(!this.#u||!me)return;const{keepAlive:Ue,instanceId:cn}=me;if(Ue){const ie=z.get(cn)?.contentDocument;ie&&Ae.forEach(ae=>{ie.removeEventListener(ae,Ue)}),me.keepAlive?.cancel()}};addScriptingObject=(me,Ue)=>{if((0,d.h)(me)){const cn=this.cloneScriptingObject(me);this.#s.addScriptingObject(cn,Ue)}else this.#s.addScriptingObject(me,Ue)};cloneScriptingObject=me=>{if(!me)throw new Error("proxy is required");const Ue=new a.P(me.id,me.objectType);let cn=[];return Object.keys(me).forEach(G=>{const ie=me[G];if(this.#b(ie)){const ae=new i.Jh({name:ie.name||G,objectId:Ue.id});Object.defineProperty(Ue,G,{value:ae,enumerable:!0});const xe=({eventParams:Ln,eventOptions:lt})=>this.dispatchEvent({event:ae,eventParams:Ln,eventOptions:lt}),Xe=ie.subscribe(xe);cn.push(()=>{ie.unsubscribe(Xe)})}else if(this.#h(ie)&&(Object.defineProperty(Ue,G,{value:async(...ae)=>{const xe=Ue[G]?.callContext;if(xe?.guest){const Ln=xe.callChain??[],lt=xe.guest.id,Vn=this.#p.get(lt),Vt={id:lt};Vn&&(Vt.metadata=Vn),Object.defineProperty(ie,"callContext",{value:{callChain:[...Ln,Vt]},configurable:!0,enumerable:!0,writable:!0})}const Xe=await ie(...ae);return(0,d.h)(Xe)?this.cloneScriptingObject(Xe):Xe},enumerable:!0}),G==="dispose")){const ae=Ue.dispose;Object.defineProperty(Ue,G,{value:()=>(Ue._dispose(),ae.apply(Ue)),enumerable:!0})}}),Ue._dispose=()=>{cn.forEach(G=>{G?.()}),cn=[]},Ue};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async me=>{if(!me)throw new Error("instanceId is required");const Ue=this.#a.get(me);if(!Ue){this.#e.warn(`Application with instance id ${me} is not found`);return}const{id:cn}=Ue;if(!await this.#v(cn))return;const G=this.#i.getConfigById(cn);if(!G){this.#e.warn(`Configuration for application ${cn} is not found`),this.#a.delete(me),z.remove(me);return}const{hostUrl:ie}=G;try{this.#_(Ue),await this.#S({id:cn,instanceId:me})}finally{const ae=z.get(me);ae?.contentDocument&&this.#x({id:cn,instanceId:me,hostUrl:ie,documentEle:ae.contentDocument}),this.#a.delete(me),this.#p.delete(cn),z.remove(me)}};dispatchEvent=async me=>{const{event:{id:Ue,name:cn},eventOptions:G={}}=me,{guestId:ie}=G;if(!Ue)throw new Error("Event Id is required");const ae=Ue.split(".")?.[0],xe=ie?this.#s.getObject(ae,{id:ie}):this.#s.getObject(ae);return xe?this.#c.dispatchEvent(xe,me):(this.#e.warn(`Attempt to dispatch event ${cn} on unknown object ${ae}`),Promise.resolve())};getApp=me=>this.#a.get(me)?.guest;getApps=()=>[...this.#a.values()].map(me=>me.guest);init=async me=>{me?this.#r.setPreloadedConfig(me):await this.#r.load(),this.#i.init({version:this.#t,appConfig:this.#r}),this.#A()};#A=()=>{const me=this.#r.get("microFrontendApps")??{},Ue=new Set;Object.keys(me).forEach(cn=>{const G=this.#i.getConfigById(cn);if(G?.hostUrl)try{Ue.add(new URL(G.hostUrl).origin)}catch{}}),Ue.forEach(cn=>{const G=document.createElement("link");G.rel="preconnect",G.href=cn,G.crossOrigin="anonymous",document.head.appendChild(G)})};mountApp=async me=>{if(!me)throw new Error("instanceId is required");const{id:Ue}=this.#a.get(me)||{};if(!Ue)throw new Error(`Application with instance id ${me} is not found`);const cn=this.#i.getConfigById(Ue);if(!cn)throw new Error(`Application with id ${Ue} is not found`);await this.#w({...cn,instanceId:me})};#O=(me,Ue,cn)=>{const G=new qe({guest:{id:cn.id},version:this.#t,containerId:cn.containerId,logger:this.#e,soManager:this.#s,eventManager:this.#c}),ie=me.defaultView;ie&&(ie.emui=ie.emui??{},ie.emui.__host=G,ie.emui.getHost=()=>ie.emui?.__host??null);const ae=me.createElement("link");return ae.rel="preconnect",ae.href=Ue.hostUrl,ae.crossOrigin="anonymous",me.head.appendChild(ae),G};openApp=async me=>{const{id:Ue,frameOptions:cn,history:G,theme:ie,homeRoute:ae,initialRoute:xe,metadata:Xe,selfInitialize:Ln}=me,lt=(0,n.A)();Xe&&this.#p.set(Ue,Xe);const Vn=this.#i.getConfigById(Ue);if(!Vn)throw new Error(`Application ${Ue} is not found in app config`);const Vt=ze.get(Vn);Vt.catch(()=>{});const nr=await z.create({id:Ue,instanceId:lt,manifestPath:Vn.manifestPath,hostUrl:Vn.hostUrl,options:{title:Vn.name,...cn}});if(!nr?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:Ue,instanceId:lt,documentEle:nr.contentDocument});const cr=this.#O(nr.contentDocument,Vn,{id:Ue,containerId:cn?.containerId}),Ar=await Vt;return await this.#m({instanceId:lt,history:G,theme:ie,documentEle:nr.contentDocument,containerId:cn?.containerId,...Vn,homeRoute:ae??Vn.homeRoute,initialRoute:xe,microFEHost:cr,selfInitialize:Ln,manifest:Ar}),Ln||await this.#w({instanceId:lt,...Vn}),this.#E({id:Ue,instanceId:lt}),this.#y(Ue,lt),lt}catch(cr){throw this.#x({id:Ue,instanceId:lt,hostUrl:Vn.hostUrl,documentEle:nr.contentDocument}),z.remove(lt),cr}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=me=>{this.#s.removeAllScriptingObjects(me)};removeScriptingObject=(me,Ue)=>{this.#s.removeScriptingObject(me,Ue)};warmUp=me=>{const Ue=this.#i.getConfigById(me);Ue&&ze.get(Ue).catch(()=>{})};unmountApp=async me=>{if(!me)throw new Error("instanceId is required");const{id:Ue}=this.#a.get(me)||{};if(!Ue)throw new Error(`Application with instance id ${me} is not found`);const cn=this.#i.getConfigById(Ue);if(!cn)throw new Error(`Application with id ${Ue} is not found`);await this.#S({...cn,instanceId:me})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>W});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js");class i{#e;#t;#n;#o=new Map;static DEFAULT_THROTTLE_MS=1e4;constructor(N){this.#e=N.logger,this.#t=N.enabled??!0,this.#n=N.throttleMs??i.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(N,M){if(!this.#t){this.#e.debug(M);return}if(this.#n>0){const B=performance.now(),$=this.#o.get(N);if($!==void 0&&B-$<this.#n){this.#e.debug(M);return}this.#o.set(N,B)}this.#e.audit(M)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:V}=window;try{return V?.location?.href}catch{return null}},g=V=>{if(!V||V==="about:blank")return"*";try{const{origin:N}=new URL(V);return N==="null"||!N?"*":N}catch{try{const{origin:N}=new URL(V,document.baseURI);return N==="null"||!N?"*":N}catch{return"*"}}},b=()=>window.self!==window.parent,v=(V,N)=>{const M=N||document.body,B=document.defaultView?.getComputedStyle?.(M,null),$=B?B[V]:"0";return parseInt($,10)},h="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},E=(V,N)=>!!(window.opener&&V.source===window.opener||N&&V.data?.handshakeToken===N),P=()=>new Promise((V,N)=>{if(b())V({origin:g(document.referrer||p()),window:window.parent});else{const M=window,B=j();let $;const X=H=>{if(E(H,B)){const{source:Z,type:K}=H.data||{};if(Z===h&&K===s.G.HandShake){const{origin:q}=H,te=H.source;clearTimeout($),(0,r._)({targetWin:te,targetOrigin:q,messageType:s.G.HandShakeAck,messageBody:{}}),M.removeEventListener("message",X),V({origin:q,window:te})}}};$=setTimeout(()=>{M.removeEventListener("message",X),N(new Error(`Host handshake timed out after ${x}ms`))},x),M.addEventListener("message",X)}});let w=!1;const S=V=>{w=V},A=(V=null)=>{let N=V;const M=()=>{if(!N&&(N=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!N))throw new Error("Guest definition not found");return N};window.elli=window.elli??{},window.elli.script={guest:{create:(B,$)=>M().addScript(B,$)},connect:B=>(w||console.warn("elli.script.connect is deprecated. Please use connect method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.connect(params);"),M().connect(B)),getObject:B=>(w||console.warn("elli.script.getObject is deprecated. Please use getObject method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.getObject(objectName);"),M().getObject(B)),setLogLevel:B=>(w||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),M().setLogLevel(B)),subscribe:(B,$,X,H)=>(w||console.warn("elli.script.subscribe is deprecated. Please use subscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.subscribe({ eventId: `${objectId}.${eventName}`, callback: (event) => { console.log(event); });"),M().subscribe({eventId:`${B}.${$}`,callback:Z=>X(Z?.obj,Z?.eventParams,Z?.eventOptions),criteria:H?.criteria})),unsubscribe:(B,$,X)=>(w||console.warn("elli.script.unsubscribe is deprecated. Please use unsubscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.unsubscribe({ eventId: `${objectId}.${eventName}`, token });"),M().unsubscribe({eventId:`${B}.${$}`,token:X}))}};try{A()}catch{}var D=null;const T=12e4,I=2e3,U={eventFeedback:!0},z=()=>{const{document:V}=window,N=V.body,M=V.documentElement,$={height:N.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(N.scrollWidth,M.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:g(V.referrer||p()),messageType:s.G.GuestResize,messageBody:$}),window.removeEventListener("load",z)};b()&&window.addEventListener("load",z);const k={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},F=["click","scroll","keypress","touchstart"],L=()=>{const V=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/588/node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",N=V?new URL(V).hostname:"localhost";return k[N]||k["cdn.mortgagetech.q1.ice.com"]};class W{#e;#t;#n;#o=!1;#r=null;#i=!1;#s=new Map;#c=null;#a=null;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d(){if(!this.#u||!this.#l)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#u,hostOrigin:this.#l}}#j=!1;#g=null;#f=null;#m=null;#x=!0;#w=T;#S;#E=null;#y;constructor(N){const{console:M=!1,url:B=window.__ICE__?.diagnosticsUrl||L(),index:$="ssf-guest-v2",team:X="ICE",appName:H="SSF Guest V2 Application"}=N?.logger??{};this.#S=N?.logger,this.#j=N?.usesDevConnectAPI??!1,this.#x=N?.keepAlive??!0,this.#w=N?.keepAliveInterval??T;const Z=M?(0,m.Console)():(0,m.http)(B);this.#t=N?.appLogger??(0,m.logger)({transport:Z,index:$,team:X,appName:H}),this.#y=new i({logger:this.#t,enabled:N?.auditOperations,throttleMs:N?.auditThrottleMs}),(0,m.webvitals)(this.#t),(0,m.logUnhandledErrors)(this.#t),this.#e=(0,t.A)(),this.#n=new r.K(this.#t,this.#e),A(this),this.#t.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#e})}#v=()=>({guestId:this.#c,guestTitle:this.#a,guestUrl:this.#p});#_=N=>{if(!N||!N.objectId)throw this.#t.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const M=new d.V(N.objectId,N.objectType);return N.functions&&N.functions.forEach(B=>{Object.defineProperty(M,B,{value:async(...$)=>{const H=M[B]?.callContext?.callChain;return this.#A({objectId:M.id,functionName:B,functionParams:[...$],callerChain:H})},enumerable:!0})}),N.events&&N.events.forEach(B=>{Object.defineProperty(M,B,{value:new a.b3({objectId:M.id,name:B,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${M.id}")`),M};#A=async({objectId:N,functionName:M,functionParams:B,callerChain:$})=>{this.#t.debug(`Invoking scripting object method ${N}.${M}()...`);const X=[];if(B)for(let te=0;te<B.length;te+=1){const ye=B[te];ye instanceof Promise&&X.push(ye.then(re=>{B[te]=re}))}await Promise.all(X);const{hostWindow:H,hostOrigin:Z}=this.#d(),K=await this.#n.invoke({targetWin:H,targetOrigin:Z,messageType:s.G.ObjectInvoke,messageBody:{objectId:N,functionName:M,functionParams:B,...$?.length?{callerChain:$}:{}}}),q=this.#C(K);return this.#y.log(`invoke:${N}.${M}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:N,scriptingMethod:M,...this.#v()}),q};#O(N,M){return(0,c.ts)(N,M,{regexCache:this.#b})}#C=N=>N?.type==="object"&&"object"in N?this.#_(N.object):N?.type==="value"?N.value:N;#T=({body:N})=>{N?.logLevel&&(this.#t.setLogLevel(N.logLevel),this.#t.debug(`Log level changed by host to ${N.logLevel}`)),this.#c=N?.guestId??null,this.#a=N?.guestTitle??null,this.#p=N?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#v()})};#P=()=>{window.focus()};#D=async()=>{await this.close(),window.close()};#R=()=>{b()||(this.#h=setInterval(()=>{this.#u?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#I=async({sourceWin:N,sourceOrigin:M,requestId:B,body:$})=>{const X=this.#_($.object);if(X){const H=(0,a._s)(X.id,$.eventName);this.#t.debug(`Received event "${H}" from host`);let Z;$.eventHandler?Z=[{callback:window[$.eventHandler],token:(0,t.A)()}]:Z=this.#s.get(H)||[];const K=[];if(Z.forEach(q=>{if(q?.callback){if(q.criteria&&!($.eventParams?this.#O($.eventParams,q.criteria):!1)){this.#t.debug(`Event ${H} did not match criteria for subscriber ${q.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${q.callback.name} for event ${H}`);const te=q.callback({obj:X,eventName:$.eventName,eventParams:$.eventParams,eventOptions:$.eventOptions});te instanceof Promise?K.push(te):typeof te<"u"&&K.push(Promise.resolve(te))}}),B){const q=await Promise.all(K);this.#n.respond({targetWin:N,targetOrigin:M,requestId:B,response:q}),this.#y.log(`event:${H}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:H,scriptingObject:X.id,...this.#v()})}else this.#y.log(`event:${H}`,{message:"Guest proxy processed event from host",scriptingEventId:H,scriptingObject:X.id,...this.#v()})}};#k=async()=>{if(!(!this.#g||!this.#f||!this.#m))try{await fetch(`${this.#m}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(N){this.#t.warn(`Failed to extend token lifetime: ${N.message}`)}};#F=async()=>{if(this.#g&&this.#f&&this.#m)try{await fetch(`${this.#m}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{method:"POST"})}catch(N){this.#t.error(`Error revoking token. ${N.message}`)}finally{this.#g=null,this.#f=null}};#M=async()=>{if(this.#x)try{const N=await Promise.race([this.getObject("application"),new Promise(M=>{setTimeout(()=>M(null),I)})]);N?(this.#E=n(async()=>{try{await N.keepSessionAlive(),await this.#k()}catch(M){this.#t.error(`Error keeping session alive. ${M.message}`)}},this.#w,{leading:!1}),F.forEach(M=>{document.addEventListener(M,this.#E)})):this.#t.warn("Application object not available to send keep alive")}catch(N){this.#t.error(`Error getting application object. ${N.message}`)}};addScript=async(N,M)=>{if(!this.#o&&N){await this.connect();const B=document.createElement("script");B.setAttribute("src",N),B.setAttribute("type","module"),await new Promise(($,X)=>{let H,Z;const K=()=>{B.removeEventListener("load",H),B.removeEventListener("error",Z)};H=()=>{K(),this.#o=!0,S(!0),$()},Z=()=>{K(),X(new Error(`Failed to load script: ${N}`))},B.addEventListener("load",H),B.addEventListener("error",Z),this.#r=M.appendChild(B)})}};close=async()=>{this.#i&&(this.#u&&this.#l&&(this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#l,window:this.#u})),this.#n.close(),this.#h&&(clearInterval(this.#h),this.#h=null),this.#E&&F.forEach(N=>{document.removeEventListener(N,this.#E)}),await this.#F(),window.removeEventListener("beforeunload",this.close),this.#i=!1,this.#t.audit({message:"Guest disconnected from host",...this.#v()}),this.#c=null,this.#p=null,this.#a=null)};connect=async N=>{if(!this.#i){let M=window,B={...U};if(N){const{window:X,...H}=N;X&&(M=X),B={...B,...H}}const $=await P();this.#l=$.origin,this.#u=$.window,this.#n.initialize(M),this.#n.addSender({origin:this.#l,window:this.#u}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#I.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#T.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#P.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#D.bind(this)}),this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestReady,messageBody:B}),this.#i=!0,this.#R(),this.#j&&await this.getAuthToken(),await this.#M(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#g&&this.#i)try{const N=await this.getObject("auth");if(N){const M=await N.getAccessToken();this.#g=M?.access_token,this.#m=M?.host_name,this.#f=M?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(N){this.#t.error(`Error getting access token from auth object. ${N.message}`)}return this.#g};getObject=async N=>{if(this.#t.debug(`Retrieving scripting object "${N}" from host...`),!this.#i)throw new Error("Not connected to host");const{hostWindow:M,hostOrigin:B}=this.#d(),$=await this.#n.invoke({targetWin:M,targetOrigin:B,messageType:s.G.ObjectGet,messageBody:{objectId:N}}),X=this.#_($.object);return this.#y.log(`getObject:${N}`,{message:"Received scripting object from host",scriptingObject:N,...this.#v()}),X};listObjects=async()=>{if(this.#t.debug("Retrieving names of scripting objects exposed by host..."),!this.#i)throw new Error("Not connected to host");const{hostWindow:N,hostOrigin:M}=this.#d(),B=await this.#n.invoke({targetWin:N,targetOrigin:M,messageType:s.G.ListObjects,messageBody:{}});return this.#y.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:B,...this.#v()}),B};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:N}=this.#r;N?.removeChild?.(this.#r)}};setLogLevel=N=>{this.#t.setLogLevel(N),this.#t.debug(`Log level changed by guest to ${N}`)};subscribe=N=>{const{eventId:M,criteria:B,callback:$}=N;this.#t.debug(`Registering subscription for event ${M}`);const X=this.#s.get(M.toLowerCase())||[],H=(0,t.A)();X.push({callback:$,token:H,criteria:B}),this.#s.set(M.toLowerCase(),X);const{hostWindow:Z,hostOrigin:K}=this.#d();return this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:M,criteria:B,token:H}}),this.#t.debug(`Subscribed to event ${M} with token ${H}`),H};unsubscribe=N=>{const{eventId:M,token:B}=N,$=this.#s.get(M.toLowerCase());if($){const X=$.length,H=$.filter(Z=>Z.token!==B);if(H.length<X){this.#s.set(M.toLowerCase(),H);const{hostWindow:Z,hostOrigin:K}=this.#d();this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:M,token:B}}),this.#t.debug(`Unsubscribed from event ${M}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.28.6_@elliemae+pui-diagnostics@3.12.5/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>z});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(k,F){return(0,c.of)(F)?(0,c.ts)(k,F):!0}var g=(k=>(k.Popup="popup",k.Embed="embed",k))(g||{}),b=(k=>(k.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",k.AllowDownloads="allow-downloads",k.AllowForms="allow-forms",k.AllowModals="allow-modals",k.AllowOrientationLock="allow-orientation-lock",k.AllowPointerLock="allow-pointer-lock",k.AllowPopups="allow-popups",k.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",k.AllowPresentation="allow-presentation",k.AllowSameOrigin="allow-same-origin",k.AllowScripts="allow-scripts",k.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",k.AllowTopNavigation="allow-top-navigation",k.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",k))(b||{});const v=k=>{if(k==="about:blank")return"*";try{const{origin:F}=new URL(k);return F==="null"||!F?k:F}catch{const{origin:L}=new URL(k,document.baseURI);return L}},h=k=>k.flat(1/0).filter(F=>F!==void 0);function x(k){return typeof k=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com"],E=["localhost","127.0.0.1"],P=k=>k.split(".").slice(-2).join("."),w=k=>E.includes(k)||j.some(F=>k===F.slice(1)||k.endsWith(F)),S=k=>{const F=P(window.location.hostname),L=P(k);return F===L},A=k=>{try{const{hostname:F}=new URL(k,document.baseURI);return w(F)||S(F)}catch{return!1}};class D{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;constructor(F){const{guestId:L,domElement:W=null,title:V,url:N,window:M,searchParams:B={},openMode:$=g.Embed,remoting:X,perfTracker:H,handshakeToken:Z}=F;this.id=L,this.title=V,this.url=N,this.origin=v(N),this.searchParams=B,this.domElement=W,this.window=M,this.openMode=$,this.capabilities={},this.#t=H,this.#e=X,this.#n=Z}dispose=()=>{if(this.openMode===g.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#e.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(F=>{let L=0;const W=5;let V;const N=()=>{clearInterval(V),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!0)};V=setInterval(()=>{L>=W?(clearInterval(V),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!1)):(this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}}),L+=1)},1e3),this.#e.listen({messageType:s.G.HandShakeAck,callback:N})});init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===g.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(F,L)=>{let W;if(this.#t.enabled){const V=`ScriptingObject.Event.${F.object.objectId}.${F.eventName}`;W=this.#t.start(V,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.ObjectEvent,messageBody:F,responseTimeoutMs:L}).finally(()=>{W&&this.#t.end(W,{appId:this.id,appUrl:this.url})})};send=F=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...F})}}const T=new Set(["SSF.Guest.Load"]);class I{#e;#t;#n;#o=new Set;#r;#i=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(F){this.#e=F.analyticsObj,this.#t=F.enabled??!1,this.#n=F.samplingRatio??I.DEFAULT_SAMPLING_RATIO,this.#r=F.dedupWindowMs??I.DEFAULT_DEDUP_WINDOW_MS,this.#s=F.onError}get enabled(){return this.#t}start(F,L){if(this.#t)try{const W=T.has(F);return!W&&!this.shouldTrack(F)?void 0:(!W&&!this.#o.has(F)&&(this.#e.setTimingEventSamplingRatio({[F]:this.#n}),this.#o.add(F)),this.#e.startTiming(F,L).catch(V=>{this.reportError(`startTiming failed: ${V.message}`)}),F)}catch(W){this.reportError(`startTiming failed: ${W.message}`);return}}end(F,L){if(F)try{this.#e.endTiming(F,L).catch(W=>{this.reportError(`endTiming failed: ${W.message}`)})}catch(W){this.reportError(`endTiming failed: ${W.message}`)}}reportError(F){try{this.#s?.(F)}catch{}}shouldTrack(F){if(this.#r<=0)return!0;const L=performance.now(),W=this.#i.get(F);return W!==void 0&&L-W<this.#r?!1:(this.#i.set(F,L),!0)}}const U=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin];class z{hostId;#e;#t;#n;#o;#r=new Map;#i=new Map;#s=new Map;#c=new Map;#a;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d;#j;constructor(F,L){if(this.hostId=F,!L?.logger)throw new Error("Logger is required");if(!L?.analyticsObj)throw new Error("Analytics object is required");this.#n=L.logger,this.#o=L.analyticsObj;const W={analyticsObj:L.analyticsObj,enabled:L?.measurePerformance,samplingRatio:L?.performanceSamplingRatio,onError:V=>this.#n.debug(V)};if(this.#d=new I({...W,dedupWindowMs:L?.performanceDedupWindowMs}),this.#j=new I({...W,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new n.K(this.#n,this.#t),L?.readyStateCallback&&typeof L?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#p=L?.readyStateCallback||null,this.#u=L?.onGuestEventSubscribe||null,this.#h=L?.onGuestEventUnsubscribe||null,this.#a=new r.qE,this.#e.initialize(window),this.#F(),window.addEventListener("beforeunload",this.#f),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#g=(F,L)=>{const W={event:F,...L};this.#o.sendBAEvent(W).catch(V=>{this.#n.debug(`Analytics sendBAEvent failed: ${V.message}`)})};#f=()=>{Array.from(this.#r.values()).filter(L=>L.openMode===g.Popup).map(L=>L.id).forEach(L=>this.unloadGuest(L))};#m=F=>this.#i.get(F);#x=F=>this.#s.get(F)??null;#w=F=>typeof F?._toJSON=="function";#S=(F,L)=>this.#w(F)?(this.#a.has(F?.id,L)||this.#a.addScriptingObject(F,L?{guestId:L?.id}:{}),{type:"object",object:F._toJSON()}):{type:"value",value:F};#E=F=>typeof F=="string"?F:F instanceof Error?F.message:"An unexpected error occurred in the host application";#y=F=>{F.ready&&this.#e.send({targetWin:F.window,targetOrigin:F.origin,messageType:s.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...F.getInfo()}})};#v=({guest:F,obj:L,functionName:W,functionParams:V,callerChain:N})=>{const M=L[W];return x(M)?(this.#n.debug(`Invoking host implementation of ${L.id}.${String(W)}()`),new Promise(B=>{Object.defineProperty(M,"callContext",{value:{guest:F,...N?.length?{callChain:N}:{}},configurable:!0,enumerable:!0,writable:!0}),B(M(...V))})):(this.#n.warn(`Attempt to call invalid function on object type ${L.objectType}: ${String(W)}`),Promise.reject(new Error(`Method '${W}' not found in Scripting Object '${L.id}'`)))};#_=({sourceWin:F,sourceOrigin:L,requestId:W})=>{const V=this.#m(F);if(!V){this.#n.warn(`Received ready event for unknown guest. requestId: ${W}`);return}if(!V.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:"Guest must be initialized before it is marked as ready"});return}if(!V.ready){V.ready=!0;const N=V.getInfo();this.#d.end("SSF.Guest.Load",{appId:N.guestId,appUrl:N.guestUrl}),this.#y(V),this.#p?.(V),this.#n.audit({message:"Guest is ready",...N})}};#A=({sourceWin:F,sourceOrigin:L,requestId:W,body:V})=>{const N=this.#m(F);if(!N){this.#n.warn(`Received ready event for unknown guest. requestid = ${W}`);return}N.initialized||(N.initialized=!0,N.capabilities=V||{},this.#n.audit({message:"Guest is initialized",...N.getInfo()})),(!V||!V.onReady)&&this.#_({sourceWin:F,sourceOrigin:L,requestId:W,type:"",body:null})};#O=async({sourceWin:F})=>{if(F?.window){const L=this.#L(F);L&&!await L.handShake()&&this.unloadGuest(F)}};#C=({sourceWin:F,sourceOrigin:L,requestId:W})=>{this.#n.debug(`Processing listObjects request. requestId = ${W}`);const V=this.#m(F);if(!V)return this.#n.warn("Rejected object request from unknown guest window"),!1;const N=this.#a.listScriptingObjects(V.id);return this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:N}),this.#n.debug({message:"name of scripting objects returned",requestId:W,objects:N,...V.getInfo()}),!0};#T=({sourceWin:F,sourceOrigin:L,requestId:W,body:V})=>{const{objectId:N}=V;this.#n.debug(`Processing getObject request for object ${N}. requestId = ${W}`);const M=this.#m(F);if(!M)return this.#n.warn("Rejected object request from unknown guest window"),!1;const B=this.getScriptingObject(N,{guest:M});return B?(this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(B,M)}),this.#n.debug({message:"Scripting Object returned",requestId:W,scriptingObject:N,...M.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${N} from guest ${M.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1)};#P=({sourceWin:F,requestId:L,body:W})=>{const{eventId:V,criteria:N,token:M}=W;this.#n.debug(`Processing guest event subscribe request for event ${V}. requestId = ${L}`);const B=this.#m(F);if(!B){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:B.id,eventId:V,criteria:N,token:M})}catch($){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${V}: ${$.message}`)}},0)};#D=({sourceWin:F,requestId:L,body:W})=>{const{eventId:V,token:N}=W;this.#n.debug(`Processing guest event unsubscribe request for event ${V}. requestId = ${L}`);const M=this.#m(F);if(!M){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#h?.({guestId:M.id,eventId:V,token:N})}catch(B){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${V}: ${B.message}`)}},0)};#R=({sourceWin:F,requestId:L,body:W})=>{const V=this.#m(F);if(!V){this.#n.warn(`Received resize event from unknown guest. requestid = ${L}`);return}V.domElement&&(V.domElement.style.height=`${W.height}px`),this.#n.debug(`Guest ${V.id} resized to ${W.width}x${W.height}`)};#I=({sourceWin:F,sourceOrigin:L,requestId:W,body:V})=>{const{objectId:N,callerChain:M}=V,B=this.#m(F);if(!B)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${N}.${String(V.functionName)}() called from guest "${B.id}" (requestId = ${W})`);const $=this.getScriptingObject(N,{guest:B});if(!$)return this.#n.warn(`Invocation of unknown or unauthorized object ${N} from guest ${B.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1;const X=B.getInfo();let H;if(this.#d.enabled){const Z=`ScriptingObject.API.${N}.${V.functionName}`;H=this.#d.start(Z,{appId:X.guestId,appUrl:X.guestUrl})}return this.#v({guest:B,obj:$,functionName:V.functionName,functionParams:V.functionParams,callerChain:M}).then(Z=>{this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(Z,B)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:V.functionName,...X})}).catch(Z=>{this.#e.raiseException({targetWin:F,targetOrigin:B.origin,requestId:W,ex:Z}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:V.functionName,...X})}).finally(()=>{H&&this.#d.end(H,{appId:X.guestId,appUrl:X.guestUrl})}),!0};#k=()=>{this.#e.listen({messageType:s.G.GuestResize,callback:this.#R})};#F=()=>{this.#e.listen({messageType:s.G.GuestReady,callback:this.#A}),this.#e.listen({messageType:s.G.GuestReadyComplete,callback:this.#_}),this.#e.listen({messageType:s.G.GuestClose,callback:this.#O}),this.#e.listen({messageType:s.G.ListObjects,callback:this.#C}),this.#e.listen({messageType:s.G.ObjectGet,callback:this.#T}),this.#e.listen({messageType:s.G.ObjectInvoke,callback:this.#I}),this.#e.listen({messageType:s.G.GuestEventSubscribe,callback:this.#P}),this.#e.listen({messageType:s.G.GuestEventUnsubscribe,callback:this.#D})};#M=F=>F instanceof i.b3||typeof F?.subscribe=="function";#N=F=>{const L=new D({...F,remoting:this.#e,perfTracker:this.#j});return L.init(),this.#r.set(F.guestId,L),this.#i.set(L.window,L),this.#s.set(L.url,L),L};#L=F=>{if(typeof F=="string")return this.#r.get(F);const L=this.#i.get(F);return L||Array.from(this.#r.values()).find(W=>W.domElement===F)};#B=()=>{this.#l||(this.#l=setInterval(()=>{const F=[];this.#r.forEach(L=>{L.openMode===g.Popup&&L.window.closed&&F.push(L)}),F.forEach(L=>{const{id:W}=L;this.unloadGuest(W),this.#c.get(W)?.forEach(N=>{Promise.resolve(N({id:W})).catch(()=>{})})})},1e3))};#U=()=>{if(!this.#l)return;Array.from(this.#r.values()).some(L=>L.openMode===g.Popup)||(clearInterval(this.#l),this.#l=null)};#$=F=>{const L=A(F),W=L?void 0:(0,t.A)();return{popupUrl:W?`${F}#hs=${W}`:F,handshakeToken:W,trusted:L}};#z=F=>{const{url:L,title:W,popupWindowFeatures:V={},searchParams:N,guestId:M,onLoad:B,onError:$}=F,{width:X=800,height:H=600,top:Z=100,left:K=100}=V;let q=this.#x(L);if(q)q.window.closed||(A(L)?window.open("",W):q.window.focus());else{const te=Object.entries({width:X,height:H,top:Z,left:K}).filter(([,oe])=>oe).map(([oe,he])=>`${oe}=${he}`).join(","),{popupUrl:ye,handshakeToken:re,trusted:fe}=this.#$(L),ne=window.open(ye,W,`popup, ${te}`);if(ne)setTimeout(()=>{try{B?.(M)}catch(oe){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${oe.message}`)}},0);else throw setTimeout(()=>{try{$?.(M)}catch(oe){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${oe.message}`)}},0),new Error("Failed to open guest application in popup window");fe||(ne.opener=null),q=this.#N({guestId:M,window:ne,title:W,url:L,searchParams:N,openMode:g.Popup,handshakeToken:re}),this.#B()}return q};#W=F=>{const{url:L,title:W,targetElement:V,searchParams:N,guestId:M,onLoad:B,onError:$,options:X={}}=F,H=V.ownerDocument??document,{fitToContent:Z=!1,disableSandbox:K=!1,sandboxValues:q=[],customSandboxValues:te=[],style:ye="",permissionPolicy:re=""}=X;if(!W)throw new Error("title is required");Z&&this.#k();const fe=H.createElement("iframe");fe.setAttribute("id",M);const ne=()=>{setTimeout(()=>{try{B?.(M)}catch(ee){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${ee.message}`)}},0),this.#n.debug(`frame loaded for guest with id '${M}'`),fe.removeEventListener("load",ne)},oe=()=>{setTimeout(()=>{try{$?.(M)}catch(ee){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${ee.message}`)}},0),this.#n.error(`frame load failed for guest with id '${M}'`),fe.removeEventListener("error",oe)};fe.addEventListener("load",ne),fe.addEventListener("error",oe),fe.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${ye}`),K||fe.setAttribute("sandbox",te.length>0?te.join(" "):[...U,...q].join(" ")),fe.setAttribute("title",W),fe.setAttribute("src",L),re&&fe.setAttribute("allow",re),V.appendChild(fe);const he=H.getElementById(M);return this.#N({guestId:M,domElement:he,window:he.contentWindow,title:W,url:L,searchParams:N,openMode:g.Embed})};#G=(F,L)=>{let W="";return Object.keys(L).forEach(V=>{W+=`${(W.length?"&":"")+encodeURIComponent(V)}=${encodeURIComponent(L[V])}`}),F+(W?(F.indexOf("?")>=0?"&":"?")+W:"")};addScriptingObject=(F,L)=>{if((0,d.h)(F)){const W=this.cloneScriptingObject(F);this.#a.addScriptingObject(W,L)}else this.#a.addScriptingObject(F,L)};cloneScriptingObject=F=>{if(!F)throw new Error("proxy is required");const L=new a.P(F.id,F.objectType);let W=[];return Object.keys(F).forEach(V=>{const N=F[V];if(this.#M(N)){const M=new i.Jh({name:N.name||V,objectId:L.id});if(Object.defineProperty(L,V,{value:M,enumerable:!0}),N instanceof i.b3){const B=({eventParams:X,eventOptions:H})=>this.dispatchEvent({event:M,eventParams:X,eventOptions:H}),$=N.subscribe(B);W.push(()=>{N.unsubscribe($)})}else{const B=N.subscribe?.(($,X,H)=>this.dispatchEvent({event:M,eventParams:X,eventOptions:H}));W.push(()=>{N.unsubscribe?.(B)})}}else if(x(N)&&(Object.defineProperty(L,V,{value:async(...M)=>{const B=L[V]?.callContext;if(B?.guest){const X=B.callChain??[],H=B.guest.id,Z=this.#b.get(H),K={id:H};Z&&(K.metadata=Z),Object.defineProperty(N,"callContext",{value:{callChain:[...X,K]},configurable:!0,enumerable:!0,writable:!0})}const $=await N(...M);return(0,d.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),V==="dispose")){const M=L.dispose;Object.defineProperty(L,V,{value:()=>(L._dispose(),M.apply(L)),enumerable:!0})}}),L._dispose=()=>{W.forEach(V=>{V?.()}),W=[]},L};close=()=>{this.#l&&(clearInterval(this.#l),this.#l=null),this.#f(),this.#b.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#f),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#H=({targetGuest:F,guestCapabilities:L,scriptingEventId:W,dispatchToGuest:V})=>{const N=M=>{if((0,c.of)(L)&&!p(M.capabilities,L)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:W,guestCapabilities:L,...M.getInfo()});return}V(M)};F?N(F):this.#r.forEach(N)};dispatchEvent=async F=>{const{event:{id:L,name:W},eventParams:V,eventOptions:N={}}=F,{eventHandler:M=null,timeout:B=null,window:$=null,guestId:X,guestCapabilities:H}=N,Z=L.split(".")[0],K=X||$,q=K?this.#L(K):null,te=q?this.getScriptingObject(Z,{guest:q}):this.getScriptingObject(Z);if(!te)return this.#n.warn(`Attempt to dispatch event ${W} on unknown object ${Z}`),Promise.resolve([]);const ye={object:te._toJSON(),eventName:W,eventParams:V,eventHandler:M,eventOptions:{allowsFeedback:!1}};B&&!Number.isNaN(B)&&(ye.eventOptions={allowsFeedback:!0,timeout:Number(B)});const re=[];let fe;const ne=oe=>{const he=oe.getInfo();B&&oe?.capabilities?.eventFeedback?(re.push(oe.dispatchEvent(ye,B)),!fe&&this.#d.enabled&&(fe=this.#d.start(`ScriptingObject.Event.${te.id}.${W}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:L,...he})):(oe.send({messageType:s.G.ObjectEvent,messageBody:ye}),this.#n.debug({message:"Event dispatched",scriptingEventId:L,...he}))};return this.#H({targetGuest:q??null,guestCapabilities:H,scriptingEventId:L,dispatchToGuest:ne}),Promise.all(re).then(oe=>(this.#n.debug({message:"Event feedback received",scriptingEventId:L}),h(oe))).catch(oe=>{throw this.#n.error({message:"Error processing event",eventId:L,exception:oe}),oe}).finally(()=>{fe&&this.#d.end(fe,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(F,L)=>this.#a.getObject(F,L?.guest);loadGuest=F=>{const{id:L,url:W,targetElement:V,title:N,searchParams:M={},onLoad:B,onError:$,options:X={},metadata:H}=F;if(!L)throw new Error("id for guest application is required");let Z=L;if(this.#r.has(Z)){let re=1;for(;this.#r.has(`${L}-${re}`);)re+=1;Z=`${L}-${re}`}const{openMode:K=g.Embed,popupWindowFeatures:q={}}=X,te=this.#G(W,M);let ye=null;if(this.#d.start("SSF.Guest.Load",{appId:Z,appUrl:te}),K===g.Popup)ye=this.#z({guestId:Z,url:te,title:N,searchParams:M,popupWindowFeatures:q,onLoad:B,onError:$});else if(K===g.Embed)ye=this.#W({guestId:Z,url:te,title:N,targetElement:V,searchParams:M,onLoad:B,onError:$,options:X});else throw new Error(`Invalid openMode: ${K}`);return H&&this.#b.set(Z,H),this.#n.audit({message:"Guest loaded",...ye.getInfo()}),ye};loadGuests=F=>{const{id:L,url:W,targetElement:V,title:N,searchParamsList:M=[],options:B={}}=F;M.forEach(($,X)=>{this.loadGuest({id:`${L}-${X}`,url:W,title:N,targetElement:V,searchParams:$,options:B})},this)};removeAllScriptingObjects=F=>{this.#a.removeAllScriptingObjects(F)};removeScriptingObject=(F,L)=>{this.#a.removeScriptingObject(F,L)};setLogLevel=F=>{this.#n.setLogLevel(F),this.#r.forEach(this.#y),this.#n.debug("Dispatched config events to all guests")};unloadGuest=F=>{const L=this.#L(F);L&&(L.dispose(),this.#i.delete(L.window),this.#s.delete(L.url),this.#b.delete(L.id),this.#r.delete(L.id),this.#n.audit({message:"Guest is removed from host",...L.getInfo()}),this.#U())};onGuestClose=F=>{const{id:L,guestCloseCallback:W}=F,V=this.#c.get(L)||[];V.push(W),this.#c.set(L,V)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{B1:()=>Re,E8:()=>ne,_7:()=>ve,l1:()=>gn});var t,n,r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),s=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),i=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");function d(ze){return n({theme:ze})}function a(ze,qe){const Le=d(ze)[qe];return Le===0?null:Le}function c(ze,qe){const Le=d(ze)[qe];return Le===0?null:Le-.02}function m(){const[ze,qe]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function ln(){qe(window.innerWidth)}return window.addEventListener("resize",ln),qe(window.innerWidth),()=>window.removeEventListener("resize",ln)},[]),ze}function p(ze){const qe=d(ze),ln=m();return t.useMemo(()=>Object.keys(qe).reverse().find(Le=>ln!==null&&ln>=qe[Le])||null,[qe,ln])}function g(ze,qe){const ln=a(ze,qe),Le=m();return Le!==null&&ln!==null&&Le>=ln}function b(ze,qe){const ln=c(ze,qe),Le=m();return Le!==null&&ln!==null&&Le<ln}const v=(...ze)=>ze.filter(Boolean).join("."),h=ze=>`--${ze.replace(/\./g,"-")}`,x=(ze,qe)=>`var(${h(ze)}, ${qe})`,j=(ze,qe)=>`${ze}: ${qe};`;function E(ze,qe,ln=Object.keys(ze),Le){const Ae=Array.isArray(ze)?[]:{};for(const Cn in ln){const Rn=ln[Cn],Qe=ze[Rn],Me=v(Le,Rn);if((0,i.WL)(Qe)){Ae[Rn]=E(Qe,qe,Object.keys(Qe),Me);continue}if((0,i.Yj)(Qe)){Ae[Rn]=x(Me,Qe);continue}if((0,i.Pc)(Qe)){Ae[Rn]=x(Me,(0,i.DJ)(Qe,{theme:qe}));continue}}return Ae}function P(ze,qe,ln=Object.keys(ze),Le,Ae={value:""}){for(const Cn in ln){const Rn=ln[Cn],Qe=ze[Rn],Me=v(Le,Rn);if((0,i.WL)(Qe)){P(Qe,qe,Object.keys(Qe),Me,Ae);continue}if((0,i.Yj)(Qe)){Ae.value+=j(h(Me),Qe);continue}if((0,i.Pc)(Qe)){Ae.value+=j(h(Me),(0,i.DJ)(Qe,{theme:qe}));continue}}return Ae.value}var w=Object.defineProperty,S=Object.defineProperties,A=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,U=(ze,qe,ln)=>qe in ze?w(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ln}):ze[qe]=ln,z=(ze,qe)=>{for(var ln in qe||(qe={}))T.call(qe,ln)&&U(ze,ln,qe[ln]);if(D)for(var ln of D(qe))I.call(qe,ln)&&U(ze,ln,qe[ln]);return ze},k=(ze,qe)=>S(ze,A(qe)),F=(ze,qe)=>{var ln={};for(var Le in ze)T.call(ze,Le)&&qe.indexOf(Le)<0&&(ln[Le]=ze[Le]);if(ze!=null&&D)for(var Le of D(ze))qe.indexOf(Le)<0&&I.call(ze,Le)&&(ln[Le]=ze[Le]);return ln};const L="xstyled-color-mode",V=typeof window<"u"&&(()=>{try{const ze="xstyled-test-key";return window.localStorage.setItem(ze,ze),window.localStorage.removeItem(ze),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem(L),set:ze=>{window.localStorage.setItem(L,ze)},clear:()=>window.localStorage.removeItem(L)}:{get:()=>null,set:()=>{},clear:()=>{}},N="xstyled-color-mode-",M=ze=>`${N}${ze}`,B="xstyled-colors",$=["light","dark"];function X(ze,qe){return k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[qe])})}const H=ze=>`@media ${ze}`,Z=ze=>`(prefers-color-scheme: ${ze})`;function K(ze){return Boolean(ze&&ze.colors&&ze.colors.modes)}function q(ze){return Boolean(ze&&(ze.useCustomProperties===void 0||ze.useCustomProperties))}function te(ze){return Boolean(ze&&(ze.useColorSchemeMediaQuery===void 0||ze.useColorSchemeMediaQuery))}function ye(ze){return ze.initialColorModeName||"default"}function re(ze){return ze.defaultColorModeName||ye(ze)}function fe(ze){let qe=[];for(const ln in ze)qe=[...qe,...Object.keys(ze[ln])];return qe}function ne(ze,{targetSelector:qe="body"}={}){if(!K(ze))return null;const ln=ze.colors,{modes:Le}=ln,Ae=F(ln,["modes"]),Cn=fe(Le);let Rn=P(Ae,ze,Cn,B);function Qe(me){const Ue=X(ze,me),cn=Ue.colors,{modes:G}=cn,ie=F(cn,["modes"]);return P(z(z({},ie),G[me]),Ue,Cn,B)}return ze.useColorSchemeMediaQuery!==!1&&$.forEach(me=>{if(Le[me]){const Ue=H(Z(me));Rn+=`${Ue}{${Qe(me)}}`}}),[ye(ze),...Object.keys(Le)].forEach(me=>{const Ue=`&.${M(me)}`;Rn+=`${Ue}{${Qe(me)}}`}),`${qe}{${Rn}}`}function oe(ze){if(typeof window>"u"||window.matchMedia===void 0)return null;const qe=Z(ze);return window.matchMedia(qe)}function he(ze){const qe=r.useMemo(()=>te(ze)?$.map(Ae=>{if(!K(ze)||!ze.colors.modes[Ae])return null;const Cn=oe(Ae);return Cn?{mode:Ae,mql:Cn}:null}).filter(Boolean):[],[ze]),[ln,Le]=r.useState(()=>{const Ae=qe.find(Cn=>Cn.mql.matches);return Ae?Ae.mode:null});return r.useEffect(()=>{const Ae=qe.map(({mode:Cn,mql:Rn})=>{const Qe=({matches:Me})=>{Le(Me?Cn:me=>me===Cn?null:Cn)};return Rn.addEventListener("change",Qe),()=>Rn.removeEventListener("change",Qe)});return()=>Ae.forEach(Cn=>Cn())}),ln}const ee=typeof window<"u"?r.useLayoutEffect:r.useEffect;function be(ze,{target:qe}={}){const ln=he(ze),Le=re(ze),Ae=ye(ze),[Cn,Rn]=r.useState(()=>K(ze)?Le:null),Qe=q(ze),Me=r.useCallback(me=>{Rn(me||null),me?V.set(me):V.clear()},[]);return ee(()=>{if(!K(ze))return;const me=V.get();Cn!==(me||ln||Le)&&Rn(me||ln||Le)},[]),ee(()=>{if(V.get())return;const Ue=ln||Le;Ue!==Cn&&Rn(Ue)},[Cn,ln,Le]),ee(()=>{if(!Cn||!Qe||!V.get()&&!(Ae!==Cn))return;const cn=M(Cn),G=qe||document.body;return G.classList.add(cn),()=>{G.classList.remove(cn)}},[Qe,qe,Cn,Ae]),[Cn,Me]}function We(ze,qe){const[ln]=r.useState(qe),Le=r.useMemo(()=>{if(!ln||!q(ze))return null;if(!K(ze))return ze;const Cn=ze.colors,{modes:Rn}=Cn,Qe=F(Cn,["modes"]),Me=fe(Rn);return k(z({},ze),{colors:k(z(z({},Qe),E(Qe,ze,Me,B)),{modes:Rn}),__rawColors:ze.colors})},[ln,ze]),Ae=r.useMemo(()=>!qe||q(ze)?null:K(ze)?qe===ye(ze)?k(z({},ze),{__colorMode:qe}):k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[qe]),__colorMode:qe,__rawColors:ze.colors}):ze,[ze,qe]);return Le||Ae}const Ze=r.createContext(null);function nn(){const ze=t.useContext(Ze);if(!ze)throw new Error("[useColorMode] requires the ColorModeProvider component");return ze}function ve({ThemeContext:ze,ThemeProvider:qe,ColorModeStyle:ln}){function Le({children:Ae,target:Cn,targetSelector:Rn}){const Qe=r.useContext(ze);if(!Qe)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const Me=be(Qe,{target:Cn}),me=We(Qe,Me[0]);return r.createElement(r.Fragment,null,r.createElement(ln,{targetSelector:Rn}),r.createElement(qe,{theme:me},r.createElement(Ze.Provider,{value:Me},Ae)))}return Le}function ce({target:ze="document.body"}={}){return`(function() { try {
|
|
18400
|
+
`},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"(u,o,e){"use strict";e.d(o,{AS:()=>g,Gs:()=>d,x7:()=>c});var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),r=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),s=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const d={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},a=null,c={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(s.Jl).description("Position on the screen to show the toast").defaultValue("bottom-left"),autoClose:n.A.oneOfType([n.A.number,n.A.oneOf([!1])]).description("ms to autoclose the toast, false if you don't want to automatically close").defaultValue(5e3),showProgressBar:n.A.bool.description("Whether to show a progress bar indicating when the toast is going to be closed").defaultValue(!1),closeOnClick:n.A.bool.description("Close toast handler").defaultValue(!1),enableMultiContainer:n.A.bool.description("Allows instantiating multiple Toast containers").defaultValue(!1),containerId:n.A.oneOfType([n.A.string,n.A.number]).description("unique id for multi container"),...(0,r.Y)(i.GM,i.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},m={children:n.A.node.isRequired.description("link text")},p={children:n.A.node.description("DSToastActionLink component or text string"),onClick:n.A.func.description("click handler"),onKeyDown:n.A.func.description("key down handler")},g={type:n.A.oneOf(s.Rm).description("Type of toast").defaultValue("default"),messageTitle:n.A.string.description("Toast message title").defaultValue(""),messageText:n.A.string.description("Toast message text").defaultValue(""),messageComponent:n.A.node.description("Toast message component")}},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/toast.js"(u,o,e){"use strict";e.d(o,{o:()=>v});var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),r=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.cjs.production.min.js"),s=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),d=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const m=h=>a.lA[h],p=h=>a.JC[h],g=({type:h=a.Ck.DEFAULT,messageTitle:x="",messageText:j="",messageComponent:E})=>{const P=m(h),w=p(h);return(0,n.jsxs)(d.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(d.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(P,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(d.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(d.Az,{className:"em-ds-toast-content__message-header",children:x}),(0,n.jsx)(d.uP,{className:"em-ds-toast-content__message-text",children:E||j})]})]})};g.displayName=c.VR;const b=(0,s.A)(g);b.propTypes=i.AS;const v=Object.assign(({type:h,messageTitle:x,messageText:j,messageComponent:E,...P},w)=>(0,r.oR)((0,n.jsx)(g,{messageText:j,messageComponent:E,messageTitle:x,type:h}),{...P,...w,type:h}),{...r.oR,isActive:h=>r.oR.isActive(h)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,_s:()=>s,b3:()=>n,xH:()=>r});class t{name;objectId;id;constructor(d){const{name:a,objectId:c}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");this.objectId=c,this.name=a,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](d){return typeof d=="object"&&d!==null&&"getType"in d&&typeof d.getType=="function"&&d.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(d){const{name:a,objectId:c,eventSrc:m}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");if(!m)throw new Error("Event source is required");this.objectId=c,this.name=a,this.#e=m,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=d=>this.#e.subscribe({eventId:this.id,callback:d});unsubscribe=d=>{this.#e.unsubscribe({eventId:this.id,token:d})}}const r=i=>i instanceof t,s=(i,d)=>`${i.toLowerCase()}.${d.toLowerCase()}`},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"(u,o,e){"use strict";e.d(o,{of:()=>s,ts:()=>i});const t=new Map;function n(d){return typeof d=="object"&&d!==null&&("eq"in d||"in"in d||"includes"in d||"gt"in d||"lt"in d||"regex"in d)}function r(d,a,c){if("eq"in a)return d===a.eq;if("in"in a)return Array.isArray(a.in)&&a.in.includes(d);if("includes"in a)return Array.isArray(d)&&d.includes(a.includes);if("gt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m>a.gt}if("lt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m<a.lt}if("regex"in a){const m=c??t;let p=m.get(a.regex);if(p===void 0){try{p=new RegExp(a.regex)}catch{p=null}m.set(a.regex,p)}return p!==null&&typeof d=="string"&&p.test(d)}return!1}function s(d){return d!=null&&Object.keys(d).length>0}function i(d,a,c){return Object.entries(a).every(([m,p])=>r(d[m],p,c?.regexCache))}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"(u,o,e){"use strict";e.d(o,{G:()=>t});var t=(n=>(n.GuestClose="guest:close",n.GuestEventSubscribe="guest:eventSubscribe",n.GuestEventUnsubscribe="guest:eventUnsubscribe",n.GuestFocus="guest:focus",n.GuestReady="guest:ready",n.GuestReadyComplete="guest:readyComplete",n.GuestResize="guest:resize",n.HandShake="handshake",n.HandShakeAck="handshake:ack",n.HostClose="host:close",n.HostConfig="host:config",n.ListObjects="list:objects",n.ObjectEvent="object:event",n.ObjectGet="object:get",n.ObjectInvoke="object:invoke",n))(t||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t,h:()=>n});class t{__TYPE__="Proxy";id;objectType;constructor(s,i){this.id=s,this.objectType=i}}const n=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy"},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>a,_:()=>d});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",r="elli:remoting:response",s="elli:remoting:exception",i=({messageType:c,messageBody:m,requestId:p,onewayMsg:g=!1})=>({requestId:p??(g?null:(0,t.A)()),source:n,type:c,body:m}),d=c=>{const{targetWin:m,targetOrigin:p,messageType:g,messageBody:b}=c,v=i({messageType:g,messageBody:b});m.postMessage(v,p)};class a{#e;#t;#n=new Map;#o=new Map;#r=null;#i=null;#s=new Map;constructor(m,p){if(!m)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#e=p,this.#t=m}#c=()=>{this.#r=null;const m=Date.now(),p=[];let g=null;if(this.#o.forEach((b,v)=>{const{requestId:h,cancelTime:x}=b;x&&x<=m?(this.#t.debug(`Detected response timeout for requestId: ${h}...`),p.push(v),b.resolve(void 0)):x&&(g=g===null?x:Math.min(g,x))}),p.forEach(b=>{this.#o.delete(b)}),g!==null){const b=Math.max(g-Date.now(),0);this.#a(b)}};#a=m=>{this.#r===null&&(this.#r=window.setTimeout(this.#c,m))};#p=()=>{this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)};#l=m=>{const p=this.#o.get(m);return this.#t.debug(`serving requestId: ${m}`),this.#o.delete(m),p};#u=m=>{const{requestId:p}=m;this.#t.debug(`Response received for invocation requestId: ${p}`);const g=this.#l(p);return g?(g.resolve(m.body),!0):(this.#t.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#h=m=>{this.#t.debug(`Exception received for invocation (requestId = ${m.requestId})`);const p=this.#l(m.requestId);return p?(p.reject(new Error(m.body)),!0):(this.#t.warn(`Received exception for stale/invalid request (requestId = ${m.requestId})`),!1)};#b=({sourceWin:m,sourceOrigin:p,message:g})=>{this.#t.debug(`Received message of type "${g.type}"`);const b=this.#n.get(g.type);return b?(b.forEach(v=>{this.#t.debug(`Invoking message handler ${v.name}`),v({sourceWin:m,sourceOrigin:p,requestId:g.requestId,type:g.type,body:g.body})}),!0):!1};#d=m=>{if(this.#s.size===0||!m.source)return!1;const p=this.#s.get(m.source);return!p||m?.data?.source!==n?!1:(this.#t.debug(`Remoting: Received message of type "${m.data.type}"`),m.data.type===r?this.#u(m.data):m.data.type===s?this.#h(m.data):this.#b({sourceWin:m.source,sourceOrigin:p,message:m.data}),!0)};addSender=m=>{const{origin:p,window:g}=m;if(!p)throw new Error("origin is required");if(!g)throw new Error("window is required");this.#s.set(g,p)};initialize=m=>{this.#i&&this.#i.removeEventListener("message",this.#d),m.addEventListener("message",this.#d),this.#i=m,this.#t.debug(`initialized remoting id: ${this.#e}`)};close=()=>{this.#i&&(this.#i.removeEventListener("message",this.#d),this.#i=null),this.#p(),this.#t.debug(`closed remoting id: ${this.#e}`)};invoke=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v,responseTimeoutMs:h}=m;return new Promise((x,j)=>{const E=i({messageType:b,messageBody:v});this.#o.set(E.requestId,{requestId:E.requestId,resolve:x,reject:j,cancelTime:h?Date.now()+h:null}),p.postMessage(E,g);const{requestId:P}=E;this.#t.debug(`Posted invocation message of type ${b} requestId: ${P||""}`),h&&(this.#t.debug(`scheduling timeout check for requestId: ${P||""} in ${h} ms`),this.#a(h))})};listen=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p)||[];b.push(g),this.#n.set(p,b)};unlisten=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p);if(!b)return;const v=b.indexOf(g);v!==-1&&b.splice(v,1)};send=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v}=m,h=i({messageType:b,messageBody:v,onewayMsg:!0});p.postMessage(h,g),this.#t.debug(`Posted one-way message of type "${b}"`)};removeSender=m=>{const{window:p}=m;p&&this.#s.delete(p)};respond=m=>{const{targetWin:p,targetOrigin:g,requestId:b,response:v}=m,h=i({messageType:r,messageBody:v,requestId:b});p.postMessage(h,g),this.#t.debug(`Response sent to caller for invocation requestId: ${b}`)};raiseException=m=>{const{targetWin:p,targetOrigin:g,requestId:b,ex:v}=m,h=v instanceof Error?v.message:v,x=i({messageType:s,messageBody:h,requestId:b});p.postMessage(x,g),this.#t.debug(`Exception sent to caller for invocation. requestId: ${b}`)}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s,Q:()=>r});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",r=(i,d)=>typeof i===n&&!!d&&!d.startsWith("_");class s{#e;#t="Object";constructor(d,a){this.#e=d,this.#t=a||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const d=[],a=[];return Object.keys(this).forEach(c=>{const m=this[c];(0,t.xH)(m)?a.push(c):r(m,c)&&d.push(c)}),{objectId:this.#e,objectType:this.#t,functions:d,events:a}};_dispose=()=>{};dispose=()=>{}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"(u,o,e){"use strict";e.d(o,{qE:()=>s});const t="module";var n=null,r=null;class s{#e=d=>d.trim().toLowerCase();#t=new Map;#n=new Map;#o=d=>{const{so:a,guestId:c,onDuplicate:m="throw",securityContext:p}=d,g=this.#e(a.id),b={so:a,guestId:c,securityContext:p},v=this.#n.get(c);if(!v){this.#n.set(c,new Map([[g,b]]));return}if(v.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${a.id} already exists for guest ${c}`)}v.set(g,b)};#r=({so:d})=>{if(d._dispose&&typeof d._dispose=="function")try{d._dispose()}catch{}};#i=({objectId:d,guestId:a})=>{if(d===t&&!a)for(const[,m]of this.#n){const p=m.get(d);if(p)return p}const c=a?this.#n.get(a):null;return c?c.get(d)??null:null};#s=({objectId:d,guestId:a}={})=>{if(a){if(!d){const m=this.#n.get(a);m&&m.forEach(this.#r),this.#n.delete(a);return}const c=this.#n.get(a);if(c){const m=c.get(d);m&&this.#r(m),c.delete(d)}}else d&&this.#n.forEach(c=>{const m=c.get(d);m&&this.#r(m),c.delete(d)})};addScriptingObject=(d,a)=>{const{guestId:c,onDuplicate:m="throw",securityContext:p}=a||{};if(!d?.id||!d?._toJSON)throw new Error("Object is not derived from ScriptingObject");const g=this.#e(d.id);if(g===t&&!c)throw new Error("Guest id is required to add Module scripting object");if(c){this.#o({so:d,...a,guestId:c,onDuplicate:m});return}if(this.#t.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${d.id} already exists`)}this.#t.set(g,{so:d,guestId:c,securityContext:p})};getObject=(d,a)=>{const c=this.#e(d);let m=this.#i({objectId:c,guestId:a?.id});m=m??this.#t.get(c)??null;const{so:p}=m||{};return p||null};has=(d,a)=>this.getObject(d,a)!==null;listScriptingObjects=d=>{const a=new Set(this.#t.keys()),c=this.#n.get(d);if(c)for(const m of c.keys())a.add(m);return Array.from(a)};removeScriptingObject=(d,a)=>{const c=this.#e(d);if(a)this.#s({objectId:c,guestId:a});else{this.#s({objectId:c});const m=this.#t.get(c);m&&this.#r(m),this.#t.delete(c)}};removeAllScriptingObjects=d=>{d?this.#s({guestId:d}):(this.#t.forEach(this.#r),this.#t.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"(u,o,e){"use strict";e.d(o,{j:()=>g});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=b=>typeof b!="number"||Number.isNaN(b)?0:b>=1?1:b<=0?0:b,r=b=>Math.round(n(b)*100/5)*5,s=b=>{const h=r(b),x=100,j=(P,w)=>w===0?P:j(w,P%w),E=j(h,x);return{numerator:h/E,denominator:x/E}};class i{#e=0;#t=0;#n=0;constructor(v){const h=s(v);this.#e=h.numerator,this.#t=h.denominator}shouldSample=()=>(this.#n+=1,this.#n<=this.#e?!0:(this.#n===this.#t&&(this.#n=0),!1))}class d{#e={};#t={};#n=new i(.25);constructor(v={}){Object.keys(v).forEach(h=>{this.#e[h]=new i(v[h]),this.#t[h]=v[h]})}shouldSample(v){return this.#e[v]?this.#e[v].shouldSample():this.#n.shouldSample()}setRatio(v,h){this.#e[v]=new i(h),this.#t[v]=h}deleteRatio(v){delete this.#e[v],delete this.#t[v]}getRatio(v){return this.#t[v]}getAllRatios(){return{...this.#t}}}var a=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js");const m=Promise.resolve(),p=/^(?:GTM-|G-)[A-Z0-9-]+(?::\S*)?$/;class g extends t.P{#e;#t;constructor(v){super("analytics"),this.#e=v.logger,this.#t=new d(v.timingEventSamplingRatios??v.samplingRatios),this.#n()}#n=()=>{try{new PerformanceObserver(h=>{const x=h.getEntries();queueMicrotask(()=>{this.#o(x)})}).observe({type:"measure",buffered:!0})}catch(v){this.#e.error({message:"Error while recording performance",exception:v})}};#o=v=>{for(const h of v)if(h.entryType==="measure"&&!p.test(h.name)&&this.#t.shouldSample(h.name)){const x=h.detail??{},j=h.duration.toString(),E=new Date(performance.timeOrigin+h.startTime).toISOString();this.#e.info({message:"timing",event:h.name,duration:j,startTime:E,detail:x}),this.#r(h.name,{...x,duration:j,startTime:E})}};#r=(v,h)=>{const x=`timing:${v}`;window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...h,event:x})};setTimingEventSamplingRatio=v=>{Object.entries(v).forEach(([h,x])=>{this.#t.setRatio(h,x)})};getTimingEventSamplingRatio=v=>{const h={};return v.forEach(x=>{h[x]=this.#t.getRatio(x)}),h};deleteTimingEventSamplingRatio=v=>{v.forEach(h=>{this.#t.deleteRatio(h)})};getAllTimingEventSamplingRatios=()=>this.#t.getAllRatios();sendBAEvent=v=>{const{event:h,...x}=v??{};return h&&(window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...x,event:h}),(0,a.As)(h,x)),m};startTiming=(v,h)=>{if(!v)throw new Error("parameter mark is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=performance.mark(v,{detail:h});return m.then(()=>({name:x?.name,startTime:x?.startTime}))};endTiming=(v,h)=>{if(!v)throw new Error("parameter start is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=v?.name??v,j=performance.getEntriesByName(x,"mark")?.[0],E={startAppId:j?.detail?.appId??h.appId,startAppUrl:j?.detail?.appUrl??h.appUrl,endAppId:h.appId,endAppUrl:h.appUrl};return j?(typeof v=="string"?performance.measure(x,{detail:E,start:x}):performance.measure(x,{detail:E,start:v.startTime}),performance.clearMarks(x)):performance.measure(x,{detail:E,end:performance.now()}),m}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";e.d(o,{QS:()=>d,nE:()=>a,np:()=>s});const t=(()=>{try{return window.parent.document,window.parent}catch{return window}})(),n=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),r=()=>{},s=()=>({productId:t?.emui?.appId??"",productPath:t.location.pathname,productUrl:t.location.href,productPageTitle:t.document.title,version:t?.emui?.version??"",appId:window?.emui?.appId??"",appPath:window.location.pathname,appUrl:window.location.href,appPageTitle:document.title});let i={};const d=()=>({...n(),...i}),a=c=>{i={...i,...c}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";e.d(o,{As:()=>E,E3:()=>h});const t=()=>window.emui?.logRocket,n=1e3,r=3,s=50,i=new Map,d=P=>{i.size<s||i.forEach((w,S)=>{P-w.windowStart>=n&&i.delete(S)})},a=2,c=(P,w)=>{let S=P;for(const A of Object.keys(w))S+=`|${A}:${String(w[A])}`;return S},m=20,p=[];let g="";const b=()=>{const P=t();if(!P)return;const w=sessionStorage.getItem("user");if(w)try{const S=JSON.parse(w),A=S.user_key;if(!A||A===g)return;const D=S.user_name||sessionStorage.getItem("userId")||"",T=S.encompass_instance_id||sessionStorage.getItem("instanceId")||"";P.identify(A,{name:D,instanceId:T}),g=A}catch{}},v=P=>{g=P},h=()=>{g="",p.length=0},x=(P,w,S)=>{const A=c(w,S),D=Date.now(),T=i.get(A);if(T&&D-T.windowStart<n){if(T.count>=r)return;T.count+=1}else d(D),i.set(A,{windowStart:D,count:1});const I=Object.keys(S).length;I>a&&console.warn(`[analytics] lrTrack "${w}" has ${I} properties. Keep it to ${a} or fewer to stay within LogRocket's 2,000 total-property session budget.`,S),P.track(w,S)},j=P=>{for(;p.length>0;){const w=p.shift();w&&x(P,w.event,w.eventEx)}},E=(P,w)=>{const S=t();if(!S){p.length<m&&p.push({event:P,eventEx:w});return}b(),j(S),x(S,P,w)}},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.28.6_@elliemae+pui-diagnostics@3.12.5_@elliemae+pui-logrocket@1.3._cu7aeoxsbpbexfro2txwzofllm/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>Qe});var t=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),r=(Me=>(Me.Analytics="analytics",Me.Application="application",Me.Auth="auth",Me.Form="form",Me.Global="global",Me.Http="http",Me.Loan="loan",Me.LoanV2="loanV2",Me.MemStorage="memstorage",Me.Module="module",Me.Service="service",Me.Session="session",Me.Styling="styling",Me.Transaction="transaction",Me.TransactionTemplate="transactiontemplate",Me.WebSocket="websocket",Me))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(me){this.#n=me}#o=(me,Ue)=>{const cn=new Promise(G=>{setTimeout(()=>{G()},Ue)});return Promise.race([me,cn])};#r=me=>{const{eventName:Ue,scriptingObject:cn,eventParams:G,listeners:ie}=me;ie.forEach(ae=>{ae.criteria&&!(G&&this.#s(G,ae.criteria))||Promise.resolve(ae.callback({obj:cn,eventName:Ue,eventParams:G})).catch(xe=>{this.#n?.warn(`Error in event listener for "${Ue}": ${xe.message}`)})})};#i=async({eventId:me,eventName:Ue,scriptingObject:cn,eventParams:G,feedbackWaitTime:ie})=>{const xe=(this.#e.get(me)||[]).map(Ln=>Ln.criteria&&!(G?this.#s(G,Ln.criteria):!1)?Promise.resolve():this.#o(Ln.callback({obj:cn,eventName:Ue,eventParams:G}),ie));return(await Promise.all(xe)).flat(1/0).filter(Ln=>Ln!==void 0)};#s(me,Ue){return Object.entries(Ue).every(([cn,G])=>{const ie=me[cn];if("eq"in G)return ie===G.eq;if("in"in G)return Array.isArray(G.in)&&G.in.includes(ie);if("includes"in G)return Array.isArray(ie)&&ie.includes(G.includes);if("gt"in G){const ae=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(ae)&&ae>G.gt}if("lt"in G){const ae=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(ae)&&ae<G.lt}if("regex"in G){let ae=this.#t.get(G);if(ae===void 0){try{ae=new RegExp(G.regex)}catch{ae=null}this.#t.set(G,ae)}return ae!==null&&typeof ie=="string"&&ae.test(ie)}return!1})}dispatchEvent=async(me,Ue)=>{const{event:{id:cn,name:G},eventParams:ie,eventOptions:ae}=Ue,{timeout:xe}=ae??{};if(!cn)throw new Error("Event Id is required");const Xe=this.#e.get(cn)||[];return!xe||xe<=0?(this.#r({eventName:G,scriptingObject:me,eventParams:ie,listeners:Xe}),Promise.resolve()):this.#i({eventId:cn,eventName:G,scriptingObject:me,eventParams:ie,feedbackWaitTime:xe})};subscribe=me=>{const{eventId:Ue,callback:cn,criteria:G}=me;if(!Ue)throw new Error("eventId is required");if(!cn)throw new Error("Callback is required");const ie=this.#e.get(Ue)||[],ae=(0,n.A)();return ie.push({token:ae,criteria:G,callback:cn}),this.#e.set(Ue,ie),ae};unsubscribe=me=>{const{eventId:Ue,token:cn}=me;if(!Ue)throw new Error("eventId id is required");if(cn){const G=this.#e.get(Ue)||[],ie=G.findIndex(ae=>ae.token===cn);ie>-1&&(G.splice(ie,1),this.#e.set(Ue,G))}else this.#e.delete(Ue)};unsubscribeAll=()=>{this.#e.clear()}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=Me=>Me.replace(/([^:]\/)\/+/g,"$1"),g=Me=>{const me=document.createElement("a");return me.href=Me,me.href},b=Me=>Me?.replace?.(/\/?$/,"/"),v=(Me,me)=>`${Me.replace(/\/+$/,"")}/${me.replace(/^\/+/,"")}`,h=Me=>/^(\/|https?:\/\/)/.test(Me),x=(Me,me)=>{const Ue=b(me);if(h(Ue)){const{origin:cn}=new URL(Me,window.location.href);return p(new URL(Ue,cn).href)}return p(new URL(Ue,b(Me)).href)},j=(Me,me)=>p(new URL("manifest.json",x(Me,me)).href),E=()=>window.navigator.userAgent.includes("jsdom"),P=Me=>Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=Me=>{try{if(new URL(Me,window.location.href).origin===window.location.origin)return Me;const Ue=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${Ue}/frame.html`}catch{return Me}},S="pui-app-container-",A=Me=>{const me=Me.src??m.default??m,Ue=w(me);if(!Me.queryParams)return Ue;const cn=Me.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${Ue}${Ue.includes("?")?"&":"?"}${cn}`},D=({documentEle:Me,hostUrl:me,manifestPath:Ue,guestId:cn})=>{const G=Me.getElementById(S);G&&(G.id=`${G.id}${cn}`);const ie=x(me,Ue);let ae=Me.getElementsByTagName("base")?.[0];if(ae){ae.href=ie;return}ae=Me.createElement("base"),ae.href=ie,Me.getElementsByTagName("head")[0].appendChild(ae)},T=({id:Me,instanceId:me,manifestPath:Ue,hostUrl:cn,options:G})=>new Promise((ie,ae)=>{const{signal:xe}=G;if(xe?.aborted){ae(new DOMException("iframe creation aborted","AbortError"));return}const Xe=document.createElement("div");Xe.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const Ln=document.createElement("iframe");Ln.setAttribute("id",me),Ln.setAttribute("data-testid",Me),Ln.setAttribute("title",G.title),Ln.setAttribute("allowfullscreen","true"),Ln.setAttribute("allowtransparency","true"),G.permissionPolicy&&Ln.setAttribute("allow",G.permissionPolicy),G.sandbox&&Ln.setAttribute("sandbox",G.sandbox),Ln.setAttribute("style",G.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),Ln.setAttribute("src",A(G));const lt=1e4;let Vn=!1,Vt,nr;const cr=()=>{clearTimeout(Vt),xe?.removeEventListener("abort",nr)},Ar=()=>xe?.aborted?(Vn||(Vn=!0,cr(),Xe.remove(),ae(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(nr=()=>{Ar()},Ar())return;xe?.addEventListener("abort",nr),Vt=setTimeout(()=>{Vn||(Vn=!0,cr(),Xe.remove(),ae(new Error(`iframe for ${Me} failed to load within ${lt}ms`)))},lt),Ln.addEventListener("error",()=>{Vn||(Vn=!0,cr(),Xe.remove(),ae(new Error(`iframe for ${Me} failed to load`)))}),Ln.addEventListener("load",()=>{Vn||Ar()||Ln.contentDocument&&(Vn=!0,cr(),D({documentEle:Ln.contentDocument,hostUrl:cn,manifestPath:Ue,guestId:Me}),ie(Ln))}),Xe.appendChild(Ln);const{containerId:dt}=G;(document.getElementById(dt??"")??document.body).appendChild(Xe)}),I=Me=>document.getElementById(Me),z={create:T,remove:Me=>{const me=I(Me);me&&me.parentElement?.remove()},get:I};var k=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const F=()=>{try{return window.parent.document,window.parent}catch{return window}},L=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),W=Me=>Number(Me.replace("px","")),V=()=>{const{width:Me}=L(),{breakpoints:me}=(0,k.getDefaultTheme)();return Me<=W(me.small)?"small":Me<=W(me.medium)?"medium":"large"};var N=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/cloneDeep.js"),M=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),B=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),$=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),X=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const H=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"}}}}'),Z="latest";var K=(Me=>(Me.DEVELOPMENT="development",Me.PRODUCTION="production",Me))(K||{}),q=(Me=>(Me.SSF="ssf",Me.APPSDK="appsdk",Me))(q||{});class te{#e=H;#t;#n;constructor(me){this.#t=me?.version||Z,this.#n=b(me?.baseUrl||"")}#o=me=>{const{activeEnv:Ue,env:cn,...G}=me,ie=cn[Ue]||{};this.#e=X({},G,ie)};get=(me="",Ue=null)=>N(M(this.#e,me,Ue));set=(me,Ue)=>{B(this.#e,me,Ue)};has=(me="")=>$(this.#e,me);setPreloadedConfig=me=>{this.#e=me};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const Ue=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${Ue?.[0]||Z}`)}return this.#n};load=async me=>{const Ue=me??`${this.#r()}app.config.json`;let cn;try{cn=await fetch(Ue)}catch(G){if(!me&&this.#t!==Z){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:G})}if(cn.ok)try{const G=await cn.json();this.#o(G)}catch(G){if(!me&&this.#t!==Z)await this.load(`${this.#n}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:G})}else{if(!me&&this.#t!==Z){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var ye=(Me=>(Me.USER="USER",Me.PARTNER="PARTNER",Me))(ye||{}),re=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const fe="microFrontendApps",ne=()=>re.env.CI==="true",oe=Me=>ne()?!0:String(Me).toLowerCase()===K.PRODUCTION.toLowerCase(),he=Me=>Me?new URL(Me).pathname:"",ee=Me=>{const me=document.createElement("a");return me.href=Me,me.href},be=(Me,me)=>{const Ue=me.match(/^(?:\d+\.\d+)*/g);return Me.replace(/{SYSTEM_VERSION}/,Ue&&Ue[0]||Z)},We=Me=>!Me||!Me.length?!1:Me.every(me=>typeof me=="string"),Ze=(Me,me)=>{const{mode:Ue=K.PRODUCTION}=me;if(String(Ue).toLowerCase()!==K.PRODUCTION.toLowerCase()&&String(Ue).toLowerCase()!==K.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(Ue)}' for ${Me}`);const{production:cn,development:G,microappManager:ie=q.APPSDK}=me;if(String(ie).toLowerCase()===q.APPSDK.toLowerCase()){if(String(Ue).toLowerCase()===K.PRODUCTION.toLowerCase()){if(!cn)throw new Error(`microFrontendApps.${Me} is missing production section in app.config.json`);if(!We(cn.files))throw new Error("invalid value for production.files")}if(String(Ue).toLowerCase()===K.DEVELOPMENT.toLowerCase()){if(!G)throw new Error(`microFrontendApps.${Me} is missing development section in app.config.json`);if(!We(G.files))throw new Error("invalid value for development.files")}}},nn=({id:Me,config:me,version:Ue="latest"})=>{const{mode:cn=K.PRODUCTION,production:G,development:ie,...ae}=me,xe=oe(cn)?G:ie,Xe=X({id:Me},{name:Me,mode:K.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:ye.USER,isJsModule:!0},ae,{mode:cn},xe);return Xe.hostUrl=b(ee(Xe.hostUrl||"")),Xe.homeRoute=b(Xe.homeRoute)||he(Xe.hostUrl),Xe.manifestPath=b(be(Xe.manifestPath,Ue)),Xe};class ve{#e=[];init=({version:me,appConfig:Ue})=>{const cn=Ue.get(fe);cn&&(this.#e=Object.keys(cn).map(G=>(Ze(G,cn[G]),nn({id:G,config:cn[G],version:me}))))};getConfigById=me=>this.#e.find(Ue=>Ue.id===me)}const ce=/^https?:\/\//i,Te=(Me,me)=>{if(!ce.test(Me))return!1;try{return!Me.startsWith(new URL(me).href)}catch{return!0}},Be=(Me,me)=>{const Ue=[],cn=[];return Me.forEach(G=>{Te(G.href,me)?Ue.push(G):cn.push(G)}),{external:Ue,local:cn}},Pe=Me=>{if(!Me)return;const me=Me,Ue=me.emui?._ASSET_PATH;Ue&&(me.__webpack_public_path__=new URL("../",Ue).href)},Ye=(Me,me)=>{if(!(!Me||!me))try{const Ue=Me;Ue.__webpack_public_path__=new URL("./",me).href}catch{}},Ge=(Me,me)=>{if(!Me)return;if(Me.emui?._ASSET_PATH){Pe(Me);return}Ye(Me,me)},on="ice-script-";class en{#e;constructor(me){this.#e=me}#t=({href:me,isESMModule:Ue=!0,documentEle:cn})=>{const G=cn.createElement("link");G.rel=Ue?"modulepreload":"preload",G.href=me,G.crossOrigin="anonymous",Ue||(G.as="script"),cn.head.appendChild(G)};#n=({id:me,href:Ue,documentEle:cn,isESMModule:G=!0})=>new Promise((ie,ae)=>{const xe=cn.createElement("script");xe.id=me,xe.src=p(Ue),xe.crossOrigin="anonymous",xe.nonce="__CSP_NONCE__",!E()&&G?xe.type="module":xe.async=!1,xe.onload=ie.bind(null,xe.id),xe.onerror=Xe=>{this.#e.error({message:`Error loading script ${xe.src}`,exception:new Error(Xe)}),ae(new Error(`Unable to load script ${xe.src}`,{cause:new Error(Xe)}))},cn.head.appendChild(xe)});#o=async(me,Ue,cn)=>{if(me.length===0)return;const G=me.map(({id:ie,href:ae})=>this.#n({id:ie,href:ae,documentEle:Ue,isESMModule:cn}));await Promise.all(G)};#r=async({scripts:me,documentEle:Ue,isESMModule:cn,hostUrl:G})=>{if(me.length===0)return;if(!G){await this.#o(me,Ue,cn);return}const{external:ie,local:ae}=Be(me,G);await this.#o(ie,Ue,cn),Ge(Ue.defaultView,G),await this.#o(ae,Ue,cn)};load=async(me,Ue)=>{const{documentEle:cn,isESMModule:G}=Ue,ie=/^https?:\/\//i,ae=me.map((xe,Xe)=>{const Ln=`${on}${Ue.name.toLowerCase()}-${Xe}`,lt=ie.test(xe)?xe:new URL(xe,Ue.hostUrl).href;return this.#t({href:lt,documentEle:cn,isESMModule:G}),{id:Ln,href:lt}});return await this.#r({scripts:ae,documentEle:cn,isESMModule:G,hostUrl:Ue.hostUrl}),Ge(cn.defaultView,Ue.hostUrl),ae.map(xe=>xe.id)};remove=(me="",Ue=document)=>new Promise(cn=>{const G=Ue.getElementById(me);if(!G){this.#e.warn(`script with id ${me} not found`),cn();return}G.remove(),cn()});removeDynamicImportedScripts=(me,Ue)=>{const cn=new RegExp(P(me),"i"),G=Ue.getElementsByTagName("script");for(let ie=G.length-1;ie>=0;ie-=1){const ae=G[ie],{src:xe}=ae;cn.test(xe)&&ae.remove()}};removePrefetchLinks=(me,Ue)=>{const cn=new RegExp(P(me),"i"),G=Ue.querySelectorAll('[rel="prefetch"]');for(let ie=G.length-1;ie>=0;ie-=1){const ae=G[ie],{href:xe}=ae;cn.test(xe)&&ae.remove()}}}const hn="ice-style-";class Fe{#e;constructor(me){this.#e=me}#t=({id:me,href:Ue,documentEle:cn})=>new Promise((G,ie)=>{const ae=cn.createElement("link");ae.id=me,ae.nonce="__CSP_NONCE__",ae.rel="stylesheet",ae.href=p(Ue),ae.onload=G.bind(null,ae.id),ae.onerror=xe=>{this.#e.error({message:`Error loading stylesheet ${ae.href}`,exception:new Error(xe)}),ie(new Error(`Unable to load stylesheet ${ae.href}`,{cause:new Error(xe)}))},cn.head.appendChild(ae)});load=async(me,Ue)=>{const cn=[],G=me.map((ie,ae)=>{const xe=new URL(ie,Ue.hostUrl),Xe=`${hn}${Ue.name.toLowerCase()}-${ae}`;return cn.push(Xe),this.#t({id:Xe,href:xe.href,documentEle:Ue.documentEle})});return await Promise.all(G),cn};remove=(me="",Ue=document)=>new Promise(cn=>{const G=Ue.getElementById(me);if(!G){this.#e.warn(`style with id ${me} not found`),cn();return}G.remove(),cn()});removeDynamicImportedStyles=(me,Ue)=>{const cn=new RegExp(P(me),"i"),G=Ue.querySelectorAll('[rel="stylesheet"]');for(let ie=G.length-1;ie>=0;ie-=1){const ae=G[ie],{href:xe}=ae;cn.test(xe)&&ae.remove()}}}const ue=Me=>Me.replace(/\/\d+\.\d+/,"/latest"),Se=Me=>{let me;try{me=new URL(Me)}catch{return!1}return me.protocol==="http:"||me.protocol==="https:"},He=new Map,ze={get:async({hostUrl:Me,manifestPath:me})=>{const Ue=j(Me,me),cn=He.get(Ue);if(cn)return cn;const G=async ie=>{const ae=await fetch(ie);if(!ae.ok)throw new Error(`unable to get manifest ${ie}`);if(!(ae.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${ie} is not a valid json`);const Xe=await ae.json();return He.set(ie,Xe),Xe};try{return await G(Ue)}catch(ie){const ae=ue(me);if(me!==ae){const xe=j(Me,ae);return await G(xe)}throw ie}},getFullFileNameofAssets:(Me,me=[])=>me.reduce((Ue,cn)=>{const G=Me[cn];if(G)Ue.push(G);else if(Se(cn))Ue.push(cn);else throw new Error(`unable to locate ${cn} in manifest`);return Ue},[]),clearCache:()=>He.clear()};class qe{#e;#t;#n;#o;#r;constructor(me){this.#t=me.guest,this.#e=me.containerId,this.#n=me?.version||Z,this.#o=me.soManager,this.#r=me.eventManager}get version(){return this.#n}getObject=me=>{try{const Ue=this.#o.getObject(me,this.#t);if(!Ue)return Promise.resolve(null);const cn=new d.V(Ue.id,Ue.objectType);return Object.keys(Ue).forEach(G=>{const ie=Ue[G];ie instanceof i.Jh?Object.defineProperty(cn,G,{value:new i.Jh({name:G,objectId:Ue.id}),enumerable:!0}):(0,a.Q)(ie,G)&&Object.defineProperty(cn,G,{value:(...ae)=>{const xe=cn[G]?.callContext?.callChain;return Object.defineProperty(ie,"callContext",{value:{guest:this.#t,...xe?.length?{callChain:xe}:{}},configurable:!0,enumerable:!0,writable:!0}),Ue[G](...ae)},enumerable:!0})}),Promise.resolve(cn)}catch(Ue){return Promise.reject(Ue)}};setAppWindowSize=me=>{if(!this.#e)return;const{size:Ue}=me,cn=document.getElementById(this.#e);cn&&(cn.style.height=`${Ue.height}px`,cn.style.width=`${Ue.width}px`)};subscribe=me=>this.#r.subscribe(me);unsubscribe=me=>{this.#r.unsubscribe(me)}}class ln{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:me,app:Ue})=>{if(!me)throw new Error("appId is required");if(me==="__proto__"||me==="constructor"||me==="prototype")throw new Error(`Invalid appId: ${me}`);if(!Ue?.uuid)throw new Error("application uuid is required");if(window.emui[me]=window.emui[me]||[],Array.isArray(window.emui[me])){const cn=window.emui[me].findIndex(G=>G.uuid===Ue.uuid);cn>-1?window.emui[me][cn]=Ue:window.emui[me].push(Ue)}else{let cn=window.emui[me];cn?.uuid===Ue.uuid?(cn={...cn,...Ue},window.emui[me]=[cn]):typeof cn.init>"u"?window.emui[me]=[{...cn,...Ue}]:window.emui[me]=[window.emui[me],Ue]}};get=({id:me,instanceId:Ue})=>{const cn=window.emui?.[me];return Array.isArray(cn)?cn.find(ie=>ie.uuid===Ue)??null:cn?.uuid===Ue?cn:null};add=({id:me,instanceId:Ue,documentEle:cn})=>{if(!Ue)throw new Error(`instanceId (uuid) is required to register application ${me}`);const G={uuid:Ue,init:null,mount:null,unmount:null},ie=window.emui[me];ie?Array.isArray(ie)?ie.push(G):window.emui[me]=[ie,G]:window.emui[me]=[G],cn.defaultView&&(cn.defaultView.emui=cn.defaultView.emui??{},cn.defaultView.emui.uuid=Ue)};delete=({id:me,instanceId:Ue})=>{if(Array.isArray(window.emui[me])){const cn=window.emui[me].findIndex(G=>G.uuid===Ue);cn>-1&&window.emui[me].splice(cn,1),window.emui[me].length===0&&delete window.emui[me]}else delete window.emui[me]}}const Le=12e4,Ae=["click","scroll","keypress","touchstart"],Cn=/\.css$/,Rn=Me=>Cn.test(Me);class Qe{#e;#t;#n;#o;#r;#i=new ve;#s;#c;#a=new Map;#p=new Map;#l=new ln;#u=!0;constructor(me){const{logger:Ue}=me;if(!Ue)throw new Error("logger is required");this.#e=me.logger,this.#t=me.version,this.#u=me.extendSession??!0,this.#r=new te({version:me.version,baseUrl:me.appConfigBaseUrl}),this.#n=new en(Ue),this.#o=new Fe(Ue),this.#s=new s.qE,this.#c=new c(this.#e)}#h(me){return typeof me=="function"}#b=me=>me instanceof i.b3||typeof me?.subscribe=="function";#d=(me,Ue)=>`Application ${me} with instance id ${Ue} is not found. Most probably the appId property of app.config.json is not set to ${me}`;#j=(me,Ue=document)=>{const{elementIds:cn}=this.#a.get(me)||{};cn&&cn.forEach(G=>{const ie=Ue.getElementById(G);ie&&ie.remove()})};#g=({id:me,instanceId:Ue,documentEle:cn,elementIds:G,microFEHost:ie})=>{const ae=this.#l.get({id:me,instanceId:Ue});if(!ae)throw new Error(this.#d(me,Ue));this.#a.set(Ue,{id:me,instanceId:Ue,elementIds:G,guest:{guestWindow:cn?.defaultView,...ae},microFEHost:ie})};#f=async({id:me,instanceId:Ue,containerId:cn,hostUrl:G,manifestPath:ie,homeRoute:ae,initialRoute:xe,history:Xe,theme:Ln,microFEHost:lt})=>{const Vn=this.#l.get({id:me,instanceId:Ue});if(!Vn)throw new Error(`Application ${me} with instance id ${Ue} is not found. Most probably the appId property of app.config.json is not set to ${me}`);if(!Vn.init||typeof Vn.init!="function")throw new Error(`Application ${me} with instance id ${Ue} doesn't expose init method`);const Vt=lt??new qe({guest:{id:me},version:this.#t,containerId:cn,logger:this.#e,soManager:this.#s,eventManager:this.#c});return Vn.init({host:Vt,hostUrl:G,manifestPath:ie,homeRoute:ae,initialRoute:xe,prevState:null,history:Xe,theme:Ln,hostBreakpoint:V(),hostViewportSize:L(),logger:this.#e})};#m=async me=>{try{const{id:Ue,instanceId:cn,files:G,name:ie,hostUrl:ae,documentEle:xe,isJsModule:Xe}=me;this.#e.debug(`Application ${Ue} with instance id ${cn} is loading...`);let Ln=G;const lt=me.manifest??await ze.get(me);Ln=ze.getFullFileNameofAssets(lt,G);const Vn=Ln.filter(dt=>Rn(dt)),Vt=Ln.filter(dt=>!Rn(dt)),nr={name:ie,hostUrl:ae,documentEle:xe,isESMModule:Xe},[cr,Ar]=await Promise.all([this.#o.load(Vn,nr),this.#n.load(Vt,nr)]);this.#g({id:Ue,instanceId:cn,documentEle:xe,elementIds:[...cr,...Ar],microFEHost:me.microFEHost}),me.selfInitialize||await this.#f(me),this.#e.audit(`Application ${Ue} with instance id ${cn} loaded`)}catch(Ue){const cn=`Application load failed. Unable to load one or more resources for ${me.id} with instance id ${me.instanceId}. ${Ue.message}`;throw this.#e.error({message:cn,appId:me.id,exception:Ue}),new Error(cn)}};#x=({id:me,instanceId:Ue,hostUrl:cn,documentEle:G})=>{this.#e.debug(`Application ${me} with instance id ${Ue} unloading...`),this.#l.get({id:me,instanceId:Ue})&&(this.#j(Ue,G),this.#n.removeDynamicImportedScripts(cn,G),this.#n.removePrefetchLinks(cn,G),this.#o.removeDynamicImportedStyles(cn,G),this.#l.delete({id:me,instanceId:Ue}),this.#e.audit(`Application ${me} with instance id ${Ue} unloaded`))};#w=async({id:me,instanceId:Ue})=>{const cn=this.#l.get({id:me,instanceId:Ue});if(!cn?.mount||typeof cn?.mount!="function")throw new Error(`Application ${me} with instance id ${Ue} doesn't expose mount method`);return cn.mount({containerId:`${S}${me}`,hostBreakpoint:V(),hostViewportSize:L()})};#S=({id:me,instanceId:Ue})=>{const cn=this.#l.get({id:me,instanceId:Ue});if(!cn?.unmount)return null;if(typeof cn.unmount!="function")throw new Error(`Application ${me} with instance id ${Ue} doesn't expose unmount method`);return cn.unmount({containerId:`${S}${me}`})};#E=({id:me,instanceId:Ue})=>{if(this.#u)try{const cn=this.#s.getObject(r.Application);if(!cn){this.#e.warn({message:`Application scripting object not available for ${me} to manage session`});return}const G=this.#a.get(Ue);if(!G)return;G.keepAlive=t(async()=>{try{await cn.keepSessionAlive()}catch(ae){this.#e.error(`Error keeping session alive. ${ae.message}`)}},Le);const ie=z.get(Ue);Ae.forEach(ae=>{ie?.contentDocument?.addEventListener(ae,G.keepAlive)})}catch(cn){this.#e.warn({message:`Application scripting object not available for ${me} to manage session`,exception:cn})}};#y=(me,Ue)=>{const ie=this.#s.getObject(r.Module,{id:me})?._setUnloadHandler;typeof ie=="function"&&ie(()=>this.closeApp(Ue))};#v=async me=>{const Ue=this.#s.getObject(r.Module,{id:me});if(!Ue)return!0;try{const cn=await this.#c.dispatchEvent(Ue,{event:{id:"module.unloading",name:"unloading"},eventParams:{moduleId:me},eventOptions:{timeout:1e3}});if(Array.isArray(cn)&&cn.some(G=>G===!1))return this.#e.info(`Unload denied by guest ${me} via module.unloading event`),!1}catch(cn){this.#e.warn({message:`Error dispatching module.unloading event for ${me}`,exception:cn})}return!0};#_=me=>{if(!this.#u||!me)return;const{keepAlive:Ue,instanceId:cn}=me;if(Ue){const ie=z.get(cn)?.contentDocument;ie&&Ae.forEach(ae=>{ie.removeEventListener(ae,Ue)}),me.keepAlive?.cancel()}};addScriptingObject=(me,Ue)=>{if((0,d.h)(me)){const cn=this.cloneScriptingObject(me);this.#s.addScriptingObject(cn,Ue)}else this.#s.addScriptingObject(me,Ue)};cloneScriptingObject=me=>{if(!me)throw new Error("proxy is required");const Ue=new a.P(me.id,me.objectType);let cn=[];return Object.keys(me).forEach(G=>{const ie=me[G];if(this.#b(ie)){const ae=new i.Jh({name:ie.name||G,objectId:Ue.id});Object.defineProperty(Ue,G,{value:ae,enumerable:!0});const xe=({eventParams:Ln,eventOptions:lt})=>this.dispatchEvent({event:ae,eventParams:Ln,eventOptions:lt}),Xe=ie.subscribe(xe);cn.push(()=>{ie.unsubscribe(Xe)})}else if(this.#h(ie)&&(Object.defineProperty(Ue,G,{value:async(...ae)=>{const xe=Ue[G]?.callContext;if(xe?.guest){const Ln=xe.callChain??[],lt=xe.guest.id,Vn=this.#p.get(lt),Vt={id:lt};Vn&&(Vt.metadata=Vn),Object.defineProperty(ie,"callContext",{value:{callChain:[...Ln,Vt]},configurable:!0,enumerable:!0,writable:!0})}const Xe=await ie(...ae);return(0,d.h)(Xe)?this.cloneScriptingObject(Xe):Xe},enumerable:!0}),G==="dispose")){const ae=Ue.dispose;Object.defineProperty(Ue,G,{value:()=>(Ue._dispose(),ae.apply(Ue)),enumerable:!0})}}),Ue._dispose=()=>{cn.forEach(G=>{G?.()}),cn=[]},Ue};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async me=>{if(!me)throw new Error("instanceId is required");const Ue=this.#a.get(me);if(!Ue){this.#e.warn(`Application with instance id ${me} is not found`);return}const{id:cn}=Ue;if(!await this.#v(cn))return;const G=this.#i.getConfigById(cn);if(!G){this.#e.warn(`Configuration for application ${cn} is not found`),this.#a.delete(me),z.remove(me);return}const{hostUrl:ie}=G;try{this.#_(Ue),await this.#S({id:cn,instanceId:me})}finally{const ae=z.get(me);ae?.contentDocument&&this.#x({id:cn,instanceId:me,hostUrl:ie,documentEle:ae.contentDocument}),this.#a.delete(me),this.#p.delete(cn),z.remove(me)}};dispatchEvent=async me=>{const{event:{id:Ue,name:cn},eventOptions:G={}}=me,{guestId:ie}=G;if(!Ue)throw new Error("Event Id is required");const ae=Ue.split(".")?.[0],xe=ie?this.#s.getObject(ae,{id:ie}):this.#s.getObject(ae);return xe?this.#c.dispatchEvent(xe,me):(this.#e.warn(`Attempt to dispatch event ${cn} on unknown object ${ae}`),Promise.resolve())};getApp=me=>this.#a.get(me)?.guest;getApps=()=>[...this.#a.values()].map(me=>me.guest);init=async me=>{me?this.#r.setPreloadedConfig(me):await this.#r.load(),this.#i.init({version:this.#t,appConfig:this.#r}),this.#A()};#A=()=>{const me=this.#r.get("microFrontendApps")??{},Ue=new Set;Object.keys(me).forEach(cn=>{const G=this.#i.getConfigById(cn);if(G?.hostUrl)try{Ue.add(new URL(G.hostUrl).origin)}catch{}}),Ue.forEach(cn=>{const G=document.createElement("link");G.rel="preconnect",G.href=cn,G.crossOrigin="anonymous",document.head.appendChild(G)})};mountApp=async me=>{if(!me)throw new Error("instanceId is required");const{id:Ue}=this.#a.get(me)||{};if(!Ue)throw new Error(`Application with instance id ${me} is not found`);const cn=this.#i.getConfigById(Ue);if(!cn)throw new Error(`Application with id ${Ue} is not found`);await this.#w({...cn,instanceId:me})};#O=(me,Ue,cn)=>{const G=new qe({guest:{id:cn.id},version:this.#t,containerId:cn.containerId,logger:this.#e,soManager:this.#s,eventManager:this.#c}),ie=me.defaultView;ie&&(ie.emui=ie.emui??{},ie.emui.__host=G,ie.emui.getHost=()=>ie.emui?.__host??null);const ae=me.createElement("link");return ae.rel="preconnect",ae.href=Ue.hostUrl,ae.crossOrigin="anonymous",me.head.appendChild(ae),G};openApp=async me=>{const{id:Ue,frameOptions:cn,history:G,theme:ie,homeRoute:ae,initialRoute:xe,metadata:Xe,selfInitialize:Ln}=me,lt=(0,n.A)();Xe&&this.#p.set(Ue,Xe);const Vn=this.#i.getConfigById(Ue);if(!Vn)throw new Error(`Application ${Ue} is not found in app config`);const Vt=ze.get(Vn);Vt.catch(()=>{});const nr=await z.create({id:Ue,instanceId:lt,manifestPath:Vn.manifestPath,hostUrl:Vn.hostUrl,options:{title:Vn.name,...cn}});if(!nr?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:Ue,instanceId:lt,documentEle:nr.contentDocument});const cr=this.#O(nr.contentDocument,Vn,{id:Ue,containerId:cn?.containerId}),Ar=await Vt;return await this.#m({instanceId:lt,history:G,theme:ie,documentEle:nr.contentDocument,containerId:cn?.containerId,...Vn,homeRoute:ae??Vn.homeRoute,initialRoute:xe,microFEHost:cr,selfInitialize:Ln,manifest:Ar}),Ln||await this.#w({instanceId:lt,...Vn}),this.#E({id:Ue,instanceId:lt}),this.#y(Ue,lt),lt}catch(cr){throw this.#x({id:Ue,instanceId:lt,hostUrl:Vn.hostUrl,documentEle:nr.contentDocument}),z.remove(lt),cr}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=me=>{this.#s.removeAllScriptingObjects(me)};removeScriptingObject=(me,Ue)=>{this.#s.removeScriptingObject(me,Ue)};warmUp=me=>{const Ue=this.#i.getConfigById(me);Ue&&ze.get(Ue).catch(()=>{})};unmountApp=async me=>{if(!me)throw new Error("instanceId is required");const{id:Ue}=this.#a.get(me)||{};if(!Ue)throw new Error(`Application with instance id ${me} is not found`);const cn=this.#i.getConfigById(Ue);if(!cn)throw new Error(`Application with id ${Ue} is not found`);await this.#S({...cn,instanceId:me})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>W});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js");class i{#e;#t;#n;#o=new Map;static DEFAULT_THROTTLE_MS=1e4;constructor(N){this.#e=N.logger,this.#t=N.enabled??!0,this.#n=N.throttleMs??i.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(N,M){if(!this.#t){this.#e.debug(M);return}if(this.#n>0){const B=performance.now(),$=this.#o.get(N);if($!==void 0&&B-$<this.#n){this.#e.debug(M);return}this.#o.set(N,B)}this.#e.audit(M)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:V}=window;try{return V?.location?.href}catch{return null}},g=V=>{if(!V||V==="about:blank")return"*";try{const{origin:N}=new URL(V);return N==="null"||!N?"*":N}catch{try{const{origin:N}=new URL(V,document.baseURI);return N==="null"||!N?"*":N}catch{return"*"}}},b=()=>window.self!==window.parent,v=(V,N)=>{const M=N||document.body,B=document.defaultView?.getComputedStyle?.(M,null),$=B?B[V]:"0";return parseInt($,10)},h="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},E=(V,N)=>!!(window.opener&&V.source===window.opener||N&&V.data?.handshakeToken===N),P=()=>new Promise((V,N)=>{if(b())V({origin:g(document.referrer||p()),window:window.parent});else{const M=window,B=j();let $;const X=H=>{if(E(H,B)){const{source:Z,type:K}=H.data||{};if(Z===h&&K===s.G.HandShake){const{origin:q}=H,te=H.source;clearTimeout($),(0,r._)({targetWin:te,targetOrigin:q,messageType:s.G.HandShakeAck,messageBody:{}}),M.removeEventListener("message",X),V({origin:q,window:te})}}};$=setTimeout(()=>{M.removeEventListener("message",X),N(new Error(`Host handshake timed out after ${x}ms`))},x),M.addEventListener("message",X)}});let w=!1;const S=V=>{w=V},A=(V=null)=>{let N=V;const M=()=>{if(!N&&(N=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!N))throw new Error("Guest definition not found");return N};window.elli=window.elli??{},window.elli.script={guest:{create:(B,$)=>M().addScript(B,$)},connect:B=>(w||console.warn("elli.script.connect is deprecated. Please use connect method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.connect(params);"),M().connect(B)),getObject:B=>(w||console.warn("elli.script.getObject is deprecated. Please use getObject method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.getObject(objectName);"),M().getObject(B)),setLogLevel:B=>(w||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),M().setLogLevel(B)),subscribe:(B,$,X,H)=>(w||console.warn("elli.script.subscribe is deprecated. Please use subscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.subscribe({ eventId: `${objectId}.${eventName}`, callback: (event) => { console.log(event); });"),M().subscribe({eventId:`${B}.${$}`,callback:Z=>X(Z?.obj,Z?.eventParams,Z?.eventOptions),criteria:H?.criteria})),unsubscribe:(B,$,X)=>(w||console.warn("elli.script.unsubscribe is deprecated. Please use unsubscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.unsubscribe({ eventId: `${objectId}.${eventName}`, token });"),M().unsubscribe({eventId:`${B}.${$}`,token:X}))}};try{A()}catch{}var D=null;const T=12e4,I=2e3,U={eventFeedback:!0},z=()=>{const{document:V}=window,N=V.body,M=V.documentElement,$={height:N.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(N.scrollWidth,M.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:g(V.referrer||p()),messageType:s.G.GuestResize,messageBody:$}),window.removeEventListener("load",z)};b()&&window.addEventListener("load",z);const k={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},F=["click","scroll","keypress","touchstart"],L=()=>{const V=document.currentScript?.src||"file:///var/opt/jenkins/workspace/UIPlatform_app-sdk_master/601/node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",N=V?new URL(V).hostname:"localhost";return k[N]||k["cdn.mortgagetech.q1.ice.com"]};class W{#e;#t;#n;#o=!1;#r=null;#i=!1;#s=new Map;#c=null;#a=null;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d(){if(!this.#u||!this.#l)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#u,hostOrigin:this.#l}}#j=!1;#g=null;#f=null;#m=null;#x=!0;#w=T;#S;#E=null;#y;constructor(N){const{console:M=!1,url:B=window.__ICE__?.diagnosticsUrl||L(),index:$="ssf-guest-v2",team:X="ICE",appName:H="SSF Guest V2 Application"}=N?.logger??{};this.#S=N?.logger,this.#j=N?.usesDevConnectAPI??!1,this.#x=N?.keepAlive??!0,this.#w=N?.keepAliveInterval??T;const Z=M?(0,m.Console)():(0,m.http)(B);this.#t=N?.appLogger??(0,m.logger)({transport:Z,index:$,team:X,appName:H}),this.#y=new i({logger:this.#t,enabled:N?.auditOperations,throttleMs:N?.auditThrottleMs}),(0,m.webvitals)(this.#t),(0,m.logUnhandledErrors)(this.#t),this.#e=(0,t.A)(),this.#n=new r.K(this.#t,this.#e),A(this),this.#t.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#e})}#v=()=>({guestId:this.#c,guestTitle:this.#a,guestUrl:this.#p});#_=N=>{if(!N||!N.objectId)throw this.#t.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const M=new d.V(N.objectId,N.objectType);return N.functions&&N.functions.forEach(B=>{Object.defineProperty(M,B,{value:async(...$)=>{const H=M[B]?.callContext?.callChain;return this.#A({objectId:M.id,functionName:B,functionParams:[...$],callerChain:H})},enumerable:!0})}),N.events&&N.events.forEach(B=>{Object.defineProperty(M,B,{value:new a.b3({objectId:M.id,name:B,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${M.id}")`),M};#A=async({objectId:N,functionName:M,functionParams:B,callerChain:$})=>{this.#t.debug(`Invoking scripting object method ${N}.${M}()...`);const X=[];if(B)for(let te=0;te<B.length;te+=1){const ye=B[te];ye instanceof Promise&&X.push(ye.then(re=>{B[te]=re}))}await Promise.all(X);const{hostWindow:H,hostOrigin:Z}=this.#d(),K=await this.#n.invoke({targetWin:H,targetOrigin:Z,messageType:s.G.ObjectInvoke,messageBody:{objectId:N,functionName:M,functionParams:B,...$?.length?{callerChain:$}:{}}}),q=this.#C(K);return this.#y.log(`invoke:${N}.${M}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:N,scriptingMethod:M,...this.#v()}),q};#O(N,M){return(0,c.ts)(N,M,{regexCache:this.#b})}#C=N=>N?.type==="object"&&"object"in N?this.#_(N.object):N?.type==="value"?N.value:N;#T=({body:N})=>{N?.logLevel&&(this.#t.setLogLevel(N.logLevel),this.#t.debug(`Log level changed by host to ${N.logLevel}`)),this.#c=N?.guestId??null,this.#a=N?.guestTitle??null,this.#p=N?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#v()})};#P=()=>{window.focus()};#D=async()=>{await this.close(),window.close()};#R=()=>{b()||(this.#h=setInterval(()=>{this.#u?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#I=async({sourceWin:N,sourceOrigin:M,requestId:B,body:$})=>{const X=this.#_($.object);if(X){const H=(0,a._s)(X.id,$.eventName);this.#t.debug(`Received event "${H}" from host`);let Z;$.eventHandler?Z=[{callback:window[$.eventHandler],token:(0,t.A)()}]:Z=this.#s.get(H)||[];const K=[];if(Z.forEach(q=>{if(q?.callback){if(q.criteria&&!($.eventParams?this.#O($.eventParams,q.criteria):!1)){this.#t.debug(`Event ${H} did not match criteria for subscriber ${q.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${q.callback.name} for event ${H}`);const te=q.callback({obj:X,eventName:$.eventName,eventParams:$.eventParams,eventOptions:$.eventOptions});te instanceof Promise?K.push(te):typeof te<"u"&&K.push(Promise.resolve(te))}}),B){const q=await Promise.all(K);this.#n.respond({targetWin:N,targetOrigin:M,requestId:B,response:q}),this.#y.log(`event:${H}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:H,scriptingObject:X.id,...this.#v()})}else this.#y.log(`event:${H}`,{message:"Guest proxy processed event from host",scriptingEventId:H,scriptingObject:X.id,...this.#v()})}};#k=async()=>{if(!(!this.#g||!this.#f||!this.#m))try{await fetch(`${this.#m}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(N){this.#t.warn(`Failed to extend token lifetime: ${N.message}`)}};#F=async()=>{if(this.#g&&this.#f&&this.#m)try{await fetch(`${this.#m}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{method:"POST"})}catch(N){this.#t.error(`Error revoking token. ${N.message}`)}finally{this.#g=null,this.#f=null}};#M=async()=>{if(this.#x)try{const N=await Promise.race([this.getObject("application"),new Promise(M=>{setTimeout(()=>M(null),I)})]);N?(this.#E=n(async()=>{try{await N.keepSessionAlive(),await this.#k()}catch(M){this.#t.error(`Error keeping session alive. ${M.message}`)}},this.#w,{leading:!1}),F.forEach(M=>{document.addEventListener(M,this.#E)})):this.#t.warn("Application object not available to send keep alive")}catch(N){this.#t.error(`Error getting application object. ${N.message}`)}};addScript=async(N,M)=>{if(!this.#o&&N){await this.connect();const B=document.createElement("script");B.setAttribute("src",N),B.setAttribute("type","module"),await new Promise(($,X)=>{let H,Z;const K=()=>{B.removeEventListener("load",H),B.removeEventListener("error",Z)};H=()=>{K(),this.#o=!0,S(!0),$()},Z=()=>{K(),X(new Error(`Failed to load script: ${N}`))},B.addEventListener("load",H),B.addEventListener("error",Z),this.#r=M.appendChild(B)})}};close=async()=>{this.#i&&(this.#u&&this.#l&&(this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#l,window:this.#u})),this.#n.close(),this.#h&&(clearInterval(this.#h),this.#h=null),this.#E&&F.forEach(N=>{document.removeEventListener(N,this.#E)}),await this.#F(),window.removeEventListener("beforeunload",this.close),this.#i=!1,this.#t.audit({message:"Guest disconnected from host",...this.#v()}),this.#c=null,this.#p=null,this.#a=null)};connect=async N=>{if(!this.#i){let M=window,B={...U};if(N){const{window:X,...H}=N;X&&(M=X),B={...B,...H}}const $=await P();this.#l=$.origin,this.#u=$.window,this.#n.initialize(M),this.#n.addSender({origin:this.#l,window:this.#u}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#I.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#T.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#P.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#D.bind(this)}),this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestReady,messageBody:B}),this.#i=!0,this.#R(),this.#j&&await this.getAuthToken(),await this.#M(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#g&&this.#i)try{const N=await this.getObject("auth");if(N){const M=await N.getAccessToken();this.#g=M?.access_token,this.#m=M?.host_name,this.#f=M?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(N){this.#t.error(`Error getting access token from auth object. ${N.message}`)}return this.#g};getObject=async N=>{if(this.#t.debug(`Retrieving scripting object "${N}" from host...`),!this.#i)throw new Error("Not connected to host");const{hostWindow:M,hostOrigin:B}=this.#d(),$=await this.#n.invoke({targetWin:M,targetOrigin:B,messageType:s.G.ObjectGet,messageBody:{objectId:N}}),X=this.#_($.object);return this.#y.log(`getObject:${N}`,{message:"Received scripting object from host",scriptingObject:N,...this.#v()}),X};listObjects=async()=>{if(this.#t.debug("Retrieving names of scripting objects exposed by host..."),!this.#i)throw new Error("Not connected to host");const{hostWindow:N,hostOrigin:M}=this.#d(),B=await this.#n.invoke({targetWin:N,targetOrigin:M,messageType:s.G.ListObjects,messageBody:{}});return this.#y.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:B,...this.#v()}),B};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:N}=this.#r;N?.removeChild?.(this.#r)}};setLogLevel=N=>{this.#t.setLogLevel(N),this.#t.debug(`Log level changed by guest to ${N}`)};subscribe=N=>{const{eventId:M,criteria:B,callback:$}=N;this.#t.debug(`Registering subscription for event ${M}`);const X=this.#s.get(M.toLowerCase())||[],H=(0,t.A)();X.push({callback:$,token:H,criteria:B}),this.#s.set(M.toLowerCase(),X);const{hostWindow:Z,hostOrigin:K}=this.#d();return this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:M,criteria:B,token:H}}),this.#t.debug(`Subscribed to event ${M} with token ${H}`),H};unsubscribe=N=>{const{eventId:M,token:B}=N,$=this.#s.get(M.toLowerCase());if($){const X=$.length,H=$.filter(Z=>Z.token!==B);if(H.length<X){this.#s.set(M.toLowerCase(),H);const{hostWindow:Z,hostOrigin:K}=this.#d();this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:M,token:B}}),this.#t.debug(`Unsubscribed from event ${M}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.28.6_@elliemae+pui-diagnostics@3.12.5/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>z});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.5_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(k,F){return(0,c.of)(F)?(0,c.ts)(k,F):!0}var g=(k=>(k.Popup="popup",k.Embed="embed",k))(g||{}),b=(k=>(k.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",k.AllowDownloads="allow-downloads",k.AllowForms="allow-forms",k.AllowModals="allow-modals",k.AllowOrientationLock="allow-orientation-lock",k.AllowPointerLock="allow-pointer-lock",k.AllowPopups="allow-popups",k.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",k.AllowPresentation="allow-presentation",k.AllowSameOrigin="allow-same-origin",k.AllowScripts="allow-scripts",k.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",k.AllowTopNavigation="allow-top-navigation",k.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",k))(b||{});const v=k=>{if(k==="about:blank")return"*";try{const{origin:F}=new URL(k);return F==="null"||!F?k:F}catch{const{origin:L}=new URL(k,document.baseURI);return L}},h=k=>k.flat(1/0).filter(F=>F!==void 0);function x(k){return typeof k=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com"],E=["localhost","127.0.0.1"],P=k=>k.split(".").slice(-2).join("."),w=k=>E.includes(k)||j.some(F=>k===F.slice(1)||k.endsWith(F)),S=k=>{const F=P(window.location.hostname),L=P(k);return F===L},A=k=>{try{const{hostname:F}=new URL(k,document.baseURI);return w(F)||S(F)}catch{return!1}};class D{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;constructor(F){const{guestId:L,domElement:W=null,title:V,url:N,window:M,searchParams:B={},openMode:$=g.Embed,remoting:X,perfTracker:H,handshakeToken:Z}=F;this.id=L,this.title=V,this.url=N,this.origin=v(N),this.searchParams=B,this.domElement=W,this.window=M,this.openMode=$,this.capabilities={},this.#t=H,this.#e=X,this.#n=Z}dispose=()=>{if(this.openMode===g.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#e.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(F=>{let L=0;const W=5;let V;const N=()=>{clearInterval(V),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!0)};V=setInterval(()=>{L>=W?(clearInterval(V),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!1)):(this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}}),L+=1)},1e3),this.#e.listen({messageType:s.G.HandShakeAck,callback:N})});init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===g.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(F,L)=>{let W;if(this.#t.enabled){const V=`ScriptingObject.Event.${F.object.objectId}.${F.eventName}`;W=this.#t.start(V,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.ObjectEvent,messageBody:F,responseTimeoutMs:L}).finally(()=>{W&&this.#t.end(W,{appId:this.id,appUrl:this.url})})};send=F=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...F})}}const T=new Set(["SSF.Guest.Load"]);class I{#e;#t;#n;#o=new Set;#r;#i=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(F){this.#e=F.analyticsObj,this.#t=F.enabled??!1,this.#n=F.samplingRatio??I.DEFAULT_SAMPLING_RATIO,this.#r=F.dedupWindowMs??I.DEFAULT_DEDUP_WINDOW_MS,this.#s=F.onError}get enabled(){return this.#t}start(F,L){if(this.#t)try{const W=T.has(F);return!W&&!this.shouldTrack(F)?void 0:(!W&&!this.#o.has(F)&&(this.#e.setTimingEventSamplingRatio({[F]:this.#n}),this.#o.add(F)),this.#e.startTiming(F,L).catch(V=>{this.reportError(`startTiming failed: ${V.message}`)}),F)}catch(W){this.reportError(`startTiming failed: ${W.message}`);return}}end(F,L){if(F)try{this.#e.endTiming(F,L).catch(W=>{this.reportError(`endTiming failed: ${W.message}`)})}catch(W){this.reportError(`endTiming failed: ${W.message}`)}}reportError(F){try{this.#s?.(F)}catch{}}shouldTrack(F){if(this.#r<=0)return!0;const L=performance.now(),W=this.#i.get(F);return W!==void 0&&L-W<this.#r?!1:(this.#i.set(F,L),!0)}}const U=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin];class z{hostId;#e;#t;#n;#o;#r=new Map;#i=new Map;#s=new Map;#c=new Map;#a;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d;#j;constructor(F,L){if(this.hostId=F,!L?.logger)throw new Error("Logger is required");if(!L?.analyticsObj)throw new Error("Analytics object is required");this.#n=L.logger,this.#o=L.analyticsObj;const W={analyticsObj:L.analyticsObj,enabled:L?.measurePerformance,samplingRatio:L?.performanceSamplingRatio,onError:V=>this.#n.debug(V)};if(this.#d=new I({...W,dedupWindowMs:L?.performanceDedupWindowMs}),this.#j=new I({...W,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new n.K(this.#n,this.#t),L?.readyStateCallback&&typeof L?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#p=L?.readyStateCallback||null,this.#u=L?.onGuestEventSubscribe||null,this.#h=L?.onGuestEventUnsubscribe||null,this.#a=new r.qE,this.#e.initialize(window),this.#F(),window.addEventListener("beforeunload",this.#f),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#g=(F,L)=>{const W={event:F,...L};this.#o.sendBAEvent(W).catch(V=>{this.#n.debug(`Analytics sendBAEvent failed: ${V.message}`)})};#f=()=>{Array.from(this.#r.values()).filter(L=>L.openMode===g.Popup).map(L=>L.id).forEach(L=>this.unloadGuest(L))};#m=F=>this.#i.get(F);#x=F=>this.#s.get(F)??null;#w=F=>typeof F?._toJSON=="function";#S=(F,L)=>this.#w(F)?(this.#a.has(F?.id,L)||this.#a.addScriptingObject(F,L?{guestId:L?.id}:{}),{type:"object",object:F._toJSON()}):{type:"value",value:F};#E=F=>typeof F=="string"?F:F instanceof Error?F.message:"An unexpected error occurred in the host application";#y=F=>{F.ready&&this.#e.send({targetWin:F.window,targetOrigin:F.origin,messageType:s.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...F.getInfo()}})};#v=({guest:F,obj:L,functionName:W,functionParams:V,callerChain:N})=>{const M=L[W];return x(M)?(this.#n.debug(`Invoking host implementation of ${L.id}.${String(W)}()`),new Promise(B=>{Object.defineProperty(M,"callContext",{value:{guest:F,...N?.length?{callChain:N}:{}},configurable:!0,enumerable:!0,writable:!0}),B(M(...V))})):(this.#n.warn(`Attempt to call invalid function on object type ${L.objectType}: ${String(W)}`),Promise.reject(new Error(`Method '${W}' not found in Scripting Object '${L.id}'`)))};#_=({sourceWin:F,sourceOrigin:L,requestId:W})=>{const V=this.#m(F);if(!V){this.#n.warn(`Received ready event for unknown guest. requestId: ${W}`);return}if(!V.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:"Guest must be initialized before it is marked as ready"});return}if(!V.ready){V.ready=!0;const N=V.getInfo();this.#d.end("SSF.Guest.Load",{appId:N.guestId,appUrl:N.guestUrl}),this.#y(V),this.#p?.(V),this.#n.audit({message:"Guest is ready",...N})}};#A=({sourceWin:F,sourceOrigin:L,requestId:W,body:V})=>{const N=this.#m(F);if(!N){this.#n.warn(`Received ready event for unknown guest. requestid = ${W}`);return}N.initialized||(N.initialized=!0,N.capabilities=V||{},this.#n.audit({message:"Guest is initialized",...N.getInfo()})),(!V||!V.onReady)&&this.#_({sourceWin:F,sourceOrigin:L,requestId:W,type:"",body:null})};#O=async({sourceWin:F})=>{if(F?.window){const L=this.#L(F);L&&!await L.handShake()&&this.unloadGuest(F)}};#C=({sourceWin:F,sourceOrigin:L,requestId:W})=>{this.#n.debug(`Processing listObjects request. requestId = ${W}`);const V=this.#m(F);if(!V)return this.#n.warn("Rejected object request from unknown guest window"),!1;const N=this.#a.listScriptingObjects(V.id);return this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:N}),this.#n.debug({message:"name of scripting objects returned",requestId:W,objects:N,...V.getInfo()}),!0};#T=({sourceWin:F,sourceOrigin:L,requestId:W,body:V})=>{const{objectId:N}=V;this.#n.debug(`Processing getObject request for object ${N}. requestId = ${W}`);const M=this.#m(F);if(!M)return this.#n.warn("Rejected object request from unknown guest window"),!1;const B=this.getScriptingObject(N,{guest:M});return B?(this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(B,M)}),this.#n.debug({message:"Scripting Object returned",requestId:W,scriptingObject:N,...M.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${N} from guest ${M.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1)};#P=({sourceWin:F,requestId:L,body:W})=>{const{eventId:V,criteria:N,token:M}=W;this.#n.debug(`Processing guest event subscribe request for event ${V}. requestId = ${L}`);const B=this.#m(F);if(!B){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:B.id,eventId:V,criteria:N,token:M})}catch($){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${V}: ${$.message}`)}},0)};#D=({sourceWin:F,requestId:L,body:W})=>{const{eventId:V,token:N}=W;this.#n.debug(`Processing guest event unsubscribe request for event ${V}. requestId = ${L}`);const M=this.#m(F);if(!M){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#h?.({guestId:M.id,eventId:V,token:N})}catch(B){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${V}: ${B.message}`)}},0)};#R=({sourceWin:F,requestId:L,body:W})=>{const V=this.#m(F);if(!V){this.#n.warn(`Received resize event from unknown guest. requestid = ${L}`);return}V.domElement&&(V.domElement.style.height=`${W.height}px`),this.#n.debug(`Guest ${V.id} resized to ${W.width}x${W.height}`)};#I=({sourceWin:F,sourceOrigin:L,requestId:W,body:V})=>{const{objectId:N,callerChain:M}=V,B=this.#m(F);if(!B)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${N}.${String(V.functionName)}() called from guest "${B.id}" (requestId = ${W})`);const $=this.getScriptingObject(N,{guest:B});if(!$)return this.#n.warn(`Invocation of unknown or unauthorized object ${N} from guest ${B.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1;const X=B.getInfo();let H;if(this.#d.enabled){const Z=`ScriptingObject.API.${N}.${V.functionName}`;H=this.#d.start(Z,{appId:X.guestId,appUrl:X.guestUrl})}return this.#v({guest:B,obj:$,functionName:V.functionName,functionParams:V.functionParams,callerChain:M}).then(Z=>{this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(Z,B)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:V.functionName,...X})}).catch(Z=>{this.#e.raiseException({targetWin:F,targetOrigin:B.origin,requestId:W,ex:Z}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:V.functionName,...X})}).finally(()=>{H&&this.#d.end(H,{appId:X.guestId,appUrl:X.guestUrl})}),!0};#k=()=>{this.#e.listen({messageType:s.G.GuestResize,callback:this.#R})};#F=()=>{this.#e.listen({messageType:s.G.GuestReady,callback:this.#A}),this.#e.listen({messageType:s.G.GuestReadyComplete,callback:this.#_}),this.#e.listen({messageType:s.G.GuestClose,callback:this.#O}),this.#e.listen({messageType:s.G.ListObjects,callback:this.#C}),this.#e.listen({messageType:s.G.ObjectGet,callback:this.#T}),this.#e.listen({messageType:s.G.ObjectInvoke,callback:this.#I}),this.#e.listen({messageType:s.G.GuestEventSubscribe,callback:this.#P}),this.#e.listen({messageType:s.G.GuestEventUnsubscribe,callback:this.#D})};#M=F=>F instanceof i.b3||typeof F?.subscribe=="function";#N=F=>{const L=new D({...F,remoting:this.#e,perfTracker:this.#j});return L.init(),this.#r.set(F.guestId,L),this.#i.set(L.window,L),this.#s.set(L.url,L),L};#L=F=>{if(typeof F=="string")return this.#r.get(F);const L=this.#i.get(F);return L||Array.from(this.#r.values()).find(W=>W.domElement===F)};#B=()=>{this.#l||(this.#l=setInterval(()=>{const F=[];this.#r.forEach(L=>{L.openMode===g.Popup&&L.window.closed&&F.push(L)}),F.forEach(L=>{const{id:W}=L;this.unloadGuest(W),this.#c.get(W)?.forEach(N=>{Promise.resolve(N({id:W})).catch(()=>{})})})},1e3))};#U=()=>{if(!this.#l)return;Array.from(this.#r.values()).some(L=>L.openMode===g.Popup)||(clearInterval(this.#l),this.#l=null)};#$=F=>{const L=A(F),W=L?void 0:(0,t.A)();return{popupUrl:W?`${F}#hs=${W}`:F,handshakeToken:W,trusted:L}};#z=F=>{const{url:L,title:W,popupWindowFeatures:V={},searchParams:N,guestId:M,onLoad:B,onError:$}=F,{width:X=800,height:H=600,top:Z=100,left:K=100}=V;let q=this.#x(L);if(q)q.window.closed||(A(L)?window.open("",W):q.window.focus());else{const te=Object.entries({width:X,height:H,top:Z,left:K}).filter(([,oe])=>oe).map(([oe,he])=>`${oe}=${he}`).join(","),{popupUrl:ye,handshakeToken:re,trusted:fe}=this.#$(L),ne=window.open(ye,W,`popup, ${te}`);if(ne)setTimeout(()=>{try{B?.(M)}catch(oe){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${oe.message}`)}},0);else throw setTimeout(()=>{try{$?.(M)}catch(oe){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${oe.message}`)}},0),new Error("Failed to open guest application in popup window");fe||(ne.opener=null),q=this.#N({guestId:M,window:ne,title:W,url:L,searchParams:N,openMode:g.Popup,handshakeToken:re}),this.#B()}return q};#W=F=>{const{url:L,title:W,targetElement:V,searchParams:N,guestId:M,onLoad:B,onError:$,options:X={}}=F,H=V.ownerDocument??document,{fitToContent:Z=!1,disableSandbox:K=!1,sandboxValues:q=[],customSandboxValues:te=[],style:ye="",permissionPolicy:re=""}=X;if(!W)throw new Error("title is required");Z&&this.#k();const fe=H.createElement("iframe");fe.setAttribute("id",M);const ne=()=>{setTimeout(()=>{try{B?.(M)}catch(ee){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${ee.message}`)}},0),this.#n.debug(`frame loaded for guest with id '${M}'`),fe.removeEventListener("load",ne)},oe=()=>{setTimeout(()=>{try{$?.(M)}catch(ee){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${ee.message}`)}},0),this.#n.error(`frame load failed for guest with id '${M}'`),fe.removeEventListener("error",oe)};fe.addEventListener("load",ne),fe.addEventListener("error",oe),fe.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${ye}`),K||fe.setAttribute("sandbox",te.length>0?te.join(" "):[...U,...q].join(" ")),fe.setAttribute("title",W),fe.setAttribute("src",L),re&&fe.setAttribute("allow",re),V.appendChild(fe);const he=H.getElementById(M);return this.#N({guestId:M,domElement:he,window:he.contentWindow,title:W,url:L,searchParams:N,openMode:g.Embed})};#G=(F,L)=>{let W="";return Object.keys(L).forEach(V=>{W+=`${(W.length?"&":"")+encodeURIComponent(V)}=${encodeURIComponent(L[V])}`}),F+(W?(F.indexOf("?")>=0?"&":"?")+W:"")};addScriptingObject=(F,L)=>{if((0,d.h)(F)){const W=this.cloneScriptingObject(F);this.#a.addScriptingObject(W,L)}else this.#a.addScriptingObject(F,L)};cloneScriptingObject=F=>{if(!F)throw new Error("proxy is required");const L=new a.P(F.id,F.objectType);let W=[];return Object.keys(F).forEach(V=>{const N=F[V];if(this.#M(N)){const M=new i.Jh({name:N.name||V,objectId:L.id});if(Object.defineProperty(L,V,{value:M,enumerable:!0}),N instanceof i.b3){const B=({eventParams:X,eventOptions:H})=>this.dispatchEvent({event:M,eventParams:X,eventOptions:H}),$=N.subscribe(B);W.push(()=>{N.unsubscribe($)})}else{const B=N.subscribe?.(($,X,H)=>this.dispatchEvent({event:M,eventParams:X,eventOptions:H}));W.push(()=>{N.unsubscribe?.(B)})}}else if(x(N)&&(Object.defineProperty(L,V,{value:async(...M)=>{const B=L[V]?.callContext;if(B?.guest){const X=B.callChain??[],H=B.guest.id,Z=this.#b.get(H),K={id:H};Z&&(K.metadata=Z),Object.defineProperty(N,"callContext",{value:{callChain:[...X,K]},configurable:!0,enumerable:!0,writable:!0})}const $=await N(...M);return(0,d.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),V==="dispose")){const M=L.dispose;Object.defineProperty(L,V,{value:()=>(L._dispose(),M.apply(L)),enumerable:!0})}}),L._dispose=()=>{W.forEach(V=>{V?.()}),W=[]},L};close=()=>{this.#l&&(clearInterval(this.#l),this.#l=null),this.#f(),this.#b.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#f),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#H=({targetGuest:F,guestCapabilities:L,scriptingEventId:W,dispatchToGuest:V})=>{const N=M=>{if((0,c.of)(L)&&!p(M.capabilities,L)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:W,guestCapabilities:L,...M.getInfo()});return}V(M)};F?N(F):this.#r.forEach(N)};dispatchEvent=async F=>{const{event:{id:L,name:W},eventParams:V,eventOptions:N={}}=F,{eventHandler:M=null,timeout:B=null,window:$=null,guestId:X,guestCapabilities:H}=N,Z=L.split(".")[0],K=X||$,q=K?this.#L(K):null,te=q?this.getScriptingObject(Z,{guest:q}):this.getScriptingObject(Z);if(!te)return this.#n.warn(`Attempt to dispatch event ${W} on unknown object ${Z}`),Promise.resolve([]);const ye={object:te._toJSON(),eventName:W,eventParams:V,eventHandler:M,eventOptions:{allowsFeedback:!1}};B&&!Number.isNaN(B)&&(ye.eventOptions={allowsFeedback:!0,timeout:Number(B)});const re=[];let fe;const ne=oe=>{const he=oe.getInfo();B&&oe?.capabilities?.eventFeedback?(re.push(oe.dispatchEvent(ye,B)),!fe&&this.#d.enabled&&(fe=this.#d.start(`ScriptingObject.Event.${te.id}.${W}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:L,...he})):(oe.send({messageType:s.G.ObjectEvent,messageBody:ye}),this.#n.debug({message:"Event dispatched",scriptingEventId:L,...he}))};return this.#H({targetGuest:q??null,guestCapabilities:H,scriptingEventId:L,dispatchToGuest:ne}),Promise.all(re).then(oe=>(this.#n.debug({message:"Event feedback received",scriptingEventId:L}),h(oe))).catch(oe=>{throw this.#n.error({message:"Error processing event",eventId:L,exception:oe}),oe}).finally(()=>{fe&&this.#d.end(fe,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(F,L)=>this.#a.getObject(F,L?.guest);loadGuest=F=>{const{id:L,url:W,targetElement:V,title:N,searchParams:M={},onLoad:B,onError:$,options:X={},metadata:H}=F;if(!L)throw new Error("id for guest application is required");let Z=L;if(this.#r.has(Z)){let re=1;for(;this.#r.has(`${L}-${re}`);)re+=1;Z=`${L}-${re}`}const{openMode:K=g.Embed,popupWindowFeatures:q={}}=X,te=this.#G(W,M);let ye=null;if(this.#d.start("SSF.Guest.Load",{appId:Z,appUrl:te}),K===g.Popup)ye=this.#z({guestId:Z,url:te,title:N,searchParams:M,popupWindowFeatures:q,onLoad:B,onError:$});else if(K===g.Embed)ye=this.#W({guestId:Z,url:te,title:N,targetElement:V,searchParams:M,onLoad:B,onError:$,options:X});else throw new Error(`Invalid openMode: ${K}`);return H&&this.#b.set(Z,H),this.#n.audit({message:"Guest loaded",...ye.getInfo()}),ye};loadGuests=F=>{const{id:L,url:W,targetElement:V,title:N,searchParamsList:M=[],options:B={}}=F;M.forEach(($,X)=>{this.loadGuest({id:`${L}-${X}`,url:W,title:N,targetElement:V,searchParams:$,options:B})},this)};removeAllScriptingObjects=F=>{this.#a.removeAllScriptingObjects(F)};removeScriptingObject=(F,L)=>{this.#a.removeScriptingObject(F,L)};setLogLevel=F=>{this.#n.setLogLevel(F),this.#r.forEach(this.#y),this.#n.debug("Dispatched config events to all guests")};unloadGuest=F=>{const L=this.#L(F);L&&(L.dispose(),this.#i.delete(L.window),this.#s.delete(L.url),this.#b.delete(L.id),this.#r.delete(L.id),this.#n.audit({message:"Guest is removed from host",...L.getInfo()}),this.#U())};onGuestClose=F=>{const{id:L,guestCloseCallback:W}=F,V=this.#c.get(L)||[];V.push(W),this.#c.set(L,V)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{B1:()=>Re,E8:()=>ne,_7:()=>ve,l1:()=>gn});var t,n,r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),s=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),i=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");function d(ze){return n({theme:ze})}function a(ze,qe){const Le=d(ze)[qe];return Le===0?null:Le}function c(ze,qe){const Le=d(ze)[qe];return Le===0?null:Le-.02}function m(){const[ze,qe]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function ln(){qe(window.innerWidth)}return window.addEventListener("resize",ln),qe(window.innerWidth),()=>window.removeEventListener("resize",ln)},[]),ze}function p(ze){const qe=d(ze),ln=m();return t.useMemo(()=>Object.keys(qe).reverse().find(Le=>ln!==null&&ln>=qe[Le])||null,[qe,ln])}function g(ze,qe){const ln=a(ze,qe),Le=m();return Le!==null&&ln!==null&&Le>=ln}function b(ze,qe){const ln=c(ze,qe),Le=m();return Le!==null&&ln!==null&&Le<ln}const v=(...ze)=>ze.filter(Boolean).join("."),h=ze=>`--${ze.replace(/\./g,"-")}`,x=(ze,qe)=>`var(${h(ze)}, ${qe})`,j=(ze,qe)=>`${ze}: ${qe};`;function E(ze,qe,ln=Object.keys(ze),Le){const Ae=Array.isArray(ze)?[]:{};for(const Cn in ln){const Rn=ln[Cn],Qe=ze[Rn],Me=v(Le,Rn);if((0,i.WL)(Qe)){Ae[Rn]=E(Qe,qe,Object.keys(Qe),Me);continue}if((0,i.Yj)(Qe)){Ae[Rn]=x(Me,Qe);continue}if((0,i.Pc)(Qe)){Ae[Rn]=x(Me,(0,i.DJ)(Qe,{theme:qe}));continue}}return Ae}function P(ze,qe,ln=Object.keys(ze),Le,Ae={value:""}){for(const Cn in ln){const Rn=ln[Cn],Qe=ze[Rn],Me=v(Le,Rn);if((0,i.WL)(Qe)){P(Qe,qe,Object.keys(Qe),Me,Ae);continue}if((0,i.Yj)(Qe)){Ae.value+=j(h(Me),Qe);continue}if((0,i.Pc)(Qe)){Ae.value+=j(h(Me),(0,i.DJ)(Qe,{theme:qe}));continue}}return Ae.value}var w=Object.defineProperty,S=Object.defineProperties,A=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,U=(ze,qe,ln)=>qe in ze?w(ze,qe,{enumerable:!0,configurable:!0,writable:!0,value:ln}):ze[qe]=ln,z=(ze,qe)=>{for(var ln in qe||(qe={}))T.call(qe,ln)&&U(ze,ln,qe[ln]);if(D)for(var ln of D(qe))I.call(qe,ln)&&U(ze,ln,qe[ln]);return ze},k=(ze,qe)=>S(ze,A(qe)),F=(ze,qe)=>{var ln={};for(var Le in ze)T.call(ze,Le)&&qe.indexOf(Le)<0&&(ln[Le]=ze[Le]);if(ze!=null&&D)for(var Le of D(ze))qe.indexOf(Le)<0&&I.call(ze,Le)&&(ln[Le]=ze[Le]);return ln};const L="xstyled-color-mode",V=typeof window<"u"&&(()=>{try{const ze="xstyled-test-key";return window.localStorage.setItem(ze,ze),window.localStorage.removeItem(ze),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem(L),set:ze=>{window.localStorage.setItem(L,ze)},clear:()=>window.localStorage.removeItem(L)}:{get:()=>null,set:()=>{},clear:()=>{}},N="xstyled-color-mode-",M=ze=>`${N}${ze}`,B="xstyled-colors",$=["light","dark"];function X(ze,qe){return k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[qe])})}const H=ze=>`@media ${ze}`,Z=ze=>`(prefers-color-scheme: ${ze})`;function K(ze){return Boolean(ze&&ze.colors&&ze.colors.modes)}function q(ze){return Boolean(ze&&(ze.useCustomProperties===void 0||ze.useCustomProperties))}function te(ze){return Boolean(ze&&(ze.useColorSchemeMediaQuery===void 0||ze.useColorSchemeMediaQuery))}function ye(ze){return ze.initialColorModeName||"default"}function re(ze){return ze.defaultColorModeName||ye(ze)}function fe(ze){let qe=[];for(const ln in ze)qe=[...qe,...Object.keys(ze[ln])];return qe}function ne(ze,{targetSelector:qe="body"}={}){if(!K(ze))return null;const ln=ze.colors,{modes:Le}=ln,Ae=F(ln,["modes"]),Cn=fe(Le);let Rn=P(Ae,ze,Cn,B);function Qe(me){const Ue=X(ze,me),cn=Ue.colors,{modes:G}=cn,ie=F(cn,["modes"]);return P(z(z({},ie),G[me]),Ue,Cn,B)}return ze.useColorSchemeMediaQuery!==!1&&$.forEach(me=>{if(Le[me]){const Ue=H(Z(me));Rn+=`${Ue}{${Qe(me)}}`}}),[ye(ze),...Object.keys(Le)].forEach(me=>{const Ue=`&.${M(me)}`;Rn+=`${Ue}{${Qe(me)}}`}),`${qe}{${Rn}}`}function oe(ze){if(typeof window>"u"||window.matchMedia===void 0)return null;const qe=Z(ze);return window.matchMedia(qe)}function he(ze){const qe=r.useMemo(()=>te(ze)?$.map(Ae=>{if(!K(ze)||!ze.colors.modes[Ae])return null;const Cn=oe(Ae);return Cn?{mode:Ae,mql:Cn}:null}).filter(Boolean):[],[ze]),[ln,Le]=r.useState(()=>{const Ae=qe.find(Cn=>Cn.mql.matches);return Ae?Ae.mode:null});return r.useEffect(()=>{const Ae=qe.map(({mode:Cn,mql:Rn})=>{const Qe=({matches:Me})=>{Le(Me?Cn:me=>me===Cn?null:Cn)};return Rn.addEventListener("change",Qe),()=>Rn.removeEventListener("change",Qe)});return()=>Ae.forEach(Cn=>Cn())}),ln}const ee=typeof window<"u"?r.useLayoutEffect:r.useEffect;function be(ze,{target:qe}={}){const ln=he(ze),Le=re(ze),Ae=ye(ze),[Cn,Rn]=r.useState(()=>K(ze)?Le:null),Qe=q(ze),Me=r.useCallback(me=>{Rn(me||null),me?V.set(me):V.clear()},[]);return ee(()=>{if(!K(ze))return;const me=V.get();Cn!==(me||ln||Le)&&Rn(me||ln||Le)},[]),ee(()=>{if(V.get())return;const Ue=ln||Le;Ue!==Cn&&Rn(Ue)},[Cn,ln,Le]),ee(()=>{if(!Cn||!Qe||!V.get()&&!(Ae!==Cn))return;const cn=M(Cn),G=qe||document.body;return G.classList.add(cn),()=>{G.classList.remove(cn)}},[Qe,qe,Cn,Ae]),[Cn,Me]}function We(ze,qe){const[ln]=r.useState(qe),Le=r.useMemo(()=>{if(!ln||!q(ze))return null;if(!K(ze))return ze;const Cn=ze.colors,{modes:Rn}=Cn,Qe=F(Cn,["modes"]),Me=fe(Rn);return k(z({},ze),{colors:k(z(z({},Qe),E(Qe,ze,Me,B)),{modes:Rn}),__rawColors:ze.colors})},[ln,ze]),Ae=r.useMemo(()=>!qe||q(ze)?null:K(ze)?qe===ye(ze)?k(z({},ze),{__colorMode:qe}):k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[qe]),__colorMode:qe,__rawColors:ze.colors}):ze,[ze,qe]);return Le||Ae}const Ze=r.createContext(null);function nn(){const ze=t.useContext(Ze);if(!ze)throw new Error("[useColorMode] requires the ColorModeProvider component");return ze}function ve({ThemeContext:ze,ThemeProvider:qe,ColorModeStyle:ln}){function Le({children:Ae,target:Cn,targetSelector:Rn}){const Qe=r.useContext(ze);if(!Qe)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const Me=be(Qe,{target:Cn}),me=We(Qe,Me[0]);return r.createElement(r.Fragment,null,r.createElement(ln,{targetSelector:Rn}),r.createElement(qe,{theme:me},r.createElement(Ze.Provider,{value:Me},Ae)))}return Le}function ce({target:ze="document.body"}={}){return`(function() { try {
|
|
18401
18401
|
var mode = localStorage.getItem('${L}');
|
|
18402
18402
|
if (mode) ${ze}.classList.add('${N}' + mode);
|
|
18403
18403
|
} catch (e) {} })();`}function Te(ze){return t.createElement("script",{key:"xstyled-color-mode-init",dangerouslySetInnerHTML:{__html:ce(ze)}})}function Be(ze){return`<script>${ce(ze)}<\/script>`}function Pe(){return["&&{",s.qUY,"}"]}Pe.meta=s.qUY.meta;const Ye=ze=>qe=>ln=>{const Le=ze((0,s.o$4)(ln),qe);return Le===null?"0":Le||qe},Ge={"min-width":Ye(s.ieS),"max-width":Ye(s.Ct)},on="[-\\w]",hn=`(${on}+)(\\s*:\\s*)(?=\\S)((?:\\\\[\\s\\S]|[^\\\\;{}])*?)(\\s*!important)?(\\s*;)`,ue="(@media\\b\\s*)(?=\\S)([^{]+?)(\\s*\\{)",Se=new RegExp(`(?:${hn}|${ue})`,"g"),He=new RegExp(`(\\(\\s*)(${on}+)(\\s*:\\s*)([^\\)]*?)(\\s*\\))`,"g"),tn=ze=>{let qe,ln=0;const Le=[];for(;qe=He.exec(ze);){const[,Ae,Cn,Rn,Qe,Me]=qe,me=Ge[Cn];me&&(Le.push(ze.slice(ln,qe.index)),Le.push(Ue=>`${Ae}${Cn}${Rn}${me(Qe)(Ue)}${Me}`),ln=qe.index+qe[0].length)}return Le.push(ze.slice(ln,ze.length)),Le},gn=ze=>qe=>{if(typeof qe!="string")return qe;let ln,Le=0;const Ae=[];for(;ln=Se.exec(qe);){const[,Cn,Rn,Qe,Me,me,Ue,cn,G]=ln;if(Ue)Ae.push(qe.slice(Le,ln.index)),Ae.push(Ue),tn(cn).forEach(ie=>Ae.push(ie)),Ae.push(G),Le=ln.index+ln[0].length;else{const ie=ze.meta.cssGetters[Cn];ie&&(Ae.push(qe.slice(Le,ln.index)),Ae.push(ae=>`${Cn}${Rn}${ie(Qe)(ae)}${Me||""}${me}`),Le=ln.index+ln[0].length)}}return Ae.push(qe.slice(Le,qe.length)),Ae},Re=(ze,qe)=>(ln,Le)=>{const Ae=qe();return(0,r.useMemo)(()=>ze(ln,Le)({theme:Ae}),[ln,Le,Ae])}},"./node_modules/.pnpm/@xstyled+styled-components@3.8.1_styled-components@5.3.11/node_modules/@xstyled/styled-components/dist/index.mjs"(u,o,e){"use strict";e.d(o,{YbP:()=>ve});var t,n,r,s,i=e("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.cjs.js"),d=e("./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"),a=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),c=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),m=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");const p=(0,i.createGlobalStyle)`${Ye=>(0,d.E8)(Ye.theme,{targetSelector:Ye.targetSelector})}`,g=(0,d._7)({ThemeContext:i.ThemeContext,ThemeProvider:i.ThemeProvider,ColorModeStyle:p}),b=()=>(0,a.useContext)(i.ThemeContext),v=(0,d.B1)(c.th,b),h=(0,d.B1)(c.th.angle,b),x=(0,d.B1)(c.th.animation,b),j=(0,d.B1)(c.th.border,b),E=(0,d.B1)(c.th.borderColor,b),P=(0,d.B1)(c.th.borderStyle,b),w=(0,d.B1)(c.th.borderWidth,b),S=(0,d.B1)(c.th.color,b),A=(0,d.B1)(c.th.duration,b),D=(0,d.B1)(c.th.font,b),T=(0,d.B1)(c.th.fontSize,b),I=(0,d.B1)(c.th.fontWeight,b),U=(0,d.B1)(c.th.inset,b),z=(0,d.B1)(c.th.letterSpacing,b),k=(0,d.B1)(c.th.lineHeight,b),F=(0,d.B1)(c.th.percent,b),L=(0,d.B1)(c.th.px,b),W=(0,d.B1)(c.th.radius,b),V=(0,d.B1)(c.th.ringWidth,b),N=(0,d.B1)(c.th.shadow,b),M=(0,d.B1)(c.th.size,b),B=(0,d.B1)(c.th.space,b),$=(0,d.B1)(c.th.timingFunction,b),X=(0,d.B1)(c.th.transform,b),H=(0,d.B1)(c.th.transition,b),Z=(0,d.B1)(c.th.transitionProperty,b),K=(0,d.B1)(c.th.zIndex,b),q=()=>t(b()),te=()=>n(b()),ye=Ye=>r(b(),Ye),re=Ye=>s(b(),Ye),fe=(0,i.createGlobalStyle)(({theme:Ye})=>(0,c.wlu)(Ye)),ne=Ye=>{const Ge=(0,d.l1)(Ye);return(...on)=>{const en=(0,i.css)(...on);return(0,m.tc)(en).map(Ge)}},oe=typeof i=="function"?i:i.default,he=(Ye,Ge,on)=>{const en=(...hn)=>Ye`${Ge(...hn)}${on}`;return en.attrs=hn=>he(Ye.attrs(hn),Ge,on),en.withConfig=hn=>he(Ye.withConfig(hn),Ge,on),en},ee=Ye=>{const Ge=new Set(Ye.meta.props);return(on,en,hn)=>(0,m.Yj)(on)&&Ge.has(on)?!1:typeof hn=="string"?en(on):!0},be=(Ye,Ge)=>{const on=Ge?{shouldForwardProp:ee(Ge)}:{};return en=>{const hn=oe(en);return he(on?hn.withConfig(on):hn,Ye,Ge)}},We=Ye=>{const Ge=ne(Ye),on=be(Ge),en=be(Ge,Ye);return on.box=en("div"),Object.keys(oe).forEach(hn=>{on[hn]=on(hn),on[`${hn}Box`]=en(hn)}),on},Ze=Ye=>{const Ge=be(ne(Ye),Ye),on={};return Object.keys(oe).forEach(en=>{on[en]=Ge(en)``}),on},nn=Ye=>{const Ge=ne(Ye);return(...on)=>(0,i.createGlobalStyle)([Ge(...on)])},ve=Ye=>({css:ne(Ye),x:Ze(Ye),styled:We(Ye),createGlobalStyle:nn(Ye)}),{css:ce,styled:Te,x:Be,createGlobalStyle:Pe}=ve(c.qUY)},"./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"(u,o,e){"use strict";e.d(o,{Ct:()=>P,G1C:()=>fo,Il4:()=>fl,MS_:()=>gr,QKh:()=>$e,YCE:()=>pr,Zpx:()=>Xt,ZzX:()=>be,iFH:()=>ve,ieS:()=>E,nun:()=>_e,o$4:()=>U,qUY:()=>aa,th:()=>ks,wlu:()=>pi,xem:()=>yo});var t,n=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs"),r=Math.pow;const s=Kn=>Math.round(Kn*r(10,4))/r(10,4),i=Kn=>ht=>(0,n.bu)(ht)&&ht!==0?`${ht}${Kn}`:ht,d=i("ms"),a=i("px"),c=i("deg"),m=(Kn,{rootFontSize:ht=16}={})=>s(Kn/ht),p=(Kn,ht)=>{const $t=Number(Kn);return Number.isNaN($t)||$t===0?Kn:`${m($t,ht)}rem`},g=(Kn,ht)=>{if(!(0,n.Yj)(Kn)||Kn.length<4||Kn.slice(-3)!=="rpx")return Kn;const uo=Number(Kn.slice(0,Kn.length-3));return uo===0?0:`${m(uo,ht)}rem`},b=Kn=>(0,n.bu)(Kn)&&Kn!==0&&Kn>=-1&&Kn<=1?`${s(Kn*100)}%`:Kn,v=(Kn,{rawValue:ht,variants:$t,props:uo})=>{if((0,n.Yj)(ht)){const ro=ht.startsWith("-"),Po=ro?ht.substr(1):ht,Vo=(0,n.nv)(uo,Po,$t),is=(0,n.Yj)(Vo)||(0,n.bu)(Vo)?Vo:Po;return ro?`-${is}`:is}if((0,n.bu)(ht)){const ro=(0,n.gu)(ht),Po=Math.abs(ht),Vo=$t?$t[Po]:void 0;if((0,n.Yj)(Vo))return ro?`-${Vo}`:Vo;const is=(0,n.bu)(Vo)?Vo:Po;return ro?is*-1:is}},h=Kn=>Kn?`@media (min-width: ${Kn})`:null,x=Kn=>Kn?`@media (max-width: ${Kn})`:null,j=(Kn,ht)=>Kn&&ht?`@media (min-width: ${Kn}) and (max-width: ${ht})`:null,E=(Kn,ht)=>{const $t=Kn[ht];return $t===0?null:a($t)},P=(Kn,ht)=>{const $t=Kn[ht];return $t===0?null:a($t-.02)};var w=Object.defineProperty,S=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,T=(Kn,ht,$t)=>ht in Kn?w(Kn,ht,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Kn[ht]=$t,I=(Kn,ht)=>{for(var $t in ht||(ht={}))A.call(ht,$t)&&T(Kn,$t,ht[$t]);if(S)for(var $t of S(ht))D.call(ht,$t)&&T(Kn,$t,ht[$t]);return Kn};const U=Kn=>Kn.theme&&Kn.theme.screens?Kn.theme.screens:{},z=Kn=>Kn.theme&&Kn.theme.states?Kn.theme.states:{},k=Kn=>{const ht=U(Kn),$t=z(Kn),uo={};for(const Po in ht)uo[Po]=h(E(ht,Po));const ro=I(I({},uo),$t);for(const[Po,Vo]of Object.entries(ro))Vo&&Vo.startsWith("@")&&(delete ro[Po],ro[Po]=Vo);return ro},F=(Kn,ht)=>{if(ht.has("_variants"))return ht.get("_variants");const $t=k(Kn);return ht.set("_variants",$t),$t},W=typeof Map<"u"&&typeof WeakMap<"u"?new WeakMap:null,V=Kn=>{var ht;return((ht=Kn?.xstyled)==null?void 0:ht.cache)===!1},N=Kn=>{if(V(Kn)||W===null)return null;if(W.has(Kn))return W.get(Kn)||null;const $t={};return W.set(Kn,$t),$t},M={has:()=>!1,set:()=>{},get:()=>{}},B=(Kn,ht)=>{if(!Kn)return M;const $t=N(Kn);return $t?($t[ht]=$t[ht]||new Map,$t[ht]):M};var $=Object.defineProperty,X=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,K=(Kn,ht,$t)=>ht in Kn?$(Kn,ht,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Kn[ht]=$t,q=(Kn,ht)=>{for(var $t in ht||(ht={}))H.call(ht,$t)&&K(Kn,$t,ht[$t]);if(X)for(var $t of X(ht))Z.call(ht,$t)&&K(Kn,$t,ht[$t]);return Kn};let te=0;const ye={shorthand:[/\s+/," "],multiple:[/\s*,\s*/,","]},re=(Kn,ht)=>$t=>$t.split(Kn[0]).map(ht).join(Kn[1]),fe=({name:Kn,transform:ht,key:$t,compose:uo,shorthand:ro,multiple:Po})=>{const Vo=te++,is=(Xo,Us)=>Rs=>{let Mi=Xo;if(!(0,n.Yj)(Xo)&&!(0,n.bu)(Xo)&&Xo!==!0)return Mi;const Li=`${typeof Xo}-${Xo}-${Us}`,ca=B(Rs.theme,`__themeGetter${Vo}`);if(ca.has(Li))return ca.get(Li);const fi=ri=>{const Yi=(0,n.is)(Us)?Us:ri;let Qs=ri;const Ra=(0,n.is)($t)?(0,n.nv)(Rs,$t):null;if((0,n.is)(Ra)){const vi=ri===!0?"default":(0,n.Yj)(ri)||(0,n.bu)(ri)?ri:null;if((0,n.is)(vi)){const Xi=(0,n.nv)(Rs,vi,Ra);Qs=Array.isArray(Xi)?Xi.join(","):Xi}}let Ol=ri;(0,n.is)(Qs)||(Ol=Yi,Qs=Yi);const Ni=(Kn&&Rs.theme&&Rs.theme.transformers?Rs.theme.transformers[Kn]:null)||ht;return Ni&&(Qs=Ni(Qs,{rawValue:Ol,variants:Ra,props:Rs})),uo?uo(Qs)(Rs):Qs};if((ro||Po)&&(0,n.Yj)(Xo)){let ri=fi;ro&&(ri=re(ye.shorthand,ri)),Po&&(ri=re(ye.multiple,ri)),Mi=ri(Xo)}else Mi=fi(Xo);return ca.set(Li,Mi),Mi};return is.meta={name:Kn,transform:ht},is},ne=({getStyle:Kn,props:ht,cssGetters:$t={},generators:uo})=>{const ro=Kn;return ro.meta={props:ht,cssGetters:$t,getStyle:ro,generators:uo},ro.apply=Po=>({theme:Vo})=>ro(q({theme:Vo},Po)),ro},oe=(Kn,ht,$t)=>{const uo=B(Kn.theme,"__variants"),ro=F(Kn,uo);let Po={};for(const Vo in ht){const is=$t(ht[Vo]);if(is===null)continue;const Xo=Vo in ro?ro[Vo]:Vo;Xo!==void 0&&(Xo===null?Po=(0,n.h1)(Po,is):Po[Xo]=Po[Xo]?(0,n.kp)(Po[Xo],is):is)}return Po},he=(Kn,ht,$t)=>uo=>{const ro=Us=>(0,n.is)(Us)?(0,n.WL)(Us)?oe(uo,Us,ro):(0,n.DJ)(ht($t?$t(Us)(uo):Us),uo):null,Po=uo[Kn];if(!(0,n.is)(Po))return null;const Vo=B(uo.theme,Kn),is=(0,n.WL)(Po)?JSON.stringify(Po):Po;if(Vo.has(is))return Vo.get(is);const Xo=ro(Po);return Vo.set(is,Xo),Xo},ee=(Kn,ht)=>{for(const $t in ht){const uo=ht[$t],ro=Kn[uo];ro&&(delete Kn[uo],Kn[uo]=ro)}return Kn};function be(...Kn){var ht;const $t={},uo=[],ro={},Po=is=>{if(!is||!is.meta)return;const Xo=is.meta.props;for(let Us=0;Us<Xo.length;Us++){const Rs=Xo[Us];$t[Rs]=is,uo.push(Rs)}Object.assign(ro,is.meta.cssGetters)};for(let is=0;is<Kn.length;is++){const Xo=Kn[is];if((0,n.R8)(Boolean(Xo),'Undefined generator in "compose" method'),!Xo)continue;const Us=(ht=Xo.meta)==null?void 0:ht.generators;if(Us)for(let Rs=0;Rs<Us.length;Rs++)Po(Us[Rs]);else Po(Xo)}return ne({getStyle:(is,Xo=!0)=>{const Us={};let Rs=!1;for(const Li in is){const ca=$t[Li];if(ca){const fi=ca.meta.getStyle(is,!1);(0,n.h1)(Us,fi),Rs=!0}}if(!Rs||!Xo)return Us;const Mi=F(is,B(is.theme,"__states"));return ee(Us,Mi)},props:uo,cssGetters:ro,generators:Kn})}const We=Kn=>ht=>{if((0,n.Yj)(Kn))return{[Kn]:ht};const $t={};if(!Kn)return $t;for(let uo=0;uo<Kn.length;uo++)$t[Kn[uo]]=ht;return $t},Ze=Kn=>(0,n.Pc)(Kn)?Kn:We(Kn),nn=Kn=>Kn.replace(/[A-Z]/g,"-$&").toLowerCase(),ve=({prop:Kn,css:ht,themeGet:$t,key:uo,transform:ro,cssProps:Po})=>{const Vo=$t||(uo||ro?fe({key:uo,transform:ro}):void 0),is=Po||((0,n.Yj)(ht)?[ht]:Array.isArray(ht)?ht:(0,n.Yj)(Kn)?[Kn]:Array.isArray(Kn)?Kn:[]);if(Array.isArray(Kn)){const Li=ht&&Ze(ht),ca=Kn.map(fi=>ve({prop:fi,css:Li,cssProps:is,themeGet:Vo}));return be(...ca)}const Xo=[Kn],Us=Ze(ht||Xo),Rs=he(Kn,Us,Vo),Mi={};if(Vo)for(let Li=0;Li<is.length;Li++)Mi[nn(is[Li])]=Vo;return be(ne({getStyle:Rs,props:Xo,cssGetters:Mi}))},ce=fe({name:"px",transform:(Kn,{props:ht})=>{var $t,uo,ro;const Po=(ro=(uo=($t=ht?.theme)==null?void 0:$t.settings)==null?void 0:uo.rootFontSize)!=null?ro:void 0,Vo=Number(Kn);return a(g(Number.isNaN(Vo)?Kn:Vo,{rootFontSize:Po}))}}),Te=fe({name:"duration",key:"durations",transform:Kn=>{const ht=Number(Kn);return d(Number.isNaN(ht)?Kn:ht)}}),Be=fe({name:"angle",transform:Kn=>{const ht=Number(Kn);return c(Number.isNaN(ht)?Kn:ht)}}),Pe=fe({name:"percent",compose:ce,transform:b}),Ye=fe({name:"transition",key:"transitions"}),Ge=fe({name:"transitionProperty",key:"transitionProperties"}),on=fe({name:"timingFunction",key:"timingFunctions"}),en=ve({prop:"transition",themeGet:Ye}),hn=ve({prop:"transitionProperty",themeGet:Ge}),Fe=ve({prop:"transitionDuration",themeGet:Te}),ue=ve({prop:"transitionTimingFunction",themeGet:on}),Se=ve({prop:"transitionDelay",themeGet:Te}),He=be(en,hn,Fe,ue,Se),tn=fe({name:"animation",key:"animations"}),gn=ve({prop:"animation",themeGet:tn}),Re=ve({prop:"animationDuration",themeGet:Te}),ze=ve({prop:"animationTimingFunction",themeGet:on}),qe=be(gn,Re,ze),ln=fe({name:"color",key:"colors"}),Le={"gradient-to-t":"linear-gradient(to top, var(--x-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--x-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--x-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--x-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--x-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--x-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--x-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--x-gradient-stops))"},Ae=ve({prop:"background",css:Kn=>({background:Le[Kn]||Kn})}),Cn=ve({prop:["backgroundColor","bg"],css:"backgroundColor",themeGet:ln}),Rn=ve({prop:"backgroundImage",css:Kn=>({backgroundImage:Le[Kn]||Kn})}),Qe=ve({prop:"backgroundSize"}),Me=ve({prop:"backgroundPosition"}),me=ve({prop:"backgroundRepeat"}),Ue=ve({prop:"backgroundAttachment"}),cn=ve({prop:"backgroundClip",css:["backgroundClip","-webkitBackgroundClip"]}),G=ve({prop:"gradientFrom",themeGet:ln,css:Kn=>({"--x-gradient-from":Kn,"--x-gradient-stops":"var(--x-gradient-from), var(--x-gradient-to, transparent)"})}),ie=ve({prop:"gradientVia",themeGet:ln,css:Kn=>({"--x-gradient-stops":`var(--x-gradient-from), ${Kn}, var(--x-gradient-to, transparent)`})}),ae=ve({prop:"gradientTo",themeGet:ln,css:"--x-gradient-to"}),xe=be(Ae,Cn,Rn,Qe,Me,me,Ue,cn,G,ie,ae),Xe=fe({name:"border",key:"borders",transform:Kn=>{const ht=Number(Kn);return ht>0?`${a(ht)} solid`:Kn}}),Ln=fe({name:"borderWidth",key:"borderWidths",compose:ce,shorthand:!0}),lt=fe({name:"borderColor",compose:ln,shorthand:!0}),Vn=fe({name:"borderStyle",key:"borderStyles"}),Vt=ve({prop:"border",themeGet:Xe}),nr=ve({prop:"borderTop",themeGet:Xe}),cr=ve({prop:"borderRight",themeGet:Xe}),Ar=ve({prop:"borderBottom",themeGet:Xe}),dt=ve({prop:"borderLeft",themeGet:Xe}),yn=ve({prop:"borderColor",themeGet:lt}),kn=ve({prop:"borderTopColor",themeGet:ln}),xn=ve({prop:"borderRightColor",themeGet:ln}),bn=ve({prop:"borderBottomColor",themeGet:ln}),xt=ve({prop:"borderLeftColor",themeGet:ln}),Pt=ve({prop:"borderWidth",themeGet:Ln}),Lt=ve({prop:"borderTopWidth",themeGet:Ln}),Kt=ve({prop:"borderRightWidth",themeGet:Ln}),mr=ve({prop:"borderBottomWidth",themeGet:Ln}),Hn=ve({prop:"borderLeftWidth",themeGet:Ln}),Un=ve({prop:"borderStyle",themeGet:Vn,cssProps:["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]}),Yn=ve({prop:"borderTopStyle",themeGet:Vn}),Xn=ve({prop:"borderRightStyle",themeGet:Vn}),pt=ve({prop:"borderBottomStyle",themeGet:Vn}),Ve=ve({prop:"borderLeftStyle",themeGet:Vn}),an=ve({prop:"outline",themeGet:Xe}),An=ve({prop:"outlineColor",themeGet:ln}),Jn=ve({prop:"outlineWidth",themeGet:Ln}),it=ve({prop:"outlineStyle",themeGet:Vn}),C=ve({prop:"outlineOffset",themeGet:Ln}),J=fe({name:"radius",key:"radii",compose:ce,shorthand:!0}),Ee=ve({prop:"borderRadius",themeGet:J,cssProps:["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]}),Ke="& > :not([hidden]) ~ :not([hidden])",le=ve({prop:"divideY",themeGet:Ln,css:Kn=>{const ht=Kn===!0?1:Kn;return{[Ke]:{"--x-divide-y-reverse":0,borderTopWidth:`calc(${ht} * calc(1 - var(--x-divide-y-reverse)))`,borderBottomWidth:`calc(${ht} * var(--x-divide-y-reverse))`}}}}),Ie=ve({prop:"divideX",themeGet:Ln,css:Kn=>{const ht=Kn===!0?1:Kn;return{[Ke]:{"--x-divide-x-reverse":0,borderRightWidth:`calc(${ht} * var(--x-divide-x-reverse))`,borderLeftWidth:`calc(${ht} * calc(1 - var(--x-divide-x-reverse)))`}}}}),De=ve({prop:"divideXReverse",css:()=>({[Ke]:{"--x-divide-x-reverse":"1"}})}),mn=ve({prop:"divideYReverse",css:()=>({[Ke]:{"--x-divide-y-reverse":"1"}})}),Tn=ve({prop:"divideColor",themeGet:ln,css:Kn=>({[Ke]:{borderColor:Kn}})}),wn=ve({prop:"divideStyle",themeGet:Vn,css:Kn=>({[Ke]:{borderStyle:Kn}})}),Wn=fe({name:"ringWidth",key:"ringWidths",compose:ce}),ot=ve({prop:"ring",themeGet:Wn,css:Kn=>({"--x-ring-shadow":`var(--x-ring-inset, /*!*/ /*!*/) 0 0 0 ${Kn} var(--x-ring-color)`,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow, 0 0 #0000)"})}),ct=ve({prop:"ringInset",css:()=>({"--x-ring-inset":"inset"})}),Bt=ve({prop:"ringColor",themeGet:ln,css:Kn=>({"--x-ring-color":Kn})}),Ft=be(Vt,nr,cr,Ar,dt,yn,kn,xn,bn,xt,Pt,Lt,Kt,mr,Hn,Un,Yn,Xn,pt,Ve,Ee,an,An,Jn,it,C,Ie,le,De,mn,Tn,wn,ot,ct,Bt),or=fe({name:"shadow",key:"shadows",multiple:!0}),yr=ve({prop:"opacity"}),gr=ve({prop:"boxShadow",themeGet:or,css:Kn=>({"--x-shadow":Kn,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow)"})}),br=ve({prop:"textShadow",themeGet:or}),Kr=be(yr,gr,br);var rr=Object.defineProperty,Rr=Object.getOwnPropertySymbols,Gr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,Ce=(Kn,ht,$t)=>ht in Kn?rr(Kn,ht,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Kn[ht]=$t,Ne=(Kn,ht)=>{for(var $t in ht||(ht={}))Gr.call(ht,$t)&&Ce(Kn,$t,ht[$t]);if(Rr)for(var $t of Rr(ht))Ir.call(ht,$t)&&Ce(Kn,$t,ht[$t]);return Kn};const pn=ve({prop:"row",css:()=>({boxSizing:"border-box",flexGrow:1,flexWrap:"wrap",display:"flex"})}),un=(Kn,ht)=>{if(!(0,n.is)(ht))return null;if(ht===!0)return{flexBasis:0,flexGrow:1,maxWidth:"100%"};if(ht==="auto")return{flex:"0 0 auto",maxWidth:"none",width:"auto"};const $t=Pe(ht)(Kn);return{flex:`0 0 ${$t}`,maxWidth:$t}},Dn=ne({getStyle:Kn=>{const ht=Kn.col,$t={boxSizing:"border-box",flexBasis:0,flexGrow:1,maxWidth:"100%"};if((0,n.WL)(ht)){const uo=oe(Kn,ht,ro=>un(Kn,ro));return Ne(Ne({},$t),uo)}return Ne(Ne({},$t),un(Kn,ht))},props:["col"]}),zn=be(pn,Dn);var Nn=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,Rt=(Kn,ht,$t)=>ht in Kn?Nn(Kn,ht,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Kn[ht]=$t,Qt=(Kn,ht)=>{for(var $t in ht||(ht={}))tt.call(ht,$t)&&Rt(Kn,$t,ht[$t]);if(et)for(var $t of et(ht))_t.call(ht,$t)&&Rt(Kn,$t,ht[$t]);return Kn};const tr=ve({prop:"display"}),wt=ve({prop:"float"}),ur=ve({prop:"boxSizing"}),fr=ne({getStyle:Kn=>{if(!Kn.container)return null;const ht=U(Kn);let $t=oe(Kn,ht,uo=>uo!==0?{maxWidth:uo}:{});return(0,n.WL)(Kn.container)&&($t=oe(Kn,Kn.container,()=>$t)),Qt({width:"100%"},$t)},props:["container"]}),Sr=ve({prop:"overflow"}),no=ve({prop:"overflowX"}),Nr=ve({prop:"overflowY"}),kr=fe({name:"zIndex",key:"zIndices"}),ar=ve({prop:"zIndex",themeGet:kr}),fo=ve({prop:"position"}),mo=fe({name:"inset",key:"inset",compose:ce,transform:v}),Ot=ve({prop:"top",themeGet:mo}),to=ve({prop:"right",themeGet:mo}),Eo=ve({prop:"bottom",themeGet:mo}),ko=ve({prop:"left",themeGet:mo}),Pn=ve({prop:"visibility"}),Qn=ve({prop:"overscrollBehavior"}),ut=ve({prop:"objectFit"}),Xt=be(ur,tr,wt,fr,Sr,no,Nr,fo,ar,Ot,to,Eo,ko,Pn,Qn,ut),dr=ve({prop:"alignItems"}),Er=ve({prop:"alignContent"}),st=ve({prop:"justifyContent"}),Sn=ve({prop:"justifyItems"}),Gn=ve({prop:"flexWrap"}),qn=ve({prop:"flexGrow"}),Tt=ve({prop:"flexShrink"}),Yt=ve({prop:"flexBasis",themeGet:Pe}),er=ve({prop:"flexDirection"}),Qr=ve({prop:"flex"}),Fr=ve({prop:"justifySelf"}),$r=ve({prop:"alignSelf"}),de=ve({prop:"order"}),_e=be(tr,dr,Er,st,Sn,Gn,Yt,Tt,qn,er,Qr,Fr,$r,de),rn=fe({name:"space",key:"space",compose:ce,shorthand:!0,transform:v}),jn=ve({prop:["margin","m"],themeGet:rn,css:"margin"}),Zn=ve({prop:["marginTop","mt"],themeGet:rn,css:"marginTop"}),bt=ve({prop:["marginRight","mr"],themeGet:rn,css:"marginRight"}),ft=ve({prop:["marginBottom","mb"],themeGet:rn,css:"marginBottom"}),Mt=ve({prop:["marginLeft","ml"],themeGet:rn,css:"marginLeft"}),zt=ve({prop:"mx",themeGet:rn,css:["marginRight","marginLeft"]}),vr=ve({prop:"my",themeGet:rn,css:["marginTop","marginBottom"]}),Lr=ve({prop:["padding","p"],themeGet:rn,css:"padding"}),Yr=ve({prop:["paddingTop","pt"],themeGet:rn,css:"paddingTop"}),qr=ve({prop:["paddingRight","pr"],themeGet:rn,css:"paddingRight"}),so=ve({prop:["paddingBottom","pb"],themeGet:rn,css:"paddingBottom"}),Ao=ve({prop:["paddingLeft","pl"],themeGet:rn,css:"paddingLeft"}),ho=ve({prop:"px",themeGet:rn,css:["paddingRight","paddingLeft"]}),Go=ve({prop:"py",themeGet:rn,css:["paddingTop","paddingBottom"]}),No=ve({prop:"spaceY",themeGet:rn,css:Kn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":0,marginTop:`calc(${Kn} * calc(1 - var(--x-space-y-reverse)))`,marginBottom:`calc(${Kn} * var(--x-space-y-reverse))`}})}),Oo=ve({prop:"spaceX",themeGet:rn,css:Kn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":0,marginRight:`calc(${Kn} * var(--x-space-x-reverse))`,marginLeft:`calc(${Kn} * calc(1 - var(--x-space-x-reverse)))`}})}),Yo=ve({prop:"spaceXReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":"1"}})}),io=ve({prop:"spaceYReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":"1"}})}),yo=be(jn,Zn,bt,ft,Mt,zt,vr,Lr,Yr,qr,so,Ao,ho,Go,Oo,No,Yo,io),Do=ve({prop:"gap",themeGet:rn}),hs=ve({prop:"columnGap",themeGet:rn}),Ho=ve({prop:"rowGap",themeGet:rn}),os=ve({prop:"gridColumn"}),Ps=ve({prop:"gridRow"}),Ws=ve({prop:"gridAutoFlow"}),Es=ve({prop:"gridAutoColumns"}),Oi=ve({prop:"gridAutoRows"}),ei=ve({prop:"gridTemplateColumns",key:"gridTemplateColumns"}),js=ve({prop:"gridTemplateRows",key:"gridTemplateRows"}),ni=ve({prop:"gridTemplateAreas"}),ke=ve({prop:"gridArea"}),$e=be(Do,hs,Ho,os,Ps,Ws,Es,Oi,ei,js,ni,ke),_n=ve({prop:"appearance"}),En=ve({prop:"cursor"}),rt=ve({prop:"pointerEvents"}),gt=ve({prop:"resize"}),Et=ve({prop:"userSelect"}),Ut=be(_n,En,rt,gt,Et),pr=fe({name:"size",key:"sizes",compose:Pe}),zr=ve({prop:"w",themeGet:pr,css:"width"}),Or=ve({prop:"h",themeGet:pr,css:"height"}),$n=ve({prop:["maxWidth","maxW"],themeGet:pr,css:"maxWidth"}),yt=ve({prop:["maxHeight","maxH"],themeGet:pr,css:"maxHeight"}),Ct=ve({prop:["minWidth","minW"],themeGet:pr,css:"minWidth"}),lr=ve({prop:["minHeight","minH"],themeGet:pr,css:"minHeight"}),jr=ve({prop:"maskSize",themeGet:fe({name:"size",key:"sizes",compose:Pe,multiple:!0,shorthand:!0})}),hr=be(zr,Or,$n,yt,Ct,lr,jr),ir=ve({prop:"fill",themeGet:ln}),wr=ve({prop:"stroke",themeGet:ln}),Cr=be(ir,wr),Br=ve({prop:"borderCollapse"}),eo=ve({prop:"tableLayout"}),lo=be(Br,eo),Bo=fe({name:"transform",key:"transforms"}),jt=ve({prop:"transform",themeGet:Bo,css:Kn=>Kn===!0?{"--x-translate-x":0,"--x-translate-y":0,"--x-rotate":0,"--x-skew-x":0,"--x-skew-y":0,"--x-scale-x":"1","--x-scale-y":"1",transform:"translate3d(var(--x-translate-x), var(--x-translate-y), 0) rotate(var(--x-rotate)) skewX(var(--x-skew-x)) skewY(var(--x-skew-y)) scaleX(var(--x-scale-x)) scaleY(var(--x-scale-y))"}:{transform:Kn}}),Zt=ve({prop:"transformOrigin"}),Dt=ve({prop:"translateX",themeGet:rn,css:"--x-translate-x"}),Mr=ve({prop:"translateY",themeGet:rn,css:"--x-translate-y"}),wo=ve({prop:"rotate",themeGet:Be,css:"--x-rotate"}),es=ve({prop:"skewX",themeGet:Be,css:"--x-skew-x"}),as=ve({prop:"skewY",themeGet:Be,css:"--x-skew-y"}),qo=ve({prop:"scale",transform:Kn=>String(Kn),css:["--x-scale-x","--x-scale-y"]}),xs=ve({prop:"scaleX",transform:Kn=>String(Kn),css:"--x-scale-x"}),Gs=ve({prop:"scaleY",transform:Kn=>String(Kn),css:"--x-scale-y"}),Ls=be(jt,Zt,Dt,Mr,wo,es,as,qo,xs,Gs);var ai=Object.defineProperty,As=Object.defineProperties,jo=Object.getOwnPropertyDescriptors,ns=Object.getOwnPropertySymbols,Js=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable,bs=(Kn,ht,$t)=>ht in Kn?ai(Kn,ht,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Kn[ht]=$t,ss=(Kn,ht)=>{for(var $t in ht||(ht={}))Js.call(ht,$t)&&bs(Kn,$t,ht[$t]);if(ns)for(var $t of ns(ht))Uo.call(ht,$t)&&bs(Kn,$t,ht[$t]);return Kn},Ds=(Kn,ht)=>As(Kn,jo(ht));const ki=fe({name:"font",key:"fonts"}),$a=fe({name:"lineHeight",key:"lineHeights",transform:(Kn,{props:ht})=>{var $t,uo,ro;const Po=(ro=(uo=($t=ht?.theme)==null?void 0:$t.settings)==null?void 0:uo.rootFontSize)!=null?ro:void 0;return g(Kn,{rootFontSize:Po})}}),za=fe({name:"fontWeight",key:"fontWeights"}),Je=fe({name:"letterSpacing",key:"letterSpacings",compose:ce}),Oe=fe({name:"fontSize",key:"fontSizes",compose:ce}),dn=ve({prop:"fontFamily",themeGet:ki}),Bn=ve({prop:"fontSize",themeGet:Oe}),vt=ve({prop:"fontVariant"}),kt=ve({prop:"lineHeight",themeGet:$a}),Xr=ve({prop:"fontWeight",themeGet:za}),Tr=ve({prop:"fontStyle"}),Gt=ve({prop:"letterSpacing",themeGet:Je}),xr=ve({prop:"color",themeGet:ln}),Io=ve({prop:"textTransform"}),Fo=ve({prop:"textDecoration"}),Qo=ve({prop:"textAlign"}),ls=ve({prop:"verticalAlign"}),yi=ve({prop:"whiteSpace"}),sa=ve({prop:"textOverflow"}),ia=ve({prop:"listStyleType"}),Wa=ve({prop:"listStylePosition"}),pl=be(yo,dn,Bn,Tr,vt,kt,Xr,Qo,Gt,xr,Io,Fo,ls,yi,sa,ia,Wa),ya=ve({prop:"text",key:"texts",css:Kn=>({theme:ht})=>pl(Ds(ss({},Kn),{theme:ht}))}),fl=be(pl,ya),aa=be(qe,xe,Ft,Kr,zn,_e,$e,Ut,Xt,hr,yo,Cr,lo,Ls,He,fl),ks=(Kn,ht)=>$t=>{const uo=(0,n.nv)($t,Kn);return(0,n.is)(uo)?uo:(0,n.is)(ht)?ht:Kn};[Be,tn,Xe,lt,Vn,Ln,ln,Te,ki,Oe,za,mo,Je,$a,Pe,ce,J,Wn,or,pr,rn,on,Bo,Ye,Ge,kr].forEach(Kn=>{ks[Kn.meta.name]=Kn});const Ns=(Kn,ht)=>$t=>{const uo=U($t),ro=E(uo,Kn);return ro===null?ht:[`${h(ro)} {`,ht,"}"]},hl=(Kn,ht)=>$t=>{const uo=U($t),ro=P(uo,Kn);return ro===null?null:[`${x(ro)} {`,ht,"}"]},pd=(Kn,ht,$t)=>uo=>{const ro=U(uo),Po=E(ro,Kn),Vo=P(ro,ht);return Vo===null?Ns(Kn,$t)(uo):Po===null?hl(ht,$t)(uo):[`${j(Po,Vo)} {`,$t,"}"]},Sl=Kn=>ht=>{const $t=[],uo=Object.keys(Kn),ro=uo.length;for(let Po=0;Po<ro;Po++){const Vo=uo[Po],is=Kn[Vo],Xo=Ns(Vo,is)(ht);Array.isArray(Xo)?Xo.forEach(Us=>$t.push(Us)):$t.push(Xo)}return $t},ao=null;var vo=Object.defineProperty,Zr=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,xo=(Kn,ht,$t)=>ht in Kn?vo(Kn,ht,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Kn[ht]=$t,vs=(Kn,ht)=>{for(var $t in ht||(ht={}))Mo.call(ht,$t)&&xo(Kn,$t,ht[$t]);if(Zr)for(var $t of Zr(ht))bo.call(ht,$t)&&xo(Kn,$t,ht[$t]);return Kn};const di=[0,5,10,20,25,30,40,50,60,70,75,80,90,95,100],ti=(Kn,ht=di)=>{const $t=(ro,Po)=>`${ro}${Math.round(Po/100*255).toString(16).padStart(2,"0")}`,uo=Object.keys(Kn).reduce((ro,Po)=>(ht.forEach(Vo=>{const is=Kn[Po],Xo=`${Po}-a${Vo}`;ro[Xo]=(0,n.Yj)(is)?$t(is,Vo):ti(is,ht)}),ro),{});return vs(vs({},Kn),uo)},$s=null,Fi=(Kn,ht,$t=$s,uo=di)=>$t.reduce((ro,Po)=>(ro[`${Kn}-${Po}`]=ks.color(`${ht}-${Po}`),uo.forEach(Vo=>{ro[`${Kn}-${Po}-a${Vo}`]=ks.color(`${ht}-${Po}-a${Vo}`)}),ro),{});var Ga=Object.defineProperty,Da=Object.defineProperties,la=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,On=(Kn,ht,$t)=>ht in Kn?Ga(Kn,ht,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Kn[ht]=$t,El=(Kn,ht)=>{for(var $t in ht||(ht={}))Ci.call(ht,$t)&&On(Kn,$t,ht[$t]);if(da)for(var $t of da(ht))gl.call(ht,$t)&&On(Kn,$t,ht[$t]);return Kn},va=(Kn,ht)=>Da(Kn,la(ht));const ui={.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},us={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Al={default:["background-color","border-color","color","fill","stroke","opacity","box-shadow","transform"],colors:["background-color","border-color","color","fill","stroke"],opacity:["opacity"],shadow:["box-shadow"],transform:["transform"]},fd=Object.keys(Al).reduce((Kn,ht)=>(Kn[ht]=Al[ht].map($t=>`${$t} ${us["ease-in-out"]} 150ms`).join(","),Kn),{}),ua={black:"#000000",white:"#ffffff","blue-gray-50":"#f8fafc","blue-gray-100":"#f1f5f9","blue-gray-200":"#e2e8f0","blue-gray-300":"#cbd5e1","blue-gray-400":"#94a3b8","blue-gray-500":"#64748b","blue-gray-600":"#475569","blue-gray-700":"#334155","blue-gray-800":"#1e293b","blue-gray-900":"#0f172a","cool-gray-50":"#f9fafb","cool-gray-100":"#f3f4f6","cool-gray-200":"#e5e7eb","cool-gray-300":"#d1d5db","cool-gray-400":"#9ca3af","cool-gray-500":"#6b7280","cool-gray-600":"#4b5563","cool-gray-700":"#374151","cool-gray-800":"#1f2937","cool-gray-900":"#111827","gray-50":"#fafafa","gray-100":"#f4f4f5","gray-200":"#e4e4e7","gray-300":"#d4d4d8","gray-400":"#a1a1aa","gray-500":"#71717a","gray-600":"#52525b","gray-700":"#3f3f46","gray-800":"#27272a","gray-900":"#18181b","true-gray-50":"#fafafa","true-gray-100":"#f5f5f5","true-gray-200":"#e5e5e5","true-gray-300":"#d4d4d4","true-gray-400":"#a3a3a3","true-gray-500":"#737373","true-gray-600":"#525252","true-gray-700":"#404040","true-gray-800":"#262626","true-gray-900":"#171717","warm-gray-50":"#fafaf9","warm-gray-100":"#f5f5f4","warm-gray-200":"#e7e5e4","warm-gray-300":"#d6d3d1","warm-gray-400":"#a8a29e","warm-gray-500":"#78716c","warm-gray-600":"#57534e","warm-gray-700":"#44403c","warm-gray-800":"#292524","warm-gray-900":"#1c1917","red-50":"#fef2f2","red-100":"#fee2e2","red-200":"#fecaca","red-300":"#fca5a5","red-400":"#f87171","red-500":"#ef4444","red-600":"#dc2626","red-700":"#b91c1c","red-800":"#991b1b","red-900":"#7f1d1d","orange-50":"#fff7ed","orange-100":"#ffedd5","orange-200":"#fed7aa","orange-300":"#fdba74","orange-400":"#fb923c","orange-500":"#f97316","orange-600":"#ea580c","orange-700":"#c2410c","orange-800":"#9a3412","orange-900":"#7c2d12","amber-50":"#fffbeb","amber-100":"#fef3c7","amber-200":"#fde68a","amber-300":"#fcd34d","amber-400":"#fbbf24","amber-500":"#f59e0b","amber-600":"#d97706","amber-700":"#b45309","amber-800":"#92400e","amber-900":"#78350f","yellow-50":"#fefce8","yellow-100":"#fef9c3","yellow-200":"#fef08a","yellow-300":"#fde047","yellow-400":"#facc15","yellow-500":"#eab308","yellow-600":"#ca8a04","yellow-700":"#a16207","yellow-800":"#854d0e","yellow-900":"#713f12","lime-50":"#f7fee7","lime-100":"#ecfccb","lime-200":"#d9f99d","lime-300":"#bef264","lime-400":"#a3e635","lime-500":"#84cc16","lime-600":"#65a30d","lime-700":"#4d7c0f","lime-800":"#3f6212","lime-900":"#365314","green-50":"#f0fdf4","green-100":"#dcfce7","green-200":"#bbf7d0","green-300":"#86efac","green-400":"#4ade80","green-500":"#22c55e","green-600":"#16a34a","green-700":"#15803d","green-800":"#166534","green-900":"#14532d","emerald-50":"#ecfdf5","emerald-100":"#d1fae5","emerald-200":"#a7f3d0","emerald-300":"#6ee7b7","emerald-400":"#34d399","emerald-500":"#10b981","emerald-600":"#059669","emerald-700":"#047857","emerald-800":"#065f46","emerald-900":"#064e3b","teal-50":"#f0fdfa","teal-100":"#ccfbf1","teal-200":"#99f6e4","teal-300":"#5eead4","teal-400":"#2dd4bf","teal-500":"#14b8a6","teal-600":"#0d9488","teal-700":"#0f766e","teal-800":"#115e59","teal-900":"#134e4a","cyan-50":"#ecfeff","cyan-100":"#cffafe","cyan-200":"#a5f3fc","cyan-300":"#67e8f9","cyan-400":"#22d3ee","cyan-500":"#06b6d4","cyan-600":"#0891b2","cyan-700":"#0e7490","cyan-800":"#155e75","cyan-900":"#164e63","light-blue-50":"#f0f9ff","light-blue-100":"#e0f2fe","light-blue-200":"#bae6fd","light-blue-300":"#7dd3fc","light-blue-400":"#38bdf8","light-blue-500":"#0ea5e9","light-blue-600":"#0284c7","light-blue-700":"#0369a1","light-blue-800":"#075985","light-blue-900":"#0c4a6e","blue-50":"#eff6ff","blue-100":"#dbeafe","blue-200":"#bfdbfe","blue-300":"#93c5fd","blue-400":"#60a5fa","blue-500":"#3b82f6","blue-600":"#2563eb","blue-700":"#1d4ed8","blue-800":"#1e40af","blue-900":"#1e3a8a","indigo-50":"#eef2ff","indigo-100":"#e0e7ff","indigo-200":"#c7d2fe","indigo-300":"#a5b4fc","indigo-400":"#818cf8","indigo-500":"#6366f1","indigo-600":"#4f46e5","indigo-700":"#4338ca","indigo-800":"#3730a3","indigo-900":"#312e81","violet-50":"#f5f3ff","violet-100":"#ede9fe","violet-200":"#ddd6fe","violet-300":"#c4b5fd","violet-400":"#a78bfa","violet-500":"#8b5cf6","violet-600":"#7c3aed","violet-700":"#6d28d9","violet-800":"#5b21b6","violet-900":"#4c1d95","purple-50":"#faf5ff","purple-100":"#f3e8ff","purple-200":"#e9d5ff","purple-300":"#d8b4fe","purple-400":"#c084fc","purple-500":"#a855f7","purple-600":"#9333ea","purple-700":"#7e22ce","purple-800":"#6b21a8","purple-900":"#581c87","fuchsia-50":"#fdf4ff","fuchsia-100":"#fae8ff","fuchsia-200":"#f5d0fe","fuchsia-300":"#f0abfc","fuchsia-400":"#e879f9","fuchsia-500":"#d946ef","fuchsia-600":"#c026d3","fuchsia-700":"#a21caf","fuchsia-800":"#86198f","fuchsia-900":"#701a75","pink-50":"#fdf2f8","pink-100":"#fce7f3","pink-200":"#fbcfe8","pink-300":"#f9a8d4","pink-400":"#f472b6","pink-500":"#ec4899","pink-600":"#db2777","pink-700":"#be185d","pink-800":"#9d174d","pink-900":"#831843","rose-50":"#fff1f2","rose-100":"#ffe4e6","rose-200":"#fecdd3","rose-300":"#fda4af","rose-400":"#fb7185","rose-500":"#f43f5e","rose-600":"#e11d48","rose-700":"#be123c","rose-800":"#9f1239","rose-900":"#881337"},ji={xs:"0.75rem",sm:"0.875rem",default:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Bs=Object.keys(ji).reduce((Kn,ht)=>(Kn[ht]={fontSize:ht,lineHeight:ht},Kn),{}),Hs={colors:ti(ua),space:ui,screens:{_:0,xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},durations:{instant:"100ms","fast-in":"250ms","fast-out":"200ms","slow-in":"300ms","slow-out":"250ms"},sizes:va(El({},ui),{.5:void 0,1:void 0,"0.5s":ui[.5],"1s":ui[1],full:"100%",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"}),radii:{none:"0",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",default:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)"},fontSizes:ji,fontWeights:{hairline:"100",thin:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},fonts:{mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2,3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",xs:"1rem",sm:"1.25rem",default:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":1,"6xl":1,"7xl":1,"8xl":1,"9xl":1},gridTemplateColumns:{1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},borderWidths:{default:1},ringWidths:{default:3},borders:{default:"1px solid transparent"},texts:Bs,transitions:fd,transitionProperties:Al,timingFunctions:us,animations:{spin:"x-spin 1s linear infinite",ping:"x-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"x-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"x-bounce 1s infinite"},states:{_:null,motionSafe:"@media (prefers-reduced-motion: no-preference)",motionReduce:"@media (prefers-reduced-motion: reduce)",first:"&:first-child",last:"&:last-child",odd:"&:odd",even:"&:even",visited:"&:visited",checked:"&:checked",focusWithin:"&:focus-within",hover:"&:hover",focus:"&:focus",focusVisible:"&:focus-visible",active:"&:active",disabled:"&:disabled, &[aria-disabled=true]",placeholder:"&::placeholder"},xstyled:{cache:!0}},pi=Kn=>`
|