botframework-webchat-core 4.18.1 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/activity.js +3 -0
- package/boot/deprecated/activity.js +7 -0
- package/boot/deprecated/activity.mjs +5 -0
- package/boot/deprecated/graph.js +7 -0
- package/boot/deprecated/graph.mjs +5 -0
- package/boot/deprecated/internal.js +7 -0
- package/boot/deprecated/internal.mjs +5 -0
- package/dist/WebChatActivity-CYqxBG_4.d.mts +271 -0
- package/dist/WebChatActivity-CYqxBG_4.d.ts +271 -0
- package/dist/_dtsroll-chunks/B7Whm73Q-tagged.d.ts +71 -0
- package/dist/_dtsroll-chunks/C-MxR98A-botframework-webchat-core-debug-api.d.ts +135 -0
- package/dist/_dtsroll-chunks/CAquHfZK-botframework-webchat-base.utils.d.ts +17 -0
- package/dist/_dtsroll-chunks/CDVed0Q--botframework-webchat-core.org-schema.d.ts +601 -0
- package/dist/_dtsroll-chunks/vlDgTKWF-botframework-webchat-core-graph.d.ts +239 -0
- package/dist/botframework-webchat-core.activity.d.mts +23 -0
- package/dist/botframework-webchat-core.activity.d.ts +23 -0
- package/dist/botframework-webchat-core.activity.js +2 -0
- package/dist/botframework-webchat-core.activity.js.map +1 -0
- package/dist/botframework-webchat-core.activity.mjs +2 -0
- package/dist/botframework-webchat-core.activity.mjs.map +1 -0
- package/dist/botframework-webchat-core.d.mts +267 -662
- package/dist/botframework-webchat-core.d.ts +556 -0
- package/dist/botframework-webchat-core.graph.d.mts +9 -0
- package/dist/botframework-webchat-core.graph.d.ts +9 -0
- package/dist/botframework-webchat-core.graph.js +2 -0
- package/dist/botframework-webchat-core.graph.js.map +1 -0
- package/dist/botframework-webchat-core.graph.mjs +2 -0
- package/dist/botframework-webchat-core.graph.mjs.map +1 -0
- package/dist/botframework-webchat-core.internal.d.mts +61 -0
- package/dist/botframework-webchat-core.internal.d.ts +61 -0
- package/dist/botframework-webchat-core.internal.js +2 -0
- package/dist/botframework-webchat-core.internal.js.map +1 -0
- package/dist/botframework-webchat-core.internal.mjs +2 -0
- package/dist/botframework-webchat-core.internal.mjs.map +1 -0
- package/dist/botframework-webchat-core.js +2 -0
- package/dist/botframework-webchat-core.js.map +1 -0
- package/dist/botframework-webchat-core.json-ld.d.mts +2 -0
- package/dist/botframework-webchat-core.json-ld.d.ts +2 -0
- package/dist/botframework-webchat-core.json-ld.js +2 -0
- package/dist/botframework-webchat-core.json-ld.js.map +1 -0
- package/dist/botframework-webchat-core.json-ld.mjs +2 -0
- package/dist/botframework-webchat-core.json-ld.mjs.map +1 -0
- package/dist/botframework-webchat-core.mjs +1 -2
- package/dist/botframework-webchat-core.mjs.map +1 -1
- package/dist/botframework-webchat-core.org-schema.d.mts +2 -0
- package/dist/botframework-webchat-core.org-schema.d.ts +2 -0
- package/dist/botframework-webchat-core.org-schema.js +2 -0
- package/dist/botframework-webchat-core.org-schema.js.map +1 -0
- package/dist/botframework-webchat-core.org-schema.mjs +2 -0
- package/dist/botframework-webchat-core.org-schema.mjs.map +1 -0
- package/dist/chunk-A4GEFYZJ.mjs +2 -0
- package/dist/chunk-A4GEFYZJ.mjs.map +1 -0
- package/dist/chunk-HZWWJL43.mjs +2 -0
- package/dist/chunk-HZWWJL43.mjs.map +1 -0
- package/dist/chunk-ICNZKQJW.mjs +2 -0
- package/dist/chunk-ICNZKQJW.mjs.map +1 -0
- package/dist/chunk-K6E6QQMQ.js +2 -0
- package/dist/chunk-K6E6QQMQ.js.map +1 -0
- package/dist/chunk-KPT5FBH2.mjs +2 -0
- package/dist/chunk-KPT5FBH2.mjs.map +1 -0
- package/dist/chunk-LO5BZSVE.js +2 -0
- package/dist/chunk-LO5BZSVE.js.map +1 -0
- package/dist/chunk-LP2X2JTR.js +2 -0
- package/dist/chunk-LP2X2JTR.js.map +1 -0
- package/dist/chunk-RUERYYZO.js +2 -0
- package/dist/chunk-RUERYYZO.js.map +1 -0
- package/dist/chunk-XOE3AOSM.js +2 -0
- package/dist/chunk-XOE3AOSM.js.map +1 -0
- package/dist/chunk-Y6ZDNVRT.mjs +2 -0
- package/dist/chunk-Y6ZDNVRT.mjs.map +1 -0
- package/{lib/createStore.d.ts → dist/createStore-CcvouBrW.d.mts} +29 -7
- package/dist/createStore-CcvouBrW.d.ts +65 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/graph.js +3 -0
- package/internal.js +3 -0
- package/json-ld.js +3 -0
- package/org-schema.js +3 -0
- package/package.json +147 -73
- package/src/__tests__/activityFromBot.spec.js +2 -0
- package/src/__tests__/addMetaTag.spec.js +8 -0
- package/src/__tests__/addMetaTag.spec.mjs +8 -0
- package/src/__tests__/connectSaga.spec.js +2 -0
- package/src/__tests__/deleteKey.spec.js +2 -0
- package/src/__tests__/detectSlowConnectionSaga.spec.js +3 -1
- package/src/__tests__/observeOnce.spec.js +2 -0
- package/src/__tests__/speakableActivity.spec.js +2 -0
- package/src/__tests__/uniqueID.spec.js +2 -0
- package/src/actions/clearSuggestedActions.ts +20 -0
- package/src/actions/{connect.js → connect.ts} +9 -1
- package/src/actions/muteVoiceRecording.ts +17 -0
- package/src/actions/postVoiceActivity.ts +21 -0
- package/src/actions/registerActionSink.ts +29 -0
- package/src/actions/registerVoiceHandler.ts +24 -0
- package/src/actions/{sendEvent.js → sendEvent.ts} +1 -1
- package/src/actions/{sendMessageBack.js → sendMessageBack.ts} +1 -1
- package/src/actions/{sendPostBack.js → sendPostBack.ts} +1 -1
- package/src/actions/{setDictateInterims.js → setDictateInterims.ts} +1 -1
- package/src/actions/{setDictateState.js → setDictateState.ts} +1 -1
- package/src/actions/{setLanguage.js → setLanguage.ts} +1 -1
- package/src/actions/{setSendBox.js → setSendBox.ts} +1 -1
- package/src/actions/{setSendTimeout.js → setSendTimeout.ts} +1 -1
- package/src/actions/setSendTypingIndicator.ts +1 -1
- package/src/actions/setSuggestedActions.ts +35 -0
- package/src/actions/setVoiceState.ts +21 -0
- package/src/actions/startVoiceRecording.ts +17 -0
- package/src/actions/stopVoiceRecording.ts +17 -0
- package/src/actions/{submitSendBox.js → submitSendBox.ts} +1 -1
- package/src/actions/unmuteVoiceRecording.ts +17 -0
- package/src/actions/unregisterActionSink.ts +29 -0
- package/src/actions/unregisterVoiceHandler.ts +19 -0
- package/src/boot/activity.ts +19 -0
- package/src/boot/graph.ts +18 -0
- package/src/boot/internal.ts +11 -0
- package/src/boot/json-ld.ts +6 -0
- package/src/boot/org-schema.ts +29 -0
- package/src/buildInfo.ts +9 -0
- package/src/constants/{ActivityClientState.js → ActivityClientState.ts} +3 -3
- package/src/constants/DictateState.ts +10 -0
- package/src/createPromiseQueue.js +8 -6
- package/src/createReducer.ts +28 -20
- package/src/createSagas.ts +6 -3
- package/src/createStore.ts +26 -10
- package/src/env.d.ts +12 -0
- package/src/graph/createGraphFromStore.ts +121 -0
- package/src/index.ts +62 -45
- package/src/internal/StoreDebugAPIRegistry.ts +4 -0
- package/src/internal/actions/setRawState.ts +48 -0
- package/src/internal/types/suggestedActions.ts +11 -0
- package/src/internal/types/suggestedActionsOriginActivity.ts +16 -0
- package/src/reducers/activities/combineActivitiesReducer.ts +58 -0
- package/src/reducers/activities/createGroupedActivitiesReducer.ts +297 -0
- package/src/reducers/activities/patchActivity.ts +37 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.activity.spec.ts +144 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.howTo.spec.ts +148 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.howToWithLivestream.spec.ts +248 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.livestream.spec.ts +156 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.ts +177 -0
- package/src/reducers/activities/sort/private/computePartListTimestamp.ts +9 -0
- package/src/reducers/activities/sort/private/computeSortedActivities.ts +51 -0
- package/src/reducers/activities/sort/private/getLogicalTimestamp.spec.ts +49 -0
- package/src/reducers/activities/sort/private/getLogicalTimestamp.ts +33 -0
- package/src/reducers/activities/sort/private/getPartGroupingMetadataMap.spec.ts +92 -0
- package/src/reducers/activities/sort/private/getPartGroupingMetadataMap.ts +37 -0
- package/src/reducers/activities/sort/private/insertSorted.spec.ts +106 -0
- package/src/reducers/activities/sort/private/insertSorted.ts +18 -0
- package/src/reducers/activities/sort/property/LocalId.ts +60 -0
- package/src/reducers/activities/sort/property/Position.ts +39 -0
- package/src/reducers/activities/sort/property/ReceivedAt.ts +45 -0
- package/src/reducers/activities/sort/property/SendStatus.ts +51 -0
- package/src/reducers/activities/sort/queryLocalIdByActivityId.ts +6 -0
- package/src/reducers/activities/sort/queryLocalIdByClientActivityId.ts +6 -0
- package/src/reducers/activities/sort/types.ts +80 -0
- package/src/reducers/activities/sort/updateActivityChannelData.ts +101 -0
- package/src/reducers/activities/sort/updateSendState.ts +22 -0
- package/src/reducers/activities/sort/upsert.activity.spec.ts +500 -0
- package/src/reducers/activities/sort/upsert.howTo.spec.ts +368 -0
- package/src/reducers/activities/sort/upsert.howToWithLivestream.spec.ts +384 -0
- package/src/reducers/activities/sort/upsert.livestream.spec.ts +418 -0
- package/src/reducers/activities/sort/upsert.ts +498 -0
- package/src/reducers/activities/tsconfig.json +4 -0
- package/src/reducers/createNotificationsReducer.ts +4 -4
- package/src/reducers/suggestedActions.ts +21 -0
- package/src/reducers/suggestedActionsOriginActivity.ts +24 -0
- package/src/reducers/voiceActivity.ts +102 -0
- package/src/sagas/actionSinkSaga.ts +39 -0
- package/src/sagas/observeActivitySaga.ts +51 -1
- package/src/sagas/postActivitySaga.ts +17 -10
- package/src/sagas/postVoiceActivitySaga.ts +76 -0
- package/src/sagas/queueIncomingActivitySaga.ts +10 -4
- package/src/sagas/sendMessageToPostActivitySaga.ts +4 -1
- package/src/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +10 -4
- package/src/sagas/startDictateOnSpeakCompleteSaga.js +3 -3
- package/src/sagas/startSpeakActivityOnPostActivitySaga.js +15 -5
- package/src/sagas/stopDictateOnCardActionSaga.js +11 -3
- package/src/sagas/stopSpeakingActivityOnInputSaga.js +22 -4
- package/src/selectors/combineSelectors.ts +1 -1
- package/src/tsconfig.json +3 -15
- package/src/types/StoreDebugAPI.ts +25 -0
- package/src/types/WebChatActivity.ts +31 -14
- package/src/types/external/DirectLineActivity.ts +1 -1
- package/src/types/external/Observable.ts +4 -1
- package/src/types/internal/GlobalScopeClock.ts +10 -10
- package/src/types/internal/ReduxState.ts +2 -0
- package/src/types/internal/WebChatOutgoingActivity.ts +1 -1
- package/src/utils/dateToLocaleISOString.chatham.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.japan.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.newfoundland.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.pacific.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.utc.spec.js +1 -3
- package/src/utils/deleteKey.ts +1 -1
- package/src/utils/getActivityLivestreamingMetadata.spec.ts +297 -0
- package/src/utils/getActivityLivestreamingMetadata.ts +197 -0
- package/src/utils/getOrgSchemaMessage.spec.ts +4 -1
- package/src/utils/getOrgSchemaMessage.ts +16 -16
- package/src/utils/onErrorResumeNext.ts +1 -1
- package/src/utils/voiceActivity/getVoiceActivityRole.spec.ts +150 -0
- package/src/utils/voiceActivity/getVoiceActivityRole.ts +16 -0
- package/src/utils/voiceActivity/getVoiceActivityText.spec.ts +100 -0
- package/src/utils/voiceActivity/getVoiceActivityText.ts +11 -0
- package/src/utils/voiceActivity/isVoiceActivity.spec.ts +202 -0
- package/src/utils/voiceActivity/isVoiceActivity.ts +21 -0
- package/src/utils/voiceActivity/isVoiceTranscriptActivity.spec.ts +224 -0
- package/src/utils/voiceActivity/isVoiceTranscriptActivity.ts +24 -0
- package/dist/botframework-webchat-core.mjs.LEGAL.txt +0 -0
- package/lib/actions/clearSuggestedActions.js +0 -15
- package/lib/actions/connect.js +0 -33
- package/lib/actions/connectionStatusUpdate.js +0 -20
- package/lib/actions/deleteActivity.d.ts +0 -13
- package/lib/actions/deleteActivity.d.ts.map +0 -1
- package/lib/actions/deleteActivity.js +0 -19
- package/lib/actions/disconnect.js +0 -21
- package/lib/actions/dismissNotification.d.ts +0 -12
- package/lib/actions/dismissNotification.d.ts.map +0 -1
- package/lib/actions/dismissNotification.js +0 -19
- package/lib/actions/emitTypingIndicator.js +0 -15
- package/lib/actions/incomingActivity.d.ts +0 -14
- package/lib/actions/incomingActivity.d.ts.map +0 -1
- package/lib/actions/incomingActivity.js +0 -19
- package/lib/actions/markActivity.d.ts +0 -17
- package/lib/actions/markActivity.d.ts.map +0 -1
- package/lib/actions/markActivity.js +0 -22
- package/lib/actions/postActivity.d.ts +0 -64
- package/lib/actions/postActivity.d.ts.map +0 -1
- package/lib/actions/postActivity.js +0 -31
- package/lib/actions/queueIncomingActivity.js +0 -18
- package/lib/actions/reconnect.js +0 -17
- package/lib/actions/sagaError.d.ts +0 -8
- package/lib/actions/sagaError.d.ts.map +0 -1
- package/lib/actions/sagaError.js +0 -15
- package/lib/actions/sendEvent.js +0 -19
- package/lib/actions/sendFiles.d.ts +0 -19
- package/lib/actions/sendFiles.d.ts.map +0 -1
- package/lib/actions/sendFiles.js +0 -20
- package/lib/actions/sendMessage.d.ts +0 -19
- package/lib/actions/sendMessage.d.ts.map +0 -1
- package/lib/actions/sendMessage.js +0 -24
- package/lib/actions/sendMessageBack.js +0 -20
- package/lib/actions/sendPostBack.js +0 -18
- package/lib/actions/setClockSkewAdjustment.js +0 -12
- package/lib/actions/setDictateInterims.js +0 -18
- package/lib/actions/setDictateState.js +0 -18
- package/lib/actions/setLanguage.js +0 -18
- package/lib/actions/setNotification.d.ts +0 -10
- package/lib/actions/setNotification.d.ts.map +0 -1
- package/lib/actions/setNotification.js +0 -37
- package/lib/actions/setReferenceGrammarID.js +0 -18
- package/lib/actions/setSendBox.js +0 -18
- package/lib/actions/setSendBoxAttachments.d.ts +0 -13
- package/lib/actions/setSendBoxAttachments.d.ts.map +0 -1
- package/lib/actions/setSendBoxAttachments.js +0 -18
- package/lib/actions/setSendTimeout.js +0 -18
- package/lib/actions/setSendTypingIndicator.d.ts +0 -11
- package/lib/actions/setSendTypingIndicator.d.ts.map +0 -1
- package/lib/actions/setSendTypingIndicator.js +0 -18
- package/lib/actions/setSuggestedActions.js +0 -20
- package/lib/actions/startDictate.js +0 -15
- package/lib/actions/startSpeakingActivity.js +0 -15
- package/lib/actions/stopDictate.js +0 -15
- package/lib/actions/stopSpeakingActivity.js +0 -15
- package/lib/actions/submitSendBox.js +0 -22
- package/lib/actions/updateConnectionStatus.js +0 -18
- package/lib/constants/ActivityClientState.js +0 -16
- package/lib/constants/DictateState.js +0 -17
- package/lib/createPromiseQueue.js +0 -30
- package/lib/createReducer.d.ts +0 -60
- package/lib/createReducer.d.ts.map +0 -1
- package/lib/createReducer.js +0 -45
- package/lib/createSagas.d.ts +0 -8
- package/lib/createSagas.d.ts.map +0 -1
- package/lib/createSagas.js +0 -112
- package/lib/createStore.d.ts.map +0 -1
- package/lib/createStore.js +0 -131
- package/lib/definitions/activityFromBot.js +0 -11
- package/lib/definitions/speakableActivity.js +0 -10
- package/lib/definitions/speakingActivity.js +0 -13
- package/lib/index.d.ts +0 -76
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -309
- package/lib/reducers/connectivityStatus.js +0 -49
- package/lib/reducers/createActivitiesReducer.d.ts +0 -12
- package/lib/reducers/createActivitiesReducer.d.ts.map +0 -1
- package/lib/reducers/createActivitiesReducer.js +0 -267
- package/lib/reducers/createInternalReducer.d.ts +0 -10
- package/lib/reducers/createInternalReducer.d.ts.map +0 -1
- package/lib/reducers/createInternalReducer.js +0 -19
- package/lib/reducers/createNotificationsReducer.d.ts +0 -11
- package/lib/reducers/createNotificationsReducer.d.ts.map +0 -1
- package/lib/reducers/createNotificationsReducer.js +0 -55
- package/lib/reducers/createTypingReducer.d.ts +0 -14
- package/lib/reducers/createTypingReducer.d.ts.map +0 -1
- package/lib/reducers/createTypingReducer.js +0 -50
- package/lib/reducers/dictateInterims.js +0 -23
- package/lib/reducers/dictateState.js +0 -38
- package/lib/reducers/language.js +0 -23
- package/lib/reducers/private/findBeforeAfter.d.ts +0 -4
- package/lib/reducers/private/findBeforeAfter.d.ts.map +0 -1
- package/lib/reducers/private/findBeforeAfter.js +0 -24
- package/lib/reducers/readyState.js +0 -23
- package/lib/reducers/referenceGrammarID.js +0 -23
- package/lib/reducers/sendBoxAttachments.d.ts +0 -9
- package/lib/reducers/sendBoxAttachments.d.ts.map +0 -1
- package/lib/reducers/sendBoxAttachments.js +0 -23
- package/lib/reducers/sendBoxValue.js +0 -23
- package/lib/reducers/sendTimeout.js +0 -23
- package/lib/reducers/sendTypingIndicator.js +0 -23
- package/lib/reducers/shouldSpeakIncomingActivity.js +0 -25
- package/lib/reducers/suggestedActions.js +0 -32
- package/lib/sagas/clearSuggestedActionsOnPostActivitySaga.js +0 -62
- package/lib/sagas/connectSaga.js +0 -445
- package/lib/sagas/connectionStatusToNotificationSaga.js +0 -107
- package/lib/sagas/connectionStatusUpdateSaga.js +0 -63
- package/lib/sagas/detectSlowConnectionSaga.d.ts +0 -5
- package/lib/sagas/detectSlowConnectionSaga.d.ts.map +0 -1
- package/lib/sagas/detectSlowConnectionSaga.js +0 -50
- package/lib/sagas/effects/forever.js +0 -19
- package/lib/sagas/effects/forkPut.js +0 -51
- package/lib/sagas/effects/observeEach.js +0 -45
- package/lib/sagas/effects/observeOnce.d.ts +0 -3
- package/lib/sagas/effects/observeOnce.d.ts.map +0 -1
- package/lib/sagas/effects/observeOnce.js +0 -42
- package/lib/sagas/effects/whileConnected.d.ts +0 -7
- package/lib/sagas/effects/whileConnected.d.ts.map +0 -1
- package/lib/sagas/effects/whileConnected.js +0 -55
- package/lib/sagas/emitTypingIndicatorToPostActivitySaga.js +0 -63
- package/lib/sagas/markAllAsSpokenOnStopSpeakActivitySaga.js +0 -78
- package/lib/sagas/observeActivitySaga.d.ts +0 -2
- package/lib/sagas/observeActivitySaga.d.ts.map +0 -1
- package/lib/sagas/observeActivitySaga.js +0 -117
- package/lib/sagas/postActivitySaga.d.ts +0 -3
- package/lib/sagas/postActivitySaga.d.ts.map +0 -1
- package/lib/sagas/postActivitySaga.js +0 -264
- package/lib/sagas/queueIncomingActivitySaga.d.ts +0 -3
- package/lib/sagas/queueIncomingActivitySaga.d.ts.map +0 -1
- package/lib/sagas/queueIncomingActivitySaga.js +0 -197
- package/lib/sagas/sendEventToPostActivitySaga.js +0 -68
- package/lib/sagas/sendFilesToPostActivitySaga.js +0 -85
- package/lib/sagas/sendMessageBackToPostActivitySaga.js +0 -70
- package/lib/sagas/sendMessageToPostActivitySaga.d.ts +0 -2
- package/lib/sagas/sendMessageToPostActivitySaga.d.ts.map +0 -1
- package/lib/sagas/sendMessageToPostActivitySaga.js +0 -91
- package/lib/sagas/sendPostBackToPostActivitySaga.js +0 -69
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts +0 -3
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts.map +0 -1
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.js +0 -145
- package/lib/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +0 -106
- package/lib/sagas/startDictateOnSpeakCompleteSaga.js +0 -65
- package/lib/sagas/startSpeakActivityOnPostActivitySaga.js +0 -62
- package/lib/sagas/stopDictateOnCardActionSaga.js +0 -65
- package/lib/sagas/stopSpeakingActivityOnInputSaga.js +0 -68
- package/lib/sagas/submitSendBoxSaga.js +0 -84
- package/lib/selectors/activities.d.ts +0 -9
- package/lib/selectors/activities.d.ts.map +0 -1
- package/lib/selectors/activities.js +0 -33
- package/lib/selectors/combineSelectors.js +0 -31
- package/lib/selectors/dictateState.js +0 -12
- package/lib/selectors/language.d.ts +0 -4
- package/lib/selectors/language.d.ts.map +0 -1
- package/lib/selectors/language.js +0 -12
- package/lib/selectors/notifications.js +0 -13
- package/lib/selectors/sendBoxAttachments.js +0 -11
- package/lib/selectors/sendBoxValue.js +0 -12
- package/lib/selectors/sendTimeout.d.ts +0 -4
- package/lib/selectors/sendTimeout.d.ts.map +0 -1
- package/lib/selectors/sendTimeout.js +0 -12
- package/lib/selectors/sendTypingIndicator.d.ts +0 -4
- package/lib/selectors/sendTypingIndicator.d.ts.map +0 -1
- package/lib/selectors/sendTypingIndicator.js +0 -12
- package/lib/selectors/shouldSpeakIncomingActivity.js +0 -12
- package/lib/types/AnyAnd.d.ts +0 -2
- package/lib/types/AnyAnd.d.ts.map +0 -1
- package/lib/types/AnyAnd.js +0 -6
- package/lib/types/GlobalScopePonyfill.d.ts +0 -8
- package/lib/types/GlobalScopePonyfill.d.ts.map +0 -1
- package/lib/types/GlobalScopePonyfill.js +0 -6
- package/lib/types/OneOrMany.d.ts +0 -3
- package/lib/types/OneOrMany.d.ts.map +0 -1
- package/lib/types/OneOrMany.js +0 -6
- package/lib/types/SendBoxAttachment.d.ts +0 -5
- package/lib/types/SendBoxAttachment.d.ts.map +0 -1
- package/lib/types/SendBoxAttachment.js +0 -6
- package/lib/types/WebChatActivity.d.ts +0 -128
- package/lib/types/WebChatActivity.d.ts.map +0 -1
- package/lib/types/WebChatActivity.js +0 -6
- package/lib/types/external/DirectLineActivity.d.ts +0 -3
- package/lib/types/external/DirectLineActivity.d.ts.map +0 -1
- package/lib/types/external/DirectLineActivity.js +0 -6
- package/lib/types/external/DirectLineAnimationCard.d.ts +0 -6
- package/lib/types/external/DirectLineAnimationCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineAnimationCard.js +0 -6
- package/lib/types/external/DirectLineAttachment.d.ts +0 -9
- package/lib/types/external/DirectLineAttachment.d.ts.map +0 -1
- package/lib/types/external/DirectLineAttachment.js +0 -6
- package/lib/types/external/DirectLineAudioCard.d.ts +0 -6
- package/lib/types/external/DirectLineAudioCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineAudioCard.js +0 -6
- package/lib/types/external/DirectLineBasicCardEssence.d.ts +0 -12
- package/lib/types/external/DirectLineBasicCardEssence.d.ts.map +0 -1
- package/lib/types/external/DirectLineBasicCardEssence.js +0 -6
- package/lib/types/external/DirectLineCardAction.d.ts +0 -110
- package/lib/types/external/DirectLineCardAction.d.ts.map +0 -1
- package/lib/types/external/DirectLineCardAction.js +0 -6
- package/lib/types/external/DirectLineCardImage.d.ts +0 -8
- package/lib/types/external/DirectLineCardImage.d.ts.map +0 -1
- package/lib/types/external/DirectLineCardImage.js +0 -6
- package/lib/types/external/DirectLineHeroCard.d.ts +0 -6
- package/lib/types/external/DirectLineHeroCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineHeroCard.js +0 -6
- package/lib/types/external/DirectLineJSBotConnection.d.ts +0 -3
- package/lib/types/external/DirectLineJSBotConnection.d.ts.map +0 -1
- package/lib/types/external/DirectLineJSBotConnection.js +0 -6
- package/lib/types/external/DirectLineMediaCardEssence.d.ts +0 -21
- package/lib/types/external/DirectLineMediaCardEssence.d.ts.map +0 -1
- package/lib/types/external/DirectLineMediaCardEssence.js +0 -6
- package/lib/types/external/DirectLineOAuthCard.d.ts +0 -8
- package/lib/types/external/DirectLineOAuthCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineOAuthCard.js +0 -6
- package/lib/types/external/DirectLineReceiptCard.d.ts +0 -28
- package/lib/types/external/DirectLineReceiptCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineReceiptCard.js +0 -6
- package/lib/types/external/DirectLineSignInCard.d.ts +0 -8
- package/lib/types/external/DirectLineSignInCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineSignInCard.js +0 -6
- package/lib/types/external/DirectLineSuggestedAction.d.ts +0 -7
- package/lib/types/external/DirectLineSuggestedAction.d.ts.map +0 -1
- package/lib/types/external/DirectLineSuggestedAction.js +0 -6
- package/lib/types/external/DirectLineThumbnailCard.d.ts +0 -6
- package/lib/types/external/DirectLineThumbnailCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineThumbnailCard.js +0 -6
- package/lib/types/external/DirectLineVideoCard.d.ts +0 -6
- package/lib/types/external/DirectLineVideoCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineVideoCard.js +0 -6
- package/lib/types/external/Observable.d.ts +0 -49
- package/lib/types/external/Observable.d.ts.map +0 -1
- package/lib/types/external/Observable.js +0 -6
- package/lib/types/external/OrgSchema/Action.d.ts +0 -29
- package/lib/types/external/OrgSchema/Action.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Action.js +0 -38
- package/lib/types/external/OrgSchema/Claim.d.ts +0 -35
- package/lib/types/external/OrgSchema/Claim.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Claim.js +0 -41
- package/lib/types/external/OrgSchema/CreativeWork.d.ts +0 -57
- package/lib/types/external/OrgSchema/CreativeWork.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/CreativeWork.js +0 -52
- package/lib/types/external/OrgSchema/DefinedTerm.d.ts +0 -26
- package/lib/types/external/OrgSchema/DefinedTerm.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/DefinedTerm.js +0 -33
- package/lib/types/external/OrgSchema/Project.d.ts +0 -20
- package/lib/types/external/OrgSchema/Project.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Project.js +0 -32
- package/lib/types/external/OrgSchema/Thing.d.ts +0 -53
- package/lib/types/external/OrgSchema/Thing.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Thing.js +0 -54
- package/lib/types/external/OrgSchema/VoteAction.d.ts +0 -22
- package/lib/types/external/OrgSchema/VoteAction.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/VoteAction.js +0 -34
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts +0 -3
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.js +0 -22
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts +0 -4
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.js +0 -15
- package/lib/types/internal/GlobalScopeClock.d.ts +0 -15
- package/lib/types/internal/GlobalScopeClock.d.ts.map +0 -1
- package/lib/types/internal/GlobalScopeClock.js +0 -6
- package/lib/types/internal/Notification.d.ts +0 -10
- package/lib/types/internal/Notification.d.ts.map +0 -1
- package/lib/types/internal/Notification.js +0 -6
- package/lib/types/internal/ReduxState.d.ts +0 -19
- package/lib/types/internal/ReduxState.d.ts.map +0 -1
- package/lib/types/internal/ReduxState.js +0 -6
- package/lib/types/internal/SendStatus.d.ts +0 -7
- package/lib/types/internal/SendStatus.d.ts.map +0 -1
- package/lib/types/internal/SendStatus.js +0 -19
- package/lib/types/internal/WebChatOutgoingActivity.d.ts +0 -49
- package/lib/types/internal/WebChatOutgoingActivity.d.ts.map +0 -1
- package/lib/types/internal/WebChatOutgoingActivity.js +0 -6
- package/lib/utils/dateToLocaleISOString.d.ts +0 -2
- package/lib/utils/dateToLocaleISOString.d.ts.map +0 -1
- package/lib/utils/dateToLocaleISOString.js +0 -52
- package/lib/utils/deleteKey.d.ts +0 -2
- package/lib/utils/deleteKey.d.ts.map +0 -1
- package/lib/utils/deleteKey.js +0 -30
- package/lib/utils/getOrgSchemaMessage.d.ts +0 -4
- package/lib/utils/getOrgSchemaMessage.d.ts.map +0 -1
- package/lib/utils/getOrgSchemaMessage.js +0 -21
- package/lib/utils/isForbiddenPropertyName.d.ts +0 -2
- package/lib/utils/isForbiddenPropertyName.d.ts.map +0 -1
- package/lib/utils/isForbiddenPropertyName.js +0 -16
- package/lib/utils/onErrorResumeNext.d.ts +0 -3
- package/lib/utils/onErrorResumeNext.d.ts.map +0 -1
- package/lib/utils/onErrorResumeNext.js +0 -19
- package/lib/utils/once.d.ts +0 -2
- package/lib/utils/once.d.ts.map +0 -1
- package/lib/utils/once.js +0 -16
- package/lib/utils/singleToArray.d.ts +0 -2
- package/lib/utils/singleToArray.d.ts.map +0 -1
- package/lib/utils/singleToArray.js +0 -10
- package/lib/utils/sleep.d.ts +0 -3
- package/lib/utils/sleep.d.ts.map +0 -1
- package/lib/utils/sleep.js +0 -12
- package/lib/utils/uniqueID.d.ts +0 -2
- package/lib/utils/uniqueID.d.ts.map +0 -1
- package/lib/utils/uniqueID.js +0 -14
- package/lib/utils/warnOnce.d.ts +0 -2
- package/lib/utils/warnOnce.d.ts.map +0 -1
- package/lib/utils/warnOnce.js +0 -14
- package/src/actions/clearSuggestedActions.js +0 -9
- package/src/actions/setSuggestedActions.js +0 -12
- package/src/constants/DictateState.js +0 -7
- package/src/reducers/createActivitiesReducer.ts +0 -304
- package/src/reducers/private/findBeforeAfter.spec.ts +0 -90
- package/src/reducers/private/findBeforeAfter.ts +0 -30
- package/src/reducers/suggestedActions.js +0 -23
- package/src/types/OneOrMany.ts +0 -3
- package/src/types/external/OrgSchema/Action.spec.ts +0 -35
- package/src/types/external/OrgSchema/Action.ts +0 -52
- package/src/types/external/OrgSchema/Claim.spec.ts +0 -45
- package/src/types/external/OrgSchema/Claim.ts +0 -48
- package/src/types/external/OrgSchema/CreativeWork.parseCreativeWork.spec.ts +0 -51
- package/src/types/external/OrgSchema/CreativeWork.ts +0 -83
- package/src/types/external/OrgSchema/DefinedTerm.ts +0 -37
- package/src/types/external/OrgSchema/Project.parseProject.spec.ts +0 -17
- package/src/types/external/OrgSchema/Project.ts +0 -29
- package/src/types/external/OrgSchema/Thing.parseThing.spec.ts +0 -54
- package/src/types/external/OrgSchema/Thing.ts +0 -94
- package/src/types/external/OrgSchema/VoteAction.spec.ts +0 -35
- package/src/types/external/OrgSchema/VoteAction.ts +0 -31
- package/src/types/external/OrgSchema/private/orgSchemaProperties.spec.ts +0 -41
- package/src/types/external/OrgSchema/private/orgSchemaProperties.ts +0 -23
- package/src/types/external/OrgSchema/private/orgSchemaProperty.spec.ts +0 -21
- package/src/types/external/OrgSchema/private/orgSchemaProperty.ts +0 -6
- package/src/utils/isForbiddenPropertyName.spec.js +0 -6
- package/src/utils/isForbiddenPropertyName.ts +0 -33
- package/src/utils/singleToArray.ts +0 -3
- package/src/utils/warnOnce.ts +0 -5
- /package/src/actions/{connectionStatusUpdate.js → connectionStatusUpdate.ts} +0 -0
- /package/src/actions/{disconnect.js → disconnect.ts} +0 -0
- /package/src/actions/{emitTypingIndicator.js → emitTypingIndicator.ts} +0 -0
- /package/src/actions/{queueIncomingActivity.js → queueIncomingActivity.ts} +0 -0
- /package/src/actions/{reconnect.js → reconnect.ts} +0 -0
- /package/src/actions/{startDictate.js → startDictate.ts} +0 -0
- /package/src/actions/{startSpeakingActivity.js → startSpeakingActivity.ts} +0 -0
- /package/src/actions/{stopDictate.js → stopDictate.ts} +0 -0
- /package/src/actions/{stopSpeakingActivity.js → stopSpeakingActivity.ts} +0 -0
- /package/src/actions/{updateConnectionStatus.js → updateConnectionStatus.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{transform as Ar}from"valibot";import{array as vt,looseObject as Dr,minLength as Ot,null_ as Mr,objectWithRest as Cr,optional as zt,parse as dt,pipe as ut,string as Bt,transform as Lr,union as Jt}from"valibot";import{is as _r,pipe as zr,string as kr,union as Fr,url as Ur}from"valibot";import{is as Br,pipe as Jr,startsWith as Wr,string as Gr}from"valibot";import{is as $r,literal as qr,strictObject as Vr,unknown as Hr}from"valibot";import{boolean as Kr,is as Xr,number as Yr,string as Qr,union as Zr}from"valibot";import{array as tn,is as en,minLength as rn,optional as nn,pipe as me,strictObject as on,string as ge,union as an}from"valibot";import{array as we,includes as ln,is as vn,number as dn,object as hn,optional as xe,pipe as Oe,readonly as yn,string as je,tuple as jt}from"valibot";import{v4 as No}from"uuid";import{assert as Ro,check as ur,is as To,looseObject as Ao,object as Do,optional as Mo,parse as kt,pipe as fr,safeParse as Ft}from"valibot";import{array as pr,minLength as Co,null_ as Lo,objectWithRest as _o,optional as Pe,pipe as Wt,string as Ut,union as Gt}from"valibot";import{array as Wo,includes as Go,intersect as $o,minLength as qo,object as Vo,optional as Ho,picklist as Ko,pipe as Ee,string as Ie,tuple as Ne}from"valibot";import{iteratorEvery as Zo}from"iter-fest";import{assert as Re,check as ti,map as ei,object as ri,pipe as ni}from"valibot";import{assert as De}from"valibot";import ui from"core-js-pure/features/set/difference.js";var Pr=Object.create,Me=Object.defineProperty,Er=Object.getOwnPropertyDescriptor,Ir=Object.getOwnPropertyNames,Nr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty,c=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),Tr=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ir(e))!Rr.call(o,n)&&n!==t&&Me(o,n,{get:()=>e[n],enumerable:!(r=Er(e,n))||r.enumerable});return o},Ce=(o,e,t)=>(t=o!=null?Pr(Nr(o)):{},Tr(e||!o||!o.__esModule?Me(t,"default",{value:o,enumerable:!0}):t,o));function V(){return Ar(o=>Object.freeze(o))}var Le=Jr(Gr("Blank node identifier must be a string"),Wr("_:","Blank node identifier must starts with _:")),Ti=Br.bind(Le),J=Fr([Le,zr(kr("Identifier must be a string"),Ur("Identifier must be an IRI"))],"@id is required and must be an IRI or blank node identifier"),Ai=_r.bind(J),Q=Vr({"@type":qr("@json"),"@value":Hr()},"JSON literal must only have @type and @value"),Mi=$r.bind(Q),rt=Zr([Kr(),Yr(),Qr()],"Only boolean, number, and string are allowed for JSON-LD literal"),Li=Xr.bind(rt),W=me(on({"@id":J,"@type":nn(an([ge(),me(tn(ge()),rn(1))],"@type must be string or array of string with at least 1 element"))},"NodeReference must only have @id and optional @type"),V()),sn=en.bind(void 0,W),_e=ut(Cr({"@context":zt(Bt("@context must be an IRI")),"@id":J,"@type":ut(vt(Bt("element in @type must be a string"),"@type must be array of string"),V(),Ot(1,"@type must have at least one element")),hasPart:zt(ut(vt(W,"hasPart must be array of NodeReference"),V(),Ot(1,"hasPart, if present, must have at least one element"))),isPartOf:zt(ut(vt(W,"isPartOf must be array of NodeReference"),V(),Ot(1,"isPartOf, if present, must have at least one element")))},ut(vt(Jt([Q,rt,W],"Properties of slant node must be array of JSON literal, literal or node reference")),Ot(1,"Properties of slant node must be an array with at least 1 element"))),V()),cn=Jt([vt(Jt([Q,rt,W])),Q,rt,W,Mr()],"Only JSON literal, literal, node reference or null can be parsed into slant node"),un=ut(Dr({}),Lr(o=>{let e=new Map,t,r;for(let[n,i]of Object.entries(o))switch(n){case"@context":t=dt(Bt("@context must be an IRI"),i);break;case"@id":r=dt(J,i);break;default:{let a=dt(cn,i),u=Object.freeze(Array.isArray(a)?a.slice(0):a===null||typeof a>"u"?[]:[a]);u.length&&e.set(n,u);break}}return dt(_e,Object.fromEntries([...t?[["@context",t]]:[],["@id",r],...Array.from(e)]))}));function fn(o){return dt(un,o)}var pn=fn,qt=Oe(hn({"@id":J,"@type":Oe(we(je()),ln("urn:microsoft:webchat:direct-line-activity")),identifier:xe(we(J)),position:jt([dn()]),sender:xe(jt([W])),"urn:microsoft:webchat:direct-line-activity:raw-json":jt([Q]),"urn:microsoft:webchat:direct-line-activity:type":jt([je()])}),yn()),ki=vn.bind(void 0,qt),_=c((o,e)=>{"use strict";var t=function(r){return r&&r.Math===Math&&r};e.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof global=="object"&&global)||t(typeof o=="object"&&o)||(function(){return this})()||Function("return this")()}),H=c((o,e)=>{"use strict";e.exports=function(t){try{return!!t()}catch{return!0}}}),Pt=c((o,e)=>{"use strict";var t=H();e.exports=!t(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})}),ze=c((o,e)=>{"use strict";var t=Pt(),r=Function.prototype,n=r.apply,i=r.call;e.exports=typeof Reflect=="object"&&Reflect.apply||(t?i.bind(n):function(){return i.apply(n,arguments)})}),G=c((o,e)=>{"use strict";var t=Pt(),r=Function.prototype,n=r.call,i=t&&r.bind.bind(n,n);e.exports=t?i:function(a){return function(){return n.apply(a,arguments)}}}),Et=c((o,e)=>{"use strict";var t=G(),r=t({}.toString),n=t("".slice);e.exports=function(i){return n(r(i),8,-1)}}),ke=c((o,e)=>{"use strict";var t=Et(),r=G();e.exports=function(n){if(t(n)==="Function")return r(n)}}),k=c((o,e)=>{"use strict";var t=typeof document=="object"&&document.all;e.exports=typeof t>"u"&&t!==void 0?function(r){return typeof r=="function"||r===t}:function(r){return typeof r=="function"}}),Z=c((o,e)=>{"use strict";var t=H();e.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),$=c((o,e)=>{"use strict";var t=Pt(),r=Function.prototype.call;e.exports=t?r.bind(r):function(){return r.apply(r,arguments)}}),bn=c(o=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);o.f=r?function(n){var i=t(this,n);return!!i&&i.enumerable}:e}),Vt=c((o,e)=>{"use strict";e.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}}),mn=c((o,e)=>{"use strict";var t=G(),r=H(),n=Et(),i=Object,a=t("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(u){return n(u)==="String"?a(u,""):i(u)}:i}),It=c((o,e)=>{"use strict";e.exports=function(t){return t==null}}),Ht=c((o,e)=>{"use strict";var t=It(),r=TypeError;e.exports=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}),Fe=c((o,e)=>{"use strict";var t=mn(),r=Ht();e.exports=function(n){return t(r(n))}}),K=c((o,e)=>{"use strict";var t=k();e.exports=function(r){return typeof r=="object"?r!==null:t(r)}}),Nt=c((o,e)=>{"use strict";e.exports={}}),nt=c((o,e)=>{"use strict";var t=Nt(),r=_(),n=k(),i=function(a){return n(a)?a:void 0};e.exports=function(a,u){return arguments.length<2?i(t[a])||i(r[a]):t[a]&&t[a][u]||r[a]&&r[a][u]}}),Kt=c((o,e)=>{"use strict";var t=G();e.exports=t({}.isPrototypeOf)}),ht=c((o,e)=>{"use strict";var t=_(),r=t.navigator,n=r&&r.userAgent;e.exports=n?String(n):""}),Ue=c((o,e)=>{"use strict";var t=_(),r=ht(),n=t.process,i=t.Deno,a=n&&n.versions||i&&i.version,u=a&&a.v8,s,p;u&&(s=u.split("."),p=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!p&&r&&(s=r.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=r.match(/Chrome\/(\d+)/),s&&(p=+s[1]))),e.exports=p}),Be=c((o,e)=>{"use strict";var t=Ue(),r=H(),n=_(),i=n.String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var a=Symbol("symbol detection");return!i(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&t&&t<41})}),Je=c((o,e)=>{"use strict";var t=Be();e.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),We=c((o,e)=>{"use strict";var t=nt(),r=k(),n=Kt(),i=Je(),a=Object;e.exports=i?function(u){return typeof u=="symbol"}:function(u){var s=t("Symbol");return r(s)&&n(s.prototype,a(u))}}),Rt=c((o,e)=>{"use strict";var t=String;e.exports=function(r){try{return t(r)}catch{return"Object"}}}),tt=c((o,e)=>{"use strict";var t=k(),r=Rt(),n=TypeError;e.exports=function(i){if(t(i))return i;throw new n(r(i)+" is not a function")}}),Xt=c((o,e)=>{"use strict";var t=tt(),r=It();e.exports=function(n,i){var a=n[i];return r(a)?void 0:t(a)}}),gn=c((o,e)=>{"use strict";var t=$(),r=k(),n=K(),i=TypeError;e.exports=function(a,u){var s,p;if(u==="string"&&r(s=a.toString)&&!n(p=t(s,a))||r(s=a.valueOf)&&!n(p=t(s,a))||u!=="string"&&r(s=a.toString)&&!n(p=t(s,a)))return p;throw new i("Can't convert object to primitive value")}}),yt=c((o,e)=>{"use strict";e.exports=!0}),wn=c((o,e)=>{"use strict";var t=_(),r=Object.defineProperty;e.exports=function(n,i){try{r(t,n,{value:i,configurable:!0,writable:!0})}catch{t[n]=i}return i}}),Tt=c((o,e)=>{"use strict";var t=yt(),r=_(),n=wn(),i="__core-js_shared__",a=e.exports=r[i]||n(i,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ge=c((o,e)=>{"use strict";var t=Tt();e.exports=function(r,n){return t[r]||(t[r]=n||{})}}),xn=c((o,e)=>{"use strict";var t=Ht(),r=Object;e.exports=function(n){return r(t(n))}}),ft=c((o,e)=>{"use strict";var t=G(),r=xn(),n=t({}.hasOwnProperty);e.exports=Object.hasOwn||function(i,a){return n(r(i),a)}}),$e=c((o,e)=>{"use strict";var t=G(),r=0,n=Math.random(),i=t(1.1.toString);e.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+i(++r+n,36)}}),q=c((o,e)=>{"use strict";var t=_(),r=Ge(),n=ft(),i=$e(),a=Be(),u=Je(),s=t.Symbol,p=r("wks"),f=u?s.for||s:s&&s.withoutSetter||i;e.exports=function(v){return n(p,v)||(p[v]=a&&n(s,v)?s[v]:f("Symbol."+v)),p[v]}}),On=c((o,e)=>{"use strict";var t=$(),r=K(),n=We(),i=Xt(),a=gn(),u=q(),s=TypeError,p=u("toPrimitive");e.exports=function(f,v){if(!r(f)||n(f))return f;var m=i(f,p),l;if(m){if(v===void 0&&(v="default"),l=t(m,f,v),!r(l)||n(l))return l;throw new s("Can't convert object to primitive value")}return v===void 0&&(v="number"),a(f,v)}}),qe=c((o,e)=>{"use strict";var t=On(),r=We();e.exports=function(n){var i=t(n,"string");return r(i)?i:i+""}}),Ve=c((o,e)=>{"use strict";var t=_(),r=K(),n=t.document,i=r(n)&&r(n.createElement);e.exports=function(a){return i?n.createElement(a):{}}}),He=c((o,e)=>{"use strict";var t=Z(),r=H(),n=Ve();e.exports=!t&&!r(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7})}),jn=c(o=>{"use strict";var e=Z(),t=$(),r=bn(),n=Vt(),i=Fe(),a=qe(),u=ft(),s=He(),p=Object.getOwnPropertyDescriptor;o.f=e?p:function(f,v){if(f=i(f),v=a(v),s)try{return p(f,v)}catch{}if(u(f,v))return n(!t(r.f,f,v),f[v])}}),Ke=c((o,e)=>{"use strict";var t=H(),r=k(),n=/#|\.prototype\./,i=function(f,v){var m=u[a(f)];return m===p?!0:m===s?!1:r(v)?t(v):!!v},a=i.normalize=function(f){return String(f).replace(n,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",p=i.POLYFILL="P";e.exports=i}),At=c((o,e)=>{"use strict";var t=ke(),r=tt(),n=Pt(),i=t(t.bind);e.exports=function(a,u){return r(a),u===void 0?a:n?i(a,u):function(){return a.apply(u,arguments)}}}),Sn=c((o,e)=>{"use strict";var t=Z(),r=H();e.exports=t&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),pt=c((o,e)=>{"use strict";var t=K(),r=String,n=TypeError;e.exports=function(i){if(t(i))return i;throw new n(r(i)+" is not an object")}}),Dt=c(o=>{"use strict";var e=Z(),t=He(),r=Sn(),n=pt(),i=qe(),a=TypeError,u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",v="writable";o.f=e?r?function(m,l,d){if(n(m),l=i(l),n(d),typeof m=="function"&&l==="prototype"&&"value"in d&&v in d&&!d[v]){var h=s(m,l);h&&h[v]&&(m[l]=d.value,d={configurable:f in d?d[f]:h[f],enumerable:p in d?d[p]:h[p],writable:!1})}return u(m,l,d)}:u:function(m,l,d){if(n(m),l=i(l),n(d),t)try{return u(m,l,d)}catch{}if("get"in d||"set"in d)throw new a("Accessors not supported");return"value"in d&&(m[l]=d.value),m}}),Mt=c((o,e)=>{"use strict";var t=Z(),r=Dt(),n=Vt();e.exports=t?function(i,a,u){return r.f(i,a,n(1,u))}:function(i,a,u){return i[a]=u,i}}),et=c((o,e)=>{"use strict";var t=_(),r=ze(),n=ke(),i=k(),a=jn().f,u=Ke(),s=Nt(),p=At(),f=Mt(),v=ft();Tt();var m=function(l){var d=function(h,x,b){if(this instanceof d){switch(arguments.length){case 0:return new l;case 1:return new l(h);case 2:return new l(h,x)}return new l(h,x,b)}return r(l,this,arguments)};return d.prototype=l.prototype,d};e.exports=function(l,d){var h=l.target,x=l.global,b=l.stat,O=l.proto,w=x?t:b?t[h]:t[h]&&t[h].prototype,g=x?s:s[h]||f(s,h,{})[h],j=g.prototype,T,A,R,E,D,U,M,F,z;for(E in d)T=u(x?E:h+(b?".":"#")+E,l.forced),A=!T&&w&&v(w,E),U=g[E],A&&(l.dontCallGetSet?(z=a(w,E),M=z&&z.value):M=w[E]),D=A&&M?M:d[E],!(!T&&!O&&typeof U==typeof D)&&(l.bind&&A?F=p(D,t):l.wrap&&A?F=m(D):O&&i(D)?F=n(D):F=D,(l.sham||D&&D.sham||U&&U.sham)&&f(F,"sham",!0),f(g,E,F),O&&(R=h+"Prototype",v(s,R)||f(s,R,{}),f(s[R],E,D),l.real&&j&&(T||!j[E])&&f(j,E,D)))}}),Pn=c((o,e)=>{"use strict";e.exports=function(){}}),En=c((o,e)=>{"use strict";var t=TypeError,r=9007199254740991;e.exports=function(n){if(n>r)throw new t("Maximum allowed index exceeded");return n}}),In=c((o,e)=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(n){var i=+n;return(i>0?r:t)(i)}}),Yt=c((o,e)=>{"use strict";var t=In();e.exports=function(r){var n=+r;return n!==n||n===0?0:t(n)}}),Nn=c((o,e)=>{"use strict";var t=Yt(),r=Math.min;e.exports=function(n){var i=t(n);return i>0?r(i,9007199254740991):0}}),Xe=c((o,e)=>{"use strict";var t=Nn();e.exports=function(r){return t(r.length)}}),Rn=c((o,e)=>{"use strict";var t=Yt(),r=Math.max,n=Math.min;e.exports=function(i,a){var u=t(i);return u<0?r(u+a,0):n(u,a)}}),Tn=c((o,e)=>{"use strict";var t=Z(),r=Dt(),n=Vt();e.exports=function(i,a,u){t?r.f(i,a,n(0,u)):i[a]=u}}),Ye=c(()=>{"use strict";var o=et(),e=Pn(),t=En(),r=Xe(),n=Rn(),i=Fe(),a=Yt(),u=Tn(),s=Array,p=Math.max,f=Math.min;o({target:"Array",proto:!0},{toSpliced:function(v,m){var l=i(this),d=r(l),h=n(v,d),x=arguments.length,b=0,O,w,g,j;for(x===0?O=w=0:x===1?(O=0,w=d-h):(O=x-2,w=f(p(a(m),0),d-h)),g=t(d+O-w),j=s(g);b<h;b++)u(j,b,l[b]);for(;b<h+O;b++)u(j,b,arguments[b-h+2]);for(;b<g;b++)u(j,b,l[b+w-O]);return j}}),e("toSpliced")}),An=c((o,e)=>{"use strict";var t=nt();e.exports=t}),Dn=c((o,e)=>{"use strict";Ye();var t=An();e.exports=t("Array","toSpliced")}),Mn=c((o,e)=>{"use strict";var t=Dn();e.exports=t}),Cn=c(()=>{"use strict";Ye()}),Ln=c((o,e)=>{"use strict";var t=Mn();Cn(),e.exports=t}),_n=c((o,e)=>{"use strict";var t=Ln();e.exports=t}),zn=c((o,e)=>{"use strict";e.exports=_n()}),Qe=c((o,e)=>{"use strict";var t=_(),r=ht(),n=Et(),i=function(a){return r.slice(0,a.length)===a};e.exports=(function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&typeof Bun.version=="string"?"BUN":t.Deno&&typeof Deno.version=="object"?"DENO":n(t.process)==="process"?"NODE":t.window&&t.document?"BROWSER":"REST"})()}),Qt=c((o,e)=>{"use strict";var t=Qe();e.exports=t==="NODE"}),Ze=c((o,e)=>{"use strict";var t=Mt();e.exports=function(r,n,i,a){return a&&a.enumerable?r[n]=i:t(r,n,i),r}}),kn=c((o,e)=>{"use strict";var t=G(),r=tt();e.exports=function(n,i,a){try{return t(r(Object.getOwnPropertyDescriptor(n,i)[a]))}catch{}}}),Fn=c((o,e)=>{"use strict";var t=K();e.exports=function(r){return t(r)||r===null}}),Un=c((o,e)=>{"use strict";var t=Fn(),r=String,n=TypeError;e.exports=function(i){if(t(i))return i;throw new n("Can't set "+r(i)+" as a prototype")}}),Bn=c((o,e)=>{"use strict";var t=kn(),r=K(),n=Ht(),i=Un();e.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a=!1,u={},s;try{s=t(Object.prototype,"__proto__","set"),s(u,[]),a=u instanceof Array}catch{}return function(p,f){return n(p),i(f),r(p)&&(a?s(p,f):p.__proto__=f),p}})():void 0)}),Zt=c((o,e)=>{"use strict";var t=q(),r=t("toStringTag"),n={};n[r]="z",e.exports=String(n)==="[object z]"}),te=c((o,e)=>{"use strict";var t=Zt(),r=k(),n=Et(),i=q(),a=i("toStringTag"),u=Object,s=n((function(){return arguments})())==="Arguments",p=function(f,v){try{return f[v]}catch{}};e.exports=t?n:function(f){var v,m,l;return f===void 0?"Undefined":f===null?"Null":typeof(m=p(v=u(f),a))=="string"?m:s?n(v):(l=n(v))==="Object"&&r(v.callee)?"Arguments":l}}),Jn=c((o,e)=>{"use strict";var t=Zt(),r=te();e.exports=t?{}.toString:function(){return"[object "+r(this)+"]"}}),Wn=c((o,e)=>{"use strict";var t=Zt(),r=Dt().f,n=Mt(),i=ft(),a=Jn(),u=q(),s=u("toStringTag");e.exports=function(p,f,v,m){var l=v?p:p&&p.prototype;l&&(i(l,s)||r(l,s,{configurable:!0,value:f}),m&&!t&&n(l,"toString",a))}}),Gn=c((o,e)=>{"use strict";var t=Dt();e.exports=function(r,n,i){return t.f(r,n,i)}}),$n=c((o,e)=>{"use strict";var t=nt(),r=Gn(),n=q(),i=Z(),a=n("species");e.exports=function(u){var s=t(u);i&&s&&!s[a]&&r(s,a,{configurable:!0,get:function(){return this}})}}),qn=c((o,e)=>{"use strict";var t=Kt(),r=TypeError;e.exports=function(n,i){if(t(i,n))return n;throw new r("Incorrect invocation")}}),tr=c((o,e)=>{"use strict";var t=G(),r=k(),n=Tt(),i=t(Function.toString);r(n.inspectSource)||(n.inspectSource=function(a){return i(a)}),e.exports=n.inspectSource}),Vn=c((o,e)=>{"use strict";var t=G(),r=H(),n=k(),i=te(),a=nt(),u=tr(),s=function(){},p=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,v=t(f.exec),m=!f.test(s),l=function(h){if(!n(h))return!1;try{return p(s,[],h),!0}catch{return!1}},d=function(h){if(!n(h))return!1;switch(i(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!v(f,u(h))}catch{return!0}};d.sham=!0,e.exports=!p||r(function(){var h;return l(l.call)||!l(Object)||!l(function(){h=!0})||h})?d:l}),Hn=c((o,e)=>{"use strict";var t=Vn(),r=Rt(),n=TypeError;e.exports=function(i){if(t(i))return i;throw new n(r(i)+" is not a constructor")}}),Kn=c((o,e)=>{"use strict";var t=pt(),r=Hn(),n=It(),i=q(),a=i("species");e.exports=function(u,s){var p=t(u).constructor,f;return p===void 0||n(f=t(p)[a])?s:r(f)}}),Xn=c((o,e)=>{"use strict";var t=nt();e.exports=t("document","documentElement")}),Yn=c((o,e)=>{"use strict";var t=G();e.exports=t([].slice)}),Qn=c((o,e)=>{"use strict";var t=TypeError;e.exports=function(r,n){if(r<n)throw new t("Not enough arguments");return r}}),er=c((o,e)=>{"use strict";var t=ht();e.exports=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}),rr=c((o,e)=>{"use strict";var t=_(),r=ze(),n=At(),i=k(),a=ft(),u=H(),s=Xn(),p=Yn(),f=Ve(),v=Qn(),m=er(),l=Qt(),d=t.setImmediate,h=t.clearImmediate,x=t.process,b=t.Dispatch,O=t.Function,w=t.MessageChannel,g=t.String,j=0,T={},A="onreadystatechange",R,E,D,U;u(function(){R=t.location});var M=function(P){if(a(T,P)){var X=T[P];delete T[P],X()}},F=function(P){return function(){M(P)}},z=function(P){M(P.data)},B=function(P){t.postMessage(g(P),R.protocol+"//"+R.host)};(!d||!h)&&(d=function(P){v(arguments.length,1);var X=i(P)?P:O(P),C=p(arguments,1);return T[++j]=function(){r(X,void 0,C)},E(j),j},h=function(P){delete T[P]},l?E=function(P){x.nextTick(F(P))}:b&&b.now?E=function(P){b.now(F(P))}:w&&!m?(D=new w,U=D.port2,D.port1.onmessage=z,E=n(U.postMessage,U)):t.addEventListener&&i(t.postMessage)&&!t.importScripts&&R&&R.protocol!=="file:"&&!u(B)?(E=B,t.addEventListener("message",z,!1)):A in f("script")?E=function(P){s.appendChild(f("script"))[A]=function(){s.removeChild(this),M(P)}}:E=function(P){setTimeout(F(P),0)}),e.exports={set:d,clear:h}}),Zn=c((o,e)=>{"use strict";var t=_(),r=Z(),n=Object.getOwnPropertyDescriptor;e.exports=function(i){if(!r)return t[i];var a=n(t,i);return a&&a.value}}),nr=c((o,e)=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(r){var n={item:r,next:null},i=this.tail;i?i.next=n:this.head=n,this.tail=n},get:function(){var r=this.head;if(r){var n=this.head=r.next;return n===null&&(this.tail=null),r.item}}},e.exports=t}),to=c((o,e)=>{"use strict";var t=ht();e.exports=/ipad|iphone|ipod/i.test(t)&&typeof Pebble<"u"}),eo=c((o,e)=>{"use strict";var t=ht();e.exports=/web0s(?!.*chrome)/i.test(t)}),ro=c((o,e)=>{"use strict";var t=_(),r=Zn(),n=At(),i=rr().set,a=nr(),u=er(),s=to(),p=eo(),f=Qt(),v=t.MutationObserver||t.WebKitMutationObserver,m=t.document,l=t.process,d=t.Promise,h=r("queueMicrotask"),x,b,O,w,g;h||(j=new a,T=function(){var A,R;for(f&&(A=l.domain)&&A.exit();R=j.get();)try{R()}catch(E){throw j.head&&x(),E}A&&A.enter()},!u&&!f&&!p&&v&&m?(b=!0,O=m.createTextNode(""),new v(T).observe(O,{characterData:!0}),x=function(){O.data=b=!b}):!s&&d&&d.resolve?(w=d.resolve(void 0),w.constructor=d,g=n(w.then,w),x=function(){g(T)}):f?x=function(){l.nextTick(T)}:(i=n(i,t),x=function(){i(T)}),h=function(A){j.head||x(),j.add(A)});var j,T;e.exports=h}),no=c((o,e)=>{"use strict";e.exports=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch{}}}),ee=c((o,e)=>{"use strict";e.exports=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}}}),oo=c((o,e)=>{"use strict";var t=_(),r=k(),n=t.WeakMap;e.exports=r(n)&&/native code/.test(String(n))}),io=c((o,e)=>{"use strict";var t=Ge(),r=$e(),n=t("keys");e.exports=function(i){return n[i]||(n[i]=r(i))}}),ao=c((o,e)=>{"use strict";e.exports={}}),so=c((o,e)=>{"use strict";var t=oo(),r=_(),n=K(),i=Mt(),a=ft(),u=Tt(),s=io(),p=ao(),f="Object already initialized",v=r.TypeError,m=r.WeakMap,l,d,h,x=function(g){return h(g)?d(g):l(g,{})},b=function(g){return function(j){var T;if(!n(j)||(T=d(j)).type!==g)throw new v("Incompatible receiver, "+g+" required");return T}};t||u.state?(O=u.state||(u.state=new m),O.get=O.get,O.has=O.has,O.set=O.set,l=function(g,j){if(O.has(g))throw new v(f);return j.facade=g,O.set(g,j),j},d=function(g){return O.get(g)||{}},h=function(g){return O.has(g)}):(w=s("state"),p[w]=!0,l=function(g,j){if(a(g,w))throw new v(f);return j.facade=g,i(g,w,j),j},d=function(g){return a(g,w)?g[w]:{}},h=function(g){return a(g,w)});var O,w;e.exports={set:l,get:d,has:h,enforce:x,getterFor:b}}),bt=c((o,e)=>{"use strict";var t=_();e.exports=t.Promise}),mt=c((o,e)=>{"use strict";var t=_(),r=bt(),n=k(),i=Ke(),a=tr(),u=q(),s=Qe(),p=yt(),f=Ue(),v=r&&r.prototype,m=u("species"),l=!1,d=n(t.PromiseRejectionEvent),h=i("Promise",function(){var x=a(r),b=x!==String(r);if(!b&&f===66||p&&!(v.catch&&v.finally))return!0;if(!f||f<51||!/native code/.test(x)){var O=new r(function(j){j(1)}),w=function(j){j(function(){},function(){})},g=O.constructor={};if(g[m]=w,l=O.then(function(){})instanceof w,!l)return!0}return!b&&(s==="BROWSER"||s==="DENO")&&!d});e.exports={CONSTRUCTOR:h,REJECTION_EVENT:d,SUBCLASSING:l}}),lt=c((o,e)=>{"use strict";var t=tt(),r=TypeError,n=function(i){var a,u;this.promise=new i(function(s,p){if(a!==void 0||u!==void 0)throw new r("Bad Promise constructor");a=s,u=p}),this.resolve=t(a),this.reject=t(u)};e.exports.f=function(i){return new n(i)}}),co=c(()=>{"use strict";var o=et(),e=yt(),t=Qt(),r=_(),n=Nt(),i=$(),a=Ze(),u=Bn(),s=Wn(),p=$n(),f=tt(),v=k(),m=K(),l=qn(),d=Kn(),h=rr().set,x=ro(),b=no(),O=ee(),w=nr(),g=so(),j=bt(),T=mt(),A=lt(),R="Promise",E=T.CONSTRUCTOR,D=T.REJECTION_EVENT,U=T.SUBCLASSING,M=g.getterFor(R),F=g.set,z=j&&j.prototype,B=j,P=z,X=r.TypeError,C=r.document,ot=r.process,Ct=A.f,mr=Ct,gr=!!(C&&C.createEvent&&r.dispatchEvent),oe="unhandledrejection",wr="rejectionhandled",ie=0,ae=1,xr=2,Lt=1,se=2,gt,ce,ue,fe,pe=function(y){var S;return m(y)&&v(S=y.then)?S:!1},le=function(y,S){var I=S.value,N=S.state===ae,L=N?y.ok:y.fail,wt=y.resolve,xt=y.reject,st=y.domain,ct,ye,be;try{L?(N||(S.rejection===se&&jr(S),S.rejection=Lt),L===!0?ct=I:(st&&st.enter(),ct=L(I),st&&(st.exit(),be=!0)),ct===y.promise?xt(new X("Promise-chain cycle")):(ye=pe(ct))?i(ye,ct,wt,xt):wt(ct)):xt(I)}catch(Sr){st&&!be&&st.exit(),xt(Sr)}},ve=function(y,S){y.notified||(y.notified=!0,x(function(){for(var I=y.reactions,N;N=I.get();)le(N,y);y.notified=!1,S&&!y.rejection&&Or(y)}))},de=function(y,S,I){var N,L;gr?(N=C.createEvent("Event"),N.promise=S,N.reason=I,N.initEvent(y,!1,!0),r.dispatchEvent(N)):N={promise:S,reason:I},!D&&(L=r["on"+y])?L(N):y===oe&&b("Unhandled promise rejection",I)},Or=function(y){i(h,r,function(){var S=y.facade,I=y.value,N=he(y),L;if(N&&(L=O(function(){t?ot.emit("unhandledRejection",I,S):de(oe,S,I)}),y.rejection=t||he(y)?se:Lt,L.error))throw L.value})},he=function(y){return y.rejection!==Lt&&!y.parent},jr=function(y){i(h,r,function(){var S=y.facade;t?ot.emit("rejectionHandled",S):de(wr,S,y.value)})},it=function(y,S,I){return function(N){y(S,N,I)}},at=function(y,S,I){y.done||(y.done=!0,I&&(y=I),y.value=S,y.state=xr,ve(y,!0))},_t=function(y,S,I){if(!y.done){y.done=!0,I&&(y=I);try{if(y.facade===S)throw new X("Promise can't be resolved itself");var N=pe(S);N?x(function(){var L={done:!1};try{i(N,S,it(_t,L,y),it(at,L,y))}catch(wt){at(L,wt,y)}}):(y.value=S,y.state=ae,ve(y,!1))}catch(L){at({done:!1},L,y)}}};if(E&&(B=function(y){l(this,P),f(y),i(gt,this);var S=M(this);try{y(it(_t,S),it(at,S))}catch(I){at(S,I)}},P=B.prototype,gt=function(y){F(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:ie,value:null})},gt.prototype=a(P,"then",function(y,S){var I=M(this),N=Ct(d(this,B));return I.parent=!0,N.ok=v(y)?y:!0,N.fail=v(S)&&S,N.domain=t?ot.domain:void 0,I.state===ie?I.reactions.add(N):x(function(){le(N,I)}),N.promise}),ce=function(){var y=new gt,S=M(y);this.promise=y,this.resolve=it(_t,S),this.reject=it(at,S)},A.f=Ct=function(y){return y===B||y===ue?new ce(y):mr(y)},!e&&v(j)&&z!==Object.prototype)){fe=z.then,U||a(z,"then",function(y,S){var I=this;return new B(function(N,L){i(fe,I,N,L)}).then(y,S)},{unsafe:!0});try{delete z.constructor}catch{}u&&u(z,P)}o({global:!0,constructor:!0,wrap:!0,forced:E},{Promise:B}),ue=n.Promise,s(B,R,!1,!0),p(R)}),or=c((o,e)=>{"use strict";e.exports={}}),uo=c((o,e)=>{"use strict";var t=q(),r=or(),n=t("iterator"),i=Array.prototype;e.exports=function(a){return a!==void 0&&(r.Array===a||i[n]===a)}}),ir=c((o,e)=>{"use strict";var t=te(),r=Xt(),n=It(),i=or(),a=q(),u=a("iterator");e.exports=function(s){if(!n(s))return r(s,u)||r(s,"@@iterator")||i[t(s)]}}),fo=c((o,e)=>{"use strict";var t=$(),r=tt(),n=pt(),i=Rt(),a=ir(),u=TypeError;e.exports=function(s,p){var f=arguments.length<2?a(s):p;if(r(f))return n(t(f,s));throw new u(i(s)+" is not iterable")}}),po=c((o,e)=>{"use strict";var t=$(),r=pt(),n=Xt();e.exports=function(i,a,u){var s,p;r(i);try{if(s=n(i,"return"),!s){if(a==="throw")throw u;return u}s=t(s,i)}catch(f){p=!0,s=f}if(a==="throw")throw u;if(p)throw s;return r(s),u}}),ar=c((o,e)=>{"use strict";var t=At(),r=$(),n=pt(),i=Rt(),a=uo(),u=Xe(),s=Kt(),p=fo(),f=ir(),v=po(),m=TypeError,l=function(h,x){this.stopped=h,this.result=x},d=l.prototype;e.exports=function(h,x,b){var O=b&&b.that,w=!!(b&&b.AS_ENTRIES),g=!!(b&&b.IS_RECORD),j=!!(b&&b.IS_ITERATOR),T=!!(b&&b.INTERRUPTED),A=t(x,O),R,E,D,U,M,F,z,B=function(C){var ot=R;return R=void 0,ot&&v(ot,"normal"),new l(!0,C)},P=function(C){return w?(n(C),T?A(C[0],C[1],B):A(C[0],C[1])):T?A(C,B):A(C)};if(g)R=h.iterator;else if(j)R=h;else{if(E=f(h),!E)throw new m(i(h)+" is not iterable");if(a(E)){for(D=0,U=u(h);U>D;D++)if(M=P(h[D]),M&&s(d,M))return M;return new l(!1)}R=p(h,E)}for(F=g?h.next:R.next;!(z=r(F,R)).done;){var X=z.value;try{M=P(X)}catch(C){if(R)v(R,"throw",C);else throw C}if(typeof M=="object"&&M&&s(d,M))return M}return new l(!1)}}),lo=c((o,e)=>{"use strict";var t=q(),r=t("iterator"),n=!1;try{i=0,a={next:function(){return{done:!!i++}},return:function(){n=!0}},a[r]=function(){return this},Array.from(a,function(){throw 2})}catch{}var i,a;e.exports=function(u,s){try{if(!s&&!n)return!1}catch{return!1}var p=!1;try{var f={};f[r]=function(){return{next:function(){return{done:p=!0}}}},u(f)}catch{}return p}}),sr=c((o,e)=>{"use strict";var t=bt(),r=lo(),n=mt().CONSTRUCTOR;e.exports=n||!r(function(i){t.all(i).then(void 0,function(){})})}),vo=c(()=>{"use strict";var o=et(),e=$(),t=tt(),r=lt(),n=ee(),i=ar(),a=sr();o({target:"Promise",stat:!0,forced:a},{all:function(u){var s=this,p=r.f(s),f=p.resolve,v=p.reject,m=n(function(){var l=t(s.resolve),d=[],h=0,x=1;i(u,function(b){var O=h++,w=!1;x++,e(l,s,b).then(function(g){w||(w=!0,d[O]=g,--x||f(d))},v)}),--x||f(d)});return m.error&&v(m.value),p.promise}})}),ho=c(()=>{"use strict";var o=et(),e=yt(),t=mt().CONSTRUCTOR,r=bt(),n=nt(),i=k(),a=Ze(),u=r&&r.prototype;o({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(p){return this.then(void 0,p)}}),!e&&i(r)&&(s=n("Promise").prototype.catch,u.catch!==s&&a(u,"catch",s,{unsafe:!0}));var s}),yo=c(()=>{"use strict";var o=et(),e=$(),t=tt(),r=lt(),n=ee(),i=ar(),a=sr();o({target:"Promise",stat:!0,forced:a},{race:function(u){var s=this,p=r.f(s),f=p.reject,v=n(function(){var m=t(s.resolve);i(u,function(l){e(m,s,l).then(p.resolve,f)})});return v.error&&f(v.value),p.promise}})}),bo=c(()=>{"use strict";var o=et(),e=lt(),t=mt().CONSTRUCTOR;o({target:"Promise",stat:!0,forced:t},{reject:function(r){var n=e.f(this),i=n.reject;return i(r),n.promise}})}),mo=c((o,e)=>{"use strict";var t=pt(),r=K(),n=lt();e.exports=function(i,a){if(t(i),r(a)&&a.constructor===i)return a;var u=n.f(i),s=u.resolve;return s(a),u.promise}}),go=c(()=>{"use strict";var o=et(),e=nt(),t=yt(),r=bt(),n=mt().CONSTRUCTOR,i=mo(),a=e("Promise"),u=t&&!n;o({target:"Promise",stat:!0,forced:t||n},{resolve:function(s){return i(u&&this===a?r:this,s)}})}),wo=c(()=>{"use strict";co(),vo(),ho(),yo(),bo(),go()}),cr=c(()=>{"use strict";var o=et(),e=lt();o({target:"Promise",stat:!0},{withResolvers:function(){var t=e.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})}),xo=c((o,e)=>{"use strict";wo(),cr();var t=$(),r=k(),n=Nt(),i=n.Promise,a=i.withResolvers;e.exports=function(){return t(a,r(this)?this:i)}}),Oo=c((o,e)=>{"use strict";var t=xo();e.exports=t}),jo=c(()=>{"use strict";cr()}),So=c((o,e)=>{"use strict";var t=Oo();jo(),e.exports=t}),Po=c((o,e)=>{"use strict";var t=So();e.exports=t}),Eo=c((o,e)=>{"use strict";e.exports=Po()}),Fi=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))),Io=Object.prototype;function Se(o){return Object.getPrototypeOf(o)===Io}var Ui=Object.freeze([]),Bi=Ce(zn()),Ji=Ce(Eo()),zo=Gt([Wt(pr(Gt([rt,Q,W],"Array in flat node must be literal, JSON value, or node reference")),V()),Q,rt,W,Lo()],"Non-array value in flat node must be literal, JSON value, node reference, or null"),ko=Wt(_o({"@context":Pe(Ut("Complex @context is not supported in our implementation")),"@id":J,"@type":Pe(Gt([Wt(pr(Ut()),Co(1),V()),Ut()],"@type must be string or array of string with at least 1 element"))},zo),V());function Fo(){return No()}function $t(o,e,t){let r=Ft(rt,o);if(r.success)return r.output;let n=Ft(fr(Q,ur(v=>Se(v))),o);if(n.success)return n.output;let i=Ft(W,o);if(i.success)return i.output;if(o=o,!Se(o)||!To(Do({}),o)){let v=new Error(`Only literals, JSON literals, and plain object can be flattened: ${JSON.stringify(o)}`);throw v.cause={input:o},v}let a=t.get(o);if(a)return a;let u=kt(Mo(J),o&&typeof o=="object"&&"@id"in o&&o["@id"]||void 0)??`_:${Fo()}`;e.get(u)&&console.warn(`Object [@id="${u}"] has already added to the graph.`),e.set(u,void 0);let s=new Map;for(let[v,m]of Object.entries(o)){let l;if(Array.isArray(m)){let d=[];for(let h of m)d.push($t(h,e,t));l=Object.freeze(d),s.set(v,l)}else typeof m<"u"&&(l=$t(m,e,t),s.set(v,l))}s.set("@id",u);let p=kt(ko,Object.fromEntries(Array.from(s))),f=kt(W,Object.freeze({"@id":u}));return e.set(u,p),t.set(o,f),f}function Uo(o){Ro(fr(Ao({}),ur(r=>!sn(r),"Node reference cannot be flattened")),o);let e=new Map,t=$t(o,e,new Map);return{graph:Object.freeze(Array.from(e.values())),output:t}}var Bo=Uo;function Jo(o,e){let t=o["@type"];return typeof t=="string"?t===e:!!t&&t.includes(e)}var Xo=Ee($o([qt,Vo({"@type":Ee(Wo(Ie()),qo(1),Go("Message")),encodingFormat:Ne([Ko(["text/markdown","text/plain"])]),text:Ho(Ne([Ie()]))})]),V());function Yo(...o){return e=>o.reduceRight((t,r)=>r(t),e)}function Qo(...o){return e=>Yo(...o.map(t=>t(e)))}var Te=ni(ei(J,ri({"@id":J})),ti(o=>Zo(o.entries(),([e,t])=>e===t["@id"]),"Key returned in Map must match `@id` in value")),Ae=()=>o=>e=>{Re(Te,e);let t=o(Object.freeze(e));return Re(Te,t),Object.freeze(t)},oi=class{#t=!1;#n;#e=Object.freeze(new Map);#r=new Set;constructor(o,...e){this.#n=Qo(Ae,...[o,...e].flatMap(t=>[t,Ae]))}act(o){if(this.#t)throw new Error("Another transaction is ongoing");this.#t=!0;let e;try{let t=this.getState.bind(this),r=new Map;o(Object.freeze({getState:t,upsert(...a){for(let u of a){let s=u["@id"];r.has(s)&&console.warn(`botframework-webchat: Should NOT upsert a node multiple times in a single transaction (@id = "${s}")`),r.set(s,u)}}}));let n=new Map(this.#e),i=new Set;for(let a of this.#n({getState:t})(()=>{throw new Error("At least one middleware must not fallthrough")})(Object.freeze(r)).values())n.set(a["@id"],Object.freeze({...a})),i.add(a["@id"]);i.size&&(this.#e=Object.freeze(n),e=Object.freeze({upsertedNodeIdentifiers:Object.freeze(i)}))}finally{this.#t=!1}if(e)for(let t of this.#r)t(e)}getState(){return this.#e}subscribe(o){return this.#r.add(o),()=>{this.#r.delete(o)}}},ii=oi,ai=new Map([["Message",Xo],["urn:microsoft:webchat:direct-line-activity",qt]]),si=()=>o=>e=>{for(let t of e.values()){De(_e,t);for(let[r,n]of ai)Jo(t,r)&&De(n,t)}return o(e)},ci=si;function St(o,e){return ui(o,e)}function Y(o){return new Set(o?.map(e=>e["@id"]))}var fi=({getState:o})=>e=>t=>{let r=o(),n=new Map(t);function i(...s){for(let p of s)n.set(p["@id"],p)}function a(s){let p=n.get(s)??r.get(s);if(!p)throw new Error(`Cannot find node with @id "${s}"`);return p}function u(s,p){let f=a(s);if(!f)throw new Error(`Cannot find node with @id of ${s} to update`);let v=p(f);return Object.is(f,v)||i(v),!0}for(let[s,p]of t){let f=r.get(s);if(f){let l=St(Y(f.hasPart),Y(p.hasPart));for(let h of l)u(h,x=>{let{isPartOf:b,...O}=x;if(b){let w=b.filter(g=>g["@id"]!==s);if(b.length!==w.length)return Object.freeze({...O,...w.length?{isPartOf:w}:{}})}return x});let d=St(Y(f.isPartOf),Y(p.isPartOf));for(let h of d)u(h,x=>{let{hasPart:b,...O}=x;if(b){let w=b.filter(g=>g["@id"]!==s);if(b.length!==w.length)return Object.freeze({...O,...w.length?{hasPart:w}:{}})}return x})}let v=St(Y(p.hasPart),Y(f?.hasPart??[]));for(let l of v)u(l,d=>d.isPartOf?.find(h=>h["@id"]===s)?d:Object.freeze({...d,isPartOf:Object.freeze([...d.isPartOf??[],Object.freeze({"@id":s})])}));let m=St(Y(p.isPartOf),Y(f?.isPartOf??[]));for(let l of m)u(l,d=>d.hasPart?.find(h=>h["@id"]===s)?d:Object.freeze({...d,hasPart:Object.freeze([...d.hasPart??[],Object.freeze({"@id":s})])}))}return e(n)},pi=fi,li=()=>o=>e=>{let t=new Map;for(let r of e.values())for(let n of Bo(r).graph)t.set(n["@id"],pn(n));return o(t)},vi=li,di=()=>()=>o=>o,hi=di,yi=class extends ii{constructor(){super(vi,ci,pi,hi)}},Yi=yi;import{v4 as bi}from"uuid";import{object as lr,parse as re,pipe as mi,safeParse as gi,transform as wi}from"valibot";var ne=mi(J,wi(o=>o)),vr=lr({channelData:lr({"webchat:internal:local-id":ne})});function oa(o){return re(vr,o).channelData["webchat:internal:local-id"]}function xi(o){let e=gi(vr,o);return e.success?e.output.channelData["webchat:internal:local-id"]:void 0}function Oi(o,e){let t={...o.channelData};return typeof e>"u"?delete t["webchat:internal:local-id"]:t["webchat:internal:local-id"]=re(ne,e),{...o,channelData:t}}function ji(){return re(ne,`_:${bi()}`)}function ia(o){if(xi(o))throw new Error("botframework-webchat: Cannot generate a new local ID for activity because the activity already has a local ID");return Oi(o,ji())}import{number as Si,object as dr,parse as hr,safeParse as Pi}from"valibot";var yr=Si("position must be a number"),br=dr({channelData:dr({"webchat:internal:position":yr})});function ca(o){return hr(br,o).channelData["webchat:internal:position"]}function ua(o){let e=Pi(br,o);return e.success?e.output.channelData["webchat:internal:position"]:void 0}function fa(o,e){let t={...o.channelData};return typeof e>"u"?delete t["webchat:internal:position"]:t["webchat:internal:position"]=hr(yr,e),{...o,channelData:t}}export{J as a,_e as b,Jo as c,Xo as d,Yi as e,ne as f,oa as g,Oi as h,ia as i,yr as j,ca as k,ua as l,fa as m};
|
|
2
|
+
//# sourceMappingURL=chunk-ICNZKQJW.mjs.map
|