apiuikit 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +1 -0
  2. package/dist/CodeSamples-CXtSA6EK.js +4298 -0
  3. package/dist/CodeSamples-D7dq1xEM.cjs +50 -0
  4. package/dist/apiuikit.cjs.js +1 -1
  5. package/dist/apiuikit.css +1 -1
  6. package/dist/apiuikit.es.js +31 -22
  7. package/dist/components/ErrorBoundary.d.ts +26 -0
  8. package/dist/config/config.d.ts +48 -0
  9. package/dist/containers/AsyncAPI/AsyncAPI.d.ts +6 -0
  10. package/dist/containers/AsyncAPI/AsyncAPIRenderer.d.ts +7 -1
  11. package/dist/containers/OpenAPI/OpenAPI.d.ts +6 -0
  12. package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +7 -1
  13. package/dist/contexts/useSpec.d.ts +3 -0
  14. package/dist/helpers/codeSamples.d.ts +6 -2
  15. package/dist/helpers/jsonPointer.d.ts +5 -0
  16. package/dist/helpers/llmsTxt.d.ts +51 -0
  17. package/dist/helpers/specAdapters.d.ts +32 -0
  18. package/dist/helpers/toMarkdown.d.ts +5 -6
  19. package/dist/hooks/useDocumentProviderValue.d.ts +3 -1
  20. package/dist/index-BJ0X8yP3.cjs +133 -0
  21. package/dist/{index-CFqT-0u9.js → index-BMRPdMaB.js} +1 -1
  22. package/dist/{index-QHokKPe8.cjs → index-BoAORjov.cjs} +1 -1
  23. package/dist/{index-CkQBQKmb.cjs → index-CZjVUeK4.cjs} +1 -1
  24. package/dist/index-DCDYBZcY.js +1461 -0
  25. package/dist/index-DwzxTmOd.js +13614 -0
  26. package/dist/index-d8kJa7YD.cjs +4 -0
  27. package/dist/{index-xz-kuNHf.js → index-ib-tk7y5.js} +1 -1
  28. package/dist/index.d.ts +6 -1
  29. package/dist/markdown-assets/protoToJsonSchema-CBPWaboT.js +6193 -0
  30. package/dist/markdown-assets/protoToJsonSchema-CgkcluFJ.js +83 -0
  31. package/dist/markdown.cjs +91 -0
  32. package/dist/markdown.d.ts +8 -0
  33. package/dist/markdown.es.js +2101 -0
  34. package/dist/{protoToJsonSchema-dSLrBGlF.js → protoToJsonSchema-Btyc_WLL.js} +112 -108
  35. package/dist/{protoToJsonSchema-ScIUJOSl.cjs → protoToJsonSchema-wxazjeYy.cjs} +10 -10
  36. package/dist/{protobufSchemaParser-DE3p5F51.js → protobufSchemaParser-9KjS7p8W.js} +2 -2
  37. package/dist/{protobufSchemaParser-Bd0cGKWk.cjs → protobufSchemaParser-G1NujZ28.cjs} +1 -1
  38. package/dist/shims/utilInspect.d.ts +2 -0
  39. package/package.json +9 -4
  40. package/dist/components/Navigation/tests/spineTicks.test.d.ts +0 -1
  41. package/dist/components/schema/tests/SchemaTab.test.d.ts +0 -1
  42. package/dist/components/schema/tests/schemaUtils.test.d.ts +0 -1
  43. package/dist/components/tests/Authorization.test.d.ts +0 -1
  44. package/dist/components/tests/Bindings.test.d.ts +0 -1
  45. package/dist/components/tests/ChannelAddress.test.d.ts +0 -1
  46. package/dist/components/tests/CodeBlock.test.d.ts +0 -1
  47. package/dist/components/tests/CodeSamples.test.d.ts +0 -1
  48. package/dist/components/tests/CopyMarkdownButton.test.d.ts +0 -1
  49. package/dist/components/tests/MarkdownExportMenu.test.d.ts +0 -1
  50. package/dist/components/tests/RenderExtensions.test.d.ts +0 -1
  51. package/dist/containers/AsyncAPI/tests/AsyncAPI.test.d.ts +0 -1
  52. package/dist/containers/AsyncAPI/tests/AsyncAPIRenderer.test.d.ts +0 -1
  53. package/dist/containers/AsyncAPI/tests/searchHighlight.test.d.ts +0 -1
  54. package/dist/containers/OpenAPI/tests/OpenAPI.test.d.ts +0 -1
  55. package/dist/containers/OpenAPI/tests/OpenAPIRenderer.test.d.ts +0 -1
  56. package/dist/containers/Path/tests/PathOperation.test.d.ts +0 -1
  57. package/dist/containers/Path/tests/Paths.test.d.ts +0 -1
  58. package/dist/helpers/avro/tests/avroToJsonSchema.test.d.ts +0 -1
  59. package/dist/helpers/protobuf/tests/protoToJsonSchema.test.d.ts +0 -1
  60. package/dist/helpers/protobuf/tests/protobufSchemaParser.test.d.ts +0 -1
  61. package/dist/helpers/tests/codeSamples.test.d.ts +0 -1
  62. package/dist/helpers/tests/exampleSchema.test.d.ts +0 -1
  63. package/dist/helpers/tests/openapiSearchIndex.test.d.ts +0 -1
  64. package/dist/helpers/tests/resolveDocument.test.d.ts +0 -1
  65. package/dist/helpers/tests/schemaFormat.test.d.ts +0 -1
  66. package/dist/helpers/tests/toMarkdown.test.d.ts +0 -1
  67. package/dist/index-C9Pyi0cN.cjs +0 -177
  68. package/dist/index-DSOufiFF.js +0 -18957
  69. package/dist/public/tests/sections.test.d.ts +0 -1
  70. package/dist/stories/AsyncAPI.stories.d.ts +0 -14
  71. package/dist/stories/AsyncAPIRenderer.stories.d.ts +0 -17
  72. package/dist/stories/Authorization.stories.d.ts +0 -13
  73. package/dist/stories/Bindings.stories.d.ts +0 -12
  74. package/dist/stories/ChannelAddress.stories.d.ts +0 -13
  75. package/dist/stories/CodeBlock.stories.d.ts +0 -11
  76. package/dist/stories/Examples.stories.d.ts +0 -11
  77. package/dist/stories/Information.stories.d.ts +0 -9
  78. package/dist/stories/Message.stories.d.ts +0 -11
  79. package/dist/stories/Messages.stories.d.ts +0 -11
  80. package/dist/stories/Operation.stories.d.ts +0 -10
  81. package/dist/stories/Operations.stories.d.ts +0 -16
  82. package/dist/stories/SchemaTab.stories.d.ts +0 -12
  83. package/dist/stories/SchemaTree.stories.d.ts +0 -24
  84. package/dist/stories/SearchPanel.stories.d.ts +0 -16
  85. package/dist/stories/Server.stories.d.ts +0 -12
  86. package/dist/stories/TabToggle.stories.d.ts +0 -10
  87. package/dist/stories/Tabs.stories.d.ts +0 -11
  88. package/dist/stories/documentContextDecorator.d.ts +0 -25
  89. package/dist/stories/noCanvasDocsPage.d.ts +0 -9
  90. package/dist/utils/tests/hasRef.test.d.ts +0 -1
  91. package/dist/utils/tests/theme.test.d.ts +0 -1
  92. package/dist/utils/tests/useElementRect.test.d.ts +0 -1
@@ -1,9 +1,9 @@
1
1
  var Yr = Object.defineProperty;
2
2
  var Xr = (a, e, i) => e in a ? Yr(a, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[e] = i;
3
3
  var ve = (a, e, i) => Xr(a, typeof e != "symbol" ? e + "" : e, i);
4
- import { c as Ne, a as Er } from "./index-DSOufiFF.js";
5
- var Ar = { exports: {} }, Tr = { exports: {} }, Rr = {}, Ue = {}, Nr = Kr;
6
- function Kr(a, e) {
4
+ import { c as Ne, a as Kr } from "./index-DwzxTmOd.js";
5
+ var Er = { exports: {} }, Ar = { exports: {} }, Tr = {}, Ue = {}, Rr = Qr;
6
+ function Qr(a, e) {
7
7
  for (var i = new Array(arguments.length - 1), f = 0, s = 2, u = !0; s < arguments.length; )
8
8
  i[f++] = arguments[s++];
9
9
  return new Promise(function(o, r) {
@@ -24,7 +24,7 @@ function Kr(a, e) {
24
24
  }
25
25
  });
26
26
  }
27
- var kr = {};
27
+ var Nr = {};
28
28
  (function(a) {
29
29
  var e = a;
30
30
  e.length = function(o) {
@@ -84,8 +84,8 @@ var kr = {};
84
84
  }, e.test = function(o) {
85
85
  return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(o);
86
86
  };
87
- })(kr);
88
- var Qr = ze;
87
+ })(Nr);
88
+ var ei = ze;
89
89
  function ze() {
90
90
  this._listeners = /* @__PURE__ */ Object.create(null);
91
91
  }
@@ -119,7 +119,7 @@ ze.prototype.emit = function(e) {
119
119
  }
120
120
  return this;
121
121
  };
122
- var ei = Ct(Ct);
122
+ var ti = Ct(Ct);
123
123
  function Ct(a) {
124
124
  return typeof Float32Array < "u" ? (function() {
125
125
  var e = new Float32Array([-0]), i = new Uint8Array(e.buffer), f = i[3] === 128;
@@ -226,7 +226,7 @@ function qt(a, e) {
226
226
  function jt(a, e) {
227
227
  return (a[e] << 24 | a[e + 1] << 16 | a[e + 2] << 8 | a[e + 3]) >>> 0;
228
228
  }
229
- var Ir = {};
229
+ var kr = {};
230
230
  (function(a) {
231
231
  var e = a, i = 65533;
232
232
  e.length = function(s) {
@@ -244,9 +244,9 @@ var Ir = {};
244
244
  r = s.charCodeAt(c), r < 128 ? u[t++] = r : r < 2048 ? (u[t++] = r >> 6 | 192, u[t++] = r & 63 | 128) : (r & 64512) === 55296 && ((n = s.charCodeAt(c + 1)) & 64512) === 56320 ? (r = 65536 + ((r & 1023) << 10) + (n & 1023), ++c, u[t++] = r >> 18 | 240, u[t++] = r >> 12 & 63 | 128, u[t++] = r >> 6 & 63 | 128, u[t++] = r & 63 | 128) : (u[t++] = r >> 12 | 224, u[t++] = r >> 6 & 63 | 128, u[t++] = r & 63 | 128);
245
245
  return t - o;
246
246
  };
247
- })(Ir);
248
- var ti = ri;
249
- function ri(a, e, i) {
247
+ })(kr);
248
+ var ri = ii;
249
+ function ii(a, e, i) {
250
250
  var f = i || 8192, s = f >>> 1, u = null, t = f;
251
251
  return function(r) {
252
252
  if (r < 1 || r > s)
@@ -257,7 +257,7 @@ function ri(a, e, i) {
257
257
  };
258
258
  }
259
259
  var Ze, $t;
260
- function ii() {
260
+ function ni() {
261
261
  if ($t) return Ze;
262
262
  $t = 1, Ze = e;
263
263
  var a = me();
@@ -326,8 +326,8 @@ function ii() {
326
326
  return r === 0 ? o === 0 ? t < 16384 ? t < 128 ? 1 : 2 : t < 2097152 ? 3 : 4 : o < 16384 ? o < 128 ? 5 : 6 : o < 2097152 ? 7 : 8 : r < 128 ? 9 : 10;
327
327
  }, Ze;
328
328
  }
329
- var De = { exports: {} }, ni = De.exports, Ut;
330
- function si() {
329
+ var De = { exports: {} }, si = De.exports, Ut;
330
+ function oi() {
331
331
  return Ut || (Ut = 1, (function(a, e) {
332
332
  (function(i, f) {
333
333
  function s(u) {
@@ -335,7 +335,7 @@ function si() {
335
335
  }
336
336
  f(e), a.exports = s(e);
337
337
  })(
338
- typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : ni,
338
+ typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : si,
339
339
  function(i) {
340
340
  Object.defineProperty(i, "__esModule", {
341
341
  value: !0
@@ -1058,7 +1058,7 @@ var Vt;
1058
1058
  function me() {
1059
1059
  return Vt || (Vt = 1, (function(a) {
1060
1060
  var e = a;
1061
- e.asPromise = Nr, e.base64 = kr, e.EventEmitter = Qr, e.float = ei, e.utf8 = Ir, e.pool = ti, e.LongBits = ii();
1061
+ e.asPromise = Rr, e.base64 = Nr, e.EventEmitter = ei, e.float = ti, e.utf8 = kr, e.pool = ri, e.LongBits = ni();
1062
1062
  function i(u) {
1063
1063
  return u === "__proto__" || u === "prototype" || u === "constructor";
1064
1064
  }
@@ -1101,7 +1101,7 @@ function me() {
1101
1101
  e.global.dcodeIO.Long || /* istanbul ignore next */
1102
1102
  e.global.Long || (function() {
1103
1103
  try {
1104
- var u = si();
1104
+ var u = oi();
1105
1105
  return u && u.isLong ? u : null;
1106
1106
  } catch {
1107
1107
  return null;
@@ -1209,13 +1209,13 @@ function je(a, e, i) {
1209
1209
  }
1210
1210
  function _t() {
1211
1211
  }
1212
- function oi(a) {
1212
+ function ai(a) {
1213
1213
  this.head = a.head, this.tail = a.tail, this.len = a.len, this.next = a.states;
1214
1214
  }
1215
1215
  function j() {
1216
1216
  this.len = 0, this.head = new je(_t, 0, 0), this.tail = this.head, this.states = null;
1217
1217
  }
1218
- var Sr = function() {
1218
+ var Ir = function() {
1219
1219
  return ae.Buffer ? function() {
1220
1220
  return (j.create = function() {
1221
1221
  return new mt();
@@ -1224,7 +1224,7 @@ var Sr = function() {
1224
1224
  return new j();
1225
1225
  };
1226
1226
  };
1227
- j.create = Sr();
1227
+ j.create = Ir();
1228
1228
  j.alloc = function(e) {
1229
1229
  return new ae.Array(e);
1230
1230
  };
@@ -1235,7 +1235,7 @@ j.prototype._push = function(e, i, f) {
1235
1235
  function wt(a, e, i) {
1236
1236
  e[i] = a & 255;
1237
1237
  }
1238
- function ai(a, e, i) {
1238
+ function ui(a, e, i) {
1239
1239
  for (; a > 127; )
1240
1240
  e[i++] = a & 127 | 128, a >>>= 7;
1241
1241
  e[i] = a;
@@ -1244,7 +1244,7 @@ function bt(a, e) {
1244
1244
  this.len = a, this.next = void 0, this.val = e;
1245
1245
  }
1246
1246
  bt.prototype = Object.create(je.prototype);
1247
- bt.prototype.fn = ai;
1247
+ bt.prototype.fn = ui;
1248
1248
  j.prototype.uint32 = function(e) {
1249
1249
  return this.len += (this.tail = this.tail.next = new bt(
1250
1250
  (e = e >>> 0) < 128 ? 1 : e < 16384 ? 2 : e < 2097152 ? 3 : e < 268435456 ? 4 : 5,
@@ -1294,7 +1294,7 @@ j.prototype.float = function(e) {
1294
1294
  j.prototype.double = function(e) {
1295
1295
  return this._push(ae.float.writeDoubleLE, 8, e);
1296
1296
  };
1297
- var ui = ae.Array.prototype.set ? function(e, i, f) {
1297
+ var fi = ae.Array.prototype.set ? function(e, i, f) {
1298
1298
  i.set(e, f);
1299
1299
  } : function(e, i, f) {
1300
1300
  for (var s = 0; s < e.length; ++s)
@@ -1308,14 +1308,14 @@ j.prototype.bytes = function(e) {
1308
1308
  var f = j.alloc(i = Jt.length(e));
1309
1309
  Jt.decode(e, f, 0), e = f;
1310
1310
  }
1311
- return this.uint32(i)._push(ui, i, e);
1311
+ return this.uint32(i)._push(fi, i, e);
1312
1312
  };
1313
1313
  j.prototype.string = function(e) {
1314
1314
  var i = zt.length(e);
1315
1315
  return i ? this.uint32(i)._push(zt.write, i, e) : this._push(wt, 1, 0);
1316
1316
  };
1317
1317
  j.prototype.fork = function() {
1318
- return this.states = new oi(this), this.head = this.tail = new je(_t, 0, 0), this.len = 0, this;
1318
+ return this.states = new ai(this), this.head = this.tail = new je(_t, 0, 0), this.len = 0, this;
1319
1319
  };
1320
1320
  j.prototype.reset = function() {
1321
1321
  return this.states ? (this.head = this.states.head, this.tail = this.states.tail, this.len = this.states.len, this.states = this.states.next) : (this.head = this.tail = new je(_t, 0, 0), this.len = 0), this;
@@ -1330,13 +1330,13 @@ j.prototype.finish = function() {
1330
1330
  return i;
1331
1331
  };
1332
1332
  j._configure = function(a) {
1333
- mt = a, j.create = Sr(), mt._configure();
1333
+ mt = a, j.create = Ir(), mt._configure();
1334
1334
  };
1335
- var fi = pe, Fr = vt;
1336
- (pe.prototype = Object.create(Fr.prototype)).constructor = pe;
1335
+ var li = pe, Sr = vt;
1336
+ (pe.prototype = Object.create(Sr.prototype)).constructor = pe;
1337
1337
  var be = me();
1338
1338
  function pe() {
1339
- Fr.call(this);
1339
+ Sr.call(this);
1340
1340
  }
1341
1341
  pe._configure = function() {
1342
1342
  pe.alloc = be._Buffer_allocUnsafe, pe.writeBytesBuffer = be.Buffer && be.Buffer.prototype instanceof Uint8Array && be.Buffer.prototype.set.name === "set" ? function(e, i, f) {
@@ -1353,15 +1353,15 @@ pe.prototype.bytes = function(e) {
1353
1353
  var i = e.length >>> 0;
1354
1354
  return this.uint32(i), i && this._push(pe.writeBytesBuffer, i, e), this;
1355
1355
  };
1356
- function li(a, e, i) {
1356
+ function ci(a, e, i) {
1357
1357
  a.length < 40 ? be.utf8.write(a, e, i) : e.utf8Write ? e.utf8Write(a, i) : e.write(a, i);
1358
1358
  }
1359
1359
  pe.prototype.string = function(e) {
1360
1360
  var i = be.Buffer.byteLength(e);
1361
- return this.uint32(i), i && this._push(li, i, e), this;
1361
+ return this.uint32(i), i && this._push(ci, i, e), this;
1362
1362
  };
1363
1363
  pe._configure();
1364
- var xt = Z, ue = me(), yt, Lr = ue.LongBits, ci = ue.utf8;
1364
+ var xt = Z, ue = me(), yt, Fr = ue.LongBits, hi = ue.utf8;
1365
1365
  function fe(a, e) {
1366
1366
  return RangeError("index out of range: " + a.pos + " + " + (e || 1) + " > " + a.len);
1367
1367
  }
@@ -1376,14 +1376,14 @@ var Wt = typeof Uint8Array < "u" ? function(e) {
1376
1376
  if (Array.isArray(e))
1377
1377
  return new Z(e);
1378
1378
  throw Error("illegal buffer");
1379
- }, Mr = function() {
1379
+ }, Lr = function() {
1380
1380
  return ue.Buffer ? function(i) {
1381
1381
  return (Z.create = function(s) {
1382
1382
  return ue.Buffer.isBuffer(s) ? new yt(s) : Wt(s);
1383
1383
  })(i);
1384
1384
  } : Wt;
1385
1385
  };
1386
- Z.create = Mr();
1386
+ Z.create = Lr();
1387
1387
  Z.prototype._slice = ue.Array.prototype.subarray || /* istanbul ignore next */
1388
1388
  ue.Array.prototype.slice;
1389
1389
  Z.prototype.uint32 = /* @__PURE__ */ (function() {
@@ -1403,7 +1403,7 @@ Z.prototype.sint32 = function() {
1403
1403
  return e >>> 1 ^ -(e & 1) | 0;
1404
1404
  };
1405
1405
  function Ge() {
1406
- var a = new Lr(0, 0), e = 0;
1406
+ var a = new Fr(0, 0), e = 0;
1407
1407
  if (this.len - this.pos > 4) {
1408
1408
  for (; e < 4; ++e)
1409
1409
  if (a.lo = (a.lo | (this.buf[this.pos] & 127) << e * 7) >>> 0, this.buf[this.pos++] < 128)
@@ -1452,7 +1452,7 @@ Z.prototype.sfixed32 = function() {
1452
1452
  function Ht() {
1453
1453
  if (this.pos + 8 > this.len)
1454
1454
  throw fe(this, 8);
1455
- return new Lr(Je(this.buf, this.pos += 4), Je(this.buf, this.pos += 4));
1455
+ return new Fr(Je(this.buf, this.pos += 4), Je(this.buf, this.pos += 4));
1456
1456
  }
1457
1457
  Z.prototype.float = function() {
1458
1458
  if (this.pos + 4 > this.len)
@@ -1480,7 +1480,7 @@ Z.prototype.bytes = function() {
1480
1480
  };
1481
1481
  Z.prototype.string = function() {
1482
1482
  var e = this.bytes();
1483
- return ci.read(e, 0, e.length);
1483
+ return hi.read(e, 0, e.length);
1484
1484
  };
1485
1485
  Z.prototype.skip = function(e) {
1486
1486
  if (typeof e == "number") {
@@ -1522,7 +1522,7 @@ Z.prototype.skipType = function(a, e) {
1522
1522
  return this;
1523
1523
  };
1524
1524
  Z._configure = function(a) {
1525
- yt = a, Z.create = Mr(), yt._configure();
1525
+ yt = a, Z.create = Lr(), yt._configure();
1526
1526
  var e = ue.Long ? "toLong" : (
1527
1527
  /* istanbul ignore next */
1528
1528
  "toNumber"
@@ -1545,11 +1545,11 @@ Z._configure = function(a) {
1545
1545
  }
1546
1546
  });
1547
1547
  };
1548
- var hi = Ee, Dr = xt;
1549
- (Ee.prototype = Object.create(Dr.prototype)).constructor = Ee;
1548
+ var di = Ee, Mr = xt;
1549
+ (Ee.prototype = Object.create(Mr.prototype)).constructor = Ee;
1550
1550
  var Zt = me();
1551
1551
  function Ee(a) {
1552
- Dr.call(this, a);
1552
+ Mr.call(this, a);
1553
1553
  }
1554
1554
  Ee._configure = function() {
1555
1555
  Zt.Buffer && (Ee.prototype._slice = Zt.Buffer.prototype.slice);
@@ -1559,7 +1559,7 @@ Ee.prototype.string = function() {
1559
1559
  return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + e, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + e, this.len));
1560
1560
  };
1561
1561
  Ee._configure();
1562
- var Et = {}, di = qe, At = me();
1562
+ var Et = {}, pi = qe, At = me();
1563
1563
  (qe.prototype = Object.create(At.EventEmitter.prototype)).constructor = qe;
1564
1564
  function qe(a, e, i) {
1565
1565
  if (typeof a != "function")
@@ -1613,18 +1613,18 @@ qe.prototype.end = function(e) {
1613
1613
  };
1614
1614
  (function(a) {
1615
1615
  var e = a;
1616
- e.Service = di;
1616
+ e.Service = pi;
1617
1617
  })(Et);
1618
- var Cr = /* @__PURE__ */ Object.create(null);
1618
+ var Dr = /* @__PURE__ */ Object.create(null);
1619
1619
  (function(a) {
1620
1620
  var e = a;
1621
- e.build = "minimal", e.Writer = vt, e.BufferWriter = fi, e.Reader = xt, e.BufferReader = hi, e.util = me(), e.rpc = Et, e.roots = Cr, e.configure = i;
1621
+ e.build = "minimal", e.Writer = vt, e.BufferWriter = li, e.Reader = xt, e.BufferReader = di, e.util = me(), e.rpc = Et, e.roots = Dr, e.configure = i;
1622
1622
  function i() {
1623
1623
  e.util._configure(), e.Writer._configure(e.BufferWriter), e.Reader._configure(e.BufferReader);
1624
1624
  }
1625
1625
  i();
1626
- })(Rr);
1627
- var Ye = {}, Xe = { exports: {} }, pi = Tt, mi = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;
1626
+ })(Tr);
1627
+ var Ye = {}, Xe = { exports: {} }, mi = Tt, gi = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;
1628
1628
  function Tt(a, e) {
1629
1629
  typeof a == "string" && (e = a, a = void 0);
1630
1630
  var i = [];
@@ -1659,7 +1659,7 @@ function Tt(a, e) {
1659
1659
  return i.push(u), f;
1660
1660
  }
1661
1661
  function s(u) {
1662
- return "function " + gi(u || e) + "(" + (a && a.join(",") || "") + `){
1662
+ return "function " + yi(u || e) + "(" + (a && a.join(",") || "") + `){
1663
1663
  ` + i.join(`
1664
1664
  `) + `
1665
1665
  }`;
@@ -1667,19 +1667,23 @@ function Tt(a, e) {
1667
1667
  return f.toString = s, f;
1668
1668
  }
1669
1669
  Tt.verbose = !1;
1670
- function gi(a) {
1671
- return !a || (a = String(a).replace(/[^\w$]/g, ""), !a) ? "" : (/^\d/.test(a) && (a = "_" + a), mi.test(a) ? a + "_" : a);
1670
+ function yi(a) {
1671
+ return !a || (a = String(a).replace(/[^\w$]/g, ""), !a) ? "" : (/^\d/.test(a) && (a = "_" + a), gi.test(a) ? a + "_" : a);
1672
1672
  }
1673
+ const vi = {}, _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1674
+ __proto__: null,
1675
+ default: vi
1676
+ }, Symbol.toStringTag, { value: "Module" })), Cr = /* @__PURE__ */ Kr(_i);
1673
1677
  var ke = null;
1674
1678
  try {
1675
- ke = Er, (!ke || !ke.readFile || !ke.readFileSync) && (ke = null);
1679
+ ke = Cr, (!ke || !ke.readFile || !ke.readFileSync) && (ke = null);
1676
1680
  } catch {
1677
1681
  }
1678
- var yi = ke, vi = Ce, _i = Nr, Ke = yi;
1682
+ var wi = ke, bi = Ce, Oi = Rr, Ke = wi;
1679
1683
  function Ce(a, e, i) {
1680
1684
  return typeof e == "function" ? (i = e, e = {}) : e || (e = {}), i ? !e.xhr && Ke && Ke.readFile ? Ke.readFile(a, function(s, u) {
1681
1685
  return s && typeof XMLHttpRequest < "u" ? Ce.xhr(a, e, i) : s ? i(s) : i(null, e.binary ? u : u.toString("utf8"));
1682
- }) : Ce.xhr(a, e, i) : _i(Ce, this, a, e);
1686
+ }) : Ce.xhr(a, e, i) : Oi(Ce, this, a, e);
1683
1687
  }
1684
1688
  Ce.xhr = function(e, i, f) {
1685
1689
  var s = new XMLHttpRequest();
@@ -1737,10 +1741,10 @@ var Pr = {};
1737
1741
  })(Pr);
1738
1742
  var Ie = null;
1739
1743
  try {
1740
- Ie = Er, (!Ie || !Ie.readFile || !Ie.readFileSync) && (Ie = null);
1744
+ Ie = Cr, (!Ie || !Ie.readFile || !Ie.readFileSync) && (Ie = null);
1741
1745
  } catch {
1742
1746
  }
1743
- var wi = Ie, Qe, Gt;
1747
+ var xi = Ie, Qe, Gt;
1744
1748
  function $e() {
1745
1749
  if (Gt) return Qe;
1746
1750
  Gt = 1, Qe = r;
@@ -2083,7 +2087,7 @@ function kt() {
2083
2087
  return c;
2084
2088
  }, rt;
2085
2089
  }
2086
- var It = ge, bi = me();
2090
+ var It = ge, Ei = me();
2087
2091
  function ge(a) {
2088
2092
  if (a)
2089
2093
  for (var e = Object.keys(a), i = 0; i < e.length; ++i) {
@@ -2116,7 +2120,7 @@ ge.toObject = function(e, i) {
2116
2120
  return this.$type.toObject(e, i);
2117
2121
  };
2118
2122
  ge.prototype.toJSON = function() {
2119
- return this.$type.toObject(this, bi.toJSONOptions);
2123
+ return this.$type.toObject(this, Ei.toJSONOptions);
2120
2124
  };
2121
2125
  var it, Qt;
2122
2126
  function qr() {
@@ -2830,10 +2834,10 @@ var nr;
2830
2834
  function re() {
2831
2835
  if (nr) return Xe.exports;
2832
2836
  nr = 1;
2833
- var a = Xe.exports = me(), e = Cr, i, f;
2834
- a.codegen = pi, a.fetch = vi, a.path = Br, a.patterns = Pr;
2837
+ var a = Xe.exports = me(), e = Dr, i, f;
2838
+ a.codegen = mi, a.fetch = bi, a.path = Br, a.patterns = Pr;
2835
2839
  var s = a.patterns.reservedRe;
2836
- a.fs = wi, a.checkDepth = function(r) {
2840
+ a.fs = xi, a.checkDepth = function(r) {
2837
2841
  if (r === void 0 && (r = 0), r > a.recursionLimit)
2838
2842
  throw Error("max depth exceeded");
2839
2843
  return r;
@@ -3462,16 +3466,16 @@ function Ur() {
3462
3466
  }
3463
3467
  return ht;
3464
3468
  }
3465
- var P = Tr.exports = Rr;
3469
+ var P = Ar.exports = Tr;
3466
3470
  P.build = "light";
3467
- function Oi(a, e, i) {
3471
+ function Ai(a, e, i) {
3468
3472
  return typeof e == "function" ? (i = e, e = new P.Root()) : e || (e = new P.Root()), e.load(a, i);
3469
3473
  }
3470
- P.load = Oi;
3471
- function xi(a, e) {
3474
+ P.load = Ai;
3475
+ function Ti(a, e) {
3472
3476
  return e || (e = new P.Root()), e.loadSync(a);
3473
3477
  }
3474
- P.loadSync = xi;
3478
+ P.loadSync = Ti;
3475
3479
  P.encoder = Ur();
3476
3480
  P.decoder = qr();
3477
3481
  P.verifier = jr();
@@ -3494,7 +3498,7 @@ P.ReflectionObject._configure(P.Root);
3494
3498
  P.Namespace._configure(P.Type, P.Service, P.Enum);
3495
3499
  P.Root._configure(P.Type);
3496
3500
  P.Field._configure(P.Type);
3497
- var Ei = Tr.exports, Vr = zr, dt = /[\s{}=;:[\],'"()<>]/g, Ai = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, Ti = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g, Ri = /^ *[*/]+ */, Ni = /^\s*\*?\/*/, ki = /\n/g, Ii = /\s/, Si = /\\(.?)/g, Fi = {
3501
+ var Ri = Ar.exports, Vr = zr, dt = /[\s{}=;:[\],'"()<>]/g, Ni = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, ki = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g, Ii = /^ *[*/]+ */, Si = /^\s*\*?\/*/, Fi = /\n/g, Li = /\s/, Mi = /\\(.?)/g, Di = {
3498
3502
  0: "\0",
3499
3503
  r: "\r",
3500
3504
  n: `
@@ -3502,13 +3506,13 @@ var Ei = Tr.exports, Vr = zr, dt = /[\s{}=;:[\],'"()<>]/g, Ai = /(?:"([^"\\]*(?:
3502
3506
  t: " "
3503
3507
  };
3504
3508
  function Jr(a) {
3505
- return a.replace(Si, function(e, i) {
3509
+ return a.replace(Mi, function(e, i) {
3506
3510
  switch (i) {
3507
3511
  case "\\":
3508
3512
  case "":
3509
3513
  return i;
3510
3514
  default:
3511
- return Fi[i] || "";
3515
+ return Di[i] || "";
3512
3516
  }
3513
3517
  });
3514
3518
  }
@@ -3520,7 +3524,7 @@ function zr(a, e) {
3520
3524
  return Error("illegal " + v + " (line " + s + ")");
3521
3525
  }
3522
3526
  function c() {
3523
- var v = r === "'" ? Ti : Ai;
3527
+ var v = r === "'" ? ki : Ni;
3524
3528
  v.lastIndex = i - 1;
3525
3529
  var N = v.exec(a);
3526
3530
  if (!N)
@@ -3545,8 +3549,8 @@ function zr(a, e) {
3545
3549
  break;
3546
3550
  }
3547
3551
  while (q === " " || q === " ");
3548
- for (var $ = a.substring(v, N).split(ki), B = 0; B < $.length; ++B)
3549
- $[B] = $[B].replace(e ? Ni : Ri, "").trim();
3552
+ for (var $ = a.substring(v, N).split(Fi), B = 0; B < $.length; ++B)
3553
+ $[B] = $[B].replace(e ? Si : Ii, "").trim();
3550
3554
  L.text = $.join(`
3551
3555
  `).trim(), t[s] = L, u = s;
3552
3556
  }
@@ -3569,7 +3573,7 @@ function zr(a, e) {
3569
3573
  do {
3570
3574
  if (i === f)
3571
3575
  return null;
3572
- for (v = !1; Ii.test(k = l(i)); )
3576
+ for (v = !1; Li.test(k = l(i)); )
3573
3577
  if (k === `
3574
3578
  ` && (M = !0, ++s), ++i === f)
3575
3579
  return null;
@@ -3652,13 +3656,13 @@ function zr(a, e) {
3652
3656
  }
3653
3657
  });
3654
3658
  }
3655
- var Li = we;
3659
+ var Ci = we;
3656
3660
  we.filename = null;
3657
3661
  we.defaults = { keepCase: !1 };
3658
- var Mi = Vr, cr = Lt(), hr = Ft(), dr = Ae(), Di = Rt(), pr = Me(), Ci = ye(), Bi = kt(), Pi = Nt(), qi = Te(), ji = Le(), _e = re(), $i = /^[1-9][0-9]*$/, Ui = /^-?[1-9][0-9]*$/, Vi = /^0[x][0-9a-fA-F]+$/, Ji = /^-?0[x][0-9a-fA-F]+$/, zi = /^0[0-7]+$/, Wi = /^-?0[0-7]+$/, Hi = _e.patterns.numberRe, he = /^[a-zA-Z_][a-zA-Z_0-9]*$/, de = _e.patterns.typeRefRe;
3662
+ var Bi = Vr, cr = Lt(), hr = Ft(), dr = Ae(), Pi = Rt(), pr = Me(), qi = ye(), ji = kt(), $i = Nt(), Ui = Te(), Vi = Le(), _e = re(), Ji = /^[1-9][0-9]*$/, zi = /^-?[1-9][0-9]*$/, Wi = /^0[x][0-9a-fA-F]+$/, Hi = /^-?0[x][0-9a-fA-F]+$/, Zi = /^0[0-7]+$/, Gi = /^-?0[0-7]+$/, Yi = _e.patterns.numberRe, he = /^[a-zA-Z_][a-zA-Z_0-9]*$/, de = _e.patterns.typeRefRe;
3659
3663
  function we(a, e, i) {
3660
3664
  e instanceof cr || (i = e, e = new cr()), i || (i = we.defaults);
3661
- var f = i.preferTrailingComment || !1, s = Mi(a, i.alternateCommentMode || !1), u = s.next, t = s.push, o = s.peek, r = s.skip, n = s.cmnt, c = !0, l, d, p, m = "proto2", g = e, I = [], R = {}, y = i.keepCase ? function(b) {
3665
+ var f = i.preferTrailingComment || !1, s = Bi(a, i.alternateCommentMode || !1), u = s.next, t = s.push, o = s.peek, r = s.skip, n = s.cmnt, c = !0, l, d, p, m = "proto2", g = e, I = [], R = {}, y = i.keepCase ? function(b) {
3662
3666
  return b;
3663
3667
  } : _e.camelCase;
3664
3668
  function E() {
@@ -3754,13 +3758,13 @@ function we(a, e, i) {
3754
3758
  case "0":
3755
3759
  return 0;
3756
3760
  }
3757
- if ($i.test(b))
3761
+ if (Ji.test(b))
3758
3762
  return x * parseInt(b, 10);
3759
- if (Vi.test(b))
3763
+ if (Wi.test(b))
3760
3764
  return x * parseInt(b, 16);
3761
- if (zi.test(b))
3765
+ if (Zi.test(b))
3762
3766
  return x * parseInt(b, 8);
3763
- if (Hi.test(b))
3767
+ if (Yi.test(b))
3764
3768
  return x * parseFloat(b);
3765
3769
  throw v(b, "number", w);
3766
3770
  }
@@ -3775,11 +3779,11 @@ function we(a, e, i) {
3775
3779
  }
3776
3780
  if (!w && b.charAt(0) === "-")
3777
3781
  throw v(b, "id");
3778
- if (Ui.test(b))
3782
+ if (zi.test(b))
3779
3783
  return parseInt(b, 10);
3780
- if (Ji.test(b))
3784
+ if (Hi.test(b))
3781
3785
  return parseInt(b, 16);
3782
- if (Wi.test(b))
3786
+ if (Gi.test(b))
3783
3787
  return parseInt(b, 8);
3784
3788
  throw v(b, "id");
3785
3789
  }
@@ -3956,7 +3960,7 @@ function we(a, e, i) {
3956
3960
  function V(b) {
3957
3961
  r("<");
3958
3962
  var w = u();
3959
- if (ji.mapKey[w] === void 0)
3963
+ if (Vi.mapKey[w] === void 0)
3960
3964
  throw v(w, "type");
3961
3965
  r(",");
3962
3966
  var x = u();
@@ -3967,7 +3971,7 @@ function we(a, e, i) {
3967
3971
  if (!he.test(A))
3968
3972
  throw v(A, "name");
3969
3973
  r("=");
3970
- var F = new Di(y(A), M(u()), w, x);
3974
+ var F = new Pi(y(A), M(u()), w, x);
3971
3975
  h(F, function(C) {
3972
3976
  if (C === "option")
3973
3977
  U(F, C), r(";");
@@ -3988,7 +3992,7 @@ function we(a, e, i) {
3988
3992
  function Q(b, w) {
3989
3993
  if (!he.test(w = u()))
3990
3994
  throw v(w, "name");
3991
- var x = new Ci(w);
3995
+ var x = new qi(w);
3992
3996
  h(x, function(F) {
3993
3997
  switch (F) {
3994
3998
  case "option":
@@ -4012,7 +4016,7 @@ function we(a, e, i) {
4012
4016
  A.getOption = function(F) {
4013
4017
  return this.options[F];
4014
4018
  }, A.setOption = function(F, S) {
4015
- qi.prototype.setOption.call(A, F, S);
4019
+ Ui.prototype.setOption.call(A, F, S);
4016
4020
  }, A.setParsedOption = function() {
4017
4021
  }, h(A, function(S) {
4018
4022
  if (S === "option")
@@ -4101,7 +4105,7 @@ function we(a, e, i) {
4101
4105
  throw Error("max depth exceeded");
4102
4106
  if (!he.test(w = u()))
4103
4107
  throw v(w, "service name");
4104
- var A = new Bi(w);
4108
+ var A = new ji(w);
4105
4109
  h(A, function(S) {
4106
4110
  if (!_(A, S, x))
4107
4111
  if (S === "rpc")
@@ -4118,7 +4122,7 @@ function we(a, e, i) {
4118
4122
  if (r("("), r("stream", !0) && (C = !0), !de.test(w = u()) || (S = w, r(")"), r("returns"), r("("), r("stream", !0) && (ce = !0), !de.test(w = u())))
4119
4123
  throw v(w);
4120
4124
  X = w, r(")");
4121
- var ne = new Pi(F, A, S, X, C, ce);
4125
+ var ne = new $i(F, A, S, X, C, ce);
4122
4126
  ne.comment = x, h(ne, function(He) {
4123
4127
  if (He === "option")
4124
4128
  U(ne, He), r(";");
@@ -4186,9 +4190,9 @@ function we(a, e, i) {
4186
4190
  root: e
4187
4191
  };
4188
4192
  }
4189
- var Zi = le, Gi = /\/|\./;
4193
+ var Xi = le, Ki = /\/|\./;
4190
4194
  function le(a, e) {
4191
- Gi.test(a) || (a = "google/protobuf/" + a + ".proto", e = { nested: { google: { nested: { protobuf: { nested: e } } } } }), le[a] = e;
4195
+ Ki.test(a) || (a = "google/protobuf/" + a + ".proto", e = { nested: { google: { nested: { protobuf: { nested: e } } } } }), le[a] = e;
4192
4196
  }
4193
4197
  le("any", {
4194
4198
  /**
@@ -4506,13 +4510,13 @@ le("field_mask", {
4506
4510
  le.get = function(e) {
4507
4511
  return le[e] || null;
4508
4512
  };
4509
- var Oe = Ar.exports = Ei;
4513
+ var Oe = Er.exports = Ri;
4510
4514
  Oe.build = "full";
4511
4515
  Oe.tokenize = Vr;
4512
- Oe.parse = Li;
4513
- Oe.common = Zi;
4516
+ Oe.parse = Ci;
4517
+ Oe.common = Xi;
4514
4518
  Oe.Root._configure(Oe.Type, Oe.parse, Oe.common);
4515
- var Yi = Ar.exports, Se = Yi;
4519
+ var Qi = Er.exports, Se = Qi;
4516
4520
  const te = "com.google.type", pt = {
4517
4521
  "google/type/calendar_period.proto": {
4518
4522
  nested: {
@@ -5419,7 +5423,7 @@ const te = "com.google.type", pt = {
5419
5423
  "validate/validate.proto": {},
5420
5424
  "buf/validate/validate.proto": {}
5421
5425
  };
5422
- class Xi {
5426
+ class en {
5423
5427
  static isAbsolute(e) {
5424
5428
  return /^(?:\/|\w+:|\\\\\w+)/.test(e);
5425
5429
  }
@@ -5575,7 +5579,7 @@ function Dt(a, e) {
5575
5579
  Fe.handle(e, f);
5576
5580
  break;
5577
5581
  case "bool":
5578
- Ki.handle(e, f);
5582
+ tn.handle(e, f);
5579
5583
  break;
5580
5584
  case "string":
5581
5585
  case "bytes":
@@ -5632,7 +5636,7 @@ class Fe {
5632
5636
  e.minimum = i;
5633
5637
  }
5634
5638
  }
5635
- class Ki {
5639
+ class tn {
5636
5640
  static handle(e, i) {
5637
5641
  for (const [f, s] of Object.entries(i))
5638
5642
  switch (f) {
@@ -5832,7 +5836,7 @@ class xe {
5832
5836
  };
5833
5837
  }
5834
5838
  }
5835
- function Qi(a) {
5839
+ function rn(a) {
5836
5840
  const e = Mt(a, Hr);
5837
5841
  if (e !== null) {
5838
5842
  for (const [i, f] of Object.entries(e))
@@ -5854,13 +5858,13 @@ function Qi(a) {
5854
5858
  function Ve(a) {
5855
5859
  return a.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
5856
5860
  }
5857
- const en = "(validate.rules)";
5861
+ const nn = "(validate.rules)";
5858
5862
  function yr(a, e) {
5859
- const i = Mt(e, en);
5863
+ const i = Mt(e, nn);
5860
5864
  i !== null && Dt(i, a);
5861
5865
  }
5862
- const vr = "root", _r = "@RootNode", tn = "@Option", wr = "@Example", br = "@Default", Or = Se.common;
5863
- class rn {
5866
+ const vr = "root", _r = "@RootNode", sn = "@Option", wr = "@Example", br = "@Default", Or = Se.common;
5867
+ class on {
5864
5868
  constructor(e) {
5865
5869
  ve(this, "root", new Se.Root());
5866
5870
  ve(this, "proto3");
@@ -5927,7 +5931,7 @@ class rn {
5927
5931
  this.process(s, pt[s]);
5928
5932
  return;
5929
5933
  }
5930
- const t = Xi.resolve(i, s);
5934
+ const t = en.resolve(i, s);
5931
5935
  if (!f)
5932
5936
  throw new Error(
5933
5937
  `Imports are currently not implemented. Can not load: ${t} defined in as ${e} in ${i}`
@@ -5980,7 +5984,7 @@ class rn {
5980
5984
  }
5981
5985
  isProto3Required(e) {
5982
5986
  var i;
5983
- return Qi(e) ? !1 : ((i = e.options) == null ? void 0 : i.proto3_optional) !== !0 && this.isProto3();
5987
+ return rn(e) ? !1 : ((i = e.options) == null ? void 0 : i.proto3_optional) !== !0 && this.isProto3();
5984
5988
  }
5985
5989
  hasRequiredAnnotation(e) {
5986
5990
  return e !== null && /@Required\b/i.test(e);
@@ -6072,7 +6076,7 @@ ${s.description}`.trim() : s.description = u);
6072
6076
  return t !== null && (s.examples = t), s;
6073
6077
  }
6074
6078
  extractDescription(e) {
6075
- return !e || (e == null ? void 0 : e.length) < 1 || (e = e.replace(new RegExp(`\\s{0,15}${wr}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${br}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${tn}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${_r}`, "ig"), "").replace(/\s{0,15}@Required/gi, "").replace(/\s{0,15}@Pattern\s{0,15}[^\r\n]{1,200}/gi, "").replace(
6079
+ return !e || (e == null ? void 0 : e.length) < 1 || (e = e.replace(new RegExp(`\\s{0,15}${wr}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${br}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${sn}\\s{0,15}(.+)`, "ig"), "").replace(new RegExp(`\\s{0,15}${_r}`, "ig"), "").replace(/\s{0,15}@Required/gi, "").replace(/\s{0,15}@Pattern\s{0,15}[^\r\n]{1,200}/gi, "").replace(
6076
6080
  /\s{0,15}@(Min|Max|Minimum|Maximum|ExclusiveMinimum|ExclusiveMaximum|MultipleOf|MaxLength|MinLength|MaxItems|MinItems)\s{0,15}[\d.]{1,20}/gi,
6077
6081
  ""
6078
6082
  ).trim(), e.length < 1) ? null : e;
@@ -6113,8 +6117,8 @@ ${s.description}`.trim() : s.description = u);
6113
6117
  (s = f.exec(i)) !== null && (e.default = xr(s[1]));
6114
6118
  }
6115
6119
  }
6116
- function an(a) {
6117
- return new rn(a).compile();
6120
+ function ln(a) {
6121
+ return new on(a).compile();
6118
6122
  }
6119
6123
  function xr(a) {
6120
6124
  if (a.charAt(0) === "{")
@@ -6127,5 +6131,5 @@ function xr(a) {
6127
6131
  return a;
6128
6132
  }
6129
6133
  export {
6130
- an as protoToJsonSchema
6134
+ ln as protoToJsonSchema
6131
6135
  };