pcm-agents 0.6.11 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/error-event-J_ZWIqWF.js +33 -0
- package/dist/cjs/error-event-J_ZWIqWF.js.map +1 -0
- package/dist/cjs/{index-CvEfNyEj.js → index-CRlt8Nv6.js} +53 -3
- package/dist/cjs/index-CRlt8Nv6.js.map +1 -0
- package/dist/cjs/index-WNdOTXnX.js +11068 -0
- package/dist/cjs/index-WNdOTXnX.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/message.service-DGUsA-FY.js +135 -0
- package/dist/cjs/message.service-DGUsA-FY.js.map +1 -0
- package/dist/cjs/{pcm-1zhanshi-mnms-modal_17.cjs.entry.js → pcm-1zhanshi-mnms-modal_21.cjs.entry.js} +3276 -216
- package/dist/cjs/pcm-1zhanshi-mnms-modal_21.cjs.entry.js.map +1 -0
- package/dist/cjs/pcm-agents.cjs.js +4 -6
- package/dist/cjs/pcm-agents.cjs.js.map +1 -1
- package/dist/cjs/pcm-message.cjs.entry.js +3 -3
- package/dist/cjs/pcm-message.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-message.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-mnms-video-modal.cjs.entry.js +8 -8
- package/dist/cjs/pcm-mnms-video-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-mnms-video-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-mnms-zp-modal.cjs.entry.js +29 -86
- package/dist/cjs/pcm-mnms-zp-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-mnms-zp-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/{sentry-reporter-BWFtw_aT.js → sentry-reporter-tpI4WdkE.js} +12 -40
- package/dist/cjs/sentry-reporter-tpI4WdkE.js.map +1 -0
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/pcm-1zhanshi-mnms-modal/pcm-1zhanshi-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.css +986 -986
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +7 -9
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-button/pcm-button.css +199 -199
- package/dist/collection/components/pcm-button/pcm-button.js +6 -6
- package/dist/collection/components/pcm-button/pcm-button.js.map +1 -1
- package/dist/collection/components/pcm-card/pcm-card.css +259 -259
- package/dist/collection/components/pcm-card/pcm-card.js +1 -1
- package/dist/collection/components/pcm-card/pcm-card.js.map +1 -1
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.css +554 -554
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +3 -3
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +1 -1
- package/dist/collection/components/pcm-drawer/pcm-drawer.css +102 -102
- package/dist/collection/components/pcm-drawer/pcm-drawer.js +1 -1
- package/dist/collection/components/pcm-drawer/pcm-drawer.js.map +1 -1
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.css +854 -854
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +5 -7
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.css +95 -95
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +1 -1
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js +2 -2
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js.map +1 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.css +312 -312
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js +1 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js.map +1 -1
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js +2 -2
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -1
- package/dist/collection/components/pcm-message/pcm-message.css +64 -64
- package/dist/collection/components/pcm-message/pcm-message.js +2 -2
- package/dist/collection/components/pcm-message/pcm-message.js.map +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.css +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js +2 -2
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +67 -84
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-video-modal/pcm-mnms-video-modal.js +2 -2
- package/dist/collection/components/pcm-mnms-video-modal/pcm-mnms-video-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js +67 -84
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.css +140 -0
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js +307 -0
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js.map +1 -0
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js +25 -0
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js.map +1 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.css +127 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js +350 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js.map +1 -0
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js +25 -0
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js.map +1 -0
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js +2 -2
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js.map +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.css +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js +2 -2
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js.map +1 -1
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.css +0 -0
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.js +106 -0
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.js.map +1 -0
- package/dist/collection/components/pcm-upload/pcm-upload.css +0 -0
- package/dist/collection/components/pcm-upload/pcm-upload.js +408 -0
- package/dist/collection/components/pcm-upload/pcm-upload.js.map +1 -0
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.css +969 -969
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js +3 -5
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.css +68 -68
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +4 -4
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
- package/dist/collection/global/global.css +401 -398
- package/dist/collection/global/markdown.css +1233 -1233
- package/dist/collection/global/message.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interfaces/chat.js.map +1 -1
- package/dist/collection/interfaces/events.js.map +1 -1
- package/dist/collection/services/message.service.js.map +1 -1
- package/dist/collection/utils/env.js +3 -0
- package/dist/collection/utils/env.js.map +1 -1
- package/dist/collection/utils/error-event.js.map +1 -1
- package/dist/collection/utils/init.js.map +1 -1
- package/dist/collection/utils/sentry-reporter.js.map +1 -1
- package/dist/collection/utils/utils.js +48 -24
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +3 -5482
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-AYWZDCn8.js → p-B0WOTw9J.js} +51 -4
- package/dist/components/p-B0WOTw9J.js.map +1 -0
- package/dist/components/{p-DUQ46MUh.js → p-BGXbWUJg.js} +3 -3
- package/dist/components/{p-DUQ46MUh.js.map → p-BGXbWUJg.js.map} +1 -1
- package/dist/{esm/sentry-reporter-BFBS363a.js → components/p-BW3r6Lrf.js} +5 -32
- package/dist/components/p-BW3r6Lrf.js.map +1 -0
- package/dist/{esm/app-globals-Chti62re.js → components/p-BdiUKin5.js} +9619 -4296
- package/dist/components/p-BdiUKin5.js.map +1 -0
- package/dist/components/{p-FjtoYPVY.js → p-BywzltXy.js} +10 -9
- package/dist/components/p-BywzltXy.js.map +1 -0
- package/dist/components/p-C2OsjtRx.js +208 -0
- package/dist/components/p-C2OsjtRx.js.map +1 -0
- package/dist/components/{p-D2Z8casl.js → p-CuIvbaWY.js} +5 -5
- package/dist/components/p-CuIvbaWY.js.map +1 -0
- package/dist/components/p-D0ZMoyH8.js +251 -0
- package/dist/components/p-D0ZMoyH8.js.map +1 -0
- package/dist/components/{p-CjbFHLT7.js → p-De3VHEUn.js} +7 -71
- package/dist/components/p-De3VHEUn.js.map +1 -0
- package/dist/components/p-Dv8qvK0w.js +2646 -0
- package/dist/components/p-Dv8qvK0w.js.map +1 -0
- package/dist/components/p-RD3mwuBX.js +226 -0
- package/dist/components/p-RD3mwuBX.js.map +1 -0
- package/dist/components/p-njngFX_n.js +80 -0
- package/dist/components/p-njngFX_n.js.map +1 -0
- package/dist/components/pcm-1zhanshi-mnms-modal.js +7 -7
- package/dist/components/pcm-1zhanshi-mnms-modal.js.map +1 -1
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-button.js +2 -2
- package/dist/components/pcm-button.js.map +1 -1
- package/dist/components/pcm-card.js +3 -3
- package/dist/components/pcm-card.js.map +1 -1
- package/dist/components/pcm-chat-message.js +1 -1
- package/dist/components/pcm-drawer.js +1 -1
- package/dist/components/pcm-hr-chat-modal.js +5 -4
- package/dist/components/pcm-hr-chat-modal.js.map +1 -1
- package/dist/components/pcm-htws-modal.js +8 -7
- package/dist/components/pcm-htws-modal.js.map +1 -1
- package/dist/components/pcm-hyzj-modal.js +8 -7
- package/dist/components/pcm-hyzj-modal.js.map +1 -1
- package/dist/components/pcm-jd-modal.js +8 -7
- package/dist/components/pcm-jd-modal.js.map +1 -1
- package/dist/components/pcm-jlpp-modal.js +8 -7
- package/dist/components/pcm-jlpp-modal.js.map +1 -1
- package/dist/components/pcm-message.js +3 -3
- package/dist/components/pcm-message.js.map +1 -1
- package/dist/components/pcm-mnct-modal.js +8 -7
- package/dist/components/pcm-mnct-modal.js.map +1 -1
- package/dist/components/pcm-mnms-modal.js +60 -90
- package/dist/components/pcm-mnms-modal.js.map +1 -1
- package/dist/components/pcm-mnms-video-modal.js +8 -7
- package/dist/components/pcm-mnms-video-modal.js.map +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +60 -90
- package/dist/components/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/components/pcm-mobile-input-btn.d.ts +11 -0
- package/dist/components/pcm-mobile-input-btn.js +9 -0
- package/dist/components/pcm-mobile-input-btn.js.map +1 -0
- package/dist/components/pcm-mobile-upload-btn.d.ts +11 -0
- package/dist/components/pcm-mobile-upload-btn.js +9 -0
- package/dist/components/pcm-mobile-upload-btn.js.map +1 -0
- package/dist/components/pcm-msbg-modal.js +8 -7
- package/dist/components/pcm-msbg-modal.js.map +1 -1
- package/dist/components/pcm-qgqjl-modal.js +8 -7
- package/dist/components/pcm-qgqjl-modal.js.map +1 -1
- package/dist/components/pcm-time-count-down.d.ts +11 -0
- package/dist/components/pcm-time-count-down.js +9 -0
- package/dist/components/pcm-time-count-down.js.map +1 -0
- package/dist/components/pcm-upload.d.ts +11 -0
- package/dist/components/pcm-upload.js +9 -0
- package/dist/components/pcm-upload.js.map +1 -0
- package/dist/components/pcm-zsk-chat-modal.js +4 -4
- package/dist/components/pcm-zsk-chat-modal.js.map +1 -1
- package/dist/components/pcm-zygh-modal.js +8 -7
- package/dist/components/pcm-zygh-modal.js.map +1 -1
- package/dist/esm/error-event-C0FYX2-Z.js +31 -0
- package/dist/esm/error-event-C0FYX2-Z.js.map +1 -0
- package/dist/esm/{index-GyOE8SlD.js → index-BnNqOUZf.js} +51 -4
- package/dist/esm/index-BnNqOUZf.js.map +1 -0
- package/dist/esm/index-BuVfV0zo.js +11035 -0
- package/dist/esm/index-BuVfV0zo.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/message.service-DXVhHj6-.js +133 -0
- package/dist/esm/message.service-DXVhHj6-.js.map +1 -0
- package/dist/esm/{pcm-1zhanshi-mnms-modal_17.entry.js → pcm-1zhanshi-mnms-modal_21.entry.js} +3225 -169
- package/dist/esm/pcm-1zhanshi-mnms-modal_21.entry.js.map +1 -0
- package/dist/esm/pcm-agents.js +4 -6
- package/dist/esm/pcm-agents.js.map +1 -1
- package/dist/esm/pcm-message.entry.js +3 -3
- package/dist/esm/pcm-message.entry.js.map +1 -1
- package/dist/esm/pcm-mnms-video-modal.entry.js +5 -5
- package/dist/esm/pcm-mnms-video-modal.entry.js.map +1 -1
- package/dist/esm/pcm-mnms-zp-modal.entry.js +28 -85
- package/dist/esm/pcm-mnms-zp-modal.entry.js.map +1 -1
- package/dist/esm/sentry-reporter-CYzy4_8O.js +70 -0
- package/dist/esm/sentry-reporter-CYzy4_8O.js.map +1 -0
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/loader.esm.js.map +1 -1
- package/dist/pcm-agents/p-18a06873.entry.js +2 -0
- package/dist/pcm-agents/p-18a06873.entry.js.map +1 -0
- package/dist/pcm-agents/p-47e2e1d0.entry.js +2 -0
- package/dist/pcm-agents/p-47e2e1d0.entry.js.map +1 -0
- package/dist/pcm-agents/{p-3608c0c6.entry.js → p-7a582f00.entry.js} +2 -2
- package/dist/pcm-agents/p-7a582f00.entry.js.map +1 -0
- package/dist/pcm-agents/p-BhFnI70g.js +2 -0
- package/dist/pcm-agents/p-BhFnI70g.js.map +1 -0
- package/dist/pcm-agents/p-BuVfV0zo.js +3 -0
- package/dist/pcm-agents/p-BuVfV0zo.js.map +1 -0
- package/dist/pcm-agents/p-C0FYX2-Z.js +2 -0
- package/dist/pcm-agents/p-C0FYX2-Z.js.map +1 -0
- package/dist/pcm-agents/p-DXVhHj6-.js +2 -0
- package/dist/pcm-agents/p-DXVhHj6-.js.map +1 -0
- package/dist/pcm-agents/p-DkeaAFic.js +2 -0
- package/dist/pcm-agents/p-DkeaAFic.js.map +1 -0
- package/dist/pcm-agents/p-f5f96853.entry.js +245 -0
- package/dist/pcm-agents/p-f5f96853.entry.js.map +1 -0
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-message.entry.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-mnms-video-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-mnms-zp-modal.entry.esm.js.map +1 -1
- package/dist/store/auth.store.js.map +1 -1
- package/dist/store/config.store.js.map +1 -1
- package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +9 -4
- package/dist/types/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.d.ts +9 -4
- package/dist/types/components/pcm-mobile-input-btn/pcm-mobile-input-btn.d.ts +36 -0
- package/dist/types/components/pcm-mobile-input-btn/uploadNumberSDK.d.ts +9 -0
- package/dist/types/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.d.ts +44 -0
- package/dist/types/components/pcm-mobile-upload-btn/uploadNumberSDK.d.ts +9 -0
- package/dist/types/components/pcm-time-count-down/pcm-time-count-down.d.ts +15 -0
- package/dist/types/components/pcm-upload/pcm-upload.d.ts +54 -0
- package/dist/types/components/pcm-upload/type.d.ts +4 -0
- package/dist/types/components.d.ts +798 -30
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/env.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +30 -12
- package/package.json +70 -69
- package/dist/cjs/app-globals-BIO4q6tX.js +0 -5487
- package/dist/cjs/app-globals-BIO4q6tX.js.map +0 -1
- package/dist/cjs/exports-Dc-pQh4A.js +0 -4087
- package/dist/cjs/exports-Dc-pQh4A.js.map +0 -1
- package/dist/cjs/index-C_qhED9Z.js +0 -1538
- package/dist/cjs/index-C_qhED9Z.js.map +0 -1
- package/dist/cjs/index-CvEfNyEj.js.map +0 -1
- package/dist/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js.map +0 -1
- package/dist/cjs/sentry-reporter-BWFtw_aT.js.map +0 -1
- package/dist/components/p-75J0r72D.js +0 -4017
- package/dist/components/p-75J0r72D.js.map +0 -1
- package/dist/components/p-AYWZDCn8.js.map +0 -1
- package/dist/components/p-CR7WLzmM.js +0 -1303
- package/dist/components/p-CR7WLzmM.js.map +0 -1
- package/dist/components/p-CjbFHLT7.js.map +0 -1
- package/dist/components/p-D2Z8casl.js.map +0 -1
- package/dist/components/p-FjtoYPVY.js.map +0 -1
- package/dist/esm/app-globals-Chti62re.js.map +0 -1
- package/dist/esm/exports-Bs-zO1WZ.js +0 -4017
- package/dist/esm/exports-Bs-zO1WZ.js.map +0 -1
- package/dist/esm/index-Bq0K-WqZ.js +0 -1528
- package/dist/esm/index-Bq0K-WqZ.js.map +0 -1
- package/dist/esm/index-GyOE8SlD.js.map +0 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js.map +0 -1
- package/dist/esm/sentry-reporter-BFBS363a.js.map +0 -1
- package/dist/pcm-agents/p-2Gpw8rvH.js +0 -2
- package/dist/pcm-agents/p-2Gpw8rvH.js.map +0 -1
- package/dist/pcm-agents/p-3608c0c6.entry.js.map +0 -1
- package/dist/pcm-agents/p-60d7a0b0.entry.js +0 -2
- package/dist/pcm-agents/p-60d7a0b0.entry.js.map +0 -1
- package/dist/pcm-agents/p-9e6efc2d.entry.js +0 -2
- package/dist/pcm-agents/p-9e6efc2d.entry.js.map +0 -1
- package/dist/pcm-agents/p-BUV0S8Cc.js +0 -2
- package/dist/pcm-agents/p-BUV0S8Cc.js.map +0 -1
- package/dist/pcm-agents/p-Bq0K-WqZ.js +0 -3
- package/dist/pcm-agents/p-Bq0K-WqZ.js.map +0 -1
- package/dist/pcm-agents/p-Bs-zO1WZ.js +0 -2
- package/dist/pcm-agents/p-Bs-zO1WZ.js.map +0 -1
- package/dist/pcm-agents/p-CeRTfvY9.js +0 -2
- package/dist/pcm-agents/p-CeRTfvY9.js.map +0 -1
- package/dist/pcm-agents/p-e6c87a78.entry.js +0 -2
- package/dist/pcm-agents/p-e6c87a78.entry.js.map +0 -1
- /package/dist/types/{code/agents-sdk → Users/debugksir/Documents/pcm/sdk}/packages/pcm-agents/.stencil/store/auth.store.d.ts +0 -0
- /package/dist/types/{code/agents-sdk → Users/debugksir/Documents/pcm/sdk}/packages/pcm-agents/.stencil/store/config.store.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pcmMnmsVideoModalCss","globalCss","MnmsVideoModal","modalTitle","token","isOpen","modalClosed","icon","zIndex","isShowHeader","isNeedClose","conversationId","defaultQuery","fullscreen","customInputs","uploadSuccess","streamComplete","conversationStart","interviewComplete","tokenInvalid","someErrorEvent","filePreviewMode","recordingError","showCopyButton","showFeedbackButtons","selectedFile","isUploading","uploadedFileInfo","showChatModal","jobDescription","isSubmitting","tokenInvalidListener","removeErrorListener","handleTokenChange","newToken","authStore","getToken","setToken","handleIsOpenChange","newValue","this","clearSelectedFile","job_info","verifyApiKey","file_url","resume_content","componentWillLoad","configStore","setItem","emit","ErrorEventBus","addErrorListener","errorDetail","document","addEventListener","disconnectedCallback","removeEventListener","handleClose","handleFileChange","event","input","target","files","length","handleUploadClick","fileInput","hostElement","shadowRoot","querySelector","click","value","uploadFile","result","uploadFileToBackend","tags","error","console","SentryReporter","captureError","action","component","title","emitError","message","handleJobDescriptionChange","textarea","handleStartInterview","async","hideResumeUpload","Boolean","trim","alert","render","modalStyle","String","containerClass","overlayClass","isLoading","hideJdInput","hasFileAndJob","h","class","style","src","alt","onClick","htmlFor","id","placeholder","rows","onInput","name","e","stopPropagation","disabled","href","rel","type","onChange","botId","enableTTS","cos_key","file_name","interviewMode"],"sources":["src/components/pcm-mnms-video-modal/pcm-mnms-video-modal.css?tag=pcm-mnms-video-modal&encapsulation=shadow","src/global/global.css?tag=pcm-mnms-video-modal&encapsulation=shadow","src/components/pcm-mnms-video-modal/pcm-mnms-video-modal.tsx"],"sourcesContent":[null,":host {\n font-size: 16px;\n}\n\n/* 模态框基础样式 */\n.modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n overflow-y: auto;\n padding: 20px;\n}\n\n/* 全屏模式下的overlay样式 - 改为基于父组件 */\n.fullscreen-overlay {\n padding: 0;\n background-color: rgba(0, 0, 0, 0.7);\n /* 改为基于父组件的全屏 */\n position: absolute;\n width: 100%;\n height: calc(100% - 10px);\n}\n\n.modal-container {\n background-color: #fff;\n border-radius: 8px;\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n margin: auto;\n transition: all 0.3s ease-out;\n overflow: hidden;\n}\n\n/* 全屏模式样式 - 改为基于父组件 */\n.modal-container.fullscreen {\n width: 100%;\n max-width: none;\n height: 100%;\n border-radius: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n max-height: 100%;\n}\n\n/* PC端布局 */\n.pc-layout {\n width: 80%;\n max-width: 600px;\n min-width: 320px;\n}\n\n/* 响应式布局 */\n@media screen and (max-width: 768px) {\n .pc-layout {\n width: 95%;\n }\n\n .modal-overlay {\n padding: 10px 0px 0px 0px;\n }\n\n .modal-container.fullscreen {\n /* 移动端也基于父组件尺寸 */\n width: 100%;\n height: 100%;\n max-height: 100%;\n border-radius: 16px 16px 0 0;\n /* 保留安全区域支持 */\n padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);\n }\n}\n\n/* 模态框头部样式 */\n.modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 16px;\n height: 50px;\n border-bottom: 1px solid #e8e8e8;\n flex-shrink: 0;\n}\n\n.header-left {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n}\n\n.header-icon {\n width: 24px;\n height: 24px;\n}\n\n.close-button {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n\n.close-button:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.close-button span {\n font-size: 24px;\n line-height: 1;\n color: #999;\n}\n\n.close-button:hover span {\n color: #666;\n}\n\n\n/* 文件上传区域通用样式 */\n.upload-area {\n cursor: pointer;\n width: 100%;\n}\n\n\n.upload-placeholder {\n transition: all 0.3s ease;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: rgba(0, 0, 0, 0.02);\n border: 1px dashed #d9d9d9;\n border-radius: 8px;\n}\n\n.upload-placeholder:hover {\n border: 1px dashed #1890ff;\n}\n\n.upload-placeholder img {\n margin-top: 8px;\n width: 50px;\n height: 50px;\n}\n\n.upload-placeholder .upload-text {\n margin: 4px 0;\n color: #332F39;\n font-size: 14px;\n}\n\n.upload-placeholder .upload-hint {\n font-size: 14px;\n color: #949AA5;\n margin-top: 8px;\n padding: 0px 10px;\n text-align: center;\n}\n\n\n/* 文件项样式 */\n.file-item {\n position: relative;\n padding: 16px;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n transition: border-color 0.3s;\n cursor: pointer;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.file-item:hover {\n border-color: #0D75FB;\n}\n\n.file-item-content {\n display: flex;\n align-items: center;\n gap: 8px;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n}\n\n.file-icon {\n color: #0D75FB;\n flex-shrink: 0;\n}\n\n.file-name {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: calc(100% - 50px);\n}\n\n.remove-file {\n background: transparent;\n border: none;\n color: #94a3b8;\n cursor: pointer;\n font-size: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n margin-left: 8px;\n border-radius: 4px;\n transition: all 0.2s;\n min-width: 30px;\n min-height: 30px;\n}\n\n.remove-file:hover {\n background-color: #f1f5f9;\n color: #475569;\n}\n\n.file-input {\n display: none;\n}\n\n\n\n/* 输入容器样式 */\n.input-container {\n padding: 20px;\n display: flex;\n flex-direction: column;\n height: calc(100% - 50px);\n background: linear-gradient(150deg, #2a6ee933, #0000 50%) 0 0 / 400px 200px no-repeat, #fff;\n /* 减去header高度 */\n overflow-y: auto;\n}\n\n.input-container h3 {\n margin-top: 0;\n margin-bottom: 20px;\n font-size: 18px;\n color: #333;\n text-align: center;\n}\n\n/* JD输入区域样式 */\n.jd-input-section {\n margin-bottom: 20px;\n}\n\n.jd-input-section label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n}\n\n.job-description-textarea {\n width: calc(100% - 16px);\n border: 1px solid #ddd;\n border-radius: 4px;\n resize: vertical;\n font-family: inherit;\n font-size: 14px;\n line-height: 1.5;\n transition: border-color 0.3s;\n padding: 8px;\n}\n\n.job-description-textarea:focus {\n outline: none;\n border-color: #1890ff;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n/* 简历上传区域样式 */\n.resume-upload-section {\n margin-bottom: 20px;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.resume-upload-section label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n align-self: flex-start;\n}\n\n\n/* 提交按钮通用样式 */\n.submit-button {\n margin-top: 10px;\n padding: 10px 30px;\n background: #0D75FB;\n color: white;\n border: none;\n border-radius: 4px;\n font-size: 16px;\n cursor: pointer;\n transition: all 0.3s ease;\n width: 100%;\n max-width: 400px;\n align-self: center;\n}\n\n.submit-button:hover {\n background-color: #40a9ff;\n}\n\n.submit-button:disabled {\n background-color: rgba(0,0,0,0.04);\n color: rgba(0,0,0,0.25);\n cursor: not-allowed;\n}\n\n\n\n/* AI免责声明和备案信息样式 */\n.ai-disclaimer {\n margin-top: 16px;\n text-align: center;\n font-size: 12px;\n color: #999;\n line-height: 1.5;\n}\n\n.ai-disclaimer p {\n margin: 4px 0;\n}\n\n.beian-info {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: 4px;\n}\n\n.ai-disclaimer a {\n color: #666;\n text-decoration: none;\n transition: color 0.2s ease;\n}\n\n.ai-disclaimer a:hover {\n color: #1890ff;\n text-decoration: underline;\n}\n\n/* 添加加载状态的样式 */\n.loading-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 24px;\n }\n \n .loading-spinner {\n width: 40px;\n height: 40px;\n border: 4px solid rgba(0, 0, 0, 0.1);\n border-radius: 50%;\n border-top-color: var(--pcm-primary-color, #1890ff);\n animation: spin 1s linear infinite;\n margin-bottom: 16px;\n }\n \n .loading-text {\n font-size: 16px;\n color: var(--pcm-text-color, #333);\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n \n ","import { Component, Prop, h, State, Element, Event, EventEmitter, Watch } from '@stencil/core';\nimport { uploadFileToBackend, FileUploadResponse, verifyApiKey } from '../../utils/utils';\nimport {\n StreamCompleteEventData,\n ConversationStartEventData,\n InterviewCompleteEventData,\n RecordingErrorEventData,\n} from '../../interfaces/events';\nimport { ErrorEventBus, ErrorEventDetail } from '../../utils/error-event';\nimport { authStore } from '../../../store/auth.store';\nimport { configStore } from '../../../store/config.store';\nimport { SentryReporter } from '../../utils/sentry-reporter';\n\n/**\n * 模拟面试\n */\n\n@Component({\n tag: 'pcm-mnms-video-modal',\n styleUrls: ['pcm-mnms-video-modal.css', '../../global/global.css'],\n shadow: true,\n})\nexport class MnmsVideoModal {\n /**\n * 模态框标题\n */\n @Prop() modalTitle: string = '模拟面试';\n\n /**\n * SDK鉴权密钥\n */\n @Prop({ attribute: 'token' }) token!: string;\n\n /**\n * 是否显示聊天模态框\n */\n @Prop({ mutable: true }) isOpen: boolean = false;\n\n /**\n * 当点击模态框关闭时触发\n */\n @Event() modalClosed: EventEmitter<void>;\n\n /**\n * 应用图标URL\n */\n @Prop() icon?: string;\n\n /**\n * 聊天框的页面层级\n */\n @Prop() zIndex?: number = 1000;\n\n /**\n * 是否展示顶部标题栏\n */\n @Prop() isShowHeader: boolean = true;\n\n /**\n * 是否展示右上角的关闭按钮\n */\n @Prop() isNeedClose: boolean = true;\n\n /**\n * 会话ID,传入继续对话,否则创建新会话\n */\n @Prop({ mutable: true }) conversationId?: string;\n\n /**\n * 默认查询文本\n */\n @Prop() defaultQuery: string = '请开始模拟面试';\n\n /**\n * 是否以全屏模式打开,移动端建议设置为true\n */\n @Prop() fullscreen: boolean = false;\n\n /**\n * 自定义输入参数,传入customInputs.job_info时,会隐藏JD输入区域。<br>\n * 传入customInputs.file_url或customInputs.resume_content时,会隐藏简历上传区域。<br>\n * 传入customInputs.file_url(或customInputs.resume_content)和customInputs.job_info时,会直接开始聊天。<br>\n * customInputs.resume_content:可传入json字符串,或纯文本字符串,字符串内容为简历内容。<br>\n * customInputs.url_callback:可传入url字符串,当报告生成后,会调用该url进行回调。该url请使用post请求,接收报告字段为report_content,会话id字段为conversation_id。\n */\n @Prop() customInputs: Record<string, string> = {};\n\n\n /**\n * 上传成功事件\n */\n @Event() uploadSuccess: EventEmitter<FileUploadResponse>;\n\n /**\n * 流式输出完成事件\n */\n @Event() streamComplete: EventEmitter<StreamCompleteEventData>;\n\n /**\n * 新会话开始的回调,只会在一轮对话开始时触发一次\n */\n @Event() conversationStart: EventEmitter<ConversationStartEventData>;\n\n /**\n * 当聊天完成时触发\n */\n @Event() interviewComplete: EventEmitter<InterviewCompleteEventData>;\n\n /**\n * SDK密钥验证失败事件\n */\n @Event() tokenInvalid: EventEmitter<void>;\n\n /**\n * 错误事件\n */\n @Event() someErrorEvent: EventEmitter<ErrorEventDetail>;\n\n /**\n * 附件预览模式\n * 'drawer': 在右侧抽屉中预览\n * 'window': 在新窗口中打开\n */\n @Prop() filePreviewMode: 'drawer' | 'window' = 'window';\n\n\n /**\n * 录制错误事件\n */\n @Event() recordingError: EventEmitter<RecordingErrorEventData>;\n\n /**\n * 是否显示复制按钮\n */\n @Prop() showCopyButton: boolean = true;\n\n /**\n * 是否显示点赞点踩按钮\n */\n @Prop() showFeedbackButtons: boolean = true;\n\n\n @State() selectedFile: File | null = null;\n @State() isUploading: boolean = false;\n @State() uploadedFileInfo: FileUploadResponse | null = null;\n @State() showChatModal: boolean = false;\n\n // 使用 @Element 装饰器获取组件的 host 元素\n @Element() hostElement: HTMLElement;\n\n @State() jobDescription: string = '';\n @State() isSubmitting: boolean = false;\n\n private tokenInvalidListener: () => void;\n private removeErrorListener: () => void;\n\n @Watch('token')\n handleTokenChange(newToken: string) {\n // 当传入的 token 变化时,更新 authStore 中的 token\n if (newToken && newToken !== authStore.getToken()) {\n authStore.setToken(newToken);\n }\n }\n\n\n @Watch('isOpen')\n async handleIsOpenChange(newValue: boolean) {\n if (!newValue) {\n // 重置状态\n this.clearSelectedFile();\n this.showChatModal = false;\n this.jobDescription = '';\n\n } else {\n if (this.customInputs && this.customInputs.job_info) {\n this.jobDescription = this.customInputs.job_info;\n }\n\n await verifyApiKey(this.token);\n\n // 如果同时有 file_url 和 job_info,或者有会话ID,直接显示聊天模态框\n if (((this.customInputs?.file_url || this.customInputs?.resume_content) && this.customInputs?.job_info) || this.conversationId) {\n this.showChatModal = true;\n }\n }\n }\n\n\n componentWillLoad() {\n\n // 将 zIndex 存入配置缓存\n if (this.zIndex) {\n configStore.setItem('modal-zIndex', this.zIndex);\n }\n\n if (this.token) {\n authStore.setToken(this.token);\n }\n\n // 添加全局token无效事件监听器\n this.tokenInvalidListener = () => {\n this.tokenInvalid.emit();\n };\n\n // 添加全局错误监听\n this.removeErrorListener = ErrorEventBus.addErrorListener((errorDetail) => {\n this.someErrorEvent.emit(errorDetail);\n });\n\n document.addEventListener('pcm-token-invalid', this.tokenInvalidListener);\n }\n\n disconnectedCallback() {\n // 组件销毁时移除事件监听器\n document.removeEventListener('pcm-token-invalid', this.tokenInvalidListener);\n // 移除错误监听器\n if (this.removeErrorListener) {\n this.removeErrorListener();\n }\n }\n\n private handleClose = () => {\n this.modalClosed.emit();\n };\n\n private handleFileChange = (event: Event) => {\n const input = event.target as HTMLInputElement;\n if (input.files && input.files.length > 0) {\n this.selectedFile = input.files[0];\n }\n };\n\n private handleUploadClick = () => {\n const fileInput = this.hostElement.shadowRoot?.querySelector('.file-input') as HTMLInputElement;\n fileInput?.click();\n };\n\n private clearSelectedFile = () => {\n this.selectedFile = null;\n this.uploadedFileInfo = null;\n const fileInput = this.hostElement.shadowRoot?.querySelector('.file-input') as HTMLInputElement;\n if (fileInput) {\n fileInput.value = '';\n }\n };\n\n private async uploadFile() {\n if (!this.selectedFile) return;\n\n this.isUploading = true;\n\n try {\n // 使用 uploadFileToBackend 工具函数上传文件\n const result = await uploadFileToBackend(this.selectedFile, {\n }, {\n 'tags': ['resume']\n });\n\n this.uploadedFileInfo = result;\n this.uploadSuccess.emit(result);\n } catch (error) {\n console.error('文件上传错误:', error);\n this.clearSelectedFile();\n SentryReporter.captureError(error, {\n action: 'uploadFile',\n component: 'pcm-mnms-video-modal',\n title: '文件上传失败'\n });\n ErrorEventBus.emitError({\n error: error,\n message: '文件上传失败,请重试'\n });\n } finally {\n this.isUploading = false;\n }\n }\n\n private handleJobDescriptionChange = (event: Event) => {\n const textarea = event.target as HTMLTextAreaElement;\n this.jobDescription = textarea.value;\n };\n\n private handleStartInterview = async () => {\n // 判断是否隐藏简历上传区域\n const hideResumeUpload = Boolean(this.customInputs && (this.customInputs.file_url || this.customInputs.resume_content));\n\n\n // 如果没有预设的job_info,则需要检查用户输入\n if (!this.customInputs?.job_info && !this.jobDescription.trim()) {\n alert('请输入职位描述');\n return;\n }\n\n this.isSubmitting = true;\n\n try {\n // 如果需要上传文件且还没上传,先上传文件(简历为选填)\n if (!hideResumeUpload && this.selectedFile && !this.uploadedFileInfo) {\n await this.uploadFile();\n if (!this.uploadedFileInfo) {\n this.isSubmitting = false;\n return; // 上传失败\n }\n }\n\n // 直接显示聊天模态框\n this.showChatModal = true;\n } catch (error) {\n console.error('开始面试时出错:', error);\n SentryReporter.captureError(error, {\n action: 'handleStartInterview',\n component: 'pcm-mnms-video-modal',\n title: '开始面试时出错'\n });\n ErrorEventBus.emitError({\n error: error,\n message: '开始面试时出错,请重试'\n });\n } finally {\n this.isSubmitting = false;\n }\n };\n\n\n render() {\n if (!this.isOpen) return null;\n\n const modalStyle = {\n zIndex: String(this.zIndex)\n };\n\n\n const containerClass = {\n 'modal-container': true,\n 'fullscreen': this.fullscreen,\n 'pc-layout': true,\n };\n\n const overlayClass = {\n 'modal-overlay': true,\n 'fullscreen-overlay': this.fullscreen\n };\n\n // 显示加载状态\n const isLoading = this.conversationId && !this.showChatModal;\n\n // 修正这里的逻辑,确保当 customInputs.job_info 存在时,hideJdInput 为 true\n const hideJdInput = Boolean(this.customInputs && this.customInputs.job_info);\n \n // 判断是否隐藏简历上传区域 - 当有file_url或resume_content时都隐藏\n const hideResumeUpload = Boolean(this.customInputs && (this.customInputs.file_url || this.customInputs.resume_content));\n \n // 判断是否同时提供了(file_url或resume_content)和job_info\n const hasFileAndJob = Boolean((this.customInputs?.file_url || this.customInputs?.resume_content) && this.customInputs?.job_info);\n\n return (\n <div class={overlayClass} style={modalStyle}>\n <div class={containerClass}>\n {this.isShowHeader && (\n <div class=\"modal-header\">\n <div class=\"header-left\">\n {this.icon && <img src={this.icon} class=\"header-icon\" alt=\"应用图标\" />}\n <div>{this.modalTitle}</div>\n </div>\n {this.isNeedClose && (\n <button class=\"close-button\" onClick={this.handleClose}>\n <span>×</span>\n </button>\n )}\n </div>\n )}\n\n {/* 上传界面 - 仅在不显示聊天模态框且没有会话ID且没有同时提供file_url和job_info时显示 */}\n {!this.showChatModal && !this.conversationId && !hasFileAndJob && (\n <div class=\"input-container\">\n {/* JD输入区域 - 仅在没有parsedCustomInputs.job_info时显示 */}\n {!hideJdInput && (\n <div class=\"jd-input-section\">\n <label htmlFor=\"job-description\">请输入职位描述 (JD)</label>\n <textarea\n id=\"job-description\"\n class=\"job-description-textarea\"\n placeholder=\"请输入职位描述,包括职责、要求等信息...\"\n rows={6}\n value={this.jobDescription}\n onInput={this.handleJobDescriptionChange}\n ></textarea>\n </div>\n )}\n\n {/* 简历上传区域 - 仅在没有customInputs.file_url或customInputs.resume_content时显示 */}\n {!hideResumeUpload && (\n <div class=\"resume-upload-section\">\n <label>上传简历(选填)</label>\n <div class=\"upload-area\" onClick={this.handleUploadClick}>\n {this.selectedFile ? (\n <div class=\"file-item\">\n <div class=\"file-item-content\">\n <span class=\"file-icon\">📝</span>\n <span class=\"file-name\">{this.selectedFile.name}</span>\n </div>\n <button class=\"remove-file\" onClick={(e) => {\n e.stopPropagation();\n this.clearSelectedFile();\n }}>×</button>\n </div>\n ) : (\n <div class=\"upload-placeholder\">\n <img src='https://pub.pincaimao.com/static/web/images/home/i_upload.png'></img>\n <p class='upload-text'>点击上传简历</p>\n <p class=\"upload-hint\">支持 txt、markdown、pdf、docx、doc、md 格式</p>\n </div>\n )}\n </div>\n </div>\n )}\n\n <button\n class=\"submit-button\"\n disabled={(!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting}\n onClick={this.handleStartInterview}\n >\n {this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'}\n </button>\n\n <div class=\"ai-disclaimer\">\n <p>所有内容均由AI生成仅供参考</p>\n <p class=\"beian-info\">\n <span>中央网信办生成式人工智能服务备案号</span>:\n <a href=\"https://www.pincaimao.com\" target=\"_blank\" rel=\"noopener noreferrer\">Hunan-PinCaiMao-202412310003</a>\n </p>\n </div>\n\n <input\n type=\"file\"\n class=\"file-input\"\n onChange={this.handleFileChange}\n />\n </div>\n )}\n\n {/* 加载状态 - 在有会话ID但聊天模态框尚未显示时展示 */}\n {isLoading && (\n <div class=\"loading-container\">\n <div class=\"loading-spinner\"></div>\n <p class=\"loading-text\">正在加载对话...</p>\n </div>\n )}\n\n {/* 聊天界面 - 在显示聊天模态框时显示 */}\n {this.showChatModal && (\n <div >\n <pcm-app-chat-modal\n isOpen={true}\n modalTitle={this.modalTitle}\n icon={this.icon}\n isShowHeader={this.isShowHeader}\n isNeedClose={this.isShowHeader}\n fullscreen={this.fullscreen}\n botId=\"47686077653323776\"\n conversationId={this.conversationId}\n defaultQuery={this.defaultQuery}\n enableTTS={false}\n filePreviewMode={this.filePreviewMode}\n showCopyButton={this.showCopyButton}\n showFeedbackButtons={this.showFeedbackButtons}\n customInputs={this.conversationId ? {} : {\n ...this.customInputs,\n file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,\n file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,\n job_info: this.customInputs?.job_info || this.jobDescription,\n resume_content: this.customInputs?.resume_content\n }}\n interviewMode='video'\n ></pcm-app-chat-modal>\n </div>\n )}\n </div>\n </div>\n );\n }\n} "],"mappings":"0LAAA,MAAMA,EAAuB,GCA7B,MAAMC,EAAY,63J,MCsBLC,EAAc,M,iYAIfC,WAAqB,OAKCC,MAKLC,OAAkB,MAKlCC,YAKDC,KAKAC,OAAkB,IAKlBC,aAAwB,KAKxBC,YAAuB,KAKNC,eAKjBC,aAAuB,UAKvBC,WAAsB,MAStBC,aAAuC,GAMtCC,cAKAC,eAKAC,kBAKAC,kBAKAC,aAKAC,eAODC,gBAAuC,SAMtCC,eAKDC,eAA0B,KAK1BC,oBAA+B,KAG9BC,aAA4B,KAC5BC,YAAuB,MACvBC,iBAA8C,KAC9CC,cAAyB,M,iCAKzBC,eAAyB,GACzBC,aAAwB,MAEzBC,qBACAC,oBAGR,iBAAAC,CAAkBC,GAEd,GAAIA,GAAYA,IAAaC,EAAUC,WAAY,CAC/CD,EAAUE,SAASH,E,EAM3B,wBAAMI,CAAmBC,GACrB,IAAKA,EAAU,CAEXC,KAAKC,oBACLD,KAAKZ,cAAgB,MACrBY,KAAKX,eAAiB,E,KAEnB,CACH,GAAIW,KAAK1B,cAAgB0B,KAAK1B,aAAa4B,SAAU,CACjDF,KAAKX,eAAiBW,KAAK1B,aAAa4B,Q,OAGtCC,EAAaH,KAAKpC,OAGxB,IAAMoC,KAAK1B,cAAc8B,UAAYJ,KAAK1B,cAAc+B,iBAAmBL,KAAK1B,cAAc4B,UAAaF,KAAK7B,eAAgB,CAC5H6B,KAAKZ,cAAgB,I,GAMjC,iBAAAkB,GAGI,GAAIN,KAAKhC,OAAQ,CACbuC,EAAYC,QAAQ,eAAgBR,KAAKhC,O,CAG7C,GAAIgC,KAAKpC,MAAO,CACZ+B,EAAUE,SAASG,KAAKpC,M,CAI5BoC,KAAKT,qBAAuB,KACxBS,KAAKrB,aAAa8B,MAAM,EAI5BT,KAAKR,oBAAsBkB,EAAcC,kBAAkBC,IACvDZ,KAAKpB,eAAe6B,KAAKG,EAAY,IAGzCC,SAASC,iBAAiB,oBAAqBd,KAAKT,qB,CAGxD,oBAAAwB,GAEIF,SAASG,oBAAoB,oBAAqBhB,KAAKT,sBAEvD,GAAIS,KAAKR,oBAAqB,CAC1BQ,KAAKR,qB,EAILyB,YAAc,KAClBjB,KAAKlC,YAAY2C,MAAM,EAGnBS,iBAAoBC,IACxB,MAAMC,EAAQD,EAAME,OACpB,GAAID,EAAME,OAASF,EAAME,MAAMC,OAAS,EAAG,CACvCvB,KAAKf,aAAemC,EAAME,MAAM,E,GAIhCE,kBAAoB,KACxB,MAAMC,EAAYzB,KAAK0B,YAAYC,YAAYC,cAAc,eAC7DH,GAAWI,OAAO,EAGd5B,kBAAoB,KACxBD,KAAKf,aAAe,KACpBe,KAAKb,iBAAmB,KACxB,MAAMsC,EAAYzB,KAAK0B,YAAYC,YAAYC,cAAc,eAC7D,GAAIH,EAAW,CACXA,EAAUK,MAAQ,E,GAIlB,gBAAMC,GACV,IAAK/B,KAAKf,aAAc,OAExBe,KAAKd,YAAc,KAEnB,IAEI,MAAM8C,QAAeC,EAAoBjC,KAAKf,aAAc,GACzD,CACCiD,KAAQ,CAAC,YAGblC,KAAKb,iBAAmB6C,EACxBhC,KAAKzB,cAAckC,KAAKuB,E,CAC1B,MAAOG,GACLC,QAAQD,MAAM,UAAWA,GACzBnC,KAAKC,oBACLoC,EAAeC,aAAaH,EAAO,CAC/BI,OAAQ,aACRC,UAAW,uBACXC,MAAO,WAEX/B,EAAcgC,UAAU,CACpBP,MAAOA,EACPQ,QAAS,c,SAGb3C,KAAKd,YAAc,K,EAInB0D,2BAA8BzB,IAClC,MAAM0B,EAAW1B,EAAME,OACvBrB,KAAKX,eAAiBwD,EAASf,KAAK,EAGhCgB,qBAAuBC,UAE5B,MAAMC,EAAmBC,QAAQjD,KAAK1B,eAAiB0B,KAAK1B,aAAa8B,UAAYJ,KAAK1B,aAAa+B,iBAItG,IAAKL,KAAK1B,cAAc4B,WAAaF,KAAKX,eAAe6D,OAAQ,CAC7DC,MAAM,WACN,M,CAGJnD,KAAKV,aAAe,KAEpB,IAEI,IAAK0D,GAAoBhD,KAAKf,eAAiBe,KAAKb,iBAAkB,OAC5Da,KAAK+B,aACX,IAAK/B,KAAKb,iBAAkB,CACxBa,KAAKV,aAAe,MACpB,M,EAKRU,KAAKZ,cAAgB,I,CACvB,MAAO+C,GACLC,QAAQD,MAAM,WAAYA,GAC1BE,EAAeC,aAAaH,EAAO,CAC/BI,OAAQ,uBACRC,UAAW,uBACXC,MAAO,YAEX/B,EAAcgC,UAAU,CACpBP,MAAOA,EACPQ,QAAS,e,SAGb3C,KAAKV,aAAe,K,GAK5B,MAAA8D,GACI,IAAKpD,KAAKnC,OAAQ,OAAO,KAEzB,MAAMwF,EAAa,CACfrF,OAAQsF,OAAOtD,KAAKhC,SAIxB,MAAMuF,EAAiB,CACnB,kBAAmB,KACnBlF,WAAc2B,KAAK3B,WACnB,YAAa,MAGjB,MAAMmF,EAAe,CACjB,gBAAiB,KACjB,qBAAsBxD,KAAK3B,YAI/B,MAAMoF,EAAYzD,KAAK7B,iBAAmB6B,KAAKZ,cAG/C,MAAMsE,EAAcT,QAAQjD,KAAK1B,cAAgB0B,KAAK1B,aAAa4B,UAGnE,MAAM8C,EAAmBC,QAAQjD,KAAK1B,eAAiB0B,KAAK1B,aAAa8B,UAAYJ,KAAK1B,aAAa+B,iBAGvG,MAAMsD,EAAgBV,SAASjD,KAAK1B,cAAc8B,UAAYJ,KAAK1B,cAAc+B,iBAAmBL,KAAK1B,cAAc4B,UAEvH,OACI0D,EAAA,OAAKC,MAAOL,EAAcM,MAAOT,GAC7BO,EAAK,OAAAC,MAAON,GACPvD,KAAK/B,cACF2F,EAAK,OAAAC,MAAM,gBACPD,EAAK,OAAAC,MAAM,eACN7D,KAAKjC,MAAQ6F,EAAK,OAAAG,IAAK/D,KAAKjC,KAAM8F,MAAM,cAAcG,IAAI,SAC3DJ,EAAA,WAAM5D,KAAKrC,aAEdqC,KAAK9B,aACF0F,EAAQ,UAAAC,MAAM,eAAeI,QAASjE,KAAKiB,aACvC2C,EAAc,oBAO5B5D,KAAKZ,gBAAkBY,KAAK7B,iBAAmBwF,GAC7CC,EAAK,OAAAC,MAAM,oBAELH,GACEE,EAAK,OAAAC,MAAM,oBACPD,EAAO,SAAAM,QAAQ,mBAAsC,gBACrDN,EAAA,YACIO,GAAG,kBACHN,MAAM,2BACNO,YAAY,wBACZC,KAAM,EACNvC,MAAO9B,KAAKX,eACZiF,QAAStE,KAAK4C,+BAMxBI,GACEY,EAAK,OAAAC,MAAM,yBACPD,EAAuB,yBACvBA,EAAK,OAAAC,MAAM,cAAcI,QAASjE,KAAKwB,mBAClCxB,KAAKf,aACF2E,EAAK,OAAAC,MAAM,aACPD,EAAK,OAAAC,MAAM,qBACPD,EAAM,QAAAC,MAAM,aAAqB,MACjCD,EAAM,QAAAC,MAAM,aAAa7D,KAAKf,aAAasF,OAE/CX,EAAQ,UAAAC,MAAM,cAAcI,QAAUO,IAClCA,EAAEC,kBACFzE,KAAKC,mBAAmB,GAC3B,MAGL2D,EAAA,OAAKC,MAAM,sBACPD,EAAK,OAAAG,IAAI,kEACTH,EAAG,KAAAC,MAAM,eAAwB,UACjCD,EAAG,KAAAC,MAAM,eAAa,yCAO1CD,EACI,UAAAC,MAAM,gBACNa,UAAYhB,IAAgB1D,KAAKX,eAAe6D,QAAWlD,KAAKd,aAAec,KAAKV,aACpF2E,QAASjE,KAAK8C,sBAEb9C,KAAKd,YAAc,SAAWc,KAAKV,aAAe,SAAW,QAGlEsE,EAAK,OAAAC,MAAM,iBACPD,EAAqB,2BACrBA,EAAG,KAAAC,MAAM,cACLD,EAA8B,qCAC9BA,EAAA,KAAGe,KAAK,4BAA4BtD,OAAO,SAASuD,IAAI,uBAAqB,kCAIrFhB,EAAA,SACIiB,KAAK,OACLhB,MAAM,aACNiB,SAAU9E,KAAKkB,oBAM1BuC,GACGG,EAAK,OAAAC,MAAM,qBACPD,EAAK,OAAAC,MAAM,oBACXD,EAAA,KAAGC,MAAM,gBAAc,cAK9B7D,KAAKZ,eACFwE,EAAA,WACIA,EAAA,sBACI/F,OAAQ,KACRF,WAAYqC,KAAKrC,WACjBI,KAAMiC,KAAKjC,KACXE,aAAc+B,KAAK/B,aACnBC,YAAa8B,KAAK/B,aAClBI,WAAY2B,KAAK3B,WACjB0G,MAAM,oBACN5G,eAAgB6B,KAAK7B,eACrBC,aAAc4B,KAAK5B,aACnB4G,UAAW,MACXnG,gBAAiBmB,KAAKnB,gBACtBE,eAAgBiB,KAAKjB,eACrBC,oBAAqBgB,KAAKhB,oBAC1BV,aAAc0B,KAAK7B,eAAiB,GAAK,IAClC6B,KAAK1B,aACR8B,SAAUJ,KAAK1B,cAAc8B,UAAYJ,KAAKb,kBAAkB8F,QAChEC,UAAWlF,KAAK1B,cAAc4G,WAAalF,KAAKb,kBAAkB+F,UAClEhF,SAAUF,KAAK1B,cAAc4B,UAAYF,KAAKX,eAC9CgB,eAAgBL,KAAK1B,cAAc+B,gBAEvC8E,cAAc,Y","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,f as s,h as t}from"./p-BuVfV0zo.js";const i=".pcm-message{position:fixed;top:20px;left:50%;transform:translateX(-50%) translateY(-100%);background-color:#fff;padding:10px 16px;border-radius:4px;box-shadow:0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);pointer-events:all;z-index:1010;opacity:0;transition:all 0.3s}.pcm-message-visible{transform:translateX(-50%) translateY(0);opacity:1}.pcm-message-content{display:flex;align-items:center}.pcm-message-icon{margin-right:8px;font-size:16px;line-height:1}.pcm-message-success .pcm-message-icon{color:#52c41a}.pcm-message-error .pcm-message-icon{color:#ff4d4f}.pcm-message-warning .pcm-message-icon{color:#faad14}.pcm-message-info .pcm-message-icon{color:#1890ff}.pcm-message-text{font-size:14px;line-height:1.5}.pcm-message-container{position:fixed;top:20px;left:0;width:100%;display:flex;flex-direction:column;align-items:center;pointer-events:none;z-index:1010}";const c=class{constructor(s){e(this,s)}get el(){return s(this)}content="";type="info";duration=3e3;visible=false;timer;componentWillLoad(){if(this.content){this.visible=true}}componentDidLoad(){if(this.visible&&this.duration>0){this.timer=window.setTimeout((()=>{this.close()}),this.duration)}}disconnectedCallback(){if(this.timer){clearTimeout(this.timer)}}async show(){this.visible=true;if(this.duration>0){this.timer=window.setTimeout((()=>{this.close()}),this.duration)}}async close(){this.visible=false;setTimeout((()=>{if(this.el&&this.el.parentNode){this.el.parentNode.removeChild(this.el)}}),300)}render(){return t("div",{key:"4e140d5ff29831e77ae020cfd77c5ac2a3de2372",class:{"pcm-message":true,"pcm-message-visible":this.visible,[`pcm-message-${this.type}`]:true}},t("div",{key:"13903fc68cdf658a0afb3380f0181b66c234c5f3",class:"pcm-message-content"},t("span",{key:"d9f5f1570b446024e0b2930c926ccf4a33ee3c5f",class:"pcm-message-icon"},this.renderIcon()),t("span",{key:"d203b980db890eae29af491f3fa588d4ea6a67a3",class:"pcm-message-text"},this.content)))}renderIcon(){switch(this.type){case"success":return t("svg",{viewBox:"64 64 896 896",width:"16px",height:"16px",fill:"currentColor"},t("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}));case"error":return t("svg",{viewBox:"64 64 896 896",width:"16px",height:"16px",fill:"currentColor"},t("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}));case"warning":return t("svg",{viewBox:"64 64 896 896",width:"16px",height:"16px",fill:"currentColor"},t("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}));default:return t("svg",{viewBox:"64 64 896 896",width:"16px",height:"16px",fill:"currentColor"},t("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 664c-30.9 0-56-25.1-56-56 0-30.9 25.1-56 56-56s56 25.1 56 56c0 30.9-25.1 56-56 56zm32-296c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V248c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184z"}))}}};c.style=i;export{c as pcm_message};
|
|
2
|
+
//# sourceMappingURL=p-7a582f00.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["pcmMessageCss","PcmMessage","content","type","duration","visible","timer","componentWillLoad","this","componentDidLoad","window","setTimeout","close","disconnectedCallback","clearTimeout","show","el","parentNode","removeChild","render","h","key","class","renderIcon","viewBox","width","height","fill","d"],"sources":["src/components/pcm-message/pcm-message.css?tag=pcm-message&encapsulation=shadow","src/components/pcm-message/pcm-message.tsx"],"sourcesContent":[".pcm-message {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%) translateY(-100%);\n background-color: #fff;\n padding: 10px 16px;\n border-radius: 4px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n pointer-events: all;\n z-index: 1010;\n opacity: 0;\n transition: all 0.3s;\n}\n\n.pcm-message-visible {\n transform: translateX(-50%) translateY(0);\n opacity: 1;\n}\n\n.pcm-message-content {\n display: flex;\n align-items: center;\n}\n\n.pcm-message-icon {\n margin-right: 8px;\n font-size: 16px;\n line-height: 1;\n}\n\n.pcm-message-success .pcm-message-icon {\n color: #52c41a;\n}\n\n.pcm-message-error .pcm-message-icon {\n color: #ff4d4f;\n}\n\n.pcm-message-warning .pcm-message-icon {\n color: #faad14;\n}\n\n.pcm-message-info .pcm-message-icon {\n color: #1890ff;\n}\n\n.pcm-message-text {\n font-size: 14px;\n line-height: 1.5;\n}\n\n.pcm-message-container {\n position: fixed;\n top: 20px;\n left: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n pointer-events: none;\n z-index: 1010;\n} \n\n","import { Component, h, Prop, State, Element, Method } from '@stencil/core';\n\n@Component({\n tag: 'pcm-message',\n styleUrl: 'pcm-message.css',\n shadow: true,\n})\nexport class PcmMessage {\n @Element() el: HTMLElement;\n @Prop() content: string = '';\n @Prop() type: 'success' | 'error' | 'info' | 'warning' = 'info';\n @Prop() duration: number = 3000;\n @State() visible: boolean = false;\n\n private timer: number;\n\n componentWillLoad() {\n if (this.content) {\n this.visible = true;\n }\n }\n\n componentDidLoad() {\n if (this.visible && this.duration > 0) {\n this.timer = window.setTimeout(() => {\n this.close();\n }, this.duration);\n }\n }\n\n disconnectedCallback() {\n if (this.timer) {\n clearTimeout(this.timer);\n }\n }\n\n @Method()\n async show() {\n this.visible = true;\n \n if (this.duration > 0) {\n this.timer = window.setTimeout(() => {\n this.close();\n }, this.duration);\n }\n }\n\n @Method()\n async close() {\n this.visible = false;\n \n // 等待动画结束后移除元素\n setTimeout(() => {\n if (this.el && this.el.parentNode) {\n this.el.parentNode.removeChild(this.el);\n }\n }, 300);\n }\n\n render() {\n return (\n <div class={{\n 'pcm-message': true,\n 'pcm-message-visible': this.visible,\n [`pcm-message-${this.type}`]: true\n }}>\n <div class=\"pcm-message-content\">\n <span class=\"pcm-message-icon\">\n {this.renderIcon()}\n </span>\n <span class=\"pcm-message-text\">{this.content}</span>\n </div>\n </div>\n );\n }\n\n private renderIcon() {\n switch (this.type) {\n case 'success':\n return <svg viewBox=\"64 64 896 896\" width=\"16px\" height=\"16px\" fill=\"currentColor\"><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z\"></path></svg>;\n case 'error':\n return <svg viewBox=\"64 64 896 896\" width=\"16px\" height=\"16px\" fill=\"currentColor\"><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z\"></path></svg>;\n case 'warning':\n return <svg viewBox=\"64 64 896 896\" width=\"16px\" height=\"16px\" fill=\"currentColor\"><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z\"></path></svg>;\n default: // info\n return <svg viewBox=\"64 64 896 896\" width=\"16px\" height=\"16px\" fill=\"currentColor\"><path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 664c-30.9 0-56-25.1-56-56 0-30.9 25.1-56 56-56s56 25.1 56 56c0 30.9-25.1 56-56 56zm32-296c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V248c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184z\"></path></svg>;\n }\n }\n} "],"mappings":"kDAAA,MAAMA,EAAgB,+5B,MCOTC,EAAU,M,iDAEbC,QAAkB,GAClBC,KAAiD,OACjDC,SAAmB,IAClBC,QAAmB,MAEpBC,MAER,iBAAAC,GACE,GAAIC,KAAKN,QAAS,CAChBM,KAAKH,QAAU,I,EAInB,gBAAAI,GACE,GAAID,KAAKH,SAAWG,KAAKJ,SAAW,EAAG,CACrCI,KAAKF,MAAQI,OAAOC,YAAW,KAC7BH,KAAKI,OAAO,GACXJ,KAAKJ,S,EAIZ,oBAAAS,GACE,GAAIL,KAAKF,MAAO,CACdQ,aAAaN,KAAKF,M,EAKtB,UAAMS,GACJP,KAAKH,QAAU,KAEf,GAAIG,KAAKJ,SAAW,EAAG,CACrBI,KAAKF,MAAQI,OAAOC,YAAW,KAC7BH,KAAKI,OAAO,GACXJ,KAAKJ,S,EAKZ,WAAMQ,GACJJ,KAAKH,QAAU,MAGfM,YAAW,KACT,GAAIH,KAAKQ,IAAMR,KAAKQ,GAAGC,WAAY,CACjCT,KAAKQ,GAAGC,WAAWC,YAAYV,KAAKQ,G,IAErC,I,CAGL,MAAAG,GACE,OACEC,EAAK,OAAAC,IAAA,2CAAAC,MAAO,CACV,cAAe,KACf,sBAAuBd,KAAKH,QAC5B,CAAC,eAAeG,KAAKL,QAAS,OAE9BiB,EAAK,OAAAC,IAAA,2CAAAC,MAAM,uBACTF,EAAM,QAAAC,IAAA,2CAAAC,MAAM,oBACTd,KAAKe,cAERH,EAAM,QAAAC,IAAA,2CAAAC,MAAM,oBAAoBd,KAAKN,U,CAMrC,UAAAqB,GACN,OAAQf,KAAKL,MACX,IAAK,UACH,OAAOiB,EAAK,OAAAI,QAAQ,gBAAgBC,MAAM,OAAOC,OAAO,OAAOC,KAAK,gBAAeP,EAAA,QAAMQ,EAAE,uRAC7F,IAAK,QACH,OAAOR,EAAK,OAAAI,QAAQ,gBAAgBC,MAAM,OAAOC,OAAO,OAAOC,KAAK,gBAAeP,EAAA,QAAMQ,EAAE,6WAC7F,IAAK,UACH,OAAOR,EAAK,OAAAI,QAAQ,gBAAgBC,MAAM,OAAOC,OAAO,OAAOC,KAAK,gBAAeP,EAAA,QAAMQ,EAAE,sOAC7F,QACE,OAAOR,EAAK,OAAAI,QAAQ,gBAAgBC,MAAM,OAAOC,OAAO,OAAOC,KAAK,gBAAeP,EAAA,QAAMQ,EAAE,wQ","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as t}from"./p-DkeaAFic.js";import{a as s,c as r,d as c,e}from"./p-BuVfV0zo.js";class o{static captureError(e,o){try{const a=t.getItem("pcm-sdk-CUser");if(a){s({id:String(a)})}let i=e;if(o?.title){i=new Error(o.title);if(e?.stack){i.stack=e.stack}i.cause=e}if(o){const{title:t,...s}=o;r("error_context",s)}c(i)}catch(t){console.error("Sentry 上报错误失败:",t)}}static captureMessage(c,o){try{const a=t.getItem("pcm-sdk-CUser");if(a){s({id:String(a)})}if(o){r("message_context",o)}e(c)}catch(t){console.error("Sentry 上报消息失败:",t)}}}export{o as S};
|
|
2
|
+
//# sourceMappingURL=p-BhFnI70g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-BhFnI70g.js","sources":["src/utils/sentry-reporter.ts"],"sourcesContent":["import * as Sentry from \"@sentry/browser\";\nimport { configStore } from \"../../store/config.store\";\n\n/**\n * Sentry事件上报工具类\n * 提供统一的错误上报接口,自动添加用户认证信息\n */\nexport class SentryReporter {\n\n /**\n * 捕获并上报错误\n * @param error 错误对象\n * @param context 错误上下文\n */\n static captureError(error: any, context?: Record<string, any> & { title?: string }): void {\n try {\n // 添加认证信息\n const CUser = configStore.getItem('pcm-sdk-CUser');\n if (CUser) {\n Sentry.setUser({ id: String(CUser) });\n }\n \n let finalError = error;\n \n // 如果提供了自定义标题,创建新的错误对象\n if (context?.title) {\n finalError = new Error(context.title);\n if (error?.stack) {\n finalError.stack = error.stack;\n }\n finalError.cause = error;\n }\n \n // 添加上下文\n if (context) {\n const { title, ...otherContext } = context;\n Sentry.setContext('error_context', otherContext);\n }\n \n // 上报错误\n Sentry.captureException(finalError);\n } catch (e) {\n console.error('Sentry 上报错误失败:', e);\n }\n }\n\n /**\n * 捕获并上报消息\n * @param message 消息内容\n * @param context 消息上下文\n */\n static captureMessage(message: string, context?: Record<string, any>): void {\n try {\n // 添加认证信息\n const CUser = configStore.getItem('pcm-sdk-CUser');\n if (CUser) {\n Sentry.setUser({ id: String(CUser) });\n }\n \n // 添加上下文\n if (context) {\n Sentry.setContext('message_context', context);\n }\n \n // 上报消息\n Sentry.captureMessage(message);\n } catch (e) {\n console.error('Sentry 上报消息失败:', e);\n }\n }\n\n}"],"names":["Sentry.setUser","Sentry.setContext","Sentry.captureException","Sentry.captureMessage"],"mappings":";;;AAGA;;;AAGG;MACU,cAAc,CAAA;AAEzB;;;;AAIG;AACH,IAAA,OAAO,YAAY,CAAC,KAAU,EAAE,OAAkD,EAAA;AAChF,QAAA,IAAI;;YAEF,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC;YAClD,IAAI,KAAK,EAAE;AACT,gBAAAA,OAAc,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;;YAGvC,IAAI,UAAU,GAAG,KAAK;;AAGtB,YAAA,IAAI,OAAO,EAAE,KAAK,EAAE;gBAClB,UAAU,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AACrC,gBAAA,IAAI,KAAK,EAAE,KAAK,EAAE;AAChB,oBAAA,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK;;AAEhC,gBAAA,UAAU,CAAC,KAAK,GAAG,KAAK;;;YAI1B,IAAI,OAAO,EAAE;gBACX,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,GAAG,OAAO;AAC1C,gBAAAC,UAAiB,CAAC,eAAe,EAAE,YAAY,CAAC;;;AAIlD,YAAAC,gBAAuB,CAAC,UAAU,CAAC;;QACnC,OAAO,CAAC,EAAE;AACV,YAAA,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;;;AAItC;;;;AAIG;AACH,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAA6B,EAAA;AAClE,QAAA,IAAI;;YAEF,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC;YAClD,IAAI,KAAK,EAAE;AACT,gBAAAF,OAAc,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;;;YAIvC,IAAI,OAAO,EAAE;AACX,gBAAAC,UAAiB,CAAC,iBAAiB,EAAE,OAAO,CAAC;;;AAI/C,YAAAE,cAAqB,CAAC,OAAO,CAAC;;QAC9B,OAAO,CAAC,EAAE;AACV,YAAA,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;;;AAIvC;;;;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const t="pcm-agents";const n={hydratedSelectorName:"hydrated",lazyLoad:true,updatable:true};const e=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const r="9.30.0";const i=globalThis;function o(){s(i);return i}function s(t){const n=t.__SENTRY__=t.__SENTRY__||{};n.version=n.version||r;return n[r]=n[r]||{}}function c(t,n,e=i){const o=e.__SENTRY__=e.__SENTRY__||{};const s=o[r]=o[r]||{};return s[t]||(s[t]=n())}const u=Object.prototype.toString;function f(t){switch(u.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return true;default:return S(t,Error)}}function a(t,n){return u.call(t)===`[object ${n}]`}function l(t){return a(t,"ErrorEvent")}function d(t){return a(t,"DOMError")}function h(t){return a(t,"DOMException")}function p(t){return a(t,"String")}function m(t){return typeof t==="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function y(t){return t===null||m(t)||typeof t!=="object"&&typeof t!=="function"}function v(t){return a(t,"Object")}function g(t){return typeof Event!=="undefined"&&S(t,Event)}function b(t){return typeof Element!=="undefined"&&S(t,Element)}function _(t){return a(t,"RegExp")}function w(t){return Boolean(t?.then&&typeof t.then==="function")}function E(t){return v(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function S(t,n){try{return t instanceof n}catch(t){return false}}function $(t){return!!(typeof t==="object"&&t!==null&&(t.__isVue||t._isVue))}function x(t){return typeof Request!=="undefined"&&S(t,Request)}const j=i;const k=80;function O(t,n={}){if(!t){return"<unknown>"}try{let e=t;const r=5;const i=[];let o=0;let s=0;const c=" > ";const u=c.length;let f;const a=Array.isArray(n)?n:n.keyAttrs;const l=!Array.isArray(n)&&n.maxStringLength||k;while(e&&o++<r){f=T(e,a);if(f==="html"||o>1&&s+i.length*u+f.length>=l){break}i.push(f);s+=f.length;e=e.parentNode}return i.reverse().join(c)}catch(t){return"<unknown>"}}function T(t,n){const e=t;const r=[];if(!e?.tagName){return""}if(j.HTMLElement){if(e instanceof HTMLElement&&e.dataset){if(e.dataset["sentryComponent"]){return e.dataset["sentryComponent"]}if(e.dataset["sentryElement"]){return e.dataset["sentryElement"]}}}r.push(e.tagName.toLowerCase());const i=n?.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(i?.length){i.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}))}else{if(e.id){r.push(`#${e.id}`)}const t=e.className;if(t&&p(t)){const n=t.split(/\s+/);for(const t of n){r.push(`.${t}`)}}}const o=["aria-label","type","name","title","alt"];for(const t of o){const n=e.getAttribute(t);if(n){r.push(`[${t}="${n}"]`)}}return r.join("")}function R(){try{return j.document.location.href}catch(t){return""}}function I(t){if(!j.HTMLElement){return null}let n=t;const e=5;for(let t=0;t<e;t++){if(!n){return null}if(n instanceof HTMLElement){if(n.dataset["sentryComponent"]){return n.dataset["sentryComponent"]}if(n.dataset["sentryElement"]){return n.dataset["sentryElement"]}}n=n.parentNode}return null}const N="Sentry Logger ";const D=["debug","info","warn","error","log","assert","trace"];const C={};function A(t){if(!("console"in i)){return t()}const n=i.console;const e={};const r=Object.keys(C);r.forEach((t=>{const r=C[t];e[t]=n[t];n[t]=r}));try{return t()}finally{r.forEach((t=>{n[t]=e[t]}))}}function M(){let t=false;const n={enable:()=>{t=true},disable:()=>{t=false},isEnabled:()=>t};if(e){D.forEach((e=>{n[e]=(...n)=>{if(t){A((()=>{i.console[e](`${N}[${e}]:`,...n)}))}}}))}else{D.forEach((t=>{n[t]=()=>undefined}))}return n}const L=c("logger",M);function P(t,n=0){if(typeof t!=="string"||n===0){return t}return t.length<=n?t:`${t.slice(0,n)}...`}function U(t,n){if(!Array.isArray(t)){return""}const e=[];for(let n=0;n<t.length;n++){const r=t[n];try{if($(r)){e.push("[VueViewModel]")}else{e.push(String(r))}}catch(t){e.push("[value cannot be serialized]")}}return e.join(n)}function B(t,n,e=false){if(!p(t)){return false}if(_(n)){return n.test(t)}if(p(n)){return e?t===n:t.includes(n)}return false}function F(t,n=[],e=false){return n.some((n=>B(t,n,e)))}function H(t,n,r){if(!(n in t)){return}const i=t[n];if(typeof i!=="function"){return}const o=r(i);if(typeof o==="function"){q(o,i)}try{t[n]=o}catch{e&&L.log(`Failed to replace method "${n}" in object`,t)}}function W(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:true,configurable:true})}catch(r){e&&L.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function q(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e;W(t,"__sentry_original__",n)}catch(t){}}function G(t){return t.__sentry_original__}function z(t){if(f(t)){return{message:t.message,name:t.name,stack:t.stack,...J(t)}}else if(g(t)){const n={type:t.type,target:Y(t.target),currentTarget:Y(t.currentTarget),...J(t)};if(typeof CustomEvent!=="undefined"&&S(t,CustomEvent)){n.detail=t.detail}return n}else{return t}}function Y(t){try{return b(t)?O(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function J(t){if(typeof t==="object"&&t!==null){const n={};for(const e in t){if(Object.prototype.hasOwnProperty.call(t,e)){n[e]=t[e]}}return n}else{return{}}}function V(t,n=40){const e=Object.keys(z(t));e.sort();const r=e[0];if(!r){return"[object has no keys]"}if(r.length>=n){return P(r,n)}for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(r.length>n){continue}if(t===e.length){return r}return P(r,n)}return""}function X(){const t=i;return t.crypto||t.msCrypto}function K(t=X()){let n=()=>Math.random()*16;try{if(t?.randomUUID){return t.randomUUID().replace(/-/g,"")}if(t?.getRandomValues){n=()=>{const n=new Uint8Array(1);t.getRandomValues(n);return n[0]}}}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(n()&15)>>t/4).toString(16)))}function Z(t){return t.exception?.values?.[0]}function Q(t){const{message:n,event_id:e}=t;if(n){return n}const r=Z(t);if(r){if(r.type&&r.value){return`${r.type}: ${r.value}`}return r.type||r.value||e||"<unknown>"}return e||"<unknown>"}function tt(t,n,e){const r=t.exception=t.exception||{};const i=r.values=r.values||[];const o=i[0]=i[0]||{};if(!o.value){o.value=n||""}if(!o.type){o.type="Error"}}function nt(t,n){const e=Z(t);if(!e){return}const r={type:"generic",handled:true};const i=e.mechanism;e.mechanism={...r,...i,...n};if(n&&"data"in n){const t={...i?.data,...n.data};e.mechanism.data=t}}function et(t){if(rt(t)){return true}try{W(t,"__sentry_captured__",true)}catch(t){}return false}function rt(t){try{return t.__sentry_captured__}catch{}}const it=1e3;function ot(){return Date.now()/it}function st(){const{performance:t}=i;if(!t?.now){return ot}const n=Date.now()-t.now();const e=t.timeOrigin==undefined?n:t.timeOrigin;return()=>(e+t.now())/it}const ct=st();function ut(t){const n=ct();const e={sid:K(),init:true,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>lt(e)};if(t){ft(e,t)}return e}function ft(t,n={}){if(n.user){if(!t.ipAddress&&n.user.ip_address){t.ipAddress=n.user.ip_address}if(!t.did&&!n.did){t.did=n.user.id||n.user.email||n.user.username}}t.timestamp=n.timestamp||ct();if(n.abnormal_mechanism){t.abnormal_mechanism=n.abnormal_mechanism}if(n.ignoreDuration){t.ignoreDuration=n.ignoreDuration}if(n.sid){t.sid=n.sid.length===32?n.sid:K()}if(n.init!==undefined){t.init=n.init}if(!t.did&&n.did){t.did=`${n.did}`}if(typeof n.started==="number"){t.started=n.started}if(t.ignoreDuration){t.duration=undefined}else if(typeof n.duration==="number"){t.duration=n.duration}else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}if(n.release){t.release=n.release}if(n.environment){t.environment=n.environment}if(!t.ipAddress&&n.ipAddress){t.ipAddress=n.ipAddress}if(!t.userAgent&&n.userAgent){t.userAgent=n.userAgent}if(typeof n.errors==="number"){t.errors=n.errors}if(n.status){t.status=n.status}}function at(t,n){let e={};if(t.status==="ok"){e={status:"exited"}}ft(t,e)}function lt(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did==="number"||typeof t.did==="string"?`${t.did}`:undefined,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function dt(t,n,e=2){if(!n||typeof n!=="object"||e<=0){return n}if(t&&Object.keys(n).length===0){return t}const r={...t};for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){r[t]=dt(r[t],n[t],e-1)}}return r}const ht="_sentrySpan";function pt(t,n){if(n){W(t,ht,n)}else{delete t[ht]}}function mt(t){return t[ht]}function yt(){return K()}function vt(){return K().substring(16)}const gt=100;class bt{constructor(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._attachments=[];this._user={};this._tags={};this._extra={};this._contexts={};this._sdkProcessingMetadata={};this._propagationContext={traceId:yt(),sampleRand:Math.random()}}clone(){const t=new bt;t._breadcrumbs=[...this._breadcrumbs];t._tags={...this._tags};t._extra={...this._extra};t._contexts={...this._contexts};if(this._contexts.flags){t._contexts.flags={values:[...this._contexts.flags.values]}}t._user=this._user;t._level=this._level;t._session=this._session;t._transactionName=this._transactionName;t._fingerprint=this._fingerprint;t._eventProcessors=[...this._eventProcessors];t._attachments=[...this._attachments];t._sdkProcessingMetadata={...this._sdkProcessingMetadata};t._propagationContext={...this._propagationContext};t._client=this._client;t._lastEventId=this._lastEventId;pt(t,mt(this));return t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){this._eventProcessors.push(t);return this}setUser(t){this._user=t||{email:undefined,id:undefined,ip_address:undefined,username:undefined};if(this._session){ft(this._session,{user:t})}this._notifyScopeListeners();return this}getUser(){return this._user}setTags(t){this._tags={...this._tags,...t};this._notifyScopeListeners();return this}setTag(t,n){this._tags={...this._tags,[t]:n};this._notifyScopeListeners();return this}setExtras(t){this._extra={...this._extra,...t};this._notifyScopeListeners();return this}setExtra(t,n){this._extra={...this._extra,[t]:n};this._notifyScopeListeners();return this}setFingerprint(t){this._fingerprint=t;this._notifyScopeListeners();return this}setLevel(t){this._level=t;this._notifyScopeListeners();return this}setTransactionName(t){this._transactionName=t;this._notifyScopeListeners();return this}setContext(t,n){if(n===null){delete this._contexts[t]}else{this._contexts[t]=n}this._notifyScopeListeners();return this}setSession(t){if(!t){delete this._session}else{this._session=t}this._notifyScopeListeners();return this}getSession(){return this._session}update(t){if(!t){return this}const n=typeof t==="function"?t(this):t;const e=n instanceof bt?n.getScopeData():v(n)?t:undefined;const{tags:r,extra:i,user:o,contexts:s,level:c,fingerprint:u=[],propagationContext:f}=e||{};this._tags={...this._tags,...r};this._extra={...this._extra,...i};this._contexts={...this._contexts,...s};if(o&&Object.keys(o).length){this._user=o}if(c){this._level=c}if(u.length){this._fingerprint=u}if(f){this._propagationContext=f}return this}clear(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._contexts={};this._level=undefined;this._transactionName=undefined;this._fingerprint=undefined;this._session=undefined;pt(this,undefined);this._attachments=[];this.setPropagationContext({traceId:yt(),sampleRand:Math.random()});this._notifyScopeListeners();return this}addBreadcrumb(t,n){const e=typeof n==="number"?n:gt;if(e<=0){return this}const r={timestamp:ot(),...t,message:t.message?P(t.message,2048):t.message};this._breadcrumbs.push(r);if(this._breadcrumbs.length>e){this._breadcrumbs=this._breadcrumbs.slice(-e);this._client?.recordDroppedEvent("buffer_overflow","log_item")}this._notifyScopeListeners();return this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){this._breadcrumbs=[];this._notifyScopeListeners();return this}addAttachment(t){this._attachments.push(t);return this}clearAttachments(){this._attachments=[];return this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:mt(this)}}setSDKProcessingMetadata(t){this._sdkProcessingMetadata=dt(this._sdkProcessingMetadata,t,2);return this}setPropagationContext(t){this._propagationContext=t;return this}getPropagationContext(){return this._propagationContext}captureException(t,n){const e=n?.event_id||K();if(!this._client){L.warn("No client configured on scope - will not capture exception!");return e}const r=new Error("Sentry syntheticException");this._client.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this);return e}captureMessage(t,n,e){const r=e?.event_id||K();if(!this._client){L.warn("No client configured on scope - will not capture message!");return r}const i=new Error(t);this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...e,event_id:r},this);return r}captureEvent(t,n){const e=n?.event_id||K();if(!this._client){L.warn("No client configured on scope - will not capture event!");return e}this._client.captureEvent(t,{...n,event_id:e},this);return e}_notifyScopeListeners(){if(!this._notifyingListeners){this._notifyingListeners=true;this._scopeListeners.forEach((t=>{t(this)}));this._notifyingListeners=false}}}function _t(){return c("defaultCurrentScope",(()=>new bt))}function wt(){return c("defaultIsolationScope",(()=>new bt))}class Et{constructor(t,n){let e;if(!t){e=new bt}else{e=t}let r;if(!n){r=new bt}else{r=n}this._stack=[{scope:e}];this._isolationScope=r}withScope(t){const n=this._pushScope();let e;try{e=t(n)}catch(t){this._popScope();throw t}if(w(e)){return e.then((t=>{this._popScope();return t}),(t=>{this._popScope();throw t}))}this._popScope();return e}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();this._stack.push({client:this.getClient(),scope:t});return t}_popScope(){if(this._stack.length<=1)return false;return!!this._stack.pop()}}function St(){const t=o();const n=s(t);return n.stack=n.stack||new Et(_t(),wt())}function $t(t){return St().withScope(t)}function xt(t,n){const e=St();return e.withScope((()=>{e.getStackTop().scope=t;return n(t)}))}function jt(t){return St().withScope((()=>t(St().getIsolationScope())))}function kt(){return{withIsolationScope:jt,withScope:$t,withSetScope:xt,withSetIsolationScope:(t,n)=>jt(n),getCurrentScope:()=>St().getScope(),getIsolationScope:()=>St().getIsolationScope()}}function Ot(t){const n=s(t);if(n.acs){return n.acs}return kt()}function Tt(){const t=o();const n=Ot(t);return n.getCurrentScope()}function Rt(){const t=o();const n=Ot(t);return n.getIsolationScope()}function It(){return c("globalScope",(()=>new bt))}function Nt(...t){const n=o();const e=Ot(n);if(t.length===2){const[n,r]=t;if(!n){return e.withScope(r)}return e.withSetScope(n,r)}return e.withScope(t[0])}function Dt(){return Tt().getClient()}function Ct(t){const n=t.getPropagationContext();const{traceId:e,parentSpanId:r,propagationSpanId:i}=n;const o={trace_id:e,span_id:i||vt()};if(r){o.parent_span_id=r}return o}const At="sentry.source";const Mt="sentry.sample_rate";const Lt="sentry.previous_trace_sample_rate";const Pt="sentry.op";const Ut="sentry.origin";const Bt="sentry.profile_id";const Ft="sentry.exclusive_time";const Ht=0;const Wt=1;const qt="_sentryScope";const Gt="_sentryIsolationScope";function zt(t){return{scope:t[qt],isolationScope:t[Gt]}}function Yt(t){if(typeof t==="boolean"){return Number(t)}const n=typeof t==="string"?parseFloat(t):t;if(typeof n!=="number"||isNaN(n)||n<0||n>1){return undefined}return n}const Jt="sentry-";const Vt=/^sentry-/;function Xt(t){const n=Kt(t);if(!n){return undefined}const e=Object.entries(n).reduce(((t,[n,e])=>{if(n.match(Vt)){const r=n.slice(Jt.length);t[r]=e}return t}),{});if(Object.keys(e).length>0){return e}else{return undefined}}function Kt(t){if(!t||!p(t)&&!Array.isArray(t)){return undefined}if(Array.isArray(t)){return t.reduce(((t,n)=>{const e=Zt(n);Object.entries(e).forEach((([n,e])=>{t[n]=e}));return t}),{})}return Zt(t)}function Zt(t){return t.split(",").map((t=>t.split("=").map((t=>{try{return decodeURIComponent(t.trim())}catch{return}})))).reduce(((t,[n,e])=>{if(n&&e){t[n]=e}return t}),{})}const Qt=1;let tn=false;function nn(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext();const i=r?n:sn(t).parent_span_id;const o=zt(t).scope;const s=r?o?.getPropagationContext().propagationSpanId||vt():n;return{parent_span_id:i,span_id:s,trace_id:e}}function en(t){if(t&&t.length>0){return t.map((({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:i})=>({span_id:t,trace_id:n,sampled:e===Qt,attributes:i,...r})))}else{return undefined}}function rn(t){if(typeof t==="number"){return on(t)}if(Array.isArray(t)){return t[0]+t[1]/1e9}if(t instanceof Date){return on(t.getTime())}return ct()}function on(t){const n=t>9999999999;return n?t/1e3:t}function sn(t){if(un(t)){return t.getSpanJSON()}const{spanId:n,traceId:e}=t.spanContext();if(cn(t)){const{attributes:r,startTime:i,name:o,endTime:s,status:c,links:u}=t;const f="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:undefined;return{span_id:n,trace_id:e,data:r,description:o,parent_span_id:f,start_timestamp:rn(i),timestamp:rn(s)||undefined,status:an(c),op:r[Pt],origin:r[Ut],links:en(u)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function cn(t){const n=t;return!!n.attributes&&!!n.startTime&&!!n.name&&!!n.endTime&&!!n.status}function un(t){return typeof t.getSpanJSON==="function"}function fn(t){const{traceFlags:n}=t.spanContext();return n===Qt}function an(t){if(!t||t.code===Ht){return undefined}if(t.code===Wt){return"ok"}return t.message||"unknown_error"}const ln="_sentryRootSpan";function dn(t){return t[ln]||t}function hn(){if(!tn){A((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}));tn=true}}const pn=50;const mn="?";const yn=/\(error: (.*)\)/;const vn=/captureMessage|captureException/;function gn(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0,r=0)=>{const i=[];const o=t.split("\n");for(let t=e;t<o.length;t++){const e=o[t];if(e.length>1024){continue}const s=yn.test(e)?e.replace(yn,"$1"):e;if(s.match(/\S*Error: /)){continue}for(const t of n){const n=t(s);if(n){i.push(n);break}}if(i.length>=pn+r){break}}return _n(i.slice(r))}}function bn(t){if(Array.isArray(t)){return gn(...t)}return t}function _n(t){if(!t.length){return[]}const n=Array.from(t);if(/sentryWrapped/.test(wn(n).function||"")){n.pop()}n.reverse();if(vn.test(wn(n).function||"")){n.pop();if(vn.test(wn(n).function||"")){n.pop()}}return n.slice(0,pn).map((t=>({...t,filename:t.filename||wn(n).filename,function:t.function||mn})))}function wn(t){return t[t.length-1]||{}}const En="<anonymous>";function Sn(t){try{if(!t||typeof t!=="function"){return En}return t.name||En}catch(t){return En}}function $n(t){const n=t.exception;if(n){const t=[];try{n.values.forEach((n=>{if(n.stacktrace.frames){t.push(...n.stacktrace.frames)}}));return t}catch(t){return undefined}}return undefined}const xn={};const jn={};function kn(t,n){xn[t]=xn[t]||[];xn[t].push(n)}function On(t,n){if(!jn[t]){jn[t]=true;try{n()}catch(n){e&&L.error(`Error while instrumenting ${t}`,n)}}}function Tn(t,n){const r=t&&xn[t];if(!r){return}for(const i of r){try{i(n)}catch(n){e&&L.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Sn(i)}\nError:`,n)}}}let Rn=null;function In(t){const n="error";kn(n,t);On(n,Nn)}function Nn(){Rn=i.onerror;i.onerror=function(t,n,e,r,i){const o={column:r,error:i,line:e,msg:t,url:n};Tn("error",o);if(Rn){return Rn.apply(this,arguments)}return false};i.onerror.__SENTRY_INSTRUMENTED__=true}let Dn=null;function Cn(t){const n="unhandledrejection";kn(n,t);On(n,An)}function An(){Dn=i.onunhandledrejection;i.onunhandledrejection=function(t){const n=t;Tn("unhandledrejection",n);if(Dn){return Dn.apply(this,arguments)}return true};i.onunhandledrejection.__SENTRY_INSTRUMENTED__=true}function Mn(t){if(typeof __SENTRY_TRACING__==="boolean"&&!__SENTRY_TRACING__){return false}const n=t||Dt()?.getOptions();return!!n&&(n.tracesSampleRate!=null||!!n.tracesSampler)}const Ln="production";const Pn=/^o(\d+)\./;const Un=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Bn(t){return t==="http"||t==="https"}function Fn(t,n=false){const{host:e,path:r,pass:i,port:o,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&i?`:${i}`:""}`+`@${e}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function Hn(t){const n=Un.exec(t);if(!n){A((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));return undefined}const[e,r,i="",o="",s="",c=""]=n.slice(1);let u="";let f=c;const a=f.split("/");if(a.length>1){u=a.slice(0,-1).join("/");f=a.pop()}if(f){const t=f.match(/^\d+/);if(t){f=t[0]}}return Wn({host:o,pass:i,path:u,projectId:f,port:s,protocol:e,publicKey:r})}function Wn(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function qn(t){if(!e){return true}const{port:n,projectId:r,protocol:i}=t;const o=["protocol","publicKey","host","projectId"];const s=o.find((n=>{if(!t[n]){L.error(`Invalid Sentry Dsn: ${n} missing`);return true}return false}));if(s){return false}if(!r.match(/^\d+$/)){L.error(`Invalid Sentry Dsn: Invalid projectId ${r}`);return false}if(!Bn(i)){L.error(`Invalid Sentry Dsn: Invalid protocol ${i}`);return false}if(n&&isNaN(parseInt(n,10))){L.error(`Invalid Sentry Dsn: Invalid port ${n}`);return false}return true}function Gn(t){const n=t.match(Pn);return n?.[1]}function zn(t){const n=typeof t==="string"?Hn(t):Wn(t);if(!n||!qn(n)){return undefined}return n}const Yn="_frozenDsc";function Jn(t,n){const e=n.getOptions();const{publicKey:r,host:i}=n.getDsn()||{};let o;if(e.orgId){o=String(e.orgId)}else if(i){o=Gn(i)}const s={environment:e.environment||Ln,release:e.release,public_key:r,trace_id:t,org_id:o};n.emit("createDsc",s);return s}function Vn(t,n){const e=n.getPropagationContext();return e.dsc||Jn(e.traceId,t)}function Xn(t){const n=Dt();if(!n){return{}}const e=dn(t);const r=sn(e);const i=r.data;const o=e.spanContext().traceState;const s=o?.get("sentry.sample_rate")??i[Mt]??i[Lt];function c(t){if(typeof s==="number"||typeof s==="string"){t.sample_rate=`${s}`}return t}const u=e[Yn];if(u){return c(u)}const f=o?.get("sentry.dsc");const a=f&&Xt(f);if(a){return c(a)}const l=Jn(t.spanContext().traceId,n);const d=i[At];const h=r.description;if(d!=="url"&&h){l.transaction=h}if(Mn()){l.sampled=String(fn(e));l.sample_rand=o?.get("sentry.sample_rand")??zt(e).scope?.getPropagationContext().sampleRand.toString()}c(l);n.emit("createDsc",l,e);return l}function Kn(t,n=100,e=+Infinity){try{return Qn("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Zn(t,n=3,e=100*1024){const r=Kn(t,n);if(re(r)>e){return Zn(t,n-1,e)}return r}function Qn(t,n,e=+Infinity,r=+Infinity,i=ie()){const[o,s]=i;if(n==null||["boolean","string"].includes(typeof n)||typeof n==="number"&&Number.isFinite(n)){return n}const c=te(t,n);if(!c.startsWith("[object ")){return c}if(n["__sentry_skip_normalization__"]){return n}const u=typeof n["__sentry_override_normalization_depth__"]==="number"?n["__sentry_override_normalization_depth__"]:e;if(u===0){return c.replace("object ","")}if(o(n)){return"[Circular ~]"}const f=n;if(f&&typeof f.toJSON==="function"){try{const t=f.toJSON();return Qn("",t,u-1,r,i)}catch(t){}}const a=Array.isArray(n)?[]:{};let l=0;const d=z(n);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t)){continue}if(l>=r){a[t]="[MaxProperties ~]";break}const n=d[t];a[t]=Qn(t,n,u-1,r,i);l++}s(n);return a}function te(t,n){try{if(t==="domain"&&n&&typeof n==="object"&&n._events){return"[Domain]"}if(t==="domainEmitter"){return"[DomainEmitter]"}if(typeof global!=="undefined"&&n===global){return"[Global]"}if(typeof window!=="undefined"&&n===window){return"[Window]"}if(typeof document!=="undefined"&&n===document){return"[Document]"}if($(n)){return"[VueViewModel]"}if(E(n)){return"[SyntheticEvent]"}if(typeof n==="number"&&!Number.isFinite(n)){return`[${n}]`}if(typeof n==="function"){return`[Function: ${Sn(n)}]`}if(typeof n==="symbol"){return`[${String(n)}]`}if(typeof n==="bigint"){return`[BigInt: ${String(n)}]`}const e=ne(n);if(/^HTML(\w*)Element$/.test(e)){return`[HTMLElement: ${e}]`}return`[object ${e}]`}catch(t){return`**non-serializable** (${t})`}}function ne(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}function ee(t){return~-encodeURI(t).split(/%..|./).length}function re(t){return ee(JSON.stringify(t))}function ie(){const t=new WeakSet;function n(n){if(t.has(n)){return true}t.add(n);return false}function e(n){t.delete(n)}return[n,e]}function oe(t,n=[]){return[t,n]}function se(t,n){const[e,r]=t;return[e,[...r,n]]}function ce(t,n){const e=t[1];for(const t of e){const e=t[0].type;const r=n(t,e);if(r){return true}}return false}function ue(t){const n=s(i);return n.encodePolyfill?n.encodePolyfill(t):(new TextEncoder).encode(t)}function fe(t){const[n,e]=t;let r=JSON.stringify(n);function i(t){if(typeof r==="string"){r=typeof t==="string"?r+t:[ue(r),t]}else{r.push(typeof t==="string"?ue(t):t)}}for(const t of e){const[n,e]=t;i(`\n${JSON.stringify(n)}\n`);if(typeof e==="string"||e instanceof Uint8Array){i(e)}else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(Kn(e))}i(t)}}return typeof r==="string"?r:ae(r)}function ae(t){const n=t.reduce(((t,n)=>t+n.length),0);const e=new Uint8Array(n);let r=0;for(const n of t){e.set(n,r);r+=n.length}return e}function le(t){const n=typeof t.data==="string"?ue(t.data):t.data;return[{type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},n]}const de={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function he(t){return de[t]}function pe(t){if(!t?.sdk){return}const{name:n,version:e}=t.sdk;return{name:n,version:e}}function me(t,n,e,r){const i=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:Fn(r)},...i&&{trace:i}}}function ye(t,n){if(!n){return t}t.sdk=t.sdk||{};t.sdk.name=t.sdk.name||n.name;t.sdk.version=t.sdk.version||n.version;t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]];t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]];return t}function ve(t,n,e,r){const i=pe(e);const o={sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&n&&{dsn:Fn(n)}};const s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return oe(o,[s])}function ge(t,n,e,r){const i=pe(e);const o=t.type&&t.type!=="replay_event"?t.type:"event";ye(t,e?.sdk);const s=me(t,i,r,n);delete t.sdkProcessingMetadata;const c=[{type:o},t];return oe(s,[c])}var be;(function(t){const n=0;t[t["PENDING"]=n]="PENDING";const e=1;t[t["RESOLVED"]=e]="RESOLVED";const r=2;t[t["REJECTED"]=r]="REJECTED"})(be||(be={}));function _e(t){return new Ee((n=>{n(t)}))}function we(t){return new Ee(((n,e)=>{e(t)}))}class Ee{constructor(t){this._state=be.PENDING;this._handlers=[];this._runExecutor(t)}then(t,n){return new Ee(((e,r)=>{this._handlers.push([false,n=>{if(!t){e(n)}else{try{e(t(n))}catch(t){r(t)}}},t=>{if(!n){r(t)}else{try{e(n(t))}catch(t){r(t)}}}]);this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Ee(((n,e)=>{let r;let i;return this.then((n=>{i=false;r=n;if(t){t()}}),(n=>{i=true;r=n;if(t){t()}})).then((()=>{if(i){e(r);return}n(r)}))}))}_executeHandlers(){if(this._state===be.PENDING){return}const t=this._handlers.slice();this._handlers=[];t.forEach((t=>{if(t[0]){return}if(this._state===be.RESOLVED){t[1](this._value)}if(this._state===be.REJECTED){t[2](this._value)}t[0]=true}))}_runExecutor(t){const n=(t,n)=>{if(this._state!==be.PENDING){return}if(w(n)){void n.then(e,r);return}this._state=t;this._value=n;this._executeHandlers()};const e=t=>{n(be.RESOLVED,t)};const r=t=>{n(be.REJECTED,t)};try{t(e,r)}catch(t){r(t)}}}function Se(t,n,r,i=0){return new Ee(((o,s)=>{const c=t[i];if(n===null||typeof c!=="function"){o(n)}else{const u=c({...n},r);e&&c.id&&u===null&&L.log(`Event processor "${c.id}" dropped event`);if(w(u)){void u.then((n=>Se(t,n,r,i+1).then(o))).then(null,s)}else{void Se(t,u,r,i+1).then(o).then(null,s)}}}))}let $e;let xe;let je;function ke(t){const n=i._sentryDebugIds;if(!n){return{}}const e=Object.keys(n);if(je&&e.length===xe){return je}xe=e.length;je=e.reduce(((e,r)=>{if(!$e){$e={}}const i=$e[r];if(i){e[i[0]]=i[1]}else{const i=t(r);for(let t=i.length-1;t>=0;t--){const o=i[t];const s=o?.filename;const c=n[r];if(s&&c){e[s]=c;$e[r]=[s,c];break}}}return e}),{});return je}function Oe(t,n){const{fingerprint:e,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=n;Ie(t,n);if(r){Ce(t,r)}Ae(t,e);Ne(t,i);De(t,o)}function Te(t,n){const{extra:e,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:a,attachments:l,propagationContext:d,transactionName:h,span:p}=n;Re(t,"extra",e);Re(t,"tags",r);Re(t,"user",i);Re(t,"contexts",o);t.sdkProcessingMetadata=dt(t.sdkProcessingMetadata,c,2);if(s){t.level=s}if(h){t.transactionName=h}if(p){t.span=p}if(u.length){t.breadcrumbs=[...t.breadcrumbs,...u]}if(f.length){t.fingerprint=[...t.fingerprint,...f]}if(a.length){t.eventProcessors=[...t.eventProcessors,...a]}if(l.length){t.attachments=[...t.attachments,...l]}t.propagationContext={...t.propagationContext,...d}}function Re(t,n,e){t[n]=dt(t[n],e,1)}function Ie(t,n){const{extra:e,tags:r,user:i,contexts:o,level:s,transactionName:c}=n;if(Object.keys(e).length){t.extra={...e,...t.extra}}if(Object.keys(r).length){t.tags={...r,...t.tags}}if(Object.keys(i).length){t.user={...i,...t.user}}if(Object.keys(o).length){t.contexts={...o,...t.contexts}}if(s){t.level=s}if(c&&t.type!=="transaction"){t.transaction=c}}function Ne(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:undefined}function De(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}function Ce(t,n){t.contexts={trace:nn(n),...t.contexts};t.sdkProcessingMetadata={dynamicSamplingContext:Xn(n),...t.sdkProcessingMetadata};const e=dn(n);const r=sn(e).description;if(r&&!t.transaction&&t.type==="transaction"){t.transaction=r}}function Ae(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[];if(n){t.fingerprint=t.fingerprint.concat(n)}if(!t.fingerprint.length){delete t.fingerprint}}function Me(t,n,e,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=t;const u={...n,event_id:n.event_id||e.event_id||K(),timestamp:n.timestamp||ot()};const f=e.integrations||t.integrations.map((t=>t.name));Le(u,t);Be(u,f);if(i){i.emit("applyFrameMetadata",n)}if(n.type===undefined){Pe(u,t.stackParser)}const a=He(r,e.captureContext);if(e.mechanism){nt(u,e.mechanism)}const l=i?i.getEventProcessors():[];const d=It().getScopeData();if(o){const t=o.getScopeData();Te(d,t)}if(a){const t=a.getScopeData();Te(d,t)}const h=[...e.attachments||[],...d.attachments];if(h.length){e.attachments=h}Oe(u,d);const p=[...l,...d.eventProcessors];const m=Se(p,u,e);return m.then((t=>{if(t){Ue(t)}if(typeof s==="number"&&s>0){return Fe(t,s,c)}return t}))}function Le(t,n){const{environment:e,release:r,dist:i,maxValueLength:o=250}=n;t.environment=t.environment||e||Ln;if(!t.release&&r){t.release=r}if(!t.dist&&i){t.dist=i}const s=t.request;if(s?.url){s.url=P(s.url,o)}}function Pe(t,n){const e=ke(n);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{if(t.filename){t.debug_id=e[t.filename]}}))}))}function Ue(t){const n={};t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{if(t.debug_id){if(t.abs_path){n[t.abs_path]=t.debug_id}else if(t.filename){n[t.filename]=t.debug_id}delete t.debug_id}}))}));if(Object.keys(n).length===0){return}t.debug_meta=t.debug_meta||{};t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.entries(n).forEach((([t,n])=>{e.push({type:"sourcemap",code_file:t,debug_id:n})}))}function Be(t,n){if(n.length>0){t.sdk=t.sdk||{};t.sdk.integrations=[...t.sdk.integrations||[],...n]}}function Fe(t,n,e){if(!t){return null}const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Kn(t.data,n,e)}})))},...t.user&&{user:Kn(t.user,n,e)},...t.contexts&&{contexts:Kn(t.contexts,n,e)},...t.extra&&{extra:Kn(t.extra,n,e)}};if(t.contexts?.trace&&r.contexts){r.contexts.trace=t.contexts.trace;if(t.contexts.trace.data){r.contexts.trace.data=Kn(t.contexts.trace.data,n,e)}}if(t.spans){r.spans=t.spans.map((t=>({...t,...t.data&&{data:Kn(t.data,n,e)}})))}if(t.contexts?.flags&&r.contexts){r.contexts.flags=Kn(t.contexts.flags,3,e)}return r}function He(t,n){if(!n){return t}const e=t?t.clone():new bt;e.update(n);return e}function We(t){{return undefined}}function qe(t,n){return Tt().captureException(t,We())}function Ge(t,n){const e=undefined;const r={captureContext:n};return Tt().captureMessage(t,e,r)}function ze(t,n){return Tt().captureEvent(t,n)}function Ye(t,n){Rt().setContext(t,n)}function Je(t){Rt().setUser(t)}function Ve(t){const n=Rt();const e=Tt();const{userAgent:r}=i.navigator||{};const o=ut({user:e.getUser()||n.getUser(),...r&&{userAgent:r},...t});const s=n.getSession();if(s?.status==="ok"){ft(s,{status:"exited"})}Xe();n.setSession(o);return o}function Xe(){const t=Rt();const n=Tt();const e=n.getSession()||t.getSession();if(e){at(e)}Ke();t.setSession()}function Ke(){const t=Rt();const n=Dt();const e=t.getSession();if(e&&n){n.captureSession(e)}}function Ze(t=false){if(t){Xe();return}Ke()}const Qe="7";function tr(t){const n=t.protocol?`${t.protocol}:`:"";const e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function nr(t){return`${tr(t)}${t.projectId}/envelope/`}function er(t,n){const e={sentry_version:Qe};if(t.publicKey){e.sentry_key=t.publicKey}if(n){e.sentry_client=`${n.name}/${n.version}`}return new URLSearchParams(e).toString()}function rr(t,n,e){return n?n:`${nr(t)}?${er(t,e)}`}const ir=[];function or(t){const n={};t.forEach((t=>{const{name:e}=t;const r=n[e];if(r&&!r.isDefaultInstance&&t.isDefaultInstance){return}n[e]=t}));return Object.values(n)}function sr(t){const n=t.defaultIntegrations||[];const e=t.integrations;n.forEach((t=>{t.isDefaultInstance=true}));let r;if(Array.isArray(e)){r=[...n,...e]}else if(typeof e==="function"){const t=e(n);r=Array.isArray(t)?t:[t]}else{r=n}return or(r)}function cr(t,n){const e={};n.forEach((n=>{if(n){fr(t,n,e)}}));return e}function ur(t,n){for(const e of n){if(e?.afterAllSetup){e.afterAllSetup(t)}}}function fr(t,n,r){if(r[n.name]){e&&L.log(`Integration skipped because it was already installed: ${n.name}`);return}r[n.name]=n;if(ir.indexOf(n.name)===-1&&typeof n.setupOnce==="function"){n.setupOnce();ir.push(n.name)}if(n.setup&&typeof n.setup==="function"){n.setup(t)}if(typeof n.preprocessEvent==="function"){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",((n,r)=>e(n,r,t)))}if(typeof n.processEvent==="function"){const e=n.processEvent.bind(n);const r=Object.assign(((n,r)=>e(n,r,t)),{id:n.name});t.addEventProcessor(r)}e&&L.log(`Integration installed: ${n.name}`)}function ar(t){return t}function lr(t){const n=[];if(t.message){n.push(t.message)}try{const e=t.exception.values[t.exception.values.length-1];if(e?.value){n.push(e.value);if(e.type){n.push(`${e.type}: ${e.value}`)}}}catch(t){}return n}function dr(t){const{trace_id:n,parent_span_id:e,span_id:r,status:i,origin:o,data:s,op:c}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:c,parent_span_id:e,span_id:r??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:n??"",origin:o,profile_id:s?.[Bt],exclusive_time:s?.[Ft],measurements:t.measurements,is_segment:true}}function hr(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[Bt]:t.profile_id},...t.exclusive_time&&{[Ft]:t.exclusive_time}}}},measurements:t.measurements}}function pr(t,n,e){const r=[{type:"client_report"},{timestamp:ot(),discarded_events:t}];return oe(n?{dsn:n}:{},[r])}const mr="Not capturing exception because it's already been captured.";const yr="Discarded session because of missing or non-string release";const vr=Symbol.for("SentryInternalError");const gr=Symbol.for("SentryDoNotSendEventError");function br(t){return{message:t,[vr]:true}}function _r(t){return{message:t,[gr]:true}}function wr(t){return!!t&&typeof t==="object"&&vr in t}function Er(t){return!!t&&typeof t==="object"&&gr in t}class Sr{constructor(t){this._options=t;this._integrations={};this._numProcessing=0;this._outcomes={};this._hooks={};this._eventProcessors=[];if(t.dsn){this._dsn=zn(t.dsn)}else{e&&L.warn("No DSN provided, client will not send events.")}if(this._dsn){const n=rr(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:undefined);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const i=K();if(et(t)){e&&L.log(mr);return i}const o={event_id:i,...n};this._process(this.eventFromException(t,o).then((t=>this._captureEvent(t,o,r))));return o.event_id}captureMessage(t,n,e,r){const i={event_id:K(),...e};const o=m(t)?t:String(t);const s=y(t)?this.eventFromMessage(o,n,i):this.eventFromException(t,i);this._process(s.then((t=>this._captureEvent(t,i,r))));return i.event_id}captureEvent(t,n,r){const i=K();if(n?.originalException&&et(n.originalException)){e&&L.log(mr);return i}const o={event_id:i,...n};const s=t.sdkProcessingMetadata||{};const c=s.capturedSpanScope;const u=s.capturedSpanIsolationScope;this._process(this._captureEvent(t,o,c||r,u));return o.event_id}captureSession(t){this.sendSession(t);ft(t,{init:false})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;if(n){this.emit("flush");return this._isClientDoneProcessing(t).then((e=>n.flush(t).then((t=>e&&t))))}else{return _e(true)}}close(t){return this.flush(t).then((t=>{this.getOptions().enabled=false;this.emit("close");return t}))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){if(this._isEnabled()||this._options.integrations.some((({name:t})=>t.startsWith("Spotlight")))){this._setupIntegrations()}}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];fr(this,t,this._integrations);if(!n){ur(this,[t])}}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=ge(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of n.attachments||[]){e=se(e,le(t))}const r=this.sendEnvelope(e);if(r){r.then((n=>this.emit("afterSendEvent",t,n)),null)}}sendSession(t){const{release:n,environment:r=Ln}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){e&&L.warn(yr);return}i.release=i.release||n;i.environment=i.environment||r;t.attrs=i}else{if(!t.release&&!n){e&&L.warn(yr);return}t.release=t.release||n;t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=ve(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;e&&L.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`);this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const e=this._hooks[t]=this._hooks[t]||[];e.push(n);return()=>{const t=e.indexOf(n);if(t>-1){e.splice(t,1)}}}emit(t,...n){const e=this._hooks[t];if(e){e.forEach((t=>t(...n)))}}sendEnvelope(t){this.emit("beforeEnvelope",t);if(this._isEnabled()&&this._transport){return this._transport.send(t).then(null,(t=>{e&&L.error("Error while sending envelope:",t);return t}))}e&&L.error("Transport disabled");return _e({})}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=cr(this,t);ur(this,t)}_updateSessionFromEvent(t,n){let e=n.level==="fatal";let r=false;const i=n.exception?.values;if(i){r=true;for(const t of i){const n=t.mechanism;if(n?.handled===false){e=true;break}}}const o=t.status==="ok";const s=o&&t.errors===0||o&&e;if(s){ft(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)});this.captureSession(t)}}_isClientDoneProcessing(t){return new Ee((n=>{let e=0;const r=1;const i=setInterval((()=>{if(this._numProcessing==0){clearInterval(i);n(true)}else{e+=r;if(t&&e>=t){clearInterval(i);n(false)}}}),r)}))}_isEnabled(){return this.getOptions().enabled!==false&&this._transport!==undefined}_prepareEvent(t,n,e,r){const i=this.getOptions();const o=Object.keys(this._integrations);if(!n.integrations&&o?.length){n.integrations=o}this.emit("preprocessEvent",t,n);if(!t.type){r.setLastEventId(t.event_id||n.event_id)}return Me(i,t,n,e,this,r).then((t=>{if(t===null){return t}this.emit("postprocessEvent",t,n);t.contexts={trace:Ct(e),...t.contexts};const r=Vn(this,e);t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata};return t}))}_captureEvent(t,n={},r=Tt(),i=Rt()){if(e&&jr(t)){L.log(`Captured error event \`${lr(t)[0]||"<unknown>"}\``)}return this._processEvent(t,n,r,i).then((t=>t.event_id),(t=>{if(e){if(Er(t)){L.log(t.message)}else if(wr(t)){L.warn(t.message)}else{L.warn(t)}}return undefined}))}_processEvent(t,n,e,r){const i=this.getOptions();const{sampleRate:o}=i;const s=kr(t);const c=jr(t);const u=t.type||"error";const f=`before send for type \`${u}\``;const a=typeof o==="undefined"?undefined:Yt(o);if(c&&typeof a==="number"&&Math.random()>a){this.recordDroppedEvent("sample_rate","error");return we(_r(`Discarding event because it's not included in the random sample (sampling rate = ${o})`))}const l=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,e,r).then((t=>{if(t===null){this.recordDroppedEvent("event_processor",l);throw _r("An event processor returned `null`, will not send event.")}const e=n.data&&n.data.__sentry__===true;if(e){return t}const r=xr(this,i,t,n);return $r(r,f)})).then((i=>{if(i===null){this.recordDroppedEvent("before_send",l);if(s){const n=t.spans||[];const e=1+n.length;this.recordDroppedEvent("before_send","span",e)}throw _r(`${f} returned \`null\`, will not send event.`)}const o=e.getSession()||r.getSession();if(c&&o){this._updateSessionFromEvent(o,i)}if(s){const t=i.sdkProcessingMetadata?.spanCountBeforeProcessing||0;const n=i.spans?i.spans.length:0;const e=t-n;if(e>0){this.recordDroppedEvent("before_send","span",e)}}const u=i.transaction_info;if(s&&u&&i.transaction!==t.transaction){const t="custom";i.transaction_info={...u,source:t}}this.sendEvent(i,n);return i})).then(null,(t=>{if(Er(t)||wr(t)){throw t}this.captureException(t,{data:{__sentry__:true},originalException:t});throw br(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++;void t.then((t=>{this._numProcessing--;return t}),(t=>{this._numProcessing--;return t}))}_clearOutcomes(){const t=this._outcomes;this._outcomes={};return Object.entries(t).map((([t,n])=>{const[e,r]=t.split(":");return{reason:e,category:r,quantity:n}}))}_flushOutcomes(){e&&L.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){e&&L.log("No outcomes to send");return}if(!this._dsn){e&&L.log("No dsn provided, will not send outcomes");return}e&&L.log("Sending outcomes:",t);const n=pr(t,this._options.tunnel&&Fn(this._dsn));this.sendEnvelope(n)}}function $r(t,n){const e=`${n} must return \`null\` or a valid event.`;if(w(t)){return t.then((t=>{if(!v(t)&&t!==null){throw br(e)}return t}),(t=>{throw br(`${n} rejected with ${t}`)}))}else if(!v(t)&&t!==null){throw br(e)}return t}function xr(t,n,e,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=n;let c=e;if(jr(c)&&i){return i(c,r)}if(kr(c)){if(s){const t=s(dr(c));if(!t){hn()}else{c=dt(e,hr(t))}if(c.spans){const t=[];for(const n of c.spans){const e=s(n);if(!e){hn();t.push(n)}else{t.push(e)}}c.spans=t}}if(o){if(c.spans){const t=c.spans.length;c.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return o(c,r)}}return c}function jr(t){return t.type===undefined}function kr(t){return t.type==="transaction"}function Or(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function Tr(t,n,e,r){const i={};if(n?.sdk){i.sdk={name:n.sdk.name,version:n.sdk.version}}if(!!e&&!!r){i.dsn=Fn(r)}return oe(i,[Or(t)])}i._sentryClientToLogBufferMap=new WeakMap;function Rr(t,n){const e=Ir(t)??[];if(e.length===0){return}const r=t.getOptions();const o=Tr(e,r._metadata,r.tunnel,t.getDsn());i._sentryClientToLogBufferMap?.set(t,[]);t.emit("flushLogs");t.sendEnvelope(o)}function Ir(t){return i._sentryClientToLogBufferMap?.get(t)}function Nr(t,n){if(n.debug===true){if(e){L.enable()}else{A((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))}}const r=Tt();r.update(n.initialScope);const i=new t(n);Dr(i);i.init();return i}function Dr(t){Tt().setClient(t)}const Cr=Symbol.for("SentryBufferFullError");function Ar(t){const n=[];function e(){return t===undefined||n.length<t}function r(t){return n.splice(n.indexOf(t),1)[0]||Promise.resolve(undefined)}function i(t){if(!e()){return we(Cr)}const i=t();if(n.indexOf(i)===-1){n.push(i)}void i.then((()=>r(i))).then(null,(()=>r(i).then(null,(()=>{}))));return i}function o(t){return new Ee(((e,r)=>{let i=n.length;if(!i){return e(true)}const o=setTimeout((()=>{if(t&&t>0){e(false)}}),t);n.forEach((t=>{void _e(t).then((()=>{if(! --i){clearTimeout(o);e(true)}}),r)}))}))}return{$:n,add:i,drain:o}}const Mr=60*1e3;function Lr(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e)){return e*1e3}const r=Date.parse(`${t}`);if(!isNaN(r)){return r-n}return Mr}function Pr(t,n){return t[n]||t.all||0}function Ur(t,n,e=Date.now()){return Pr(t,n)>e}function Br(t,{statusCode:n,headers:e},r=Date.now()){const i={...t};const o=e?.["x-sentry-rate-limits"];const s=e?.["retry-after"];if(o){for(const t of o.trim().split(",")){const[n,e,,,o]=t.split(":",5);const s=parseInt(n,10);const c=(!isNaN(s)?s:60)*1e3;if(!e){i.all=r+c}else{for(const t of e.split(";")){if(t==="metric_bucket"){if(!o||o.split(";").includes("custom")){i[t]=r+c}}else{i[t]=r+c}}}}}else if(s){i.all=r+Lr(s,r)}else if(n===429){i.all=r+60*1e3}return i}const Fr=64;function Hr(t,n,r=Ar(t.bufferSize||Fr)){let i={};const o=t=>r.drain(t);function s(o){const s=[];ce(o,((n,e)=>{const r=he(e);if(Ur(i,r)){t.recordDroppedEvent("ratelimit_backoff",r)}else{s.push(n)}}));if(s.length===0){return _e({})}const c=oe(o[0],s);const u=n=>{ce(c,((e,r)=>{t.recordDroppedEvent(n,he(r))}))};const f=()=>n({body:fe(c)}).then((t=>{if(t.statusCode!==undefined&&(t.statusCode<200||t.statusCode>=300)){e&&L.warn(`Sentry responded with status code ${t.statusCode} to sent event.`)}i=Br(i,t);return t}),(t=>{u("network_error");e&&L.error("Encountered error running transport request:",t);throw t}));return r.add(f).then((t=>t),(t=>{if(t===Cr){e&&L.error("Skipped sending event because buffer is full.");u("queue_overflow");return _e({})}else{throw t}}))}return{send:s,flush:o}}function Wr(t){if(t.user?.ip_address===undefined){t.user={...t.user,ip_address:"{{auto}}"}}}function qr(t){if("aggregates"in t){if(t.attrs?.["ip_address"]===undefined){t.attrs={...t.attrs,ip_address:"{{auto}}"}}}else{if(t.ipAddress===undefined){t.ipAddress="{{auto}}"}}}function Gr(t,n,e=[n],i="npm"){const o=t._metadata||{};if(!o.sdk){o.sdk={name:`sentry.javascript.${n}`,packages:e.map((t=>({name:`${i}:@sentry/${t}`,version:r}))),version:r}}t._metadata=o}const zr=100;function Yr(t,n){const e=Dt();const r=Rt();if(!e)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=zr}=e.getOptions();if(o<=0)return;const s=ot();const c={timestamp:s,...t};const u=i?A((()=>i(c,n))):c;if(u===null)return;if(e.emit){e.emit("beforeAddBreadcrumb",u,n)}r.addBreadcrumb(u,o)}let Jr;const Vr="FunctionToString";const Xr=new WeakMap;const Kr=()=>({name:Vr,setupOnce(){Jr=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=G(this);const e=Xr.has(Dt())&&n!==undefined?n:this;return Jr.apply(e,t)}}catch{}},setup(t){Xr.set(t,true)}});const Zr=ar(Kr);const Qr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/];const ti="EventFilters";const ni=ar(((t={})=>{let n;return{name:ti,setup(e){const r=e.getOptions();n=ri(t,r)},processEvent(e,r,i){if(!n){const e=i.getOptions();n=ri(t,e)}return ii(e,n)?null:e}}}));const ei=ar(((t={})=>({...ni(t),name:"InboundFilters"})));function ri(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:Qr],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]]}}function ii(t,n){if(!t.type){if(oi(t,n.ignoreErrors)){e&&L.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Q(t)}`);return true}if(li(t)){e&&L.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Q(t)}`);return true}if(ci(t,n.denyUrls)){e&&L.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Q(t)}.\nUrl: ${ai(t)}`);return true}if(!ui(t,n.allowUrls)){e&&L.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Q(t)}.\nUrl: ${ai(t)}`);return true}}else if(t.type==="transaction"){if(si(t,n.ignoreTransactions)){e&&L.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Q(t)}`);return true}}return false}function oi(t,n){if(!n?.length){return false}return lr(t).some((t=>F(t,n)))}function si(t,n){if(!n?.length){return false}const e=t.transaction;return e?F(e,n):false}function ci(t,n){if(!n?.length){return false}const e=ai(t);return!e?false:F(e,n)}function ui(t,n){if(!n?.length){return true}const e=ai(t);return!e?true:F(e,n)}function fi(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&e.filename!=="<anonymous>"&&e.filename!=="[native code]"){return e.filename||null}}return null}function ai(t){try{const n=[...t.exception?.values??[]].reverse().find((t=>t.mechanism?.parent_id===undefined&&t.stacktrace?.frames?.length));const e=n?.stacktrace?.frames;return e?fi(e):null}catch(n){e&&L.error(`Cannot extract url for event ${Q(t)}`);return null}}function li(t){if(!t.exception?.values?.length){return false}return!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&t.type!=="Error"||t.value))}function di(t,n,e,r,i,o){if(!i.exception?.values||!o||!S(o.originalException,Error)){return}const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:undefined;if(s){i.exception.values=hi(t,n,r,o.originalException,e,i.exception.values,s,0)}}function hi(t,n,e,r,i,o,s,c){if(o.length>=e+1){return o}let u=[...o];if(S(r[i],Error)){pi(s,c);const o=t(n,r[i]);const f=u.length;mi(o,i,f,c);u=hi(t,n,e,r[i],i,[o,...u],o,f)}if(Array.isArray(r.errors)){r.errors.forEach(((r,o)=>{if(S(r,Error)){pi(s,c);const f=t(n,r);const a=u.length;mi(f,`errors[${o}]`,a,c);u=hi(t,n,e,r,i,[f,...u],f,a)}}))}return u}function pi(t,n){t.mechanism=t.mechanism||{type:"generic",handled:true};t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:true},exception_id:n}}function mi(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:true};t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function yi(t){const n="console";kn(n,t);On(n,vi)}function vi(){if(!("console"in i)){return}D.forEach((function(t){if(!(t in i.console)){return}H(i.console,t,(function(n){C[t]=n;return function(...n){const e={args:n,level:t};Tn("console",e);const r=C[t];r?.apply(i.console,n)}}))}))}function gi(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const bi="Dedupe";const _i=()=>{let t;return{name:bi,processEvent(n){if(n.type){return n}try{if(Ei(n,t)){e&&L.warn("Event dropped due to being a duplicate of previously captured event.");return null}}catch(t){}return t=n}}};const wi=ar(_i);function Ei(t,n){if(!n){return false}if(Si(t,n)){return true}if($i(t,n)){return true}return false}function Si(t,n){const e=t.message;const r=n.message;if(!e&&!r){return false}if(e&&!r||!e&&r){return false}if(e!==r){return false}if(!ji(t,n)){return false}if(!xi(t,n)){return false}return true}function $i(t,n){const e=ki(n);const r=ki(t);if(!e||!r){return false}if(e.type!==r.type||e.value!==r.value){return false}if(!ji(t,n)){return false}if(!xi(t,n)){return false}return true}function xi(t,n){let e=$n(t);let r=$n(n);if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;if(r.length!==e.length){return false}for(let t=0;t<r.length;t++){const n=r[t];const i=e[t];if(n.filename!==i.filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function){return false}}return true}function ji(t,n){let e=t.fingerprint;let r=n.fingerprint;if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;try{return!!(e.join("")===r.join(""))}catch(t){return false}}function ki(t){return t.exception?.values&&t.exception.values[0]}function Oi(t){if(!t){return{}}const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n){return{}}const e=n[6]||"";const r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:r,relative:n[5]+e+r}}function Ti(t){if(t===undefined){return undefined}else if(t>=400&&t<500){return"warning"}else if(t>=500){return"error"}else{return undefined}}const Ri=i;function Ii(){return"history"in Ri&&!!Ri.history}function Ni(){if(!("fetch"in Ri)){return false}try{new Headers;new Request("http://www.example.com");new Response;return true}catch(t){return false}}function Di(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ci(){if(typeof EdgeRuntime==="string"){return true}if(!Ni()){return false}if(Di(Ri.fetch)){return true}let t=false;const n=Ri.document;if(n&&typeof n.createElement==="function"){try{const e=n.createElement("iframe");e.hidden=true;n.head.appendChild(e);if(e.contentWindow?.fetch){t=Di(e.contentWindow.fetch)}n.head.removeChild(e)}catch(t){e&&L.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}}return t}function Ai(t,n){const e="fetch";kn(e,t);On(e,(()=>Mi(undefined,n)))}function Mi(t,n=false){if(n&&!Ci()){return}H(i,"fetch",(function(t){return function(...n){const e=new Error;const{method:r,url:o}=Ui(n);const s={args:n,fetchData:{method:r,url:o},startTimestamp:ct()*1e3,virtualError:e,headers:Bi(n)};{Tn("fetch",{...s})}return t.apply(i,n).then((async t=>{{Tn("fetch",{...s,endTimestamp:ct()*1e3,response:t})}return t}),(t=>{Tn("fetch",{...s,endTimestamp:ct()*1e3,error:t});if(f(t)&&t.stack===undefined){t.stack=e.stack;W(t,"framesToPop",1)}if(t instanceof TypeError&&(t.message==="Failed to fetch"||t.message==="Load failed"||t.message==="NetworkError when attempting to fetch resource.")){try{const n=new URL(s.fetchData.url);t.message=`${t.message} (${n.host})`}catch{}}throw t}))}}))}function Li(t,n){return!!t&&typeof t==="object"&&!!t[n]}function Pi(t){if(typeof t==="string"){return t}if(!t){return""}if(Li(t,"url")){return t.url}if(t.toString){return t.toString()}return""}function Ui(t){if(t.length===0){return{method:"GET",url:""}}if(t.length===2){const[n,e]=t;return{url:Pi(n),method:Li(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:Pi(n),method:Li(n,"method")?String(n.method).toUpperCase():"GET"}}function Bi(t){const[n,e]=t;try{if(typeof e==="object"&&e!==null&&"headers"in e&&e.headers){return new Headers(e.headers)}if(x(n)){return new Headers(n.headers)}}catch{}return}function Fi(){return"npm"}const Hi=i;let Wi=0;function qi(){return Wi>0}function Gi(){Wi++;setTimeout((()=>{Wi--}))}function zi(t,n={}){function e(t){return typeof t==="function"}if(!e(t)){return t}try{const n=t.__sentry_wrapped__;if(n){if(typeof n==="function"){return n}else{return t}}if(G(t)){return t}}catch(n){return t}const r=function(...e){try{const r=e.map((t=>zi(t,n)));return t.apply(this,r)}catch(t){Gi();Nt((r=>{r.addEventProcessor((t=>{if(n.mechanism){tt(t,undefined);nt(t,n.mechanism)}t.extra={...t.extra,arguments:e};return t}));qe(t)}));throw t}};try{for(const n in t){if(Object.prototype.hasOwnProperty.call(t,n)){r[n]=t[n]}}}catch{}q(r,t);W(t,"__sentry_wrapped__",r);try{const n=Object.getOwnPropertyDescriptor(r,"name");if(n.configurable){Object.defineProperty(r,"name",{get(){return t.name}})}}catch{}return r}function Yi(){const t=R();const{referrer:n}=Hi.document||{};const{userAgent:e}=Hi.navigator||{};const r={...n&&{Referer:n},...e&&{"User-Agent":e}};const i={url:t,headers:r};return i}function Ji(t,n){const e=Ki(t,n);const r={type:eo(n),value:ro(n)};if(e.length){r.stacktrace={frames:e}}if(r.type===undefined&&r.value===""){r.value="Unrecoverable error caught"}return r}function Vi(t,n,e,r){const i=Dt();const o=i?.getOptions().normalizeDepth;const s=ao(n);const c={__serialized__:Zn(n,o)};if(s){return{exception:{values:[Ji(t,s)]},extra:c}}const u={exception:{values:[{type:g(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:uo(n,{isUnhandledRejection:r})}]},extra:c};if(e){const n=Ki(t,e);if(n.length){u.exception.values[0].stacktrace={frames:n}}}return u}function Xi(t,n){return{exception:{values:[Ji(t,n)]}}}function Ki(t,n){const e=n.stacktrace||n.stack||"";const r=Qi(n);const i=to(n);try{return t(e,r,i)}catch(t){}return[]}const Zi=/Minified React error #\d+;/i;function Qi(t){if(t&&Zi.test(t.message)){return 1}return 0}function to(t){if(typeof t.framesToPop==="number"){return t.framesToPop}return 0}function no(t){if(typeof WebAssembly!=="undefined"&&typeof WebAssembly.Exception!=="undefined"){return t instanceof WebAssembly.Exception}else{return false}}function eo(t){const n=t?.name;if(!n&&no(t)){const n=t.message&&Array.isArray(t.message)&&t.message.length==2;return n?t.message[0]:"WebAssembly.Exception"}return n}function ro(t){const n=t?.message;if(no(t)){if(Array.isArray(t.message)&&t.message.length==2){return t.message[1]}return"wasm exception"}if(!n){return"No error message"}if(n.error&&typeof n.error.message==="string"){return n.error.message}return n}function io(t,n,e,r){const i=e?.syntheticException||undefined;const o=so(t,n,i,r);nt(o);o.level="error";if(e?.event_id){o.event_id=e.event_id}return _e(o)}function oo(t,n,e="info",r,i){const o=r?.syntheticException||undefined;const s=co(t,n,o,i);s.level=e;if(r?.event_id){s.event_id=r.event_id}return _e(s)}function so(t,n,e,r,i){let o;if(l(n)&&n.error){const e=n;return Xi(t,e.error)}if(d(n)||h(n)){const i=n;if("stack"in n){o=Xi(t,n)}else{const n=i.name||(d(i)?"DOMError":"DOMException");const s=i.message?`${n}: ${i.message}`:n;o=co(t,s,e,r);tt(o,s)}if("code"in i){o.tags={...o.tags,"DOMException.code":`${i.code}`}}return o}if(f(n)){return Xi(t,n)}if(v(n)||g(n)){const r=n;o=Vi(t,r,e,i);nt(o,{synthetic:true});return o}o=co(t,n,e,r);tt(o,`${n}`);nt(o,{synthetic:true});return o}function co(t,n,e,r){const i={};if(r&&e){const r=Ki(t,e);if(r.length){i.exception={values:[{value:n,stacktrace:{frames:r}}]}}nt(i,{synthetic:true})}if(m(n)){const{__sentry_template_string__:t,__sentry_template_values__:e}=n;i.logentry={message:t,params:e};return i}i.message=n;return i}function uo(t,{isUnhandledRejection:n}){const e=V(t);const r=n?"promise rejection":"exception";if(l(t)){return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``}if(g(t)){const n=fo(t);return`Event \`${n}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function fo(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:undefined}catch(t){}}function ao(t){for(const n in t){if(Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];if(e instanceof Error){return e}}}return undefined}const lo=5e3;class ho extends Sr{constructor(t){const n=po(t);const e=Hi.SENTRY_SDK_SOURCE||Fi();Gr(n,"browser",["browser"],e);super(n);const{sendDefaultPii:r,sendClientReports:i,_experiments:o}=this._options;const s=o?.enableLogs;if(Hi.document&&(i||s)){Hi.document.addEventListener("visibilitychange",(()=>{if(Hi.document.visibilityState==="hidden"){if(i){this._flushOutcomes()}if(s){Rr(this)}}}))}if(s){this.on("flush",(()=>{Rr(this)}));this.on("afterCaptureLog",(()=>{if(this._logFlushIdleTimeout){clearTimeout(this._logFlushIdleTimeout)}this._logFlushIdleTimeout=setTimeout((()=>{Rr(this)}),lo)}))}if(r){this.on("postprocessEvent",Wr);this.on("beforeSendSession",qr)}}eventFromException(t,n){return io(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",e){return oo(this._options.stackParser,t,n,e,this._options.attachStacktrace)}_prepareEvent(t,n,e,r){t.platform=t.platform||"javascript";return super._prepareEvent(t,n,e,r)}}function po(t){return{release:typeof __SENTRY_RELEASE__==="string"?__SENTRY_RELEASE__:Hi.SENTRY_RELEASE?.id,sendClientReports:true,parentSpanIsAlwaysRootSpan:true,...t}}const mo=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const yo=i;const vo=1e3;let go;let bo;let _o;function wo(t){const n="dom";kn(n,t);On(n,Eo)}function Eo(){if(!yo.document){return}const t=Tn.bind(null,"dom");const n=xo(t,true);yo.document.addEventListener("click",n,false);yo.document.addEventListener("keypress",n,false);["EventTarget","Node"].forEach((n=>{const e=yo;const r=e[n]?.prototype;if(!r?.hasOwnProperty?.("addEventListener")){return}H(r,"addEventListener",(function(n){return function(e,r,i){if(e==="click"||e=="keypress"){try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{};const o=r[e]=r[e]||{refCount:0};if(!o.handler){const r=xo(t);o.handler=r;n.call(this,e,r,i)}o.refCount++}catch(t){}}return n.call(this,e,r,i)}}));H(r,"removeEventListener",(function(t){return function(n,e,r){if(n==="click"||n=="keypress"){try{const e=this.__sentry_instrumentation_handlers__||{};const i=e[n];if(i){i.refCount--;if(i.refCount<=0){t.call(this,n,i.handler,r);i.handler=undefined;delete e[n]}if(Object.keys(e).length===0){delete this.__sentry_instrumentation_handlers__}}}catch(t){}}return t.call(this,n,e,r)}}))}))}function So(t){if(t.type!==bo){return false}try{if(!t.target||t.target._sentryId!==_o){return false}}catch(t){}return true}function $o(t,n){if(t!=="keypress"){return false}if(!n?.tagName){return true}if(n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.isContentEditable){return false}return true}function xo(t,n=false){return e=>{if(!e||e["_sentryCaptured"]){return}const r=jo(e);if($o(e.type,r)){return}W(e,"_sentryCaptured",true);if(r&&!r._sentryId){W(r,"_sentryId",K())}const i=e.type==="keypress"?"input":e.type;if(!So(e)){const o={event:e,name:i,global:n};t(o);bo=e.type;_o=r?r._sentryId:undefined}clearTimeout(go);go=yo.setTimeout((()=>{_o=undefined;bo=undefined}),vo)}}function jo(t){try{return t.target}catch(t){return null}}let ko;function Oo(t){const n="history";kn(n,t);On(n,To)}function To(){yo.addEventListener("popstate",(()=>{const t=yo.location.href;const n=ko;ko=t;if(n===t){return}const e={from:n,to:t};Tn("history",e)}));if(!Ii()){return}function t(t){return function(...n){const e=n.length>2?n[2]:undefined;if(e){const r=ko;const i=Ro(String(e));ko=i;if(r===i){return t.apply(this,n)}const o={from:r,to:i};Tn("history",o)}return t.apply(this,n)}}H(yo.history,"pushState",t);H(yo.history,"replaceState",t)}function Ro(t){try{const n=new URL(t,yo.location.origin);return n.toString()}catch{return t}}const Io={};function No(t){const n=Io[t];if(n){return n}let e=yo[t];if(Di(e)){return Io[t]=e.bind(yo)}const r=yo.document;if(r&&typeof r.createElement==="function"){try{const n=r.createElement("iframe");n.hidden=true;r.head.appendChild(n);const i=n.contentWindow;if(i?.[t]){e=i[t]}r.head.removeChild(n)}catch(n){mo&&L.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,n)}}if(!e){return e}return Io[t]=e.bind(yo)}function Do(t){Io[t]=undefined}const Co="__sentry_xhr_v3__";function Ao(t){const n="xhr";kn(n,t);On(n,Mo)}function Mo(){if(!yo.XMLHttpRequest){return}const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,n,e){const r=new Error;const i=ct()*1e3;const o=p(e[0])?e[0].toUpperCase():undefined;const s=Lo(e[1]);if(!o||!s){return t.apply(n,e)}n[Co]={method:o,url:s,request_headers:{}};if(o==="POST"&&s.match(/sentry_key/)){n.__sentry_own_request__=true}const c=()=>{const t=n[Co];if(!t){return}if(n.readyState===4){try{t.status_code=n.status}catch(t){}const e={endTimestamp:ct()*1e3,startTimestamp:i,xhr:n,virtualError:r};Tn("xhr",e)}};if("onreadystatechange"in n&&typeof n.onreadystatechange==="function"){n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(t,n,e){c();return t.apply(n,e)}})}else{n.addEventListener("readystatechange",c)}n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(t,n,e){const[r,i]=e;const o=n[Co];if(o&&p(r)&&p(i)){o.request_headers[r.toLowerCase()]=i}return t.apply(n,e)}});return t.apply(n,e)}});t.send=new Proxy(t.send,{apply(t,n,e){const r=n[Co];if(!r){return t.apply(n,e)}if(e[0]!==undefined){r.body=e[0]}const i={startTimestamp:ct()*1e3,xhr:n};Tn("xhr",i);return t.apply(n,e)}})}function Lo(t){if(p(t)){return t}try{return t.toString()}catch{}return undefined}function Po(t,n=No("fetch")){let e=0;let r=0;function i(i){const o=i.body.length;e+=o;r++;const s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};if(!n){Do("fetch");return we("No fetch implementation available")}try{return n(t.url,s).then((t=>{e-=o;r--;return{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}}))}catch(t){Do("fetch");e-=o;r--;return we(t)}}return Hr(t,i)}const Uo=30;const Bo=50;function Fo(t,n,e,r){const i={filename:t,function:n==="<anonymous>"?mn:n,in_app:true};if(e!==undefined){i.lineno=e}if(r!==undefined){i.colno=r}return i}const Ho=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;const Wo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;const qo=/\((\S*)(?::(\d+))(?::(\d+))\)/;const Go=t=>{const n=Ho.exec(t);if(n){const[,t,e,r]=n;return Fo(t,mn,+e,+r)}const e=Wo.exec(t);if(e){const t=e[2]&&e[2].indexOf("eval")===0;if(t){const t=qo.exec(e[2]);if(t){e[2]=t[1];e[3]=t[2];e[4]=t[3]}}const[n,r]=Qo(e[1]||mn,e[2]);return Fo(r,n,e[3]?+e[3]:undefined,e[4]?+e[4]:undefined)}return};const zo=[Uo,Go];const Yo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;const Jo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;const Vo=t=>{const n=Yo.exec(t);if(n){const t=n[3]&&n[3].indexOf(" > eval")>-1;if(t){const t=Jo.exec(n[3]);if(t){n[1]=n[1]||"eval";n[3]=t[1];n[4]=t[2];n[5]=""}}let e=n[3];let r=n[1]||mn;[r,e]=Qo(r,e);return Fo(e,r,n[4]?+n[4]:undefined,n[5]?+n[5]:undefined)}return};const Xo=[Bo,Vo];const Ko=[zo,Xo];const Zo=gn(...Ko);const Qo=(t,n)=>{const e=t.indexOf("safari-extension")!==-1;const r=t.indexOf("safari-web-extension")!==-1;return e||r?[t.indexOf("@")!==-1?t.split("@")[0]:mn,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};const ts=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const ns=1024;const es="Breadcrumbs";const rs=(t={})=>{const n={console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true,...t};return{name:es,setup(t){if(n.console){yi(cs(t))}if(n.dom){wo(ss(t,n.dom))}if(n.xhr){Ao(us(t))}if(n.fetch){Ai(fs(t))}if(n.history){Oo(as(t))}if(n.sentry){t.on("beforeSendEvent",os(t))}}}};const is=ar(rs);function os(t){return function n(e){if(Dt()!==t){return}Yr({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:Q(e)},{event:e})}}function ss(t,n){return function e(r){if(Dt()!==t){return}let i;let o;let s=typeof n==="object"?n.serializeAttribute:undefined;let c=typeof n==="object"&&typeof n.maxStringLength==="number"?n.maxStringLength:undefined;if(c&&c>ns){ts&&L.warn(`\`dom.maxStringLength\` cannot exceed ${ns}, but a value of ${c} was configured. Sentry will use ${ns} instead.`);c=ns}if(typeof s==="string"){s=[s]}try{const t=r.event;const n=ls(t)?t.target:t;i=O(n,{keyAttrs:s,maxStringLength:c});o=I(n)}catch(t){i="<unknown>"}if(i.length===0){return}const u={category:`ui.${r.name}`,message:i};if(o){u.data={"ui.component_name":o}}Yr(u,{event:r.event,name:r.name,global:r.global})}}function cs(t){return function n(e){if(Dt()!==t){return}const r={category:"console",data:{arguments:e.args,logger:"console"},level:gi(e.level),message:U(e.args," ")};if(e.level==="assert"){if(e.args[0]===false){r.message=`Assertion failed: ${U(e.args.slice(1)," ")||"console.assert"}`;r.data.arguments=e.args.slice(1)}else{return}}Yr(r,{input:e.args,level:e.level})}}function us(t){return function n(e){if(Dt()!==t){return}const{startTimestamp:r,endTimestamp:i}=e;const o=e.xhr[Co];if(!r||!i||!o){return}const{method:s,url:c,status_code:u,body:f}=o;const a={method:s,url:c,status_code:u};const l={xhr:e.xhr,input:f,startTimestamp:r,endTimestamp:i};const d={category:"xhr",data:a,type:"http",level:Ti(u)};t.emit("beforeOutgoingRequestBreadcrumb",d,l);Yr(d,l)}}function fs(t){return function n(e){if(Dt()!==t){return}const{startTimestamp:r,endTimestamp:i}=e;if(!i){return}if(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"){return}if(e.error){const n=e.fetchData;const o={data:e.error,input:e.args,startTimestamp:r,endTimestamp:i};const s={category:"fetch",data:n,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",s,o);Yr(s,o)}else{const n=e.response;const o={...e.fetchData,status_code:n?.status};const s={input:e.args,response:n,startTimestamp:r,endTimestamp:i};const c={category:"fetch",data:o,type:"http",level:Ti(o.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,s);Yr(c,s)}}}function as(t){return function n(e){if(Dt()!==t){return}let r=e.from;let i=e.to;const o=Oi(Hi.location.href);let s=r?Oi(r):undefined;const c=Oi(i);if(!s?.path){s=o}if(o.protocol===c.protocol&&o.host===c.host){i=c.relative}if(o.protocol===s.protocol&&o.host===s.host){r=s.relative}Yr({category:"navigation",data:{from:r,to:i}})}}function ls(t){return!!t&&!!t.target}const ds=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];const hs="BrowserApiErrors";const ps=(t={})=>{const n={XMLHttpRequest:true,eventTarget:true,requestAnimationFrame:true,setInterval:true,setTimeout:true,unregisterOriginalCallbacks:false,...t};return{name:hs,setupOnce(){if(n.setTimeout){H(Hi,"setTimeout",ys)}if(n.setInterval){H(Hi,"setInterval",ys)}if(n.requestAnimationFrame){H(Hi,"requestAnimationFrame",vs)}if(n.XMLHttpRequest&&"XMLHttpRequest"in Hi){H(XMLHttpRequest.prototype,"send",gs)}const t=n.eventTarget;if(t){const e=Array.isArray(t)?t:ds;e.forEach((t=>bs(t,n)))}}}};const ms=ar(ps);function ys(t){return function(...n){const e=n[0];n[0]=zi(e,{mechanism:{data:{function:Sn(t)},handled:false,type:"instrument"}});return t.apply(this,n)}}function vs(t){return function(n){return t.apply(this,[zi(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Sn(t)},handled:false,type:"instrument"}})])}}function gs(t){return function(...n){const e=this;const r=["onload","onerror","onprogress","onreadystatechange"];r.forEach((t=>{if(t in e&&typeof e[t]==="function"){H(e,t,(function(n){const e={mechanism:{data:{function:t,handler:Sn(n)},handled:false,type:"instrument"}};const r=G(n);if(r){e.mechanism.data.handler=Sn(r)}return zi(n,e)}))}}));return t.apply(this,n)}}function bs(t,n){const e=Hi;const r=e[t]?.prototype;if(!r?.hasOwnProperty?.("addEventListener")){return}H(r,"addEventListener",(function(e){return function(r,i,o){try{if(_s(i)){i.handleEvent=zi(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Sn(i),target:t},handled:false,type:"instrument"}})}}catch{}if(n.unregisterOriginalCallbacks){ws(this,r,i)}return e.apply(this,[r,zi(i,{mechanism:{data:{function:"addEventListener",handler:Sn(i),target:t},handled:false,type:"instrument"}}),o])}}));H(r,"removeEventListener",(function(t){return function(n,e,r){try{const i=e.__sentry_wrapped__;if(i){t.call(this,n,i,r)}}catch(t){}return t.call(this,n,e,r)}}))}function _s(t){return typeof t.handleEvent==="function"}function ws(t,n,e){if(t&&typeof t==="object"&&"removeEventListener"in t&&typeof t.removeEventListener==="function"){t.removeEventListener(n,e)}}const Es=ar((()=>({name:"BrowserSession",setupOnce(){if(typeof Hi.document==="undefined"){ts&&L.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Ve({ignoreDuration:true});Ze();Oo((({from:t,to:n})=>{if(t!==undefined&&t!==n){Ve({ignoreDuration:true});Ze()}}))}})));const Ss="GlobalHandlers";const $s=(t={})=>{const n={onerror:true,onunhandledrejection:true,...t};return{name:Ss,setupOnce(){Error.stackTraceLimit=50},setup(t){if(n.onerror){js(t);Is("onerror")}if(n.onunhandledrejection){ks(t);Is("onunhandledrejection")}}}};const xs=ar($s);function js(t){In((n=>{const{stackParser:e,attachStacktrace:r}=Ns();if(Dt()!==t||qi()){return}const{msg:i,url:o,line:s,column:c,error:u}=n;const f=Rs(so(e,u||i,undefined,r,false),o,s,c);f.level="error";ze(f,{originalException:u,mechanism:{handled:false,type:"onerror"}})}))}function ks(t){Cn((n=>{const{stackParser:e,attachStacktrace:r}=Ns();if(Dt()!==t||qi()){return}const i=Os(n);const o=y(i)?Ts(i):so(e,i,undefined,r,true);o.level="error";ze(o,{originalException:i,mechanism:{handled:false,type:"onunhandledrejection"}})}))}function Os(t){if(y(t)){return t}try{if("reason"in t){return t.reason}if("detail"in t&&"reason"in t.detail){return t.detail.reason}}catch{}return t}function Ts(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Rs(t,n,e,r){const i=t.exception=t.exception||{};const o=i.values=i.values||[];const s=o[0]=o[0]||{};const c=s.stacktrace=s.stacktrace||{};const u=c.frames=c.frames||[];const f=r;const a=e;const l=p(n)&&n.length>0?n:R();if(u.length===0){u.push({colno:f,filename:l,function:mn,in_app:true,lineno:a})}return t}function Is(t){ts&&L.log(`Global Handler attached: ${t}`)}function Ns(){const t=Dt();const n=t?.getOptions()||{stackParser:()=>[],attachStacktrace:false};return n}const Ds=ar((()=>({name:"HttpContext",preprocessEvent(t){if(!Hi.navigator&&!Hi.location&&!Hi.document){return}const n=Yi();const e={...n.headers,...t.request?.headers};t.request={...n,...t.request,headers:e}}})));const Cs="cause";const As=5;const Ms="LinkedErrors";const Ls=(t={})=>{const n=t.limit||As;const e=t.key||Cs;return{name:Ms,preprocessEvent(t,r,i){const o=i.getOptions();di(Ji,o.stackParser,e,n,t,r)}}};const Ps=ar(Ls);function Us(){if(Bs()){if(ts){A((()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}))}return true}return false}function Bs(){if(typeof Hi.window==="undefined"){return false}const t=Hi;if(t.nw){return false}const n=t["chrome"]||t["browser"];if(!n?.runtime?.id){return false}const e=R();const r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];const i=Hi===Hi.top&&r.some((t=>e.startsWith(`${t}://`)));return!i}function Fs(t){return[ei(),Zr(),ms(),is(),xs(),Ps(),wi(),Ds(),Es()]}function Hs(t={}){const n=!t.skipBrowserExtensionCheck&&Us();const e={...t,enabled:n?false:t.enabled,stackParser:bn(t.stackParser||Zo),integrations:sr({integrations:t.integrations,defaultIntegrations:t.defaultIntegrations==null?Fs():t.defaultIntegrations}),transport:t.transport||Po};return Nr(ho,e)}async function Ws(){return await new Promise((t=>{Hs({dsn:"https://d4dd33313afbf480bb76f965a5dcc733@sentry.ylzhaopin.com/9",integrations:[],beforeSend(t){if(t.exception&&t.exception.values){const n=t.exception.values[0];if(n.stacktrace&&n.stacktrace.frames){const t=n.stacktrace.frames.some((t=>t.filename&&t.filename.includes("pcm-")));if(!t){return null}}}return t},tracesSampleRate:.1});t({})}))}const qs=Ws;const Gs="";var zs=Object.defineProperty;var Ys=(t,n)=>{for(var e in n)zs(t,e,{get:n[e],enumerable:true})};var Js="http://www.w3.org/2000/svg";var Vs="http://www.w3.org/1999/xhtml";var Xs=(t,n)=>{var e;const r=n.t;const i=Object.entries((e=r.i)!=null?e:{});i.map((([e,[r]])=>{if(r&31||r&32){const r=t[e];const i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e);Object.defineProperty(t,e,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:true,enumerable:true});t[e]=n.o.has(e)?n.o.get(e):r}}))};var Ks=t=>{if(t.__stencil__getHostRef){return t.__stencil__getHostRef()}return void 0};var Zs=(t,n)=>{t.__stencil__getHostRef=()=>n;n.u=t;{Xs(t,n)}};var Qs=(t,n)=>{const e={l:0,$hostElement$:t,t:n,o:new Map};{e.h=new Promise((t=>e.p=t))}{e.m=new Promise((t=>e.v=t));t["s-p"]=[];t["s-rc"]=[]}const r=e;t.__stencil__getHostRef=()=>r;return r};var tc=(t,n)=>n in t;var nc=(t,n)=>(0,console.error)(t,n);var ec=new Map;var rc=(t,n,e)=>{const r=t._.replace(/-/g,"_");const i=t.S;if(!i){return void 0}const o=ec.get(i);if(o){return o[r]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((t=>{{ec.set(i,t)}return t[r]}),(t=>{nc(t,n.$hostElement$)}))};var ic=new Map;var oc="{visibility:hidden}.hydrated{visibility:inherit}";var sc="slot-fb{display:contents}slot-fb[hidden]{display:none}";var cc=typeof window!=="undefined"?window:{};var uc={l:0,j:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,r)=>t.addEventListener(n,e,r),rel:(t,n,e,r)=>t.removeEventListener(n,e,r),ce:(t,n)=>new CustomEvent(t,n)};var fc=t=>Promise.resolve(t);var ac=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();var lc=false;var dc=[];var hc=[];var pc=(t,n)=>e=>{t.push(e);if(!lc){lc=true;if(n&&uc.l&4){vc(yc)}else{uc.raf(yc)}}};var mc=t=>{for(let n=0;n<t.length;n++){try{t[n](performance.now())}catch(t){nc(t)}}t.length=0};var yc=()=>{mc(dc);{mc(hc);if(lc=dc.length>0){uc.raf(yc)}}};var vc=t=>fc().then(t);var gc=pc(hc,true);var bc=t=>{t=typeof t;return t==="object"||t==="function"};function _c(t){var n,e,r;return(r=(e=(n=t.head)==null?void 0:n.querySelector('meta[name="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?r:void 0}var wc=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var Ec={};Ys(Ec,{err:()=>$c,map:()=>xc,ok:()=>Sc,unwrap:()=>jc,unwrapErr:()=>kc});var Sc=t=>({isOk:true,isErr:false,value:t});var $c=t=>({isOk:false,isErr:true,value:t});function xc(t,n){if(t.isOk){const e=n(t.value);if(e instanceof Promise){return e.then((t=>Sc(t)))}else{return Sc(e)}}if(t.isErr){const n=t.value;return $c(n)}throw"should never get here"}var jc=t=>{if(t.isOk){return t.value}else{throw t.value}};var kc=t=>{if(t.isErr){return t.value}else{throw t.value}};function Oc(t){const n=this.attachShadow({mode:"open"});if(ac){const t=new CSSStyleSheet;t.replaceSync(Gs);n.adoptedStyleSheets.push(t)}}var Tc=(t,n="")=>{{return()=>{}}};var Rc=(t,n)=>{{return()=>{}}};var Ic=(t,n,...e)=>{let r=null;let i=null;let o=false;let s=false;const c=[];const u=n=>{for(let e=0;e<n.length;e++){r=n[e];if(Array.isArray(r)){u(r)}else if(r!=null&&typeof r!=="boolean"){if(o=typeof t!=="function"&&!bc(r)){r=String(r)}if(o&&s){c[c.length-1].k+=r}else{c.push(o?Nc(null,r):r)}s=o}}};u(e);if(n){if(n.key){i=n.key}{const t=n.className||n.class;if(t){n.class=typeof t!=="object"?t:Object.keys(t).filter((n=>t[n])).join(" ")}}}if(typeof t==="function"){return t(n===null?{}:n,c,Ac)}const f=Nc(t,null);f.O=n;if(c.length>0){f.T=c}{f.R=i}return f};var Nc=(t,n)=>{const e={l:0,I:t,k:n,N:null,T:null};{e.O=null}{e.R=null}return e};var Dc={};var Cc=t=>t&&t.I===Dc;var Ac={forEach:(t,n)=>t.map(Mc).forEach(n),map:(t,n)=>t.map(Mc).map(n).map(Lc)};var Mc=t=>({vattrs:t.O,vchildren:t.T,vkey:t.R,vname:t.D,vtag:t.I,vtext:t.k});var Lc=t=>{if(typeof t.vtag==="function"){const n={...t.vattrs};if(t.vkey){n.key=t.vkey}if(t.vname){n.name=t.vname}return Ic(t.vtag,n,...t.vchildren||[])}const n=Nc(t.vtag,t.vtext);n.O=t.vattrs;n.T=t.vchildren;n.R=t.vkey;n.D=t.vname;return n};var Pc=t=>{const n=wc(t);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${n}))(${n}\\b)`,"g")};Pc("::slotted");Pc(":host");Pc(":host-context");var Uc=(t,n,e)=>{if(t!=null&&!bc(t)){if(n&4){{return t==="false"?false:t===""||!!t}}if(n&2){return typeof t==="string"?parseFloat(t):typeof t==="number"?t:NaN}if(n&1){return String(t)}return t}return t};var Bc=t=>Ks(t).$hostElement$;var Fc=(t,n,e)=>{const r=Bc(t);return{emit:t=>Hc(r,n,{bubbles:true,composed:true,cancelable:true,detail:t})}};var Hc=(t,n,e)=>{const r=uc.ce(n,e);t.dispatchEvent(r);return r};var Wc=new WeakMap;var qc=(t,n,e)=>{let r=ic.get(t);if(ac&&e){r=r||new CSSStyleSheet;if(typeof r==="string"){r=n}else{r.replaceSync(n)}}else{r=n}ic.set(t,r)};var Gc=(t,n,e)=>{var r;const i=Yc(n);const o=ic.get(i);if(!cc.document){return i}t=t.nodeType===11?t:cc.document;if(o){if(typeof o==="string"){t=t.head||t;let e=Wc.get(t);let s;if(!e){Wc.set(t,e=new Set)}if(!e.has(i)){{s=cc.document.createElement("style");s.innerHTML=o;const e=(r=uc.C)!=null?r:_c(cc.document);if(e!=null){s.setAttribute("nonce",e)}if(!(n.l&1)){if(t.nodeName==="HEAD"){const n=t.querySelectorAll("link[rel=preconnect]");const e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(e==null?void 0:e.parentNode)===t?e:null)}else if("host"in t){if(ac){const n=new CSSStyleSheet;n.replaceSync(o);t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");if(n){n.innerHTML=o+n.innerHTML}else{t.prepend(s)}}}else{t.append(s)}}if(n.l&1){t.insertBefore(s,null)}}if(n.l&4){s.innerHTML+=sc}if(e){e.add(i)}}}else if(!t.adoptedStyleSheets.includes(o)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]}}return i};var zc=t=>{const n=t.t;const e=t.$hostElement$;const r=n.l;const i=Tc("attachStyles",n._);const o=Gc(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(r&10){e["s-sc"]=o;e.classList.add(o+"-h")}i()};var Yc=(t,n)=>"sc-"+t._;var Jc=(t,n,e,r,i,o,s)=>{if(e===r){return}let c=tc(t,n);let u=n.toLowerCase();if(n==="class"){const n=t.classList;const i=Xc(e);let o=Xc(r);{n.remove(...i.filter((t=>t&&!o.includes(t))));n.add(...o.filter((t=>t&&!i.includes(t))))}}else if(n==="style"){{for(const n in e){if(!r||r[n]==null){if(n.includes("-")){t.style.removeProperty(n)}else{t.style[n]=""}}}}for(const n in r){if(!e||r[n]!==e[n]){if(n.includes("-")){t.style.setProperty(n,r[n])}else{t.style[n]=r[n]}}}}else if(n==="key");else if(n==="ref"){if(r){r(t)}}else if(!c&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(tc(cc,u)){n=u.slice(2)}else{n=u[2]+n.slice(3)}if(e||r){const i=n.endsWith(Kc);n=n.replace(Zc,"");if(e){uc.rel(t,n,e,i)}if(r){uc.ael(t,n,r,i)}}}else{const s=bc(r);if((c||s&&r!==null)&&!i){try{if(!t.tagName.includes("-")){const i=r==null?"":r;if(n==="list"){c=false}else if(e==null||t[n]!=i){if(typeof t.__lookupSetter__(n)==="function"){t[n]=i}else{t.setAttribute(n,i)}}}else if(t[n]!==r){t[n]=r}}catch(t){}}if(r==null||r===false){if(r!==false||t.getAttribute(n)===""){{t.removeAttribute(n)}}}else if((!c||o&4||i)&&!s&&t.nodeType===1){r=r===true?"":r;{t.setAttribute(n,r)}}}};var Vc=/\s/;var Xc=t=>{if(typeof t==="object"&&t&&"baseVal"in t){t=t.baseVal}if(!t||typeof t!=="string"){return[]}return t.split(Vc)};var Kc="Capture";var Zc=new RegExp(Kc+"$");var Qc=(t,n,e,r)=>{const i=n.N.nodeType===11&&n.N.host?n.N.host:n.N;const o=t&&t.O||{};const s=n.O||{};{for(const t of tu(Object.keys(o))){if(!(t in s)){Jc(i,t,o[t],void 0,e,n.l)}}}for(const t of tu(Object.keys(s))){Jc(i,t,o[t],s[t],e,n.l)}};function tu(t){return t.includes("ref")?[...t.filter((t=>t!=="ref")),"ref"]:t}var nu;var eu=false;var ru=(t,n,e)=>{const r=n.T[e];let i=0;let o;let s;if(r.k!==null){o=r.N=cc.document.createTextNode(r.k)}else{if(!eu){eu=r.I==="svg"}if(!cc.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}o=r.N=cc.document.createElementNS(eu?Js:Vs,r.I);if(eu&&r.I==="foreignObject"){eu=false}{Qc(null,r,eu)}if(r.T){for(i=0;i<r.T.length;++i){s=ru(t,r,i);if(s){o.appendChild(s)}}}{if(r.I==="svg"){eu=false}else if(o.tagName==="foreignObject"){eu=true}}}o["s-hn"]=nu;return o};var iu=(t,n,e,r,i,o)=>{let s=t;let c;if(s.shadowRoot&&s.tagName===nu){s=s.shadowRoot}for(;i<=o;++i){if(r[i]){c=ru(null,e,i);if(c){r[i].N=c;au(s,c,n)}}}};var ou=(t,n,e)=>{for(let r=n;r<=e;++r){const n=t[r];if(n){const t=n.N;fu(n);if(t){t.remove()}}}};var su=(t,n,e,r,i=false)=>{let o=0;let s=0;let c=0;let u=0;let f=n.length-1;let a=n[0];let l=n[f];let d=r.length-1;let h=r[0];let p=r[d];let m;let y;while(o<=f&&s<=d){if(a==null){a=n[++o]}else if(l==null){l=n[--f]}else if(h==null){h=r[++s]}else if(p==null){p=r[--d]}else if(cu(a,h,i)){uu(a,h,i);a=n[++o];h=r[++s]}else if(cu(l,p,i)){uu(l,p,i);l=n[--f];p=r[--d]}else if(cu(a,p,i)){uu(a,p,i);au(t,a.N,l.N.nextSibling);a=n[++o];p=r[--d]}else if(cu(l,h,i)){uu(l,h,i);au(t,l.N,a.N);l=n[--f];h=r[++s]}else{c=-1;{for(u=o;u<=f;++u){if(n[u]&&n[u].R!==null&&n[u].R===h.R){c=u;break}}}if(c>=0){y=n[c];if(y.I!==h.I){m=ru(n&&n[s],e,c)}else{uu(y,h,i);n[c]=void 0;m=y.N}h=r[++s]}else{m=ru(n&&n[s],e,s);h=r[++s]}if(m){{au(a.N.parentNode,m,a.N)}}}}if(o>f){iu(t,r[d+1]==null?null:r[d+1].N,e,r,s,d)}else if(s>d){ou(n,o,f)}};var cu=(t,n,e=false)=>{if(t.I===n.I){if(!e){return t.R===n.R}if(e&&!t.R&&n.R){t.R=n.R}return true}return false};var uu=(t,e,r=false)=>{const i=e.N=t.N;const o=t.T;const s=e.T;const c=e.I;const u=e.k;if(u===null){{eu=c==="svg"?true:c==="foreignObject"?false:eu}{Qc(t,e,eu)}if(o!==null&&s!==null){su(i,o,e,s,r)}else if(s!==null){if(t.k!==null){i.textContent=""}iu(i,null,e,s,0,s.length-1)}else if(!r&&n.updatable&&o!==null){ou(o,0,o.length-1)}if(eu&&c==="svg"){eu=false}}else if(t.k!==u){i.data=u}};var fu=t=>{{t.O&&t.O.ref&&t.O.ref(null);t.T&&t.T.map(fu)}};var au=(t,n,e)=>{{return t==null?void 0:t.insertBefore(n,e)}};var lu=(t,n,e=false)=>{const r=t.$hostElement$;const i=t.t;const o=t.A||Nc(null,null);const s=Cc(n);const c=s?n:Ic(null,null,n);nu=r.tagName;if(i.M){c.O=c.O||{};i.M.map((([t,n])=>c.O[n]=r[t]))}if(e&&c.O){for(const t of Object.keys(c.O)){if(r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){c.O[t]=r[t]}}}c.I=null;c.l|=4;t.A=c;c.N=o.N=r.shadowRoot||r;uu(o,c,e)};var du=(t,n)=>{if(n&&!t.L&&n["s-p"]){const e=n["s-p"].push(new Promise((r=>t.L=()=>{n["s-p"].splice(e-1,1);r()})))}};var hu=(t,n)=>{{t.l|=16}if(t.l&4){t.l|=512;return}du(t,t.P);const e=()=>pu(t,n);return gc(e)};var pu=(t,n)=>{const e=t.$hostElement$;const r=Tc("scheduleUpdate",t.t._);const i=t.u;if(!i){throw new Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let o;if(n){o=$u(i,"componentWillLoad",void 0,e)}else{o=$u(i,"componentWillUpdate",void 0,e)}o=mu(o,(()=>$u(i,"componentWillRender",void 0,e)));r();return mu(o,(()=>vu(t,i,n)))};var mu=(t,n)=>yu(t)?t.then(n).catch((t=>{console.error(t);n()})):n();var yu=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";var vu=async(t,n,e)=>{var r;const i=t.$hostElement$;const o=Tc("update",t.t._);const s=i["s-rc"];if(e){zc(t)}const c=Tc("render",t.t._);{bu(t,n,i,e)}if(s){s.map((t=>t()));i["s-rc"]=void 0}c();o();{const n=(r=i["s-p"])!=null?r:[];const e=()=>wu(t);if(n.length===0){e()}else{Promise.all(n).then(e);t.l|=4;n.length=0}}};var gu=null;var bu=(t,n,e,r)=>{try{gu=n;n=n.render();{t.l&=-17}{t.l|=2}{{{lu(t,n,r)}}}}catch(n){nc(n,t.$hostElement$)}gu=null;return null};var _u=()=>gu;var wu=t=>{const n=t.t._;const e=t.$hostElement$;const r=Tc("postUpdate",n);const i=t.u;const o=t.P;$u(i,"componentDidRender",void 0,e);if(!(t.l&64)){t.l|=64;{xu(e)}$u(i,"componentDidLoad",void 0,e);r();{t.v(e);if(!o){Su()}}}else{$u(i,"componentDidUpdate",void 0,e);r()}{t.p(e)}{if(t.L){t.L();t.L=void 0}if(t.l&512){vc((()=>hu(t,false)))}t.l&=-517}};var Eu=t=>{{const n=Ks(t);const e=n.$hostElement$.isConnected;if(e&&(n.l&(2|16))===2){hu(n,false)}return e}};var Su=n=>{vc((()=>Hc(cc,"appload",{detail:{namespace:t}})))};var $u=(t,n,e,r)=>{if(t&&t[n]){try{return t[n](e)}catch(t){nc(t,r)}}return void 0};var xu=t=>{var e;return t.classList.add((e=n.hydratedSelectorName)!=null?e:"hydrated")};var ju=(t,n)=>Ks(t).o.get(n);var ku=(t,n,e,r)=>{const i=Ks(t);if(!i){throw new Error(`Couldn't find host element for "${r._}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const o=i.$hostElement$;const s=i.o.get(n);const c=i.l;const u=i.u;e=Uc(e,r.i[n][0]);const f=Number.isNaN(s)&&Number.isNaN(e);const a=e!==s&&!f;if((!(c&8)||s===void 0)&&a){i.o.set(n,e);if(u){if(r.U&&c&128){const t=r.U[n];if(t){t.map((t=>{try{u[t](e,s,n)}catch(t){nc(t,o)}}))}}if((c&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(e,s,n)===false){return}}hu(i,false)}}}};var Ou=(t,e,r)=>{var i,o;const s=t.prototype;if(e.i||(e.U||t.watchers)){if(t.watchers&&!e.U){e.U=t.watchers}const c=Object.entries((i=e.i)!=null?i:{});c.map((([t,[n]])=>{if(n&31||r&2&&n&32){const{get:i,set:o}=Object.getOwnPropertyDescriptor(s,t)||{};if(i)e.i[t][0]|=2048;if(o)e.i[t][0]|=4096;if(r&1||!i){Object.defineProperty(s,t,{get(){{if((e.i[t][0]&2048)===0){return ju(this,t)}const n=Ks(this);const r=n?n.u:s;if(!r)return;return r[t]}},configurable:true,enumerable:true})}Object.defineProperty(s,t,{set(i){const s=Ks(this);if(o){const r=n&32?this[t]:s.$hostElement$[t];if(typeof r==="undefined"&&s.o.get(t)){i=s.o.get(t)}else if(!s.o.get(t)&&r){s.o.set(t,r)}o.apply(this,[Uc(i,n)]);i=n&32?this[t]:s.$hostElement$[t];ku(this,t,i,e);return}{if((r&1)===0||(e.i[t][0]&4096)===0){ku(this,t,i,e);if(r&1&&!s.u){s.m.then((()=>{if(e.i[t][0]&4096&&s.u[t]!==s.o.get(t)){s.u[t]=i}}))}return}const o=()=>{const r=s.u[t];if(!s.o.get(t)&&r){s.o.set(t,r)}s.u[t]=Uc(i,n);ku(this,t,s.u[t],e)};if(s.u){o()}else{s.m.then((()=>o()))}}}})}else if(r&1&&n&64){Object.defineProperty(s,t,{value(...n){var e;const r=Ks(this);return(e=r==null?void 0:r.h)==null?void 0:e.then((()=>{var e;return(e=r.u)==null?void 0:e[t](...n)}))}})}}));if(r&1){const r=new Map;s.attributeChangedCallback=function(t,i,o){uc.jmp((()=>{var c;const u=r.get(t);if(this.hasOwnProperty(u)&&n.lazyLoad){o=this[u];delete this[u]}else if(s.hasOwnProperty(u)&&typeof this[u]==="number"&&this[u]==o){return}else if(u==null){const n=Ks(this);const r=n==null?void 0:n.l;if(r&&!(r&8)&&r&128&&o!==i){const r=n.u;const s=(c=e.U)==null?void 0:c[t];s==null?void 0:s.forEach((n=>{if(r[n]!=null){r[n].call(r,o,i,t)}}))}return}const f=Object.getOwnPropertyDescriptor(s,u);o=o===null&&typeof this[u]==="boolean"?false:o;if(o!==this[u]&&(!f.get||!!f.set)){this[u]=o}}))};t.observedAttributes=Array.from(new Set([...Object.keys((o=e.U)!=null?o:{}),...c.filter((([t,n])=>n[0]&15)).map((([t,n])=>{var i;const o=n[1]||t;r.set(o,t);if(n[0]&512){(i=e.M)==null?void 0:i.push([t,o])}return o}))]))}}return t};var Tu=async(t,n,e,r)=>{let i;if((n.l&32)===0){n.l|=32;const r=e.S;if(r){const r=rc(e,n);if(r&&"then"in r){const t=Rc();i=await r;t()}else{i=r}if(!i){throw new Error(`Constructor for "${e._}#${n.B}" was not found`)}if(!i.isProxied){{e.U=i.watchers}Ou(i,e,2);i.isProxied=true}const o=Tc("createInstance",e._);{n.l|=8}try{new i(n)}catch(n){nc(n,t)}{n.l&=-9}{n.l|=128}o();Ru(n.u,t)}else{i=t.constructor;const e=t.localName;customElements.whenDefined(e).then((()=>n.l|=128))}if(i&&i.style){let t;if(typeof i.style==="string"){t=i.style}const n=Yc(e);if(!ic.has(n)){const r=Tc("registerStyles",e._);qc(n,t,!!(e.l&1));r()}}}const o=n.P;const s=()=>hu(n,true);if(o&&o["s-rc"]){o["s-rc"].push(s)}else{s()}};var Ru=(t,n)=>{{$u(t,"connectedCallback",void 0,n)}};var Iu=t=>{if((uc.l&1)===0){const n=Ks(t);const e=n.t;const r=Tc("connectedCallback",e._);if(!(n.l&1)){n.l|=1;{let e=t;while(e=e.parentNode||e.host){if(e["s-p"]){du(n,n.P=e);break}}}if(e.i){Object.entries(e.i).map((([n,[e]])=>{if(e&31&&t.hasOwnProperty(n)){const e=t[n];delete t[n];t[n]=e}}))}{Tu(t,n,e)}}else{if(n==null?void 0:n.u){Ru(n.u,t)}else if(n==null?void 0:n.m){n.m.then((()=>Ru(n.u,t)))}}r()}};var Nu=(t,n)=>{{$u(t,"disconnectedCallback",void 0,n||t)}};var Du=async t=>{if((uc.l&1)===0){const n=Ks(t);if(n==null?void 0:n.u){Nu(n.u,t)}else if(n==null?void 0:n.m){n.m.then((()=>Nu(n.u,t)))}}if(Wc.has(t)){Wc.delete(t)}if(t.shadowRoot&&Wc.has(t.shadowRoot)){Wc.delete(t.shadowRoot)}};var Cu=(t,n={})=>{var e;if(!cc.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=Tc();const i=[];const o=n.exclude||[];const s=cc.customElements;const c=cc.document.head;const u=c.querySelector("meta[charset]");const f=cc.document.createElement("style");const a=[];let l;let d=true;Object.assign(uc,n);uc.j=new URL(n.resourcesUrl||"./",cc.document.baseURI).href;let h=false;t.map((t=>{t[1].map((n=>{var e;const r={l:n[0],_:n[1],i:n[2],F:n[3]};if(r.l&4){h=true}{r.i=n[2]}{r.M=[]}{r.U=(e=n[4])!=null?e:{}}const c=r._;const u=class extends HTMLElement{constructor(t){super(t);this.hasRegisteredEventListeners=false;t=this;Qs(t,r);if(r.l&1){{if(!t.shadowRoot){Oc.call(t,r)}else{if(t.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${r._}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){Ks(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(l){clearTimeout(l);l=null}if(d){a.push(this)}else{uc.jmp((()=>Iu(this)))}}disconnectedCallback(){uc.jmp((()=>Du(this)));uc.raf((()=>{var t;const n=Ks(this);const e=a.findIndex((t=>t===this));if(e>-1){a.splice(e,1)}if(((t=n==null?void 0:n.A)==null?void 0:t.N)instanceof Node&&!n.A.N.isConnected){delete n.A.N}}))}componentOnReady(){return Ks(this).m}};r.S=t[0];if(!o.includes(c)&&!s.get(c)){i.push(c);s.define(c,Ou(u,r,1))}}))}));if(i.length>0){if(h){f.textContent+=sc}{f.textContent+=i.sort()+oc}if(f.innerHTML.length){f.setAttribute("data-styles","");const t=(e=uc.C)!=null?e:_c(cc.document);if(t!=null){f.setAttribute("nonce",t)}c.insertBefore(f,u?u.nextSibling:c.firstChild)}}d=false;if(a.length){a.map((t=>t.connectedCallback()))}else{{uc.jmp((()=>l=setTimeout(Su,30)))}}r()};var Au=t=>uc.C=t;export{Je as a,Cu as b,Ye as c,qe as d,Ge as e,Bc as f,qs as g,Ic as h,Fc as i,_u as j,Eu as k,fc as p,Zs as r,Au as s};
|
|
3
|
+
//# sourceMappingURL=p-BuVfV0zo.js.map
|