mftsccs-browser 1.1.70-beta → 1.1.72-beta

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.
@@ -33,6 +33,8 @@ class AccessTracker {
33
33
  if (conceptId) {
34
34
  this.conceptsData[conceptId] = (this.conceptsData[conceptId] || 0) + 1;
35
35
  }
36
+ // console.log("Concept Added into Access Tracker : ", conceptId);
37
+ // console.log("Updated Concept: ", this.conceptsData);
36
38
  }
37
39
  catch (error) {
38
40
  console.error("Failed on increment concept");
@@ -46,6 +48,8 @@ class AccessTracker {
46
48
  if (connectionId) {
47
49
  this.connectionsData[connectionId] = (this.connectionsData[connectionId] || 0) + 1;
48
50
  }
51
+ // console.log("Connection Added into Access Tracker : ", connectionId);
52
+ // console.log("Updated Connections: ", this.connectionsData);
49
53
  }
50
54
  catch (error) {
51
55
  console.error("Failed on increment connection");
@@ -299,6 +303,7 @@ AccessTracker.nextSyncTime = Date.now();
299
303
  AccessTracker.activateStatus = false;
300
304
  AccessTracker.accessData = "Access Data";
301
305
  (() => {
306
+ // console.log("Access Tracker init...")
302
307
  _a.startAutoSync();
303
308
  })();
304
309
 
@@ -1783,6 +1788,9 @@ function GetConcept(id) {
1783
1788
  }
1784
1789
  }
1785
1790
  let result = (0,_app__WEBPACK_IMPORTED_MODULE_3__.CreateDefaultConcept)();
1791
+ if (id == 0 || id == undefined || id == null) {
1792
+ return result;
1793
+ }
1786
1794
  var conceptUse = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.GetConcept(id);
1787
1795
  let isNpc = _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.GetNpc(id);
1788
1796
  if (conceptUse.id != 0 || isNpc) {
@@ -4146,19 +4154,20 @@ class BaseUrl {
4146
4154
  // return this.AI_URL + '/api/get_ranked_type_id?inpage=300' || process.env.AI_URL || 'https://ai.freeschema.com/api/get_ranked_type_id?inpage=300';
4147
4155
  }
4148
4156
  static PostPrefetchConceptConnections() {
4149
- return this.NODE_URL + '/api/v1/access-tracker/sync-access-tracker';
4157
+ // return this.NODE_URL + '/api/v1/access-tracker/sync-access-tracker'
4158
+ return this.NODE_URL + '/access-tracker/sync-access-tracker';
4150
4159
  }
4151
4160
  static GetSuggestedConcepts() {
4152
- return this.NODE_URL + '/api/v1/access-tracker/list-concepts-file';
4161
+ // return this.NODE_URL + '/api/v1/access-tracker/list-concepts-file'
4162
+ return this.NODE_URL + '/access-tracker/list-concepts-file';
4153
4163
  }
4154
4164
  static GetSuggestedConnections() {
4155
- return this.NODE_URL + '/api/v1/access-tracker/list-connections-file';
4165
+ // return this.NODE_URL + '/api/v1/access-tracker/list-connections-file'
4166
+ return this.NODE_URL + '/access-tracker/list-connections-file';
4156
4167
  }
4157
4168
  static PostLogger() {
4158
- return this.NODE_URL + '/api/v1/logger/logs';
4159
- }
4160
- static GetLogger() {
4161
- return this.NODE_URL + '/api/v1/logger/logs';
4169
+ return this.NODE_URL + '/logger/logs';
4170
+ // return this.NODE_URL + '/api/v1/logger/logs'
4162
4171
  }
4163
4172
  static GetAllPrefetchConnectionsUrl() {
4164
4173
  return this.BASE_URL + '/api/get_all_connections_of_user?inpage=500';
@@ -4277,6 +4286,12 @@ BaseUrl.AI_URL = "https://ai.freeschema.com";
4277
4286
  BaseUrl.MQTT_URL = '192.168.1.249';
4278
4287
  BaseUrl.NODE_URL = "http://localhost:5001";
4279
4288
  BaseUrl.BASE_APPLICATION = "";
4289
+ BaseUrl.FLAGS = {
4290
+ logApplication: false,
4291
+ logPackage: false,
4292
+ accessTracker: false,
4293
+ isTest: false
4294
+ };
4280
4295
  BaseUrl.BASE_RANDOMIZER = 999;
4281
4296
 
4282
4297
 
@@ -5288,6 +5303,9 @@ class ConceptsData {
5288
5303
  (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
5289
5304
  }
5290
5305
  }
5306
+ if (id == 0 || id == undefined || id == null) {
5307
+ return (0,_Services_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
5308
+ }
5291
5309
  var myConcept = (0,_Services_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
5292
5310
  var node = yield _BinaryTree__WEBPACK_IMPORTED_MODULE_1__.BinaryTree.getNodeFromTree(id);
5293
5311
  if (node === null || node === void 0 ? void 0 : node.value) {
@@ -11291,11 +11309,62 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
11291
11309
 
11292
11310
  class ApplicationMonitor {
11293
11311
  static initialize() {
11294
- console.warn("Initialized Application Moniroring...");
11312
+ console.warn("Initialized Application Moniroring for tracking error...");
11313
+ this.initGlobalErrorHandlers();
11314
+ this.logCatchError();
11315
+ this.logErrorEvent();
11316
+ this.logUnhandledError();
11317
+ // Log user interactions
11318
+ this.logUserInteractions();
11319
+ // Log network requests requires interception with Service Worker or monkey-patching
11320
+ this.logNetworkRequests();
11321
+ // Log application state changes for SPAs
11322
+ this.logRouteChanges();
11323
+ }
11324
+ // Initialize global error handlers for JavaScript errors and promise rejections
11325
+ static initGlobalErrorHandlers() {
11326
+ // console.log("Into initGlobalErrorHandlers.")
11327
+ if (typeof window === undefined)
11328
+ return;
11329
+ // Track runtime errors
11330
+ window.onerror = (message, source, lineno, colno, error) => {
11331
+ const errorDetails = {
11332
+ message,
11333
+ source,
11334
+ lineno,
11335
+ colno,
11336
+ stack: (error === null || error === void 0 ? void 0 : error.stack) || 'undefined',
11337
+ };
11338
+ _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("ERROR", "Runtime Error", errorDetails);
11339
+ };
11340
+ // Track unhandled promise rejections
11341
+ window.onunhandledrejection = (event) => {
11342
+ _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("ERROR", "Unhandled Promise Rejection", {
11343
+ message: event.reason ? event.reason.message : event.reason,
11344
+ stack: event.reason ? event.reason.stack : null,
11345
+ });
11346
+ };
11347
+ }
11348
+ static logCatchError() {
11349
+ try {
11350
+ const originalConsoleError = console.error;
11351
+ console.log("Inside originalConsoleError...");
11352
+ console.error = function (...args) {
11353
+ const message = "Console Error";
11354
+ const errorDetails = { arguments: args };
11355
+ _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("ERROR", message, errorDetails);
11356
+ originalConsoleError.apply(console, args);
11357
+ };
11358
+ }
11359
+ catch (error) {
11360
+ console.warn("Failed to override console.error:", error);
11361
+ }
11362
+ }
11363
+ static logErrorEvent() {
11295
11364
  // Log unhandled errors
11296
11365
  window.addEventListener("error", (event) => {
11297
11366
  var _a, _b;
11298
- // console.log("error called...");
11367
+ console.log("Inside error event...");
11299
11368
  const errorDetails = {
11300
11369
  error: ((_a = event.error) === null || _a === void 0 ? void 0 : _a.message) || event.message,
11301
11370
  source: event.filename,
@@ -11306,23 +11375,18 @@ class ApplicationMonitor {
11306
11375
  const message = "Unhandled Error";
11307
11376
  _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("Error", message, errorDetails);
11308
11377
  });
11378
+ }
11379
+ static logUnhandledError() {
11309
11380
  // Log unhandled promise rejections
11310
11381
  window.addEventListener("unhandledrejection", (event) => {
11311
- var _a;
11312
- // console.log("unhandledrejection called...");
11382
+ var _a, _b;
11383
+ console.log("Inside unhandledrejection...");
11313
11384
  const errorDetails = {
11314
- reason: event.reason,
11315
- stack: (_a = event.reason) === null || _a === void 0 ? void 0 : _a.stack,
11385
+ reason: ((_a = event.reason) === null || _a === void 0 ? void 0 : _a.message) || String(event.reason),
11386
+ stack: ((_b = event.reason) === null || _b === void 0 ? void 0 : _b.stack) || "No stack trace available",
11316
11387
  };
11317
- const message = "Unhandled Promise Rejection";
11318
- _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("Error", message, errorDetails);
11388
+ _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("ERROR", "Unhandled Promise Rejection", errorDetails);
11319
11389
  });
11320
- // Log user interactions
11321
- this.logUserInteractions();
11322
- // Log network requests requires interception with Service Worker or monkey-patching
11323
- this.logNetworkRequests();
11324
- // Log application state changes for SPAs
11325
- this.logRouteChanges();
11326
11390
  }
11327
11391
  // Log user interactions
11328
11392
  static logUserInteractions() {
@@ -11336,7 +11400,7 @@ class ApplicationMonitor {
11336
11400
  classes: target.className,
11337
11401
  text: (_a = target.innerText) === null || _a === void 0 ? void 0 : _a.slice(0, 50),
11338
11402
  };
11339
- _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("INFO", message, details);
11403
+ // Logger.logApplication("INFO", message, details)
11340
11404
  });
11341
11405
  document.addEventListener("input", (event) => {
11342
11406
  const target = event.target;
@@ -11346,14 +11410,14 @@ class ApplicationMonitor {
11346
11410
  id: target.id,
11347
11411
  value: target.value,
11348
11412
  };
11349
- _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("INFO", message, details);
11413
+ // Logger.logApplication("INFO", message, details)
11350
11414
  });
11351
11415
  document.addEventListener("scroll", () => {
11352
11416
  const message = "User Scroll";
11353
11417
  const details = {
11354
11418
  position: window.scrollY,
11355
11419
  };
11356
- _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("INFO", message, details);
11420
+ // Logger.logApplication("INFO", message, details)
11357
11421
  });
11358
11422
  }
11359
11423
  static logNetworkRequests() {
@@ -11398,16 +11462,16 @@ class ApplicationMonitor {
11398
11462
  url: urlString,
11399
11463
  status: response.status,
11400
11464
  };
11401
- _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("INFO", "Network Request", networkDetails);
11465
+ // Logger.logApplication("INFO", "Successful Network Request", networkDetails)
11402
11466
  return response;
11403
11467
  }
11404
11468
  catch (error) {
11405
11469
  // Log full error message
11406
- if (error instanceof Error) {
11407
- console.error("Error message:", error.message);
11408
- console.error("Stack trace:", error.stack);
11409
- }
11410
- console.error("Fetch failed for:", urlString, error);
11470
+ // if (error instanceof Error) {
11471
+ // console.error("Error message:", error.message);
11472
+ // console.error("Stack trace:", error.stack);
11473
+ // }
11474
+ // console.error("Fetch failed for:", urlString, error);
11411
11475
  // Add error details to the network log
11412
11476
  networkDetails.response = {
11413
11477
  type: "ERROR",
@@ -11416,7 +11480,7 @@ class ApplicationMonitor {
11416
11480
  error: error instanceof Error ? error.message : String(error),
11417
11481
  };
11418
11482
  // Log or process networkDetails if needed
11419
- _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("ERROR", "Network Request", networkDetails);
11483
+ _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("ERROR", "Failed Network Request", networkDetails);
11420
11484
  // Throw a standard Error object (not the networkDetails object)
11421
11485
  throw new Error(`Network request failed for ${urlString}: ${error.message}`);
11422
11486
  }
@@ -11432,7 +11496,7 @@ class ApplicationMonitor {
11432
11496
  loadTime: timing.loadEventEnd - timing.navigationStart,
11433
11497
  domContentLoadedTime: timing.domContentLoadedEventEnd - timing.navigationStart,
11434
11498
  };
11435
- _logger_service__WEBPACK_IMPORTED_MODULE_1__.Logger.logApplication("INFO", "Performance Metrics", details);
11499
+ // Logger.logApplication("INFO", "Performance Metrics", details)
11436
11500
  });
11437
11501
  }
11438
11502
  // Log route changes (SPAs)
@@ -11596,6 +11660,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
11596
11660
  step((generator = generator.apply(thisArg, _arguments || [])).next());
11597
11661
  });
11598
11662
  };
11663
+ var _a;
11599
11664
 
11600
11665
 
11601
11666
  class Logger {
@@ -11608,14 +11673,15 @@ class Logger {
11608
11673
  console.warn("Auto-sync is already running.");
11609
11674
  return;
11610
11675
  }
11611
- Logger.nextSyncTime = Date.now() + Logger.SYNC_INTERVAL_MS;
11676
+ this.nextSyncTime = Date.now() + this.SYNC_INTERVAL_MS;
11612
11677
  setInterval(() => {
11613
11678
  const currentTime = Date.now();
11614
11679
  // console.log("Current Time : ",currentTime);
11615
- if (Logger.nextSyncTime && currentTime >= Logger.nextSyncTime) {
11616
- Logger.nextSyncTime = currentTime + Logger.SYNC_INTERVAL_MS;
11617
- Logger.sendLogsToServer();
11618
- Logger.sendApplicationLogsToServer();
11680
+ if (this.nextSyncTime && currentTime >= this.nextSyncTime) {
11681
+ // console.log("Time to sync log.")
11682
+ this.nextSyncTime = currentTime + this.SYNC_INTERVAL_MS;
11683
+ this.sendPackageLogsToServer();
11684
+ this.sendApplicationLogsToServer();
11619
11685
  }
11620
11686
  }, 60000); // Check every minute
11621
11687
  }
@@ -11626,37 +11692,38 @@ class Logger {
11626
11692
  if (this.autoSyncInterval !== null) {
11627
11693
  clearInterval(this.autoSyncInterval);
11628
11694
  this.autoSyncInterval = null;
11629
- Logger.nextSyncTime = null;
11695
+ this.nextSyncTime = null;
11630
11696
  }
11631
11697
  }
11632
11698
  /**
11633
11699
  * Set the log level (e.g., "DEBUG", "INFO", "WARNING", "ERROR").
11634
11700
  */
11635
11701
  static setLogLevel(level) {
11636
- Logger.logLevel = level;
11702
+ this.logLevel = level;
11637
11703
  }
11638
11704
  /**
11639
11705
  * Determines whether the current log level permits the given level to be logged.
11640
11706
  */
11641
11707
  static shouldLog(level) {
11642
- return Logger.LOG_LEVELS.indexOf(level) >= Logger.LOG_LEVELS.indexOf(Logger.logLevel);
11708
+ return this.LOG_LEVELS.indexOf(level) >= this.LOG_LEVELS.indexOf(this.logLevel);
11643
11709
  }
11644
11710
  /**
11645
11711
  * Logs a message with optional additional structured data.
11646
11712
  */
11647
11713
  static formatLogData(level, message, data) {
11648
- if (!Logger.shouldLog(level))
11714
+ if (!this.shouldLog(level))
11649
11715
  return;
11650
11716
  const logEntry = Object.assign({ timestamp: new Date().toLocaleString(), level,
11651
11717
  message }, data);
11652
- Logger.logsData.push(logEntry);
11718
+ this.packageLogsData.push(logEntry);
11653
11719
  // this.saveLogToLocalStorage(this.mftsccsBrowser, logEntry)
11720
+ // console.log("Package Log Updated : ", this.log);
11654
11721
  }
11655
11722
  static log(level, message, data) {
11656
11723
  if (!this.logPackageActivationStatus)
11657
11724
  return;
11658
11725
  try {
11659
- Logger.formatLogData(level, message, data || null);
11726
+ this.formatLogData(level, message, data || null);
11660
11727
  }
11661
11728
  catch (error) {
11662
11729
  console.error("Error on Logger Log : ", error);
@@ -11681,7 +11748,7 @@ class Logger {
11681
11748
  userAgent,
11682
11749
  conceptsUsed,
11683
11750
  };
11684
- Logger.log("INFO", `Information logged for ${functionName}`, logData);
11751
+ this.log("INFO", `Information logged for ${functionName}`, logData);
11685
11752
  }
11686
11753
  catch (error) {
11687
11754
  console.error("Error on logInfo");
@@ -11706,7 +11773,7 @@ class Logger {
11706
11773
  userAgent,
11707
11774
  conceptsUsed,
11708
11775
  };
11709
- Logger.formatLogData("ERROR", `Information logged for ${functionName}`, logData);
11776
+ this.formatLogData("ERROR", `Information logged for ${functionName}`, logData);
11710
11777
  }
11711
11778
  catch (error) {
11712
11779
  console.error("Error on logError");
@@ -11731,7 +11798,7 @@ class Logger {
11731
11798
  userAgent,
11732
11799
  conceptsUsed,
11733
11800
  };
11734
- Logger.formatLogData("WARNING", `Information logged for ${functionName}`, logData);
11801
+ this.formatLogData("WARNING", `Information logged for ${functionName}`, logData);
11735
11802
  }
11736
11803
  catch (error) {
11737
11804
  console.error("Error on logWarning");
@@ -11756,7 +11823,7 @@ class Logger {
11756
11823
  userAgent,
11757
11824
  conceptsUsed,
11758
11825
  };
11759
- Logger.formatLogData("DEBUG", `Information logged for ${functionName}`, logData);
11826
+ this.formatLogData("DEBUG", `Information logged for ${functionName}`, logData);
11760
11827
  }
11761
11828
  catch (error) {
11762
11829
  console.error("Error on logDebug");
@@ -11764,6 +11831,7 @@ class Logger {
11764
11831
  }
11765
11832
  // Log Application Activity
11766
11833
  static logApplication(type, message, data) {
11834
+ console.log("LogApplicationActivationStatus : ", this.logApplicationActivationStatus);
11767
11835
  if (!this.logApplicationActivationStatus)
11768
11836
  return;
11769
11837
  try {
@@ -11774,8 +11842,9 @@ class Logger {
11774
11842
  message: message,
11775
11843
  data: data || null,
11776
11844
  };
11777
- Logger.applicationLogsData.push(logEntry);
11845
+ this.applicationLogsData.push(logEntry);
11778
11846
  // this.saveLogToLocalStorage(this.appLogs, logEntry)
11847
+ // console.log("Application Log Updated : ", this.applicationLogsData);
11779
11848
  }
11780
11849
  catch (error) {
11781
11850
  console.error("Failed to log application activity:", error);
@@ -11787,6 +11856,7 @@ class Logger {
11787
11856
  static sendApplicationLogsToServer() {
11788
11857
  return __awaiter(this, void 0, void 0, function* () {
11789
11858
  try {
11859
+ console.log("Log from sendApplicationLogsToServer : ", this.applicationLogsData);
11790
11860
  if (this.applicationLogsData.length === 0) {
11791
11861
  return;
11792
11862
  }
@@ -11811,29 +11881,26 @@ class Logger {
11811
11881
  if (!response.ok) {
11812
11882
  const responseBody = yield response.text();
11813
11883
  console.error("Failed to send app-logs:-", response.status, response.statusText, responseBody);
11814
- return;
11815
11884
  }
11816
11885
  }
11817
11886
  // clear application log from memory
11818
11887
  this.applicationLogsData = [];
11819
11888
  }
11820
11889
  catch (error) {
11821
- console.error("Error while sending logs to server:", error);
11890
+ console.error("Network error while sending logs:", error);
11822
11891
  }
11823
11892
  });
11824
11893
  }
11825
- static sendLogsToServer() {
11894
+ static sendPackageLogsToServer() {
11826
11895
  return __awaiter(this, void 0, void 0, function* () {
11827
11896
  try {
11828
- if (this.logsData.length === 0)
11829
- return;
11830
- if (this.logsData.length === 0) {
11897
+ console.log("Log from sendPackageLogsToServer : ", this.packageLogsData);
11898
+ if (this.packageLogsData.length === 0)
11831
11899
  return;
11832
- }
11833
11900
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
11834
11901
  if (!accessToken)
11835
11902
  return;
11836
- const storedLogs = this.logsData;
11903
+ const storedLogs = this.packageLogsData;
11837
11904
  const chunkSize = 50;
11838
11905
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
11839
11906
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -11855,7 +11922,7 @@ class Logger {
11855
11922
  }
11856
11923
  }
11857
11924
  // clear mftsccs log from memory
11858
- this.logsData = [];
11925
+ this.packageLogsData = [];
11859
11926
  }
11860
11927
  catch (error) {
11861
11928
  console.error("Error while sending logs to server:", error);
@@ -11879,7 +11946,7 @@ class Logger {
11879
11946
  }
11880
11947
  catch (error) {
11881
11948
  console.error("Error on saving log in localstorage");
11882
- Logger.log("ERROR", "Error while saving log in local storage");
11949
+ this.log("ERROR", "Error while saving log in local storage");
11883
11950
  }
11884
11951
  }
11885
11952
  static clearLogsFromLocalStorage(logType) {
@@ -11893,8 +11960,9 @@ class Logger {
11893
11960
  }
11894
11961
  }
11895
11962
  }
11963
+ _a = Logger;
11896
11964
  Logger.logLevel = "INFO";
11897
- Logger.logsData = [];
11965
+ Logger.packageLogsData = [];
11898
11966
  Logger.applicationLogsData = [];
11899
11967
  Logger.LOG_LEVELS = ["DEBUG", "INFO", "WARNING", "ERROR"];
11900
11968
  Logger.SYNC_INTERVAL_MS = 120 * 1000; // 120 Sec
@@ -11907,7 +11975,7 @@ Logger.logPackageActivationStatus = false;
11907
11975
  Logger.autoSyncInterval = null;
11908
11976
  // Ensure logs are managed automatically
11909
11977
  (() => {
11910
- Logger.startAutoSync();
11978
+ _a.startAutoSync();
11911
11979
  })();
11912
11980
  /**
11913
11981
  *
@@ -13473,6 +13541,9 @@ function FindConceptsFromConnections() {
13473
13541
  if (!ConceptList.includes(connectionList[i].toTheConceptId)) {
13474
13542
  ConceptList.push(connectionList[i].toTheConceptId);
13475
13543
  }
13544
+ if (!ConceptList.includes(connectionList[i].typeId)) {
13545
+ ConceptList.push(connectionList[i].typeId);
13546
+ }
13476
13547
  }
13477
13548
  yield (0,_Api_GetConceptBulk__WEBPACK_IMPORTED_MODULE_0__.GetConceptBulk)(ConceptList);
13478
13549
  }
@@ -14794,6 +14865,7 @@ function GetConnectionDataPrefetch(connectionIds) {
14794
14865
  for (let j = 0; j < connectionsAll.length; j++) {
14795
14866
  prefetchConcepts.push(connectionsAll[j].ofTheConceptId);
14796
14867
  prefetchConcepts.push(connectionsAll[j].toTheConceptId);
14868
+ prefetchConcepts.push(connectionsAll[j].typeId);
14797
14869
  }
14798
14870
  yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetConceptBulk)(prefetchConcepts);
14799
14871
  return connectionsAll;
@@ -15321,6 +15393,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
15321
15393
  function GetConnectionById(id) {
15322
15394
  return __awaiter(this, void 0, void 0, function* () {
15323
15395
  let startTime = performance.now();
15396
+ console.log("AccessTracker activation status from GetConnectionById");
15324
15397
  // Add connection id in access tracker
15325
15398
  if (_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.activateStatus === true) {
15326
15399
  try {
@@ -15722,16 +15795,18 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
15722
15795
  function GetTheConcept(id_1) {
15723
15796
  return __awaiter(this, arguments, void 0, function* (id, userId = 999) {
15724
15797
  let startTime = performance.now();
15725
- try {
15726
- // Add concept id in access tracker
15727
- if (_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.activateStatus === true) {
15728
- try {
15729
- _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConcept(id);
15730
- }
15731
- catch (_a) {
15732
- console.error("Error adding concepts in access tracker");
15733
- }
15798
+ // console.log("I skip GetTheConcept : ", id)
15799
+ // console.log("Log from GetTheConcept.............", id)
15800
+ if (_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.activateStatus) {
15801
+ try {
15802
+ _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConcept(id);
15803
+ }
15804
+ catch (_a) {
15805
+ console.error("Error adding connection in access tracker");
15806
+ _app__WEBPACK_IMPORTED_MODULE_2__.Logger.log("ERROR", "Error Adding Connection");
15734
15807
  }
15808
+ }
15809
+ try {
15735
15810
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
15736
15811
  try {
15737
15812
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetTheConcept', { id, userId });
@@ -22328,12 +22403,14 @@ __webpack_require__.r(__webpack_exports__);
22328
22403
  /* harmony export */ getFromDatabaseWithType: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getFromDatabaseWithType),
22329
22404
  /* harmony export */ getObjectsFromIndexDb: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getObjectsFromIndexDb),
22330
22405
  /* harmony export */ handleServiceWorkerException: () => (/* binding */ handleServiceWorkerException),
22406
+ /* harmony export */ hasActivatedSW: () => (/* binding */ hasActivatedSW),
22331
22407
  /* harmony export */ init: () => (/* binding */ init),
22332
22408
  /* harmony export */ recursiveFetch: () => (/* reexport safe */ _Services_GetComposition__WEBPACK_IMPORTED_MODULE_7__.recursiveFetch),
22333
22409
  /* harmony export */ recursiveFetchNew: () => (/* reexport safe */ _Services_Composition_BuildComposition__WEBPACK_IMPORTED_MODULE_45__.recursiveFetchNew),
22334
22410
  /* harmony export */ searchLinkMultipleListener: () => (/* reexport safe */ _WrapperFunctions_SearchLinkMultipleAllObservable__WEBPACK_IMPORTED_MODULE_69__.searchLinkMultipleListener),
22335
22411
  /* harmony export */ sendMessage: () => (/* binding */ sendMessage),
22336
22412
  /* harmony export */ serviceWorker: () => (/* binding */ serviceWorker),
22413
+ /* harmony export */ setHasActivatedSW: () => (/* binding */ setHasActivatedSW),
22337
22414
  /* harmony export */ storeToDatabase: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.storeToDatabase),
22338
22415
  /* harmony export */ subscribedListeners: () => (/* binding */ subscribedListeners),
22339
22416
  /* harmony export */ updateAccessToken: () => (/* binding */ updateAccessToken)
@@ -22600,6 +22677,10 @@ const TABID = Date.now().toString(36) + Math.random().toString(36).substring(2);
22600
22677
  let subscribedListeners = [];
22601
22678
  let serviceWorkerReady = false;
22602
22679
  let messageQueue = [];
22680
+ // for sw use only START
22681
+ let hasActivatedSW = false;
22682
+ function setHasActivatedSW(value) { hasActivatedSW = value; }
22683
+ // for sw use only END
22603
22684
  /**
22604
22685
  * This function lets you update the access token that the package uses. If this is not passed you cannot create, update, view or delete
22605
22686
  * Your concepts using this package.
@@ -22622,7 +22703,7 @@ function updateAccessToken(accessToken = "") {
22622
22703
  * @param enableSW {activate: boolean, scope?: string, pathToSW?: string, manual?: boolean} | undefined - This is for enabling service worker with its scope
22623
22704
  */
22624
22705
  function init() {
22625
- return __awaiter(this, arguments, void 0, function* (url = "", aiurl = "", accessToken = "", nodeUrl = "", enableAi = true, applicationName = "", enableSW = undefined, flag = { logApplication: false, logPackage: false, accessTracker: false, isTest: false }) {
22706
+ return __awaiter(this, arguments, void 0, function* (url = "", aiurl = "", accessToken = "", nodeUrl = "", enableAi = true, applicationName = "", enableSW = undefined, flags = {}) {
22626
22707
  try {
22627
22708
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.BASE_URL = url;
22628
22709
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.AI_URL = aiurl;
@@ -22633,42 +22714,24 @@ function init() {
22633
22714
  // BaseUrl.BASE_RANDOMIZER = randomizer;
22634
22715
  // BaseUrl.BASE_RANDOMIZER = 999;
22635
22716
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.setRandomizer(randomizer);
22636
- if (flag.isTest) {
22637
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isDataLoaded = true;
22638
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isCharacterLoaded = true;
22639
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isTypeLoaded = true;
22640
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalDataLoaded = true;
22641
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalTypeLoaded = true;
22642
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalCharacterLoaded = true;
22643
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isConnectionLoaded = true;
22644
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isConnectionTypeLoaded = true;
22645
- _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalConnectionLoaded = true;
22646
- return true;
22647
- }
22648
- // Flag setup
22649
- try {
22650
- if (flag.logApplication) {
22651
- _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__.ApplicationMonitor.initialize();
22652
- _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logApplicationActivationStatus = true;
22653
- console.warn("Application log started...");
22654
- }
22655
- if (flag.logPackage) {
22656
- _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logPackageActivationStatus = true;
22657
- console.warn("Package log started...");
22658
- }
22659
- if (flag.accessTracker) {
22660
- _app__WEBPACK_IMPORTED_MODULE_105__.AccessTracker.activateStatus = true;
22661
- console.warn("Access Tracker Activated...");
22662
- }
22663
- }
22664
- catch (error) {
22665
- console.error("Flag setup failed in init");
22666
- }
22717
+ // Change Default Flags
22718
+ const defaultFlags = {
22719
+ logApplication: false,
22720
+ logPackage: false,
22721
+ accessTracker: false,
22722
+ isTest: false
22723
+ };
22724
+ _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.FLAGS = defaultFlags;
22725
+ // Merge Provided Flags with Defaults
22726
+ _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.FLAGS = Object.assign(Object.assign({}, defaultFlags), flags);
22727
+ initializeFlags(_DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.FLAGS);
22728
+ // console.log("BaseUrl.FLAGS before sending to service worker : ", BaseUrl.FLAGS)
22667
22729
  if (!("serviceWorker" in navigator)) {
22668
22730
  yield initConceptConnection();
22669
22731
  console.warn("Service Worker not supported in this browser.");
22670
22732
  return;
22671
22733
  }
22734
+ listenPostMessagaes();
22672
22735
  listenBroadCastMessages();
22673
22736
  if (enableSW && enableSW.activate && enableSW.manual) {
22674
22737
  yield new Promise((resolve, reject) => {
@@ -22683,7 +22746,7 @@ function init() {
22683
22746
  nodeUrl,
22684
22747
  enableAi,
22685
22748
  applicationName,
22686
- flag
22749
+ flags
22687
22750
  });
22688
22751
  resolve('done');
22689
22752
  }))
@@ -22745,7 +22808,7 @@ function init() {
22745
22808
  // nodeUrl,
22746
22809
  // enableAi,
22747
22810
  // applicationName,
22748
- // flag
22811
+ // flags
22749
22812
  // });
22750
22813
  // processMessageQueue();
22751
22814
  // resolve();
@@ -22768,7 +22831,7 @@ function init() {
22768
22831
  // nodeUrl,
22769
22832
  // enableAi,
22770
22833
  // applicationName,
22771
- // flag
22834
+ // flags
22772
22835
  // });
22773
22836
  // }
22774
22837
  // });
@@ -22781,7 +22844,7 @@ function init() {
22781
22844
  console.log("new worker", newWorker);
22782
22845
  if (newWorker) {
22783
22846
  newWorker.onstatechange = () => __awaiter(this, void 0, void 0, function* () {
22784
- console.log("on state change triggered", (newWorker.state === "installed" || newWorker.state === "activated" || newWorker.state === 'redundant'), navigator.serviceWorker.controller);
22847
+ console.warn("on state change triggered", (newWorker.state === "installed" || newWorker.state === "activated" || newWorker.state === 'redundant'), navigator.serviceWorker.controller);
22785
22848
  if (newWorker.state === "installing") {
22786
22849
  console.log("Service Worker installing");
22787
22850
  serviceWorker = undefined;
@@ -22792,6 +22855,7 @@ function init() {
22792
22855
  // && navigator.serviceWorker.controller) {
22793
22856
  console.log("New Service Worker is active", registration);
22794
22857
  serviceWorker = newWorker;
22858
+ console.log("This is a flag after sw init : ", flags);
22795
22859
  // serviceWorker = registration.active;
22796
22860
  // Send init message now that it's active
22797
22861
  yield sendMessage("init", {
@@ -22801,7 +22865,7 @@ function init() {
22801
22865
  nodeUrl,
22802
22866
  enableAi,
22803
22867
  applicationName,
22804
- flag
22868
+ flags
22805
22869
  });
22806
22870
  success = true;
22807
22871
  serviceWorkerReady = true;
@@ -22816,7 +22880,7 @@ function init() {
22816
22880
  console.warn('controller change triggered', navigator.serviceWorker.controller);
22817
22881
  if (navigator.serviceWorker.controller) {
22818
22882
  serviceWorker = navigator.serviceWorker.controller;
22819
- console.log('Service worker has been activated');
22883
+ console.warn('Service worker has been activated; controller change');
22820
22884
  yield sendMessage("init", {
22821
22885
  url,
22822
22886
  aiurl,
@@ -22824,7 +22888,7 @@ function init() {
22824
22888
  nodeUrl,
22825
22889
  enableAi,
22826
22890
  applicationName,
22827
- flag
22891
+ flags
22828
22892
  });
22829
22893
  // The new service worker is now controlling the page
22830
22894
  // You can reload the page if necessary or handle the update process here
@@ -22836,7 +22900,7 @@ function init() {
22836
22900
  var _a;
22837
22901
  if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.state) === 'activating') {
22838
22902
  serviceWorker = navigator.serviceWorker.controller;
22839
- console.log('Service Worker is activating statechange');
22903
+ console.warn('Service Worker is activating statechange');
22840
22904
  yield sendMessage("init", {
22841
22905
  url,
22842
22906
  aiurl,
@@ -22844,7 +22908,7 @@ function init() {
22844
22908
  nodeUrl,
22845
22909
  enableAi,
22846
22910
  applicationName,
22847
- flag,
22911
+ flags,
22848
22912
  });
22849
22913
  }
22850
22914
  }));
@@ -22861,7 +22925,7 @@ function init() {
22861
22925
  nodeUrl,
22862
22926
  enableAi,
22863
22927
  applicationName,
22864
- flag,
22928
+ flags,
22865
22929
  });
22866
22930
  processMessageQueue();
22867
22931
  resolve();
@@ -23044,7 +23108,8 @@ const broadcastActions = {
23044
23108
  accessToken: _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_99__.TokenStorage.BearerAccessToken,
23045
23109
  nodeUrl: _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.NODE_URL,
23046
23110
  enableAi: false,
23047
- applicationName: _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.BASE_APPLICATION
23111
+ applicationName: _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.BASE_APPLICATION,
23112
+ flags: _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.FLAGS
23048
23113
  });
23049
23114
  return { success: true };
23050
23115
  })
@@ -23063,7 +23128,47 @@ function listenBroadCastMessages() {
23063
23128
  responseData = yield broadcastActions[type](payload);
23064
23129
  }
23065
23130
  else {
23066
- console.log(`Unable to handle "${type}" case in BC service worker`);
23131
+ console.warn(`Unable to handle "${type}" case in BC service worker`);
23132
+ }
23133
+ }));
23134
+ }
23135
+ /**
23136
+ * Method to trigger broadcast message listener
23137
+ */
23138
+ function listenPostMessagaes() {
23139
+ // broadcast event can be listened through both the service worker and other tabs
23140
+ navigator.serviceWorker.addEventListener('message', (event) => __awaiter(this, void 0, void 0, function* () {
23141
+ var _a, _b, _c, _d;
23142
+ try {
23143
+ if (event.data && event.data.type === 'API_401') {
23144
+ const { requestDetails } = event.data;
23145
+ // Re-create the POST request with the same headers and body
23146
+ const requestOptions = {
23147
+ method: requestDetails.method,
23148
+ headers: new Headers(requestDetails.headers),
23149
+ body: requestDetails.body // Pass the original body
23150
+ };
23151
+ // Re-hit the API with the same details
23152
+ const apiResponse = yield fetch(requestDetails.url, requestOptions);
23153
+ const responseBody = yield (apiResponse === null || apiResponse === void 0 ? void 0 : apiResponse.json()); // Get the response text
23154
+ // Send the response back to the Service Worker (same client)
23155
+ (_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker) === null || _a === void 0 ? void 0 : _a.controller) === null || _b === void 0 ? void 0 : _b.postMessage({
23156
+ type: 'API_RESPONSE',
23157
+ messageId: event.data.messageId,
23158
+ response: new Response(responseBody, {
23159
+ status: apiResponse.status,
23160
+ statusText: apiResponse.statusText,
23161
+ headers: apiResponse.headers
23162
+ })
23163
+ });
23164
+ }
23165
+ }
23166
+ catch (error) {
23167
+ console.error("Error during listenPostMessage", error);
23168
+ (_d = (_c = navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker) === null || _c === void 0 ? void 0 : _c.controller) === null || _d === void 0 ? void 0 : _d.postMessage({
23169
+ type: 'API_RESPONSE',
23170
+ messageId: event.data.messageId
23171
+ });
23067
23172
  }
23068
23173
  }));
23069
23174
  }
@@ -23190,12 +23295,51 @@ function processMessageQueue() {
23190
23295
  });
23191
23296
  }
23192
23297
  const handleServiceWorkerException = (error) => {
23298
+ // if (error instanceof FreeSchemaResponse && error.getStatus() != 401) {
23193
23299
  if (error instanceof _DataStructures_Responses_ErrorResponse__WEBPACK_IMPORTED_MODULE_104__.FreeSchemaResponse) {
23194
23300
  console.error('FreeSchemaResponse Error', error);
23195
23301
  throw error;
23196
23302
  }
23303
+ // if (error instanceof FreeSchemaResponse && error.getStatus() == 401) console.error('401 triggered in sw defaulting')
23197
23304
  console.error('Service Worker Error', error);
23198
23305
  };
23306
+ /**
23307
+ * Function to setup initial flag
23308
+ */
23309
+ function initializeFlags(flags) {
23310
+ try {
23311
+ if (flags.logApplication) {
23312
+ _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__.ApplicationMonitor.initialize();
23313
+ _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logApplicationActivationStatus = true;
23314
+ console.warn("Application log started.");
23315
+ }
23316
+ if (flags.logPackage) {
23317
+ _app__WEBPACK_IMPORTED_MODULE_105__.Logger.logPackageActivationStatus = true;
23318
+ console.warn("Package log started.");
23319
+ }
23320
+ if (flags.accessTracker) {
23321
+ _app__WEBPACK_IMPORTED_MODULE_105__.AccessTracker.activateStatus = true;
23322
+ console.warn("Access Tracker Activated.");
23323
+ }
23324
+ if (flags.isTest) {
23325
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isDataLoaded = true;
23326
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isCharacterLoaded = true;
23327
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isTypeLoaded = true;
23328
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalDataLoaded = true;
23329
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalTypeLoaded = true;
23330
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalCharacterLoaded = true;
23331
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isConnectionLoaded = true;
23332
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isConnectionTypeLoaded = true;
23333
+ _DataStructures_IdentifierFlags__WEBPACK_IMPORTED_MODULE_1__.IdentifierFlags.isLocalConnectionLoaded = true;
23334
+ // return true;
23335
+ }
23336
+ return flags;
23337
+ }
23338
+ catch (error) {
23339
+ console.error("Failed to initialize flags:", error);
23340
+ throw error;
23341
+ }
23342
+ }
23199
23343
 
23200
23344
 
23201
23345
  /***/ })
@@ -23415,16 +23559,18 @@ const handleServiceWorkerException = (error) => {
23415
23559
  /******/ var __webpack_exports__getFromDatabaseWithType = __webpack_exports__.getFromDatabaseWithType;
23416
23560
  /******/ var __webpack_exports__getObjectsFromIndexDb = __webpack_exports__.getObjectsFromIndexDb;
23417
23561
  /******/ var __webpack_exports__handleServiceWorkerException = __webpack_exports__.handleServiceWorkerException;
23562
+ /******/ var __webpack_exports__hasActivatedSW = __webpack_exports__.hasActivatedSW;
23418
23563
  /******/ var __webpack_exports__init = __webpack_exports__.init;
23419
23564
  /******/ var __webpack_exports__recursiveFetch = __webpack_exports__.recursiveFetch;
23420
23565
  /******/ var __webpack_exports__recursiveFetchNew = __webpack_exports__.recursiveFetchNew;
23421
23566
  /******/ var __webpack_exports__searchLinkMultipleListener = __webpack_exports__.searchLinkMultipleListener;
23422
23567
  /******/ var __webpack_exports__sendMessage = __webpack_exports__.sendMessage;
23423
23568
  /******/ var __webpack_exports__serviceWorker = __webpack_exports__.serviceWorker;
23569
+ /******/ var __webpack_exports__setHasActivatedSW = __webpack_exports__.setHasActivatedSW;
23424
23570
  /******/ var __webpack_exports__storeToDatabase = __webpack_exports__.storeToDatabase;
23425
23571
  /******/ var __webpack_exports__subscribedListeners = __webpack_exports__.subscribedListeners;
23426
23572
  /******/ var __webpack_exports__updateAccessToken = __webpack_exports__.updateAccessToken;
23427
- /******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AccessTracker as AccessTracker, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__BuilderStatefulWidget as BuilderStatefulWidget, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenEntityLocal as CreateConnectionBetweenEntityLocal, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__DeleteUser as DeleteUser, __webpack_exports__DependencyObserver as DependencyObserver, __webpack_exports__FilterSearch as FilterSearch, __webpack_exports__FormatFromConnections as FormatFromConnections, __webpack_exports__FormatFromConnectionsAltered as FormatFromConnectionsAltered, __webpack_exports__FreeschemaQuery as FreeschemaQuery, __webpack_exports__FreeschemaQueryApi as FreeschemaQueryApi, __webpack_exports__GetAllConnectionsOfComposition as GetAllConnectionsOfComposition, __webpack_exports__GetAllConnectionsOfCompositionBulk as GetAllConnectionsOfCompositionBulk, __webpack_exports__GetAllTheConnectionsByTypeAndOfTheConcept as GetAllTheConnectionsByTypeAndOfTheConcept, __webpack_exports__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdFromConnections as GetCompositionFromConnectionsWithDataIdFromConnections, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __webpack_exports__GetCompositionFromConnectionsWithIndexFromConnections as GetCompositionFromConnectionsWithIndexFromConnections, __webpack_exports__GetCompositionFromMemoryWithConnections as GetCompositionFromMemoryWithConnections, __webpack_exports__GetCompositionList as GetCompositionList, __webpack_exports__GetCompositionListAll as GetCompositionListAll, __webpack_exports__GetCompositionListAllWithId as GetCompositionListAllWithId, __webpack_exports__GetCompositionListListener as GetCompositionListListener, __webpack_exports__GetCompositionListLocal as GetCompositionListLocal, __webpack_exports__GetCompositionListLocalWithId as GetCompositionListLocalWithId, __webpack_exports__GetCompositionListWithId as GetCompositionListWithId, __webpack_exports__GetCompositionListWithIdUpdated as GetCompositionListWithIdUpdated, __webpack_exports__GetCompositionListener as GetCompositionListener, __webpack_exports__GetCompositionLocal as GetCompositionLocal, __webpack_exports__GetCompositionLocalWithId as GetCompositionLocalWithId, __webpack_exports__GetCompositionWithAllIds as GetCompositionWithAllIds, __webpack_exports__GetCompositionWithCache as GetCompositionWithCache, __webpack_exports__GetCompositionWithDataIdBulk as GetCompositionWithDataIdBulk, __webpack_exports__GetCompositionWithDataIdWithCache as GetCompositionWithDataIdWithCache, __webpack_exports__GetCompositionWithId as GetCompositionWithId, __webpack_exports__GetCompositionWithIdAndDateFromMemory as GetCompositionWithIdAndDateFromMemory, __webpack_exports__GetConceptBulk as GetConceptBulk, __webpack_exports__GetConceptByCharacter as GetConceptByCharacter, __webpack_exports__GetConceptByCharacterAndCategoryLocal as GetConceptByCharacterAndCategoryLocal, __webpack_exports__GetConceptByCharacterAndType as GetConceptByCharacterAndType, __webpack_exports__GetConnectionBetweenTwoConceptsLinker as GetConnectionBetweenTwoConceptsLinker, __webpack_exports__GetConnectionBulk as GetConnectionBulk, __webpack_exports__GetConnectionById as GetConnectionById, __webpack_exports__GetConnectionDataPrefetch as GetConnectionDataPrefetch, __webpack_exports__GetConnectionOfTheConcept as GetConnectionOfTheConcept, __webpack_exports__GetLink as GetLink, __webpack_exports__GetLinkListListener as GetLinkListListener, __webpack_exports__GetLinkListener as GetLinkListener, __webpack_exports__GetLinkRaw as GetLinkRaw, __webpack_exports__GetLinkerConnectionFromConcepts as GetLinkerConnectionFromConcepts, __webpack_exports__GetLinkerConnectionToConcepts as GetLinkerConnectionToConcepts, __webpack_exports__GetRelation as GetRelation, __webpack_exports__GetRelationLocal as GetRelationLocal, __webpack_exports__GetRelationRaw as GetRelationRaw, __webpack_exports__GetTheConcept as GetTheConcept, __webpack_exports__GetTheConceptLocal as GetTheConceptLocal, __webpack_exports__GetUserGhostId as GetUserGhostId, __webpack_exports__JUSTDATA as JUSTDATA, __webpack_exports__LConcept as LConcept, __webpack_exports__LConnection as LConnection, __webpack_exports__LISTNORMAL as LISTNORMAL, __webpack_exports__LocalConceptsData as LocalConceptsData, __webpack_exports__LocalSyncData as LocalSyncData, __webpack_exports__LocalTransaction as LocalTransaction, __webpack_exports__Logger as Logger, __webpack_exports__LoginToBackend as LoginToBackend, __webpack_exports__MakeTheInstanceConcept as MakeTheInstanceConcept, __webpack_exports__MakeTheInstanceConceptLocal as MakeTheInstanceConceptLocal, __webpack_exports__MakeTheTimestamp as MakeTheTimestamp, __webpack_exports__MakeTheTypeConcept as MakeTheTypeConcept, __webpack_exports__MakeTheTypeConceptApi as MakeTheTypeConceptApi, __webpack_exports__MakeTheTypeConceptLocal as MakeTheTypeConceptLocal, __webpack_exports__NORMAL as NORMAL, __webpack_exports__PRIVATE as PRIVATE, __webpack_exports__PUBLIC as PUBLIC, __webpack_exports__PatcherStructure as PatcherStructure, __webpack_exports__RAW as RAW, __webpack_exports__RecursiveSearchApi as RecursiveSearchApi, __webpack_exports__RecursiveSearchApiNewRawFullLinker as RecursiveSearchApiNewRawFullLinker, __webpack_exports__RecursiveSearchApiRaw as RecursiveSearchApiRaw, __webpack_exports__RecursiveSearchApiRawFullLinker as RecursiveSearchApiRawFullLinker, __webpack_exports__RecursiveSearchApiWithInternalConnections as RecursiveSearchApiWithInternalConnections, __webpack_exports__RecursiveSearchListener as RecursiveSearchListener, __webpack_exports__SchemaQueryListener as SchemaQueryListener, __webpack_exports__SearchAllConcepts as SearchAllConcepts, __webpack_exports__SearchLinkInternal as SearchLinkInternal, __webpack_exports__SearchLinkInternalAll as SearchLinkInternalAll, __webpack_exports__SearchLinkMultipleAll as SearchLinkMultipleAll, __webpack_exports__SearchLinkMultipleAllObservable as SearchLinkMultipleAllObservable, __webpack_exports__SearchLinkMultipleApi as SearchLinkMultipleApi, __webpack_exports__SearchQuery as SearchQuery, __webpack_exports__SearchStructure as SearchStructure, __webpack_exports__SearchWithLinker as SearchWithLinker, __webpack_exports__SearchWithTypeAndLinker as SearchWithTypeAndLinker, __webpack_exports__SearchWithTypeAndLinkerApi as SearchWithTypeAndLinkerApi, __webpack_exports__SessionData as SessionData, __webpack_exports__Signin as Signin, __webpack_exports__Signup as Signup, __webpack_exports__SignupEntity as SignupEntity, __webpack_exports__SplitStrings as SplitStrings, __webpack_exports__StatefulWidget as StatefulWidget, __webpack_exports__SyncData as SyncData, __webpack_exports__TrashTheConcept as TrashTheConcept, __webpack_exports__UpdateComposition as UpdateComposition, __webpack_exports__UpdateCompositionLocal as UpdateCompositionLocal, __webpack_exports__UserBinaryTree as UserBinaryTree, __webpack_exports__Validator as Validator, __webpack_exports__ViewInternalData as ViewInternalData, __webpack_exports__ViewInternalDataApi as ViewInternalDataApi, __webpack_exports__WidgetTree as WidgetTree, __webpack_exports__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__handleServiceWorkerException as handleServiceWorkerException, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
23573
+ /******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AccessTracker as AccessTracker, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__BuilderStatefulWidget as BuilderStatefulWidget, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenEntityLocal as CreateConnectionBetweenEntityLocal, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__DeleteUser as DeleteUser, __webpack_exports__DependencyObserver as DependencyObserver, __webpack_exports__FilterSearch as FilterSearch, __webpack_exports__FormatFromConnections as FormatFromConnections, __webpack_exports__FormatFromConnectionsAltered as FormatFromConnectionsAltered, __webpack_exports__FreeschemaQuery as FreeschemaQuery, __webpack_exports__FreeschemaQueryApi as FreeschemaQueryApi, __webpack_exports__GetAllConnectionsOfComposition as GetAllConnectionsOfComposition, __webpack_exports__GetAllConnectionsOfCompositionBulk as GetAllConnectionsOfCompositionBulk, __webpack_exports__GetAllTheConnectionsByTypeAndOfTheConcept as GetAllTheConnectionsByTypeAndOfTheConcept, __webpack_exports__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdFromConnections as GetCompositionFromConnectionsWithDataIdFromConnections, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __webpack_exports__GetCompositionFromConnectionsWithIndexFromConnections as GetCompositionFromConnectionsWithIndexFromConnections, __webpack_exports__GetCompositionFromMemoryWithConnections as GetCompositionFromMemoryWithConnections, __webpack_exports__GetCompositionList as GetCompositionList, __webpack_exports__GetCompositionListAll as GetCompositionListAll, __webpack_exports__GetCompositionListAllWithId as GetCompositionListAllWithId, __webpack_exports__GetCompositionListListener as GetCompositionListListener, __webpack_exports__GetCompositionListLocal as GetCompositionListLocal, __webpack_exports__GetCompositionListLocalWithId as GetCompositionListLocalWithId, __webpack_exports__GetCompositionListWithId as GetCompositionListWithId, __webpack_exports__GetCompositionListWithIdUpdated as GetCompositionListWithIdUpdated, __webpack_exports__GetCompositionListener as GetCompositionListener, __webpack_exports__GetCompositionLocal as GetCompositionLocal, __webpack_exports__GetCompositionLocalWithId as GetCompositionLocalWithId, __webpack_exports__GetCompositionWithAllIds as GetCompositionWithAllIds, __webpack_exports__GetCompositionWithCache as GetCompositionWithCache, __webpack_exports__GetCompositionWithDataIdBulk as GetCompositionWithDataIdBulk, __webpack_exports__GetCompositionWithDataIdWithCache as GetCompositionWithDataIdWithCache, __webpack_exports__GetCompositionWithId as GetCompositionWithId, __webpack_exports__GetCompositionWithIdAndDateFromMemory as GetCompositionWithIdAndDateFromMemory, __webpack_exports__GetConceptBulk as GetConceptBulk, __webpack_exports__GetConceptByCharacter as GetConceptByCharacter, __webpack_exports__GetConceptByCharacterAndCategoryLocal as GetConceptByCharacterAndCategoryLocal, __webpack_exports__GetConceptByCharacterAndType as GetConceptByCharacterAndType, __webpack_exports__GetConnectionBetweenTwoConceptsLinker as GetConnectionBetweenTwoConceptsLinker, __webpack_exports__GetConnectionBulk as GetConnectionBulk, __webpack_exports__GetConnectionById as GetConnectionById, __webpack_exports__GetConnectionDataPrefetch as GetConnectionDataPrefetch, __webpack_exports__GetConnectionOfTheConcept as GetConnectionOfTheConcept, __webpack_exports__GetLink as GetLink, __webpack_exports__GetLinkListListener as GetLinkListListener, __webpack_exports__GetLinkListener as GetLinkListener, __webpack_exports__GetLinkRaw as GetLinkRaw, __webpack_exports__GetLinkerConnectionFromConcepts as GetLinkerConnectionFromConcepts, __webpack_exports__GetLinkerConnectionToConcepts as GetLinkerConnectionToConcepts, __webpack_exports__GetRelation as GetRelation, __webpack_exports__GetRelationLocal as GetRelationLocal, __webpack_exports__GetRelationRaw as GetRelationRaw, __webpack_exports__GetTheConcept as GetTheConcept, __webpack_exports__GetTheConceptLocal as GetTheConceptLocal, __webpack_exports__GetUserGhostId as GetUserGhostId, __webpack_exports__JUSTDATA as JUSTDATA, __webpack_exports__LConcept as LConcept, __webpack_exports__LConnection as LConnection, __webpack_exports__LISTNORMAL as LISTNORMAL, __webpack_exports__LocalConceptsData as LocalConceptsData, __webpack_exports__LocalSyncData as LocalSyncData, __webpack_exports__LocalTransaction as LocalTransaction, __webpack_exports__Logger as Logger, __webpack_exports__LoginToBackend as LoginToBackend, __webpack_exports__MakeTheInstanceConcept as MakeTheInstanceConcept, __webpack_exports__MakeTheInstanceConceptLocal as MakeTheInstanceConceptLocal, __webpack_exports__MakeTheTimestamp as MakeTheTimestamp, __webpack_exports__MakeTheTypeConcept as MakeTheTypeConcept, __webpack_exports__MakeTheTypeConceptApi as MakeTheTypeConceptApi, __webpack_exports__MakeTheTypeConceptLocal as MakeTheTypeConceptLocal, __webpack_exports__NORMAL as NORMAL, __webpack_exports__PRIVATE as PRIVATE, __webpack_exports__PUBLIC as PUBLIC, __webpack_exports__PatcherStructure as PatcherStructure, __webpack_exports__RAW as RAW, __webpack_exports__RecursiveSearchApi as RecursiveSearchApi, __webpack_exports__RecursiveSearchApiNewRawFullLinker as RecursiveSearchApiNewRawFullLinker, __webpack_exports__RecursiveSearchApiRaw as RecursiveSearchApiRaw, __webpack_exports__RecursiveSearchApiRawFullLinker as RecursiveSearchApiRawFullLinker, __webpack_exports__RecursiveSearchApiWithInternalConnections as RecursiveSearchApiWithInternalConnections, __webpack_exports__RecursiveSearchListener as RecursiveSearchListener, __webpack_exports__SchemaQueryListener as SchemaQueryListener, __webpack_exports__SearchAllConcepts as SearchAllConcepts, __webpack_exports__SearchLinkInternal as SearchLinkInternal, __webpack_exports__SearchLinkInternalAll as SearchLinkInternalAll, __webpack_exports__SearchLinkMultipleAll as SearchLinkMultipleAll, __webpack_exports__SearchLinkMultipleAllObservable as SearchLinkMultipleAllObservable, __webpack_exports__SearchLinkMultipleApi as SearchLinkMultipleApi, __webpack_exports__SearchQuery as SearchQuery, __webpack_exports__SearchStructure as SearchStructure, __webpack_exports__SearchWithLinker as SearchWithLinker, __webpack_exports__SearchWithTypeAndLinker as SearchWithTypeAndLinker, __webpack_exports__SearchWithTypeAndLinkerApi as SearchWithTypeAndLinkerApi, __webpack_exports__SessionData as SessionData, __webpack_exports__Signin as Signin, __webpack_exports__Signup as Signup, __webpack_exports__SignupEntity as SignupEntity, __webpack_exports__SplitStrings as SplitStrings, __webpack_exports__StatefulWidget as StatefulWidget, __webpack_exports__SyncData as SyncData, __webpack_exports__TrashTheConcept as TrashTheConcept, __webpack_exports__UpdateComposition as UpdateComposition, __webpack_exports__UpdateCompositionLocal as UpdateCompositionLocal, __webpack_exports__UserBinaryTree as UserBinaryTree, __webpack_exports__Validator as Validator, __webpack_exports__ViewInternalData as ViewInternalData, __webpack_exports__ViewInternalDataApi as ViewInternalDataApi, __webpack_exports__WidgetTree as WidgetTree, __webpack_exports__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__handleServiceWorkerException as handleServiceWorkerException, __webpack_exports__hasActivatedSW as hasActivatedSW, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__setHasActivatedSW as setHasActivatedSW, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
23428
23574
  /******/
23429
23575
 
23430
23576
  //# sourceMappingURL=main.bundle.js.map