@rudderstack/analytics-js 3.0.0-beta.20 → 3.0.0-beta.22

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.
@@ -419,7 +419,7 @@
419
419
 
420
420
  const CAPABILITIES_MANAGER='CapabilitiesManager';const CONFIG_MANAGER='ConfigManager';const EVENT_MANAGER='EventManager';const PLUGINS_MANAGER='PluginsManager';const USER_SESSION_MANAGER='UserSessionManager';const ERROR_HANDLER='ErrorHandler';const PLUGIN_ENGINE='PluginEngine';const STORE_MANAGER='StoreManager';const READY_API='readyApi';const EVENT_REPOSITORY='EventRepository';const EXTERNAL_SRC_LOADER='ExternalSrcLoader';const HTTP_CLIENT='HttpClient';const RS_APP='RudderStackApplication';const ANALYTICS_CORE='AnalyticsCore';
421
421
 
422
- const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.0.0-beta.20';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
422
+ const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.0.0-beta.22';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
423
423
 
424
424
  const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
425
425
 
@@ -571,7 +571,7 @@
571
571
 
572
572
  const DEFAULT_ERROR_REPORTING_PROVIDER='bugsnag';const DEFAULT_STORAGE_ENCRYPTION_VERSION='v3';const ConsentManagersToPluginNameMap={oneTrust:'OneTrustConsentManager',ketch:'KetchConsentManager',custom:'CustomConsentManager'};const ErrorReportingProvidersToPluginNameMap={[DEFAULT_ERROR_REPORTING_PROVIDER]:'Bugsnag'};const StorageEncryptionVersionsToPluginNameMap={[DEFAULT_STORAGE_ENCRYPTION_VERSION]:'StorageEncryption',legacy:'StorageEncryptionLegacy'};
573
573
 
574
- const defaultLoadOptions={logLevel:'ERROR',configUrl:DEFAULT_CONFIG_BE_URL,loadIntegration:true,sessions:{autoTrack:true,timeout:DEFAULT_SESSION_TIMEOUT_MS},sameSiteCookie:'Lax',polyfillIfRequired:true,integrations:{All:true},useBeacon:false,beaconQueueOptions:{},destinationsQueueOptions:{},queueOptions:{},lockIntegrationsVersion:false,uaChTrackLevel:'none',plugins:[],useGlobalIntegrationsConfigInEvents:false,bufferDataPlaneEventsUntilReady:false,dataPlaneEventsBufferTimeout:DEFAULT_DATA_PLANE_EVENTS_BUFFER_TIMEOUT_MS,storage:{encryption:{version:DEFAULT_STORAGE_ENCRYPTION_VERSION},migrate:false},sendAdblockPageOptions:{}};const loadOptionsState=a(clone(defaultLoadOptions));
574
+ const defaultLoadOptions={logLevel:'ERROR',configUrl:DEFAULT_CONFIG_BE_URL,loadIntegration:true,sessions:{autoTrack:true,timeout:DEFAULT_SESSION_TIMEOUT_MS},sameSiteCookie:'Lax',polyfillIfRequired:true,integrations:{All:true},useBeacon:false,beaconQueueOptions:{},destinationsQueueOptions:{},queueOptions:{},lockIntegrationsVersion:false,uaChTrackLevel:'none',plugins:[],useGlobalIntegrationsConfigInEvents:false,bufferDataPlaneEventsUntilReady:false,dataPlaneEventsBufferTimeout:DEFAULT_DATA_PLANE_EVENTS_BUFFER_TIMEOUT_MS,storage:{encryption:{version:DEFAULT_STORAGE_ENCRYPTION_VERSION},migrate:true},sendAdblockPageOptions:{}};const loadOptionsState=a(clone(defaultLoadOptions));
575
575
 
576
576
  const USER_SESSION_STORAGE_KEYS={userId:'rl_user_id',userTraits:'rl_trait',anonymousId:'rl_anonymous_id',groupId:'rl_group_id',groupTraits:'rl_group_trait',initialReferrer:'rl_page_init_referrer',initialReferringDomain:'rl_page_init_referring_domain',sessionInfo:'rl_session',authToken:'rl_auth_token'};const DEFAULT_USER_SESSION_VALUES={userId:'',userTraits:{},anonymousId:'',groupId:'',groupTraits:{},initialReferrer:'',initialReferringDomain:'',sessionInfo:{},authToken:null};
577
577
 
@@ -866,160 +866,162 @@
866
866
  // the configured resolution strategy
867
867
  const matchPredicate=consent=>allowedConsentIds.includes(consent);switch(resolutionStrategy){case'or':return configuredConsents.some(matchPredicate)||configuredConsents.length===0;case'and':default:return configuredConsents.every(matchPredicate);}}catch(err){errorHandler?.onError(err,CUSTOM_CONSENT_MANAGER_PLUGIN,DESTINATION_CONSENT_STATUS_ERROR$2);return true;}}}});
868
868
 
869
- const DIR_NAME$1b='AdobeAnalytics';const DISPLAY_NAME$1b='Adobe Analytics';
869
+ const DIR_NAME$1c='AdobeAnalytics';const DISPLAY_NAME$1c='Adobe Analytics';
870
870
 
871
- const DIR_NAME$1a='Amplitude';const DISPLAY_NAME$1a='Amplitude';
871
+ const DIR_NAME$1b='Amplitude';const DISPLAY_NAME$1b='Amplitude';
872
872
 
873
- const DIR_NAME$19='Appcues';const DISPLAY_NAME$19='Appcues';
873
+ const DIR_NAME$1a='Appcues';const DISPLAY_NAME$1a='Appcues';
874
874
 
875
- const DIR_NAME$18='BingAds';const DISPLAY_NAME$18='Bing Ads';
875
+ const DIR_NAME$19='BingAds';const DISPLAY_NAME$19='Bing Ads';
876
876
 
877
- const DIR_NAME$17='Braze';const DISPLAY_NAME$17='Braze';
877
+ const DIR_NAME$18='Braze';const DISPLAY_NAME$18='Braze';
878
878
 
879
- const DIR_NAME$16='Bugsnag';const DISPLAY_NAME$16='Bugsnag';
879
+ const DIR_NAME$17='Bugsnag';const DISPLAY_NAME$17='Bugsnag';
880
880
 
881
- const DIR_NAME$15='Chartbeat';const DISPLAY_NAME$15='Chartbeat';
881
+ const DIR_NAME$16='Chartbeat';const DISPLAY_NAME$16='Chartbeat';
882
882
 
883
- const DIR_NAME$14='Clevertap';const DISPLAY_NAME$14='CleverTap';
883
+ const DIR_NAME$15='Clevertap';const DISPLAY_NAME$15='CleverTap';
884
884
 
885
- const DIR_NAME$13='Comscore';const DISPLAY_NAME$13='Comscore';
885
+ const DIR_NAME$14='Comscore';const DISPLAY_NAME$14='Comscore';
886
886
 
887
- const DIR_NAME$12='Criteo';const DISPLAY_NAME$12='Criteo';
887
+ const DIR_NAME$13='Criteo';const DISPLAY_NAME$13='Criteo';
888
888
 
889
- const DIR_NAME$11='CustomerIO';const DISPLAY_NAME$11='Customer IO';
889
+ const DIR_NAME$12='CustomerIO';const DISPLAY_NAME$12='Customer IO';
890
890
 
891
- const DIR_NAME$10='Drip';const DISPLAY_NAME$10='Drip';
891
+ const DIR_NAME$11='Drip';const DISPLAY_NAME$11='Drip';
892
892
 
893
- const DIR_NAME$$='FacebookPixel';const DISPLAY_NAME$$='Facebook Pixel';
893
+ const DIR_NAME$10='FacebookPixel';const DISPLAY_NAME$10='Facebook Pixel';
894
894
 
895
- const DIR_NAME$_='Fullstory';const DISPLAY_NAME$_='Fullstory';
895
+ const DIR_NAME$$='Fullstory';const DISPLAY_NAME$$='Fullstory';
896
896
 
897
- const DIR_NAME$Z='GA';const DISPLAY_NAME$Z='Google Analytics';
897
+ const DIR_NAME$_='GA';const DISPLAY_NAME$_='Google Analytics';
898
898
 
899
- const DIR_NAME$Y='GA4';const DISPLAY_NAME$Y='Google Analytics 4 (GA4)';
899
+ const DIR_NAME$Z='GA4';const DISPLAY_NAME$Z='Google Analytics 4 (GA4)';
900
900
 
901
- const DIR_NAME$X='GoogleAds';const DISPLAY_NAME$X='Google Ads';
901
+ const DIR_NAME$Y='GoogleAds';const DISPLAY_NAME$Y='Google Ads';
902
902
 
903
- const DIR_NAME$W='GoogleOptimize';const DISPLAY_NAME$W='Google Optimize';
903
+ const DIR_NAME$X='GoogleOptimize';const DISPLAY_NAME$X='Google Optimize';
904
904
 
905
- const DIR_NAME$V='GoogleTagManager';const DISPLAY_NAME$V='Google Tag Manager';
905
+ const DIR_NAME$W='GoogleTagManager';const DISPLAY_NAME$W='Google Tag Manager';
906
906
 
907
- const DIR_NAME$U='Heap';const DISPLAY_NAME$U='Heap.io';
907
+ const DIR_NAME$V='Heap';const DISPLAY_NAME$V='Heap.io';
908
908
 
909
- const DIR_NAME$T='Hotjar';const DISPLAY_NAME$T='Hotjar';
909
+ const DIR_NAME$U='Hotjar';const DISPLAY_NAME$U='Hotjar';
910
910
 
911
- const DIR_NAME$S='HubSpot';const DISPLAY_NAME$S='HubSpot';
911
+ const DIR_NAME$T='HubSpot';const DISPLAY_NAME$T='HubSpot';
912
912
 
913
- const DIR_NAME$R='INTERCOM';const DISPLAY_NAME$R='Intercom';
913
+ const DIR_NAME$S='INTERCOM';const DISPLAY_NAME$S='Intercom';
914
914
 
915
- const DIR_NAME$Q='Keen';const DISPLAY_NAME$Q='Keen';
915
+ const DIR_NAME$R='Keen';const DISPLAY_NAME$R='Keen';
916
916
 
917
- const DIR_NAME$P='Kissmetrics';const DISPLAY_NAME$P='Kiss Metrics';
917
+ const DIR_NAME$Q='Kissmetrics';const DISPLAY_NAME$Q='Kiss Metrics';
918
918
 
919
- const DIR_NAME$O='Klaviyo';const DISPLAY_NAME$O='Klaviyo';
919
+ const DIR_NAME$P='Klaviyo';const DISPLAY_NAME$P='Klaviyo';
920
920
 
921
- const DIR_NAME$N='LaunchDarkly';const DISPLAY_NAME$N='LaunchDarkly';
921
+ const DIR_NAME$O='LaunchDarkly';const DISPLAY_NAME$O='LaunchDarkly';
922
922
 
923
- const DIR_NAME$M='LinkedInInsightTag';const DISPLAY_NAME$M='Linkedin Insight Tag';
923
+ const DIR_NAME$N='LinkedInInsightTag';const DISPLAY_NAME$N='Linkedin Insight Tag';
924
924
 
925
- const DIR_NAME$L='Lotame';const DISPLAY_NAME$L='Lotame';
925
+ const DIR_NAME$M='Lotame';const DISPLAY_NAME$M='Lotame';
926
926
 
927
- const DIR_NAME$K='Lytics';const DISPLAY_NAME$K='Lytics';
927
+ const DIR_NAME$L='Lytics';const DISPLAY_NAME$L='Lytics';
928
928
 
929
- const DIR_NAME$J='Mixpanel';const DISPLAY_NAME$J='Mixpanel';
929
+ const DIR_NAME$K='Mixpanel';const DISPLAY_NAME$K='Mixpanel';
930
930
 
931
- const DIR_NAME$I='MoEngage';const DISPLAY_NAME$I='MoEngage';
931
+ const DIR_NAME$J='MoEngage';const DISPLAY_NAME$J='MoEngage';
932
932
 
933
- const DIR_NAME$H='Optimizely';const DISPLAY_NAME$H='Optimizely Web';
933
+ const DIR_NAME$I='Optimizely';const DISPLAY_NAME$I='Optimizely Web';
934
934
 
935
- const DIR_NAME$G='Pendo';const DISPLAY_NAME$G='Pendo';
935
+ const DIR_NAME$H='Pendo';const DISPLAY_NAME$H='Pendo';
936
936
 
937
- const DIR_NAME$F='PinterestTag';const DISPLAY_NAME$F='Pinterest Tag';
937
+ const DIR_NAME$G='PinterestTag';const DISPLAY_NAME$G='Pinterest Tag';
938
938
 
939
- const DIR_NAME$E='PostAffiliatePro';const DISPLAY_NAME$E='Post Affiliate Pro';
939
+ const DIR_NAME$F='PostAffiliatePro';const DISPLAY_NAME$F='Post Affiliate Pro';
940
940
 
941
- const DIR_NAME$D='Posthog';const DISPLAY_NAME$D='PostHog';
941
+ const DIR_NAME$E='Posthog';const DISPLAY_NAME$E='PostHog';
942
942
 
943
- const DIR_NAME$C='ProfitWell';const DISPLAY_NAME$C='ProfitWell';
943
+ const DIR_NAME$D='ProfitWell';const DISPLAY_NAME$D='ProfitWell';
944
944
 
945
- const DIR_NAME$B='Qualtrics';const DISPLAY_NAME$B='Qualtrics';
945
+ const DIR_NAME$C='Qualtrics';const DISPLAY_NAME$C='Qualtrics';
946
946
 
947
- const DIR_NAME$A='QuantumMetric';const DISPLAY_NAME$A='Quantum Metric';
947
+ const DIR_NAME$B='QuantumMetric';const DISPLAY_NAME$B='Quantum Metric';
948
948
 
949
- const DIR_NAME$z='RedditPixel';const DISPLAY_NAME$z='Reddit Pixel';
949
+ const DIR_NAME$A='RedditPixel';const DISPLAY_NAME$A='Reddit Pixel';
950
950
 
951
- const DIR_NAME$y='Sentry';const DISPLAY_NAME$y='Sentry';
951
+ const DIR_NAME$z='Sentry';const DISPLAY_NAME$z='Sentry';
952
952
 
953
- const DIR_NAME$x='SnapPixel';const DISPLAY_NAME$x='Snap Pixel';
953
+ const DIR_NAME$y='SnapPixel';const DISPLAY_NAME$y='Snap Pixel';
954
954
 
955
- const DIR_NAME$w='TVSquared';const DISPLAY_NAME$w='TVSquared';
955
+ const DIR_NAME$x='TVSquared';const DISPLAY_NAME$x='TVSquared';
956
956
 
957
- const DIR_NAME$v='VWO';const DISPLAY_NAME$v='VWO';
957
+ const DIR_NAME$w='VWO';const DISPLAY_NAME$w='VWO';
958
958
 
959
- const DIR_NAME$u='GA360';const DISPLAY_NAME$u='Google Analytics 360';
959
+ const DIR_NAME$v='GA360';const DISPLAY_NAME$v='Google Analytics 360';
960
960
 
961
- const DIR_NAME$t='Adroll';const DISPLAY_NAME$t='Adroll';
961
+ const DIR_NAME$u='Adroll';const DISPLAY_NAME$u='Adroll';
962
962
 
963
- const DIR_NAME$s='DCMFloodlight';const DISPLAY_NAME$s='DCM Floodlight';
963
+ const DIR_NAME$t='DCMFloodlight';const DISPLAY_NAME$t='DCM Floodlight';
964
964
 
965
- const DIR_NAME$r='Matomo';const DISPLAY_NAME$r='Matomo';
965
+ const DIR_NAME$s='Matomo';const DISPLAY_NAME$s='Matomo';
966
966
 
967
- const DIR_NAME$q='Vero';const DISPLAY_NAME$q='Vero';
967
+ const DIR_NAME$r='Vero';const DISPLAY_NAME$r='Vero';
968
968
 
969
- const DIR_NAME$p='Mouseflow';const DISPLAY_NAME$p='Mouseflow';
969
+ const DIR_NAME$q='Mouseflow';const DISPLAY_NAME$q='Mouseflow';
970
970
 
971
- const DIR_NAME$o='Rockerbox';const DISPLAY_NAME$o='Rockerbox';
971
+ const DIR_NAME$p='Rockerbox';const DISPLAY_NAME$p='Rockerbox';
972
972
 
973
- const DIR_NAME$n='ConvertFlow';const DISPLAY_NAME$n='ConvertFlow';
973
+ const DIR_NAME$o='ConvertFlow';const DISPLAY_NAME$o='ConvertFlow';
974
974
 
975
- const DIR_NAME$m='SnapEngage';const DISPLAY_NAME$m='SnapEngage';
975
+ const DIR_NAME$n='SnapEngage';const DISPLAY_NAME$n='SnapEngage';
976
976
 
977
- const DIR_NAME$l='LiveChat';const DISPLAY_NAME$l='LiveChat';
977
+ const DIR_NAME$m='LiveChat';const DISPLAY_NAME$m='LiveChat';
978
978
 
979
- const DIR_NAME$k='Shynet';const DISPLAY_NAME$k='Shynet';
979
+ const DIR_NAME$l='Shynet';const DISPLAY_NAME$l='Shynet';
980
980
 
981
- const DIR_NAME$j='Woopra';const DISPLAY_NAME$j='Woopra';
981
+ const DIR_NAME$k='Woopra';const DISPLAY_NAME$k='Woopra';
982
982
 
983
- const DIR_NAME$i='RollBar';const DISPLAY_NAME$i='RollBar';
983
+ const DIR_NAME$j='RollBar';const DISPLAY_NAME$j='RollBar';
984
984
 
985
- const DIR_NAME$h='QuoraPixel';const DISPLAY_NAME$h='Quora Pixel';
985
+ const DIR_NAME$i='QuoraPixel';const DISPLAY_NAME$i='Quora Pixel';
986
986
 
987
- const DIR_NAME$g='June';const DISPLAY_NAME$g='June';
987
+ const DIR_NAME$h='June';const DISPLAY_NAME$h='June';
988
988
 
989
- const DIR_NAME$f='Engage';const DISPLAY_NAME$f='Engage';
989
+ const DIR_NAME$g='Engage';const DISPLAY_NAME$g='Engage';
990
990
 
991
- const DIR_NAME$e='Iterable';const DISPLAY_NAME$e='Iterable';
991
+ const DIR_NAME$f='Iterable';const DISPLAY_NAME$f='Iterable';
992
992
 
993
- const DIR_NAME$d='YandexMetrica';const DISPLAY_NAME$d='Yandex.Metrica';
993
+ const DIR_NAME$e='YandexMetrica';const DISPLAY_NAME$e='Yandex.Metrica';
994
994
 
995
- const DIR_NAME$c='Refiner';const DISPLAY_NAME$c='Refiner';
995
+ const DIR_NAME$d='Refiner';const DISPLAY_NAME$d='Refiner';
996
996
 
997
- const DIR_NAME$b='Qualaroo';const DISPLAY_NAME$b='Qualaroo';
997
+ const DIR_NAME$c='Qualaroo';const DISPLAY_NAME$c='Qualaroo';
998
998
 
999
- const DIR_NAME$a='Podsights';const DISPLAY_NAME$a='Podsights';
999
+ const DIR_NAME$b='Podsights';const DISPLAY_NAME$b='Podsights';
1000
1000
 
1001
- const DIR_NAME$9='Axeptio';const DISPLAY_NAME$9='Axeptio';
1001
+ const DIR_NAME$a='Axeptio';const DISPLAY_NAME$a='Axeptio';
1002
1002
 
1003
- const DIR_NAME$8='Satismeter';const DISPLAY_NAME$8='Satismeter';
1003
+ const DIR_NAME$9='Satismeter';const DISPLAY_NAME$9='Satismeter';
1004
1004
 
1005
- const DIR_NAME$7='MicrosoftClarity';const DISPLAY_NAME$7='Microsoft Clarity';
1005
+ const DIR_NAME$8='MicrosoftClarity';const DISPLAY_NAME$8='Microsoft Clarity';
1006
1006
 
1007
- const DIR_NAME$6='Sendinblue';const DISPLAY_NAME$6='Sendinblue';
1007
+ const DIR_NAME$7='Sendinblue';const DISPLAY_NAME$7='Sendinblue';
1008
1008
 
1009
- const DIR_NAME$5='Olark';const DISPLAY_NAME$5='Olark';
1009
+ const DIR_NAME$6='Olark';const DISPLAY_NAME$6='Olark';
1010
1010
 
1011
- const DIR_NAME$4='Lemnisk';const DISPLAY_NAME$4='Lemnisk';
1011
+ const DIR_NAME$5='Lemnisk';const DISPLAY_NAME$5='Lemnisk';
1012
1012
 
1013
- const DIR_NAME$3='TiktokAds';const DISPLAY_NAME$3='TikTok Ads';
1013
+ const DIR_NAME$4='TiktokAds';const DISPLAY_NAME$4='TikTok Ads';
1014
1014
 
1015
- const DIR_NAME$2='ActiveCampaign';const DISPLAY_NAME$2='Active Campaign';
1015
+ const DIR_NAME$3='ActiveCampaign';const DISPLAY_NAME$3='Active Campaign';
1016
1016
 
1017
- const DIR_NAME$1='Sprig';const DISPLAY_NAME$1='Sprig';
1017
+ const DIR_NAME$2='Sprig';const DISPLAY_NAME$2='Sprig';
1018
1018
 
1019
- const DIR_NAME='SpotifyPixel';const DISPLAY_NAME='Spotify Pixel';
1019
+ const DIR_NAME$1='SpotifyPixel';const DISPLAY_NAME$1='Spotify Pixel';
1020
+
1021
+ const DIR_NAME='CommandBar';const DISPLAY_NAME='CommandBar';
1020
1022
 
1021
1023
  // map of the destination display names to the destination directory names
1022
- const destDisplayNamesToFileNamesMap={[DISPLAY_NAME$S]:DIR_NAME$S,[DISPLAY_NAME$Z]:DIR_NAME$Z,[DISPLAY_NAME$T]:DIR_NAME$T,[DISPLAY_NAME$X]:DIR_NAME$X,[DISPLAY_NAME$v]:DIR_NAME$v,[DISPLAY_NAME$V]:DIR_NAME$V,[DISPLAY_NAME$17]:DIR_NAME$17,[DISPLAY_NAME$R]:DIR_NAME$R,[DISPLAY_NAME$Q]:DIR_NAME$Q,[DISPLAY_NAME$P]:DIR_NAME$P,[DISPLAY_NAME$11]:DIR_NAME$11,[DISPLAY_NAME$15]:DIR_NAME$15,[DISPLAY_NAME$13]:DIR_NAME$13,[DISPLAY_NAME$$]:DIR_NAME$$,[DISPLAY_NAME$L]:DIR_NAME$L,[DISPLAY_NAME$H]:DIR_NAME$H,[DISPLAY_NAME$16]:DIR_NAME$16,[DISPLAY_NAME$_]:DIR_NAME$_,[DISPLAY_NAME$w]:DIR_NAME$w,[DISPLAY_NAME$Y]:DIR_NAME$Y,[DISPLAY_NAME$I]:DIR_NAME$I,[DISPLAY_NAME$1a]:DIR_NAME$1a,[DISPLAY_NAME$G]:DIR_NAME$G,[DISPLAY_NAME$K]:DIR_NAME$K,[DISPLAY_NAME$19]:DIR_NAME$19,[DISPLAY_NAME$D]:DIR_NAME$D,[DISPLAY_NAME$O]:DIR_NAME$O,[DISPLAY_NAME$14]:DIR_NAME$14,[DISPLAY_NAME$18]:DIR_NAME$18,[DISPLAY_NAME$F]:DIR_NAME$F,[DISPLAY_NAME$1b]:DIR_NAME$1b,[DISPLAY_NAME$M]:DIR_NAME$M,[DISPLAY_NAME$z]:DIR_NAME$z,[DISPLAY_NAME$10]:DIR_NAME$10,[DISPLAY_NAME$U]:DIR_NAME$U,[DISPLAY_NAME$12]:DIR_NAME$12,[DISPLAY_NAME$J]:DIR_NAME$J,[DISPLAY_NAME$B]:DIR_NAME$B,[DISPLAY_NAME$C]:DIR_NAME$C,[DISPLAY_NAME$y]:DIR_NAME$y,[DISPLAY_NAME$A]:DIR_NAME$A,[DISPLAY_NAME$x]:DIR_NAME$x,[DISPLAY_NAME$E]:DIR_NAME$E,[DISPLAY_NAME$W]:DIR_NAME$W,[DISPLAY_NAME$N]:DIR_NAME$N,[DISPLAY_NAME$u]:DIR_NAME$u,[DISPLAY_NAME$t]:DIR_NAME$t,[DISPLAY_NAME$s]:DIR_NAME$s,[DISPLAY_NAME$r]:DIR_NAME$r,[DISPLAY_NAME$q]:DIR_NAME$q,[DISPLAY_NAME$p]:DIR_NAME$p,[DISPLAY_NAME$o]:DIR_NAME$o,[DISPLAY_NAME$n]:DIR_NAME$n,[DISPLAY_NAME$m]:DIR_NAME$m,[DISPLAY_NAME$l]:DIR_NAME$l,[DISPLAY_NAME$k]:DIR_NAME$k,[DISPLAY_NAME$j]:DIR_NAME$j,[DISPLAY_NAME$i]:DIR_NAME$i,[DISPLAY_NAME$h]:DIR_NAME$h,[DISPLAY_NAME$g]:DIR_NAME$g,[DISPLAY_NAME$f]:DIR_NAME$f,[DISPLAY_NAME$e]:DIR_NAME$e,[DISPLAY_NAME$d]:DIR_NAME$d,[DISPLAY_NAME$c]:DIR_NAME$c,[DISPLAY_NAME$b]:DIR_NAME$b,[DISPLAY_NAME$a]:DIR_NAME$a,[DISPLAY_NAME$9]:DIR_NAME$9,[DISPLAY_NAME$8]:DIR_NAME$8,[DISPLAY_NAME$7]:DIR_NAME$7,[DISPLAY_NAME$6]:DIR_NAME$6,[DISPLAY_NAME$5]:DIR_NAME$5,[DISPLAY_NAME$4]:DIR_NAME$4,[DISPLAY_NAME$3]:DIR_NAME$3,[DISPLAY_NAME$2]:DIR_NAME$2,[DISPLAY_NAME$1]:DIR_NAME$1,[DISPLAY_NAME]:DIR_NAME};
1024
+ const destDisplayNamesToFileNamesMap={[DISPLAY_NAME$T]:DIR_NAME$T,[DISPLAY_NAME$_]:DIR_NAME$_,[DISPLAY_NAME$U]:DIR_NAME$U,[DISPLAY_NAME$Y]:DIR_NAME$Y,[DISPLAY_NAME$w]:DIR_NAME$w,[DISPLAY_NAME$W]:DIR_NAME$W,[DISPLAY_NAME$18]:DIR_NAME$18,[DISPLAY_NAME$S]:DIR_NAME$S,[DISPLAY_NAME$R]:DIR_NAME$R,[DISPLAY_NAME$Q]:DIR_NAME$Q,[DISPLAY_NAME$12]:DIR_NAME$12,[DISPLAY_NAME$16]:DIR_NAME$16,[DISPLAY_NAME$14]:DIR_NAME$14,[DISPLAY_NAME$10]:DIR_NAME$10,[DISPLAY_NAME$M]:DIR_NAME$M,[DISPLAY_NAME$I]:DIR_NAME$I,[DISPLAY_NAME$17]:DIR_NAME$17,[DISPLAY_NAME$$]:DIR_NAME$$,[DISPLAY_NAME$x]:DIR_NAME$x,[DISPLAY_NAME$Z]:DIR_NAME$Z,[DISPLAY_NAME$J]:DIR_NAME$J,[DISPLAY_NAME$1b]:DIR_NAME$1b,[DISPLAY_NAME$H]:DIR_NAME$H,[DISPLAY_NAME$L]:DIR_NAME$L,[DISPLAY_NAME$1a]:DIR_NAME$1a,[DISPLAY_NAME$E]:DIR_NAME$E,[DISPLAY_NAME$P]:DIR_NAME$P,[DISPLAY_NAME$15]:DIR_NAME$15,[DISPLAY_NAME$19]:DIR_NAME$19,[DISPLAY_NAME$G]:DIR_NAME$G,[DISPLAY_NAME$1c]:DIR_NAME$1c,[DISPLAY_NAME$N]:DIR_NAME$N,[DISPLAY_NAME$A]:DIR_NAME$A,[DISPLAY_NAME$11]:DIR_NAME$11,[DISPLAY_NAME$V]:DIR_NAME$V,[DISPLAY_NAME$13]:DIR_NAME$13,[DISPLAY_NAME$K]:DIR_NAME$K,[DISPLAY_NAME$C]:DIR_NAME$C,[DISPLAY_NAME$D]:DIR_NAME$D,[DISPLAY_NAME$z]:DIR_NAME$z,[DISPLAY_NAME$B]:DIR_NAME$B,[DISPLAY_NAME$y]:DIR_NAME$y,[DISPLAY_NAME$F]:DIR_NAME$F,[DISPLAY_NAME$X]:DIR_NAME$X,[DISPLAY_NAME$O]:DIR_NAME$O,[DISPLAY_NAME$v]:DIR_NAME$v,[DISPLAY_NAME$u]:DIR_NAME$u,[DISPLAY_NAME$t]:DIR_NAME$t,[DISPLAY_NAME$s]:DIR_NAME$s,[DISPLAY_NAME$r]:DIR_NAME$r,[DISPLAY_NAME$q]:DIR_NAME$q,[DISPLAY_NAME$p]:DIR_NAME$p,[DISPLAY_NAME$o]:DIR_NAME$o,[DISPLAY_NAME$n]:DIR_NAME$n,[DISPLAY_NAME$m]:DIR_NAME$m,[DISPLAY_NAME$l]:DIR_NAME$l,[DISPLAY_NAME$k]:DIR_NAME$k,[DISPLAY_NAME$j]:DIR_NAME$j,[DISPLAY_NAME$i]:DIR_NAME$i,[DISPLAY_NAME$h]:DIR_NAME$h,[DISPLAY_NAME$g]:DIR_NAME$g,[DISPLAY_NAME$f]:DIR_NAME$f,[DISPLAY_NAME$e]:DIR_NAME$e,[DISPLAY_NAME$d]:DIR_NAME$d,[DISPLAY_NAME$c]:DIR_NAME$c,[DISPLAY_NAME$b]:DIR_NAME$b,[DISPLAY_NAME$a]:DIR_NAME$a,[DISPLAY_NAME$9]:DIR_NAME$9,[DISPLAY_NAME$8]:DIR_NAME$8,[DISPLAY_NAME$7]:DIR_NAME$7,[DISPLAY_NAME$6]:DIR_NAME$6,[DISPLAY_NAME$5]:DIR_NAME$5,[DISPLAY_NAME$4]:DIR_NAME$4,[DISPLAY_NAME$3]:DIR_NAME$3,[DISPLAY_NAME$2]:DIR_NAME$2,[DISPLAY_NAME$1]:DIR_NAME$1,[DISPLAY_NAME]:DIR_NAME};
1023
1025
 
1024
1026
  const DEFAULT_INTEGRATIONS_CONFIG={All:true};
1025
1027
 
@@ -3198,7 +3200,9 @@
3198
3200
  // eslint-disable-next-line no-constructor-return
3199
3201
  return RudderAnalytics.globalSingleton;// END-NO-SONAR-SCAN
3200
3202
  }defaultErrorHandler.attachErrorListeners();this.setDefaultInstanceKey=this.setDefaultInstanceKey.bind(this);this.getAnalyticsInstance=this.getAnalyticsInstance.bind(this);this.load=this.load.bind(this);this.ready=this.ready.bind(this);this.triggerBufferedLoadEvent=this.triggerBufferedLoadEvent.bind(this);this.page=this.page.bind(this);this.track=this.track.bind(this);this.identify=this.identify.bind(this);this.alias=this.alias.bind(this);this.group=this.group.bind(this);this.reset=this.reset.bind(this);this.getAnonymousId=this.getAnonymousId.bind(this);this.setAnonymousId=this.setAnonymousId.bind(this);this.getUserId=this.getUserId.bind(this);this.getUserTraits=this.getUserTraits.bind(this);this.getGroupId=this.getGroupId.bind(this);this.getGroupTraits=this.getGroupTraits.bind(this);this.startSession=this.startSession.bind(this);this.endSession=this.endSession.bind(this);this.getSessionId=this.getSessionId.bind(this);this.setAuthToken=this.setAuthToken.bind(this);this.consent=this.consent.bind(this);RudderAnalytics.globalSingleton=this;// start loading if a load event was buffered or wait for explicit load call
3201
- this.triggerBufferedLoadEvent();}/**
3203
+ this.triggerBufferedLoadEvent();// Assign to global "rudderanalytics" object after processing the preload buffer (if any exists)
3204
+ // for CDN bundling IIFE exports covers this but for npm ESM and CJS bundling has to be done explicitly
3205
+ globalThis.rudderanalytics=this;}/**
3202
3206
  * Set instance to use if no specific writeKey is provided in methods
3203
3207
  * automatically for the first created instance
3204
3208
  * TODO: to support multiple analytics instances in the near future
@@ -404,7 +404,7 @@ if(isDefined(payload.groupId)){payload.groupId=tryStringify(payload.groupId);}el
404
404
 
405
405
  const CAPABILITIES_MANAGER='CapabilitiesManager';const CONFIG_MANAGER='ConfigManager';const EVENT_MANAGER='EventManager';const PLUGINS_MANAGER='PluginsManager';const USER_SESSION_MANAGER='UserSessionManager';const ERROR_HANDLER='ErrorHandler';const PLUGIN_ENGINE='PluginEngine';const STORE_MANAGER='StoreManager';const READY_API='readyApi';const EVENT_REPOSITORY='EventRepository';const EXTERNAL_SRC_LOADER='ExternalSrcLoader';const HTTP_CLIENT='HttpClient';const RS_APP='RudderStackApplication';const ANALYTICS_CORE='AnalyticsCore';
406
406
 
407
- const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.0.0-beta.20';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
407
+ const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.0.0-beta.22';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
408
408
 
409
409
  const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
410
410
 
@@ -556,7 +556,7 @@ const DEFAULT_CONFIG_BE_URL='https://api.rudderstack.com';
556
556
 
557
557
  const DEFAULT_ERROR_REPORTING_PROVIDER='bugsnag';const DEFAULT_STORAGE_ENCRYPTION_VERSION='v3';const ConsentManagersToPluginNameMap={oneTrust:'OneTrustConsentManager',ketch:'KetchConsentManager',custom:'CustomConsentManager'};const ErrorReportingProvidersToPluginNameMap={[DEFAULT_ERROR_REPORTING_PROVIDER]:'Bugsnag'};const StorageEncryptionVersionsToPluginNameMap={[DEFAULT_STORAGE_ENCRYPTION_VERSION]:'StorageEncryption',legacy:'StorageEncryptionLegacy'};
558
558
 
559
- const defaultLoadOptions={logLevel:'ERROR',configUrl:DEFAULT_CONFIG_BE_URL,loadIntegration:true,sessions:{autoTrack:true,timeout:DEFAULT_SESSION_TIMEOUT_MS},sameSiteCookie:'Lax',polyfillIfRequired:true,integrations:{All:true},useBeacon:false,beaconQueueOptions:{},destinationsQueueOptions:{},queueOptions:{},lockIntegrationsVersion:false,uaChTrackLevel:'none',plugins:[],useGlobalIntegrationsConfigInEvents:false,bufferDataPlaneEventsUntilReady:false,dataPlaneEventsBufferTimeout:DEFAULT_DATA_PLANE_EVENTS_BUFFER_TIMEOUT_MS,storage:{encryption:{version:DEFAULT_STORAGE_ENCRYPTION_VERSION},migrate:false},sendAdblockPageOptions:{}};const loadOptionsState=a(clone(defaultLoadOptions));
559
+ const defaultLoadOptions={logLevel:'ERROR',configUrl:DEFAULT_CONFIG_BE_URL,loadIntegration:true,sessions:{autoTrack:true,timeout:DEFAULT_SESSION_TIMEOUT_MS},sameSiteCookie:'Lax',polyfillIfRequired:true,integrations:{All:true},useBeacon:false,beaconQueueOptions:{},destinationsQueueOptions:{},queueOptions:{},lockIntegrationsVersion:false,uaChTrackLevel:'none',plugins:[],useGlobalIntegrationsConfigInEvents:false,bufferDataPlaneEventsUntilReady:false,dataPlaneEventsBufferTimeout:DEFAULT_DATA_PLANE_EVENTS_BUFFER_TIMEOUT_MS,storage:{encryption:{version:DEFAULT_STORAGE_ENCRYPTION_VERSION},migrate:true},sendAdblockPageOptions:{}};const loadOptionsState=a(clone(defaultLoadOptions));
560
560
 
561
561
  const USER_SESSION_STORAGE_KEYS={userId:'rl_user_id',userTraits:'rl_trait',anonymousId:'rl_anonymous_id',groupId:'rl_group_id',groupTraits:'rl_group_trait',initialReferrer:'rl_page_init_referrer',initialReferringDomain:'rl_page_init_referring_domain',sessionInfo:'rl_session',authToken:'rl_auth_token'};const DEFAULT_USER_SESSION_VALUES={userId:'',userTraits:{},anonymousId:'',groupId:'',groupTraits:{},initialReferrer:'',initialReferringDomain:'',sessionInfo:{},authToken:null};
562
562
 
@@ -649,7 +649,7 @@ destination.config.useNativeSDK===true);const isHybridModeDestination=destinatio
649
649
  */const pluginNamesList=['BeaconQueue','Bugsnag','CustomConsentManager','DeviceModeDestinations','DeviceModeTransformation','ErrorReporting','ExternalAnonymousId','GoogleLinker','KetchConsentManager','NativeDestinationQueue','OneTrustConsentManager','StorageEncryption','StorageEncryptionLegacy','StorageMigrator','XhrQueue'];
650
650
 
651
651
  const remotesMap = {
652
- 'rudderAnalyticsRemotePlugins':{url:()=>Promise.resolve(window.RudderStackGlobals && window.RudderStackGlobals.app && window.RudderStackGlobals.app.pluginsCDNPath ? "" + window.RudderStackGlobals.app.pluginsCDNPath + "/rsa-plugins.js" : "https://cdn.rudderlabs.com/3.0.0-beta.20/modern/plugins/rsa-plugins.js"),format:'esm',from:'vite'}
652
+ 'rudderAnalyticsRemotePlugins':{url:()=>Promise.resolve(window.RudderStackGlobals && window.RudderStackGlobals.app && window.RudderStackGlobals.app.pluginsCDNPath ? "" + window.RudderStackGlobals.app.pluginsCDNPath + "/rsa-plugins.js" : "https://cdn.rudderlabs.com/3.0.0-beta.22/modern/plugins/rsa-plugins.js"),format:'esm',from:'vite'}
653
653
  };
654
654
  const loadJS = async (url, fn) => {
655
655
  const resolvedUrl = typeof url === 'function' ? await url() : url;
@@ -659,11 +659,21 @@ const remotesMap = {
659
659
  script.src = resolvedUrl;
660
660
  document.getElementsByTagName('head')[0].appendChild(script);
661
661
  };
662
+
663
+ function merge(obj1, obj2) {
664
+ const mergedObj = Object.assign(obj1, obj2);
665
+ for (const key of Object.keys(mergedObj)) {
666
+ if (typeof mergedObj[key] === 'object' && typeof obj2[key] === 'object') {
667
+ mergedObj[key] = merge(mergedObj[key], obj2[key]);
668
+ }
669
+ }
670
+ return mergedObj;
671
+ }
662
672
 
663
673
  const wrapShareModule = remoteFrom => {
664
- return {
665
-
666
- }
674
+ return merge({
675
+
676
+ }, (globalThis.__federation_shared__ || {})['default'] || {});
667
677
  };
668
678
 
669
679
  async function __federation_method_ensure(remoteId) {
@@ -1639,7 +1649,9 @@ constructor(){if(RudderAnalytics.globalSingleton){// START-NO-SONAR-SCAN
1639
1649
  // eslint-disable-next-line no-constructor-return
1640
1650
  return RudderAnalytics.globalSingleton;// END-NO-SONAR-SCAN
1641
1651
  }defaultErrorHandler.attachErrorListeners();this.setDefaultInstanceKey=this.setDefaultInstanceKey.bind(this);this.getAnalyticsInstance=this.getAnalyticsInstance.bind(this);this.load=this.load.bind(this);this.ready=this.ready.bind(this);this.triggerBufferedLoadEvent=this.triggerBufferedLoadEvent.bind(this);this.page=this.page.bind(this);this.track=this.track.bind(this);this.identify=this.identify.bind(this);this.alias=this.alias.bind(this);this.group=this.group.bind(this);this.reset=this.reset.bind(this);this.getAnonymousId=this.getAnonymousId.bind(this);this.setAnonymousId=this.setAnonymousId.bind(this);this.getUserId=this.getUserId.bind(this);this.getUserTraits=this.getUserTraits.bind(this);this.getGroupId=this.getGroupId.bind(this);this.getGroupTraits=this.getGroupTraits.bind(this);this.startSession=this.startSession.bind(this);this.endSession=this.endSession.bind(this);this.getSessionId=this.getSessionId.bind(this);this.setAuthToken=this.setAuthToken.bind(this);this.consent=this.consent.bind(this);RudderAnalytics.globalSingleton=this;// start loading if a load event was buffered or wait for explicit load call
1642
- this.triggerBufferedLoadEvent();}/**
1652
+ this.triggerBufferedLoadEvent();// Assign to global "rudderanalytics" object after processing the preload buffer (if any exists)
1653
+ // for CDN bundling IIFE exports covers this but for npm ESM and CJS bundling has to be done explicitly
1654
+ globalThis.rudderanalytics=this;}/**
1643
1655
  * Set instance to use if no specific writeKey is provided in methods
1644
1656
  * automatically for the first created instance
1645
1657
  * TODO: to support multiple analytics instances in the near future
@@ -410,7 +410,7 @@
410
410
 
411
411
  const CAPABILITIES_MANAGER='CapabilitiesManager';const CONFIG_MANAGER='ConfigManager';const EVENT_MANAGER='EventManager';const PLUGINS_MANAGER='PluginsManager';const USER_SESSION_MANAGER='UserSessionManager';const ERROR_HANDLER='ErrorHandler';const PLUGIN_ENGINE='PluginEngine';const STORE_MANAGER='StoreManager';const READY_API='readyApi';const EVENT_REPOSITORY='EventRepository';const EXTERNAL_SRC_LOADER='ExternalSrcLoader';const HTTP_CLIENT='HttpClient';const RS_APP='RudderStackApplication';const ANALYTICS_CORE='AnalyticsCore';
412
412
 
413
- const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.0.0-beta.20';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
413
+ const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.0.0-beta.22';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
414
414
 
415
415
  const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
416
416
 
@@ -562,7 +562,7 @@
562
562
 
563
563
  const DEFAULT_ERROR_REPORTING_PROVIDER='bugsnag';const DEFAULT_STORAGE_ENCRYPTION_VERSION='v3';const ConsentManagersToPluginNameMap={oneTrust:'OneTrustConsentManager',ketch:'KetchConsentManager',custom:'CustomConsentManager'};const ErrorReportingProvidersToPluginNameMap={[DEFAULT_ERROR_REPORTING_PROVIDER]:'Bugsnag'};const StorageEncryptionVersionsToPluginNameMap={[DEFAULT_STORAGE_ENCRYPTION_VERSION]:'StorageEncryption',legacy:'StorageEncryptionLegacy'};
564
564
 
565
- const defaultLoadOptions={logLevel:'ERROR',configUrl:DEFAULT_CONFIG_BE_URL,loadIntegration:true,sessions:{autoTrack:true,timeout:DEFAULT_SESSION_TIMEOUT_MS},sameSiteCookie:'Lax',polyfillIfRequired:true,integrations:{All:true},useBeacon:false,beaconQueueOptions:{},destinationsQueueOptions:{},queueOptions:{},lockIntegrationsVersion:false,uaChTrackLevel:'none',plugins:[],useGlobalIntegrationsConfigInEvents:false,bufferDataPlaneEventsUntilReady:false,dataPlaneEventsBufferTimeout:DEFAULT_DATA_PLANE_EVENTS_BUFFER_TIMEOUT_MS,storage:{encryption:{version:DEFAULT_STORAGE_ENCRYPTION_VERSION},migrate:false},sendAdblockPageOptions:{}};const loadOptionsState=a(clone(defaultLoadOptions));
565
+ const defaultLoadOptions={logLevel:'ERROR',configUrl:DEFAULT_CONFIG_BE_URL,loadIntegration:true,sessions:{autoTrack:true,timeout:DEFAULT_SESSION_TIMEOUT_MS},sameSiteCookie:'Lax',polyfillIfRequired:true,integrations:{All:true},useBeacon:false,beaconQueueOptions:{},destinationsQueueOptions:{},queueOptions:{},lockIntegrationsVersion:false,uaChTrackLevel:'none',plugins:[],useGlobalIntegrationsConfigInEvents:false,bufferDataPlaneEventsUntilReady:false,dataPlaneEventsBufferTimeout:DEFAULT_DATA_PLANE_EVENTS_BUFFER_TIMEOUT_MS,storage:{encryption:{version:DEFAULT_STORAGE_ENCRYPTION_VERSION},migrate:true},sendAdblockPageOptions:{}};const loadOptionsState=a(clone(defaultLoadOptions));
566
566
 
567
567
  const USER_SESSION_STORAGE_KEYS={userId:'rl_user_id',userTraits:'rl_trait',anonymousId:'rl_anonymous_id',groupId:'rl_group_id',groupTraits:'rl_group_trait',initialReferrer:'rl_page_init_referrer',initialReferringDomain:'rl_page_init_referring_domain',sessionInfo:'rl_session',authToken:'rl_auth_token'};const DEFAULT_USER_SESSION_VALUES={userId:'',userTraits:{},anonymousId:'',groupId:'',groupTraits:{},initialReferrer:'',initialReferringDomain:'',sessionInfo:{},authToken:null};
568
568
 
@@ -655,7 +655,7 @@
655
655
  */const pluginNamesList=['BeaconQueue','Bugsnag','CustomConsentManager','DeviceModeDestinations','DeviceModeTransformation','ErrorReporting','ExternalAnonymousId','GoogleLinker','KetchConsentManager','NativeDestinationQueue','OneTrustConsentManager','StorageEncryption','StorageEncryptionLegacy','StorageMigrator','XhrQueue'];
656
656
 
657
657
  const remotesMap = {
658
- 'rudderAnalyticsRemotePlugins':{url:()=>Promise.resolve(window.RudderStackGlobals && window.RudderStackGlobals.app && window.RudderStackGlobals.app.pluginsCDNPath ? "" + window.RudderStackGlobals.app.pluginsCDNPath + "/rsa-plugins.js" : "https://cdn.rudderlabs.com/3.0.0-beta.20/modern/plugins/rsa-plugins.js"),format:'esm',from:'vite'}
658
+ 'rudderAnalyticsRemotePlugins':{url:()=>Promise.resolve(window.RudderStackGlobals && window.RudderStackGlobals.app && window.RudderStackGlobals.app.pluginsCDNPath ? "" + window.RudderStackGlobals.app.pluginsCDNPath + "/rsa-plugins.js" : "https://cdn.rudderlabs.com/3.0.0-beta.22/modern/plugins/rsa-plugins.js"),format:'esm',from:'vite'}
659
659
  };
660
660
  const loadJS = async (url, fn) => {
661
661
  const resolvedUrl = typeof url === 'function' ? await url() : url;
@@ -665,11 +665,21 @@
665
665
  script.src = resolvedUrl;
666
666
  document.getElementsByTagName('head')[0].appendChild(script);
667
667
  };
668
+
669
+ function merge(obj1, obj2) {
670
+ const mergedObj = Object.assign(obj1, obj2);
671
+ for (const key of Object.keys(mergedObj)) {
672
+ if (typeof mergedObj[key] === 'object' && typeof obj2[key] === 'object') {
673
+ mergedObj[key] = merge(mergedObj[key], obj2[key]);
674
+ }
675
+ }
676
+ return mergedObj;
677
+ }
668
678
 
669
679
  const wrapShareModule = remoteFrom => {
670
- return {
671
-
672
- }
680
+ return merge({
681
+
682
+ }, (globalThis.__federation_shared__ || {})['default'] || {});
673
683
  };
674
684
 
675
685
  async function __federation_method_ensure(remoteId) {
@@ -1645,7 +1655,9 @@
1645
1655
  // eslint-disable-next-line no-constructor-return
1646
1656
  return RudderAnalytics.globalSingleton;// END-NO-SONAR-SCAN
1647
1657
  }defaultErrorHandler.attachErrorListeners();this.setDefaultInstanceKey=this.setDefaultInstanceKey.bind(this);this.getAnalyticsInstance=this.getAnalyticsInstance.bind(this);this.load=this.load.bind(this);this.ready=this.ready.bind(this);this.triggerBufferedLoadEvent=this.triggerBufferedLoadEvent.bind(this);this.page=this.page.bind(this);this.track=this.track.bind(this);this.identify=this.identify.bind(this);this.alias=this.alias.bind(this);this.group=this.group.bind(this);this.reset=this.reset.bind(this);this.getAnonymousId=this.getAnonymousId.bind(this);this.setAnonymousId=this.setAnonymousId.bind(this);this.getUserId=this.getUserId.bind(this);this.getUserTraits=this.getUserTraits.bind(this);this.getGroupId=this.getGroupId.bind(this);this.getGroupTraits=this.getGroupTraits.bind(this);this.startSession=this.startSession.bind(this);this.endSession=this.endSession.bind(this);this.getSessionId=this.getSessionId.bind(this);this.setAuthToken=this.setAuthToken.bind(this);this.consent=this.consent.bind(this);RudderAnalytics.globalSingleton=this;// start loading if a load event was buffered or wait for explicit load call
1648
- this.triggerBufferedLoadEvent();}/**
1658
+ this.triggerBufferedLoadEvent();// Assign to global "rudderanalytics" object after processing the preload buffer (if any exists)
1659
+ // for CDN bundling IIFE exports covers this but for npm ESM and CJS bundling has to be done explicitly
1660
+ globalThis.rudderanalytics=this;}/**
1649
1661
  * Set instance to use if no specific writeKey is provided in methods
1650
1662
  * automatically for the first created instance
1651
1663
  * TODO: to support multiple analytics instances in the near future
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudderstack/analytics-js",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.22",
4
4
  "description": "RudderStack Javascript SDK",
5
5
  "main": "dist/npm/modern/cjs/index.js",
6
6
  "module": "dist/npm/modern/esm/index.js",