@elliemae/pui-app-sdk 5.44.1 → 5.44.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/build/docs/404.html +1 -1
  2. package/build/docs/api/classes/Analytics/index.html +1 -1
  3. package/build/docs/api/classes/CMicroAppGuest/index.html +1 -1
  4. package/build/docs/api/classes/CMicroAppHost/index.html +1 -1
  5. package/build/docs/api/classes/ErrorBoundary/index.html +1 -1
  6. package/build/docs/api/classes/GuestModule/index.html +1 -1
  7. package/build/docs/api/functions/AppRoot/index.html +1 -1
  8. package/build/docs/api/functions/Autocomplete/index.html +1 -1
  9. package/build/docs/api/functions/CheckBox/index.html +1 -1
  10. package/build/docs/api/functions/ComboBox/index.html +1 -1
  11. package/build/docs/api/functions/ComboBoxV3/index.html +1 -1
  12. package/build/docs/api/functions/ConnectForm/index.html +1 -1
  13. package/build/docs/api/functions/DateInput/index.html +1 -1
  14. package/build/docs/api/functions/DatePicker/index.html +1 -1
  15. package/build/docs/api/functions/DateRangePicker/index.html +1 -1
  16. package/build/docs/api/functions/DateTimePicker/index.html +1 -1
  17. package/build/docs/api/functions/Form/index.html +1 -1
  18. package/build/docs/api/functions/FormItemLayout/index.html +1 -1
  19. package/build/docs/api/functions/FormLayoutBlockItem/index.html +1 -1
  20. package/build/docs/api/functions/FormSubmitButton/index.html +1 -1
  21. package/build/docs/api/functions/InputMask/index.html +1 -1
  22. package/build/docs/api/functions/InputText/index.html +1 -1
  23. package/build/docs/api/functions/LargeTextBox/index.html +1 -1
  24. package/build/docs/api/functions/MaskedInputText/index.html +1 -1
  25. package/build/docs/api/functions/Page/index.html +1 -1
  26. package/build/docs/api/functions/Radio/index.html +1 -1
  27. package/build/docs/api/functions/RadioGroup/index.html +1 -1
  28. package/build/docs/api/functions/RegisterService/index.html +1 -1
  29. package/build/docs/api/functions/RenderWithStateAddOns/index.html +1 -1
  30. package/build/docs/api/functions/RequireAuth/index.html +1 -1
  31. package/build/docs/api/functions/SessionTimeout/index.html +1 -1
  32. package/build/docs/api/functions/TextBox/index.html +1 -1
  33. package/build/docs/api/functions/Toggle/index.html +1 -1
  34. package/build/docs/api/functions/authSaga/index.html +1 -1
  35. package/build/docs/api/functions/authorize/index.html +1 -1
  36. package/build/docs/api/functions/buildModuleParams/index.html +1 -1
  37. package/build/docs/api/functions/cleanup/index.html +1 -1
  38. package/build/docs/api/functions/configureStore/index.html +1 -1
  39. package/build/docs/api/functions/createGuestModule/index.html +1 -1
  40. package/build/docs/api/functions/createManager/index.html +1 -1
  41. package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +1 -1
  42. package/build/docs/api/functions/fetchHostAppData/index.html +1 -1
  43. package/build/docs/api/functions/fetchUserSettings/index.html +1 -1
  44. package/build/docs/api/functions/getApiActionCreator/index.html +1 -1
  45. package/build/docs/api/functions/getAppConfig/index.html +1 -1
  46. package/build/docs/api/functions/getAppConfigValue/index.html +1 -1
  47. package/build/docs/api/functions/getAuthHTTPClient/index.html +1 -1
  48. package/build/docs/api/functions/getAuthorizationHeader/index.html +1 -1
  49. package/build/docs/api/functions/getHTTPClient/index.html +1 -1
  50. package/build/docs/api/functions/getHostAppDataByKey/index.html +1 -1
  51. package/build/docs/api/functions/getLogger/index.html +1 -1
  52. package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +1 -1
  53. package/build/docs/api/functions/getNavigationLinks/index.html +1 -1
  54. package/build/docs/api/functions/getRedirectUrl/index.html +1 -1
  55. package/build/docs/api/functions/getSelectField/index.html +1 -1
  56. package/build/docs/api/functions/getStore/index.html +1 -1
  57. package/build/docs/api/functions/initServiceWorker/index.html +1 -1
  58. package/build/docs/api/functions/isCIBuild/index.html +1 -1
  59. package/build/docs/api/functions/isProd/index.html +1 -1
  60. package/build/docs/api/functions/isUserAuthorized/index.html +1 -1
  61. package/build/docs/api/functions/listenStorageEvents/index.html +1 -1
  62. package/build/docs/api/functions/loadAppConfig/index.html +1 -1
  63. package/build/docs/api/functions/loadable/index.html +1 -1
  64. package/build/docs/api/functions/login/index.html +1 -1
  65. package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +1 -1
  66. package/build/docs/api/functions/onAuthorizationFailure/index.html +1 -1
  67. package/build/docs/api/functions/onGuestUnloadStart/index.html +1 -1
  68. package/build/docs/api/functions/redactPii/index.html +1 -1
  69. package/build/docs/api/functions/removeDoubleSlash/index.html +1 -1
  70. package/build/docs/api/functions/removeStorageEvents/index.html +1 -1
  71. package/build/docs/api/functions/render/index.html +1 -1
  72. package/build/docs/api/functions/renderHook/index.html +1 -1
  73. package/build/docs/api/functions/renderWithHostData/index.html +1 -1
  74. package/build/docs/api/functions/renderWithRedux/index.html +1 -1
  75. package/build/docs/api/functions/renderWithRouter/index.html +1 -1
  76. package/build/docs/api/functions/renderWithRouterRedux/index.html +1 -1
  77. package/build/docs/api/functions/sdkBaseQuery/index.html +1 -1
  78. package/build/docs/api/functions/sendBAEvent/index.html +1 -1
  79. package/build/docs/api/functions/sendMessageToHost/index.html +1 -1
  80. package/build/docs/api/functions/setAppConfig/index.html +1 -1
  81. package/build/docs/api/functions/setAppConfigValue/index.html +1 -1
  82. package/build/docs/api/functions/setHostAppData/index.html +1 -1
  83. package/build/docs/api/functions/setLoginParams/index.html +1 -1
  84. package/build/docs/api/functions/subscribeToResetSession/index.html +1 -1
  85. package/build/docs/api/functions/subscribeToSessionExpiry/index.html +1 -1
  86. package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +1 -1
  87. package/build/docs/api/functions/trackActivity/index.html +1 -1
  88. package/build/docs/api/functions/useAppDispatch/index.html +1 -1
  89. package/build/docs/api/functions/useAppMiddleware/index.html +1 -1
  90. package/build/docs/api/functions/useInjectQuery/index.html +1 -1
  91. package/build/docs/api/functions/useInjectReducer/index.html +1 -1
  92. package/build/docs/api/functions/useInjectSaga/index.html +1 -1
  93. package/build/docs/api/functions/useInjectSideEffect/index.html +1 -1
  94. package/build/docs/api/functions/useMediaQueryList/index.html +1 -1
  95. package/build/docs/api/functions/useStateSelector/index.html +1 -1
  96. package/build/docs/api/functions/useStateSelectorShallow/index.html +1 -1
  97. package/build/docs/api/functions/waitFor/index.html +1 -1
  98. package/build/docs/api/functions/waitForElementToBeRemoved/index.html +1 -1
  99. package/build/docs/api/functions/withAppDecorator/index.html +1 -1
  100. package/build/docs/api/index.html +1 -1
  101. package/build/docs/api/interfaces/AppConfig/index.html +1 -1
  102. package/build/docs/api/interfaces/GuestProps/index.html +1 -1
  103. package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +1 -1
  104. package/build/docs/api/type-aliases/AppDispatch/index.html +1 -1
  105. package/build/docs/api/type-aliases/AppStore/index.html +1 -1
  106. package/build/docs/api/type-aliases/Await/index.html +1 -1
  107. package/build/docs/api/type-aliases/EMUI/index.html +1 -1
  108. package/build/docs/api/type-aliases/HostOptions/index.html +1 -1
  109. package/build/docs/api/type-aliases/HostProvidedParams/index.html +1 -1
  110. package/build/docs/api/type-aliases/ModuleOverrides/index.html +1 -1
  111. package/build/docs/api/type-aliases/OnHostInitCallback/index.html +1 -1
  112. package/build/docs/api/type-aliases/OnInitCallback/index.html +1 -1
  113. package/build/docs/api/type-aliases/OnMountCallback/index.html +1 -1
  114. package/build/docs/api/type-aliases/OnUnMountCallback/index.html +1 -1
  115. package/build/docs/api/type-aliases/RootState/index.html +1 -1
  116. package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +1 -1
  117. package/build/docs/api/variables/ErrorToast/index.html +1 -1
  118. package/build/docs/api/variables/FormPropsContext/index.html +1 -1
  119. package/build/docs/api/variables/GuestMicroApp/index.html +1 -1
  120. package/build/docs/api/variables/MASK_PIPES/index.html +1 -1
  121. package/build/docs/api/variables/MASK_TYPES/index.html +1 -1
  122. package/build/docs/api/variables/MicroApp/index.html +1 -1
  123. package/build/docs/api/variables/MicroIFrameApp/index.html +1 -1
  124. package/build/docs/api/variables/NavigationPrompt/index.html +1 -1
  125. package/build/docs/api/variables/NavigationPromptActions/index.html +1 -1
  126. package/build/docs/api/variables/Themes/index.html +1 -1
  127. package/build/docs/api/variables/VisuallyHidden/index.html +1 -1
  128. package/build/docs/api/variables/WaitMessage/index.html +1 -1
  129. package/build/docs/api/variables/act/index.html +1 -1
  130. package/build/docs/api/variables/ariaLive/index.html +1 -1
  131. package/build/docs/api/variables/auth/index.html +1 -1
  132. package/build/docs/api/variables/authReducer/index.html +1 -1
  133. package/build/docs/api/variables/clearSideEffects/index.html +1 -1
  134. package/build/docs/api/variables/createSideEffect/index.html +1 -1
  135. package/build/docs/api/variables/decorators/index.html +1 -1
  136. package/build/docs/api/variables/endSession/index.html +1 -1
  137. package/build/docs/api/variables/error/index.html +1 -1
  138. package/build/docs/api/variables/errorMiddleware/index.html +1 -1
  139. package/build/docs/api/variables/fireEvent/index.html +1 -1
  140. package/build/docs/api/variables/globalConstants/index.html +1 -1
  141. package/build/docs/api/variables/history/index.html +1 -1
  142. package/build/docs/api/variables/httpClientProps/index.html +1 -1
  143. package/build/docs/api/variables/logout/index.html +1 -1
  144. package/build/docs/api/variables/memoryHistory/index.html +1 -1
  145. package/build/docs/api/variables/removeSideEffect/index.html +1 -1
  146. package/build/docs/api/variables/resetUserIdleTime/index.html +1 -1
  147. package/build/docs/api/variables/screen/index.html +1 -1
  148. package/build/docs/api/variables/startSideEffect/index.html +1 -1
  149. package/build/docs/api/variables/updateBAEventParameters/index.html +1 -1
  150. package/build/docs/api/variables/useAppSelector/index.html +1 -1
  151. package/build/docs/api/variables/waitMessageAction/index.html +1 -1
  152. package/build/docs/api/variables/within/index.html +1 -1
  153. package/build/docs/assets/js/{main.1bc3906d.js → main.1bebbb71.js} +2 -2
  154. package/build/docs/index.html +1 -1
  155. package/build/docs/usage-guide/index.html +1 -1
  156. package/demo/{docs/1896.f079560a.iframe.bundle.js → 1896.619ce620.iframe.bundle.js} +1 -1
  157. package/demo/1896.619ce620.iframe.bundle.js.br +0 -0
  158. package/demo/{docs/1896.f079560a.iframe.bundle.js.gz → 1896.619ce620.iframe.bundle.js.gz} +0 -0
  159. package/demo/{1896.f079560a.iframe.bundle.js → docs/1896.619ce620.iframe.bundle.js} +1 -1
  160. package/demo/docs/1896.619ce620.iframe.bundle.js.br +0 -0
  161. package/demo/{1896.f079560a.iframe.bundle.js.gz → docs/1896.619ce620.iframe.bundle.js.gz} +0 -0
  162. package/demo/docs/iframe.html +1 -1
  163. package/demo/docs/index.html +1 -1
  164. package/demo/docs/{main.e50da2045dbe0d31db54.manager.bundle.js → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js} +1 -1
  165. package/demo/docs/{main.e50da2045dbe0d31db54.manager.bundle.js.br → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.br} +0 -0
  166. package/demo/docs/{main.e50da2045dbe0d31db54.manager.bundle.js.gz → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.gz} +0 -0
  167. package/demo/docs/{main.b01a6dc6.iframe.bundle.js → main.b368484e.iframe.bundle.js} +1 -1
  168. package/demo/docs/main.b368484e.iframe.bundle.js.br +0 -0
  169. package/demo/docs/main.b368484e.iframe.bundle.js.gz +0 -0
  170. package/demo/docs/project.json +1 -1
  171. package/demo/iframe.html +1 -1
  172. package/demo/index.html +1 -1
  173. package/demo/{main.e50da2045dbe0d31db54.manager.bundle.js → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js} +1 -1
  174. package/demo/{main.e50da2045dbe0d31db54.manager.bundle.js.br → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.br} +0 -0
  175. package/demo/{main.e50da2045dbe0d31db54.manager.bundle.js.gz → main.a6b1ae4b10ba95f2bb8e.manager.bundle.js.gz} +0 -0
  176. package/demo/{main.b01a6dc6.iframe.bundle.js → main.b368484e.iframe.bundle.js} +1 -1
  177. package/demo/main.b368484e.iframe.bundle.js.br +0 -0
  178. package/demo/main.b368484e.iframe.bundle.js.gz +0 -0
  179. package/demo/project.json +1 -1
  180. package/dist/cjs/view/guest-microapp.js +40 -17
  181. package/dist/cjs/view/iframe-teardown-sandbox.js +50 -0
  182. package/dist/cjs/view/micro-app/use-app-will-render.js +24 -3
  183. package/dist/esm/view/guest-microapp.js +43 -17
  184. package/dist/esm/view/iframe-teardown-sandbox.js +30 -0
  185. package/dist/esm/view/micro-app/use-app-will-render.js +24 -3
  186. package/dist/types/lib/view/iframe-teardown-sandbox.d.ts +20 -0
  187. package/dist/types/lib/view/tests/iframe-teardown-sandbox.test.d.ts +1 -0
  188. package/dist/types/tsconfig.tsbuildinfo +1 -1
  189. package/package.json +1 -1
  190. package/demo/1896.f079560a.iframe.bundle.js.br +0 -0
  191. package/demo/docs/1896.f079560a.iframe.bundle.js.br +0 -0
  192. package/demo/docs/main.b01a6dc6.iframe.bundle.js.br +0 -0
  193. package/demo/docs/main.b01a6dc6.iframe.bundle.js.gz +0 -0
  194. package/demo/main.b01a6dc6.iframe.bundle.js.br +0 -0
  195. package/demo/main.b01a6dc6.iframe.bundle.js.gz +0 -0
  196. /package/build/docs/assets/js/{main.1bc3906d.js.LICENSE.txt → main.1bebbb71.js.LICENSE.txt} +0 -0
@@ -18397,7 +18397,7 @@ ${Q}`;console.warn(W),k.warned=!0}return T(G,F,B,...U)};return Object.defineProp
18397
18397
  }
18398
18398
  }
18399
18399
  ${d.L1}
18400
- `;e.d(o,["Az",0,v,"G3",0,g,"KZ",0,b,"OV",0,j,"_W",0,c,"f7",0,E,"rf",0,p,"uP",0,h])},"./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";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")};e.d(o,["AS",0,g,"Gs",0,d,"x7",0,c])},"./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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,b3:()=>n});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()}`;e.d(o,["_s",0,s,"xH",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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.29.0_@elliemae+pui-diagnostics@3.12.6_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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t});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";e.d(o,["h",0,n])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>a});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}#m=()=>{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.#m,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};#c=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)};#v=({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.#c(m.data):m.data.type===s?this.#h(m.data):this.#v({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}`)}}e.d(o,["_",0,d])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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=()=>{}}e.d(o,["Q",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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.2/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.29.0_@elliemae+pui-diagnostics@3.12.6_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.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/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.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";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}};e.d(o,["QS",0,d,"nE",0,a,"np",0,s])},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";const t=()=>window.emui?.logRocket,i=new Map,d=P=>{i.size<50||i.forEach((w,S)=>{P-w.windowStart>=1e3&&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<1e3){if(T.count>=3)return;T.count+=1}else d(D),i.set(A,{windowStart:D,count:1});const k=Object.keys(S).length;k>a&&console.warn(`[analytics] lrTrack "${w}" has ${k} 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)};e.d(o,["As",0,E,"E3",0,h])},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.29.0_@elliemae+pui-diagnostics@3.12.6_@elliemae+pui-logrocket@1.3._a3wvyjkzxvlfw6hybwiifbsika/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>bt});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=(V=>(V.Analytics="analytics",V.Application="application",V.Auth="auth",V.Form="form",V.Global="global",V.Http="http",V.Loan="loan",V.LoanV2="loanV2",V.MemStorage="memstorage",V.Module="module",V.Service="service",V.Session="session",V.Styling="styling",V.Transaction="transaction",V.TransactionTemplate="transactiontemplate",V.WebSocket="websocket",V))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(q){this.#n=q}#o=(q,ne)=>{const le=new Promise(xe=>{setTimeout(()=>{xe()},ne)});return Promise.race([q,le])};#r=q=>{const{eventName:ne,scriptingObject:le,eventParams:xe,listeners:pn}=q;pn.forEach(kn=>{kn.criteria&&!(xe&&this.#s(xe,kn.criteria))||Promise.resolve(kn.callback({obj:le,eventName:ne,eventParams:xe})).catch(Rn=>{this.#n?.warn(`Error in event listener for "${ne}": ${Rn.message}`)})})};#i=async({eventId:q,eventName:ne,scriptingObject:le,eventParams:xe,feedbackWaitTime:pn})=>{const Rn=(this.#e.get(q)||[]).map(zt=>zt.criteria&&!(xe?this.#s(xe,zt.criteria):!1)?Promise.resolve():this.#o(zt.callback({obj:le,eventName:ne,eventParams:xe}),pn));return(await Promise.all(Rn)).flat(1/0).filter(zt=>zt!==void 0)};#s(q,ne){return Object.entries(ne).every(([le,xe])=>{const pn=q[le];if("eq"in xe)return pn===xe.eq;if("in"in xe)return Array.isArray(xe.in)&&xe.in.includes(pn);if("includes"in xe)return Array.isArray(pn)&&pn.includes(xe.includes);if("gt"in xe){const kn=typeof pn=="number"?pn:Number(pn);return!Number.isNaN(kn)&&kn>xe.gt}if("lt"in xe){const kn=typeof pn=="number"?pn:Number(pn);return!Number.isNaN(kn)&&kn<xe.lt}if("regex"in xe){let kn=this.#t.get(xe);if(kn===void 0){try{kn=new RegExp(xe.regex)}catch{kn=null}this.#t.set(xe,kn)}return kn!==null&&typeof pn=="string"&&kn.test(pn)}return!1})}dispatchEvent=async(q,ne)=>{const{event:{id:le,name:xe},eventParams:pn,eventOptions:kn}=ne,{timeout:Rn}=kn??{};if(!le)throw new Error("Event Id is required");const Pt=this.#e.get(le)||[];return!Rn||Rn<=0?(this.#r({eventName:xe,scriptingObject:q,eventParams:pn,listeners:Pt}),Promise.resolve()):this.#i({eventId:le,eventName:xe,scriptingObject:q,eventParams:pn,feedbackWaitTime:Rn})};subscribe=q=>{const{eventId:ne,callback:le,criteria:xe}=q;if(!ne)throw new Error("eventId is required");if(!le)throw new Error("Callback is required");const pn=this.#e.get(ne)||[],kn=(0,n.A)();return pn.push({token:kn,criteria:xe,callback:le}),this.#e.set(ne,pn),kn};unsubscribe=q=>{const{eventId:ne,token:le}=q;if(!ne)throw new Error("eventId id is required");if(le){const xe=this.#e.get(ne)||[],pn=xe.findIndex(kn=>kn.token===le);pn>-1&&(xe.splice(pn,1),this.#e.set(ne,xe))}else this.#e.delete(ne)};unsubscribeAll=()=>{this.#e.clear()}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=V=>V.replace(/([^:]\/)\/+/g,"$1"),g=V=>{const q=document.createElement("a");return q.href=V,q.href},b=V=>V?.replace?.(/\/?$/,"/"),v=(V,q)=>`${V.replace(/\/+$/,"")}/${q.replace(/^\/+/,"")}`,h=V=>/^(\/|https?:\/\/)/.test(V),x=(V,q)=>{const ne=b(q);if(h(ne)){const{origin:le}=new URL(V,window.location.href);return p(new URL(ne,le).href)}return p(new URL(ne,b(V)).href)},j=(V,q)=>p(new URL("manifest.json",x(V,q)).href),E=()=>window.navigator.userAgent.includes("jsdom"),P=V=>V.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=V=>{try{if(new URL(V,window.location.href).origin===window.location.origin)return V;const ne=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${ne}/frame.html`}catch{return V}},S="pui-app-container-",A=V=>{const q=V.src??m.default??m,ne=w(q);if(!V.queryParams)return ne;const le=V.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${ne}${ne.includes("?")?"&":"?"}${le}`},D=({documentEle:V,hostUrl:q,manifestPath:ne,guestId:le})=>{const xe=V.getElementById(S);xe&&(xe.id=`${xe.id}${le}`);const pn=x(q,ne);let kn=V.getElementsByTagName("base")?.[0];if(kn){kn.href=pn;return}kn=V.createElement("base"),kn.href=pn,V.getElementsByTagName("head")[0].appendChild(kn)},T=({id:V,instanceId:q,manifestPath:ne,hostUrl:le,options:xe})=>new Promise((pn,kn)=>{const{signal:Rn}=xe;if(Rn?.aborted){kn(new DOMException("iframe creation aborted","AbortError"));return}const Pt=document.createElement("div");Pt.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const zt=document.createElement("iframe");zt.setAttribute("id",q),zt.setAttribute("data-testid",V),zt.setAttribute("title",xe.title),zt.setAttribute("allowfullscreen","true"),zt.setAttribute("allowtransparency","true"),xe.permissionPolicy&&zt.setAttribute("allow",xe.permissionPolicy),xe.sandbox&&zt.setAttribute("sandbox",xe.sandbox),zt.setAttribute("style",xe.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),zt.setAttribute("src",A(xe));const ir=1e4;let pr=!1,st,mn;const Mn=()=>{clearTimeout(st),Rn?.removeEventListener("abort",mn)},_n=()=>Rn?.aborted?(pr||(pr=!0,Mn(),Pt.remove(),kn(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(mn=()=>{_n()},_n())return;Rn?.addEventListener("abort",mn),st=setTimeout(()=>{pr||(pr=!0,Mn(),Pt.remove(),kn(new Error(`iframe for ${V} failed to load within ${ir}ms`)))},ir),zt.addEventListener("error",()=>{pr||(pr=!0,Mn(),Pt.remove(),kn(new Error(`iframe for ${V} failed to load`)))}),zt.addEventListener("load",()=>{pr||_n()||zt.contentDocument&&(pr=!0,Mn(),D({documentEle:zt.contentDocument,hostUrl:le,manifestPath:ne,guestId:V}),pn(zt))}),Pt.appendChild(zt);const{containerId:fn}=xe;(document.getElementById(fn??"")??document.body).appendChild(Pt)}),k=V=>document.getElementById(V),G={create:T,remove:V=>{const q=k(V);q&&q.parentElement?.remove()},get:k};var F=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const B=()=>{try{return window.parent.document,window.parent}catch{return window}},U=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),K=V=>Number(V.replace("px","")),Q=()=>{const{width:V}=U(),{breakpoints:q}=(0,F.getDefaultTheme)();return V<=K(q.small)?"small":V<=K(q.medium)?"medium":"large"};var W=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"),L=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),I=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),z=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const $=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}');var J=(V=>(V.DEVELOPMENT="development",V.PRODUCTION="production",V))(J||{}),H=(V=>(V.SSF="ssf",V.APPSDK="appsdk",V))(H||{});class ee{#e=$;#t;#n;constructor(q){this.#t=q?.version||"latest",this.#n=b(q?.baseUrl||"")}#o=q=>{const{activeEnv:ne,env:le,...xe}=q,pn=le[ne]||{};this.#e=z({},xe,pn)};get=(q="",ne=null)=>W(M(this.#e,q,ne));set=(q,ne)=>{L(this.#e,q,ne)};has=(q="")=>I(this.#e,q);setPreloadedConfig=q=>{this.#e=q};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const ne=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${ne?.[0]||"latest"}`)}return this.#n};load=async q=>{const ne=q??`${this.#r()}app.config.json`;let le;try{le=await fetch(ne)}catch(xe){if(!q&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:xe})}if(le.ok)try{const xe=await le.json();this.#o(xe)}catch(xe){if(!q&&this.#t!=="latest")await this.load(`${this.#n}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:xe})}else{if(!q&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var te=(V=>(V.USER="USER",V.PARTNER="PARTNER",V))(te||{}),me=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const se="microFrontendApps",pe=()=>me.env.CI==="true",oe=V=>pe()?!0:String(V).toLowerCase()===J.PRODUCTION.toLowerCase(),ie=V=>V?new URL(V).pathname:"",ge=V=>{const q=document.createElement("a");return q.href=V,q.href},re=(V,q)=>{const ne=q.match(/^(?:\d+\.\d+)*/g);return V.replace(/{SYSTEM_VERSION}/,ne&&ne[0]||"latest")},ve=V=>!V||!V.length?!1:V.every(q=>typeof q=="string"),Be=(V,q)=>{const{mode:ne=J.PRODUCTION}=q;if(String(ne).toLowerCase()!==J.PRODUCTION.toLowerCase()&&String(ne).toLowerCase()!==J.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(ne)}' for ${V}`);const{production:le,development:xe,microappManager:pn=H.APPSDK}=q;if(String(pn).toLowerCase()===H.APPSDK.toLowerCase()){if(String(ne).toLowerCase()===J.PRODUCTION.toLowerCase()){if(!le)throw new Error(`microFrontendApps.${V} is missing production section in app.config.json`);if(!ve(le.files))throw new Error("invalid value for production.files")}if(String(ne).toLowerCase()===J.DEVELOPMENT.toLowerCase()){if(!xe)throw new Error(`microFrontendApps.${V} is missing development section in app.config.json`);if(!ve(xe.files))throw new Error("invalid value for development.files")}}},Ke=({id:V,config:q,version:ne="latest"})=>{const{mode:le=J.PRODUCTION,production:xe,development:pn,...kn}=q,Rn=oe(le)?xe:pn,Pt=z({id:V},{name:V,mode:J.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:te.USER,isJsModule:!0},kn,{mode:le},Rn);return Pt.hostUrl=b(ge(Pt.hostUrl||"")),Pt.homeRoute=b(Pt.homeRoute)||ie(Pt.hostUrl),Pt.manifestPath=b(re(Pt.manifestPath,ne)),Pt};class Xe{#e=[];init=({version:q,appConfig:ne})=>{const le=ne.get(se);le&&(this.#e=Object.keys(le).map(xe=>(Be(xe,le[xe]),Ke({id:xe,config:le[xe],version:q}))))};getConfigById=q=>this.#e.find(ne=>ne.id===q)}const fe=/^https?:\/\//i,ce=(V,q)=>{if(!fe.test(V))return!1;try{return!V.startsWith(new URL(q).href)}catch{return!0}},Ce=(V,q)=>{const ne=[],le=[];return V.forEach(xe=>{ce(xe.href,q)?ne.push(xe):le.push(xe)}),{external:ne,local:le}},Ne=V=>{if(!V)return;const q=V,ne=q.emui?._ASSET_PATH;ne&&(q.__webpack_public_path__=new URL("../",ne).href)},Pe=(V,q)=>{if(!(!V||!q))try{const ne=V;ne.__webpack_public_path__=new URL("./",q).href}catch{}},Ve=(V,q)=>{if(!V)return;if(V.emui?._ASSET_PATH){Ne(V);return}Pe(V,q)},ze="ice-script-";class nn{#e;constructor(q){this.#e=q}#t=({href:q,isESMModule:ne=!0,documentEle:le})=>{const xe=le.createElement("link");xe.rel=ne?"modulepreload":"preload",xe.href=q,xe.crossOrigin="anonymous",ne||(xe.as="script"),le.head.appendChild(xe)};#n=({id:q,href:ne,documentEle:le,isESMModule:xe=!0})=>new Promise((pn,kn)=>{const Rn=le.createElement("script");Rn.id=q,Rn.src=p(ne),Rn.crossOrigin="anonymous",Rn.nonce="__CSP_NONCE__",!E()&&xe?Rn.type="module":Rn.async=!1,Rn.onload=pn.bind(null,Rn.id),Rn.onerror=Pt=>{this.#e.error({message:`Error loading script ${Rn.src}`,exception:new Error(Pt)}),kn(new Error(`Unable to load script ${Rn.src}`,{cause:new Error(Pt)}))},le.head.appendChild(Rn)});#o=async(q,ne,le)=>{if(q.length===0)return;const xe=q.map(({id:pn,href:kn})=>this.#n({id:pn,href:kn,documentEle:ne,isESMModule:le}));await Promise.all(xe)};#r=async({scripts:q,documentEle:ne,isESMModule:le,hostUrl:xe})=>{if(q.length===0)return;if(!xe){await this.#o(q,ne,le);return}const{external:pn,local:kn}=Ce(q,xe);await this.#o(pn,ne,le),Ve(ne.defaultView,xe),await this.#o(kn,ne,le)};load=async(q,ne)=>{const{documentEle:le,isESMModule:xe}=ne,pn=/^https?:\/\//i,kn=q.map((Rn,Pt)=>{const zt=`${ze}${ne.name.toLowerCase()}-${Pt}`,ir=pn.test(Rn)?Rn:new URL(Rn,ne.hostUrl).href;return this.#t({href:ir,documentEle:le,isESMModule:xe}),{id:zt,href:ir}});return await this.#r({scripts:kn,documentEle:le,isESMModule:xe,hostUrl:ne.hostUrl}),Ve(le.defaultView,ne.hostUrl),kn.map(Rn=>Rn.id)};remove=(q="",ne=document)=>new Promise(le=>{const xe=ne.getElementById(q);if(!xe){this.#e.warn(`script with id ${q} not found`),le();return}xe.remove(),le()});removeDynamicImportedScripts=(q,ne)=>{const le=new RegExp(P(q),"i"),xe=ne.getElementsByTagName("script");for(let pn=xe.length-1;pn>=0;pn-=1){const kn=xe[pn],{src:Rn}=kn;le.test(Rn)&&kn.remove()}};removePrefetchLinks=(q,ne)=>{const le=new RegExp(P(q),"i"),xe=ne.querySelectorAll('[rel="prefetch"]');for(let pn=xe.length-1;pn>=0;pn-=1){const kn=xe[pn],{href:Rn}=kn;le.test(Rn)&&kn.remove()}}}const qe="ice-style-";class hn{#e;constructor(q){this.#e=q}#t=({id:q,href:ne,documentEle:le})=>new Promise((xe,pn)=>{const kn=le.createElement("link");kn.id=q,kn.nonce="__CSP_NONCE__",kn.rel="stylesheet",kn.href=p(ne),kn.onload=xe.bind(null,kn.id),kn.onerror=Rn=>{this.#e.error({message:`Error loading stylesheet ${kn.href}`,exception:new Error(Rn)}),pn(new Error(`Unable to load stylesheet ${kn.href}`,{cause:new Error(Rn)}))},le.head.appendChild(kn)});load=async(q,ne)=>{const le=[],xe=q.map((pn,kn)=>{const Rn=new URL(pn,ne.hostUrl),Pt=`${qe}${ne.name.toLowerCase()}-${kn}`;return le.push(Pt),this.#t({id:Pt,href:Rn.href,documentEle:ne.documentEle})});return await Promise.all(xe),le};remove=(q="",ne=document)=>new Promise(le=>{const xe=ne.getElementById(q);if(!xe){this.#e.warn(`style with id ${q} not found`),le();return}xe.remove(),le()});removeDynamicImportedStyles=(q,ne)=>{const le=new RegExp(P(q),"i"),xe=ne.querySelectorAll('[rel="stylesheet"]');for(let pn=xe.length-1;pn>=0;pn-=1){const kn=xe[pn],{href:Rn}=kn;le.test(Rn)&&kn.remove()}}}const Fe=V=>V.replace(/\/\d+\.\d+/,"/latest"),ue=V=>{let q;try{q=new URL(V)}catch{return!1}return q.protocol==="http:"||q.protocol==="https:"},je=new Map,De={get:async({hostUrl:V,manifestPath:q})=>{const ne=j(V,q),le=je.get(ne);if(le)return le;const xe=async pn=>{const kn=await fetch(pn);if(!kn.ok)throw new Error(`unable to get manifest ${pn}`);if(!(kn.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${pn} is not a valid json`);const Pt=await kn.json();return je.set(pn,Pt),Pt};try{return await xe(ne)}catch(pn){const kn=Fe(q);if(q!==kn){const Rn=j(V,kn);return await xe(Rn)}throw pn}},getFullFileNameofAssets:(V,q=[])=>q.reduce((ne,le)=>{const xe=V[le];if(xe)ne.push(xe);else if(ue(le))ne.push(le);else throw new Error(`unable to locate ${le} in manifest`);return ne},[]),clearCache:()=>je.clear()};class $e{#e;#t;#n;#o;#r;constructor(q){this.#t=q.guest,this.#e=q.containerId,this.#n=q?.version||"latest",this.#o=q.soManager,this.#r=q.eventManager}get version(){return this.#n}getObject=q=>{try{const ne=this.#o.getObject(q,this.#t);if(!ne)return Promise.resolve(null);const le=new a.V(ne.id,ne.objectType);return Object.keys(ne).forEach(xe=>{const pn=ne[xe];pn instanceof d.Jh?Object.defineProperty(le,xe,{value:new d.Jh({name:xe,objectId:ne.id}),enumerable:!0}):(0,s.Q)(pn,xe)&&Object.defineProperty(le,xe,{value:(...kn)=>{const Rn=le[xe]?.callContext?.callChain;return Object.defineProperty(pn,"callContext",{value:{guest:this.#t,...Rn?.length?{callChain:Rn}:{}},configurable:!0,enumerable:!0,writable:!0}),ne[xe](...kn)},enumerable:!0})}),Promise.resolve(le)}catch(ne){return Promise.reject(ne)}};setAppWindowSize=q=>{if(!this.#e)return;const{size:ne}=q,le=document.getElementById(this.#e);le&&(le.style.height=`${ne.height}px`,le.style.width=`${ne.width}px`)};subscribe=q=>this.#r.subscribe(q);unsubscribe=q=>{this.#r.unsubscribe(q)}}class Ze{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:q,app:ne})=>{if(!q)throw new Error("appId is required");if(q==="__proto__"||q==="constructor"||q==="prototype")throw new Error(`Invalid appId: ${q}`);if(!ne?.uuid)throw new Error("application uuid is required");if(window.emui[q]=window.emui[q]||[],Array.isArray(window.emui[q])){const le=window.emui[q].findIndex(xe=>xe.uuid===ne.uuid);le>-1?window.emui[q][le]=ne:window.emui[q].push(ne)}else{let le=window.emui[q];le?.uuid===ne.uuid?(le={...le,...ne},window.emui[q]=[le]):typeof le.init>"u"?window.emui[q]=[{...le,...ne}]:window.emui[q]=[window.emui[q],ne]}};get=({id:q,instanceId:ne})=>{const le=window.emui?.[q];return Array.isArray(le)?le.find(pn=>pn.uuid===ne)??null:le?.uuid===ne?le:null};add=({id:q,instanceId:ne,documentEle:le})=>{if(!ne)throw new Error(`instanceId (uuid) is required to register application ${q}`);const xe={uuid:ne,init:null,mount:null,unmount:null},pn=window.emui[q];pn?Array.isArray(pn)?pn.push(xe):window.emui[q]=[pn,xe]:window.emui[q]=[xe],le.defaultView&&(le.defaultView.emui=le.defaultView.emui??{},le.defaultView.emui.uuid=ne)};delete=({id:q,instanceId:ne})=>{if(Array.isArray(window.emui[q])){const le=window.emui[q].findIndex(xe=>xe.uuid===ne);le>-1&&window.emui[q].splice(le,1),window.emui[q].length===0&&delete window.emui[q]}else delete window.emui[q]}}const an=12e4,Me="module.unloading",Ee="module.unmount",On=1e3,Ln=new s.P(r.Module),Je=V=>Array.isArray(V)&&V.some(q=>q===!1),yn=["click","scroll","keypress","touchstart"],Tn=/\.css$/,rt=V=>Tn.test(V);class bt{#e;#t;#n;#o;#r;#i=new Xe;#s;#m;#a=new Map;#p=new Map;#l=new Ze;#c=!0;constructor(q){const{logger:ne}=q;if(!ne)throw new Error("logger is required");this.#e=q.logger,this.#t=q.version,this.#c=q.extendSession??!0,this.#r=new ee({version:q.version,baseUrl:q.appConfigBaseUrl}),this.#n=new nn(ne),this.#o=new hn(ne),this.#s=new i.qE,this.#m=new c(this.#e)}#h(q){return typeof q=="function"}#v=q=>q instanceof d.b3||typeof q?.subscribe=="function";#d=(q,ne)=>`Application ${q} with instance id ${ne} is not found. Most probably the appId property of app.config.json is not set to ${q}`;#w=(q,ne=document)=>{const{elementIds:le}=this.#a.get(q)||{};le&&le.forEach(xe=>{const pn=ne.getElementById(xe);pn&&pn.remove()})};#A=({id:q,instanceId:ne,documentEle:le,elementIds:xe,microFEHost:pn,selfInitialize:kn})=>{const Rn=this.#l.get({id:q,instanceId:ne});if(!Rn)throw new Error(this.#d(q,ne));this.#a.set(ne,{id:q,instanceId:ne,elementIds:xe,guest:{guestWindow:le?.defaultView,...Rn},microFEHost:pn,selfInitialize:kn})};#_=async({id:q,instanceId:ne,containerId:le,hostUrl:xe,manifestPath:pn,homeRoute:kn,initialRoute:Rn,history:Pt,theme:zt,microFEHost:ir})=>{const pr=this.#l.get({id:q,instanceId:ne});if(!pr)throw new Error(`Application ${q} with instance id ${ne} is not found. Most probably the appId property of app.config.json is not set to ${q}`);if(!pr.init||typeof pr.init!="function")throw new Error(`Application ${q} with instance id ${ne} doesn't expose init method`);const st=ir??new $e({guest:{id:q},version:this.#t,containerId:le,logger:this.#e,soManager:this.#s,eventManager:this.#m});return pr.init({host:st,hostUrl:xe,manifestPath:pn,homeRoute:kn,initialRoute:Rn,prevState:null,history:Pt,theme:zt,hostBreakpoint:Q(),hostViewportSize:U(),logger:this.#e})};#u=async q=>{try{const{id:ne,instanceId:le,files:xe,name:pn,hostUrl:kn,documentEle:Rn,isJsModule:Pt}=q;this.#e.debug(`Application ${ne} with instance id ${le} is loading...`);let zt=xe;const ir=q.manifest??await De.get(q);zt=De.getFullFileNameofAssets(ir,xe);const pr=zt.filter(fn=>rt(fn)),st=zt.filter(fn=>!rt(fn)),mn={name:pn,hostUrl:kn,documentEle:Rn,isESMModule:Pt},[Mn,_n]=await Promise.all([this.#o.load(pr,mn),this.#n.load(st,mn)]);this.#A({id:ne,instanceId:le,documentEle:Rn,elementIds:[...Mn,..._n],microFEHost:q.microFEHost,selfInitialize:q.selfInitialize}),q.selfInitialize||await this.#_(q),this.#e.audit(`Application ${ne} with instance id ${le} loaded`)}catch(ne){const le=`Application load failed. Unable to load one or more resources for ${q.id} with instance id ${q.instanceId}. ${ne.message}`;throw this.#e.error({message:le,appId:q.id,exception:ne}),new Error(le)}};#g=({id:q,instanceId:ne,hostUrl:le,documentEle:xe})=>{this.#e.debug(`Application ${q} with instance id ${ne} unloading...`),this.#l.get({id:q,instanceId:ne})&&(this.#w(ne,xe),this.#n.removeDynamicImportedScripts(le,xe),this.#n.removePrefetchLinks(le,xe),this.#o.removeDynamicImportedStyles(le,xe),this.#l.delete({id:q,instanceId:ne}),this.#e.audit(`Application ${q} with instance id ${ne} unloaded`))};#b=async({id:q,instanceId:ne})=>{const le=this.#l.get({id:q,instanceId:ne});if(!le?.mount||typeof le?.mount!="function")throw new Error(`Application ${q} with instance id ${ne} doesn't expose mount method`);return le.mount({containerId:`${S}${q}`,hostBreakpoint:Q(),hostViewportSize:U()})};#S=({id:q,instanceId:ne})=>{const le=this.#l.get({id:q,instanceId:ne});if(!le?.unmount)return null;if(typeof le.unmount!="function")throw new Error(`Application ${q} with instance id ${ne} doesn't expose unmount method`);return le.unmount({containerId:`${S}${q}`})};#O=({id:q,instanceId:ne})=>{if(this.#c)try{const le=this.#s.getObject(r.Application);if(!le){this.#e.warn({message:`Application scripting object not available for ${q} to manage session`});return}const xe=this.#a.get(ne);if(!xe)return;xe.keepAlive=t(async()=>{try{await le.keepSessionAlive()}catch(kn){this.#e.error(`Error keeping session alive. ${kn.message}`)}},an);const pn=G.get(ne);yn.forEach(kn=>{pn?.contentDocument?.addEventListener(kn,xe.keepAlive)})}catch(le){this.#e.warn({message:`Application scripting object not available for ${q} to manage session`,exception:le})}};#E=(q,ne)=>{const pn=this.#s.getObject(r.Module,{id:q})?._setUnloadHandler;typeof pn=="function"&&pn(()=>this.closeApp(ne))};#j=q=>this.#s.getObject(r.Module,{id:q});#f=async(q,ne,le)=>{const xe=this.#j(q)??Ln;return this.#m.dispatchEvent(xe,{event:{id:ne,name:le},eventParams:{moduleId:q},eventOptions:{timeout:On}})};#y=async q=>{try{const ne=await this.#f(q,Me,"unloading");if(Je(ne))return this.#e.info(`Unload denied by guest ${q} via module.unloading event`),!1}catch(ne){this.#e.warn({message:`Error dispatching module.unloading event for ${q}; proceeding with unload`,exception:ne})}return!0};#x=async({id:q,instanceId:ne,selfInitialize:le})=>{if(!le){await this.#S({id:q,instanceId:ne});return}try{await this.#f(q,Ee,"unmount")}catch(xe){this.#e.warn({message:`Error dispatching module.unmount event for ${q}`,exception:xe})}};#C=q=>{if(!this.#c||!q)return;const{keepAlive:ne,instanceId:le}=q;if(ne){const pn=G.get(le)?.contentDocument;pn&&yn.forEach(kn=>{pn.removeEventListener(kn,ne)}),q.keepAlive?.cancel()}};addScriptingObject=(q,ne)=>{if((0,a.h)(q)){const le=this.cloneScriptingObject(q);this.#s.addScriptingObject(le,ne)}else this.#s.addScriptingObject(q,ne)};cloneScriptingObject=q=>{if(!q)throw new Error("proxy is required");const ne=new s.P(q.id,q.objectType);let le=[];return Object.keys(q).forEach(xe=>{const pn=q[xe];if(this.#v(pn)){const kn=new d.Jh({name:pn.name||xe,objectId:ne.id});Object.defineProperty(ne,xe,{value:kn,enumerable:!0});const Rn=({eventParams:zt,eventOptions:ir})=>this.dispatchEvent({event:kn,eventParams:zt,eventOptions:ir}),Pt=pn.subscribe(Rn);le.push(()=>{pn.unsubscribe(Pt)})}else if(this.#h(pn)&&(Object.defineProperty(ne,xe,{value:async(...kn)=>{const Rn=ne[xe]?.callContext;if(Rn?.guest){const zt=Rn.callChain??[],ir=Rn.guest.id,pr=this.#p.get(ir),st={id:ir};pr&&(st.metadata=pr),Object.defineProperty(pn,"callContext",{value:{callChain:[...zt,st]},configurable:!0,enumerable:!0,writable:!0})}const Pt=await pn(...kn);return(0,a.h)(Pt)?this.cloneScriptingObject(Pt):Pt},enumerable:!0}),xe==="dispose")){const kn=ne.dispose;Object.defineProperty(ne,xe,{value:()=>(ne._dispose(),kn.apply(ne)),enumerable:!0})}}),ne._dispose=()=>{le.forEach(xe=>{xe?.()}),le=[]},ne};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async q=>{if(!q)throw new Error("instanceId is required");const ne=this.#a.get(q);if(!ne){this.#e.warn(`Application with instance id ${q} is not found`);return}const{id:le,selfInitialize:xe}=ne;if(!await this.#y(le))return;const pn=this.#i.getConfigById(le);if(!pn){this.#e.warn(`Configuration for application ${le} is not found`),this.#a.delete(q),G.remove(q);return}const{hostUrl:kn}=pn,Rn=G.get(q);try{this.#C(ne),await this.#x({id:le,instanceId:q,selfInitialize:xe})}finally{Rn?.contentDocument&&this.#g({id:le,instanceId:q,hostUrl:kn,documentEle:Rn.contentDocument}),Rn&&(Rn.src="about:blank"),this.#a.delete(q),this.#p.delete(le),G.remove(q)}};dispatchEvent=async q=>{const{event:{id:ne,name:le},eventOptions:xe={}}=q,{guestId:pn}=xe;if(!ne)throw new Error("Event Id is required");const kn=ne.split(".")?.[0],Rn=pn?this.#s.getObject(kn,{id:pn}):this.#s.getObject(kn);return Rn?this.#m.dispatchEvent(Rn,q):(this.#e.warn(`Attempt to dispatch event ${le} on unknown object ${kn}`),Promise.resolve())};getApp=q=>this.#a.get(q)?.guest;getApps=()=>[...this.#a.values()].map(q=>q.guest);init=async q=>{q?this.#r.setPreloadedConfig(q):await this.#r.load(),this.#i.init({version:this.#t,appConfig:this.#r}),this.#T()};#T=()=>{const q=this.#r.get("microFrontendApps")??{},ne=new Set;Object.keys(q).forEach(le=>{const xe=this.#i.getConfigById(le);if(xe?.hostUrl)try{ne.add(new URL(xe.hostUrl).origin)}catch{}}),ne.forEach(le=>{const xe=document.createElement("link");xe.rel="preconnect",xe.href=le,xe.crossOrigin="anonymous",document.head.appendChild(xe)})};mountApp=async q=>{if(!q)throw new Error("instanceId is required");const{id:ne}=this.#a.get(q)||{};if(!ne)throw new Error(`Application with instance id ${q} is not found`);const le=this.#i.getConfigById(ne);if(!le)throw new Error(`Application with id ${ne} is not found`);await this.#b({...le,instanceId:q})};#P=(q,ne,le)=>{const xe=new $e({guest:{id:le.id},version:this.#t,containerId:le.containerId,logger:this.#e,soManager:this.#s,eventManager:this.#m}),pn=q.defaultView;pn&&(pn.emui=pn.emui??{},pn.emui.__host=xe,pn.emui.getHost=()=>pn.emui?.__host??null);const kn=q.createElement("link");return kn.rel="preconnect",kn.href=ne.hostUrl,kn.crossOrigin="anonymous",q.head.appendChild(kn),xe};openApp=async q=>{const{id:ne,frameOptions:le,history:xe,theme:pn,homeRoute:kn,initialRoute:Rn,metadata:Pt,selfInitialize:zt}=q,ir=(0,n.A)();Pt&&this.#p.set(ne,Pt);const pr=this.#i.getConfigById(ne);if(!pr)throw new Error(`Application ${ne} is not found in app config`);const st=De.get(pr);st.catch(()=>{});const mn=await G.create({id:ne,instanceId:ir,manifestPath:pr.manifestPath,hostUrl:pr.hostUrl,options:{title:pr.name,...le}});if(!mn?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:ne,instanceId:ir,documentEle:mn.contentDocument});const Mn=this.#P(mn.contentDocument,pr,{id:ne,containerId:le?.containerId}),_n=await st;return await this.#u({instanceId:ir,history:xe,theme:pn,documentEle:mn.contentDocument,containerId:le?.containerId,...pr,homeRoute:kn??pr.homeRoute,initialRoute:Rn,microFEHost:Mn,selfInitialize:zt,manifest:_n}),zt||await this.#b({instanceId:ir,...pr}),this.#O({id:ne,instanceId:ir}),this.#E(ne,ir),ir}catch(Mn){throw this.#g({id:ne,instanceId:ir,hostUrl:pr.hostUrl,documentEle:mn.contentDocument}),G.remove(ir),Mn}};removeAllEventSubscriptions=()=>{this.#m.unsubscribeAll()};removeAllScriptingObjects=q=>{this.#s.removeAllScriptingObjects(q)};removeScriptingObject=(q,ne)=>{this.#s.removeScriptingObject(q,ne)};warmUp=q=>{const ne=this.#i.getConfigById(q);ne&&De.get(ne).catch(()=>{})};unmountApp=async q=>{if(!q)throw new Error("instanceId is required");const ne=this.#a.get(q),{id:le,selfInitialize:xe}=ne||{};if(!le)throw new Error(`Application with instance id ${q} is not found`);if(!this.#i.getConfigById(le))throw new Error(`Application with id ${le} is not found`);await this.#x({id:le,instanceId:q,selfInitialize:xe})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.29.0_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>Q});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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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(M){this.#e=M.logger,this.#t=M.enabled??!0,this.#n=M.throttleMs??i.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(M,L){if(!this.#t){this.#e.debug(L);return}if(this.#n>0){const I=performance.now(),z=this.#o.get(M);if(z!==void 0&&I-z<this.#n){this.#e.debug(L);return}this.#o.set(M,I)}this.#e.audit(L)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:W}=window;try{return W?.location?.href}catch{return null}},g=W=>{if(!W||W==="about:blank")return"*";try{const{origin:M}=new URL(W);return M==="null"||!M?"*":M}catch{try{const{origin:M}=new URL(W,document.baseURI);return M==="null"||!M?"*":M}catch{return"*"}}},b=()=>window.self!==window.parent,v=(W,M)=>{const L=M||document.body,I=document.defaultView?.getComputedStyle?.(L,null),z=I?I[W]:"0";return parseInt(z,10)},h="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},E=(W,M)=>!!(window.opener&&W.source===window.opener||M&&W.data?.handshakeToken===M),P=()=>new Promise((W,M)=>{if(b())W({origin:g(document.referrer||p()),window:window.parent});else{const L=window,I=j();let z;const $=J=>{if(E(J,I)){const{source:H,type:ee}=J.data||{};if(H===h&&ee===s.G.HandShake){const{origin:te}=J,me=J.source;clearTimeout(z),(0,r._)({targetWin:me,targetOrigin:te,messageType:s.G.HandShakeAck,messageBody:{}}),L.removeEventListener("message",$),W({origin:te,window:me})}}};z=setTimeout(()=>{L.removeEventListener("message",$),M(new Error(`Host handshake timed out after ${x}ms`))},x),L.addEventListener("message",$)}});let w=!1;const S=W=>{w=W},A=(W=null)=>{let M=W;const L=()=>{if(!M&&(M=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!M))throw new Error("Guest definition not found");return M};window.elli=window.elli??{},window.elli.script={guest:{create:(I,z)=>L().addScript(I,z)},connect:I=>(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);"),L().connect(I)),getObject:I=>(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);"),L().getObject(I)),setLogLevel:I=>(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);"),L().setLogLevel(I)),subscribe:(I,z,$,J)=>(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); });"),L().subscribe({eventId:`${I}.${z}`,callback:H=>$(H?.obj,H?.eventParams,H?.eventOptions),criteria:J?.criteria})),unsubscribe:(I,z,$)=>(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 });"),L().unsubscribe({eventId:`${I}.${z}`,token:$}))}};try{A()}catch{}var D=null;const T=12e4,k=2e3,N=2e3,G={eventFeedback:!0},F=()=>{const{document:W}=window,M=W.body,L=W.documentElement,z={height:M.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(M.scrollWidth,L.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:g(W.referrer||p()),messageType:s.G.GuestResize,messageBody:z}),window.removeEventListener("load",F)};b()&&window.addEventListener("load",F);const B={"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"},U=["click","scroll","keypress","touchstart"],K=()=>{const W=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/598/node_modules/.pnpm/@elliemae+ssf-guest@2.29.0_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",M=W?new URL(W).hostname:"localhost";return B[M]||B["cdn.mortgagetech.q1.ice.com"]};class Q{#e;#t;#n;#o=!1;#r=null;#i=!1;#s=new Map;#m=null;#a=null;#p=null;#l=null;#c=null;#h=null;#v=new Map;#d(){if(!this.#c||!this.#l)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#c,hostOrigin:this.#l}}#w(M){let L={...G};if(M){const I={...M};delete I.window,L={...L,...I}}return L}#A(M){const{hostWindow:L,hostOrigin:I}=this.#d();this.#n.send({targetWin:L,targetOrigin:I,messageType:s.G.GuestReady,messageBody:M})}#_=!1;#u=null;#g=null;#b=null;#S=!0;#O=T;#E;#j=null;#f;constructor(M){const{console:L=!1,url:I=window.__ICE__?.diagnosticsUrl||K(),index:z="ssf-guest-v2",team:$="ICE",appName:J="SSF Guest V2 Application"}=M?.logger??{};this.#E=M?.logger,this.#_=M?.usesDevConnectAPI??!1,this.#S=M?.keepAlive??!0,this.#O=M?.keepAliveInterval??T;const H=L?(0,m.Console)():(0,m.http)(I);this.#t=M?.appLogger??(0,m.logger)({transport:H,index:z,team:$,appName:J}),this.#f=new i({logger:this.#t,enabled:M?.auditOperations,throttleMs:M?.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})}#y=()=>({guestId:this.#m,guestTitle:this.#a,guestUrl:this.#p});#x=M=>{if(!M||!M.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 L=new d.V(M.objectId,M.objectType);return M.functions&&M.functions.forEach(I=>{Object.defineProperty(L,I,{value:async(...z)=>{const J=L[I]?.callContext?.callChain;return this.#C({objectId:L.id,functionName:I,functionParams:[...z],callerChain:J})},enumerable:!0})}),M.events&&M.events.forEach(I=>{Object.defineProperty(L,I,{value:new a.b3({objectId:L.id,name:I,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${L.id}")`),L};#C=async({objectId:M,functionName:L,functionParams:I,callerChain:z})=>{this.#t.debug(`Invoking scripting object method ${M}.${L}()...`);const $=[];if(I)for(let me=0;me<I.length;me+=1){const se=I[me];se instanceof Promise&&$.push(se.then(pe=>{I[me]=pe}))}await Promise.all($);const{hostWindow:J,hostOrigin:H}=this.#d(),ee=await this.#n.invoke({targetWin:J,targetOrigin:H,messageType:s.G.ObjectInvoke,messageBody:{objectId:M,functionName:L,functionParams:I,...z?.length?{callerChain:z}:{}}}),te=this.#P(ee);return this.#f.log(`invoke:${M}.${L}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:M,scriptingMethod:L,...this.#y()}),te};#T(M,L){return(0,c.ts)(M,L,{regexCache:this.#v})}#P=M=>M?.type==="object"&&"object"in M?this.#x(M.object):M?.type==="value"?M.value:M;#I=({body:M})=>{M?.logLevel&&(this.#t.setLogLevel(M.logLevel),this.#t.debug(`Log level changed by host to ${M.logLevel}`)),this.#m=M?.guestId??null,this.#a=M?.guestTitle??null,this.#p=M?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#y()})};#k=()=>{window.focus()};#F=async()=>{await this.close(),window.close()};#M=()=>{b()||(this.#h=setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#L=async({sourceWin:M,sourceOrigin:L,requestId:I,body:z})=>{const $=this.#x(z.object);if($){const J=(0,a._s)($.id,z.eventName);this.#t.debug(`Received event "${J}" from host`);let H;z.eventHandler?H=[{callback:window[z.eventHandler],token:(0,t.A)()}]:H=this.#s.get(J)||[];const ee=[];if(H.forEach(te=>{if(te?.callback){if(te.criteria&&!(z.eventParams?this.#T(z.eventParams,te.criteria):!1)){this.#t.debug(`Event ${J} did not match criteria for subscriber ${te.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${te.callback.name} for event ${J}`);const me=te.callback({obj:$,eventName:z.eventName,eventParams:z.eventParams,eventOptions:z.eventOptions});me instanceof Promise?ee.push(me):typeof me<"u"&&ee.push(Promise.resolve(me))}}),I){const te=await Promise.all(ee);this.#n.respond({targetWin:M,targetOrigin:L,requestId:I,response:te}),this.#f.log(`event:${J}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:J,scriptingObject:$.id,...this.#y()})}else this.#f.log(`event:${J}`,{message:"Guest proxy processed event from host",scriptingEventId:J,scriptingObject:$.id,...this.#y()})}};#N=async()=>{if(!(!this.#u||!this.#g||!this.#b))try{await fetch(`${this.#b}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#u,client_id:this.#g}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(M){this.#t.warn(`Failed to extend token lifetime: ${M.message}`)}};#R=async()=>{if(this.#u&&this.#g&&this.#b)try{await fetch(`${this.#b}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#u,client_id:this.#g}).toString()}`,{method:"POST"})}catch(M){this.#t.error(`Error revoking token. ${M.message}`)}finally{this.#u=null,this.#g=null}};#D=async()=>{if(this.#S)try{const M=await Promise.race([this.getObject("application"),new Promise(L=>{setTimeout(()=>L(null),k)})]);M?(this.#j=n(async()=>{try{await M.keepSessionAlive(),await this.#N()}catch(L){this.#t.error(`Error keeping session alive. ${L.message}`)}},this.#O,{leading:!1}),U.forEach(L=>{document.addEventListener(L,this.#j)})):this.#t.warn("Application object not available to send keep alive")}catch(M){this.#t.error(`Error getting application object. ${M.message}`)}};addScript=async(M,L)=>{if(!this.#o&&M){await this.connect();const I=document.createElement("script");I.setAttribute("src",M),I.setAttribute("type","module"),await new Promise((z,$)=>{let J,H;const ee=()=>{I.removeEventListener("load",J),I.removeEventListener("error",H)};J=()=>{ee(),this.#o=!0,S(!0),z()},H=()=>{ee(),$(new Error(`Failed to load script: ${M}`))},I.addEventListener("load",J),I.addEventListener("error",H),this.#r=L.appendChild(I)})}};close=async()=>{this.#i&&(this.#c&&this.#l&&(this.#n.send({targetWin:this.#c,targetOrigin:this.#l,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#l,window:this.#c})),this.#n.close(),this.#h&&(clearInterval(this.#h),this.#h=null),this.#j&&U.forEach(M=>{document.removeEventListener(M,this.#j)}),await this.#R(),window.removeEventListener("beforeunload",this.close),this.#i=!1,this.#t.audit({message:"Guest disconnected from host",...this.#y()}),this.#m=null,this.#p=null,this.#a=null)};connect=async M=>{if(this.#i){this.#A(this.#w(M));return}let L=window;M?.window&&(L=M.window);const I=this.#w(M),z=await P();this.#l=z.origin,this.#c=z.window,this.#n.initialize(L),this.#n.addSender({origin:this.#l,window:this.#c}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#L.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#I.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#k.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#F.bind(this)}),this.#A(I),this.#i=!0,this.#M(),this.#_&&await this.getAuthToken(),await this.#D(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})};getAuthToken=async()=>{if(!this.#u&&this.#i)try{const M=await this.getObject("auth");if(M){const L=await M.getAccessToken();this.#u=L?.access_token,this.#b=L?.host_name,this.#g=L?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(M){this.#t.error(`Error getting access token from auth object. ${M.message}`)}return this.#u};getObject=async M=>{if(this.#t.debug(`Retrieving scripting object "${M}" from host...`),!this.#i)throw new Error("Not connected to host");const{hostWindow:L,hostOrigin:I}=this.#d(),z=await this.#n.invoke({targetWin:L,targetOrigin:I,messageType:s.G.ObjectGet,messageBody:{objectId:M},responseTimeoutMs:N});if(!z?.object)throw new Error(`The requested object (${M}) is not available`);const $=this.#x(z.object);return this.#f.log(`getObject:${M}`,{message:"Received scripting object from host",scriptingObject:M,...this.#y()}),$};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:M,hostOrigin:L}=this.#d(),I=await this.#n.invoke({targetWin:M,targetOrigin:L,messageType:s.G.ListObjects,messageBody:{}});return this.#f.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:I,...this.#y()}),I};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:M}=this.#r;M?.removeChild?.(this.#r)}};setLogLevel=M=>{this.#t.setLogLevel(M),this.#t.debug(`Log level changed by guest to ${M}`)};subscribe=M=>{const{eventId:L,criteria:I,callback:z}=M;this.#t.debug(`Registering subscription for event ${L}`);const $=this.#s.get(L.toLowerCase())||[],J=(0,t.A)();$.push({callback:z,token:J,criteria:I}),this.#s.set(L.toLowerCase(),$);const{hostWindow:H,hostOrigin:ee}=this.#d();return this.#n.send({targetWin:H,targetOrigin:ee,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:L,criteria:I,token:J}}),this.#t.debug(`Subscribed to event ${L} with token ${J}`),J};unsubscribe=M=>{const{eventId:L,token:I}=M,z=this.#s.get(L.toLowerCase());if(z){const $=z.length,J=z.filter(H=>H.token!==I);if(J.length<$){this.#s.set(L.toLowerCase(),J);const{hostWindow:H,hostOrigin:ee}=this.#d();this.#n.send({targetWin:H,targetOrigin:ee,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:L,token:I}}),this.#t.debug(`Unsubscribed from event ${L}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.29.0_@elliemae+pui-diagnostics@3.12.6/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>M});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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(L,I){return(0,c.of)(I)?(0,c.ts)(L,I):!0}var g=(L=>(L.Popup="popup",L.Embed="embed",L))(g||{}),b=(L=>(L.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",L.AllowDownloads="allow-downloads",L.AllowForms="allow-forms",L.AllowModals="allow-modals",L.AllowOrientationLock="allow-orientation-lock",L.AllowPointerLock="allow-pointer-lock",L.AllowPopups="allow-popups",L.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",L.AllowPresentation="allow-presentation",L.AllowSameOrigin="allow-same-origin",L.AllowScripts="allow-scripts",L.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",L.AllowTopNavigation="allow-top-navigation",L.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",L))(b||{});const v=L=>{if(L==="about:blank")return"*";try{const{origin:I}=new URL(L);return I==="null"||!I?L:I}catch{const{origin:z}=new URL(L,document.baseURI);return z}},h=L=>L.flat(1/0).filter(I=>I!==void 0);function x(L){return typeof L=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com"],E=["localhost","127.0.0.1"],P=L=>L.split(".").slice(-2).join("."),w=L=>E.includes(L)||j.some(I=>L===I.slice(1)||L.endsWith(I)),S=L=>{const I=P(window.location.hostname),z=P(L);return I===z},A=L=>{try{const{hostname:I}=new URL(L,document.baseURI);return w(I)||S(I)}catch{return!1}};class D{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;constructor(I){const{guestId:z,domElement:$=null,title:J,url:H,window:ee,searchParams:te={},openMode:me=g.Embed,remoting:se,perfTracker:pe,handshakeToken:oe}=I;this.id=z,this.title=J,this.url=H,this.origin=v(H),this.searchParams=te,this.domElement=$,this.window=ee,this.openMode=me,this.capabilities={},this.#t=pe,this.#e=se,this.#n=oe}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:i.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(I=>{let z=0;const $=5;let J;const H=()=>{clearInterval(J),this.#e.unlisten({messageType:i.G.HandShakeAck,callback:H}),I(!0)};J=setInterval(()=>{z>=$?(clearInterval(J),this.#e.unlisten({messageType:i.G.HandShakeAck,callback:H}),I(!1)):(this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}}),z+=1)},1e3),this.#e.listen({messageType:i.G.HandShakeAck,callback:H})});init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===g.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(I,z)=>{let $;if(this.#t.enabled){const J=`ScriptingObject.Event.${I.object.objectId}.${I.eventName}`;$=this.#t.start(J,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.ObjectEvent,messageBody:I,responseTimeoutMs:z}).finally(()=>{$&&this.#t.end($,{appId:this.id,appUrl:this.url})})};send=I=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...I})}}const T=new Set(["SSF.Guest.Load"]);class k{#e;#t;#n;#o=new Set;#r;#i=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(I){this.#e=I.analyticsObj,this.#t=I.enabled??!1,this.#n=I.samplingRatio??k.DEFAULT_SAMPLING_RATIO,this.#r=I.dedupWindowMs??k.DEFAULT_DEDUP_WINDOW_MS,this.#s=I.onError}get enabled(){return this.#t}start(I,z){if(this.#t)try{const $=T.has(I);return!$&&!this.shouldTrack(I)?void 0:(!$&&!this.#o.has(I)&&(this.#e.setTimingEventSamplingRatio({[I]:this.#n}),this.#o.add(I)),this.#e.startTiming(I,z).catch(J=>{this.reportError(`startTiming failed: ${J.message}`)}),I)}catch($){this.reportError(`startTiming failed: ${$.message}`);return}}end(I,z){if(I)try{this.#e.endTiming(I,z).catch($=>{this.reportError(`endTiming failed: ${$.message}`)})}catch($){this.reportError(`endTiming failed: ${$.message}`)}}reportError(I){try{this.#s?.(I)}catch{}}shouldTrack(I){if(this.#r<=0)return!0;const z=performance.now(),$=this.#i.get(I);return $!==void 0&&z-$<this.#r?!1:(this.#i.set(I,z),!0)}}const N=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin],G="module",F="module.unloading",B="module.unmount",U=1e3,K=new n.P(G),Q=L=>Array.isArray(L)&&L.some(I=>I===!1),W=()=>{};class M{hostId;#e;#t;#n;#o;#r=new Map;#i=new Map;#s=new Map;#m=new Map;#a;#p=null;#l=null;#c=null;#h=null;#v=new Map;#d;#w;constructor(I,z){if(this.hostId=I,!z?.logger)throw new Error("Logger is required");if(!z?.analyticsObj)throw new Error("Analytics object is required");this.#n=z.logger,this.#o=z.analyticsObj;const $={analyticsObj:z.analyticsObj,enabled:z?.measurePerformance,samplingRatio:z?.performanceSamplingRatio,onError:J=>this.#n.debug(J)};if(this.#d=new k({...$,dedupWindowMs:z?.performanceDedupWindowMs}),this.#w=new k({...$,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new r.K(this.#n,this.#t),z?.readyStateCallback&&typeof z?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#p=z?.readyStateCallback||null,this.#c=z?.onGuestEventSubscribe||null,this.#h=z?.onGuestEventUnsubscribe||null,this.#a=new s.qE,this.#e.initialize(window),this.#L(),window.addEventListener("beforeunload",this.#_),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#A=(I,z)=>{const $={event:I,...z};this.#o.sendBAEvent($).catch(J=>{this.#n.debug(`Analytics sendBAEvent failed: ${J.message}`)})};#_=()=>{Array.from(this.#r.values()).filter(z=>z.openMode===g.Popup).map(z=>z.id).forEach(z=>this.#B(z))};#u=I=>this.#i.get(I);#g=I=>this.#s.get(I)??null;#b=I=>typeof I?._toJSON=="function";#S=(I,z)=>this.#b(I)?(this.#a.has(I?.id,z)||this.#a.addScriptingObject(I,z?{guestId:z?.id}:{}),{type:"object",object:I._toJSON()}):{type:"value",value:I};#O=I=>typeof I=="string"?I:I instanceof Error?I.message:"An unexpected error occurred in the host application";#E=I=>{I.ready&&this.#e.send({targetWin:I.window,targetOrigin:I.origin,messageType:i.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...I.getInfo()}})};#j=({guest:I,obj:z,functionName:$,functionParams:J,callerChain:H})=>{const ee=z[$];return x(ee)?(this.#n.debug(`Invoking host implementation of ${z.id}.${String($)}()`),new Promise(te=>{Object.defineProperty(ee,"callContext",{value:{guest:I,...H?.length?{callChain:H}:{}},configurable:!0,enumerable:!0,writable:!0}),te(ee(...J))})):(this.#n.warn(`Attempt to call invalid function on object type ${z.objectType}: ${String($)}`),Promise.reject(new Error(`Method '${$}' not found in Scripting Object '${z.id}'`)))};#f=({sourceWin:I,sourceOrigin:z,requestId:$})=>{const J=this.#u(I);if(!J){this.#n.warn(`Received ready event for unknown guest. requestId: ${$}`);return}if(!J.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:I,targetOrigin:z,requestId:$,ex:"Guest must be initialized before it is marked as ready"});return}if(!J.ready){J.ready=!0;const H=J.getInfo();this.#d.end("SSF.Guest.Load",{appId:H.guestId,appUrl:H.guestUrl}),this.#E(J),this.#p?.(J),this.#n.audit({message:"Guest is ready",...H})}};#y=({sourceWin:I,sourceOrigin:z,requestId:$,body:J})=>{const H=this.#u(I);if(!H){this.#n.warn(`Received ready event for unknown guest. requestid = ${$}`);return}H.initialized?J&&(H.capabilities={...H.capabilities,...J}):(H.initialized=!0,H.capabilities=J||{},this.#n.audit({message:"Guest is initialized",...H.getInfo()})),(!J||!J.onReady)&&this.#f({sourceWin:I,sourceOrigin:z,requestId:$,type:"",body:null})};#x=async({sourceWin:I})=>{if(I?.window){const z=this.#D(I);z&&!await z.handShake()&&this.#B(I)}};#C=({sourceWin:I,sourceOrigin:z,requestId:$})=>{this.#n.debug(`Processing listObjects request. requestId = ${$}`);const J=this.#u(I);if(!J)return this.#n.warn("Rejected object request from unknown guest window"),!1;const H=this.#a.listScriptingObjects(J.id);return this.#e.respond({targetWin:I,targetOrigin:z,requestId:$,response:H}),this.#n.debug({message:"name of scripting objects returned",requestId:$,objects:H,...J.getInfo()}),!0};#T=({sourceWin:I,sourceOrigin:z,requestId:$,body:J})=>{const{objectId:H}=J;this.#n.debug(`Processing getObject request for object ${H}. requestId = ${$}`);const ee=this.#u(I);if(!ee)return this.#n.warn("Rejected object request from unknown guest window"),!1;const te=this.getScriptingObject(H,{guest:ee});return te?(this.#e.respond({targetWin:I,targetOrigin:z,requestId:$,response:this.#S(te,ee)}),this.#n.debug({message:"Scripting Object returned",requestId:$,scriptingObject:H,...ee.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${H} from guest ${ee.id}`),this.#e.raiseException({targetWin:I,targetOrigin:z,requestId:$,ex:`The requested object (${H}) is not available`}),!1)};#P=({sourceWin:I,requestId:z,body:$})=>{const{eventId:J,criteria:H,token:ee}=$;this.#n.debug(`Processing guest event subscribe request for event ${J}. requestId = ${z}`);const te=this.#u(I);if(!te){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#c?.({guestId:te.id,eventId:J,criteria:H,token:ee})}catch(me){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${J}: ${me.message}`)}},0)};#I=({sourceWin:I,requestId:z,body:$})=>{const{eventId:J,token:H}=$;this.#n.debug(`Processing guest event unsubscribe request for event ${J}. requestId = ${z}`);const ee=this.#u(I);if(!ee){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#h?.({guestId:ee.id,eventId:J,token:H})}catch(te){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${J}: ${te.message}`)}},0)};#k=({sourceWin:I,requestId:z,body:$})=>{const J=this.#u(I);if(!J){this.#n.warn(`Received resize event from unknown guest. requestid = ${z}`);return}J.domElement&&(J.domElement.style.height=`${$.height}px`),this.#n.debug(`Guest ${J.id} resized to ${$.width}x${$.height}`)};#F=({sourceWin:I,sourceOrigin:z,requestId:$,body:J})=>{const{objectId:H,callerChain:ee}=J,te=this.#u(I);if(!te)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${H}.${String(J.functionName)}() called from guest "${te.id}" (requestId = ${$})`);const me=this.getScriptingObject(H,{guest:te});if(!me)return this.#n.warn(`Invocation of unknown or unauthorized object ${H} from guest ${te.id}`),this.#e.raiseException({targetWin:I,targetOrigin:z,requestId:$,ex:`The requested object (${H}) is not available`}),!1;const se=te.getInfo();let pe;if(this.#d.enabled){const oe=`ScriptingObject.API.${H}.${J.functionName}`;pe=this.#d.start(oe,{appId:se.guestId,appUrl:se.guestUrl})}return this.#j({guest:te,obj:me,functionName:J.functionName,functionParams:J.functionParams,callerChain:ee}).then(oe=>{this.#e.respond({targetWin:I,targetOrigin:z,requestId:$,response:this.#S(oe,te)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:$,scriptingObject:H,scriptingMethod:J.functionName,...se})}).catch(oe=>{this.#e.raiseException({targetWin:I,targetOrigin:te.origin,requestId:$,ex:oe}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:$,scriptingObject:H,scriptingMethod:J.functionName,...se})}).finally(()=>{pe&&this.#d.end(pe,{appId:se.guestId,appUrl:se.guestUrl})}),!0};#M=()=>{this.#e.listen({messageType:i.G.GuestResize,callback:this.#k})};#L=()=>{this.#e.listen({messageType:i.G.GuestReady,callback:this.#y}),this.#e.listen({messageType:i.G.GuestReadyComplete,callback:this.#f}),this.#e.listen({messageType:i.G.GuestClose,callback:this.#x}),this.#e.listen({messageType:i.G.ListObjects,callback:this.#C}),this.#e.listen({messageType:i.G.ObjectGet,callback:this.#T}),this.#e.listen({messageType:i.G.ObjectInvoke,callback:this.#F}),this.#e.listen({messageType:i.G.GuestEventSubscribe,callback:this.#P}),this.#e.listen({messageType:i.G.GuestEventUnsubscribe,callback:this.#I})};#N=I=>I instanceof d.b3||typeof I?.subscribe=="function";#R=I=>{const z=new D({...I,remoting:this.#e,perfTracker:this.#w});return z.init(),this.#r.set(I.guestId,z),this.#i.set(z.window,z),this.#s.set(z.url,z),z};#D=I=>{if(typeof I=="string")return this.#r.get(I);const z=this.#i.get(I);return z||Array.from(this.#r.values()).find($=>$.domElement===I)};#$=()=>{this.#l||(this.#l=setInterval(()=>{const I=[];this.#r.forEach(z=>{z.openMode===g.Popup&&z.window.closed&&I.push(z)}),I.forEach(z=>{const{id:$}=z;this.#B($),this.#m.get($)?.forEach(H=>{Promise.resolve(H({id:$})).catch(()=>{})})})},1e3))};#z=()=>{if(!this.#l)return;Array.from(this.#r.values()).some(z=>z.openMode===g.Popup)||(clearInterval(this.#l),this.#l=null)};#W=I=>{const z=A(I),$=z?void 0:(0,t.A)();return{popupUrl:$?`${I}#hs=${$}`:I,handshakeToken:$,trusted:z}};#G=I=>{const{url:z,title:$,popupWindowFeatures:J={},searchParams:H,guestId:ee,onLoad:te,onError:me}=I,{width:se=800,height:pe=600,top:oe=100,left:ie=100}=J;let ge=this.#g(z);if(ge)ge.window.closed||(A(z)?window.open("",$):ge.window.focus());else{const re=Object.entries({width:se,height:pe,top:oe,left:ie}).filter(([,fe])=>fe).map(([fe,ce])=>`${fe}=${ce}`).join(","),{popupUrl:ve,handshakeToken:Be,trusted:Ke}=this.#W(z),Xe=window.open(ve,$,`popup, ${re}`);if(Xe)setTimeout(()=>{try{te?.(ee)}catch(fe){this.#n.debug(`Error occurred in onLoad for guest with id '${ee}': ${fe.message}`)}},0);else throw setTimeout(()=>{try{me?.(ee)}catch(fe){this.#n.debug(`Error occurred in onError for guest with id '${ee}': ${fe.message}`)}},0),new Error("Failed to open guest application in popup window");Ke||(Xe.opener=null),ge=this.#R({guestId:ee,window:Xe,title:$,url:z,searchParams:H,openMode:g.Popup,handshakeToken:Be}),this.#$()}return ge};#H=I=>{const{url:z,title:$,targetElement:J,searchParams:H,guestId:ee,onLoad:te,onError:me,options:se={}}=I,pe=J.ownerDocument??document,{fitToContent:oe=!1,disableSandbox:ie=!1,sandboxValues:ge=[],customSandboxValues:re=[],style:ve="",permissionPolicy:Be=""}=se;if(!$)throw new Error("title is required");oe&&this.#M();const Ke=pe.createElement("iframe");Ke.setAttribute("id",ee);const Xe=()=>{setTimeout(()=>{try{te?.(ee)}catch(Ce){this.#n.debug(`Error occurred in onLoad for guest with id '${ee}': ${Ce.message}`)}},0),this.#n.debug(`frame loaded for guest with id '${ee}'`),Ke.removeEventListener("load",Xe)},fe=()=>{setTimeout(()=>{try{me?.(ee)}catch(Ce){this.#n.debug(`Error occurred in onError for guest with id '${ee}': ${Ce.message}`)}},0),this.#n.error(`frame load failed for guest with id '${ee}'`),Ke.removeEventListener("error",fe)};Ke.addEventListener("load",Xe),Ke.addEventListener("error",fe),Ke.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${ve}`),ie||Ke.setAttribute("sandbox",re.length>0?re.join(" "):[...N,...ge].join(" ")),Ke.setAttribute("title",$),Ke.setAttribute("src",z),Be&&Ke.setAttribute("allow",Be),J.appendChild(Ke);const ce=pe.getElementById(ee);return this.#R({guestId:ee,domElement:ce,window:ce.contentWindow,title:$,url:z,searchParams:H,openMode:g.Embed})};#V=(I,z)=>{let $="";return Object.keys(z).forEach(J=>{$+=`${($.length?"&":"")+encodeURIComponent(J)}=${encodeURIComponent(z[J])}`}),I+($?(I.indexOf("?")>=0?"&":"?")+$:"")};addScriptingObject=(I,z)=>{if((0,a.h)(I)){const $=this.cloneScriptingObject(I);this.#a.addScriptingObject($,z)}else this.#a.addScriptingObject(I,z)};cloneScriptingObject=I=>{if(!I)throw new Error("proxy is required");const z=new n.P(I.id,I.objectType);let $=[];return Object.keys(I).forEach(J=>{const H=I[J];if(this.#N(H)){const ee=new d.Jh({name:H.name||J,objectId:z.id});if(Object.defineProperty(z,J,{value:ee,enumerable:!0}),H instanceof d.b3){const te=({eventParams:se,eventOptions:pe})=>this.dispatchEvent({event:ee,eventParams:se,eventOptions:pe}),me=H.subscribe(te);$.push(()=>{H.unsubscribe(me)})}else{const te=H.subscribe?.((me,se,pe)=>this.dispatchEvent({event:ee,eventParams:se,eventOptions:pe}));$.push(()=>{H.unsubscribe?.(te)})}}else if(x(H)&&(Object.defineProperty(z,J,{value:async(...ee)=>{const te=z[J]?.callContext;if(te?.guest){const se=te.callChain??[],pe=te.guest.id,oe=this.#v.get(pe),ie={id:pe};oe&&(ie.metadata=oe),Object.defineProperty(H,"callContext",{value:{callChain:[...se,ie]},configurable:!0,enumerable:!0,writable:!0})}const me=await H(...ee);return(0,a.h)(me)?this.cloneScriptingObject(me):me},enumerable:!0}),J==="dispose")){const ee=z.dispose;Object.defineProperty(z,J,{value:()=>(z._dispose(),ee.apply(z)),enumerable:!0})}}),z._dispose=()=>{$.forEach(J=>{J?.()}),$=[]},z};close=()=>{this.#l&&(clearInterval(this.#l),this.#l=null),this.#_(),this.#v.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#_),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#K=({targetGuest:I,guestCapabilities:z,scriptingEventId:$,dispatchToGuest:J})=>{const H=ee=>{if((0,c.of)(z)&&!p(ee.capabilities,z)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:$,guestCapabilities:z,...ee.getInfo()});return}J(ee)};I?H(I):this.#r.forEach(H)};#Y=(I,z)=>(z?this.getScriptingObject(I,{guest:z}):this.getScriptingObject(I))??(I===G&&z?K:null);dispatchEvent=async I=>{const{event:{id:z,name:$},eventParams:J,eventOptions:H={}}=I,{eventHandler:ee=null,timeout:te=null,window:me=null,guestId:se,guestCapabilities:pe}=H,oe=z.split(".")[0],ie=se||me,ge=ie?this.#D(ie):null,re=this.#Y(oe,ge??null);if(!re)return this.#n.warn(`Attempt to dispatch event ${$} on unknown object ${oe}`),Promise.resolve([]);const ve={object:re._toJSON(),eventName:$,eventParams:J,eventHandler:ee,eventOptions:{allowsFeedback:!1}};te&&!Number.isNaN(te)&&(ve.eventOptions={allowsFeedback:!0,timeout:Number(te)});const Be=[];let Ke;const Xe=fe=>{const ce=fe.getInfo();te&&fe?.capabilities?.eventFeedback?(Be.push(fe.dispatchEvent(ve,te)),!Ke&&this.#d.enabled&&(Ke=this.#d.start(`ScriptingObject.Event.${re.id}.${$}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:z,...ce})):(fe.send({messageType:i.G.ObjectEvent,messageBody:ve}),this.#n.debug({message:"Event dispatched",scriptingEventId:z,...ce}))};return this.#K({targetGuest:ge??null,guestCapabilities:pe,scriptingEventId:z,dispatchToGuest:Xe}),Promise.all(Be).then(fe=>(this.#n.debug({message:"Event feedback received",scriptingEventId:z}),h(fe))).catch(fe=>{throw this.#n.error({message:"Error processing event",eventId:z,exception:fe}),fe}).finally(()=>{Ke&&this.#d.end(Ke,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(I,z)=>this.#a.getObject(I,z?.guest);loadGuest=I=>{const{id:z,url:$,targetElement:J,title:H,searchParams:ee={},onLoad:te,onError:me,options:se={},metadata:pe}=I;if(!z)throw new Error("id for guest application is required");let oe=z;if(this.#r.has(oe)){let Be=1;for(;this.#r.has(`${z}-${Be}`);)Be+=1;oe=`${z}-${Be}`}const{openMode:ie=g.Embed,popupWindowFeatures:ge={}}=se,re=this.#V($,ee);let ve=null;if(this.#d.start("SSF.Guest.Load",{appId:oe,appUrl:re}),ie===g.Popup)ve=this.#G({guestId:oe,url:re,title:H,searchParams:ee,popupWindowFeatures:ge,onLoad:te,onError:me});else if(ie===g.Embed)ve=this.#H({guestId:oe,url:re,title:H,targetElement:J,searchParams:ee,onLoad:te,onError:me,options:se});else throw new Error(`Invalid openMode: ${ie}`);return pe&&this.#v.set(oe,pe),this.#n.audit({message:"Guest loaded",...ve.getInfo()}),ve};loadGuests=I=>{const{id:z,url:$,targetElement:J,title:H,searchParamsList:ee=[],options:te={}}=I;ee.forEach((me,se)=>{this.loadGuest({id:`${z}-${se}`,url:$,title:H,targetElement:J,searchParams:me,options:te})},this)};removeAllScriptingObjects=I=>{this.#a.removeAllScriptingObjects(I)};removeScriptingObject=(I,z)=>{this.#a.removeScriptingObject(I,z)};setLogLevel=I=>{this.#n.setLogLevel(I),this.#r.forEach(this.#E),this.#n.debug("Dispatched config events to all guests")};#U=async(I,z,$)=>this.dispatchEvent({event:{id:z,name:$},eventParams:{moduleId:I.id},eventOptions:{timeout:U,guestId:I.id}});#X=async I=>{try{const z=await this.#U(I,F,"unloading");if(Q(z))return this.#n.info(`Unload denied by guest ${I.id} via module.unloading event`),!1}catch(z){this.#n.warn({message:`Error dispatching module.unloading event for ${I.id}; proceeding with unload`,exception:z})}return!0};#J=async I=>{try{await this.#U(I,B,"unmount")}catch(z){this.#n.warn({message:`Error dispatching module.unmount event for ${I.id}`,exception:z})}};#B=I=>{this.unloadGuest(I).catch(W)};unloadGuest=async I=>{const z=this.#D(I);z&&await this.#X(z)&&(await this.#J(z),z.dispose(),this.#i.delete(z.window),this.#s.delete(z.url),this.#v.delete(z.id),this.#r.delete(z.id),this.#n.audit({message:"Guest is removed from host",...z.getInfo()}),this.#z())};onGuestClose=I=>{const{id:z,guestCloseCallback:$}=I,J=this.#m.get(z)||[];J.push($),this.#m.set(z,J)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{E8:()=>oe,_7:()=>fe});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($e){return n({theme:$e})}function a($e,Ze){const Me=d($e)[Ze];return Me===0?null:Me}function c($e,Ze){const Me=d($e)[Ze];return Me===0?null:Me-.02}function m(){const[$e,Ze]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function an(){Ze(window.innerWidth)}return window.addEventListener("resize",an),Ze(window.innerWidth),()=>window.removeEventListener("resize",an)},[]),$e}function p($e){const Ze=d($e),an=m();return t.useMemo(()=>Object.keys(Ze).reverse().find(Me=>an!==null&&an>=Ze[Me])||null,[Ze,an])}function g($e,Ze){const an=a($e,Ze),Me=m();return Me!==null&&an!==null&&Me>=an}function b($e,Ze){const an=c($e,Ze),Me=m();return Me!==null&&an!==null&&Me<an}const v=(...$e)=>$e.filter(Boolean).join("."),h=$e=>`--${$e.replace(/\./g,"-")}`,x=($e,Ze)=>`var(${h($e)}, ${Ze})`,j=($e,Ze)=>`${$e}: ${Ze};`;function E($e,Ze,an=Object.keys($e),Me){const Ee=Array.isArray($e)?[]:{};for(const On in an){const Ln=an[On],Je=$e[Ln],yn=v(Me,Ln);if((0,i.WL)(Je)){Ee[Ln]=E(Je,Ze,Object.keys(Je),yn);continue}if((0,i.Yj)(Je)){Ee[Ln]=x(yn,Je);continue}if((0,i.Pc)(Je)){Ee[Ln]=x(yn,(0,i.DJ)(Je,{theme:Ze}));continue}}return Ee}function P($e,Ze,an=Object.keys($e),Me,Ee={value:""}){for(const On in an){const Ln=an[On],Je=$e[Ln],yn=v(Me,Ln);if((0,i.WL)(Je)){P(Je,Ze,Object.keys(Je),yn,Ee);continue}if((0,i.Yj)(Je)){Ee.value+=j(h(yn),Je);continue}if((0,i.Pc)(Je)){Ee.value+=j(h(yn),(0,i.DJ)(Je,{theme:Ze}));continue}}return Ee.value}var w=Object.defineProperty,S=Object.defineProperties,A=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,N=($e,Ze,an)=>Ze in $e?w($e,Ze,{enumerable:!0,configurable:!0,writable:!0,value:an}):$e[Ze]=an,G=($e,Ze)=>{for(var an in Ze||(Ze={}))T.call(Ze,an)&&N($e,an,Ze[an]);if(D)for(var an of D(Ze))k.call(Ze,an)&&N($e,an,Ze[an]);return $e},F=($e,Ze)=>S($e,A(Ze)),B=($e,Ze)=>{var an={};for(var Me in $e)T.call($e,Me)&&Ze.indexOf(Me)<0&&(an[Me]=$e[Me]);if($e!=null&&D)for(var Me of D($e))Ze.indexOf(Me)<0&&k.call($e,Me)&&(an[Me]=$e[Me]);return an};const U="xstyled-color-mode",Q=typeof window<"u"&&(()=>{try{const $e="xstyled-test-key";return window.localStorage.setItem($e,$e),window.localStorage.removeItem($e),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem(U),set:$e=>{window.localStorage.setItem(U,$e)},clear:()=>window.localStorage.removeItem(U)}:{get:()=>null,set:()=>{},clear:()=>{}},W="xstyled-color-mode-",M=$e=>`${W}${$e}`,L="xstyled-colors",I=["light","dark"];function z($e,Ze){return F(G({},$e),{colors:G(G({},$e.colors),$e.colors.modes[Ze])})}const $=$e=>`@media ${$e}`,J=$e=>`(prefers-color-scheme: ${$e})`;function H($e){return Boolean($e&&$e.colors&&$e.colors.modes)}function ee($e){return Boolean($e&&($e.useCustomProperties===void 0||$e.useCustomProperties))}function te($e){return Boolean($e&&($e.useColorSchemeMediaQuery===void 0||$e.useColorSchemeMediaQuery))}function me($e){return $e.initialColorModeName||"default"}function se($e){return $e.defaultColorModeName||me($e)}function pe($e){let Ze=[];for(const an in $e)Ze=[...Ze,...Object.keys($e[an])];return Ze}function oe($e,{targetSelector:Ze="body"}={}){if(!H($e))return null;const an=$e.colors,{modes:Me}=an,Ee=B(an,["modes"]),On=pe(Me);let Ln=P(Ee,$e,On,L);function Je(Tn){const rt=z($e,Tn),bt=rt.colors,{modes:V}=bt,q=B(bt,["modes"]);return P(G(G({},q),V[Tn]),rt,On,L)}return $e.useColorSchemeMediaQuery!==!1&&I.forEach(Tn=>{if(Me[Tn]){const rt=$(J(Tn));Ln+=`${rt}{${Je(Tn)}}`}}),[me($e),...Object.keys(Me)].forEach(Tn=>{const rt=`&.${M(Tn)}`;Ln+=`${rt}{${Je(Tn)}}`}),`${Ze}{${Ln}}`}function ie($e){if(typeof window>"u"||window.matchMedia===void 0)return null;const Ze=J($e);return window.matchMedia(Ze)}function ge($e){const Ze=r.useMemo(()=>te($e)?I.map(Ee=>{if(!H($e)||!$e.colors.modes[Ee])return null;const On=ie(Ee);return On?{mode:Ee,mql:On}:null}).filter(Boolean):[],[$e]),[an,Me]=r.useState(()=>{const Ee=Ze.find(On=>On.mql.matches);return Ee?Ee.mode:null});return r.useEffect(()=>{const Ee=Ze.map(({mode:On,mql:Ln})=>{const Je=({matches:yn})=>{Me(yn?On:Tn=>Tn===On?null:On)};return Ln.addEventListener("change",Je),()=>Ln.removeEventListener("change",Je)});return()=>Ee.forEach(On=>On())}),an}const re=typeof window<"u"?r.useLayoutEffect:r.useEffect;function ve($e,{target:Ze}={}){const an=ge($e),Me=se($e),Ee=me($e),[On,Ln]=r.useState(()=>H($e)?Me:null),Je=ee($e),yn=r.useCallback(Tn=>{Ln(Tn||null),Tn?Q.set(Tn):Q.clear()},[]);return re(()=>{if(!H($e))return;const Tn=Q.get();On!==(Tn||an||Me)&&Ln(Tn||an||Me)},[]),re(()=>{if(Q.get())return;const rt=an||Me;rt!==On&&Ln(rt)},[On,an,Me]),re(()=>{if(!On||!Je||!Q.get()&&!(Ee!==On))return;const bt=M(On),V=Ze||document.body;return V.classList.add(bt),()=>{V.classList.remove(bt)}},[Je,Ze,On,Ee]),[On,yn]}function Be($e,Ze){const[an]=r.useState(Ze),Me=r.useMemo(()=>{if(!an||!ee($e))return null;if(!H($e))return $e;const On=$e.colors,{modes:Ln}=On,Je=B(On,["modes"]),yn=pe(Ln);return F(G({},$e),{colors:F(G(G({},Je),E(Je,$e,yn,L)),{modes:Ln}),__rawColors:$e.colors})},[an,$e]),Ee=r.useMemo(()=>!Ze||ee($e)?null:H($e)?Ze===me($e)?F(G({},$e),{__colorMode:Ze}):F(G({},$e),{colors:G(G({},$e.colors),$e.colors.modes[Ze]),__colorMode:Ze,__rawColors:$e.colors}):$e,[$e,Ze]);return Me||Ee}const Ke=r.createContext(null);function Xe(){const $e=t.useContext(Ke);if(!$e)throw new Error("[useColorMode] requires the ColorModeProvider component");return $e}function fe({ThemeContext:$e,ThemeProvider:Ze,ColorModeStyle:an}){function Me({children:Ee,target:On,targetSelector:Ln}){const Je=r.useContext($e);if(!Je)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const yn=ve(Je,{target:On}),Tn=Be(Je,yn[0]);return r.createElement(r.Fragment,null,r.createElement(an,{targetSelector:Ln}),r.createElement(Ze,{theme:Tn},r.createElement(Ke.Provider,{value:yn},Ee)))}return Me}function ce({target:$e="document.body"}={}){return`(function() { try {
18400
+ `;e.d(o,["Az",0,v,"G3",0,g,"KZ",0,b,"OV",0,j,"_W",0,c,"f7",0,E,"rf",0,p,"uP",0,h])},"./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";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")};e.d(o,["AS",0,g,"Gs",0,d,"x7",0,c])},"./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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,b3:()=>n});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()}`;e.d(o,["_s",0,s,"xH",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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.29.0_@elliemae+pui-diagnostics@3.12.6_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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t});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";e.d(o,["h",0,n])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>a});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}#m=()=>{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.#m,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};#c=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)};#v=({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.#c(m.data):m.data.type===s?this.#h(m.data):this.#v({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}`)}}e.d(o,["_",0,d])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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=()=>{}}e.d(o,["Q",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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.2/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.29.0_@elliemae+pui-diagnostics@3.12.6_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.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/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.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";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}};e.d(o,["QS",0,d,"nE",0,a,"np",0,s])},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";const t=()=>window.emui?.logRocket,i=new Map,d=P=>{i.size<50||i.forEach((w,S)=>{P-w.windowStart>=1e3&&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<1e3){if(T.count>=3)return;T.count+=1}else d(D),i.set(A,{windowStart:D,count:1});const k=Object.keys(S).length;k>a&&console.warn(`[analytics] lrTrack "${w}" has ${k} 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)};e.d(o,["As",0,E,"E3",0,h])},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.29.0_@elliemae+pui-diagnostics@3.12.6_@elliemae+pui-logrocket@1.3._a3wvyjkzxvlfw6hybwiifbsika/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>bt});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=(V=>(V.Analytics="analytics",V.Application="application",V.Auth="auth",V.Form="form",V.Global="global",V.Http="http",V.Loan="loan",V.LoanV2="loanV2",V.MemStorage="memstorage",V.Module="module",V.Service="service",V.Session="session",V.Styling="styling",V.Transaction="transaction",V.TransactionTemplate="transactiontemplate",V.WebSocket="websocket",V))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(q){this.#n=q}#o=(q,ne)=>{const le=new Promise(xe=>{setTimeout(()=>{xe()},ne)});return Promise.race([q,le])};#r=q=>{const{eventName:ne,scriptingObject:le,eventParams:xe,listeners:pn}=q;pn.forEach(kn=>{kn.criteria&&!(xe&&this.#s(xe,kn.criteria))||Promise.resolve(kn.callback({obj:le,eventName:ne,eventParams:xe})).catch(Rn=>{this.#n?.warn(`Error in event listener for "${ne}": ${Rn.message}`)})})};#i=async({eventId:q,eventName:ne,scriptingObject:le,eventParams:xe,feedbackWaitTime:pn})=>{const Rn=(this.#e.get(q)||[]).map(zt=>zt.criteria&&!(xe?this.#s(xe,zt.criteria):!1)?Promise.resolve():this.#o(zt.callback({obj:le,eventName:ne,eventParams:xe}),pn));return(await Promise.all(Rn)).flat(1/0).filter(zt=>zt!==void 0)};#s(q,ne){return Object.entries(ne).every(([le,xe])=>{const pn=q[le];if("eq"in xe)return pn===xe.eq;if("in"in xe)return Array.isArray(xe.in)&&xe.in.includes(pn);if("includes"in xe)return Array.isArray(pn)&&pn.includes(xe.includes);if("gt"in xe){const kn=typeof pn=="number"?pn:Number(pn);return!Number.isNaN(kn)&&kn>xe.gt}if("lt"in xe){const kn=typeof pn=="number"?pn:Number(pn);return!Number.isNaN(kn)&&kn<xe.lt}if("regex"in xe){let kn=this.#t.get(xe);if(kn===void 0){try{kn=new RegExp(xe.regex)}catch{kn=null}this.#t.set(xe,kn)}return kn!==null&&typeof pn=="string"&&kn.test(pn)}return!1})}dispatchEvent=async(q,ne)=>{const{event:{id:le,name:xe},eventParams:pn,eventOptions:kn}=ne,{timeout:Rn}=kn??{};if(!le)throw new Error("Event Id is required");const Pt=this.#e.get(le)||[];return!Rn||Rn<=0?(this.#r({eventName:xe,scriptingObject:q,eventParams:pn,listeners:Pt}),Promise.resolve()):this.#i({eventId:le,eventName:xe,scriptingObject:q,eventParams:pn,feedbackWaitTime:Rn})};subscribe=q=>{const{eventId:ne,callback:le,criteria:xe}=q;if(!ne)throw new Error("eventId is required");if(!le)throw new Error("Callback is required");const pn=this.#e.get(ne)||[],kn=(0,n.A)();return pn.push({token:kn,criteria:xe,callback:le}),this.#e.set(ne,pn),kn};unsubscribe=q=>{const{eventId:ne,token:le}=q;if(!ne)throw new Error("eventId id is required");if(le){const xe=this.#e.get(ne)||[],pn=xe.findIndex(kn=>kn.token===le);pn>-1&&(xe.splice(pn,1),this.#e.set(ne,xe))}else this.#e.delete(ne)};unsubscribeAll=()=>{this.#e.clear()}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=V=>V.replace(/([^:]\/)\/+/g,"$1"),g=V=>{const q=document.createElement("a");return q.href=V,q.href},b=V=>V?.replace?.(/\/?$/,"/"),v=(V,q)=>`${V.replace(/\/+$/,"")}/${q.replace(/^\/+/,"")}`,h=V=>/^(\/|https?:\/\/)/.test(V),x=(V,q)=>{const ne=b(q);if(h(ne)){const{origin:le}=new URL(V,window.location.href);return p(new URL(ne,le).href)}return p(new URL(ne,b(V)).href)},j=(V,q)=>p(new URL("manifest.json",x(V,q)).href),E=()=>window.navigator.userAgent.includes("jsdom"),P=V=>V.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=V=>{try{if(new URL(V,window.location.href).origin===window.location.origin)return V;const ne=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${ne}/frame.html`}catch{return V}},S="pui-app-container-",A=V=>{const q=V.src??m.default??m,ne=w(q);if(!V.queryParams)return ne;const le=V.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${ne}${ne.includes("?")?"&":"?"}${le}`},D=({documentEle:V,hostUrl:q,manifestPath:ne,guestId:le})=>{const xe=V.getElementById(S);xe&&(xe.id=`${xe.id}${le}`);const pn=x(q,ne);let kn=V.getElementsByTagName("base")?.[0];if(kn){kn.href=pn;return}kn=V.createElement("base"),kn.href=pn,V.getElementsByTagName("head")[0].appendChild(kn)},T=({id:V,instanceId:q,manifestPath:ne,hostUrl:le,options:xe})=>new Promise((pn,kn)=>{const{signal:Rn}=xe;if(Rn?.aborted){kn(new DOMException("iframe creation aborted","AbortError"));return}const Pt=document.createElement("div");Pt.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const zt=document.createElement("iframe");zt.setAttribute("id",q),zt.setAttribute("data-testid",V),zt.setAttribute("title",xe.title),zt.setAttribute("allowfullscreen","true"),zt.setAttribute("allowtransparency","true"),xe.permissionPolicy&&zt.setAttribute("allow",xe.permissionPolicy),xe.sandbox&&zt.setAttribute("sandbox",xe.sandbox),zt.setAttribute("style",xe.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),zt.setAttribute("src",A(xe));const ir=1e4;let pr=!1,st,mn;const Mn=()=>{clearTimeout(st),Rn?.removeEventListener("abort",mn)},_n=()=>Rn?.aborted?(pr||(pr=!0,Mn(),Pt.remove(),kn(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(mn=()=>{_n()},_n())return;Rn?.addEventListener("abort",mn),st=setTimeout(()=>{pr||(pr=!0,Mn(),Pt.remove(),kn(new Error(`iframe for ${V} failed to load within ${ir}ms`)))},ir),zt.addEventListener("error",()=>{pr||(pr=!0,Mn(),Pt.remove(),kn(new Error(`iframe for ${V} failed to load`)))}),zt.addEventListener("load",()=>{pr||_n()||zt.contentDocument&&(pr=!0,Mn(),D({documentEle:zt.contentDocument,hostUrl:le,manifestPath:ne,guestId:V}),pn(zt))}),Pt.appendChild(zt);const{containerId:fn}=xe;(document.getElementById(fn??"")??document.body).appendChild(Pt)}),k=V=>document.getElementById(V),G={create:T,remove:V=>{const q=k(V);q&&q.parentElement?.remove()},get:k};var F=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const B=()=>{try{return window.parent.document,window.parent}catch{return window}},U=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),K=V=>Number(V.replace("px","")),Q=()=>{const{width:V}=U(),{breakpoints:q}=(0,F.getDefaultTheme)();return V<=K(q.small)?"small":V<=K(q.medium)?"medium":"large"};var W=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"),L=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),I=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),z=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const $=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}');var J=(V=>(V.DEVELOPMENT="development",V.PRODUCTION="production",V))(J||{}),H=(V=>(V.SSF="ssf",V.APPSDK="appsdk",V))(H||{});class ee{#e=$;#t;#n;constructor(q){this.#t=q?.version||"latest",this.#n=b(q?.baseUrl||"")}#o=q=>{const{activeEnv:ne,env:le,...xe}=q,pn=le[ne]||{};this.#e=z({},xe,pn)};get=(q="",ne=null)=>W(M(this.#e,q,ne));set=(q,ne)=>{L(this.#e,q,ne)};has=(q="")=>I(this.#e,q);setPreloadedConfig=q=>{this.#e=q};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const ne=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${ne?.[0]||"latest"}`)}return this.#n};load=async q=>{const ne=q??`${this.#r()}app.config.json`;let le;try{le=await fetch(ne)}catch(xe){if(!q&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:xe})}if(le.ok)try{const xe=await le.json();this.#o(xe)}catch(xe){if(!q&&this.#t!=="latest")await this.load(`${this.#n}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:xe})}else{if(!q&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var te=(V=>(V.USER="USER",V.PARTNER="PARTNER",V))(te||{}),me=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const se="microFrontendApps",pe=()=>me.env.CI==="true",oe=V=>pe()?!0:String(V).toLowerCase()===J.PRODUCTION.toLowerCase(),ie=V=>V?new URL(V).pathname:"",ge=V=>{const q=document.createElement("a");return q.href=V,q.href},re=(V,q)=>{const ne=q.match(/^(?:\d+\.\d+)*/g);return V.replace(/{SYSTEM_VERSION}/,ne&&ne[0]||"latest")},ve=V=>!V||!V.length?!1:V.every(q=>typeof q=="string"),Be=(V,q)=>{const{mode:ne=J.PRODUCTION}=q;if(String(ne).toLowerCase()!==J.PRODUCTION.toLowerCase()&&String(ne).toLowerCase()!==J.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(ne)}' for ${V}`);const{production:le,development:xe,microappManager:pn=H.APPSDK}=q;if(String(pn).toLowerCase()===H.APPSDK.toLowerCase()){if(String(ne).toLowerCase()===J.PRODUCTION.toLowerCase()){if(!le)throw new Error(`microFrontendApps.${V} is missing production section in app.config.json`);if(!ve(le.files))throw new Error("invalid value for production.files")}if(String(ne).toLowerCase()===J.DEVELOPMENT.toLowerCase()){if(!xe)throw new Error(`microFrontendApps.${V} is missing development section in app.config.json`);if(!ve(xe.files))throw new Error("invalid value for development.files")}}},Ke=({id:V,config:q,version:ne="latest"})=>{const{mode:le=J.PRODUCTION,production:xe,development:pn,...kn}=q,Rn=oe(le)?xe:pn,Pt=z({id:V},{name:V,mode:J.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:te.USER,isJsModule:!0},kn,{mode:le},Rn);return Pt.hostUrl=b(ge(Pt.hostUrl||"")),Pt.homeRoute=b(Pt.homeRoute)||ie(Pt.hostUrl),Pt.manifestPath=b(re(Pt.manifestPath,ne)),Pt};class Xe{#e=[];init=({version:q,appConfig:ne})=>{const le=ne.get(se);le&&(this.#e=Object.keys(le).map(xe=>(Be(xe,le[xe]),Ke({id:xe,config:le[xe],version:q}))))};getConfigById=q=>this.#e.find(ne=>ne.id===q)}const fe=/^https?:\/\//i,ce=(V,q)=>{if(!fe.test(V))return!1;try{return!V.startsWith(new URL(q).href)}catch{return!0}},Ce=(V,q)=>{const ne=[],le=[];return V.forEach(xe=>{ce(xe.href,q)?ne.push(xe):le.push(xe)}),{external:ne,local:le}},Ne=V=>{if(!V)return;const q=V,ne=q.emui?._ASSET_PATH;ne&&(q.__webpack_public_path__=new URL("../",ne).href)},Pe=(V,q)=>{if(!(!V||!q))try{const ne=V;ne.__webpack_public_path__=new URL("./",q).href}catch{}},Ve=(V,q)=>{if(!V)return;if(V.emui?._ASSET_PATH){Ne(V);return}Pe(V,q)},ze="ice-script-";class nn{#e;constructor(q){this.#e=q}#t=({href:q,isESMModule:ne=!0,documentEle:le})=>{const xe=le.createElement("link");xe.rel=ne?"modulepreload":"preload",xe.href=q,xe.crossOrigin="anonymous",ne||(xe.as="script"),le.head.appendChild(xe)};#n=({id:q,href:ne,documentEle:le,isESMModule:xe=!0})=>new Promise((pn,kn)=>{const Rn=le.createElement("script");Rn.id=q,Rn.src=p(ne),Rn.crossOrigin="anonymous",Rn.nonce="__CSP_NONCE__",!E()&&xe?Rn.type="module":Rn.async=!1,Rn.onload=pn.bind(null,Rn.id),Rn.onerror=Pt=>{this.#e.error({message:`Error loading script ${Rn.src}`,exception:new Error(Pt)}),kn(new Error(`Unable to load script ${Rn.src}`,{cause:new Error(Pt)}))},le.head.appendChild(Rn)});#o=async(q,ne,le)=>{if(q.length===0)return;const xe=q.map(({id:pn,href:kn})=>this.#n({id:pn,href:kn,documentEle:ne,isESMModule:le}));await Promise.all(xe)};#r=async({scripts:q,documentEle:ne,isESMModule:le,hostUrl:xe})=>{if(q.length===0)return;if(!xe){await this.#o(q,ne,le);return}const{external:pn,local:kn}=Ce(q,xe);await this.#o(pn,ne,le),Ve(ne.defaultView,xe),await this.#o(kn,ne,le)};load=async(q,ne)=>{const{documentEle:le,isESMModule:xe}=ne,pn=/^https?:\/\//i,kn=q.map((Rn,Pt)=>{const zt=`${ze}${ne.name.toLowerCase()}-${Pt}`,ir=pn.test(Rn)?Rn:new URL(Rn,ne.hostUrl).href;return this.#t({href:ir,documentEle:le,isESMModule:xe}),{id:zt,href:ir}});return await this.#r({scripts:kn,documentEle:le,isESMModule:xe,hostUrl:ne.hostUrl}),Ve(le.defaultView,ne.hostUrl),kn.map(Rn=>Rn.id)};remove=(q="",ne=document)=>new Promise(le=>{const xe=ne.getElementById(q);if(!xe){this.#e.warn(`script with id ${q} not found`),le();return}xe.remove(),le()});removeDynamicImportedScripts=(q,ne)=>{const le=new RegExp(P(q),"i"),xe=ne.getElementsByTagName("script");for(let pn=xe.length-1;pn>=0;pn-=1){const kn=xe[pn],{src:Rn}=kn;le.test(Rn)&&kn.remove()}};removePrefetchLinks=(q,ne)=>{const le=new RegExp(P(q),"i"),xe=ne.querySelectorAll('[rel="prefetch"]');for(let pn=xe.length-1;pn>=0;pn-=1){const kn=xe[pn],{href:Rn}=kn;le.test(Rn)&&kn.remove()}}}const qe="ice-style-";class hn{#e;constructor(q){this.#e=q}#t=({id:q,href:ne,documentEle:le})=>new Promise((xe,pn)=>{const kn=le.createElement("link");kn.id=q,kn.nonce="__CSP_NONCE__",kn.rel="stylesheet",kn.href=p(ne),kn.onload=xe.bind(null,kn.id),kn.onerror=Rn=>{this.#e.error({message:`Error loading stylesheet ${kn.href}`,exception:new Error(Rn)}),pn(new Error(`Unable to load stylesheet ${kn.href}`,{cause:new Error(Rn)}))},le.head.appendChild(kn)});load=async(q,ne)=>{const le=[],xe=q.map((pn,kn)=>{const Rn=new URL(pn,ne.hostUrl),Pt=`${qe}${ne.name.toLowerCase()}-${kn}`;return le.push(Pt),this.#t({id:Pt,href:Rn.href,documentEle:ne.documentEle})});return await Promise.all(xe),le};remove=(q="",ne=document)=>new Promise(le=>{const xe=ne.getElementById(q);if(!xe){this.#e.warn(`style with id ${q} not found`),le();return}xe.remove(),le()});removeDynamicImportedStyles=(q,ne)=>{const le=new RegExp(P(q),"i"),xe=ne.querySelectorAll('[rel="stylesheet"]');for(let pn=xe.length-1;pn>=0;pn-=1){const kn=xe[pn],{href:Rn}=kn;le.test(Rn)&&kn.remove()}}}const Fe=V=>V.replace(/\/\d+\.\d+/,"/latest"),ue=V=>{let q;try{q=new URL(V)}catch{return!1}return q.protocol==="http:"||q.protocol==="https:"},je=new Map,De={get:async({hostUrl:V,manifestPath:q})=>{const ne=j(V,q),le=je.get(ne);if(le)return le;const xe=async pn=>{const kn=await fetch(pn);if(!kn.ok)throw new Error(`unable to get manifest ${pn}`);if(!(kn.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${pn} is not a valid json`);const Pt=await kn.json();return je.set(pn,Pt),Pt};try{return await xe(ne)}catch(pn){const kn=Fe(q);if(q!==kn){const Rn=j(V,kn);return await xe(Rn)}throw pn}},getFullFileNameofAssets:(V,q=[])=>q.reduce((ne,le)=>{const xe=V[le];if(xe)ne.push(xe);else if(ue(le))ne.push(le);else throw new Error(`unable to locate ${le} in manifest`);return ne},[]),clearCache:()=>je.clear()};class $e{#e;#t;#n;#o;#r;constructor(q){this.#t=q.guest,this.#e=q.containerId,this.#n=q?.version||"latest",this.#o=q.soManager,this.#r=q.eventManager}get version(){return this.#n}getObject=q=>{try{const ne=this.#o.getObject(q,this.#t);if(!ne)return Promise.resolve(null);const le=new a.V(ne.id,ne.objectType);return Object.keys(ne).forEach(xe=>{const pn=ne[xe];pn instanceof d.Jh?Object.defineProperty(le,xe,{value:new d.Jh({name:xe,objectId:ne.id}),enumerable:!0}):(0,s.Q)(pn,xe)&&Object.defineProperty(le,xe,{value:(...kn)=>{const Rn=le[xe]?.callContext?.callChain;return Object.defineProperty(pn,"callContext",{value:{guest:this.#t,...Rn?.length?{callChain:Rn}:{}},configurable:!0,enumerable:!0,writable:!0}),ne[xe](...kn)},enumerable:!0})}),Promise.resolve(le)}catch(ne){return Promise.reject(ne)}};setAppWindowSize=q=>{if(!this.#e)return;const{size:ne}=q,le=document.getElementById(this.#e);le&&(le.style.height=`${ne.height}px`,le.style.width=`${ne.width}px`)};subscribe=q=>this.#r.subscribe(q);unsubscribe=q=>{this.#r.unsubscribe(q)}}class Ze{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:q,app:ne})=>{if(!q)throw new Error("appId is required");if(q==="__proto__"||q==="constructor"||q==="prototype")throw new Error(`Invalid appId: ${q}`);if(!ne?.uuid)throw new Error("application uuid is required");if(window.emui[q]=window.emui[q]||[],Array.isArray(window.emui[q])){const le=window.emui[q].findIndex(xe=>xe.uuid===ne.uuid);le>-1?window.emui[q][le]=ne:window.emui[q].push(ne)}else{let le=window.emui[q];le?.uuid===ne.uuid?(le={...le,...ne},window.emui[q]=[le]):typeof le.init>"u"?window.emui[q]=[{...le,...ne}]:window.emui[q]=[window.emui[q],ne]}};get=({id:q,instanceId:ne})=>{const le=window.emui?.[q];return Array.isArray(le)?le.find(pn=>pn.uuid===ne)??null:le?.uuid===ne?le:null};add=({id:q,instanceId:ne,documentEle:le})=>{if(!ne)throw new Error(`instanceId (uuid) is required to register application ${q}`);const xe={uuid:ne,init:null,mount:null,unmount:null},pn=window.emui[q];pn?Array.isArray(pn)?pn.push(xe):window.emui[q]=[pn,xe]:window.emui[q]=[xe],le.defaultView&&(le.defaultView.emui=le.defaultView.emui??{},le.defaultView.emui.uuid=ne)};delete=({id:q,instanceId:ne})=>{if(Array.isArray(window.emui[q])){const le=window.emui[q].findIndex(xe=>xe.uuid===ne);le>-1&&window.emui[q].splice(le,1),window.emui[q].length===0&&delete window.emui[q]}else delete window.emui[q]}}const an=12e4,Me="module.unloading",Ee="module.unmount",On=1e3,Ln=new s.P(r.Module),Je=V=>Array.isArray(V)&&V.some(q=>q===!1),yn=["click","scroll","keypress","touchstart"],Tn=/\.css$/,rt=V=>Tn.test(V);class bt{#e;#t;#n;#o;#r;#i=new Xe;#s;#m;#a=new Map;#p=new Map;#l=new Ze;#c=!0;constructor(q){const{logger:ne}=q;if(!ne)throw new Error("logger is required");this.#e=q.logger,this.#t=q.version,this.#c=q.extendSession??!0,this.#r=new ee({version:q.version,baseUrl:q.appConfigBaseUrl}),this.#n=new nn(ne),this.#o=new hn(ne),this.#s=new i.qE,this.#m=new c(this.#e)}#h(q){return typeof q=="function"}#v=q=>q instanceof d.b3||typeof q?.subscribe=="function";#d=(q,ne)=>`Application ${q} with instance id ${ne} is not found. Most probably the appId property of app.config.json is not set to ${q}`;#w=(q,ne=document)=>{const{elementIds:le}=this.#a.get(q)||{};le&&le.forEach(xe=>{const pn=ne.getElementById(xe);pn&&pn.remove()})};#A=({id:q,instanceId:ne,documentEle:le,elementIds:xe,microFEHost:pn,selfInitialize:kn})=>{const Rn=this.#l.get({id:q,instanceId:ne});if(!Rn)throw new Error(this.#d(q,ne));this.#a.set(ne,{id:q,instanceId:ne,elementIds:xe,guest:{guestWindow:le?.defaultView,...Rn},microFEHost:pn,selfInitialize:kn})};#_=async({id:q,instanceId:ne,containerId:le,hostUrl:xe,manifestPath:pn,homeRoute:kn,initialRoute:Rn,history:Pt,theme:zt,microFEHost:ir})=>{const pr=this.#l.get({id:q,instanceId:ne});if(!pr)throw new Error(`Application ${q} with instance id ${ne} is not found. Most probably the appId property of app.config.json is not set to ${q}`);if(!pr.init||typeof pr.init!="function")throw new Error(`Application ${q} with instance id ${ne} doesn't expose init method`);const st=ir??new $e({guest:{id:q},version:this.#t,containerId:le,logger:this.#e,soManager:this.#s,eventManager:this.#m});return pr.init({host:st,hostUrl:xe,manifestPath:pn,homeRoute:kn,initialRoute:Rn,prevState:null,history:Pt,theme:zt,hostBreakpoint:Q(),hostViewportSize:U(),logger:this.#e})};#u=async q=>{try{const{id:ne,instanceId:le,files:xe,name:pn,hostUrl:kn,documentEle:Rn,isJsModule:Pt}=q;this.#e.debug(`Application ${ne} with instance id ${le} is loading...`);let zt=xe;const ir=q.manifest??await De.get(q);zt=De.getFullFileNameofAssets(ir,xe);const pr=zt.filter(fn=>rt(fn)),st=zt.filter(fn=>!rt(fn)),mn={name:pn,hostUrl:kn,documentEle:Rn,isESMModule:Pt},[Mn,_n]=await Promise.all([this.#o.load(pr,mn),this.#n.load(st,mn)]);this.#A({id:ne,instanceId:le,documentEle:Rn,elementIds:[...Mn,..._n],microFEHost:q.microFEHost,selfInitialize:q.selfInitialize}),q.selfInitialize||await this.#_(q),this.#e.audit(`Application ${ne} with instance id ${le} loaded`)}catch(ne){const le=`Application load failed. Unable to load one or more resources for ${q.id} with instance id ${q.instanceId}. ${ne.message}`;throw this.#e.error({message:le,appId:q.id,exception:ne}),new Error(le)}};#g=({id:q,instanceId:ne,hostUrl:le,documentEle:xe})=>{this.#e.debug(`Application ${q} with instance id ${ne} unloading...`),this.#l.get({id:q,instanceId:ne})&&(this.#w(ne,xe),this.#n.removeDynamicImportedScripts(le,xe),this.#n.removePrefetchLinks(le,xe),this.#o.removeDynamicImportedStyles(le,xe),this.#l.delete({id:q,instanceId:ne}),this.#e.audit(`Application ${q} with instance id ${ne} unloaded`))};#b=async({id:q,instanceId:ne})=>{const le=this.#l.get({id:q,instanceId:ne});if(!le?.mount||typeof le?.mount!="function")throw new Error(`Application ${q} with instance id ${ne} doesn't expose mount method`);return le.mount({containerId:`${S}${q}`,hostBreakpoint:Q(),hostViewportSize:U()})};#S=({id:q,instanceId:ne})=>{const le=this.#l.get({id:q,instanceId:ne});if(!le?.unmount)return null;if(typeof le.unmount!="function")throw new Error(`Application ${q} with instance id ${ne} doesn't expose unmount method`);return le.unmount({containerId:`${S}${q}`})};#O=({id:q,instanceId:ne})=>{if(this.#c)try{const le=this.#s.getObject(r.Application);if(!le){this.#e.warn({message:`Application scripting object not available for ${q} to manage session`});return}const xe=this.#a.get(ne);if(!xe)return;xe.keepAlive=t(async()=>{try{await le.keepSessionAlive()}catch(kn){this.#e.error(`Error keeping session alive. ${kn.message}`)}},an);const pn=G.get(ne);yn.forEach(kn=>{pn?.contentDocument?.addEventListener(kn,xe.keepAlive)})}catch(le){this.#e.warn({message:`Application scripting object not available for ${q} to manage session`,exception:le})}};#E=(q,ne)=>{const pn=this.#s.getObject(r.Module,{id:q})?._setUnloadHandler;typeof pn=="function"&&pn(()=>this.closeApp(ne))};#j=q=>this.#s.getObject(r.Module,{id:q});#f=async(q,ne,le)=>{const xe=this.#j(q)??Ln;return this.#m.dispatchEvent(xe,{event:{id:ne,name:le},eventParams:{moduleId:q},eventOptions:{timeout:On}})};#y=async q=>{try{const ne=await this.#f(q,Me,"unloading");if(Je(ne))return this.#e.info(`Unload denied by guest ${q} via module.unloading event`),!1}catch(ne){this.#e.warn({message:`Error dispatching module.unloading event for ${q}; proceeding with unload`,exception:ne})}return!0};#x=async({id:q,instanceId:ne,selfInitialize:le})=>{if(!le){await this.#S({id:q,instanceId:ne});return}try{await this.#f(q,Ee,"unmount")}catch(xe){this.#e.warn({message:`Error dispatching module.unmount event for ${q}`,exception:xe})}};#C=q=>{if(!this.#c||!q)return;const{keepAlive:ne,instanceId:le}=q;if(ne){const pn=G.get(le)?.contentDocument;pn&&yn.forEach(kn=>{pn.removeEventListener(kn,ne)}),q.keepAlive?.cancel()}};addScriptingObject=(q,ne)=>{if((0,a.h)(q)){const le=this.cloneScriptingObject(q);this.#s.addScriptingObject(le,ne)}else this.#s.addScriptingObject(q,ne)};cloneScriptingObject=q=>{if(!q)throw new Error("proxy is required");const ne=new s.P(q.id,q.objectType);let le=[];return Object.keys(q).forEach(xe=>{const pn=q[xe];if(this.#v(pn)){const kn=new d.Jh({name:pn.name||xe,objectId:ne.id});Object.defineProperty(ne,xe,{value:kn,enumerable:!0});const Rn=({eventParams:zt,eventOptions:ir})=>this.dispatchEvent({event:kn,eventParams:zt,eventOptions:ir}),Pt=pn.subscribe(Rn);le.push(()=>{pn.unsubscribe(Pt)})}else if(this.#h(pn)&&(Object.defineProperty(ne,xe,{value:async(...kn)=>{const Rn=ne[xe]?.callContext;if(Rn?.guest){const zt=Rn.callChain??[],ir=Rn.guest.id,pr=this.#p.get(ir),st={id:ir};pr&&(st.metadata=pr),Object.defineProperty(pn,"callContext",{value:{callChain:[...zt,st]},configurable:!0,enumerable:!0,writable:!0})}const Pt=await pn(...kn);return(0,a.h)(Pt)?this.cloneScriptingObject(Pt):Pt},enumerable:!0}),xe==="dispose")){const kn=ne.dispose;Object.defineProperty(ne,xe,{value:()=>(ne._dispose(),kn.apply(ne)),enumerable:!0})}}),ne._dispose=()=>{le.forEach(xe=>{xe?.()}),le=[]},ne};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async q=>{if(!q)throw new Error("instanceId is required");const ne=this.#a.get(q);if(!ne){this.#e.warn(`Application with instance id ${q} is not found`);return}const{id:le,selfInitialize:xe}=ne;if(!await this.#y(le))return;const pn=this.#i.getConfigById(le);if(!pn){this.#e.warn(`Configuration for application ${le} is not found`),this.#a.delete(q),G.remove(q);return}const{hostUrl:kn}=pn,Rn=G.get(q);try{this.#C(ne),await this.#x({id:le,instanceId:q,selfInitialize:xe})}finally{Rn?.contentDocument&&this.#g({id:le,instanceId:q,hostUrl:kn,documentEle:Rn.contentDocument}),Rn&&(Rn.src="about:blank"),this.#a.delete(q),this.#p.delete(le),G.remove(q)}};dispatchEvent=async q=>{const{event:{id:ne,name:le},eventOptions:xe={}}=q,{guestId:pn}=xe;if(!ne)throw new Error("Event Id is required");const kn=ne.split(".")?.[0],Rn=pn?this.#s.getObject(kn,{id:pn}):this.#s.getObject(kn);return Rn?this.#m.dispatchEvent(Rn,q):(this.#e.warn(`Attempt to dispatch event ${le} on unknown object ${kn}`),Promise.resolve())};getApp=q=>this.#a.get(q)?.guest;getApps=()=>[...this.#a.values()].map(q=>q.guest);init=async q=>{q?this.#r.setPreloadedConfig(q):await this.#r.load(),this.#i.init({version:this.#t,appConfig:this.#r}),this.#T()};#T=()=>{const q=this.#r.get("microFrontendApps")??{},ne=new Set;Object.keys(q).forEach(le=>{const xe=this.#i.getConfigById(le);if(xe?.hostUrl)try{ne.add(new URL(xe.hostUrl).origin)}catch{}}),ne.forEach(le=>{const xe=document.createElement("link");xe.rel="preconnect",xe.href=le,xe.crossOrigin="anonymous",document.head.appendChild(xe)})};mountApp=async q=>{if(!q)throw new Error("instanceId is required");const{id:ne}=this.#a.get(q)||{};if(!ne)throw new Error(`Application with instance id ${q} is not found`);const le=this.#i.getConfigById(ne);if(!le)throw new Error(`Application with id ${ne} is not found`);await this.#b({...le,instanceId:q})};#P=(q,ne,le)=>{const xe=new $e({guest:{id:le.id},version:this.#t,containerId:le.containerId,logger:this.#e,soManager:this.#s,eventManager:this.#m}),pn=q.defaultView;pn&&(pn.emui=pn.emui??{},pn.emui.__host=xe,pn.emui.getHost=()=>pn.emui?.__host??null);const kn=q.createElement("link");return kn.rel="preconnect",kn.href=ne.hostUrl,kn.crossOrigin="anonymous",q.head.appendChild(kn),xe};openApp=async q=>{const{id:ne,frameOptions:le,history:xe,theme:pn,homeRoute:kn,initialRoute:Rn,metadata:Pt,selfInitialize:zt}=q,ir=(0,n.A)();Pt&&this.#p.set(ne,Pt);const pr=this.#i.getConfigById(ne);if(!pr)throw new Error(`Application ${ne} is not found in app config`);const st=De.get(pr);st.catch(()=>{});const mn=await G.create({id:ne,instanceId:ir,manifestPath:pr.manifestPath,hostUrl:pr.hostUrl,options:{title:pr.name,...le}});if(!mn?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:ne,instanceId:ir,documentEle:mn.contentDocument});const Mn=this.#P(mn.contentDocument,pr,{id:ne,containerId:le?.containerId}),_n=await st;return await this.#u({instanceId:ir,history:xe,theme:pn,documentEle:mn.contentDocument,containerId:le?.containerId,...pr,homeRoute:kn??pr.homeRoute,initialRoute:Rn,microFEHost:Mn,selfInitialize:zt,manifest:_n}),zt||await this.#b({instanceId:ir,...pr}),this.#O({id:ne,instanceId:ir}),this.#E(ne,ir),ir}catch(Mn){throw this.#g({id:ne,instanceId:ir,hostUrl:pr.hostUrl,documentEle:mn.contentDocument}),G.remove(ir),Mn}};removeAllEventSubscriptions=()=>{this.#m.unsubscribeAll()};removeAllScriptingObjects=q=>{this.#s.removeAllScriptingObjects(q)};removeScriptingObject=(q,ne)=>{this.#s.removeScriptingObject(q,ne)};warmUp=q=>{const ne=this.#i.getConfigById(q);ne&&De.get(ne).catch(()=>{})};unmountApp=async q=>{if(!q)throw new Error("instanceId is required");const ne=this.#a.get(q),{id:le,selfInitialize:xe}=ne||{};if(!le)throw new Error(`Application with instance id ${q} is not found`);if(!this.#i.getConfigById(le))throw new Error(`Application with id ${le} is not found`);await this.#x({id:le,instanceId:q,selfInitialize:xe})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.29.0_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>Q});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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_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(M){this.#e=M.logger,this.#t=M.enabled??!0,this.#n=M.throttleMs??i.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(M,L){if(!this.#t){this.#e.debug(L);return}if(this.#n>0){const I=performance.now(),z=this.#o.get(M);if(z!==void 0&&I-z<this.#n){this.#e.debug(L);return}this.#o.set(M,I)}this.#e.audit(L)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:W}=window;try{return W?.location?.href}catch{return null}},g=W=>{if(!W||W==="about:blank")return"*";try{const{origin:M}=new URL(W);return M==="null"||!M?"*":M}catch{try{const{origin:M}=new URL(W,document.baseURI);return M==="null"||!M?"*":M}catch{return"*"}}},b=()=>window.self!==window.parent,v=(W,M)=>{const L=M||document.body,I=document.defaultView?.getComputedStyle?.(L,null),z=I?I[W]:"0";return parseInt(z,10)},h="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},E=(W,M)=>!!(window.opener&&W.source===window.opener||M&&W.data?.handshakeToken===M),P=()=>new Promise((W,M)=>{if(b())W({origin:g(document.referrer||p()),window:window.parent});else{const L=window,I=j();let z;const $=J=>{if(E(J,I)){const{source:H,type:ee}=J.data||{};if(H===h&&ee===s.G.HandShake){const{origin:te}=J,me=J.source;clearTimeout(z),(0,r._)({targetWin:me,targetOrigin:te,messageType:s.G.HandShakeAck,messageBody:{}}),L.removeEventListener("message",$),W({origin:te,window:me})}}};z=setTimeout(()=>{L.removeEventListener("message",$),M(new Error(`Host handshake timed out after ${x}ms`))},x),L.addEventListener("message",$)}});let w=!1;const S=W=>{w=W},A=(W=null)=>{let M=W;const L=()=>{if(!M&&(M=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!M))throw new Error("Guest definition not found");return M};window.elli=window.elli??{},window.elli.script={guest:{create:(I,z)=>L().addScript(I,z)},connect:I=>(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);"),L().connect(I)),getObject:I=>(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);"),L().getObject(I)),setLogLevel:I=>(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);"),L().setLogLevel(I)),subscribe:(I,z,$,J)=>(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); });"),L().subscribe({eventId:`${I}.${z}`,callback:H=>$(H?.obj,H?.eventParams,H?.eventOptions),criteria:J?.criteria})),unsubscribe:(I,z,$)=>(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 });"),L().unsubscribe({eventId:`${I}.${z}`,token:$}))}};try{A()}catch{}var D=null;const T=12e4,k=2e3,N=2e3,G={eventFeedback:!0},F=()=>{const{document:W}=window,M=W.body,L=W.documentElement,z={height:M.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(M.scrollWidth,L.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:g(W.referrer||p()),messageType:s.G.GuestResize,messageBody:z}),window.removeEventListener("load",F)};b()&&window.addEventListener("load",F);const B={"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"},U=["click","scroll","keypress","touchstart"],K=()=>{const W=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/599/node_modules/.pnpm/@elliemae+ssf-guest@2.29.0_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",M=W?new URL(W).hostname:"localhost";return B[M]||B["cdn.mortgagetech.q1.ice.com"]};class Q{#e;#t;#n;#o=!1;#r=null;#i=!1;#s=new Map;#m=null;#a=null;#p=null;#l=null;#c=null;#h=null;#v=new Map;#d(){if(!this.#c||!this.#l)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#c,hostOrigin:this.#l}}#w(M){let L={...G};if(M){const I={...M};delete I.window,L={...L,...I}}return L}#A(M){const{hostWindow:L,hostOrigin:I}=this.#d();this.#n.send({targetWin:L,targetOrigin:I,messageType:s.G.GuestReady,messageBody:M})}#_=!1;#u=null;#g=null;#b=null;#S=!0;#O=T;#E;#j=null;#f;constructor(M){const{console:L=!1,url:I=window.__ICE__?.diagnosticsUrl||K(),index:z="ssf-guest-v2",team:$="ICE",appName:J="SSF Guest V2 Application"}=M?.logger??{};this.#E=M?.logger,this.#_=M?.usesDevConnectAPI??!1,this.#S=M?.keepAlive??!0,this.#O=M?.keepAliveInterval??T;const H=L?(0,m.Console)():(0,m.http)(I);this.#t=M?.appLogger??(0,m.logger)({transport:H,index:z,team:$,appName:J}),this.#f=new i({logger:this.#t,enabled:M?.auditOperations,throttleMs:M?.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})}#y=()=>({guestId:this.#m,guestTitle:this.#a,guestUrl:this.#p});#x=M=>{if(!M||!M.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 L=new d.V(M.objectId,M.objectType);return M.functions&&M.functions.forEach(I=>{Object.defineProperty(L,I,{value:async(...z)=>{const J=L[I]?.callContext?.callChain;return this.#C({objectId:L.id,functionName:I,functionParams:[...z],callerChain:J})},enumerable:!0})}),M.events&&M.events.forEach(I=>{Object.defineProperty(L,I,{value:new a.b3({objectId:L.id,name:I,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${L.id}")`),L};#C=async({objectId:M,functionName:L,functionParams:I,callerChain:z})=>{this.#t.debug(`Invoking scripting object method ${M}.${L}()...`);const $=[];if(I)for(let me=0;me<I.length;me+=1){const se=I[me];se instanceof Promise&&$.push(se.then(pe=>{I[me]=pe}))}await Promise.all($);const{hostWindow:J,hostOrigin:H}=this.#d(),ee=await this.#n.invoke({targetWin:J,targetOrigin:H,messageType:s.G.ObjectInvoke,messageBody:{objectId:M,functionName:L,functionParams:I,...z?.length?{callerChain:z}:{}}}),te=this.#P(ee);return this.#f.log(`invoke:${M}.${L}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:M,scriptingMethod:L,...this.#y()}),te};#T(M,L){return(0,c.ts)(M,L,{regexCache:this.#v})}#P=M=>M?.type==="object"&&"object"in M?this.#x(M.object):M?.type==="value"?M.value:M;#I=({body:M})=>{M?.logLevel&&(this.#t.setLogLevel(M.logLevel),this.#t.debug(`Log level changed by host to ${M.logLevel}`)),this.#m=M?.guestId??null,this.#a=M?.guestTitle??null,this.#p=M?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#y()})};#k=()=>{window.focus()};#F=async()=>{await this.close(),window.close()};#M=()=>{b()||(this.#h=setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#L=async({sourceWin:M,sourceOrigin:L,requestId:I,body:z})=>{const $=this.#x(z.object);if($){const J=(0,a._s)($.id,z.eventName);this.#t.debug(`Received event "${J}" from host`);let H;z.eventHandler?H=[{callback:window[z.eventHandler],token:(0,t.A)()}]:H=this.#s.get(J)||[];const ee=[];if(H.forEach(te=>{if(te?.callback){if(te.criteria&&!(z.eventParams?this.#T(z.eventParams,te.criteria):!1)){this.#t.debug(`Event ${J} did not match criteria for subscriber ${te.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${te.callback.name} for event ${J}`);const me=te.callback({obj:$,eventName:z.eventName,eventParams:z.eventParams,eventOptions:z.eventOptions});me instanceof Promise?ee.push(me):typeof me<"u"&&ee.push(Promise.resolve(me))}}),I){const te=await Promise.all(ee);this.#n.respond({targetWin:M,targetOrigin:L,requestId:I,response:te}),this.#f.log(`event:${J}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:J,scriptingObject:$.id,...this.#y()})}else this.#f.log(`event:${J}`,{message:"Guest proxy processed event from host",scriptingEventId:J,scriptingObject:$.id,...this.#y()})}};#N=async()=>{if(!(!this.#u||!this.#g||!this.#b))try{await fetch(`${this.#b}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#u,client_id:this.#g}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(M){this.#t.warn(`Failed to extend token lifetime: ${M.message}`)}};#R=async()=>{if(this.#u&&this.#g&&this.#b)try{await fetch(`${this.#b}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#u,client_id:this.#g}).toString()}`,{method:"POST"})}catch(M){this.#t.error(`Error revoking token. ${M.message}`)}finally{this.#u=null,this.#g=null}};#D=async()=>{if(this.#S)try{const M=await Promise.race([this.getObject("application"),new Promise(L=>{setTimeout(()=>L(null),k)})]);M?(this.#j=n(async()=>{try{await M.keepSessionAlive(),await this.#N()}catch(L){this.#t.error(`Error keeping session alive. ${L.message}`)}},this.#O,{leading:!1}),U.forEach(L=>{document.addEventListener(L,this.#j)})):this.#t.warn("Application object not available to send keep alive")}catch(M){this.#t.error(`Error getting application object. ${M.message}`)}};addScript=async(M,L)=>{if(!this.#o&&M){await this.connect();const I=document.createElement("script");I.setAttribute("src",M),I.setAttribute("type","module"),await new Promise((z,$)=>{let J,H;const ee=()=>{I.removeEventListener("load",J),I.removeEventListener("error",H)};J=()=>{ee(),this.#o=!0,S(!0),z()},H=()=>{ee(),$(new Error(`Failed to load script: ${M}`))},I.addEventListener("load",J),I.addEventListener("error",H),this.#r=L.appendChild(I)})}};close=async()=>{this.#i&&(this.#c&&this.#l&&(this.#n.send({targetWin:this.#c,targetOrigin:this.#l,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#l,window:this.#c})),this.#n.close(),this.#h&&(clearInterval(this.#h),this.#h=null),this.#j&&U.forEach(M=>{document.removeEventListener(M,this.#j)}),await this.#R(),window.removeEventListener("beforeunload",this.close),this.#i=!1,this.#t.audit({message:"Guest disconnected from host",...this.#y()}),this.#m=null,this.#p=null,this.#a=null)};connect=async M=>{if(this.#i){this.#A(this.#w(M));return}let L=window;M?.window&&(L=M.window);const I=this.#w(M),z=await P();this.#l=z.origin,this.#c=z.window,this.#n.initialize(L),this.#n.addSender({origin:this.#l,window:this.#c}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#L.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#I.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#k.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#F.bind(this)}),this.#A(I),this.#i=!0,this.#M(),this.#_&&await this.getAuthToken(),await this.#D(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})};getAuthToken=async()=>{if(!this.#u&&this.#i)try{const M=await this.getObject("auth");if(M){const L=await M.getAccessToken();this.#u=L?.access_token,this.#b=L?.host_name,this.#g=L?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(M){this.#t.error(`Error getting access token from auth object. ${M.message}`)}return this.#u};getObject=async M=>{if(this.#t.debug(`Retrieving scripting object "${M}" from host...`),!this.#i)throw new Error("Not connected to host");const{hostWindow:L,hostOrigin:I}=this.#d(),z=await this.#n.invoke({targetWin:L,targetOrigin:I,messageType:s.G.ObjectGet,messageBody:{objectId:M},responseTimeoutMs:N});if(!z?.object)throw new Error(`The requested object (${M}) is not available`);const $=this.#x(z.object);return this.#f.log(`getObject:${M}`,{message:"Received scripting object from host",scriptingObject:M,...this.#y()}),$};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:M,hostOrigin:L}=this.#d(),I=await this.#n.invoke({targetWin:M,targetOrigin:L,messageType:s.G.ListObjects,messageBody:{}});return this.#f.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:I,...this.#y()}),I};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:M}=this.#r;M?.removeChild?.(this.#r)}};setLogLevel=M=>{this.#t.setLogLevel(M),this.#t.debug(`Log level changed by guest to ${M}`)};subscribe=M=>{const{eventId:L,criteria:I,callback:z}=M;this.#t.debug(`Registering subscription for event ${L}`);const $=this.#s.get(L.toLowerCase())||[],J=(0,t.A)();$.push({callback:z,token:J,criteria:I}),this.#s.set(L.toLowerCase(),$);const{hostWindow:H,hostOrigin:ee}=this.#d();return this.#n.send({targetWin:H,targetOrigin:ee,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:L,criteria:I,token:J}}),this.#t.debug(`Subscribed to event ${L} with token ${J}`),J};unsubscribe=M=>{const{eventId:L,token:I}=M,z=this.#s.get(L.toLowerCase());if(z){const $=z.length,J=z.filter(H=>H.token!==I);if(J.length<$){this.#s.set(L.toLowerCase(),J);const{hostWindow:H,hostOrigin:ee}=this.#d();this.#n.send({targetWin:H,targetOrigin:ee,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:L,token:I}}),this.#t.debug(`Unsubscribed from event ${L}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.29.0_@elliemae+pui-diagnostics@3.12.6/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>M});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.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.29.0_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(L,I){return(0,c.of)(I)?(0,c.ts)(L,I):!0}var g=(L=>(L.Popup="popup",L.Embed="embed",L))(g||{}),b=(L=>(L.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",L.AllowDownloads="allow-downloads",L.AllowForms="allow-forms",L.AllowModals="allow-modals",L.AllowOrientationLock="allow-orientation-lock",L.AllowPointerLock="allow-pointer-lock",L.AllowPopups="allow-popups",L.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",L.AllowPresentation="allow-presentation",L.AllowSameOrigin="allow-same-origin",L.AllowScripts="allow-scripts",L.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",L.AllowTopNavigation="allow-top-navigation",L.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",L))(b||{});const v=L=>{if(L==="about:blank")return"*";try{const{origin:I}=new URL(L);return I==="null"||!I?L:I}catch{const{origin:z}=new URL(L,document.baseURI);return z}},h=L=>L.flat(1/0).filter(I=>I!==void 0);function x(L){return typeof L=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com"],E=["localhost","127.0.0.1"],P=L=>L.split(".").slice(-2).join("."),w=L=>E.includes(L)||j.some(I=>L===I.slice(1)||L.endsWith(I)),S=L=>{const I=P(window.location.hostname),z=P(L);return I===z},A=L=>{try{const{hostname:I}=new URL(L,document.baseURI);return w(I)||S(I)}catch{return!1}};class D{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;constructor(I){const{guestId:z,domElement:$=null,title:J,url:H,window:ee,searchParams:te={},openMode:me=g.Embed,remoting:se,perfTracker:pe,handshakeToken:oe}=I;this.id=z,this.title=J,this.url=H,this.origin=v(H),this.searchParams=te,this.domElement=$,this.window=ee,this.openMode=me,this.capabilities={},this.#t=pe,this.#e=se,this.#n=oe}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:i.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(I=>{let z=0;const $=5;let J;const H=()=>{clearInterval(J),this.#e.unlisten({messageType:i.G.HandShakeAck,callback:H}),I(!0)};J=setInterval(()=>{z>=$?(clearInterval(J),this.#e.unlisten({messageType:i.G.HandShakeAck,callback:H}),I(!1)):(this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}}),z+=1)},1e3),this.#e.listen({messageType:i.G.HandShakeAck,callback:H})});init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===g.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(I,z)=>{let $;if(this.#t.enabled){const J=`ScriptingObject.Event.${I.object.objectId}.${I.eventName}`;$=this.#t.start(J,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.ObjectEvent,messageBody:I,responseTimeoutMs:z}).finally(()=>{$&&this.#t.end($,{appId:this.id,appUrl:this.url})})};send=I=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...I})}}const T=new Set(["SSF.Guest.Load"]);class k{#e;#t;#n;#o=new Set;#r;#i=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(I){this.#e=I.analyticsObj,this.#t=I.enabled??!1,this.#n=I.samplingRatio??k.DEFAULT_SAMPLING_RATIO,this.#r=I.dedupWindowMs??k.DEFAULT_DEDUP_WINDOW_MS,this.#s=I.onError}get enabled(){return this.#t}start(I,z){if(this.#t)try{const $=T.has(I);return!$&&!this.shouldTrack(I)?void 0:(!$&&!this.#o.has(I)&&(this.#e.setTimingEventSamplingRatio({[I]:this.#n}),this.#o.add(I)),this.#e.startTiming(I,z).catch(J=>{this.reportError(`startTiming failed: ${J.message}`)}),I)}catch($){this.reportError(`startTiming failed: ${$.message}`);return}}end(I,z){if(I)try{this.#e.endTiming(I,z).catch($=>{this.reportError(`endTiming failed: ${$.message}`)})}catch($){this.reportError(`endTiming failed: ${$.message}`)}}reportError(I){try{this.#s?.(I)}catch{}}shouldTrack(I){if(this.#r<=0)return!0;const z=performance.now(),$=this.#i.get(I);return $!==void 0&&z-$<this.#r?!1:(this.#i.set(I,z),!0)}}const N=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin],G="module",F="module.unloading",B="module.unmount",U=1e3,K=new n.P(G),Q=L=>Array.isArray(L)&&L.some(I=>I===!1),W=()=>{};class M{hostId;#e;#t;#n;#o;#r=new Map;#i=new Map;#s=new Map;#m=new Map;#a;#p=null;#l=null;#c=null;#h=null;#v=new Map;#d;#w;constructor(I,z){if(this.hostId=I,!z?.logger)throw new Error("Logger is required");if(!z?.analyticsObj)throw new Error("Analytics object is required");this.#n=z.logger,this.#o=z.analyticsObj;const $={analyticsObj:z.analyticsObj,enabled:z?.measurePerformance,samplingRatio:z?.performanceSamplingRatio,onError:J=>this.#n.debug(J)};if(this.#d=new k({...$,dedupWindowMs:z?.performanceDedupWindowMs}),this.#w=new k({...$,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new r.K(this.#n,this.#t),z?.readyStateCallback&&typeof z?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#p=z?.readyStateCallback||null,this.#c=z?.onGuestEventSubscribe||null,this.#h=z?.onGuestEventUnsubscribe||null,this.#a=new s.qE,this.#e.initialize(window),this.#L(),window.addEventListener("beforeunload",this.#_),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#A=(I,z)=>{const $={event:I,...z};this.#o.sendBAEvent($).catch(J=>{this.#n.debug(`Analytics sendBAEvent failed: ${J.message}`)})};#_=()=>{Array.from(this.#r.values()).filter(z=>z.openMode===g.Popup).map(z=>z.id).forEach(z=>this.#B(z))};#u=I=>this.#i.get(I);#g=I=>this.#s.get(I)??null;#b=I=>typeof I?._toJSON=="function";#S=(I,z)=>this.#b(I)?(this.#a.has(I?.id,z)||this.#a.addScriptingObject(I,z?{guestId:z?.id}:{}),{type:"object",object:I._toJSON()}):{type:"value",value:I};#O=I=>typeof I=="string"?I:I instanceof Error?I.message:"An unexpected error occurred in the host application";#E=I=>{I.ready&&this.#e.send({targetWin:I.window,targetOrigin:I.origin,messageType:i.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...I.getInfo()}})};#j=({guest:I,obj:z,functionName:$,functionParams:J,callerChain:H})=>{const ee=z[$];return x(ee)?(this.#n.debug(`Invoking host implementation of ${z.id}.${String($)}()`),new Promise(te=>{Object.defineProperty(ee,"callContext",{value:{guest:I,...H?.length?{callChain:H}:{}},configurable:!0,enumerable:!0,writable:!0}),te(ee(...J))})):(this.#n.warn(`Attempt to call invalid function on object type ${z.objectType}: ${String($)}`),Promise.reject(new Error(`Method '${$}' not found in Scripting Object '${z.id}'`)))};#f=({sourceWin:I,sourceOrigin:z,requestId:$})=>{const J=this.#u(I);if(!J){this.#n.warn(`Received ready event for unknown guest. requestId: ${$}`);return}if(!J.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:I,targetOrigin:z,requestId:$,ex:"Guest must be initialized before it is marked as ready"});return}if(!J.ready){J.ready=!0;const H=J.getInfo();this.#d.end("SSF.Guest.Load",{appId:H.guestId,appUrl:H.guestUrl}),this.#E(J),this.#p?.(J),this.#n.audit({message:"Guest is ready",...H})}};#y=({sourceWin:I,sourceOrigin:z,requestId:$,body:J})=>{const H=this.#u(I);if(!H){this.#n.warn(`Received ready event for unknown guest. requestid = ${$}`);return}H.initialized?J&&(H.capabilities={...H.capabilities,...J}):(H.initialized=!0,H.capabilities=J||{},this.#n.audit({message:"Guest is initialized",...H.getInfo()})),(!J||!J.onReady)&&this.#f({sourceWin:I,sourceOrigin:z,requestId:$,type:"",body:null})};#x=async({sourceWin:I})=>{if(I?.window){const z=this.#D(I);z&&!await z.handShake()&&this.#B(I)}};#C=({sourceWin:I,sourceOrigin:z,requestId:$})=>{this.#n.debug(`Processing listObjects request. requestId = ${$}`);const J=this.#u(I);if(!J)return this.#n.warn("Rejected object request from unknown guest window"),!1;const H=this.#a.listScriptingObjects(J.id);return this.#e.respond({targetWin:I,targetOrigin:z,requestId:$,response:H}),this.#n.debug({message:"name of scripting objects returned",requestId:$,objects:H,...J.getInfo()}),!0};#T=({sourceWin:I,sourceOrigin:z,requestId:$,body:J})=>{const{objectId:H}=J;this.#n.debug(`Processing getObject request for object ${H}. requestId = ${$}`);const ee=this.#u(I);if(!ee)return this.#n.warn("Rejected object request from unknown guest window"),!1;const te=this.getScriptingObject(H,{guest:ee});return te?(this.#e.respond({targetWin:I,targetOrigin:z,requestId:$,response:this.#S(te,ee)}),this.#n.debug({message:"Scripting Object returned",requestId:$,scriptingObject:H,...ee.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${H} from guest ${ee.id}`),this.#e.raiseException({targetWin:I,targetOrigin:z,requestId:$,ex:`The requested object (${H}) is not available`}),!1)};#P=({sourceWin:I,requestId:z,body:$})=>{const{eventId:J,criteria:H,token:ee}=$;this.#n.debug(`Processing guest event subscribe request for event ${J}. requestId = ${z}`);const te=this.#u(I);if(!te){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#c?.({guestId:te.id,eventId:J,criteria:H,token:ee})}catch(me){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${J}: ${me.message}`)}},0)};#I=({sourceWin:I,requestId:z,body:$})=>{const{eventId:J,token:H}=$;this.#n.debug(`Processing guest event unsubscribe request for event ${J}. requestId = ${z}`);const ee=this.#u(I);if(!ee){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#h?.({guestId:ee.id,eventId:J,token:H})}catch(te){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${J}: ${te.message}`)}},0)};#k=({sourceWin:I,requestId:z,body:$})=>{const J=this.#u(I);if(!J){this.#n.warn(`Received resize event from unknown guest. requestid = ${z}`);return}J.domElement&&(J.domElement.style.height=`${$.height}px`),this.#n.debug(`Guest ${J.id} resized to ${$.width}x${$.height}`)};#F=({sourceWin:I,sourceOrigin:z,requestId:$,body:J})=>{const{objectId:H,callerChain:ee}=J,te=this.#u(I);if(!te)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${H}.${String(J.functionName)}() called from guest "${te.id}" (requestId = ${$})`);const me=this.getScriptingObject(H,{guest:te});if(!me)return this.#n.warn(`Invocation of unknown or unauthorized object ${H} from guest ${te.id}`),this.#e.raiseException({targetWin:I,targetOrigin:z,requestId:$,ex:`The requested object (${H}) is not available`}),!1;const se=te.getInfo();let pe;if(this.#d.enabled){const oe=`ScriptingObject.API.${H}.${J.functionName}`;pe=this.#d.start(oe,{appId:se.guestId,appUrl:se.guestUrl})}return this.#j({guest:te,obj:me,functionName:J.functionName,functionParams:J.functionParams,callerChain:ee}).then(oe=>{this.#e.respond({targetWin:I,targetOrigin:z,requestId:$,response:this.#S(oe,te)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:$,scriptingObject:H,scriptingMethod:J.functionName,...se})}).catch(oe=>{this.#e.raiseException({targetWin:I,targetOrigin:te.origin,requestId:$,ex:oe}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:$,scriptingObject:H,scriptingMethod:J.functionName,...se})}).finally(()=>{pe&&this.#d.end(pe,{appId:se.guestId,appUrl:se.guestUrl})}),!0};#M=()=>{this.#e.listen({messageType:i.G.GuestResize,callback:this.#k})};#L=()=>{this.#e.listen({messageType:i.G.GuestReady,callback:this.#y}),this.#e.listen({messageType:i.G.GuestReadyComplete,callback:this.#f}),this.#e.listen({messageType:i.G.GuestClose,callback:this.#x}),this.#e.listen({messageType:i.G.ListObjects,callback:this.#C}),this.#e.listen({messageType:i.G.ObjectGet,callback:this.#T}),this.#e.listen({messageType:i.G.ObjectInvoke,callback:this.#F}),this.#e.listen({messageType:i.G.GuestEventSubscribe,callback:this.#P}),this.#e.listen({messageType:i.G.GuestEventUnsubscribe,callback:this.#I})};#N=I=>I instanceof d.b3||typeof I?.subscribe=="function";#R=I=>{const z=new D({...I,remoting:this.#e,perfTracker:this.#w});return z.init(),this.#r.set(I.guestId,z),this.#i.set(z.window,z),this.#s.set(z.url,z),z};#D=I=>{if(typeof I=="string")return this.#r.get(I);const z=this.#i.get(I);return z||Array.from(this.#r.values()).find($=>$.domElement===I)};#$=()=>{this.#l||(this.#l=setInterval(()=>{const I=[];this.#r.forEach(z=>{z.openMode===g.Popup&&z.window.closed&&I.push(z)}),I.forEach(z=>{const{id:$}=z;this.#B($),this.#m.get($)?.forEach(H=>{Promise.resolve(H({id:$})).catch(()=>{})})})},1e3))};#z=()=>{if(!this.#l)return;Array.from(this.#r.values()).some(z=>z.openMode===g.Popup)||(clearInterval(this.#l),this.#l=null)};#W=I=>{const z=A(I),$=z?void 0:(0,t.A)();return{popupUrl:$?`${I}#hs=${$}`:I,handshakeToken:$,trusted:z}};#G=I=>{const{url:z,title:$,popupWindowFeatures:J={},searchParams:H,guestId:ee,onLoad:te,onError:me}=I,{width:se=800,height:pe=600,top:oe=100,left:ie=100}=J;let ge=this.#g(z);if(ge)ge.window.closed||(A(z)?window.open("",$):ge.window.focus());else{const re=Object.entries({width:se,height:pe,top:oe,left:ie}).filter(([,fe])=>fe).map(([fe,ce])=>`${fe}=${ce}`).join(","),{popupUrl:ve,handshakeToken:Be,trusted:Ke}=this.#W(z),Xe=window.open(ve,$,`popup, ${re}`);if(Xe)setTimeout(()=>{try{te?.(ee)}catch(fe){this.#n.debug(`Error occurred in onLoad for guest with id '${ee}': ${fe.message}`)}},0);else throw setTimeout(()=>{try{me?.(ee)}catch(fe){this.#n.debug(`Error occurred in onError for guest with id '${ee}': ${fe.message}`)}},0),new Error("Failed to open guest application in popup window");Ke||(Xe.opener=null),ge=this.#R({guestId:ee,window:Xe,title:$,url:z,searchParams:H,openMode:g.Popup,handshakeToken:Be}),this.#$()}return ge};#H=I=>{const{url:z,title:$,targetElement:J,searchParams:H,guestId:ee,onLoad:te,onError:me,options:se={}}=I,pe=J.ownerDocument??document,{fitToContent:oe=!1,disableSandbox:ie=!1,sandboxValues:ge=[],customSandboxValues:re=[],style:ve="",permissionPolicy:Be=""}=se;if(!$)throw new Error("title is required");oe&&this.#M();const Ke=pe.createElement("iframe");Ke.setAttribute("id",ee);const Xe=()=>{setTimeout(()=>{try{te?.(ee)}catch(Ce){this.#n.debug(`Error occurred in onLoad for guest with id '${ee}': ${Ce.message}`)}},0),this.#n.debug(`frame loaded for guest with id '${ee}'`),Ke.removeEventListener("load",Xe)},fe=()=>{setTimeout(()=>{try{me?.(ee)}catch(Ce){this.#n.debug(`Error occurred in onError for guest with id '${ee}': ${Ce.message}`)}},0),this.#n.error(`frame load failed for guest with id '${ee}'`),Ke.removeEventListener("error",fe)};Ke.addEventListener("load",Xe),Ke.addEventListener("error",fe),Ke.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${ve}`),ie||Ke.setAttribute("sandbox",re.length>0?re.join(" "):[...N,...ge].join(" ")),Ke.setAttribute("title",$),Ke.setAttribute("src",z),Be&&Ke.setAttribute("allow",Be),J.appendChild(Ke);const ce=pe.getElementById(ee);return this.#R({guestId:ee,domElement:ce,window:ce.contentWindow,title:$,url:z,searchParams:H,openMode:g.Embed})};#V=(I,z)=>{let $="";return Object.keys(z).forEach(J=>{$+=`${($.length?"&":"")+encodeURIComponent(J)}=${encodeURIComponent(z[J])}`}),I+($?(I.indexOf("?")>=0?"&":"?")+$:"")};addScriptingObject=(I,z)=>{if((0,a.h)(I)){const $=this.cloneScriptingObject(I);this.#a.addScriptingObject($,z)}else this.#a.addScriptingObject(I,z)};cloneScriptingObject=I=>{if(!I)throw new Error("proxy is required");const z=new n.P(I.id,I.objectType);let $=[];return Object.keys(I).forEach(J=>{const H=I[J];if(this.#N(H)){const ee=new d.Jh({name:H.name||J,objectId:z.id});if(Object.defineProperty(z,J,{value:ee,enumerable:!0}),H instanceof d.b3){const te=({eventParams:se,eventOptions:pe})=>this.dispatchEvent({event:ee,eventParams:se,eventOptions:pe}),me=H.subscribe(te);$.push(()=>{H.unsubscribe(me)})}else{const te=H.subscribe?.((me,se,pe)=>this.dispatchEvent({event:ee,eventParams:se,eventOptions:pe}));$.push(()=>{H.unsubscribe?.(te)})}}else if(x(H)&&(Object.defineProperty(z,J,{value:async(...ee)=>{const te=z[J]?.callContext;if(te?.guest){const se=te.callChain??[],pe=te.guest.id,oe=this.#v.get(pe),ie={id:pe};oe&&(ie.metadata=oe),Object.defineProperty(H,"callContext",{value:{callChain:[...se,ie]},configurable:!0,enumerable:!0,writable:!0})}const me=await H(...ee);return(0,a.h)(me)?this.cloneScriptingObject(me):me},enumerable:!0}),J==="dispose")){const ee=z.dispose;Object.defineProperty(z,J,{value:()=>(z._dispose(),ee.apply(z)),enumerable:!0})}}),z._dispose=()=>{$.forEach(J=>{J?.()}),$=[]},z};close=()=>{this.#l&&(clearInterval(this.#l),this.#l=null),this.#_(),this.#v.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#_),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#K=({targetGuest:I,guestCapabilities:z,scriptingEventId:$,dispatchToGuest:J})=>{const H=ee=>{if((0,c.of)(z)&&!p(ee.capabilities,z)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:$,guestCapabilities:z,...ee.getInfo()});return}J(ee)};I?H(I):this.#r.forEach(H)};#Y=(I,z)=>(z?this.getScriptingObject(I,{guest:z}):this.getScriptingObject(I))??(I===G&&z?K:null);dispatchEvent=async I=>{const{event:{id:z,name:$},eventParams:J,eventOptions:H={}}=I,{eventHandler:ee=null,timeout:te=null,window:me=null,guestId:se,guestCapabilities:pe}=H,oe=z.split(".")[0],ie=se||me,ge=ie?this.#D(ie):null,re=this.#Y(oe,ge??null);if(!re)return this.#n.warn(`Attempt to dispatch event ${$} on unknown object ${oe}`),Promise.resolve([]);const ve={object:re._toJSON(),eventName:$,eventParams:J,eventHandler:ee,eventOptions:{allowsFeedback:!1}};te&&!Number.isNaN(te)&&(ve.eventOptions={allowsFeedback:!0,timeout:Number(te)});const Be=[];let Ke;const Xe=fe=>{const ce=fe.getInfo();te&&fe?.capabilities?.eventFeedback?(Be.push(fe.dispatchEvent(ve,te)),!Ke&&this.#d.enabled&&(Ke=this.#d.start(`ScriptingObject.Event.${re.id}.${$}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:z,...ce})):(fe.send({messageType:i.G.ObjectEvent,messageBody:ve}),this.#n.debug({message:"Event dispatched",scriptingEventId:z,...ce}))};return this.#K({targetGuest:ge??null,guestCapabilities:pe,scriptingEventId:z,dispatchToGuest:Xe}),Promise.all(Be).then(fe=>(this.#n.debug({message:"Event feedback received",scriptingEventId:z}),h(fe))).catch(fe=>{throw this.#n.error({message:"Error processing event",eventId:z,exception:fe}),fe}).finally(()=>{Ke&&this.#d.end(Ke,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(I,z)=>this.#a.getObject(I,z?.guest);loadGuest=I=>{const{id:z,url:$,targetElement:J,title:H,searchParams:ee={},onLoad:te,onError:me,options:se={},metadata:pe}=I;if(!z)throw new Error("id for guest application is required");let oe=z;if(this.#r.has(oe)){let Be=1;for(;this.#r.has(`${z}-${Be}`);)Be+=1;oe=`${z}-${Be}`}const{openMode:ie=g.Embed,popupWindowFeatures:ge={}}=se,re=this.#V($,ee);let ve=null;if(this.#d.start("SSF.Guest.Load",{appId:oe,appUrl:re}),ie===g.Popup)ve=this.#G({guestId:oe,url:re,title:H,searchParams:ee,popupWindowFeatures:ge,onLoad:te,onError:me});else if(ie===g.Embed)ve=this.#H({guestId:oe,url:re,title:H,targetElement:J,searchParams:ee,onLoad:te,onError:me,options:se});else throw new Error(`Invalid openMode: ${ie}`);return pe&&this.#v.set(oe,pe),this.#n.audit({message:"Guest loaded",...ve.getInfo()}),ve};loadGuests=I=>{const{id:z,url:$,targetElement:J,title:H,searchParamsList:ee=[],options:te={}}=I;ee.forEach((me,se)=>{this.loadGuest({id:`${z}-${se}`,url:$,title:H,targetElement:J,searchParams:me,options:te})},this)};removeAllScriptingObjects=I=>{this.#a.removeAllScriptingObjects(I)};removeScriptingObject=(I,z)=>{this.#a.removeScriptingObject(I,z)};setLogLevel=I=>{this.#n.setLogLevel(I),this.#r.forEach(this.#E),this.#n.debug("Dispatched config events to all guests")};#U=async(I,z,$)=>this.dispatchEvent({event:{id:z,name:$},eventParams:{moduleId:I.id},eventOptions:{timeout:U,guestId:I.id}});#X=async I=>{try{const z=await this.#U(I,F,"unloading");if(Q(z))return this.#n.info(`Unload denied by guest ${I.id} via module.unloading event`),!1}catch(z){this.#n.warn({message:`Error dispatching module.unloading event for ${I.id}; proceeding with unload`,exception:z})}return!0};#J=async I=>{try{await this.#U(I,B,"unmount")}catch(z){this.#n.warn({message:`Error dispatching module.unmount event for ${I.id}`,exception:z})}};#B=I=>{this.unloadGuest(I).catch(W)};unloadGuest=async I=>{const z=this.#D(I);z&&await this.#X(z)&&(await this.#J(z),z.dispose(),this.#i.delete(z.window),this.#s.delete(z.url),this.#v.delete(z.id),this.#r.delete(z.id),this.#n.audit({message:"Guest is removed from host",...z.getInfo()}),this.#z())};onGuestClose=I=>{const{id:z,guestCloseCallback:$}=I,J=this.#m.get(z)||[];J.push($),this.#m.set(z,J)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{E8:()=>oe,_7:()=>fe});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($e){return n({theme:$e})}function a($e,Ze){const Me=d($e)[Ze];return Me===0?null:Me}function c($e,Ze){const Me=d($e)[Ze];return Me===0?null:Me-.02}function m(){const[$e,Ze]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function an(){Ze(window.innerWidth)}return window.addEventListener("resize",an),Ze(window.innerWidth),()=>window.removeEventListener("resize",an)},[]),$e}function p($e){const Ze=d($e),an=m();return t.useMemo(()=>Object.keys(Ze).reverse().find(Me=>an!==null&&an>=Ze[Me])||null,[Ze,an])}function g($e,Ze){const an=a($e,Ze),Me=m();return Me!==null&&an!==null&&Me>=an}function b($e,Ze){const an=c($e,Ze),Me=m();return Me!==null&&an!==null&&Me<an}const v=(...$e)=>$e.filter(Boolean).join("."),h=$e=>`--${$e.replace(/\./g,"-")}`,x=($e,Ze)=>`var(${h($e)}, ${Ze})`,j=($e,Ze)=>`${$e}: ${Ze};`;function E($e,Ze,an=Object.keys($e),Me){const Ee=Array.isArray($e)?[]:{};for(const On in an){const Ln=an[On],Je=$e[Ln],yn=v(Me,Ln);if((0,i.WL)(Je)){Ee[Ln]=E(Je,Ze,Object.keys(Je),yn);continue}if((0,i.Yj)(Je)){Ee[Ln]=x(yn,Je);continue}if((0,i.Pc)(Je)){Ee[Ln]=x(yn,(0,i.DJ)(Je,{theme:Ze}));continue}}return Ee}function P($e,Ze,an=Object.keys($e),Me,Ee={value:""}){for(const On in an){const Ln=an[On],Je=$e[Ln],yn=v(Me,Ln);if((0,i.WL)(Je)){P(Je,Ze,Object.keys(Je),yn,Ee);continue}if((0,i.Yj)(Je)){Ee.value+=j(h(yn),Je);continue}if((0,i.Pc)(Je)){Ee.value+=j(h(yn),(0,i.DJ)(Je,{theme:Ze}));continue}}return Ee.value}var w=Object.defineProperty,S=Object.defineProperties,A=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,N=($e,Ze,an)=>Ze in $e?w($e,Ze,{enumerable:!0,configurable:!0,writable:!0,value:an}):$e[Ze]=an,G=($e,Ze)=>{for(var an in Ze||(Ze={}))T.call(Ze,an)&&N($e,an,Ze[an]);if(D)for(var an of D(Ze))k.call(Ze,an)&&N($e,an,Ze[an]);return $e},F=($e,Ze)=>S($e,A(Ze)),B=($e,Ze)=>{var an={};for(var Me in $e)T.call($e,Me)&&Ze.indexOf(Me)<0&&(an[Me]=$e[Me]);if($e!=null&&D)for(var Me of D($e))Ze.indexOf(Me)<0&&k.call($e,Me)&&(an[Me]=$e[Me]);return an};const U="xstyled-color-mode",Q=typeof window<"u"&&(()=>{try{const $e="xstyled-test-key";return window.localStorage.setItem($e,$e),window.localStorage.removeItem($e),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem(U),set:$e=>{window.localStorage.setItem(U,$e)},clear:()=>window.localStorage.removeItem(U)}:{get:()=>null,set:()=>{},clear:()=>{}},W="xstyled-color-mode-",M=$e=>`${W}${$e}`,L="xstyled-colors",I=["light","dark"];function z($e,Ze){return F(G({},$e),{colors:G(G({},$e.colors),$e.colors.modes[Ze])})}const $=$e=>`@media ${$e}`,J=$e=>`(prefers-color-scheme: ${$e})`;function H($e){return Boolean($e&&$e.colors&&$e.colors.modes)}function ee($e){return Boolean($e&&($e.useCustomProperties===void 0||$e.useCustomProperties))}function te($e){return Boolean($e&&($e.useColorSchemeMediaQuery===void 0||$e.useColorSchemeMediaQuery))}function me($e){return $e.initialColorModeName||"default"}function se($e){return $e.defaultColorModeName||me($e)}function pe($e){let Ze=[];for(const an in $e)Ze=[...Ze,...Object.keys($e[an])];return Ze}function oe($e,{targetSelector:Ze="body"}={}){if(!H($e))return null;const an=$e.colors,{modes:Me}=an,Ee=B(an,["modes"]),On=pe(Me);let Ln=P(Ee,$e,On,L);function Je(Tn){const rt=z($e,Tn),bt=rt.colors,{modes:V}=bt,q=B(bt,["modes"]);return P(G(G({},q),V[Tn]),rt,On,L)}return $e.useColorSchemeMediaQuery!==!1&&I.forEach(Tn=>{if(Me[Tn]){const rt=$(J(Tn));Ln+=`${rt}{${Je(Tn)}}`}}),[me($e),...Object.keys(Me)].forEach(Tn=>{const rt=`&.${M(Tn)}`;Ln+=`${rt}{${Je(Tn)}}`}),`${Ze}{${Ln}}`}function ie($e){if(typeof window>"u"||window.matchMedia===void 0)return null;const Ze=J($e);return window.matchMedia(Ze)}function ge($e){const Ze=r.useMemo(()=>te($e)?I.map(Ee=>{if(!H($e)||!$e.colors.modes[Ee])return null;const On=ie(Ee);return On?{mode:Ee,mql:On}:null}).filter(Boolean):[],[$e]),[an,Me]=r.useState(()=>{const Ee=Ze.find(On=>On.mql.matches);return Ee?Ee.mode:null});return r.useEffect(()=>{const Ee=Ze.map(({mode:On,mql:Ln})=>{const Je=({matches:yn})=>{Me(yn?On:Tn=>Tn===On?null:On)};return Ln.addEventListener("change",Je),()=>Ln.removeEventListener("change",Je)});return()=>Ee.forEach(On=>On())}),an}const re=typeof window<"u"?r.useLayoutEffect:r.useEffect;function ve($e,{target:Ze}={}){const an=ge($e),Me=se($e),Ee=me($e),[On,Ln]=r.useState(()=>H($e)?Me:null),Je=ee($e),yn=r.useCallback(Tn=>{Ln(Tn||null),Tn?Q.set(Tn):Q.clear()},[]);return re(()=>{if(!H($e))return;const Tn=Q.get();On!==(Tn||an||Me)&&Ln(Tn||an||Me)},[]),re(()=>{if(Q.get())return;const rt=an||Me;rt!==On&&Ln(rt)},[On,an,Me]),re(()=>{if(!On||!Je||!Q.get()&&!(Ee!==On))return;const bt=M(On),V=Ze||document.body;return V.classList.add(bt),()=>{V.classList.remove(bt)}},[Je,Ze,On,Ee]),[On,yn]}function Be($e,Ze){const[an]=r.useState(Ze),Me=r.useMemo(()=>{if(!an||!ee($e))return null;if(!H($e))return $e;const On=$e.colors,{modes:Ln}=On,Je=B(On,["modes"]),yn=pe(Ln);return F(G({},$e),{colors:F(G(G({},Je),E(Je,$e,yn,L)),{modes:Ln}),__rawColors:$e.colors})},[an,$e]),Ee=r.useMemo(()=>!Ze||ee($e)?null:H($e)?Ze===me($e)?F(G({},$e),{__colorMode:Ze}):F(G({},$e),{colors:G(G({},$e.colors),$e.colors.modes[Ze]),__colorMode:Ze,__rawColors:$e.colors}):$e,[$e,Ze]);return Me||Ee}const Ke=r.createContext(null);function Xe(){const $e=t.useContext(Ke);if(!$e)throw new Error("[useColorMode] requires the ColorModeProvider component");return $e}function fe({ThemeContext:$e,ThemeProvider:Ze,ColorModeStyle:an}){function Me({children:Ee,target:On,targetSelector:Ln}){const Je=r.useContext($e);if(!Je)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const yn=ve(Je,{target:On}),Tn=Be(Je,yn[0]);return r.createElement(r.Fragment,null,r.createElement(an,{targetSelector:Ln}),r.createElement(Ze,{theme:Tn},r.createElement(Ke.Provider,{value:yn},Ee)))}return Me}function ce({target:$e="document.body"}={}){return`(function() { try {
18401
18401
  var mode = localStorage.getItem('${U}');
18402
18402
  if (mode) ${$e}.classList.add('${W}' + mode);
18403
18403
  } catch (e) {} })();`}function Ce($e){return t.createElement("script",{key:"xstyled-color-mode-init",dangerouslySetInnerHTML:{__html:ce($e)}})}function Ne($e){return`<script>${ce($e)}<\/script>`}function Pe(){return["&&{",s.qUY,"}"]}Pe.meta=s.qUY.meta;const Ve=$e=>Ze=>an=>{const Me=$e((0,s.o$4)(an),Ze);return Me===null?"0":Me||Ze},ze={"min-width":Ve(s.ieS),"max-width":Ve(s.Ct)},nn="[-\\w]",hn=`(${nn}+)(\\s*:\\s*)(?=\\S)((?:\\\\[\\s\\S]|[^\\\\;{}])*?)(\\s*!important)?(\\s*;)`,ue="(@media\\b\\s*)(?=\\S)([^{]+?)(\\s*\\{)",je=new RegExp(`(?:${hn}|${ue})`,"g"),He=new RegExp(`(\\(\\s*)(${nn}+)(\\s*:\\s*)([^\\)]*?)(\\s*\\))`,"g"),en=$e=>{let Ze,an=0;const Me=[];for(;Ze=He.exec($e);){const[,Ee,On,Ln,Je,yn]=Ze,Tn=ze[On];Tn&&(Me.push($e.slice(an,Ze.index)),Me.push(rt=>`${Ee}${On}${Ln}${Tn(Je)(rt)}${yn}`),an=Ze.index+Ze[0].length)}return Me.push($e.slice(an,$e.length)),Me},gn=$e=>Ze=>{if(typeof Ze!="string")return Ze;let an,Me=0;const Ee=[];for(;an=je.exec(Ze);){const[,On,Ln,Je,yn,Tn,rt,bt,V]=an;if(rt)Ee.push(Ze.slice(Me,an.index)),Ee.push(rt),en(bt).forEach(q=>Ee.push(q)),Ee.push(V),Me=an.index+an[0].length;else{const q=$e.meta.cssGetters[On];q&&(Ee.push(Ze.slice(Me,an.index)),Ee.push(ne=>`${On}${Ln}${q(Je)(ne)}${yn||""}${Tn}`),Me=an.index+an[0].length)}}return Ee.push(Ze.slice(Me,Ze.length)),Ee},De=($e,Ze)=>(an,Me)=>{const Ee=Ze();return(0,r.useMemo)(()=>$e(an,Me)({theme:Ee}),[an,Me,Ee])};e.d(o,["B1",0,De,"l1",0,gn])},"./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";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)`${Ve=>(0,d.E8)(Ve.theme,{targetSelector:Ve.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),k=(0,d.B1)(c.th.fontWeight,b),N=(0,d.B1)(c.th.inset,b),G=(0,d.B1)(c.th.letterSpacing,b),F=(0,d.B1)(c.th.lineHeight,b),B=(0,d.B1)(c.th.percent,b),U=(0,d.B1)(c.th.px,b),K=(0,d.B1)(c.th.radius,b),Q=(0,d.B1)(c.th.ringWidth,b),W=(0,d.B1)(c.th.shadow,b),M=(0,d.B1)(c.th.size,b),L=(0,d.B1)(c.th.space,b),I=(0,d.B1)(c.th.timingFunction,b),z=(0,d.B1)(c.th.transform,b),$=(0,d.B1)(c.th.transition,b),J=(0,d.B1)(c.th.transitionProperty,b),H=(0,d.B1)(c.th.zIndex,b),ee=()=>t(b()),te=()=>n(b()),me=Ve=>r(b(),Ve),se=Ve=>s(b(),Ve),pe=(0,i.createGlobalStyle)(({theme:Ve})=>(0,c.wlu)(Ve)),oe=Ve=>{const ze=(0,d.l1)(Ve);return(...nn)=>{const qe=(0,i.css)(...nn);return(0,m.tc)(qe).map(ze)}},ie=typeof i=="function"?i:i.default,ge=(Ve,ze,nn)=>{const qe=(...hn)=>Ve`${ze(...hn)}${nn}`;return qe.attrs=hn=>ge(Ve.attrs(hn),ze,nn),qe.withConfig=hn=>ge(Ve.withConfig(hn),ze,nn),qe},re=Ve=>{const ze=new Set(Ve.meta.props);return(nn,qe,hn)=>(0,m.Yj)(nn)&&ze.has(nn)?!1:typeof hn=="string"?qe(nn):!0},ve=(Ve,ze)=>{const nn=ze?{shouldForwardProp:re(ze)}:{};return qe=>{const hn=ie(qe);return ge(nn?hn.withConfig(nn):hn,Ve,ze)}},Be=Ve=>{const ze=oe(Ve),nn=ve(ze),qe=ve(ze,Ve);return nn.box=qe("div"),Object.keys(ie).forEach(hn=>{nn[hn]=nn(hn),nn[`${hn}Box`]=qe(hn)}),nn},Ke=Ve=>{const ze=ve(oe(Ve),Ve),nn={};return Object.keys(ie).forEach(qe=>{nn[qe]=ze(qe)``}),nn},Xe=Ve=>{const ze=oe(Ve);return(...nn)=>(0,i.createGlobalStyle)([ze(...nn)])},fe=Ve=>({css:oe(Ve),x:Ke(Ve),styled:Be(Ve),createGlobalStyle:Xe(Ve)}),{css:ce,styled:Ce,x:Ne,createGlobalStyle:Pe}=fe(c.qUY);e.d(o,["Yb",0,fe])},"./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"(u,o,e){"use strict";e.d(o,{ZzX:()=>ve});var t,n=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs"),r=Math.pow;const s=Vn=>Math.round(Vn*r(10,4))/r(10,4),i=Vn=>ct=>(0,n.bu)(ct)&&ct!==0?`${ct}${Vn}`:ct,d=i("ms"),a=i("px"),c=i("deg"),m=(Vn,{rootFontSize:ct=16}={})=>s(Vn/ct),p=(Vn,ct)=>{const Ut=Number(Vn);return Number.isNaN(Ut)||Ut===0?Vn:`${m(Ut,ct)}rem`},g=(Vn,ct)=>{if(!(0,n.Yj)(Vn)||Vn.length<4||Vn.slice(-3)!=="rpx")return Vn;const lo=Number(Vn.slice(0,Vn.length-3));return lo===0?0:`${m(lo,ct)}rem`},b=Vn=>(0,n.bu)(Vn)&&Vn!==0&&Vn>=-1&&Vn<=1?`${s(Vn*100)}%`:Vn,v=(Vn,{rawValue:ct,variants:Ut,props:lo})=>{if((0,n.Yj)(ct)){const to=ct.startsWith("-"),Ro=to?ct.substr(1):ct,Vo=(0,n.nv)(lo,Ro,Ut),os=(0,n.Yj)(Vo)||(0,n.bu)(Vo)?Vo:Ro;return to?`-${os}`:os}if((0,n.bu)(ct)){const to=(0,n.gu)(ct),Ro=Math.abs(ct),Vo=Ut?Ut[Ro]:void 0;if((0,n.Yj)(Vo))return to?`-${Vo}`:Vo;const os=(0,n.bu)(Vo)?Vo:Ro;return to?os*-1:os}},h=Vn=>Vn?`@media (min-width: ${Vn})`:null,x=Vn=>Vn?`@media (max-width: ${Vn})`:null,j=(Vn,ct)=>Vn&&ct?`@media (min-width: ${Vn}) and (max-width: ${ct})`:null,E=(Vn,ct)=>{const Ut=Vn[ct];return Ut===0?null:a(Ut)},P=(Vn,ct)=>{const Ut=Vn[ct];return Ut===0?null:a(Ut-.02)};var w=Object.defineProperty,S=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,T=(Vn,ct,Ut)=>ct in Vn?w(Vn,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[ct]=Ut,k=(Vn,ct)=>{for(var Ut in ct||(ct={}))A.call(ct,Ut)&&T(Vn,Ut,ct[Ut]);if(S)for(var Ut of S(ct))D.call(ct,Ut)&&T(Vn,Ut,ct[Ut]);return Vn};const N=Vn=>Vn.theme&&Vn.theme.screens?Vn.theme.screens:{},G=Vn=>Vn.theme&&Vn.theme.states?Vn.theme.states:{},F=Vn=>{const ct=N(Vn),Ut=G(Vn),lo={};for(const Ro in ct)lo[Ro]=h(E(ct,Ro));const to=k(k({},lo),Ut);for(const[Ro,Vo]of Object.entries(to))Vo&&Vo.startsWith("@")&&(delete to[Ro],to[Ro]=Vo);return to},B=(Vn,ct)=>{if(ct.has("_variants"))return ct.get("_variants");const Ut=F(Vn);return ct.set("_variants",Ut),Ut},K=typeof Map<"u"&&typeof WeakMap<"u"?new WeakMap:null,Q=Vn=>{var ct;return((ct=Vn?.xstyled)==null?void 0:ct.cache)===!1},W=Vn=>{if(Q(Vn)||K===null)return null;if(K.has(Vn))return K.get(Vn)||null;const Ut={};return K.set(Vn,Ut),Ut},M={has:()=>!1,set:()=>{},get:()=>{}},L=(Vn,ct)=>{if(!Vn)return M;const Ut=W(Vn);return Ut?(Ut[ct]=Ut[ct]||new Map,Ut[ct]):M};var I=Object.defineProperty,z=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,H=(Vn,ct,Ut)=>ct in Vn?I(Vn,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[ct]=Ut,ee=(Vn,ct)=>{for(var Ut in ct||(ct={}))$.call(ct,Ut)&&H(Vn,Ut,ct[Ut]);if(z)for(var Ut of z(ct))J.call(ct,Ut)&&H(Vn,Ut,ct[Ut]);return Vn};let te=0;const me={shorthand:[/\s+/," "],multiple:[/\s*,\s*/,","]},se=(Vn,ct)=>Ut=>Ut.split(Vn[0]).map(ct).join(Vn[1]),pe=({name:Vn,transform:ct,key:Ut,compose:lo,shorthand:to,multiple:Ro})=>{const Vo=te++,os=(Jo,Us)=>Rs=>{let Mi=Jo;if(!(0,n.Yj)(Jo)&&!(0,n.bu)(Jo)&&Jo!==!0)return Mi;const Li=`${typeof Jo}-${Jo}-${Us}`,ma=L(Rs.theme,`__themeGetter${Vo}`);if(ma.has(Li))return ma.get(Li);const fi=ni=>{const Yi=(0,n.is)(Us)?Us:ni;let Js=ni;const Ia=(0,n.is)(Ut)?(0,n.nv)(Rs,Ut):null;if((0,n.is)(Ia)){const bi=ni===!0?"default":(0,n.Yj)(ni)||(0,n.bu)(ni)?ni:null;if((0,n.is)(bi)){const Xi=(0,n.nv)(Rs,bi,Ia);Js=Array.isArray(Xi)?Xi.join(","):Xi}}let Ol=ni;(0,n.is)(Js)||(Ol=Yi,Js=Yi);const Ni=(Vn&&Rs.theme&&Rs.theme.transformers?Rs.theme.transformers[Vn]:null)||ct;return Ni&&(Js=Ni(Js,{rawValue:Ol,variants:Ia,props:Rs})),lo?lo(Js)(Rs):Js};if((to||Ro)&&(0,n.Yj)(Jo)){let ni=fi;to&&(ni=se(me.shorthand,ni)),Ro&&(ni=se(me.multiple,ni)),Mi=ni(Jo)}else Mi=fi(Jo);return ma.set(Li,Mi),Mi};return os.meta={name:Vn,transform:ct},os},oe=({getStyle:Vn,props:ct,cssGetters:Ut={},generators:lo})=>{const to=Vn;return to.meta={props:ct,cssGetters:Ut,getStyle:to,generators:lo},to.apply=Ro=>({theme:Vo})=>to(ee({theme:Vo},Ro)),to},ie=(Vn,ct,Ut)=>{const lo=L(Vn.theme,"__variants"),to=B(Vn,lo);let Ro={};for(const Vo in ct){const os=Ut(ct[Vo]);if(os===null)continue;const Jo=Vo in to?to[Vo]:Vo;Jo!==void 0&&(Jo===null?Ro=(0,n.h1)(Ro,os):Ro[Jo]=Ro[Jo]?(0,n.kp)(Ro[Jo],os):os)}return Ro},ge=(Vn,ct,Ut)=>lo=>{const to=Us=>(0,n.is)(Us)?(0,n.WL)(Us)?ie(lo,Us,to):(0,n.DJ)(ct(Ut?Ut(Us)(lo):Us),lo):null,Ro=lo[Vn];if(!(0,n.is)(Ro))return null;const Vo=L(lo.theme,Vn),os=(0,n.WL)(Ro)?JSON.stringify(Ro):Ro;if(Vo.has(os))return Vo.get(os);const Jo=to(Ro);return Vo.set(os,Jo),Jo},re=(Vn,ct)=>{for(const Ut in ct){const lo=ct[Ut],to=Vn[lo];to&&(delete Vn[lo],Vn[lo]=to)}return Vn};function ve(...Vn){var ct;const Ut={},lo=[],to={},Ro=os=>{if(!os||!os.meta)return;const Jo=os.meta.props;for(let Us=0;Us<Jo.length;Us++){const Rs=Jo[Us];Ut[Rs]=os,lo.push(Rs)}Object.assign(to,os.meta.cssGetters)};for(let os=0;os<Vn.length;os++){const Jo=Vn[os];if((0,n.R8)(Boolean(Jo),'Undefined generator in "compose" method'),!Jo)continue;const Us=(ct=Jo.meta)==null?void 0:ct.generators;if(Us)for(let Rs=0;Rs<Us.length;Rs++)Ro(Us[Rs]);else Ro(Jo)}return oe({getStyle:(os,Jo=!0)=>{const Us={};let Rs=!1;for(const Li in os){const ma=Ut[Li];if(ma){const fi=ma.meta.getStyle(os,!1);(0,n.h1)(Us,fi),Rs=!0}}if(!Rs||!Jo)return Us;const Mi=B(os,L(os.theme,"__states"));return re(Us,Mi)},props:lo,cssGetters:to,generators:Vn})}const Be=Vn=>ct=>{if((0,n.Yj)(Vn))return{[Vn]:ct};const Ut={};if(!Vn)return Ut;for(let lo=0;lo<Vn.length;lo++)Ut[Vn[lo]]=ct;return Ut},Ke=Vn=>(0,n.Pc)(Vn)?Vn:Be(Vn),Xe=Vn=>Vn.replace(/[A-Z]/g,"-$&").toLowerCase(),fe=({prop:Vn,css:ct,themeGet:Ut,key:lo,transform:to,cssProps:Ro})=>{const Vo=Ut||(lo||to?pe({key:lo,transform:to}):void 0),os=Ro||((0,n.Yj)(ct)?[ct]:Array.isArray(ct)?ct:(0,n.Yj)(Vn)?[Vn]:Array.isArray(Vn)?Vn:[]);if(Array.isArray(Vn)){const Li=ct&&Ke(ct),ma=Vn.map(fi=>fe({prop:fi,css:Li,cssProps:os,themeGet:Vo}));return ve(...ma)}const Jo=[Vn],Us=Ke(ct||Jo),Rs=ge(Vn,Us,Vo),Mi={};if(Vo)for(let Li=0;Li<os.length;Li++)Mi[Xe(os[Li])]=Vo;return ve(oe({getStyle:Rs,props:Jo,cssGetters:Mi}))},ce=pe({name:"px",transform:(Vn,{props:ct})=>{var Ut,lo,to;const Ro=(to=(lo=(Ut=ct?.theme)==null?void 0:Ut.settings)==null?void 0:lo.rootFontSize)!=null?to:void 0,Vo=Number(Vn);return a(g(Number.isNaN(Vo)?Vn:Vo,{rootFontSize:Ro}))}}),Ce=pe({name:"duration",key:"durations",transform:Vn=>{const ct=Number(Vn);return d(Number.isNaN(ct)?Vn:ct)}}),Ne=pe({name:"angle",transform:Vn=>{const ct=Number(Vn);return c(Number.isNaN(ct)?Vn:ct)}}),Pe=pe({name:"percent",compose:ce,transform:b}),Ve=pe({name:"transition",key:"transitions"}),ze=pe({name:"transitionProperty",key:"transitionProperties"}),nn=pe({name:"timingFunction",key:"timingFunctions"}),qe=fe({prop:"transition",themeGet:Ve}),hn=fe({prop:"transitionProperty",themeGet:ze}),Fe=fe({prop:"transitionDuration",themeGet:Ce}),ue=fe({prop:"transitionTimingFunction",themeGet:nn}),je=fe({prop:"transitionDelay",themeGet:Ce}),He=ve(qe,hn,Fe,ue,je),en=pe({name:"animation",key:"animations"}),gn=fe({prop:"animation",themeGet:en}),De=fe({prop:"animationDuration",themeGet:Ce}),$e=fe({prop:"animationTimingFunction",themeGet:nn}),Ze=ve(gn,De,$e),an=pe({name:"color",key:"colors"}),Me={"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))"},Ee=fe({prop:"background",css:Vn=>({background:Me[Vn]||Vn})}),On=fe({prop:["backgroundColor","bg"],css:"backgroundColor",themeGet:an}),Ln=fe({prop:"backgroundImage",css:Vn=>({backgroundImage:Me[Vn]||Vn})}),Je=fe({prop:"backgroundSize"}),yn=fe({prop:"backgroundPosition"}),Tn=fe({prop:"backgroundRepeat"}),rt=fe({prop:"backgroundAttachment"}),bt=fe({prop:"backgroundClip",css:["backgroundClip","-webkitBackgroundClip"]}),V=fe({prop:"gradientFrom",themeGet:an,css:Vn=>({"--x-gradient-from":Vn,"--x-gradient-stops":"var(--x-gradient-from), var(--x-gradient-to, transparent)"})}),q=fe({prop:"gradientVia",themeGet:an,css:Vn=>({"--x-gradient-stops":`var(--x-gradient-from), ${Vn}, var(--x-gradient-to, transparent)`})}),ne=fe({prop:"gradientTo",themeGet:an,css:"--x-gradient-to"}),le=ve(Ee,On,Ln,Je,yn,Tn,rt,bt,V,q,ne),xe=pe({name:"border",key:"borders",transform:Vn=>{const ct=Number(Vn);return ct>0?`${a(ct)} solid`:Vn}}),pn=pe({name:"borderWidth",key:"borderWidths",compose:ce,shorthand:!0}),kn=pe({name:"borderColor",compose:an,shorthand:!0}),Rn=pe({name:"borderStyle",key:"borderStyles"}),Pt=fe({prop:"border",themeGet:xe}),zt=fe({prop:"borderTop",themeGet:xe}),ir=fe({prop:"borderRight",themeGet:xe}),pr=fe({prop:"borderBottom",themeGet:xe}),st=fe({prop:"borderLeft",themeGet:xe}),mn=fe({prop:"borderColor",themeGet:kn}),Mn=fe({prop:"borderTopColor",themeGet:an}),_n=fe({prop:"borderRightColor",themeGet:an}),fn=fe({prop:"borderBottomColor",themeGet:an}),jt=fe({prop:"borderLeftColor",themeGet:an}),Tt=fe({prop:"borderWidth",themeGet:pn}),Mt=fe({prop:"borderTopWidth",themeGet:pn}),Yt=fe({prop:"borderRightWidth",themeGet:pn}),hr=fe({prop:"borderBottomWidth",themeGet:pn}),Hn=fe({prop:"borderLeftWidth",themeGet:pn}),$n=fe({prop:"borderStyle",themeGet:Rn,cssProps:["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]}),Yn=fe({prop:"borderTopStyle",themeGet:Rn}),Xn=fe({prop:"borderRightStyle",themeGet:Rn}),ut=fe({prop:"borderBottomStyle",themeGet:Rn}),We=fe({prop:"borderLeftStyle",themeGet:Rn}),sn=fe({prop:"outline",themeGet:xe}),An=fe({prop:"outlineColor",themeGet:an}),Jn=fe({prop:"outlineWidth",themeGet:pn}),lt=fe({prop:"outlineStyle",themeGet:Rn}),C=fe({prop:"outlineOffset",themeGet:pn}),X=pe({name:"radius",key:"radii",compose:ce,shorthand:!0}),Se=fe({prop:"borderRadius",themeGet:X,cssProps:["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]}),Ge="& > :not([hidden]) ~ :not([hidden])",de=fe({prop:"divideY",themeGet:pn,css:Vn=>{const ct=Vn===!0?1:Vn;return{[Ge]:{"--x-divide-y-reverse":0,borderTopWidth:`calc(${ct} * calc(1 - var(--x-divide-y-reverse)))`,borderBottomWidth:`calc(${ct} * var(--x-divide-y-reverse))`}}}}),Ie=fe({prop:"divideX",themeGet:pn,css:Vn=>{const ct=Vn===!0?1:Vn;return{[Ge]:{"--x-divide-x-reverse":0,borderRightWidth:`calc(${ct} * var(--x-divide-x-reverse))`,borderLeftWidth:`calc(${ct} * calc(1 - var(--x-divide-x-reverse)))`}}}}),Te=fe({prop:"divideXReverse",css:()=>({[Ge]:{"--x-divide-x-reverse":"1"}})}),ln=fe({prop:"divideYReverse",css:()=>({[Ge]:{"--x-divide-y-reverse":"1"}})}),Pn=fe({prop:"divideColor",themeGet:an,css:Vn=>({[Ge]:{borderColor:Vn}})}),jn=fe({prop:"divideStyle",themeGet:Rn,css:Vn=>({[Ge]:{borderStyle:Vn}})}),Wn=pe({name:"ringWidth",key:"ringWidths",compose:ce}),Qn=fe({prop:"ring",themeGet:Wn,css:Vn=>({"--x-ring-shadow":`var(--x-ring-inset, /*!*/ /*!*/) 0 0 0 ${Vn} var(--x-ring-color)`,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow, 0 0 #0000)"})}),gt=fe({prop:"ringInset",css:()=>({"--x-ring-inset":"inset"})}),Bt=fe({prop:"ringColor",themeGet:an,css:Vn=>({"--x-ring-color":Vn})}),It=ve(Pt,zt,ir,pr,st,mn,Mn,_n,fn,jt,Tt,Mt,Yt,hr,Hn,$n,Yn,Xn,ut,We,Se,sn,An,Jn,lt,C,Ie,de,Te,ln,Pn,jn,Qn,gt,Bt),ar=pe({name:"shadow",key:"shadows",multiple:!0}),yr=fe({prop:"opacity"}),gr=fe({prop:"boxShadow",themeGet:ar,css:Vn=>({"--x-shadow":Vn,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow)"})}),br=fe({prop:"textShadow",themeGet:ar}),$r=ve(yr,gr,br);var lr=Object.defineProperty,Ar=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,Oe=(Vn,ct,Ut)=>ct in Vn?lr(Vn,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[ct]=Ut,Le=(Vn,ct)=>{for(var Ut in ct||(ct={}))zr.call(ct,Ut)&&Oe(Vn,Ut,ct[Ut]);if(Ar)for(var Ut of Ar(ct))Tr.call(ct,Ut)&&Oe(Vn,Ut,ct[Ut]);return Vn};const dn=fe({prop:"row",css:()=>({boxSizing:"border-box",flexGrow:1,flexWrap:"wrap",display:"flex"})}),un=(Vn,ct)=>{if(!(0,n.is)(ct))return null;if(ct===!0)return{flexBasis:0,flexGrow:1,maxWidth:"100%"};if(ct==="auto")return{flex:"0 0 auto",maxWidth:"none",width:"auto"};const Ut=Pe(ct)(Vn);return{flex:`0 0 ${Ut}`,maxWidth:Ut}},In=oe({getStyle:Vn=>{const ct=Vn.col,Ut={boxSizing:"border-box",flexBasis:0,flexGrow:1,maxWidth:"100%"};if((0,n.WL)(ct)){const lo=ie(Vn,ct,to=>un(Vn,to));return Le(Le({},Ut),lo)}return Le(Le({},Ut),un(Vn,ct))},props:["col"]}),zn=ve(dn,In);var Un=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,kt=(Vn,ct,Ut)=>ct in Vn?Un(Vn,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[ct]=Ut,qt=(Vn,ct)=>{for(var Ut in ct||(ct={}))tt.call(ct,Ut)&&kt(Vn,Ut,ct[Ut]);if(et)for(var Ut of et(ct))yt.call(ct,Ut)&&kt(Vn,Ut,ct[Ut]);return Vn};const sr=fe({prop:"display"}),wt=fe({prop:"float"}),mr=fe({prop:"boxSizing"}),fr=oe({getStyle:Vn=>{if(!Vn.container)return null;const ct=N(Vn);let Ut=ie(Vn,ct,lo=>lo!==0?{maxWidth:lo}:{});return(0,n.WL)(Vn.container)&&(Ut=ie(Vn,Vn.container,()=>Ut)),qt({width:"100%"},Ut)},props:["container"]}),wr=fe({prop:"overflow"}),no=fe({prop:"overflowX"}),Mr=fe({prop:"overflowY"}),Pr=pe({name:"zIndex",key:"zIndices"}),ur=fe({prop:"zIndex",themeGet:Pr}),fo=fe({prop:"position"}),co=pe({name:"inset",key:"inset",compose:ce,transform:v}),At=fe({prop:"top",themeGet:co}),so=fe({prop:"right",themeGet:co}),Do=fe({prop:"bottom",themeGet:co}),ko=fe({prop:"left",themeGet:co}),Dn=fe({prop:"visibility"}),Kn=fe({prop:"overscrollBehavior"}),ft=fe({prop:"objectFit"}),Jt=ve(mr,sr,wt,fr,wr,no,Mr,fo,ur,At,so,Do,ko,Dn,Kn,ft),cr=fe({prop:"alignItems"}),Sr=fe({prop:"alignContent"}),it=fe({prop:"justifyContent"}),wn=fe({prop:"justifyItems"}),Gn=fe({prop:"flexWrap"}),qn=fe({prop:"flexGrow"}),Ct=fe({prop:"flexShrink"}),er=fe({prop:"flexBasis",themeGet:Pe}),or=fe({prop:"flexDirection"}),Qr=fe({prop:"flex"}),Ir=fe({prop:"justifySelf"}),Qe=fe({prop:"alignSelf"}),we=fe({prop:"order"}),Re=ve(sr,cr,Sr,it,wn,Gn,er,Ct,qn,or,Qr,Ir,Qe,we),tn=pe({name:"space",key:"space",compose:ce,shorthand:!0,transform:v}),Sn=fe({prop:["margin","m"],themeGet:tn,css:"margin"}),Ft=fe({prop:["marginTop","mt"],themeGet:tn,css:"marginTop"}),mt=fe({prop:["marginRight","mr"],themeGet:tn,css:"marginRight"}),xt=fe({prop:["marginBottom","mb"],themeGet:tn,css:"marginBottom"}),Vt=fe({prop:["marginLeft","ml"],themeGet:tn,css:"marginLeft"}),Gt=fe({prop:"mx",themeGet:tn,css:["marginRight","marginLeft"]}),kr=fe({prop:"my",themeGet:tn,css:["marginTop","marginBottom"]}),Dr=fe({prop:["padding","p"],themeGet:tn,css:"padding"}),Kr=fe({prop:["paddingTop","pt"],themeGet:tn,css:"paddingTop"}),Jr=fe({prop:["paddingRight","pr"],themeGet:tn,css:"paddingRight"}),_o=fe({prop:["paddingBottom","pb"],themeGet:tn,css:"paddingBottom"}),Ao=fe({prop:["paddingLeft","pl"],themeGet:tn,css:"paddingLeft"}),jo=fe({prop:"px",themeGet:tn,css:["paddingRight","paddingLeft"]}),Wo=fe({prop:"py",themeGet:tn,css:["paddingTop","paddingBottom"]}),Go=fe({prop:"spaceY",themeGet:tn,css:Vn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":0,marginTop:`calc(${Vn} * calc(1 - var(--x-space-y-reverse)))`,marginBottom:`calc(${Vn} * var(--x-space-y-reverse))`}})}),Oo=fe({prop:"spaceX",themeGet:tn,css:Vn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":0,marginRight:`calc(${Vn} * var(--x-space-x-reverse))`,marginLeft:`calc(${Vn} * calc(1 - var(--x-space-x-reverse)))`}})}),yo=fe({prop:"spaceXReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":"1"}})}),wo=fe({prop:"spaceYReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":"1"}})}),Co=ve(Sn,Ft,mt,xt,Vt,Gt,kr,Dr,Kr,Jr,_o,Ao,jo,Wo,Oo,Go,yo,wo),Yo=fe({prop:"gap",themeGet:tn}),ss=fe({prop:"columnGap",themeGet:tn}),ms=fe({prop:"rowGap",themeGet:tn}),cs=fe({prop:"gridColumn"}),gs=fe({prop:"gridRow"}),yi=fe({prop:"gridAutoFlow"}),$s=fe({prop:"gridAutoColumns"}),bs=fe({prop:"gridAutoRows"}),qs=fe({prop:"gridTemplateColumns",key:"gridTemplateColumns"}),ke=fe({prop:"gridTemplateRows",key:"gridTemplateRows"}),Ue=fe({prop:"gridTemplateAreas"}),bn=fe({prop:"gridArea"}),xn=ve(Yo,ss,ms,cs,gs,yi,$s,bs,qs,ke,Ue,bn),ot=fe({prop:"appearance"}),ht=fe({prop:"cursor"}),Et=fe({prop:"pointerEvents"}),$t=fe({prop:"resize"}),jr=fe({prop:"userSelect"}),Rr=ve(ot,ht,Et,$t,jr),Er=pe({name:"size",key:"sizes",compose:Pe}),Yr=fe({prop:"w",themeGet:Er,css:"width"}),mo=fe({prop:"h",themeGet:Er,css:"height"}),Zn=fe({prop:["maxWidth","maxW"],themeGet:Er,css:"maxWidth"}),_t=fe({prop:["maxHeight","maxH"],themeGet:Er,css:"maxHeight"}),Lt=fe({prop:["minWidth","minW"],themeGet:Er,css:"minWidth"}),nr=fe({prop:["minHeight","minH"],themeGet:Er,css:"minHeight"}),Wt=fe({prop:"maskSize",themeGet:pe({name:"size",key:"sizes",compose:Pe,multiple:!0,shorthand:!0})}),vr=ve(Yr,mo,Zn,_t,Lt,nr,Wt),Nr=fe({prop:"fill",themeGet:an}),Wr=fe({prop:"stroke",themeGet:an}),qr=ve(Nr,Wr),Vr=fe({prop:"borderCollapse"}),ao=fe({prop:"tableLayout"}),Bo=ve(Vr,ao),Xo=pe({name:"transform",key:"transforms"}),vt=fe({prop:"transform",themeGet:Xo,css:Vn=>Vn===!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:Vn}}),Xt=fe({prop:"transformOrigin"}),Dt=fe({prop:"translateX",themeGet:tn,css:"--x-translate-x"}),Br=fe({prop:"translateY",themeGet:tn,css:"--x-translate-y"}),ho=fe({prop:"rotate",themeGet:Ne,css:"--x-rotate"}),Zo=fe({prop:"skewX",themeGet:Ne,css:"--x-skew-x"}),ps=fe({prop:"skewY",themeGet:Ne,css:"--x-skew-y"}),ns=fe({prop:"scale",transform:Vn=>String(Vn),css:["--x-scale-x","--x-scale-y"]}),ks=fe({prop:"scaleX",transform:Vn=>String(Vn),css:"--x-scale-x"}),Ks=fe({prop:"scaleY",transform:Vn=>String(Vn),css:"--x-scale-y"}),ws=ve(vt,Xt,Dt,Br,ho,Zo,ps,ns,ks,Ks);var _s=Object.defineProperty,Ds=Object.defineProperties,No=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,oo=Object.prototype.propertyIsEnumerable,as=(Vn,ct,Ut)=>ct in Vn?_s(Vn,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[ct]=Ut,si=(Vn,ct)=>{for(var Ut in ct||(ct={}))ai.call(ct,Ut)&&as(Vn,Ut,ct[Ut]);if(is)for(var Ut of is(ct))oo.call(ct,Ut)&&as(Vn,Ut,ct[Ut]);return Vn},li=(Vn,ct)=>Ds(Vn,No(ct));const sa=pe({name:"font",key:"fonts"}),za=pe({name:"lineHeight",key:"lineHeights",transform:(Vn,{props:ct})=>{var Ut,lo,to;const Ro=(to=(lo=(Ut=ct?.theme)==null?void 0:Ut.settings)==null?void 0:lo.rootFontSize)!=null?to:void 0;return g(Vn,{rootFontSize:Ro})}}),xi=pe({name:"fontWeight",key:"fontWeights"}),Ye=pe({name:"letterSpacing",key:"letterSpacings",compose:ce}),Ae=pe({name:"fontSize",key:"fontSizes",compose:ce}),rn=fe({prop:"fontFamily",themeGet:sa}),Cn=fe({prop:"fontSize",themeGet:Ae}),pt=fe({prop:"fontVariant"}),tr=fe({prop:"lineHeight",themeGet:za}),Zr=fe({prop:"fontWeight",themeGet:xi}),Fr=fe({prop:"fontStyle"}),Qt=fe({prop:"letterSpacing",themeGet:Ye}),_r=fe({prop:"color",themeGet:an}),Lo=fe({prop:"textTransform"}),Ho=fe({prop:"textDecoration"}),qo=fe({prop:"textAlign"}),ls=fe({prop:"verticalAlign"}),vi=fe({prop:"whiteSpace"}),ia=fe({prop:"textOverflow"}),aa=fe({prop:"listStyleType"}),Wa=fe({prop:"listStylePosition"}),pl=ve(Co,rn,Cn,Fr,pt,tr,Zr,qo,Qt,_r,Lo,Ho,ls,vi,ia,aa,Wa),va=fe({prop:"text",key:"texts",css:Vn=>({theme:ct})=>pl(li(si({},Vn),{theme:ct}))}),fl=ve(pl,va),la=ve(Ze,le,It,$r,zn,Re,xn,Rr,Jt,vr,Co,qr,Bo,ws,He,fl),Fs=(Vn,ct)=>Ut=>{const lo=(0,n.nv)(Ut,Vn);return(0,n.is)(lo)?lo:(0,n.is)(ct)?ct:Vn};[Ne,en,xe,kn,Rn,pn,an,Ce,sa,Ae,xi,co,Ye,za,Pe,ce,X,Wn,ar,Er,tn,nn,Xo,Ve,ze,Pr].forEach(Vn=>{Fs[Vn.meta.name]=Vn});const Ns=(Vn,ct)=>Ut=>{const lo=N(Ut),to=E(lo,Vn);return to===null?ct:[`${h(to)} {`,ct,"}"]},hl=(Vn,ct)=>Ut=>{const lo=N(Ut),to=P(lo,Vn);return to===null?null:[`${x(to)} {`,ct,"}"]},pd=(Vn,ct,Ut)=>lo=>{const to=N(lo),Ro=E(to,Vn),Vo=P(to,ct);return Vo===null?Ns(Vn,Ut)(lo):Ro===null?hl(ct,Ut)(lo):[`${j(Ro,Vo)} {`,Ut,"}"]},Sl=Vn=>ct=>{const Ut=[],lo=Object.keys(Vn),to=lo.length;for(let Ro=0;Ro<to;Ro++){const Vo=lo[Ro],os=Vn[Vo],Jo=Ns(Vo,os)(ct);Array.isArray(Jo)?Jo.forEach(Us=>Ut.push(Us)):Ut.push(Jo)}return Ut},io=null;var vo=Object.defineProperty,eo=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,So=(Vn,ct,Ut)=>ct in Vn?vo(Vn,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[ct]=Ut,Ss=(Vn,ct)=>{for(var Ut in ct||(ct={}))Fo.call(ct,Ut)&&So(Vn,Ut,ct[Ut]);if(eo)for(var Ut of eo(ct))bo.call(ct,Ut)&&So(Vn,Ut,ct[Ut]);return Vn};const di=[0,5,10,20,25,30,40,50,60,70,75,80,90,95,100],ei=(Vn,ct=di)=>{const Ut=(to,Ro)=>`${to}${Math.round(Ro/100*255).toString(16).padStart(2,"0")}`,lo=Object.keys(Vn).reduce((to,Ro)=>(ct.forEach(Vo=>{const os=Vn[Ro],Jo=`${Ro}-a${Vo}`;to[Jo]=(0,n.Yj)(os)?Ut(os,Vo):ei(os,ct)}),to),{});return Ss(Ss({},Vn),lo)},zs=null,Fi=(Vn,ct,Ut=zs,lo=di)=>Ut.reduce((to,Ro)=>(to[`${Vn}-${Ro}`]=Fs.color(`${ct}-${Ro}`),lo.forEach(Vo=>{to[`${Vn}-${Ro}-a${Vo}`]=Fs.color(`${ct}-${Ro}-a${Vo}`)}),to),{});var Ga=Object.defineProperty,Ra=Object.defineProperties,da=Object.getOwnPropertyDescriptors,ua=Object.getOwnPropertySymbols,Ti=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,En=(Vn,ct,Ut)=>ct in Vn?Ga(Vn,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[ct]=Ut,El=(Vn,ct)=>{for(var Ut in ct||(ct={}))Ti.call(ct,Ut)&&En(Vn,Ut,ct[Ut]);if(ua)for(var Ut of ua(ct))gl.call(ct,Ut)&&En(Vn,Ut,ct[Ut]);return Vn},ba=(Vn,ct)=>Ra(Vn,da(ct));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((Vn,ct)=>(Vn[ct]=Al[ct].map(Ut=>`${Ut} ${us["ease-in-out"]} 150ms`).join(","),Vn),{}),ca={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"},wi={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(wi).reduce((Vn,ct)=>(Vn[ct]={fontSize:ct,lineHeight:ct},Vn),{}),Gs={colors:ei(ca),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:ba(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:wi,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=Vn=>`