@microsoft/applicationinsights-react-js 17.1.1-nightly.2402-06 → 17.1.2-nightly.2403-01

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 17.1.1-nightly.2402-06
2
+ * Application Insights JavaScript SDK - React Plugin, 17.1.2-nightly.2403-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1137,6 +1137,7 @@
1137
1137
  var _DYN_UPDATE = "update";
1138
1138
  var _DYN_GET_NEXT = "getNext";
1139
1139
  var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
1140
+ var _DYN_PROTOCOL = "protocol";
1140
1141
  var _DYN_USER_AGENT = "userAgent";
1141
1142
  var _DYN_SPLIT = "split";
1142
1143
  var _DYN_NODE_TYPE = "nodeType";
@@ -1175,6 +1176,257 @@
1175
1176
  var STR_PATH = "path";
1176
1177
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
1177
1178
 
1179
+ var _aiNamespace = null;
1180
+ function _getExtensionNamespace() {
1181
+ var target = getInst("Microsoft");
1182
+ if (target) {
1183
+ _aiNamespace = target["ApplicationInsights"];
1184
+ }
1185
+ return _aiNamespace;
1186
+ }
1187
+ function getDebugExt(config) {
1188
+ var ns = _aiNamespace;
1189
+ if (!ns && config.disableDbgExt !== true) {
1190
+ ns = _aiNamespace || _getExtensionNamespace();
1191
+ }
1192
+ return ns ? ns["ChromeDbgExt"] : null;
1193
+ }
1194
+
1195
+ var strLocation = "location";
1196
+ var strConsole = "console";
1197
+ var strJSON = "JSON";
1198
+ var strCrypto = "crypto";
1199
+ var strMsCrypto = "msCrypto";
1200
+ var strMsie = "msie";
1201
+ var strTrident = "trident/";
1202
+ var _isTrident = null;
1203
+ var _navUserAgentCheck = null;
1204
+ var _enableMocks = false;
1205
+ function getLocation(checkForMock) {
1206
+ if (checkForMock && _enableMocks) {
1207
+ var mockLocation = getInst("__mockLocation");
1208
+ if (mockLocation) {
1209
+ return mockLocation;
1210
+ }
1211
+ }
1212
+ if (typeof location === strShimObject && location) {
1213
+ return location;
1214
+ }
1215
+ return getInst(strLocation);
1216
+ }
1217
+ function getConsole() {
1218
+ if (typeof console !== strShimUndefined) {
1219
+ return console;
1220
+ }
1221
+ return getInst(strConsole);
1222
+ }
1223
+ function hasJSON() {
1224
+ return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
1225
+ }
1226
+ function getJSON() {
1227
+ if (hasJSON()) {
1228
+ return JSON || getInst(strJSON);
1229
+ }
1230
+ return null;
1231
+ }
1232
+ function getCrypto() {
1233
+ return getInst(strCrypto);
1234
+ }
1235
+ function getMsCrypto() {
1236
+ return getInst(strMsCrypto);
1237
+ }
1238
+ function isIE() {
1239
+ var nav = getNavigator();
1240
+ if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
1241
+ _navUserAgentCheck = nav[_DYN_USER_AGENT ];
1242
+ var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
1243
+ _isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
1244
+ }
1245
+ return _isTrident;
1246
+ }
1247
+
1248
+ var _a$2;
1249
+ var STR_WARN_TO_CONSOLE = "warnToConsole";
1250
+ var AiNonUserActionablePrefix = "AI (Internal): ";
1251
+ var AiUserActionablePrefix = "AI: ";
1252
+ var AIInternalMessagePrefix = "AITR_";
1253
+ var defaultValues$1 = {
1254
+ loggingLevelConsole: 0,
1255
+ loggingLevelTelemetry: 1,
1256
+ maxMessageLimit: 25,
1257
+ enableDebug: false
1258
+ };
1259
+ var _logFuncs = (_a$2 = {},
1260
+ _a$2[0 ] = null,
1261
+ _a$2[1 ] = "errorToConsole",
1262
+ _a$2[2 ] = STR_WARN_TO_CONSOLE,
1263
+ _a$2[3 ] = "debugToConsole",
1264
+ _a$2);
1265
+ function _sanitizeDiagnosticText(text) {
1266
+ if (text) {
1267
+ return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
1268
+ }
1269
+ return STR_EMPTY;
1270
+ }
1271
+ function _logToConsole(func, message) {
1272
+ var theConsole = getConsole();
1273
+ if (!!theConsole) {
1274
+ var logFunc = "log";
1275
+ if (theConsole[func]) {
1276
+ logFunc = func;
1277
+ }
1278
+ if (isFunction(theConsole[logFunc])) {
1279
+ theConsole[logFunc](message);
1280
+ }
1281
+ }
1282
+ }
1283
+ var _InternalLogMessage = /** @class */ (function () {
1284
+ function _InternalLogMessage(msgId, msg, isUserAct, properties) {
1285
+ if (isUserAct === void 0) { isUserAct = false; }
1286
+ var _self = this;
1287
+ _self[_DYN_MESSAGE_ID ] = msgId;
1288
+ _self[_DYN_MESSAGE ] =
1289
+ (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
1290
+ msgId;
1291
+ var strProps = STR_EMPTY;
1292
+ if (hasJSON()) {
1293
+ strProps = getJSON().stringify(properties);
1294
+ }
1295
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
1296
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
1297
+ _self[_DYN_MESSAGE ] += diagnosticText;
1298
+ }
1299
+ _InternalLogMessage.dataType = "MessageData";
1300
+ return _InternalLogMessage;
1301
+ }());
1302
+ function safeGetLogger(core, config) {
1303
+ return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
1304
+ }
1305
+ var DiagnosticLogger = /** @class */ (function () {
1306
+ function DiagnosticLogger(config) {
1307
+ this.identifier = "DiagnosticLogger";
1308
+ this.queue = [];
1309
+ var _messageCount = 0;
1310
+ var _messageLogged = {};
1311
+ var _loggingLevelConsole;
1312
+ var _loggingLevelTelemetry;
1313
+ var _maxInternalMessageLimit;
1314
+ var _enableDebug;
1315
+ var _unloadHandler;
1316
+ dynamicProto(DiagnosticLogger, this, function (_self) {
1317
+ _unloadHandler = _setDefaultsFromConfig(config || {});
1318
+ _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
1319
+ _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
1320
+ if (isUserAct === void 0) { isUserAct = false; }
1321
+ var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
1322
+ if (_enableDebug) {
1323
+ throw dumpObj(message);
1324
+ }
1325
+ else {
1326
+ var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;
1327
+ if (!isUndefined(message[_DYN_MESSAGE ])) {
1328
+ if (isUserAct) {
1329
+ var messageKey = +message[_DYN_MESSAGE_ID ];
1330
+ if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
1331
+ _self[logFunc](message[_DYN_MESSAGE ]);
1332
+ _messageLogged[messageKey] = true;
1333
+ }
1334
+ }
1335
+ else {
1336
+ if (_loggingLevelConsole >= severity) {
1337
+ _self[logFunc](message[_DYN_MESSAGE ]);
1338
+ }
1339
+ }
1340
+ _logInternalMessage(severity, message);
1341
+ }
1342
+ else {
1343
+ _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
1344
+ }
1345
+ }
1346
+ };
1347
+ _self.debugToConsole = function (message) {
1348
+ _logToConsole("debug", message);
1349
+ _debugExtMsg("warning", message);
1350
+ };
1351
+ _self[_DYN_WARN_TO_CONSOLE ] = function (message) {
1352
+ _logToConsole("warn", message);
1353
+ _debugExtMsg("warning", message);
1354
+ };
1355
+ _self.errorToConsole = function (message) {
1356
+ _logToConsole("error", message);
1357
+ _debugExtMsg("error", message);
1358
+ };
1359
+ _self.resetInternalMessageCount = function () {
1360
+ _messageCount = 0;
1361
+ _messageLogged = {};
1362
+ };
1363
+ _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
1364
+ _self[_DYN_UNLOAD ] = function (isAsync) {
1365
+ _unloadHandler && _unloadHandler.rm();
1366
+ _unloadHandler = null;
1367
+ };
1368
+ function _logInternalMessage(severity, message) {
1369
+ if (_areInternalMessagesThrottled()) {
1370
+ return;
1371
+ }
1372
+ var logMessage = true;
1373
+ var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
1374
+ if (_messageLogged[messageKey]) {
1375
+ logMessage = false;
1376
+ }
1377
+ else {
1378
+ _messageLogged[messageKey] = true;
1379
+ }
1380
+ if (logMessage) {
1381
+ if (severity <= _loggingLevelTelemetry) {
1382
+ _self.queue[_DYN_PUSH ](message);
1383
+ _messageCount++;
1384
+ _debugExtMsg((severity === 1 ? "error" : "warn"), message);
1385
+ }
1386
+ if (_messageCount === _maxInternalMessageLimit) {
1387
+ var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
1388
+ var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
1389
+ _self.queue[_DYN_PUSH ](throttleMessage);
1390
+ if (severity === 1 ) {
1391
+ _self.errorToConsole(throttleLimitMessage);
1392
+ }
1393
+ else {
1394
+ _self[_DYN_WARN_TO_CONSOLE ](throttleLimitMessage);
1395
+ }
1396
+ }
1397
+ }
1398
+ }
1399
+ function _setDefaultsFromConfig(config) {
1400
+ return onConfigChange(createDynamicConfig(config, defaultValues$1, _self).cfg, function (details) {
1401
+ var config = details.cfg;
1402
+ _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
1403
+ _loggingLevelTelemetry = config.loggingLevelTelemetry;
1404
+ _maxInternalMessageLimit = config.maxMessageLimit;
1405
+ _enableDebug = config.enableDebug;
1406
+ });
1407
+ }
1408
+ function _areInternalMessagesThrottled() {
1409
+ return _messageCount >= _maxInternalMessageLimit;
1410
+ }
1411
+ function _debugExtMsg(name, data) {
1412
+ var dbgExt = getDebugExt(config || {});
1413
+ if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
1414
+ dbgExt[_DYN_DIAG_LOG ](name, data);
1415
+ }
1416
+ }
1417
+ });
1418
+ }
1419
+ DiagnosticLogger.__ieDyn=1;
1420
+ return DiagnosticLogger;
1421
+ }());
1422
+ function _getLogger(logger) {
1423
+ return (logger || new DiagnosticLogger());
1424
+ }
1425
+ function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
1426
+ if (isUserAct === void 0) { isUserAct = false; }
1427
+ _getLogger(logger)[_DYN_THROW_INTERNAL ](severity, msgId, msg, properties, isUserAct);
1428
+ }
1429
+
1178
1430
  var rCamelCase = /-([a-z])/g;
1179
1431
  var rNormalizeInvalid = /([^\w\d_$])/g;
1180
1432
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
@@ -1254,59 +1506,6 @@
1254
1506
  return target;
1255
1507
  }
1256
1508
 
1257
- var strLocation = "location";
1258
- var strConsole = "console";
1259
- var strJSON = "JSON";
1260
- var strCrypto = "crypto";
1261
- var strMsCrypto = "msCrypto";
1262
- var strMsie = "msie";
1263
- var strTrident = "trident/";
1264
- var _isTrident = null;
1265
- var _navUserAgentCheck = null;
1266
- var _enableMocks = false;
1267
- function getLocation(checkForMock) {
1268
- if (checkForMock && _enableMocks) {
1269
- var mockLocation = getInst("__mockLocation");
1270
- if (mockLocation) {
1271
- return mockLocation;
1272
- }
1273
- }
1274
- if (typeof location === strShimObject && location) {
1275
- return location;
1276
- }
1277
- return getInst(strLocation);
1278
- }
1279
- function getConsole() {
1280
- if (typeof console !== strShimUndefined) {
1281
- return console;
1282
- }
1283
- return getInst(strConsole);
1284
- }
1285
- function hasJSON() {
1286
- return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
1287
- }
1288
- function getJSON() {
1289
- if (hasJSON()) {
1290
- return JSON || getInst(strJSON);
1291
- }
1292
- return null;
1293
- }
1294
- function getCrypto() {
1295
- return getInst(strCrypto);
1296
- }
1297
- function getMsCrypto() {
1298
- return getInst(strMsCrypto);
1299
- }
1300
- function isIE() {
1301
- var nav = getNavigator();
1302
- if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
1303
- _navUserAgentCheck = nav[_DYN_USER_AGENT ];
1304
- var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
1305
- _isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
1306
- }
1307
- return _isTrident;
1308
- }
1309
-
1310
1509
  var UInt32Mask = 0x100000000;
1311
1510
  var MaxUInt32 = 0xffffffff;
1312
1511
  var SEED1 = 123456789;
@@ -2053,204 +2252,6 @@
2053
2252
  };
2054
2253
  }
2055
2254
 
2056
- var _aiNamespace = null;
2057
- function _getExtensionNamespace() {
2058
- var target = getInst("Microsoft");
2059
- if (target) {
2060
- _aiNamespace = target["ApplicationInsights"];
2061
- }
2062
- return _aiNamespace;
2063
- }
2064
- function getDebugExt(config) {
2065
- var ns = _aiNamespace;
2066
- if (!ns && config.disableDbgExt !== true) {
2067
- ns = _aiNamespace || _getExtensionNamespace();
2068
- }
2069
- return ns ? ns["ChromeDbgExt"] : null;
2070
- }
2071
-
2072
- var _a$2;
2073
- var STR_WARN_TO_CONSOLE = "warnToConsole";
2074
- var AiNonUserActionablePrefix = "AI (Internal): ";
2075
- var AiUserActionablePrefix = "AI: ";
2076
- var AIInternalMessagePrefix = "AITR_";
2077
- var defaultValues$1 = {
2078
- loggingLevelConsole: 0,
2079
- loggingLevelTelemetry: 1,
2080
- maxMessageLimit: 25,
2081
- enableDebug: false
2082
- };
2083
- var _logFuncs = (_a$2 = {},
2084
- _a$2[0 ] = null,
2085
- _a$2[1 ] = "errorToConsole",
2086
- _a$2[2 ] = STR_WARN_TO_CONSOLE,
2087
- _a$2[3 ] = "debugToConsole",
2088
- _a$2);
2089
- function _sanitizeDiagnosticText(text) {
2090
- if (text) {
2091
- return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
2092
- }
2093
- return STR_EMPTY;
2094
- }
2095
- function _logToConsole(func, message) {
2096
- var theConsole = getConsole();
2097
- if (!!theConsole) {
2098
- var logFunc = "log";
2099
- if (theConsole[func]) {
2100
- logFunc = func;
2101
- }
2102
- if (isFunction(theConsole[logFunc])) {
2103
- theConsole[logFunc](message);
2104
- }
2105
- }
2106
- }
2107
- var _InternalLogMessage = /** @class */ (function () {
2108
- function _InternalLogMessage(msgId, msg, isUserAct, properties) {
2109
- if (isUserAct === void 0) { isUserAct = false; }
2110
- var _self = this;
2111
- _self[_DYN_MESSAGE_ID ] = msgId;
2112
- _self[_DYN_MESSAGE ] =
2113
- (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
2114
- msgId;
2115
- var strProps = STR_EMPTY;
2116
- if (hasJSON()) {
2117
- strProps = getJSON().stringify(properties);
2118
- }
2119
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
2120
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
2121
- _self[_DYN_MESSAGE ] += diagnosticText;
2122
- }
2123
- _InternalLogMessage.dataType = "MessageData";
2124
- return _InternalLogMessage;
2125
- }());
2126
- function safeGetLogger(core, config) {
2127
- return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
2128
- }
2129
- var DiagnosticLogger = /** @class */ (function () {
2130
- function DiagnosticLogger(config) {
2131
- this.identifier = "DiagnosticLogger";
2132
- this.queue = [];
2133
- var _messageCount = 0;
2134
- var _messageLogged = {};
2135
- var _loggingLevelConsole;
2136
- var _loggingLevelTelemetry;
2137
- var _maxInternalMessageLimit;
2138
- var _enableDebug;
2139
- var _unloadHandler;
2140
- dynamicProto(DiagnosticLogger, this, function (_self) {
2141
- _unloadHandler = _setDefaultsFromConfig(config || {});
2142
- _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
2143
- _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
2144
- if (isUserAct === void 0) { isUserAct = false; }
2145
- var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
2146
- if (_enableDebug) {
2147
- throw dumpObj(message);
2148
- }
2149
- else {
2150
- var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;
2151
- if (!isUndefined(message[_DYN_MESSAGE ])) {
2152
- if (isUserAct) {
2153
- var messageKey = +message[_DYN_MESSAGE_ID ];
2154
- if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
2155
- _self[logFunc](message[_DYN_MESSAGE ]);
2156
- _messageLogged[messageKey] = true;
2157
- }
2158
- }
2159
- else {
2160
- if (_loggingLevelConsole >= severity) {
2161
- _self[logFunc](message[_DYN_MESSAGE ]);
2162
- }
2163
- }
2164
- _logInternalMessage(severity, message);
2165
- }
2166
- else {
2167
- _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
2168
- }
2169
- }
2170
- };
2171
- _self.debugToConsole = function (message) {
2172
- _logToConsole("debug", message);
2173
- _debugExtMsg("warning", message);
2174
- };
2175
- _self[_DYN_WARN_TO_CONSOLE ] = function (message) {
2176
- _logToConsole("warn", message);
2177
- _debugExtMsg("warning", message);
2178
- };
2179
- _self.errorToConsole = function (message) {
2180
- _logToConsole("error", message);
2181
- _debugExtMsg("error", message);
2182
- };
2183
- _self.resetInternalMessageCount = function () {
2184
- _messageCount = 0;
2185
- _messageLogged = {};
2186
- };
2187
- _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
2188
- _self[_DYN_UNLOAD ] = function (isAsync) {
2189
- _unloadHandler && _unloadHandler.rm();
2190
- _unloadHandler = null;
2191
- };
2192
- function _logInternalMessage(severity, message) {
2193
- if (_areInternalMessagesThrottled()) {
2194
- return;
2195
- }
2196
- var logMessage = true;
2197
- var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
2198
- if (_messageLogged[messageKey]) {
2199
- logMessage = false;
2200
- }
2201
- else {
2202
- _messageLogged[messageKey] = true;
2203
- }
2204
- if (logMessage) {
2205
- if (severity <= _loggingLevelTelemetry) {
2206
- _self.queue[_DYN_PUSH ](message);
2207
- _messageCount++;
2208
- _debugExtMsg((severity === 1 ? "error" : "warn"), message);
2209
- }
2210
- if (_messageCount === _maxInternalMessageLimit) {
2211
- var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
2212
- var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
2213
- _self.queue[_DYN_PUSH ](throttleMessage);
2214
- if (severity === 1 ) {
2215
- _self.errorToConsole(throttleLimitMessage);
2216
- }
2217
- else {
2218
- _self[_DYN_WARN_TO_CONSOLE ](throttleLimitMessage);
2219
- }
2220
- }
2221
- }
2222
- }
2223
- function _setDefaultsFromConfig(config) {
2224
- return onConfigChange(createDynamicConfig(config, defaultValues$1, _self).cfg, function (details) {
2225
- var config = details.cfg;
2226
- _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2227
- _loggingLevelTelemetry = config.loggingLevelTelemetry;
2228
- _maxInternalMessageLimit = config.maxMessageLimit;
2229
- _enableDebug = config.enableDebug;
2230
- });
2231
- }
2232
- function _areInternalMessagesThrottled() {
2233
- return _messageCount >= _maxInternalMessageLimit;
2234
- }
2235
- function _debugExtMsg(name, data) {
2236
- var dbgExt = getDebugExt(config || {});
2237
- if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
2238
- dbgExt[_DYN_DIAG_LOG ](name, data);
2239
- }
2240
- }
2241
- });
2242
- }
2243
- DiagnosticLogger.__ieDyn=1;
2244
- return DiagnosticLogger;
2245
- }());
2246
- function _getLogger(logger) {
2247
- return (logger || new DiagnosticLogger());
2248
- }
2249
- function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
2250
- if (isUserAct === void 0) { isUserAct = false; }
2251
- _getLogger(logger)[_DYN_THROW_INTERNAL ](severity, msgId, msg, properties, isUserAct);
2252
- }
2253
-
2254
2255
  var _a$1, _b;
2255
2256
  var strToGMTString = "toGMTString";
2256
2257
  var strToUTCString = "toUTCString";
@@ -2403,7 +2404,7 @@
2403
2404
  }
2404
2405
  }
2405
2406
  var location_1 = getLocation();
2406
- if (location_1 && location_1.protocol === "https:") {
2407
+ if (location_1 && location_1[_DYN_PROTOCOL ] === "https:") {
2407
2408
  setValue(values, "secure", null, null, isUndefined);
2408
2409
  if (_allowUaSameSite === null) {
2409
2410
  _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);