@seedtactics/insight-client 16.5.0 → 16.5.2

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.
Files changed (153) hide show
  1. package/dist/assets/ProgramHighlight-LvRM40Qr.js +3 -0
  2. package/dist/assets/index-CbqW4-gR.css +1 -0
  3. package/dist/assets/index-gAFi3Oss.js +364 -0
  4. package/dist/assets/roboto-cyrillic-300-normal-DEFNdjk5.woff +0 -0
  5. package/dist/assets/roboto-cyrillic-300-normal-DzUz0kzv.woff2 +0 -0
  6. package/dist/assets/{roboto-cyrillic-400-normal-DZJji7Rx.woff → roboto-cyrillic-400-normal-Bjg-1-sg.woff} +0 -0
  7. package/dist/assets/roboto-cyrillic-400-normal-CBPI_iaY.woff2 +0 -0
  8. package/dist/assets/{roboto-cyrillic-500-normal-BI4HuXre.woff → roboto-cyrillic-500-normal-CBKMylY4.woff} +0 -0
  9. package/dist/assets/roboto-cyrillic-500-normal-CLao9AfR.woff2 +0 -0
  10. package/dist/assets/roboto-cyrillic-700-normal-C2o7G-SM.woff2 +0 -0
  11. package/dist/assets/{roboto-cyrillic-700-normal-KqaQ5bNp.woff → roboto-cyrillic-700-normal-DhZFXDSN.woff} +0 -0
  12. package/dist/assets/roboto-cyrillic-ext-300-normal-D7ank4TF.woff +0 -0
  13. package/dist/assets/roboto-cyrillic-ext-300-normal-DIxttMbC.woff2 +0 -0
  14. package/dist/assets/{roboto-cyrillic-ext-400-normal-DtZHuW6i.woff → roboto-cyrillic-ext-400-normal-CaK1767H.woff} +0 -0
  15. package/dist/assets/roboto-cyrillic-ext-400-normal-qHufge6k.woff2 +0 -0
  16. package/dist/assets/roboto-cyrillic-ext-500-normal-BWC_xYeb.woff2 +0 -0
  17. package/dist/assets/roboto-cyrillic-ext-500-normal-DqF2hftb.woff +0 -0
  18. package/dist/assets/roboto-cyrillic-ext-700-normal-CI7FH63F.woff +0 -0
  19. package/dist/assets/roboto-cyrillic-ext-700-normal-DmFxo5wj.woff2 +0 -0
  20. package/dist/assets/roboto-greek-300-normal-C_Dgaih9.woff +0 -0
  21. package/dist/assets/roboto-greek-300-normal-DJEM9B4Z.woff2 +0 -0
  22. package/dist/assets/{roboto-greek-400-normal-CcizSnRP.woff → roboto-greek-400-normal-Bb5mj_fZ.woff} +0 -0
  23. package/dist/assets/roboto-greek-400-normal-ai2Z1K3C.woff2 +0 -0
  24. package/dist/assets/roboto-greek-500-normal-C9AnhcmC.woff2 +0 -0
  25. package/dist/assets/{roboto-greek-500-normal-BLLWU9W-.woff → roboto-greek-500-normal-oCqhoyfc.woff} +0 -0
  26. package/dist/assets/roboto-greek-700-normal-0aHWxGLu.woff2 +0 -0
  27. package/dist/assets/{roboto-greek-700-normal-D3kmAf0K.woff → roboto-greek-700-normal-DjRqqLBV.woff} +0 -0
  28. package/dist/assets/roboto-latin-300-normal-BARJ-h6h.woff +0 -0
  29. package/dist/assets/roboto-latin-300-normal-CCzlftfr.woff2 +0 -0
  30. package/dist/assets/roboto-latin-400-normal-BqEyEoaF.woff2 +0 -0
  31. package/dist/assets/{roboto-latin-400-normal-068yxgMN.woff → roboto-latin-400-normal-DyYNIH4P.woff} +0 -0
  32. package/dist/assets/roboto-latin-500-normal-7RbcRiD8.woff2 +0 -0
  33. package/dist/assets/roboto-latin-500-normal-DQZyH_nt.woff +0 -0
  34. package/dist/assets/roboto-latin-700-normal-BZpUvMxY.woff2 +0 -0
  35. package/dist/assets/roboto-latin-700-normal-DLgJJpmK.woff +0 -0
  36. package/dist/assets/roboto-latin-ext-300-normal-B90pq-BC.woff2 +0 -0
  37. package/dist/assets/roboto-latin-ext-300-normal-CTCCHkZF.woff +0 -0
  38. package/dist/assets/roboto-latin-ext-400-normal-C3tdtHj3.woff2 +0 -0
  39. package/dist/assets/roboto-latin-ext-400-normal-scX0fKtV.woff +0 -0
  40. package/dist/assets/roboto-latin-ext-500-normal-Cyc0AKLz.woff +0 -0
  41. package/dist/assets/roboto-latin-ext-500-normal-pMCM9Ixg.woff2 +0 -0
  42. package/dist/assets/roboto-latin-ext-700-normal-BUhwtWwy.woff +0 -0
  43. package/dist/assets/roboto-latin-ext-700-normal-DSBUz0N1.woff2 +0 -0
  44. package/dist/assets/roboto-math-300-normal-5dF_7mZP.woff2 +0 -0
  45. package/dist/assets/roboto-math-300-normal-Ds0YpBw2.woff +0 -0
  46. package/dist/assets/roboto-math-400-normal-BEFej5gc.woff2 +0 -0
  47. package/dist/assets/{roboto-math-400-normal-rzxYvyVt.woff → roboto-math-400-normal-C9RxBKAh.woff} +0 -0
  48. package/dist/assets/{roboto-math-500-normal-DaFX-ZC8.woff → roboto-math-500-normal-C-7mKPO3.woff} +0 -0
  49. package/dist/assets/roboto-math-500-normal-C4NU9gLX.woff2 +0 -0
  50. package/dist/assets/roboto-math-700-normal-B8YqGHVc.woff2 +0 -0
  51. package/dist/assets/roboto-math-700-normal-DVoD5t2k.woff +0 -0
  52. package/dist/assets/roboto-symbols-300-normal-BCnjhQd_.woff +0 -0
  53. package/dist/assets/roboto-symbols-300-normal-DDU7avhj.woff2 +0 -0
  54. package/dist/assets/roboto-symbols-400-normal-CB1Ce4Gk.woff2 +0 -0
  55. package/dist/assets/roboto-symbols-400-normal-DLYbZahX.woff +0 -0
  56. package/dist/assets/roboto-symbols-500-normal-B_CZKVJS.woff2 +0 -0
  57. package/dist/assets/roboto-symbols-500-normal-F7c8nfcH.woff +0 -0
  58. package/dist/assets/roboto-symbols-700-normal-BiFDindJ.woff2 +0 -0
  59. package/dist/assets/roboto-symbols-700-normal-BoS6HWkc.woff +0 -0
  60. package/dist/assets/roboto-vietnamese-300-normal-BPvXm_f1.woff2 +0 -0
  61. package/dist/assets/roboto-vietnamese-300-normal-INUupD3o.woff +0 -0
  62. package/dist/assets/roboto-vietnamese-400-normal-D2PTxGxD.woff2 +0 -0
  63. package/dist/assets/{roboto-vietnamese-400-normal-DmXaN3yE.woff → roboto-vietnamese-400-normal-DnpnVwnf.woff} +0 -0
  64. package/dist/assets/roboto-vietnamese-500-normal-B3ncpOoB.woff2 +0 -0
  65. package/dist/assets/{roboto-vietnamese-500-normal-DW96CsrR.woff → roboto-vietnamese-500-normal-D380IkQ8.woff} +0 -0
  66. package/dist/assets/roboto-vietnamese-700-normal-BEVeWqJt.woff2 +0 -0
  67. package/dist/assets/{roboto-vietnamese-700-normal-Dz0HwF-w.woff → roboto-vietnamese-700-normal-DsFyXAL4.woff} +0 -0
  68. package/dist/components/App.d.ts +1 -1
  69. package/dist/components/BarcodeScanning.d.ts +3 -3
  70. package/dist/components/ChooseOperator.d.ts +1 -1
  71. package/dist/components/LoadingIcon.d.ts +1 -1
  72. package/dist/components/LogEntry.d.ts +2 -2
  73. package/dist/components/ManualSerialEntry.d.ts +2 -2
  74. package/dist/components/MonthSelect.d.ts +1 -1
  75. package/dist/components/analysis/AnalysisSelectToolbar.d.ts +1 -1
  76. package/dist/components/analysis/CostPerPiece.d.ts +1 -1
  77. package/dist/components/analysis/CycleChart.d.ts +1 -1
  78. package/dist/components/analysis/DataTable.d.ts +2 -2
  79. package/dist/components/analysis/InspectionDataTable.d.ts +1 -1
  80. package/dist/components/analysis/StationDataTable.d.ts +1 -1
  81. package/dist/components/analysis/ToolReplacements.d.ts +1 -1
  82. package/dist/components/operations/ChartRangeEdit.d.ts +2 -2
  83. package/dist/components/operations/CurrentWorkorders.d.ts +3 -2
  84. package/dist/components/operations/OEEChart.d.ts +2 -2
  85. package/dist/components/operations/RecentSchedules.d.ts +1 -1
  86. package/dist/components/quality/QualityPaths.d.ts +1 -1
  87. package/dist/components/station-monitor/BulkRawMaterial.d.ts +2 -2
  88. package/dist/components/station-monitor/CustomStationMonitorDialog.d.ts +2 -1
  89. package/dist/components/station-monitor/Material.d.ts +9 -9
  90. package/dist/components/station-monitor/MoveMaterialArrows.d.ts +2 -2
  91. package/dist/components/station-monitor/Queues.d.ts +1 -1
  92. package/dist/components/station-monitor/SelectInspType.d.ts +1 -1
  93. package/dist/components/station-monitor/SelectWorkorder.d.ts +1 -1
  94. package/dist/components/station-monitor/SystemOverview.d.ts +4 -4
  95. package/dist/components/station-monitor/Whiteboard.d.ts +1 -1
  96. package/dist/index.html +2 -2
  97. package/dist/network/api.d.ts +40 -2
  98. package/dist/network/api.js +62 -0
  99. package/package.json +20 -20
  100. package/dist/assets/ProgramHighlight-C7lr7YIr.js +0 -3
  101. package/dist/assets/index-WWzKpVgW.js +0 -346
  102. package/dist/assets/index-ZBfg6YlO.css +0 -1
  103. package/dist/assets/roboto-cyrillic-300-normal-BoeCr7ev.woff2 +0 -0
  104. package/dist/assets/roboto-cyrillic-300-normal-D568C3aM.woff +0 -0
  105. package/dist/assets/roboto-cyrillic-400-normal-DAIM1_dR.woff2 +0 -0
  106. package/dist/assets/roboto-cyrillic-500-normal-hCeO1jFL.woff2 +0 -0
  107. package/dist/assets/roboto-cyrillic-700-normal-BiSG5NnW.woff2 +0 -0
  108. package/dist/assets/roboto-cyrillic-ext-300-normal-CUPJdUZp.woff2 +0 -0
  109. package/dist/assets/roboto-cyrillic-ext-300-normal-DQdcc27I.woff +0 -0
  110. package/dist/assets/roboto-cyrillic-ext-400-normal-DzMWdK87.woff2 +0 -0
  111. package/dist/assets/roboto-cyrillic-ext-500-normal-B7rQpwPu.woff2 +0 -0
  112. package/dist/assets/roboto-cyrillic-ext-500-normal-C927yMrb.woff +0 -0
  113. package/dist/assets/roboto-cyrillic-ext-700-normal-BuQgZIrO.woff +0 -0
  114. package/dist/assets/roboto-cyrillic-ext-700-normal-UFn0vR9r.woff2 +0 -0
  115. package/dist/assets/roboto-greek-300-normal-CTj2MfNN.woff +0 -0
  116. package/dist/assets/roboto-greek-300-normal-Cnub06j7.woff2 +0 -0
  117. package/dist/assets/roboto-greek-400-normal-jFM2czAU.woff2 +0 -0
  118. package/dist/assets/roboto-greek-500-normal-BJMS0heP.woff2 +0 -0
  119. package/dist/assets/roboto-greek-700-normal-BcGn9doz.woff2 +0 -0
  120. package/dist/assets/roboto-latin-300-normal-CztWkFGs.woff2 +0 -0
  121. package/dist/assets/roboto-latin-300-normal-KByCBsad.woff +0 -0
  122. package/dist/assets/roboto-latin-400-normal-CNwBRw8h.woff2 +0 -0
  123. package/dist/assets/roboto-latin-500-normal-CC5nhZkh.woff +0 -0
  124. package/dist/assets/roboto-latin-500-normal-CkrA1NAy.woff2 +0 -0
  125. package/dist/assets/roboto-latin-700-normal-CXeAXeti.woff2 +0 -0
  126. package/dist/assets/roboto-latin-700-normal-DUekQERp.woff +0 -0
  127. package/dist/assets/roboto-latin-ext-300-normal-BOz0oSmX.woff2 +0 -0
  128. package/dist/assets/roboto-latin-ext-300-normal-Tcf9y2tg.woff +0 -0
  129. package/dist/assets/roboto-latin-ext-400-normal-ZYmyxeOy.woff2 +0 -0
  130. package/dist/assets/roboto-latin-ext-400-normal-eTRLN0Nt.woff +0 -0
  131. package/dist/assets/roboto-latin-ext-500-normal-C_ARlJGk.woff2 +0 -0
  132. package/dist/assets/roboto-latin-ext-500-normal-FFcS8vBN.woff +0 -0
  133. package/dist/assets/roboto-latin-ext-700-normal-70GS1MYH.woff2 +0 -0
  134. package/dist/assets/roboto-latin-ext-700-normal-BS1OuQqR.woff +0 -0
  135. package/dist/assets/roboto-math-300-normal-BMxwzQmU.woff2 +0 -0
  136. package/dist/assets/roboto-math-300-normal-BU9CUCyj.woff +0 -0
  137. package/dist/assets/roboto-math-400-normal-B3wgz80t.woff2 +0 -0
  138. package/dist/assets/roboto-math-500-normal-CFNaIMFC.woff2 +0 -0
  139. package/dist/assets/roboto-math-700-normal-VUAI6Bz2.woff2 +0 -0
  140. package/dist/assets/roboto-math-700-normal-pYD1nhov.woff +0 -0
  141. package/dist/assets/roboto-symbols-300-normal-BtHl5mYl.woff2 +0 -0
  142. package/dist/assets/roboto-symbols-300-normal-kyoSXp-d.woff +0 -0
  143. package/dist/assets/roboto-symbols-400-normal-Tzuungub.woff +0 -0
  144. package/dist/assets/roboto-symbols-400-normal-fF1SLJBj.woff2 +0 -0
  145. package/dist/assets/roboto-symbols-500-normal-BXFTxrNR.woff2 +0 -0
  146. package/dist/assets/roboto-symbols-500-normal-CAhAe-ik.woff +0 -0
  147. package/dist/assets/roboto-symbols-700-normal-CuuvBBxy.woff +0 -0
  148. package/dist/assets/roboto-symbols-700-normal-rJi6RjIy.woff2 +0 -0
  149. package/dist/assets/roboto-vietnamese-300-normal-CNeuLW5X.woff2 +0 -0
  150. package/dist/assets/roboto-vietnamese-300-normal-DXBG9gdz.woff +0 -0
  151. package/dist/assets/roboto-vietnamese-400-normal-CDDxGrUb.woff2 +0 -0
  152. package/dist/assets/roboto-vietnamese-500-normal-HYpufUYk.woff2 +0 -0
  153. package/dist/assets/roboto-vietnamese-700-normal-iKxYNAzq.woff2 +0 -0
@@ -2279,6 +2279,7 @@ export class FMSInfo {
2279
2279
  this.requireOperatorNamePromptWhenAddingMaterial = _data["RequireOperatorNamePromptWhenAddingMaterial"];
2280
2280
  this.allowEditJobPlanQuantityFromQueuesPage = _data["AllowEditJobPlanQuantityFromQueuesPage"];
2281
2281
  this.allowInvalidateMaterialOnQueuesPage = _data["AllowInvalidateMaterialOnQueuesPage"];
2282
+ this.basketName = _data["BasketName"];
2282
2283
  }
2283
2284
  }
2284
2285
  static fromJS(data) {
@@ -2322,6 +2323,7 @@ export class FMSInfo {
2322
2323
  data["RequireOperatorNamePromptWhenAddingMaterial"] = this.requireOperatorNamePromptWhenAddingMaterial;
2323
2324
  data["AllowEditJobPlanQuantityFromQueuesPage"] = this.allowEditJobPlanQuantityFromQueuesPage;
2324
2325
  data["AllowInvalidateMaterialOnQueuesPage"] = this.allowInvalidateMaterialOnQueuesPage;
2326
+ data["BasketName"] = this.basketName;
2325
2327
  return data;
2326
2328
  }
2327
2329
  }
@@ -2511,6 +2513,9 @@ export var LogType;
2511
2513
  LogType["SwapMaterialOnPallet"] = "SwapMaterialOnPallet";
2512
2514
  LogType["Rebooking"] = "Rebooking";
2513
2515
  LogType["CancelRebooking"] = "CancelRebooking";
2516
+ LogType["BasketLoadUnload"] = "BasketLoadUnload";
2517
+ LogType["BasketCycle"] = "BasketCycle";
2518
+ LogType["BasketInLocation"] = "BasketInLocation";
2514
2519
  })(LogType || (LogType = {}));
2515
2520
  export class ToolUse {
2516
2521
  constructor(data) {
@@ -3454,6 +3459,13 @@ export class CurrentStatus {
3454
3459
  for (let item of _data["Workorders"])
3455
3460
  this.workorders.push(ActiveWorkorder.fromJS(item));
3456
3461
  }
3462
+ if (_data["Baskets"]) {
3463
+ this.baskets = {};
3464
+ for (let key in _data["Baskets"]) {
3465
+ if (_data["Baskets"].hasOwnProperty(key))
3466
+ this.baskets[key] = _data["Baskets"][key] ? BasketStatus.fromJS(_data["Baskets"][key]) : new BasketStatus();
3467
+ }
3468
+ }
3457
3469
  }
3458
3470
  }
3459
3471
  static fromJS(data) {
@@ -3506,6 +3518,13 @@ export class CurrentStatus {
3506
3518
  for (let item of this.workorders)
3507
3519
  data["Workorders"].push(item ? item.toJSON() : undefined);
3508
3520
  }
3521
+ if (this.baskets) {
3522
+ data["Baskets"] = {};
3523
+ for (let key in this.baskets) {
3524
+ if (this.baskets.hasOwnProperty(key))
3525
+ data["Baskets"][key] = this.baskets[key] ? this.baskets[key].toJSON() : undefined;
3526
+ }
3527
+ }
3509
3528
  return data;
3510
3529
  }
3511
3530
  }
@@ -3747,6 +3766,7 @@ export class InProcessMaterial {
3747
3766
  this.signaledInspections.push(item);
3748
3767
  }
3749
3768
  this.quarantineAfterUnload = _data["QuarantineAfterUnload"];
3769
+ this.problem = _data["Problem"];
3750
3770
  this.lastCompletedMachiningRouteStopIndex = _data["LastCompletedMachiningRouteStopIndex"];
3751
3771
  this.location = _data["Location"] ? InProcessMaterialLocation.fromJS(_data["Location"]) : new InProcessMaterialLocation();
3752
3772
  this.action = _data["Action"] ? InProcessMaterialAction.fromJS(_data["Action"]) : new InProcessMaterialAction();
@@ -3773,6 +3793,7 @@ export class InProcessMaterial {
3773
3793
  data["SignaledInspections"].push(item);
3774
3794
  }
3775
3795
  data["QuarantineAfterUnload"] = this.quarantineAfterUnload;
3796
+ data["Problem"] = this.problem;
3776
3797
  data["LastCompletedMachiningRouteStopIndex"] = this.lastCompletedMachiningRouteStopIndex;
3777
3798
  data["Location"] = this.location ? this.location.toJSON() : undefined;
3778
3799
  data["Action"] = this.action ? this.action.toJSON() : undefined;
@@ -3795,6 +3816,8 @@ export class InProcessMaterialLocation {
3795
3816
  this.face = _data["Face"];
3796
3817
  this.currentQueue = _data["CurrentQueue"];
3797
3818
  this.queuePosition = _data["QueuePosition"];
3819
+ this.basketId = _data["BasketId"];
3820
+ this.basketSubPosition = _data["BasketSubPosition"];
3798
3821
  }
3799
3822
  }
3800
3823
  static fromJS(data) {
@@ -3810,6 +3833,8 @@ export class InProcessMaterialLocation {
3810
3833
  data["Face"] = this.face;
3811
3834
  data["CurrentQueue"] = this.currentQueue;
3812
3835
  data["QueuePosition"] = this.queuePosition;
3836
+ data["BasketId"] = this.basketId;
3837
+ data["BasketSubPosition"] = this.basketSubPosition;
3813
3838
  return data;
3814
3839
  }
3815
3840
  }
@@ -3818,6 +3843,7 @@ export var LocType;
3818
3843
  LocType["Free"] = "Free";
3819
3844
  LocType["OnPallet"] = "OnPallet";
3820
3845
  LocType["InQueue"] = "InQueue";
3846
+ LocType["InBasket"] = "InBasket";
3821
3847
  })(LocType || (LocType = {}));
3822
3848
  export class InProcessMaterialAction {
3823
3849
  constructor(data) {
@@ -3835,7 +3861,10 @@ export class InProcessMaterialAction {
3835
3861
  this.loadOntoFace = _data["LoadOntoFace"];
3836
3862
  this.processAfterLoad = _data["ProcessAfterLoad"];
3837
3863
  this.pathAfterLoad = _data["PathAfterLoad"];
3864
+ this.loadFromBasketId = _data["LoadFromBasketId"];
3838
3865
  this.unloadIntoQueue = _data["UnloadIntoQueue"];
3866
+ this.unloadToBasketId = _data["UnloadToBasketId"];
3867
+ this.unloadToBasketSubPosition = _data["UnloadToBasketSubPosition"];
3839
3868
  this.elapsedLoadUnloadTime = _data["ElapsedLoadUnloadTime"];
3840
3869
  this.program = _data["Program"];
3841
3870
  this.elapsedMachiningTime = _data["ElapsedMachiningTime"];
@@ -3855,7 +3884,10 @@ export class InProcessMaterialAction {
3855
3884
  data["LoadOntoFace"] = this.loadOntoFace;
3856
3885
  data["ProcessAfterLoad"] = this.processAfterLoad;
3857
3886
  data["PathAfterLoad"] = this.pathAfterLoad;
3887
+ data["LoadFromBasketId"] = this.loadFromBasketId;
3858
3888
  data["UnloadIntoQueue"] = this.unloadIntoQueue;
3889
+ data["UnloadToBasketId"] = this.unloadToBasketId;
3890
+ data["UnloadToBasketSubPosition"] = this.unloadToBasketSubPosition;
3859
3891
  data["ElapsedLoadUnloadTime"] = this.elapsedLoadUnloadTime;
3860
3892
  data["Program"] = this.program;
3861
3893
  data["ElapsedMachiningTime"] = this.elapsedMachiningTime;
@@ -4111,6 +4143,36 @@ export var WorkorderSerialCloseout;
4111
4143
  WorkorderSerialCloseout["ClosedOut"] = "ClosedOut";
4112
4144
  WorkorderSerialCloseout["CloseOutFailed"] = "CloseOutFailed";
4113
4145
  })(WorkorderSerialCloseout || (WorkorderSerialCloseout = {}));
4146
+ export class BasketStatus {
4147
+ constructor(data) {
4148
+ if (data) {
4149
+ for (var property in data) {
4150
+ if (data.hasOwnProperty(property))
4151
+ this[property] = data[property];
4152
+ }
4153
+ }
4154
+ }
4155
+ init(_data) {
4156
+ if (_data) {
4157
+ this.basketId = _data["BasketId"];
4158
+ this.locationName = _data["LocationName"];
4159
+ this.locationPosition = _data["LocationPosition"];
4160
+ }
4161
+ }
4162
+ static fromJS(data) {
4163
+ data = typeof data === 'object' ? data : {};
4164
+ let result = new BasketStatus();
4165
+ result.init(data);
4166
+ return result;
4167
+ }
4168
+ toJSON(data) {
4169
+ data = typeof data === 'object' ? data : {};
4170
+ data["BasketId"] = this.basketId;
4171
+ data["LocationName"] = this.locationName;
4172
+ data["LocationPosition"] = this.locationPosition;
4173
+ return data;
4174
+ }
4175
+ }
4114
4176
  export class EditMaterialInLogEvents {
4115
4177
  constructor(data) {
4116
4178
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedtactics/insight-client",
3
- "version": "16.5.0",
3
+ "version": "16.5.2",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "repository": {
@@ -26,9 +26,9 @@
26
26
  "@dnd-kit/sortable": "^10.0.0",
27
27
  "@emotion/react": "^11.14.0",
28
28
  "@emotion/styled": "^11.14.1",
29
- "@fontsource/roboto": "^5.2.9",
30
- "@mui/icons-material": "^7.3.7",
31
- "@mui/material": "^7.3.7",
29
+ "@fontsource/roboto": "^5.2.10",
30
+ "@mui/icons-material": "^7.3.9",
31
+ "@mui/material": "^7.3.9",
32
32
  "@react-spring/rafz": "^10.0.3",
33
33
  "@react-spring/web": "^10.0.3",
34
34
  "@seedtactics/immutable-collections": "^1.1.1",
@@ -41,42 +41,42 @@
41
41
  "date-fns": "^4.1.0",
42
42
  "highlight.js": "^11.11.1",
43
43
  "jdenticon": "^3.3.0",
44
- "jotai": "^2.17.0",
44
+ "jotai": "^2.19.0",
45
45
  "jotai-family": "^1.0.1",
46
46
  "jsbarcode": "^3.12.3",
47
- "oidc-client-ts": "^3.4.1",
47
+ "oidc-client-ts": "^3.5.0",
48
48
  "react": "^19.2.4",
49
49
  "react-calendar": "^6.0.0",
50
50
  "react-dom": "^19.2.4",
51
- "react-error-boundary": "^6.1.0",
51
+ "react-error-boundary": "^6.1.1",
52
52
  "react-resize-detector": "^12.3.0",
53
53
  "react-timeago": "^8.3.0",
54
- "react-to-print": "^3.2.0",
54
+ "react-to-print": "^3.3.0",
55
55
  "urlpattern-polyfill": "^10.1.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@eslint/js": "^9.39.2",
59
- "@faker-js/faker": "^10.2.0",
58
+ "@eslint/js": "^10.0.1",
59
+ "@faker-js/faker": "^10.4.0",
60
60
  "@types/d3-interpolate-path": "^2.0.3",
61
61
  "@types/d3-sankey": "^0.12.5",
62
62
  "@types/d3-scale": "^4.0.9",
63
63
  "@types/d3-shape": "^3.1.8",
64
- "@types/node": "^25.1.0",
65
- "@types/react": "^19.2.10",
64
+ "@types/node": "^25.5.0",
65
+ "@types/react": "^19.2.14",
66
66
  "@types/react-dom": "^19.2.3",
67
- "@vitejs/plugin-react": "^5.1.2",
68
- "eslint": "^9.39.2",
67
+ "@vitejs/plugin-react": "^6.0.1",
68
+ "eslint": "^10.1.0",
69
69
  "eslint-config-prettier": "^10.1.8",
70
70
  "eslint-plugin-react": "^7.37.5",
71
71
  "eslint-plugin-react-hooks": "^7.0.1",
72
- "eslint-plugin-react-refresh": "^0.4.26",
73
- "jsdom": "^27.4.0",
72
+ "eslint-plugin-react-refresh": "^0.5.2",
73
+ "jsdom": "^29.0.1",
74
74
  "nswag": "^14.6.3",
75
75
  "prettier": "^3.8.1",
76
- "typescript": "^5.9.3",
77
- "typescript-eslint": "^8.54.0",
78
- "vite": "^7.3.1",
79
- "vitest": "^4.0.18"
76
+ "typescript": "^6.0.2",
77
+ "typescript-eslint": "^8.58.0",
78
+ "vite": "^8.0.3",
79
+ "vitest": "^4.1.2"
80
80
  },
81
81
  "scripts": {
82
82
  "build": "tsc --noEmit --skipLibCheck && vite build",
@@ -1,3 +0,0 @@
1
- (function(){"use strict";function $e(S){return S&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S}var ce,_e;function We(){if(_e)return ce;_e=1;function S(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],u=typeof i;(u==="object"||u==="function")&&!Object.isFrozen(i)&&S(i)}),e}class A{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Y(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function x(e,...t){const i=Object.create(null);for(const u in e)i[u]=e[u];return t.forEach(function(u){for(const b in u)i[b]=u[b]}),i}const B="</span>",U=e=>!!e.scope,Z=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class m{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=Y(t)}openNode(t){if(!U(t))return;const i=Z(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){U(t)&&(this.buffer+=B)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const F=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class G{constructor(){this.rootNode=F(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=F({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(u=>this._walk(t,u)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{G._collapse(i)}))}}class J extends G{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const u=t.root;i&&(u.scope=`language:${i}`),this.add(u)}toHTML(){return new m(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function L(e){return e?typeof e=="string"?e:e.source:null}function Q(e){return T("(?=",e,")")}function K(e){return T("(?:",e,")*")}function oe(e){return T("(?:",e,")?")}function T(...e){return e.map(i=>L(i)).join("")}function Xe(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ae(...e){return"("+(Xe(e).capture?"":"?:")+e.map(u=>L(u)).join("|")+")"}function Oe(e){return new RegExp(e.toString()+"|").exec("").length-1}function ze(e,t){const i=e&&e.exec(t);return i&&i.index===0}const Ye=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function le(e,{joinWith:t}){let i=0;return e.map(u=>{i+=1;const b=i;let _=L(u),c="";for(;_.length>0;){const r=Ye.exec(_);if(!r){c+=_;break}c+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?c+="\\"+String(Number(r[1])+b):(c+=r[0],r[0]==="("&&i++)}return c}).map(u=>`(${u})`).join(t)}const Ze=/\b\B/,Re="[a-zA-Z]\\w*",ue="[a-zA-Z_]\\w*",Se="\\b\\d+(\\.\\d+)?",Ne="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",we="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Je=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=T(t,/.*\b/,e.binary,/\b.*/)),x({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,u)=>{i.index!==0&&u.ignoreMatch()}},e)},X={begin:"\\\\[\\s\\S]",relevance:0},Qe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[X]},Ve={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[X]},qe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},V=function(e,t,i={}){const u=x({scope:"comment",begin:e,end:t,contains:[]},i);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=ae("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:T(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},et=V("//","$"),tt=V("/\\*","\\*/"),nt=V("#","$"),it={scope:"number",begin:Se,relevance:0},st={scope:"number",begin:Ne,relevance:0},rt={scope:"number",begin:we,relevance:0},ct={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[X,{begin:/\[/,end:/\]/,relevance:0,contains:[X]}]},ot={scope:"title",begin:Re,relevance:0},at={scope:"title",begin:ue,relevance:0},lt={begin:"\\.\\s*"+ue,relevance:0};var q=Object.freeze({__proto__:null,APOS_STRING_MODE:Qe,BACKSLASH_ESCAPE:X,BINARY_NUMBER_MODE:rt,BINARY_NUMBER_RE:we,COMMENT:V,C_BLOCK_COMMENT_MODE:tt,C_LINE_COMMENT_MODE:et,C_NUMBER_MODE:st,C_NUMBER_RE:Ne,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:nt,IDENT_RE:Re,MATCH_NOTHING_RE:Ze,METHOD_GUARD:lt,NUMBER_MODE:it,NUMBER_RE:Se,PHRASAL_WORDS_MODE:qe,QUOTE_STRING_MODE:Ve,REGEXP_MODE:ct,RE_STARTERS_RE:me,SHEBANG:Je,TITLE_MODE:ot,UNDERSCORE_IDENT_RE:ue,UNDERSCORE_TITLE_MODE:at});function ut(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function ft(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function gt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ut,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ht(e,t){Array.isArray(e.illegal)&&(e.illegal=ae(...e.illegal))}function dt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function pt(e,t){e.relevance===void 0&&(e.relevance=1)}const Et=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=i.keywords,e.begin=T(i.beforeMatch,Q(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},bt=["of","and","for","in","not","or","if","then","parent","list","value"],_t="keyword";function xe(e,t,i=_t){const u=Object.create(null);return typeof e=="string"?b(i,e.split(" ")):Array.isArray(e)?b(i,e):Object.keys(e).forEach(function(_){Object.assign(u,xe(e[_],t,_))}),u;function b(_,c){t&&(c=c.map(r=>r.toLowerCase())),c.forEach(function(r){const l=r.split("|");u[l[0]]=[_,Mt(l[0],l[1])]})}}function Mt(e,t){return t?Number(t):Ot(e)?0:1}function Ot(e){return bt.includes(e.toLowerCase())}const ye={},H=e=>{console.error(e)},Ae=(e,...t)=>{console.log(`WARN: ${e}`,...t)},$=(e,t)=>{ye[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ye[`${e}/${t}`]=!0)},ee=new Error;function Te(e,t,{key:i}){let u=0;const b=e[i],_={},c={};for(let r=1;r<=t.length;r++)c[r+u]=b[r],_[r+u]=!0,u+=Oe(t[r-1]);e[i]=c,e[i]._emit=_,e[i]._multi=!0}function Rt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw H("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ee;if(typeof e.beginScope!="object"||e.beginScope===null)throw H("beginScope must be object"),ee;Te(e,e.begin,{key:"beginScope"}),e.begin=le(e.begin,{joinWith:""})}}function St(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw H("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ee;if(typeof e.endScope!="object"||e.endScope===null)throw H("endScope must be object"),ee;Te(e,e.end,{key:"endScope"}),e.end=le(e.end,{joinWith:""})}}function Nt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function wt(e){Nt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Rt(e),St(e)}function xt(e){function t(c,r){return new RegExp(L(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=Oe(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(le(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const R=l.findIndex((z,ge)=>ge>0&&z!==void 0),M=this.matchIndexes[R];return l.splice(0,R),Object.assign(l,M)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new i;return this.rules.slice(r).forEach(([R,M])=>l.addRule(R,M)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let R=l.exec(r);if(this.resumingScanAtSamePosition()&&!(R&&R.index===this.lastIndex)){const M=this.getMatcher(0);M.lastIndex=this.lastIndex+1,R=M.exec(r)}return R&&(this.regexIndex+=R.position+1,this.regexIndex===this.count&&this.considerAll()),R}}function b(c){const r=new u;return c.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),c.terminatorEnd&&r.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&r.addRule(c.illegal,{type:"illegal"}),r}function _(c,r){const l=c;if(c.isCompiled)return l;[ft,dt,wt,Et].forEach(M=>M(c,r)),e.compilerExtensions.forEach(M=>M(c,r)),c.__beforeBegin=null,[gt,ht,pt].forEach(M=>M(c,r)),c.isCompiled=!0;let R=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),R=c.keywords.$pattern,delete c.keywords.$pattern),R=R||/\w+/,c.keywords&&(c.keywords=xe(c.keywords,e.case_insensitive)),l.keywordPatternRe=t(R,!0),r&&(c.begin||(c.begin=/\B|\b/),l.beginRe=t(l.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(l.endRe=t(l.end)),l.terminatorEnd=L(l.end)||"",c.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(c.end?"|":"")+r.terminatorEnd)),c.illegal&&(l.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(M){return yt(M==="self"?c:M)})),c.contains.forEach(function(M){_(M,l)}),c.starts&&_(c.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=x(e.classNameAliases||{}),_(e)}function Ie(e){return e?e.endsWithParent||Ie(e.starts):!1}function yt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return x(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ie(e)?x(e,{starts:e.starts?x(e.starts):null}):Object.isFrozen(e)?x(e):e}var At="11.11.1";class Tt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const fe=Y,ke=x,De=Symbol("nomatch"),It=7,Ce=function(e){const t=Object.create(null),i=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:J};function l(n){return r.noHighlightRe.test(n)}function R(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const p=v(h[1]);return p||(Ae(_.replace("{}",h[1])),Ae("Falling back to no-highlight mode for this block.",n)),p?h[1]:"no-highlight"}return a.split(/\s+/).find(p=>l(p)||v(p))}function M(n,a,h){let p="",O="";typeof a=="object"?(p=n,h=a.ignoreIllegals,O=a.language):($("10.7.0","highlight(lang, code, ...args) has been deprecated."),$("10.7.0",`Please use highlight(code, options) instead.
2
- https://github.com/highlightjs/highlight.js/issues/2277`),O=n,p=a),h===void 0&&(h=!0);const I={code:p,language:O};ne("before:highlight",I);const P=I.result?I.result:z(I.language,I.code,h);return P.code=I.code,ne("after:highlight",P),P}function z(n,a,h,p){const O=Object.create(null);function I(s,o){return s.keywords[o]}function P(){if(!f.keywords){N.addText(E);return}let s=0;f.keywordPatternRe.lastIndex=0;let o=f.keywordPatternRe.exec(E),g="";for(;o;){g+=E.substring(s,o.index);const d=D.case_insensitive?o[0].toLowerCase():o[0],w=I(f,d);if(w){const[C,zt]=w;if(N.addText(g),g="",O[d]=(O[d]||0)+1,O[d]<=It&&(re+=zt),C.startsWith("_"))g+=o[0];else{const Yt=D.classNameAliases[C]||C;k(o[0],Yt)}}else g+=o[0];s=f.keywordPatternRe.lastIndex,o=f.keywordPatternRe.exec(E)}g+=E.substring(s),N.addText(g)}function ie(){if(E==="")return;let s=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){N.addText(E);return}s=z(f.subLanguage,E,!0,Ge[f.subLanguage]),Ge[f.subLanguage]=s._top}else s=he(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(re+=s.relevance),N.__addSublanguage(s._emitter,s.language)}function y(){f.subLanguage!=null?ie():P(),E=""}function k(s,o){s!==""&&(N.startScope(o),N.addText(s),N.endScope())}function Pe(s,o){let g=1;const d=o.length-1;for(;g<=d;){if(!s._emit[g]){g++;continue}const w=D.classNameAliases[s[g]]||s[g],C=o[g];w?k(C,w):(E=C,P(),E=""),g++}}function Ue(s,o){return s.scope&&typeof s.scope=="string"&&N.openNode(D.classNameAliases[s.scope]||s.scope),s.beginScope&&(s.beginScope._wrap?(k(E,D.classNameAliases[s.beginScope._wrap]||s.beginScope._wrap),E=""):s.beginScope._multi&&(Pe(s.beginScope,o),E="")),f=Object.create(s,{parent:{value:f}}),f}function He(s,o,g){let d=ze(s.endRe,g);if(d){if(s["on:end"]){const w=new A(s);s["on:end"](o,w),w.isMatchIgnored&&(d=!1)}if(d){for(;s.endsParent&&s.parent;)s=s.parent;return s}}if(s.endsWithParent)return He(s.parent,o,g)}function $t(s){return f.matcher.regexIndex===0?(E+=s[0],1):(be=!0,0)}function Wt(s){const o=s[0],g=s.rule,d=new A(g),w=[g.__beforeBegin,g["on:begin"]];for(const C of w)if(C&&(C(s,d),d.isMatchIgnored))return $t(o);return g.skip?E+=o:(g.excludeBegin&&(E+=o),y(),!g.returnBegin&&!g.excludeBegin&&(E=o)),Ue(g,s),g.returnBegin?0:o.length}function Ft(s){const o=s[0],g=a.substring(s.index),d=He(f,s,g);if(!d)return De;const w=f;f.endScope&&f.endScope._wrap?(y(),k(o,f.endScope._wrap)):f.endScope&&f.endScope._multi?(y(),Pe(f.endScope,s)):w.skip?E+=o:(w.returnEnd||w.excludeEnd||(E+=o),y(),w.excludeEnd&&(E=o));do f.scope&&N.closeNode(),!f.skip&&!f.subLanguage&&(re+=f.relevance),f=f.parent;while(f!==d.parent);return d.starts&&Ue(d.starts,s),w.returnEnd?0:o.length}function Kt(){const s=[];for(let o=f;o!==D;o=o.parent)o.scope&&s.unshift(o.scope);s.forEach(o=>N.openNode(o))}let se={};function je(s,o){const g=o&&o[0];if(E+=s,g==null)return y(),0;if(se.type==="begin"&&o.type==="end"&&se.index===o.index&&g===""){if(E+=a.slice(o.index,o.index+1),!b){const d=new Error(`0 width match regex (${n})`);throw d.languageName=n,d.badRule=se.rule,d}return 1}if(se=o,o.type==="begin")return Wt(o);if(o.type==="illegal"&&!h){const d=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"<unnamed>")+'"');throw d.mode=f,d}else if(o.type==="end"){const d=Ft(o);if(d!==De)return d}if(o.type==="illegal"&&g==="")return E+=`
3
- `,1;if(Ee>1e5&&Ee>o.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const D=v(n);if(!D)throw H(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const Xt=xt(D);let pe="",f=p||Xt;const Ge={},N=new r.__emitter(r);Kt();let E="",re=0,j=0,Ee=0,be=!1;try{if(D.__emitTokens)D.__emitTokens(a,N);else{for(f.matcher.considerAll();;){Ee++,be?be=!1:f.matcher.considerAll(),f.matcher.lastIndex=j;const s=f.matcher.exec(a);if(!s)break;const o=a.substring(j,s.index),g=je(o,s);j=s.index+g}je(a.substring(j))}return N.finalize(),pe=N.toHTML(),{language:n,value:pe,relevance:re,illegal:!1,_emitter:N,_top:f}}catch(s){if(s.message&&s.message.includes("Illegal"))return{language:n,value:fe(a),illegal:!0,relevance:0,_illegalBy:{message:s.message,index:j,context:a.slice(j-100,j+100),mode:s.mode,resultSoFar:pe},_emitter:N};if(b)return{language:n,value:fe(a),illegal:!1,relevance:0,errorRaised:s,_emitter:N,_top:f};throw s}}function ge(n){const a={value:fe(n),illegal:!1,relevance:0,_top:c,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function he(n,a){a=a||r.languages||Object.keys(t);const h=ge(n),p=a.filter(v).filter(ve).map(y=>z(y,n,!1));p.unshift(h);const O=p.sort((y,k)=>{if(y.relevance!==k.relevance)return k.relevance-y.relevance;if(y.language&&k.language){if(v(y.language).supersetOf===k.language)return 1;if(v(k.language).supersetOf===y.language)return-1}return 0}),[I,P]=O,ie=I;return ie.secondBest=P,ie}function kt(n,a,h){const p=a&&i[a]||h;n.classList.add("hljs"),n.classList.add(`language-${p}`)}function de(n){let a=null;const h=R(n);if(l(h))return;if(ne("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new Tt("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const p=a.textContent,O=h?M(p,{language:h,ignoreIllegals:!0}):he(p);n.innerHTML=O.value,n.dataset.highlighted="yes",kt(n,h,O.language),n.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(n.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),ne("after:highlightElement",{el:n,result:O,text:p})}function Dt(n){r=ke(r,n)}const Ct=()=>{te(),$("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Bt(){te(),$("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Be=!1;function te(){function n(){te()}if(document.readyState==="loading"){Be||window.addEventListener("DOMContentLoaded",n,!1),Be=!0;return}document.querySelectorAll(r.cssSelector).forEach(de)}function Lt(n,a){let h=null;try{h=a(e)}catch(p){if(H("Language definition for '{}' could not be registered.".replace("{}",n)),b)H(p);else throw p;h=c}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&Le(h.aliases,{languageName:n})}function vt(n){delete t[n];for(const a of Object.keys(i))i[a]===n&&delete i[a]}function Pt(){return Object.keys(t)}function v(n){return n=(n||"").toLowerCase(),t[n]||t[i[n]]}function Le(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{i[h.toLowerCase()]=a})}function ve(n){const a=v(n);return a&&!a.disableAutodetect}function Ut(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function Ht(n){Ut(n),u.push(n)}function jt(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function ne(n,a){const h=n;u.forEach(function(p){p[h]&&p[h](a)})}function Gt(n){return $("10.7.0","highlightBlock will be removed entirely in v12.0"),$("10.7.0","Please use highlightElement now."),de(n)}Object.assign(e,{highlight:M,highlightAuto:he,highlightAll:te,highlightElement:de,highlightBlock:Gt,configure:Dt,initHighlighting:Ct,initHighlightingOnLoad:Bt,registerLanguage:Lt,unregisterLanguage:vt,listLanguages:Pt,getLanguage:v,registerAliases:Le,autoDetection:ve,inherit:ke,addPlugin:Ht,removePlugin:jt}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=At,e.regex={concat:T,lookahead:Q,either:ae,optional:oe,anyNumberOfTimes:K};for(const n in q)typeof q[n]=="object"&&S(q[n]);return Object.assign(e,q),e},W=Ce({});return W.newInstance=()=>Ce({}),ce=W,W.HighlightJS=W,W.default=W,ce}var Fe=We(),Me=$e(Fe);function Ke(S){const A=S.regex,Y={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},x=/\b/;function B(K,oe){if(K.index===0)return;const T=K.input[K.index-1];T>="0"&&T<="9"||T!=="_"&&oe.ignoreMatch()}const U=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,Z=/[GM]\s*\d+(\.\d+)?/,m=/T\s*\d+/,F=/O\s*\d+/,G=/O<.+>/,J=/[ABCUVWXYZ]\s*/,L=/[FHIJKPQRS]\s*/,Q=[S.COMMENT(/\(/,/\)/),S.COMMENT(/;/,/$/),S.APOS_STRING_MODE,S.QUOTE_STRING_MODE,S.C_NUMBER_MODE,{scope:"title.function",variants:[{match:A.concat(x,Z)},{begin:Z,"on:begin":B},{match:A.concat(x,m)},{begin:m,"on:begin":B}]},{scope:"symbol",variants:[{match:A.concat(x,F)},{begin:F,"on:begin":B},{match:A.concat(x,G)},{begin:G,"on:begin":B},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:A.concat(x,J,U)},{begin:A.concat(J,U),"on:begin":B}]},{scope:"params",variants:[{match:A.concat(x,L,U)},{begin:A.concat(L,U),"on:begin":B}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:Y,contains:Q}}Me.registerLanguage("gcode",Ke),self.onmessage=function(S){self.postMessage(Me.highlight(S.data,{language:"gcode"}).value)}})();