vitepress-openapi 0.2.7 → 0.2.8

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 (174) hide show
  1. package/dist/{angular-html-DAq3gDGA.cjs → angular-html-IrYiNUL5.cjs} +1 -1
  2. package/dist/{angular-html-C0iYY931.js → angular-html-uv0a0QNn.js} +2 -2
  3. package/dist/{angular-ts-Ct5d_gHN.js → angular-ts-CVTzQ4yM.js} +2 -2
  4. package/dist/{angular-ts-B2PPB0Y5.cjs → angular-ts-CmalYPic.cjs} +1 -1
  5. package/dist/{apl-CoWANpfc.cjs → apl-Cp2eHb5H.cjs} +1 -1
  6. package/dist/{apl-CiiA3JDJ.js → apl-G7yswX6Q.js} +5 -5
  7. package/dist/{astro-BX6R0KnA.cjs → astro-CRpTyG5K.cjs} +1 -1
  8. package/dist/{astro-Bzlt-IuJ.js → astro-DUi5zMa4.js} +5 -5
  9. package/dist/{blade-BBZCfhID.cjs → blade-DMsLIvGX.cjs} +1 -1
  10. package/dist/{blade-BGVF6ubL.js → blade-uJ4Xa5wc.js} +7 -7
  11. package/dist/{c-BpiaxH9s.js → c-CtMd0n5W.js} +1 -1
  12. package/dist/{c-CHRY6FQk.cjs → c-DJDNxT35.cjs} +1 -1
  13. package/dist/{chapel-CCUE2hqL.cjs → chapel-CCgxhb9n.cjs} +1 -1
  14. package/dist/{chapel-fECU7c1r.js → chapel-DGgSBAIm.js} +1 -1
  15. package/dist/{cobol-lxVOio4o.js → cobol-CDcij9i2.js} +2 -2
  16. package/dist/{cobol-Ete-w65U.cjs → cobol-DP8yLe0J.cjs} +1 -1
  17. package/dist/{coffee-D_GP6Mp_.js → coffee-Bcg2ycks.js} +1 -1
  18. package/dist/{coffee-DcVdEhV6.cjs → coffee-D3hXAm0d.cjs} +1 -1
  19. package/dist/{cpp-BQiBH6_n.cjs → cpp-CEMyuz0Z.cjs} +1 -1
  20. package/dist/{cpp-C2_nndOX.js → cpp-CfsSSf1b.js} +3 -3
  21. package/dist/{crystal-D68fQQf4.js → crystal-B76s5RL_.js} +6 -6
  22. package/dist/{crystal-bWCs3mcQ.cjs → crystal-BPjfGQfv.cjs} +1 -1
  23. package/dist/{css-LUs62piT.cjs → css-B_5YxPHw.cjs} +1 -1
  24. package/dist/{css-CwZ52NVY.js → css-Dnve9eIF.js} +1 -1
  25. package/dist/{edge-CRrD84FE.cjs → edge-DEHYswlE.cjs} +1 -1
  26. package/dist/{edge-CxIBp4BJ.js → edge-Dlu9JAOU.js} +3 -3
  27. package/dist/{elixir-txrLIPgt.cjs → elixir-CKhKSpjp.cjs} +1 -1
  28. package/dist/{elixir-DzlkeFTp.js → elixir-CSK8G02U.js} +1 -1
  29. package/dist/{elm-BSAvBsXU.js → elm-CsVe-drn.js} +1 -1
  30. package/dist/{elm-D3rgeOAI.cjs → elm-oUMNo4dE.cjs} +1 -1
  31. package/dist/{erb-CDFFPhk2.js → erb-3PcpbjWs.js} +2 -2
  32. package/dist/{erb-CEerDw7_.cjs → erb-B8WJz_Ls.cjs} +1 -1
  33. package/dist/{git-rebase-BI3TNfL1.js → git-rebase-BFPUa7RP.js} +1 -1
  34. package/dist/{git-rebase-BRc34H8A.cjs → git-rebase-CBj8NRO-.cjs} +1 -1
  35. package/dist/{glimmer-js-BjCbjAxk.cjs → glimmer-js-BkM2LzJ_.cjs} +1 -1
  36. package/dist/{glimmer-js-BCOl9pkK.js → glimmer-js-C06d46qf.js} +4 -4
  37. package/dist/{glimmer-ts-BaygTMht.cjs → glimmer-ts-B9TsQ9YM.cjs} +1 -1
  38. package/dist/{glimmer-ts-DtU3AR2J.js → glimmer-ts-BfZJAJhH.js} +4 -4
  39. package/dist/{glsl-C3jot75m.js → glsl-Bl7M-IPe.js} +2 -2
  40. package/dist/{glsl-C4QVQ8IM.cjs → glsl-uL1y-Bk6.cjs} +1 -1
  41. package/dist/{graphql-CWVurcx-.cjs → graphql-UjpB-MIz.cjs} +1 -1
  42. package/dist/{graphql-C57m_foI.js → graphql-j5wYAqtD.js} +5 -5
  43. package/dist/{hack-LG-O4iX2.js → hack-BN-XE31l.js} +2 -2
  44. package/dist/{hack-CO29PdAW.cjs → hack-DC3gQB4E.cjs} +1 -1
  45. package/dist/{haml-D5udMhEZ.cjs → haml-Bhy5P-KC.cjs} +1 -1
  46. package/dist/{haml-Qqt96dA3.js → haml-CDfF0h4F.js} +3 -3
  47. package/dist/{handlebars-BBft0uRg.js → handlebars-BRDXZqV4.js} +4 -4
  48. package/dist/{handlebars-dotklBKW.cjs → handlebars-CNE9oFMe.cjs} +1 -1
  49. package/dist/{html-Cm4eMgz9.js → html-CPA7KoKg.js} +3 -3
  50. package/dist/{html-hrBEmwSv.cjs → html-DF6ZRDg_.cjs} +1 -1
  51. package/dist/{html-derivative-DMWaumzq.js → html-derivative-61htNTyH.js} +1 -1
  52. package/dist/{html-derivative-Cu6O2gHN.cjs → html-derivative-D7b_E1PX.cjs} +1 -1
  53. package/dist/{http-D168KNW_.cjs → http-BjRzGfMq.cjs} +1 -1
  54. package/dist/{http-Cz6VY5Wo.js → http-CR6vxe-f.js} +4 -4
  55. package/dist/{hurl-D36azgIj.js → hurl-DR3Ao4uN.js} +2 -2
  56. package/dist/{hurl-DSwY6Z5G.cjs → hurl-Dz53E_EO.cjs} +1 -1
  57. package/dist/{java-BKXCRk8D.js → java-BCOO6DGx.js} +1 -1
  58. package/dist/{java-CFiC7SeI.cjs → java-rdA6e0wp.cjs} +1 -1
  59. package/dist/{javascript-Bx9N9g1f.cjs → javascript-4PA_CVZC.cjs} +1 -1
  60. package/dist/{javascript-DljrdC8t.js → javascript-B0H0Bm6m.js} +1 -1
  61. package/dist/{jinja-f05HaP8v.cjs → jinja-BcxYV4gu.cjs} +1 -1
  62. package/dist/{jinja-NZUdcntO.js → jinja-DdO6Tf4t.js} +1 -1
  63. package/dist/{jison-Dlb0RIZ3.cjs → jison-BJENBrIF.cjs} +1 -1
  64. package/dist/{jison-BQnZ1V4P.js → jison-CmQksr2y.js} +1 -1
  65. package/dist/{json-CzaEM6zR.cjs → json-BJ_bvg_A.cjs} +1 -1
  66. package/dist/{json-DyprfpNy.js → json-Dd3OP7m9.js} +1 -1
  67. package/dist/{jsx-DoPFZPXc.js → jsx-BhoiPRal.js} +1 -1
  68. package/dist/{jsx-X5IYTTmR.cjs → jsx-CaK8syd3.cjs} +1 -1
  69. package/dist/{julia-DrSudrKE.js → julia-CDeyMHwa.js} +4 -4
  70. package/dist/{julia-BUcVnjBf.cjs → julia-DdPKjdf7.cjs} +1 -1
  71. package/dist/{just-DydEbCQZ.cjs → just-B3mF2_pd.cjs} +1 -1
  72. package/dist/{just-tTSTWYrq.js → just-Db1lRieD.js} +5 -5
  73. package/dist/{latex-BUsA-DrV.js → latex-D73GL9tM.js} +1 -1
  74. package/dist/{latex-BQA9tWbc.cjs → latex-DyUb8gG5.cjs} +1 -1
  75. package/dist/{liquid-DkgygF2N.cjs → liquid-CztsYCRo.cjs} +1 -1
  76. package/dist/{liquid-cWkPgL2I.js → liquid-DF-tIke9.js} +4 -4
  77. package/dist/{lua-DIfY63me.cjs → lua-Cg38zrfV.cjs} +1 -1
  78. package/dist/{lua-C6iAvpwo.js → lua-xXZSPcKB.js} +2 -2
  79. package/dist/{marko-Du_QgmTX.cjs → marko-BuXulXH5.cjs} +1 -1
  80. package/dist/{marko-CNIbHKC5.js → marko-D-oNtuqC.js} +3 -3
  81. package/dist/{mdc-C_TsMRBC.cjs → mdc-CXK0bw8f.cjs} +1 -1
  82. package/dist/{mdc-DJo1F4gz.js → mdc-FTCNLElJ.js} +2 -2
  83. package/dist/{nginx-CwCNXVm0.js → nginx-C7lNZZWT.js} +1 -1
  84. package/dist/{nginx-B4IJHacq.cjs → nginx-Cgnh7QO-.cjs} +1 -1
  85. package/dist/{nim-rz8U_2RE.cjs → nim-D3q9r1nf.cjs} +1 -1
  86. package/dist/{nim-vPNRZtmW.js → nim-DIkmkdRK.js} +6 -6
  87. package/dist/{org-BJUQuLxI.cjs → org-Be03OJi3.cjs} +1 -1
  88. package/dist/{org-BXPZpMn-.js → org-CsORUXsX.js} +26 -26
  89. package/dist/{perl-C4EazcOb.js → perl-DzKqYwtD.js} +5 -5
  90. package/dist/{perl-CmADOgcQ.cjs → perl-jEpH5QnN.cjs} +1 -1
  91. package/dist/{php-BDdD_YcH.cjs → php-Cd0xNNLC.cjs} +1 -1
  92. package/dist/{php-BsJ_ZqPP.js → php-MrcCGNBb.js} +6 -6
  93. package/dist/{pug-BYXwQyBY.js → pug-7jPx_35W.js} +3 -3
  94. package/dist/{pug-BqCAm08K.cjs → pug-tintEWep.cjs} +1 -1
  95. package/dist/{qml-CnP9LpPo.js → qml-6QUtoeWA.js} +1 -1
  96. package/dist/{qml-BkLbkVNV.cjs → qml-BYzhsmnS.cjs} +1 -1
  97. package/dist/{r-Crbt2ian.cjs → r-Bwq_agHo.cjs} +1 -1
  98. package/dist/{r-BskJ0B3b.js → r-DSFCAodN.js} +1 -1
  99. package/dist/{razor-CcOw1mzY.cjs → razor-GHEO8ZrJ.cjs} +1 -1
  100. package/dist/{razor-CgobKwDB.js → razor-kZ9VMhh7.js} +1 -1
  101. package/dist/{regexp-CiRKg-B7.cjs → regexp-BTPSBkuS.cjs} +1 -1
  102. package/dist/{regexp-35oNQcei.js → regexp-C4cLyNsj.js} +1 -1
  103. package/dist/{rst-CcG1VyHf.js → rst-Celv7pzQ.js} +6 -6
  104. package/dist/{rst-0CCQrjRR.cjs → rst-DC596VAb.cjs} +1 -1
  105. package/dist/{ruby-D84T3HVs.js → ruby-CMUkZc4V.js} +12 -12
  106. package/dist/{ruby-Bz7pH067.cjs → ruby-CkA4Oavu.cjs} +1 -1
  107. package/dist/{sas-CfNVA6xj.cjs → sas-CWtZaM4y.cjs} +1 -1
  108. package/dist/{sas-leffZV-t.js → sas-DM3UyDFg.js} +1 -1
  109. package/dist/{scss-ConKgv_x.js → scss-Ce0za1qK.js} +2 -2
  110. package/dist/{scss-tjluFEfq.cjs → scss-LkHhJo18.cjs} +1 -1
  111. package/dist/{shellscript-CZORtZ0m.cjs → shellscript-CiDBNSSV.cjs} +1 -1
  112. package/dist/{shellscript-Cqrf74-d.js → shellscript-DfQbZbZv.js} +1 -1
  113. package/dist/{shellsession-DGN6o4H4.js → shellsession-B-u2-M3U.js} +1 -1
  114. package/dist/{shellsession-C7TZqfBX.cjs → shellsession-VJTxH3Qp.cjs} +1 -1
  115. package/dist/{soy-CYwevEyV.cjs → soy-CFhgAJvR.cjs} +1 -1
  116. package/dist/{soy-C3C1N4BB.js → soy-K4I5GWmG.js} +1 -1
  117. package/dist/{sql-CKAdltev.cjs → sql-CySKVD8Q.cjs} +1 -1
  118. package/dist/{sql-D28Ep8kC.js → sql-jusQgRuy.js} +1 -1
  119. package/dist/{stata-gwURYib4.cjs → stata-9iclJTGl.cjs} +1 -1
  120. package/dist/{stata-BdKZ3Tfa.js → stata-B0U1mDy6.js} +1 -1
  121. package/dist/{surrealql-BE3WUki2.js → surrealql-6aGCR7SU.js} +1 -1
  122. package/dist/{surrealql-CBAekr00.cjs → surrealql-DysQv_VH.cjs} +1 -1
  123. package/dist/{svelte-BIf-Q33W.js → svelte-B9UOpTL8.js} +3 -3
  124. package/dist/{svelte-ClXPqtyX.cjs → svelte-ZhIemg1n.cjs} +1 -1
  125. package/dist/{templ-CJJCQFkp.cjs → templ-BaKkruXs.cjs} +1 -1
  126. package/dist/{templ-KcJQzTCJ.js → templ-CwElXEjo.js} +2 -2
  127. package/dist/{tex-V7tXlPyb.cjs → tex-CwQDQCX_.cjs} +1 -1
  128. package/dist/{tex-DtiwEWZU.js → tex-kQHmfFkX.js} +2 -2
  129. package/dist/{ts-tags-gxidxB8R.js → ts-tags-BkcgKPdU.js} +7 -7
  130. package/dist/{ts-tags-BaSrqEU0.cjs → ts-tags-Dqqv0wS7.cjs} +1 -1
  131. package/dist/{tsx-yCIscrGd.cjs → tsx-TxRbY_MS.cjs} +1 -1
  132. package/dist/{tsx-CLVkAc-4.js → tsx-tC9_eQM0.js} +1 -1
  133. package/dist/{twig-DucNk_L2.cjs → twig-Dsriugp3.cjs} +1 -1
  134. package/dist/{twig-BozPiA4G.js → twig-zezbIase.js} +5 -5
  135. package/dist/types/src/components/Common/OAJSONEditor.vue.d.ts +2 -2
  136. package/dist/types/src/lib/parser/generateRequestBodyUi.d.ts +2 -1
  137. package/dist/types/src/lib/parser/generateResponseUi.d.ts +2 -1
  138. package/dist/types/src/lib/parser/getSchemaUi.d.ts +5 -1
  139. package/dist/types/src/lib/parser/mergeAllOf.d.ts +6 -0
  140. package/dist/types/src/lib/parser/resolveCircularRef.d.ts +1 -1
  141. package/dist/{typescript-CpL8J23X.cjs → typescript-BoS6yqrz.cjs} +1 -1
  142. package/dist/{typescript-v3MDZy3z.js → typescript-KKVXItRs.js} +1 -1
  143. package/dist/{typst-KAYwLgnz.cjs → typst-B_783qIn.cjs} +1 -1
  144. package/dist/{typst-BqVfAgGz.js → typst-DsM2L8MG.js} +29 -29
  145. package/dist/{useOpenapi-_Y6U0hd9.cjs → useOpenapi-DOw8b0Cm.cjs} +77 -77
  146. package/dist/{useOpenapi-B8TP2xUt.js → useOpenapi-tKaw3COz.js} +1482 -1442
  147. package/dist/vitepress-openapi.client.cjs.js +4 -4
  148. package/dist/vitepress-openapi.client.es.js +9044 -9040
  149. package/dist/vitepress-openapi.node.cjs.js +1 -1
  150. package/dist/vitepress-openapi.node.es.js +1 -1
  151. package/dist/{vue-CCBnDBrj.js → vue-B58kMEAQ.js} +6 -6
  152. package/dist/{vue-DDP4ToP4.cjs → vue-C-ymR46K.cjs} +1 -1
  153. package/dist/{vue-html-ChckxjrF.js → vue-html-B8vwCoQU.js} +1 -1
  154. package/dist/{vue-html-pUsOdCRA.cjs → vue-html-qs-Ree4R.cjs} +1 -1
  155. package/dist/{vue-vine-CW6_oew-.js → vue-vine-B95XCKNF.js} +3 -3
  156. package/dist/{vue-vine-C-R1ePqA.cjs → vue-vine-Nsb-fhNk.cjs} +1 -1
  157. package/dist/{xml-BjuxZasO.js → xml-B119d3-g.js} +2 -2
  158. package/dist/{xml-5oO_YDXi.cjs → xml-DzTGxXsy.cjs} +1 -1
  159. package/dist/{xsl-A-O9TTaY.js → xsl-CEz1476V.js} +1 -1
  160. package/dist/{xsl-BfGzl8_E.cjs → xsl-xWljPYeJ.cjs} +1 -1
  161. package/dist/{yaml-DgRJBItn.js → yaml-B9YlAzUe.js} +1 -1
  162. package/dist/{yaml-CFG4vyir.cjs → yaml-Cd_AUGXn.cjs} +1 -1
  163. package/package.json +1 -1
  164. package/src/components/Common/OAJSONEditor.vue +2 -1
  165. package/src/composables/useOpenapi.ts +2 -2
  166. package/src/composables/usePlayground.ts +4 -2
  167. package/src/lib/parser/dereferenceWithAnnotations.ts +22 -5
  168. package/src/lib/parser/generateRequestBodyUi.ts +3 -3
  169. package/src/lib/parser/generateResponseUi.ts +3 -3
  170. package/src/lib/parser/getSchemaUi.ts +50 -22
  171. package/src/lib/parser/mergeAllOf.ts +45 -0
  172. package/src/lib/parser/parseOpenapi.ts +12 -7
  173. package/src/lib/parser/resolveCircularRef.ts +25 -45
  174. package/src/lib/spec/createOpenApiSpec.ts +27 -51
@@ -8207,633 +8207,90 @@ var Gu = (e) => [e, null], Ku = (e) => [null, new qu(e)], qu = class e extends E
8207
8207
  constructor(t) {
8208
8208
  super("thrown error", { cause: t }), this.cause = t, Error.captureStackTrace && Error.captureStackTrace(this, e);
8209
8209
  }
8210
- };
8211
- //#endregion
8212
- //#region node_modules/.pnpm/allof-merge@0.6.8/node_modules/allof-merge/dist/index.mjs
8213
- function Ju(e, t) {
8214
- var n = {};
8215
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
8216
- if (e != null && typeof Object.getOwnPropertySymbols == "function") {
8217
- var i = 0;
8218
- for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
8219
- }
8220
- return n;
8221
- }
8222
- function Yu(e, t) {
8223
- var n = {};
8224
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
8225
- if (e != null && typeof Object.getOwnPropertySymbols == "function") {
8226
- var i = 0;
8227
- for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
8228
- }
8229
- return n;
8230
- }
8231
- var Xu = (e = {}, t, n, r) => {
8232
- let i = `/${t}`, a = typeof e["/**"] == "function" ? e["/**"]({
8233
- key: t,
8234
- path: n,
8235
- value: r
8236
- }) : e["/**"], o = typeof e["/*"] == "function" ? e["/*"]({
8237
- key: t,
8238
- path: n,
8239
- value: r
8240
- }) : e["/*"], s = {};
8241
- if (i in e) s = e[i];
8242
- else if (!a && !o) return;
8243
- return s = typeof s == "function" ? s({
8244
- key: t,
8245
- path: n,
8246
- value: r
8247
- }) : s, o && (s = Object.assign(Object.assign({}, o), s)), a ? Object.assign(Object.assign({ "/**": e["/**"] }, a), s) : s;
8248
- }, Zu = (e) => {
8249
- let t = {}, n = e.reduce(((e, t) => (Object.keys(t).forEach(((t) => e.add(t))), e)), /* @__PURE__ */ new Set());
8250
- for (let r of n.keys()) {
8251
- let n = e.filter(((e) => r in e));
8252
- if (n.length !== 1) {
8253
- if (r.charAt(0) !== "/") throw Error(`Cannot merge rules. Duplicate key: ${r}. Rules should not have same Rule key`);
8254
- t[r] = (e, t) => Zu(n.map(((n) => typeof n[r] == "function" ? n[r](e, t) : n[r])));
8255
- } else t[r] = n[0][r];
8256
- }
8257
- return t;
8258
- }, Qu = (e) => typeof e == "object" && !!e, $u = (e) => Array.isArray(e), ed = (e, t, n = {}) => {
8259
- var r, i;
8260
- t = $u(t) ? t : [t];
8261
- let a = $u(n.rules) ? Zu(n.rules) : n.rules, o = [{
8262
- data: e,
8263
- state: n.state,
8264
- path: [],
8265
- keys: [],
8266
- keyIndex: -1,
8267
- rules: a
8268
- }];
8269
- for (; o.length > 0;) {
8270
- let e = o[o.length - 1];
8271
- if (e.keyIndex >= e.keys.length) {
8272
- for (; (r = e.hooks) != null && r.length;) e.hooks.pop()();
8273
- o.pop();
8274
- continue;
8275
- }
8276
- let n = e.keys[e.keyIndex++], [s, c, l] = o.length > 1 ? [
8277
- e.data[n],
8278
- [...e.path, n],
8279
- Xu(e.rules, n, [...e.path, n], e.data[n])
8280
- ] : [
8281
- e.data,
8282
- e.path,
8283
- a
8284
- ], u = {
8285
- value: s,
8286
- path: c,
8287
- key: n,
8288
- state: e.state,
8289
- rules: l
8290
- }, d = [];
8291
- for (let e of t) {
8292
- if (!e || typeof e != "function") continue;
8293
- let t = (i = e(u)) == null ? {} : i, { terminate: n, done: r, exitHook: a } = t, o = Yu(t, [
8294
- "terminate",
8295
- "done",
8296
- "exitHook"
8297
- ]);
8298
- if (n) return;
8299
- if (a && d.push(a), u = Object.assign(Object.assign({}, u), o), r) {
8300
- u = null;
8301
- break;
8302
- }
8303
- }
8304
- if (u && Qu(u.value)) {
8305
- let e = $u(u.value) ? [...u.value.keys()] : Object.keys(u.value);
8306
- o.push({
8307
- hooks: d,
8308
- state: u.state,
8309
- data: u.value,
8310
- path: c,
8311
- keys: e,
8312
- keyIndex: 0,
8313
- rules: u.rules
8314
- });
8315
- } else for (; d.length;) d.pop()();
8316
- }
8317
- }, td = () => {
8318
- let e = /* @__PURE__ */ new WeakMap(), t;
8319
- return [({ value: e }) => {
8320
- t = e;
8321
- }, ({ value: n, path: r, key: i, state: a }) => {
8322
- if (i = r.length ? i : "#", Qu(t) && Qu(n)) {
8323
- if (e.has(t)) return a.node[i] = e.get(t), { done: !0 };
8324
- let r = Array.isArray(n) ? [] : {};
8325
- a.node[i] = r, e.set(t, r);
8326
- } else a.node[i] = n;
8327
- return {
8328
- value: n,
8329
- state: Object.assign(Object.assign({}, a), { node: a.node[i] })
8330
- };
8331
- }];
8332
- }, nd = class extends Map {
8333
- add(e, t) {
8334
- let n = this.get(e);
8335
- return n ? n.push(t) : this.set(e, [t]), this;
8336
- }
8337
- }, rd = (e, t) => {
8338
- let n = {};
8339
- for (let r of t) r in e && (n[r] = e[r], delete e[r]);
8340
- return n;
8341
- }, id = (e, t) => {
8342
- if (Array.isArray(e) && Array.isArray(t)) return [...e, ...t];
8343
- if (Qu(e) && Qu(t)) {
8344
- let n = Object.assign({}, e);
8345
- for (let e of Object.keys(t)) n[e] = id(n[e], t[e]);
8346
- return n;
8347
- }
8348
- return t;
8349
- }, ad = (e) => e && e.$ref && typeof e.$ref == "string", od = (e) => e && e.anyOf && Array.isArray(e.anyOf), sd = (e) => e && e.oneOf && Array.isArray(e.oneOf), cd = (e, t = "") => {
8350
- let [n = t, r] = e.split("#"), i = r && r !== "/" ? r : "";
8351
- return {
8352
- filePath: n,
8353
- pointer: i,
8354
- normalized: ld(n, i),
8355
- jsonPath: fd(i)
8356
- };
8357
- }, ld = (e, t) => e ? `${e}${t ? "#" + t : ""}` : t ? `#${t}` : "#", ud = (e, t, n = [t]) => {
8358
- if (!Qu(e)) return;
8359
- let r = e, i = fd(t);
8360
- for (let t of i) if (Array.isArray(r) && r.length > +t) r = r[+t];
8361
- else if (Qu(r) && t in r) r = r[t];
8362
- else {
8363
- if (!ad(r)) return;
8364
- {
8365
- let t = cd(r.$ref);
8366
- r = t.filePath || n.includes(t.pointer) ? void 0 : ud(e, t.pointer, [...n, t.pointer]);
8367
- }
8368
- }
8369
- return r;
8370
- }, dd = {
8371
- slash: /\//g,
8372
- tilde: /~/g,
8373
- escapedSlash: /~1/g,
8374
- escapedTilde: /~0/g
8375
- }, fd = (e) => e.split("/").map(((e) => decodeURIComponent(e.replace(dd.escapedSlash, "/").replace(dd.escapedTilde, "~")))).slice(1), pd = (e) => e.length ? "/" + e.map(((e) => encodeURIComponent(String(e).replace(dd.tilde, "~0").replace(dd.slash, "~1")))).join("/") : "", md = (e, t) => JSON.stringify(e) == JSON.stringify(t), hd = (e) => {
8376
- let t = 1;
8377
- for (; e * t % 1 != 0;) t *= 10;
8378
- return t;
8379
- };
8380
- function gd(e) {
8381
- let t = e.reduce(((e, t) => Math.max(e, hd(t))), 0);
8382
- return e.reduce(((e, n) => Math.round(e * t * n * t / _d(e * t, n * t)) / t));
8383
- }
8384
- function _d(e, t) {
8385
- return t === 0 ? e : _d(t, e % t);
8386
- }
8387
- var vd = (e) => {
8388
- if (e.length === 0) return [[]];
8389
- let t = e[0], n = vd(e.slice(1)), r = [];
8390
- for (let e of t) for (let t of n) r.push([e, ...t]);
8391
- return r;
8392
- }, yd = (e) => {
8393
- let t = [];
8394
- for (let n of e) {
8395
- if (!("properties" in n)) continue;
8396
- let r = new Set(Object.keys(n.properties)), i = new nd();
8397
- for (let t of r.values()) for (let a of e) if (!(a == n || a.properties && t in a.properties)) {
8398
- if ("patternProperties" in a && a.patternProperties) for (let e of Object.keys(a.patternProperties)) new RegExp(e).test(t) || r.delete(t);
8399
- else "additionalProperties" in a && (!1 === a.additionalProperties ? r.delete(t) : typeof a.additionalProperties == "object" && i.add(t, a.additionalProperties));
8400
- }
8401
- if (!r.size) continue;
8402
- let a = {};
8403
- for (let e of r.values()) a[e] = i.has(e) ? { allOf: [n.properties[e], ...i.get(e)] } : n.properties[e];
8404
- t.push(a);
8405
- }
8406
- return t;
8407
- }, bd = (e) => {
8408
- let t = [];
8409
- for (let n of e) {
8410
- if (!("patternProperties" in n)) continue;
8411
- let r = new Set(Object.keys(n.patternProperties));
8412
- for (let t of e) if (t != n && "additionalProperties" in t && !t.additionalProperties) for (let e of r.values()) t.patternProperties && e in t.patternProperties || r.delete(e);
8413
- if (!r.size) continue;
8414
- let i = {};
8415
- for (let e of r.values()) i[e] = n.patternProperties[e];
8416
- t.push(i);
8417
- }
8418
- return t;
8419
- }, xd = (e) => {
8420
- let t = {}, n = Td(e);
8421
- for (let [e, r] of Object.entries(n)) t[e] = r.includes(!1) ? !1 : r.length > 1 ? { allOf: r } : r[0];
8422
- return t;
8423
- }, Sd = (e, t) => !!e.reduce(((e, t) => e && !0 === t), !0) || Ed(e, t), Cd = () => "Could not merge values, they are probably incompatible", wd = (e) => `Merge rule not found for key: ${e}`, Td = (e) => {
8424
- let t = {};
8425
- for (let n of e) for (let e of Object.keys(n)) Array.isArray(t[e]) ? t[e].push(n[e]) : t[e] = [n[e]];
8426
- return t;
8427
- }, Ed = (e, t) => {
8428
- if (e.includes(!1)) return !1;
8429
- let n = {}, r = Td(e);
8430
- "properties" in r && (r.properties = yd(e)), "patternProperties" in r && (r.patternProperties = bd(e));
8431
- for (let [i, a] of Object.entries(r)) {
8432
- if (!a.length) continue;
8433
- let r = t.mergeRules, o = `/${i}` in r ? r[`/${i}`] : r["/?"];
8434
- o = o && !("$" in o) && "/" in o ? o["/"] : o, o = typeof o == "function" ? o() : o;
8435
- let s = o && "$" in o ? o.$ : void 0;
8436
- if (!s) throw Error(wd(i));
8437
- let c = a.length > 1 ? s(a, Object.assign(Object.assign({}, t), { allOfItems: e })) : a[0];
8438
- c === void 0 ? t.mergeError(a) : n[i] = c;
8439
- }
8440
- return Object.keys(n).length ? n : void 0;
8441
- }, Dd = (e) => e[e.length - 1], Od = (e) => e.reduce(((e, t) => e || t), !1), kd = (e) => Math.min(...e), Ad = (e) => Math.max(...e), jd = (e) => e.length > 1 ? e.reduce(((e, t) => `${e}(?=${t})`), "") : e[0], Md = ([e, ...t]) => t.reduce(((e, t) => e.filter(((e) => t.includes(e)))), e), Nd = ([e, ...t]) => t.find(((t) => !md(t, e))) ? void 0 : e, Pd = ([e, ...t]) => t.reduce(((e, t) => id(e, t)), e), Fd = (e) => vd(e).map(((e) => ({ allOf: e }))), Id = (e) => ({ anyOf: e }), Ld = (e) => gd(e), Rd = (e, t) => {
8442
- let n = Md(e.map(((e) => e.map(((e) => JSON.stringify(e)))))).map(((e) => JSON.parse(e))).sort();
8443
- return n.length || t.mergeError(e), n;
8444
- }, zd = (e, t) => {
8445
- let n = Md(e.map(((e) => Array.isArray(e) ? e : [e])));
8446
- return n.length === 1 ? n[0] : n.length ? n : void 0;
8447
- }, Bd = (e) => {
8448
- let t = /* @__PURE__ */ new Set();
8449
- for (let n of e) for (let e of n) t.add(e);
8450
- return Array.from(t).sort();
8451
- }, Vd = (e, t) => {
8452
- let n = {}, r = Td(e);
8453
- for (let [e, t] of Object.entries(r)) if (t.reduce(((e, t) => e && Array.isArray(t)), !0)) n[e] = Bd(t);
8454
- else {
8455
- let r = t.map(((e) => Array.isArray(e) ? { required: e } : e));
8456
- n[e] = r.length > 1 ? { allOf: r } : r[0];
8457
- }
8458
- return n;
8459
- }, Hd = (e, t) => {
8460
- if (!e.reduce(((e, t) => Array.isArray(t) || e), !1)) return Ed(e, t);
8461
- let n = [], r = 1 / 0, i = 0, a = new nd();
8462
- for (let e of t.allOfItems) "additionalItems" in e && e.additionalItems && "items" in e && Array.isArray(e.items) && a.add(e.items.length, e.additionalItems), "items" in e && (n.push(e.items), Array.isArray(e.items) && (i = Math.max(i, e.items.length), "additionalItems" in e && !1 === e.additionalItems && (r = Math.min(r, e.items.length))));
8463
- let o = Math.min(i, r), s = [...Array(o)].map((() => ({ allOf: [] })));
8464
- for (let e of n) if (Array.isArray(e)) for (let t = 0; t < o; t++) {
8465
- let n = [];
8466
- for (let e = 0; e <= t; e++) a.has(e) && n.push(...a.get(e));
8467
- t < e.length ? s[t].allOf.push(n.length ? Object.assign(Object.assign({}, e[t]), { allOf: n }) : e[t]) : s[t].allOf.push(!n.length || { allOf: n });
8468
- }
8469
- else s.forEach((({ allOf: t }) => t.push(e)));
8470
- return s;
8471
- }, Ud = (e, t) => {
8472
- let n = [], r = [];
8473
- for (let e of t.allOfItems) "items" in e && !Array.isArray(e.items) && r.push(e.items), "additionalItems" in e && "items" in e && Array.isArray(e.items) && n.push(e.additionalItems);
8474
- return r.length && n.forEach(((e) => e.allOf = r)), Ed(n, t);
8475
- }, K = (e = "draft-06", t = {}) => Object.assign(Object.assign(Object.assign(Object.assign({
8476
- "/maximum": { $: kd },
8477
- "/exclusiveMaximum": { $: Od },
8478
- "/minimum": { $: Ad },
8479
- "/exclusiveMinimum": { $: Od },
8480
- "/maxLength": { $: kd },
8481
- "/minLength": { $: Ad },
8482
- "/maxItems": { $: kd },
8483
- "/minItems": { $: Ad },
8484
- "/uniqueItems": { $: Od },
8485
- "/maxProperties": { $: kd },
8486
- "/minProperties": { $: Ad },
8487
- "/required": { $: Bd },
8488
- "/multipleOf": { $: Ld },
8489
- "/enum": { $: Rd },
8490
- "/type": { $: zd },
8491
- "/allOf": {
8492
- "/*": () => K(e, t),
8493
- $: Fd
8494
- },
8495
- "/not": { $: Id },
8496
- "/oneOf": {
8497
- "/*": () => K(e, t),
8498
- $: Fd,
8499
- sibling: [
8500
- "definitions",
8501
- "$defs",
8502
- "$id",
8503
- "$schema"
8504
- ]
8505
- },
8506
- "/anyOf": {
8507
- "/*": () => K(e, t),
8508
- $: Fd,
8509
- sibling: [
8510
- "definitions",
8511
- "$defs",
8512
- "$id",
8513
- "$schema"
8514
- ]
8515
- },
8516
- "/properties": {
8517
- "/*": () => K(e, t),
8518
- $: xd
8519
- },
8520
- "/items": () => Object.assign(Object.assign({}, K(e, t)), {
8521
- $: Hd,
8522
- "/*": ({ key: n }) => typeof n == "number" ? K(e, t) : {}
8523
- }),
8524
- "/additionalProperties": () => Object.assign(Object.assign({}, K(e, t)), { $: Sd }),
8525
- "/additionalItems": () => Object.assign(Object.assign({}, K(e, t)), { $: Ud }),
8526
- "/patternProperties": {
8527
- "/*": () => K(e, t),
8528
- $: xd
8529
- },
8530
- "/pattern": { $: jd },
8531
- "/readOnly": { $: Od },
8532
- "/writeOnly": { $: Od },
8533
- "/example": { $: Pd },
8534
- "/examples": { $: Pd },
8535
- "/deprecated": { $: Od }
8536
- }, e === "draft-04" ? {} : {
8537
- "/propertyNames": () => K(e, t),
8538
- "/contains": () => K(e, t),
8539
- "/dependencies": {
8540
- "/*": () => K(e, t),
8541
- $: Vd
8542
- },
8543
- "/const": { $: Nd },
8544
- "/exclusiveMaximum": { $: kd },
8545
- "/exclusiveMinimum": { $: Ad },
8546
- "/$defs": {
8547
- "/*": () => K(e, t),
8548
- $: Pd
8549
- }
8550
- }), {
8551
- "/definitions": {
8552
- "/*": () => K(e, t),
8553
- $: Pd
8554
- },
8555
- "/xml": { $: Pd },
8556
- "/externalDocs": { $: Dd },
8557
- "/description": { $: Dd },
8558
- "/title": { $: Dd },
8559
- "/format": { $: Dd },
8560
- "/default": { $: Dd },
8561
- "/?": { $: Dd }
8562
- }), t), { $: Ed }), Wd = (e) => K(e, {
8563
- "/discriminator": { $: Pd },
8564
- "/oneOf": {
8565
- "/*": () => Wd(e),
8566
- $: Fd,
8567
- sibling: ["discriminator"]
8568
- },
8569
- "/anyOf": {
8570
- "/*": () => Wd(e),
8571
- $: Fd,
8572
- sibling: ["discriminator"]
8573
- }
8574
- }), Gd = (e) => e === "3.0.x" ? Object.assign(Object.assign({}, Wd("draft-04")), { "/items": ({ key: e }) => Object.assign(Object.assign({}, Wd("draft-04")), { $: Hd }) }) : Wd("draft-06"), Kd = (e) => ({ "/*": { "/schema": Gd(e) } }), qd = (e) => ({ "/content": { "/*": {
8575
- "/schema": Gd(e),
8576
- "/encoding": { "/headers": Kd(e) }
8577
- } } }), Jd = (e) => ({ "/*": {
8578
- "/headers": Kd(e),
8579
- "/content": { "/*": {
8580
- "/schema": Gd(e),
8581
- "/encoding": { "/headers": Kd(e) }
8582
- } }
8583
- } }), Yd = (e = "3.0.x") => ({
8584
- "/paths": { "/*": {
8585
- "/*": {
8586
- "/parameters": Kd(e),
8587
- "/requestBody": qd(e),
8588
- "/responses": Jd(e)
8589
- },
8590
- "/parameters": Kd(e)
8591
- } },
8592
- "/components": {
8593
- "/schemas": { "/*": Gd(e) },
8594
- "/responses": Jd(e),
8595
- "/parameters": Kd(e),
8596
- "/requestBodies": { "/*": qd(e) },
8597
- "/headers": Kd(e)
8598
- }
8599
- }), Xd = K("draft-06", {
8600
- "/args": () => Xd,
8601
- "/nullable": { $: Od },
8602
- "/specifiedByURL": { $: Dd },
8603
- "/values": {
8604
- $: Pd,
8605
- "/*": {
8606
- $: Pd,
8607
- "/description": { $: Dd },
8608
- "/deprecated": {
8609
- $: Dd,
8610
- "/reason": { $: Dd }
8611
- }
8612
- }
8613
- },
8614
- "/interfaces": {
8615
- $: Pd,
8616
- "/*": { $: Pd }
8617
- },
8618
- "/directives": {
8619
- $: Pd,
8620
- "/*": () => Object.assign(Object.assign({}, Xd), { "/meta": { $: Pd } })
8621
- }
8622
- }), Zd = {
8623
- "/queries": { "/*": () => Xd },
8624
- "/mutations": { "/*": () => Xd },
8625
- "/subscriptions": { "/*": () => Xd },
8626
- "/components": {
8627
- "/*": { "/*": Xd },
8628
- "/directives": { "/*": { "/args": () => Xd } }
8629
- }
8630
- }, Qd = (e, t, n) => {
8631
- let r = n.sibling || [], i = e, a = t, o = i[a], s = Ju(i, [typeof a == "symbol" ? a : a + ""]), c = rd(s, r);
8632
- return Object.keys(s).length ? Object.assign({ [t]: o.map(((e) => ({ allOf: [s, e] }))) }, c) : e;
8633
- }, $d = (e, t, n, r) => {
8634
- let i = [], a = pd(t), o = [], s = {
8635
- pointer: a,
8636
- data: "",
8637
- refs: []
8638
- };
8639
- for (let t of e) if (ad(t) && !o.includes(t.$ref)) {
8640
- s.data === "" && (s.data = JSON.stringify(e));
8641
- let { $ref: c } = t, l = Ju(t, ["$ref"]), { filePath: u, normalized: d, pointer: f } = cd(c);
8642
- if (a === f) continue;
8643
- let p = r.find(((e) => e.refs.includes(t.$ref) && e.data === s.data && f !== e.pointer));
8644
- if (p) return {
8645
- allOfItems: [{ $ref: `#${p.pointer}` }],
8646
- brokenRefs: o
8647
- };
8648
- if (!s.refs.includes(d)) {
8649
- s.refs.push(d);
8650
- let e = u ? void 0 : ud(n, f);
8651
- e === void 0 ? (o.push(d), i.push(t)) : i.push(e);
8652
- }
8653
- Object.keys(l).length && i.push(l);
8654
- } else i.push(t);
8655
- s.refs.length && r.push(s);
8656
- let c = ef(i);
8657
- return c.find(((e) => ad(e) && !o.includes(e.$ref))) ? $d(c, t, n, r) : {
8658
- allOfItems: c,
8659
- brokenRefs: o
8660
- };
8661
- }, ef = (e) => {
8662
- let t = [];
8663
- for (let n of e) if (Qu(n)) {
8664
- if (n.allOf && Array.isArray(n.allOf)) {
8665
- let { allOf: e } = n, r = Ju(n, ["allOf"]), i = Object.keys(r).length ? [...e, r] : e;
8666
- t.push(...ef(i));
8667
- } else t.push(n);
8668
- }
8669
- return t;
8670
- }, tf = (e) => typeof e != "object" || !e ? K() : "openapi" in e && typeof e.openapi == "string" && /3.+/.test(e.openapi) ? Yd(e.openapi.startsWith("3.1") ? "3.1.x" : "3.0.x") : "graphapi" in e && typeof e.graphapi == "string" ? Zd : K(), nf = (e, t) => {
8671
- var n;
8672
- let r = (n = t == null ? void 0 : t.rules) == null ? tf(e) : n;
8673
- return ((e, t = [], n = {}) => {
8674
- var r;
8675
- t = Array.isArray(t) ? t : [t];
8676
- let i = { "#": void 0 }, a = Object.assign({ state: Object.assign(Object.assign({}, (r = n.state) == null ? {} : r), {
8677
- root: i,
8678
- node: i
8679
- }) }, n.rules ? { rules: n.rules } : {}), [o, s] = td();
8680
- return ed(e, [
8681
- o,
8682
- ...t,
8683
- s
8684
- ], a), i["#"];
8685
- })(e, rf(t), { rules: r });
8686
- }, rf = (e) => {
8687
- let t = /* @__PURE__ */ new Map(), n = e == null ? void 0 : e.source, r = [];
8688
- return ({ value: i, key: a, path: o, rules: s, state: c }) => {
8689
- var l;
8690
- o.length || e != null && e.source || (n = i);
8691
- let u = (n) => {
8692
- var r;
8693
- let i = af(o);
8694
- i ? t.set(...i) : (r = e == null ? void 0 : e.onMergeError) == null || r.call(e, Cd(), o, n);
8695
- }, d = () => {
8696
- let { node: e } = c, n = pd(o);
8697
- if (t.has(n)) {
8698
- let r = t.get(n), o = e[a];
8699
- Array.isArray(o) && (o.length < 2 && u((i == null ? void 0 : i.allOf) || []), o.splice(r, 1));
8700
- }
8701
- };
8702
- if (!Qu(i) || Array.isArray(i) || !((e) => !!e && e["/allOf"] && "$" in e["/allOf"])(s)) return { exitHook: d };
8703
- let { allOf: f } = i, p = Ju(i, ["allOf"]), m = [];
8704
- if (Array.isArray(f) && m.push(...f), m.length) Object.keys(p).length && m.push(p);
8705
- else {
8706
- let { $ref: t } = p, n = Ju(p, ["$ref"]);
8707
- if (e != null && e.mergeRefSibling && t && Object.keys(n).length > 0) m.push({ $ref: t }, n);
8708
- else if (e != null && e.mergeCombinarySibling) {
8709
- if (od(p) && s["/anyOf"]) return {
8710
- value: Qd(p, "anyOf", s["/anyOf"]),
8711
- exitHook: d
8712
- };
8713
- if (sd(p) && s["/oneOf"]) return {
8714
- value: Qd(p, "oneOf", s["/oneOf"]),
8715
- exitHook: d
8716
- };
8717
- }
8718
- }
8719
- if (!m.length) return {
8720
- value: p,
8721
- exitHook: d
8722
- };
8723
- let { allOfItems: h, brokenRefs: g } = $d(m, o, n, r);
8724
- if (g.length) {
8725
- for (let t of g) (l = e == null ? void 0 : e.onRefResolveError) == null || l.call(e, "Cannot resolve $ref", o, t);
8726
- return {
8727
- value: { allOf: h },
8728
- exitHook: d
8729
- };
8730
- }
8731
- if (h.length < 2) return {
8732
- value: h.length ? h[0] : {},
8733
- exitHook: d
8734
- };
8735
- let _ = Ed(h, {
8736
- allOfItems: h,
8737
- mergeRules: s,
8738
- mergeError: u
8739
- });
8740
- return e != null && e.mergeCombinarySibling && od(_) ? {
8741
- value: Qd(_, "anyOf", s["/anyOf"]),
8742
- exitHook: d
8743
- } : e != null && e.mergeCombinarySibling && sd(_) ? {
8744
- value: Qd(_, "oneOf", s["/oneOf"]),
8745
- exitHook: d
8746
- } : {
8747
- value: _,
8748
- exitHook: d
8749
- };
8750
- };
8751
- }, af = (e) => {
8752
- for (let t = e.length - 2; t >= 0; t--) if (e[t] === "anyOf" || e[t] === "oneOf") return [pd(e.slice(0, t + 1)), e[t + 1]];
8753
- }, of = Symbol.for("__confbox_fmt__"), sf = /^(\s+)/, cf = /(\s+)$/;
8754
- function lf(e, t = {}) {
8210
+ }, Ju = Symbol.for("__confbox_fmt__"), Yu = /^(\s+)/, Xu = /(\s+)$/;
8211
+ function Zu(e, t = {}) {
8755
8212
  var n, r;
8756
8213
  return {
8757
8214
  sample: t.indent === void 0 && t.preserveIndentation !== !1 && e.slice(0, (t == null ? void 0 : t.sampleSize) || 1024),
8758
8215
  whiteSpace: t.preserveWhitespace === !1 ? void 0 : {
8759
- start: ((n = sf.exec(e)) == null ? void 0 : n[0]) || "",
8760
- end: ((r = cf.exec(e)) == null ? void 0 : r[0]) || ""
8216
+ start: ((n = Yu.exec(e)) == null ? void 0 : n[0]) || "",
8217
+ end: ((r = Xu.exec(e)) == null ? void 0 : r[0]) || ""
8761
8218
  }
8762
8219
  };
8763
8220
  }
8764
- function uf(e, t, n) {
8765
- !t || typeof t != "object" || Object.defineProperty(t, of, {
8221
+ function Qu(e, t, n) {
8222
+ !t || typeof t != "object" || Object.defineProperty(t, Ju, {
8766
8223
  enumerable: !1,
8767
8224
  configurable: !0,
8768
8225
  writable: !0,
8769
- value: lf(e, n)
8226
+ value: Zu(e, n)
8770
8227
  });
8771
8228
  }
8772
8229
  //#endregion
8773
8230
  //#region node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs
8774
- function df(e) {
8231
+ function $u(e) {
8775
8232
  return e == null;
8776
8233
  }
8777
- function ff(e) {
8234
+ function ed(e) {
8778
8235
  return typeof e == "object" && !!e;
8779
8236
  }
8780
- function pf(e) {
8781
- return Array.isArray(e) ? e : df(e) ? [] : [e];
8237
+ function td(e) {
8238
+ return Array.isArray(e) ? e : $u(e) ? [] : [e];
8782
8239
  }
8783
- function mf(e, t) {
8240
+ function nd(e, t) {
8784
8241
  var n, r, i, a;
8785
8242
  if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
8786
8243
  return e;
8787
8244
  }
8788
- function hf(e, t) {
8245
+ function rd(e, t) {
8789
8246
  var n = "", r;
8790
8247
  for (r = 0; r < t; r += 1) n += e;
8791
8248
  return n;
8792
8249
  }
8793
- function gf(e) {
8250
+ function id(e) {
8794
8251
  return e === 0 && 1 / e == -1 / 0;
8795
8252
  }
8796
- var q = {
8797
- isNothing: df,
8798
- isObject: ff,
8799
- toArray: pf,
8800
- repeat: hf,
8801
- isNegativeZero: gf,
8802
- extend: mf
8253
+ var K = {
8254
+ isNothing: $u,
8255
+ isObject: ed,
8256
+ toArray: td,
8257
+ repeat: rd,
8258
+ isNegativeZero: id,
8259
+ extend: nd
8803
8260
  };
8804
- function _f(e, t) {
8261
+ function ad(e, t) {
8805
8262
  var n = "", r = e.reason || "(unknown reason)";
8806
8263
  return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
8807
8264
  }
8808
- function vf(e, t) {
8809
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = _f(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = Error().stack || "";
8265
+ function od(e, t) {
8266
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = ad(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = Error().stack || "";
8810
8267
  }
8811
- vf.prototype = Object.create(Error.prototype), vf.prototype.constructor = vf, vf.prototype.toString = function(e) {
8812
- return this.name + ": " + _f(this, e);
8268
+ od.prototype = Object.create(Error.prototype), od.prototype.constructor = od, od.prototype.toString = function(e) {
8269
+ return this.name + ": " + ad(this, e);
8813
8270
  };
8814
- var J = vf;
8815
- function yf(e, t, n, r, i) {
8271
+ var q = od;
8272
+ function sd(e, t, n, r, i) {
8816
8273
  var a = "", o = "", s = Math.floor(i / 2) - 1;
8817
8274
  return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
8818
8275
  str: a + e.slice(t, n).replace(/\t/g, "→") + o,
8819
8276
  pos: r - t + a.length
8820
8277
  };
8821
8278
  }
8822
- function bf(e, t) {
8823
- return q.repeat(" ", t - e.length) + e;
8279
+ function cd(e, t) {
8280
+ return K.repeat(" ", t - e.length) + e;
8824
8281
  }
8825
- function xf(e, t) {
8282
+ function ld(e, t) {
8826
8283
  var n;
8827
8284
  if (t = Object.create(t || null), !e.buffer) return null;
8828
8285
  (n = t).maxLength || (n.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
8829
8286
  for (var r = /\r?\n|\r|\0/g, i = [0], a = [], o, s = -1; o = r.exec(e.buffer);) a.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && s < 0 && (s = i.length - 2);
8830
8287
  s < 0 && (s = i.length - 1);
8831
8288
  var c = "", l, u, d = Math.min(e.line + t.linesAfter, a.length).toString().length, f = t.maxLength - (t.indent + d + 3);
8832
- for (l = 1; l <= t.linesBefore && !(s - l < 0); l++) u = yf(e.buffer, i[s - l], a[s - l], e.position - (i[s] - i[s - l]), f), c = q.repeat(" ", t.indent) + bf((e.line - l + 1).toString(), d) + " | " + u.str + "\n" + c;
8833
- for (u = yf(e.buffer, i[s], a[s], e.position, f), c += q.repeat(" ", t.indent) + bf((e.line + 1).toString(), d) + " | " + u.str + "\n", c += q.repeat("-", t.indent + d + 3 + u.pos) + "^\n", l = 1; l <= t.linesAfter && !(s + l >= a.length); l++) u = yf(e.buffer, i[s + l], a[s + l], e.position - (i[s] - i[s + l]), f), c += q.repeat(" ", t.indent) + bf((e.line + l + 1).toString(), d) + " | " + u.str + "\n";
8289
+ for (l = 1; l <= t.linesBefore && !(s - l < 0); l++) u = sd(e.buffer, i[s - l], a[s - l], e.position - (i[s] - i[s - l]), f), c = K.repeat(" ", t.indent) + cd((e.line - l + 1).toString(), d) + " | " + u.str + "\n" + c;
8290
+ for (u = sd(e.buffer, i[s], a[s], e.position, f), c += K.repeat(" ", t.indent) + cd((e.line + 1).toString(), d) + " | " + u.str + "\n", c += K.repeat("-", t.indent + d + 3 + u.pos) + "^\n", l = 1; l <= t.linesAfter && !(s + l >= a.length); l++) u = sd(e.buffer, i[s + l], a[s + l], e.position - (i[s] - i[s + l]), f), c += K.repeat(" ", t.indent) + cd((e.line + l + 1).toString(), d) + " | " + u.str + "\n";
8834
8291
  return c.replace(/\n$/, "");
8835
8292
  }
8836
- var Sf = xf, Cf = [
8293
+ var ud = ld, dd = [
8837
8294
  "kind",
8838
8295
  "multi",
8839
8296
  "resolve",
@@ -8844,12 +8301,12 @@ var Sf = xf, Cf = [
8844
8301
  "representName",
8845
8302
  "defaultStyle",
8846
8303
  "styleAliases"
8847
- ], wf = [
8304
+ ], fd = [
8848
8305
  "scalar",
8849
8306
  "sequence",
8850
8307
  "mapping"
8851
8308
  ];
8852
- function Tf(e) {
8309
+ function pd(e) {
8853
8310
  var t = {};
8854
8311
  return e !== null && Object.keys(e).forEach(function(n) {
8855
8312
  e[n].forEach(function(e) {
@@ -8857,17 +8314,17 @@ function Tf(e) {
8857
8314
  });
8858
8315
  }), t;
8859
8316
  }
8860
- function Ef(e, t) {
8317
+ function md(e, t) {
8861
8318
  if (t || (t = {}), Object.keys(t).forEach(function(t) {
8862
- if (Cf.indexOf(t) === -1) throw new J("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
8319
+ if (dd.indexOf(t) === -1) throw new q("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
8863
8320
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
8864
8321
  return !0;
8865
8322
  }, this.construct = t.construct || function(e) {
8866
8323
  return e;
8867
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Tf(t.styleAliases || null), wf.indexOf(this.kind) === -1) throw new J("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
8324
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = pd(t.styleAliases || null), fd.indexOf(this.kind) === -1) throw new q("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
8868
8325
  }
8869
- var Y = Ef;
8870
- function Df(e, t) {
8326
+ var J = md;
8327
+ function hd(e, t) {
8871
8328
  var n = [];
8872
8329
  return e[t].forEach(function(e) {
8873
8330
  var t = n.length;
@@ -8876,7 +8333,7 @@ function Df(e, t) {
8876
8333
  }), n[t] = e;
8877
8334
  }), n;
8878
8335
  }
8879
- function Of() {
8336
+ function gd() {
8880
8337
  var e = {
8881
8338
  scalar: {},
8882
8339
  sequence: {},
@@ -8895,61 +8352,61 @@ function Of() {
8895
8352
  for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
8896
8353
  return e;
8897
8354
  }
8898
- function kf(e) {
8355
+ function _d(e) {
8899
8356
  return this.extend(e);
8900
8357
  }
8901
- kf.prototype.extend = function(e) {
8358
+ _d.prototype.extend = function(e) {
8902
8359
  var t = [], n = [];
8903
- if (e instanceof Y) n.push(e);
8360
+ if (e instanceof J) n.push(e);
8904
8361
  else if (Array.isArray(e)) n = n.concat(e);
8905
8362
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
8906
- else throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
8363
+ else throw new q("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
8907
8364
  t.forEach(function(e) {
8908
- if (!(e instanceof Y)) throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8909
- if (e.loadKind && e.loadKind !== "scalar") throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
8910
- if (e.multi) throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
8365
+ if (!(e instanceof J)) throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8366
+ if (e.loadKind && e.loadKind !== "scalar") throw new q("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
8367
+ if (e.multi) throw new q("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
8911
8368
  }), n.forEach(function(e) {
8912
- if (!(e instanceof Y)) throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8369
+ if (!(e instanceof J)) throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8913
8370
  });
8914
- var r = Object.create(kf.prototype);
8915
- return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Df(r, "implicit"), r.compiledExplicit = Df(r, "explicit"), r.compiledTypeMap = Of(r.compiledImplicit, r.compiledExplicit), r;
8371
+ var r = Object.create(_d.prototype);
8372
+ return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = hd(r, "implicit"), r.compiledExplicit = hd(r, "explicit"), r.compiledTypeMap = gd(r.compiledImplicit, r.compiledExplicit), r;
8916
8373
  };
8917
- var Af = new kf({ explicit: [
8918
- new Y("tag:yaml.org,2002:str", {
8374
+ var vd = new _d({ explicit: [
8375
+ new J("tag:yaml.org,2002:str", {
8919
8376
  kind: "scalar",
8920
8377
  construct: function(e) {
8921
8378
  return e === null ? "" : e;
8922
8379
  }
8923
8380
  }),
8924
- new Y("tag:yaml.org,2002:seq", {
8381
+ new J("tag:yaml.org,2002:seq", {
8925
8382
  kind: "sequence",
8926
8383
  construct: function(e) {
8927
8384
  return e === null ? [] : e;
8928
8385
  }
8929
8386
  }),
8930
- new Y("tag:yaml.org,2002:map", {
8387
+ new J("tag:yaml.org,2002:map", {
8931
8388
  kind: "mapping",
8932
8389
  construct: function(e) {
8933
8390
  return e === null ? {} : e;
8934
8391
  }
8935
8392
  })
8936
8393
  ] });
8937
- function jf(e) {
8394
+ function yd(e) {
8938
8395
  if (e === null) return !0;
8939
8396
  var t = e.length;
8940
8397
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
8941
8398
  }
8942
- function Mf() {
8399
+ function bd() {
8943
8400
  return null;
8944
8401
  }
8945
- function Nf(e) {
8402
+ function xd(e) {
8946
8403
  return e === null;
8947
8404
  }
8948
- var Pf = new Y("tag:yaml.org,2002:null", {
8405
+ var Sd = new J("tag:yaml.org,2002:null", {
8949
8406
  kind: "scalar",
8950
- resolve: jf,
8951
- construct: Mf,
8952
- predicate: Nf,
8407
+ resolve: yd,
8408
+ construct: bd,
8409
+ predicate: xd,
8953
8410
  represent: {
8954
8411
  canonical: function() {
8955
8412
  return "~";
@@ -8969,22 +8426,22 @@ var Pf = new Y("tag:yaml.org,2002:null", {
8969
8426
  },
8970
8427
  defaultStyle: "lowercase"
8971
8428
  });
8972
- function Ff(e) {
8429
+ function Cd(e) {
8973
8430
  if (e === null) return !1;
8974
8431
  var t = e.length;
8975
8432
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
8976
8433
  }
8977
- function If(e) {
8434
+ function wd(e) {
8978
8435
  return e === "true" || e === "True" || e === "TRUE";
8979
8436
  }
8980
- function Lf(e) {
8437
+ function Td(e) {
8981
8438
  return Object.prototype.toString.call(e) === "[object Boolean]";
8982
8439
  }
8983
- var Rf = new Y("tag:yaml.org,2002:bool", {
8440
+ var Ed = new J("tag:yaml.org,2002:bool", {
8984
8441
  kind: "scalar",
8985
- resolve: Ff,
8986
- construct: If,
8987
- predicate: Lf,
8442
+ resolve: Cd,
8443
+ construct: wd,
8444
+ predicate: Td,
8988
8445
  represent: {
8989
8446
  lowercase: function(e) {
8990
8447
  return e ? "true" : "false";
@@ -8998,16 +8455,16 @@ var Rf = new Y("tag:yaml.org,2002:bool", {
8998
8455
  },
8999
8456
  defaultStyle: "lowercase"
9000
8457
  });
9001
- function zf(e) {
8458
+ function Dd(e) {
9002
8459
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
9003
8460
  }
9004
- function Bf(e) {
8461
+ function Od(e) {
9005
8462
  return 48 <= e && e <= 55;
9006
8463
  }
9007
- function Vf(e) {
8464
+ function kd(e) {
9008
8465
  return 48 <= e && e <= 57;
9009
8466
  }
9010
- function Hf(e) {
8467
+ function Ad(e) {
9011
8468
  if (e === null) return !1;
9012
8469
  var t = e.length, n = 0, r = !1, i;
9013
8470
  if (!t) return !1;
@@ -9022,14 +8479,14 @@ function Hf(e) {
9022
8479
  }
9023
8480
  if (i === "x") {
9024
8481
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
9025
- if (!zf(e.charCodeAt(n))) return !1;
8482
+ if (!Dd(e.charCodeAt(n))) return !1;
9026
8483
  r = !0;
9027
8484
  }
9028
8485
  return r && i !== "_";
9029
8486
  }
9030
8487
  if (i === "o") {
9031
8488
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
9032
- if (!Bf(e.charCodeAt(n))) return !1;
8489
+ if (!Od(e.charCodeAt(n))) return !1;
9033
8490
  r = !0;
9034
8491
  }
9035
8492
  return r && i !== "_";
@@ -9037,12 +8494,12 @@ function Hf(e) {
9037
8494
  }
9038
8495
  if (i === "_") return !1;
9039
8496
  for (; n < t; n++) if (i = e[n], i !== "_") {
9040
- if (!Vf(e.charCodeAt(n))) return !1;
8497
+ if (!kd(e.charCodeAt(n))) return !1;
9041
8498
  r = !0;
9042
8499
  }
9043
8500
  return !(!r || i === "_");
9044
8501
  }
9045
- function Uf(e) {
8502
+ function jd(e) {
9046
8503
  var t = e, n = 1, r;
9047
8504
  if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
9048
8505
  if (r === "0") {
@@ -9052,14 +8509,14 @@ function Uf(e) {
9052
8509
  }
9053
8510
  return n * parseInt(t, 10);
9054
8511
  }
9055
- function Wf(e) {
9056
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !q.isNegativeZero(e);
8512
+ function Md(e) {
8513
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !K.isNegativeZero(e);
9057
8514
  }
9058
- var Gf = new Y("tag:yaml.org,2002:int", {
8515
+ var Nd = new J("tag:yaml.org,2002:int", {
9059
8516
  kind: "scalar",
9060
- resolve: Hf,
9061
- construct: Uf,
9062
- predicate: Wf,
8517
+ resolve: Ad,
8518
+ construct: jd,
8519
+ predicate: Md,
9063
8520
  represent: {
9064
8521
  binary: function(e) {
9065
8522
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -9081,16 +8538,16 @@ var Gf = new Y("tag:yaml.org,2002:int", {
9081
8538
  decimal: [10, "dec"],
9082
8539
  hexadecimal: [16, "hex"]
9083
8540
  }
9084
- }), Kf = RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
9085
- function qf(e) {
9086
- return !(e === null || !Kf.test(e) || e[e.length - 1] === "_");
8541
+ }), Pd = RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
8542
+ function Fd(e) {
8543
+ return !(e === null || !Pd.test(e) || e[e.length - 1] === "_");
9087
8544
  }
9088
- function Jf(e) {
8545
+ function Id(e) {
9089
8546
  var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
9090
8547
  return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? 1 / 0 : -1 / 0 : t === ".nan" ? NaN : n * parseFloat(t, 10);
9091
8548
  }
9092
- var Yf = /^[-+]?[0-9]+e/;
9093
- function Xf(e, t) {
8549
+ var Ld = /^[-+]?[0-9]+e/;
8550
+ function Rd(e, t) {
9094
8551
  var n;
9095
8552
  if (isNaN(e)) switch (t) {
9096
8553
  case "lowercase": return ".nan";
@@ -9107,31 +8564,31 @@ function Xf(e, t) {
9107
8564
  case "uppercase": return "-.INF";
9108
8565
  case "camelcase": return "-.Inf";
9109
8566
  }
9110
- else if (q.isNegativeZero(e)) return "-0.0";
9111
- return n = e.toString(10), Yf.test(n) ? n.replace("e", ".e") : n;
8567
+ else if (K.isNegativeZero(e)) return "-0.0";
8568
+ return n = e.toString(10), Ld.test(n) ? n.replace("e", ".e") : n;
9112
8569
  }
9113
- function Zf(e) {
9114
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || q.isNegativeZero(e));
8570
+ function zd(e) {
8571
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || K.isNegativeZero(e));
9115
8572
  }
9116
- var Qf = new Y("tag:yaml.org,2002:float", {
8573
+ var Bd = new J("tag:yaml.org,2002:float", {
9117
8574
  kind: "scalar",
9118
- resolve: qf,
9119
- construct: Jf,
9120
- predicate: Zf,
9121
- represent: Xf,
8575
+ resolve: Fd,
8576
+ construct: Id,
8577
+ predicate: zd,
8578
+ represent: Rd,
9122
8579
  defaultStyle: "lowercase"
9123
- }), $f = Af.extend({ implicit: [
9124
- Pf,
9125
- Rf,
9126
- Gf,
9127
- Qf
9128
- ] }), ep = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), tp = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
9129
- function np(e) {
9130
- return e === null ? !1 : ep.exec(e) !== null || tp.exec(e) !== null;
9131
- }
9132
- function rp(e) {
8580
+ }), Vd = vd.extend({ implicit: [
8581
+ Sd,
8582
+ Ed,
8583
+ Nd,
8584
+ Bd
8585
+ ] }), Hd = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Ud = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
8586
+ function Wd(e) {
8587
+ return e === null ? !1 : Hd.exec(e) !== null || Ud.exec(e) !== null;
8588
+ }
8589
+ function Gd(e) {
9133
8590
  var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
9134
- if (t = ep.exec(e), t === null && (t = tp.exec(e)), t === null) throw Error("Date resolve error");
8591
+ if (t = Hd.exec(e), t === null && (t = Ud.exec(e)), t === null) throw Error("Date resolve error");
9135
8592
  if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
9136
8593
  if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
9137
8594
  for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
@@ -9139,58 +8596,58 @@ function rp(e) {
9139
8596
  }
9140
8597
  return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
9141
8598
  }
9142
- function ip(e) {
8599
+ function Kd(e) {
9143
8600
  return e.toISOString();
9144
8601
  }
9145
- var ap = new Y("tag:yaml.org,2002:timestamp", {
8602
+ var qd = new J("tag:yaml.org,2002:timestamp", {
9146
8603
  kind: "scalar",
9147
- resolve: np,
9148
- construct: rp,
8604
+ resolve: Wd,
8605
+ construct: Gd,
9149
8606
  instanceOf: Date,
9150
- represent: ip
8607
+ represent: Kd
9151
8608
  });
9152
- function op(e) {
8609
+ function Jd(e) {
9153
8610
  return e === "<<" || e === null;
9154
8611
  }
9155
- var sp = new Y("tag:yaml.org,2002:merge", {
8612
+ var Yd = new J("tag:yaml.org,2002:merge", {
9156
8613
  kind: "scalar",
9157
- resolve: op
9158
- }), cp = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
9159
- function lp(e) {
8614
+ resolve: Jd
8615
+ }), Xd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
8616
+ function Zd(e) {
9160
8617
  if (e === null) return !1;
9161
- var t, n, r = 0, i = e.length, a = cp;
8618
+ var t, n, r = 0, i = e.length, a = Xd;
9162
8619
  for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
9163
8620
  if (t < 0) return !1;
9164
8621
  r += 6;
9165
8622
  }
9166
8623
  return r % 8 == 0;
9167
8624
  }
9168
- function up(e) {
9169
- var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = cp, o = 0, s = [];
8625
+ function Qd(e) {
8626
+ var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = Xd, o = 0, s = [];
9170
8627
  for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
9171
8628
  return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
9172
8629
  }
9173
- function dp(e) {
9174
- var t = "", n = 0, r, i, a = e.length, o = cp;
8630
+ function $d(e) {
8631
+ var t = "", n = 0, r, i, a = e.length, o = Xd;
9175
8632
  for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
9176
8633
  return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
9177
8634
  }
9178
- function fp(e) {
8635
+ function ef(e) {
9179
8636
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
9180
8637
  }
9181
- var pp = new Y("tag:yaml.org,2002:binary", {
8638
+ var tf = new J("tag:yaml.org,2002:binary", {
9182
8639
  kind: "scalar",
9183
- resolve: lp,
9184
- construct: up,
9185
- predicate: fp,
9186
- represent: dp
9187
- }), mp = Object.prototype.hasOwnProperty, hp = Object.prototype.toString;
9188
- function gp(e) {
8640
+ resolve: Zd,
8641
+ construct: Qd,
8642
+ predicate: ef,
8643
+ represent: $d
8644
+ }), nf = Object.prototype.hasOwnProperty, rf = Object.prototype.toString;
8645
+ function af(e) {
9189
8646
  if (e === null) return !0;
9190
8647
  var t = [], n, r, i, a, o, s = e;
9191
8648
  for (n = 0, r = s.length; n < r; n += 1) {
9192
- if (i = s[n], o = !1, hp.call(i) !== "[object Object]") return !1;
9193
- for (a in i) if (mp.call(i, a)) {
8649
+ if (i = s[n], o = !1, rf.call(i) !== "[object Object]") return !1;
8650
+ for (a in i) if (nf.call(i, a)) {
9194
8651
  if (!o) o = !0;
9195
8652
  else return !1;
9196
8653
  }
@@ -9200,88 +8657,88 @@ function gp(e) {
9200
8657
  }
9201
8658
  return !0;
9202
8659
  }
9203
- function _p(e) {
8660
+ function of(e) {
9204
8661
  return e === null ? [] : e;
9205
8662
  }
9206
- var vp = new Y("tag:yaml.org,2002:omap", {
8663
+ var sf = new J("tag:yaml.org,2002:omap", {
9207
8664
  kind: "sequence",
9208
- resolve: gp,
9209
- construct: _p
9210
- }), yp = Object.prototype.toString;
9211
- function bp(e) {
8665
+ resolve: af,
8666
+ construct: of
8667
+ }), cf = Object.prototype.toString;
8668
+ function lf(e) {
9212
8669
  if (e === null) return !0;
9213
8670
  var t, n, r, i, a, o = e;
9214
8671
  for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
9215
- if (r = o[t], yp.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
8672
+ if (r = o[t], cf.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
9216
8673
  a[t] = [i[0], r[i[0]]];
9217
8674
  }
9218
8675
  return !0;
9219
8676
  }
9220
- function xp(e) {
8677
+ function uf(e) {
9221
8678
  if (e === null) return [];
9222
8679
  var t, n, r, i, a, o = e;
9223
8680
  for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
9224
8681
  return a;
9225
8682
  }
9226
- var Sp = new Y("tag:yaml.org,2002:pairs", {
8683
+ var df = new J("tag:yaml.org,2002:pairs", {
9227
8684
  kind: "sequence",
9228
- resolve: bp,
9229
- construct: xp
9230
- }), Cp = Object.prototype.hasOwnProperty;
9231
- function wp(e) {
8685
+ resolve: lf,
8686
+ construct: uf
8687
+ }), ff = Object.prototype.hasOwnProperty;
8688
+ function pf(e) {
9232
8689
  if (e === null) return !0;
9233
8690
  var t, n = e;
9234
- for (t in n) if (Cp.call(n, t) && n[t] !== null) return !1;
8691
+ for (t in n) if (ff.call(n, t) && n[t] !== null) return !1;
9235
8692
  return !0;
9236
8693
  }
9237
- function Tp(e) {
8694
+ function mf(e) {
9238
8695
  return e === null ? {} : e;
9239
8696
  }
9240
- var Ep = new Y("tag:yaml.org,2002:set", {
8697
+ var hf = new J("tag:yaml.org,2002:set", {
9241
8698
  kind: "mapping",
9242
- resolve: wp,
9243
- construct: Tp
9244
- }), Dp = $f.extend({
9245
- implicit: [ap, sp],
8699
+ resolve: pf,
8700
+ construct: mf
8701
+ }), gf = Vd.extend({
8702
+ implicit: [qd, Yd],
9246
8703
  explicit: [
9247
- pp,
9248
- vp,
9249
- Sp,
9250
- Ep
8704
+ tf,
8705
+ sf,
8706
+ df,
8707
+ hf
9251
8708
  ]
9252
- }), Op = Object.prototype.hasOwnProperty, kp = 1, Ap = 2, jp = 3, Mp = 4, Np = 1, Pp = 2, Fp = 3, Ip = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Lp = /[\x85\u2028\u2029]/, Rp = /[,\[\]\{\}]/, zp = /^(?:!|!!|![a-z\-]+!)$/i, Bp = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
9253
- function Vp(e) {
8709
+ }), _f = Object.prototype.hasOwnProperty, vf = 1, yf = 2, bf = 3, xf = 4, Sf = 1, Cf = 2, wf = 3, Tf = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ef = /[\x85\u2028\u2029]/, Df = /[,\[\]\{\}]/, Of = /^(?:!|!!|![a-z\-]+!)$/i, kf = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
8710
+ function Af(e) {
9254
8711
  return Object.prototype.toString.call(e);
9255
8712
  }
9256
- function Hp(e) {
8713
+ function jf(e) {
9257
8714
  return e === 10 || e === 13;
9258
8715
  }
9259
- function Up(e) {
8716
+ function Mf(e) {
9260
8717
  return e === 9 || e === 32;
9261
8718
  }
9262
- function Wp(e) {
8719
+ function Y(e) {
9263
8720
  return e === 9 || e === 32 || e === 10 || e === 13;
9264
8721
  }
9265
- function Gp(e) {
8722
+ function Nf(e) {
9266
8723
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
9267
8724
  }
9268
- function Kp(e) {
8725
+ function Pf(e) {
9269
8726
  var t;
9270
8727
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
9271
8728
  }
9272
- function qp(e) {
8729
+ function Ff(e) {
9273
8730
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
9274
8731
  }
9275
- function Jp(e) {
8732
+ function If(e) {
9276
8733
  return 48 <= e && e <= 57 ? e - 48 : -1;
9277
8734
  }
9278
- function Yp(e) {
8735
+ function Lf(e) {
9279
8736
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
9280
8737
  }
9281
- function Xp(e) {
8738
+ function Rf(e) {
9282
8739
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
9283
8740
  }
9284
- function Zp(e, t, n) {
8741
+ function zf(e, t, n) {
9285
8742
  t === "__proto__" ? Object.defineProperty(e, t, {
9286
8743
  configurable: !0,
9287
8744
  enumerable: !0,
@@ -9289,11 +8746,11 @@ function Zp(e, t, n) {
9289
8746
  value: n
9290
8747
  }) : e[t] = n;
9291
8748
  }
9292
- for (var Qp = Array(256), $p = Array(256), em = 0; em < 256; em++) Qp[em] = +!!Yp(em), $p[em] = Yp(em);
9293
- function tm(e, t) {
9294
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || Dp, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
8749
+ for (var Bf = Array(256), Vf = Array(256), Hf = 0; Hf < 256; Hf++) Bf[Hf] = +!!Lf(Hf), Vf[Hf] = Lf(Hf);
8750
+ function Uf(e, t) {
8751
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || gf, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
9295
8752
  }
9296
- function nm(e, t) {
8753
+ function Wf(e, t) {
9297
8754
  var n = {
9298
8755
  name: e.filename,
9299
8756
  buffer: e.input.slice(0, -1),
@@ -9301,22 +8758,22 @@ function nm(e, t) {
9301
8758
  line: e.line,
9302
8759
  column: e.position - e.lineStart
9303
8760
  };
9304
- return n.snippet = Sf(n), new J(t, n);
8761
+ return n.snippet = ud(n), new q(t, n);
9305
8762
  }
9306
8763
  function X(e, t) {
9307
- throw nm(e, t);
8764
+ throw Wf(e, t);
9308
8765
  }
9309
- function rm(e, t) {
9310
- e.onWarning && e.onWarning.call(null, nm(e, t));
8766
+ function Gf(e, t) {
8767
+ e.onWarning && e.onWarning.call(null, Wf(e, t));
9311
8768
  }
9312
- var im = {
8769
+ var Kf = {
9313
8770
  YAML: function(e, t, n) {
9314
8771
  var r, i, a;
9315
- e.version !== null && X(e, "duplication of %YAML directive"), n.length !== 1 && X(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && X(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && X(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && rm(e, "unsupported YAML version of the document");
8772
+ e.version !== null && X(e, "duplication of %YAML directive"), n.length !== 1 && X(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && X(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && X(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Gf(e, "unsupported YAML version of the document");
9316
8773
  },
9317
8774
  TAG: function(e, t, n) {
9318
8775
  var r, i;
9319
- n.length !== 2 && X(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], zp.test(r) || X(e, "ill-formed tag handle (first argument) of the TAG directive"), Op.call(e.tagMap, r) && X(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Bp.test(i) || X(e, "ill-formed tag prefix (second argument) of the TAG directive");
8776
+ n.length !== 2 && X(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Of.test(r) || X(e, "ill-formed tag handle (first argument) of the TAG directive"), _f.call(e.tagMap, r) && X(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), kf.test(i) || X(e, "ill-formed tag prefix (second argument) of the TAG directive");
9320
8777
  try {
9321
8778
  i = decodeURIComponent(i);
9322
8779
  } catch {
@@ -9325,59 +8782,59 @@ var im = {
9325
8782
  e.tagMap[r] = i;
9326
8783
  }
9327
8784
  };
9328
- function am(e, t, n, r) {
8785
+ function qf(e, t, n, r) {
9329
8786
  var i, a, o, s;
9330
8787
  if (t < n) {
9331
8788
  if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || X(e, "expected valid JSON character");
9332
- else Ip.test(s) && X(e, "the stream contains non-printable characters");
8789
+ else Tf.test(s) && X(e, "the stream contains non-printable characters");
9333
8790
  e.result += s;
9334
8791
  }
9335
8792
  }
9336
- function om(e, t, n, r) {
8793
+ function Jf(e, t, n, r) {
9337
8794
  var i, a, o, s;
9338
- for (q.isObject(n) || X(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], Op.call(t, a) || (Zp(t, a, n[a]), r[a] = !0);
8795
+ for (K.isObject(n) || X(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], _f.call(t, a) || (zf(t, a, n[a]), r[a] = !0);
9339
8796
  }
9340
- function sm(e, t, n, r, i, a, o, s, c) {
8797
+ function Yf(e, t, n, r, i, a, o, s, c) {
9341
8798
  var l, u;
9342
- if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && X(e, "nested arrays are not supported inside keys"), typeof i == "object" && Vp(i[l]) === "[object Object]" && (i[l] = "[object Object]");
9343
- if (typeof i == "object" && Vp(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
9344
- if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) om(e, t, a[l], n);
9345
- else om(e, t, a, n);
9346
- } else !e.json && !Op.call(n, i) && Op.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, X(e, "duplicated mapping key")), Zp(t, i, a), delete n[i];
8799
+ if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && X(e, "nested arrays are not supported inside keys"), typeof i == "object" && Af(i[l]) === "[object Object]" && (i[l] = "[object Object]");
8800
+ if (typeof i == "object" && Af(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
8801
+ if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) Jf(e, t, a[l], n);
8802
+ else Jf(e, t, a, n);
8803
+ } else !e.json && !_f.call(n, i) && _f.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, X(e, "duplicated mapping key")), zf(t, i, a), delete n[i];
9347
8804
  return t;
9348
8805
  }
9349
- function cm(e) {
8806
+ function Xf(e) {
9350
8807
  var t = e.input.charCodeAt(e.position);
9351
8808
  t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : X(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
9352
8809
  }
9353
8810
  function Z(e, t, n) {
9354
8811
  for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
9355
- for (; Up(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
8812
+ for (; Mf(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
9356
8813
  if (t && i === 35) do
9357
8814
  i = e.input.charCodeAt(++e.position);
9358
8815
  while (i !== 10 && i !== 13 && i !== 0);
9359
- if (Hp(i)) for (cm(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
8816
+ if (jf(i)) for (Xf(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
9360
8817
  else break;
9361
8818
  }
9362
- return n !== -1 && r !== 0 && e.lineIndent < n && rm(e, "deficient indentation"), r;
8819
+ return n !== -1 && r !== 0 && e.lineIndent < n && Gf(e, "deficient indentation"), r;
9363
8820
  }
9364
- function lm(e) {
8821
+ function Zf(e) {
9365
8822
  var t = e.position, n = e.input.charCodeAt(t);
9366
- return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || Wp(n)));
8823
+ return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || Y(n)));
9367
8824
  }
9368
- function um(e, t) {
9369
- t === 1 ? e.result += " " : t > 1 && (e.result += q.repeat("\n", t - 1));
8825
+ function Qf(e, t) {
8826
+ t === 1 ? e.result += " " : t > 1 && (e.result += K.repeat("\n", t - 1));
9370
8827
  }
9371
- function dm(e, t, n) {
8828
+ function $f(e, t, n) {
9372
8829
  var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
9373
- if (Wp(p) || Gp(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), Wp(i) || n && Gp(i))) return !1;
8830
+ if (Y(p) || Nf(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), Y(i) || n && Nf(i))) return !1;
9374
8831
  for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
9375
8832
  if (p === 58) {
9376
- if (i = e.input.charCodeAt(e.position + 1), Wp(i) || n && Gp(i)) break;
8833
+ if (i = e.input.charCodeAt(e.position + 1), Y(i) || n && Nf(i)) break;
9377
8834
  } else if (p === 35) {
9378
- if (r = e.input.charCodeAt(e.position - 1), Wp(r)) break;
9379
- } else if (e.position === e.lineStart && lm(e) || n && Gp(p)) break;
9380
- else if (Hp(p)) {
8835
+ if (r = e.input.charCodeAt(e.position - 1), Y(r)) break;
8836
+ } else if (e.position === e.lineStart && Zf(e) || n && Nf(p)) break;
8837
+ else if (jf(p)) {
9381
8838
  if (c = e.line, l = e.lineStart, u = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
9382
8839
  s = !0, p = e.input.charCodeAt(e.position);
9383
8840
  continue;
@@ -9385,110 +8842,110 @@ function dm(e, t, n) {
9385
8842
  e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
9386
8843
  break;
9387
8844
  }
9388
- s && (s = (am(e, a, o, !1), um(e, e.line - c), a = o = e.position, !1)), Up(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
8845
+ s && (s = (qf(e, a, o, !1), Qf(e, e.line - c), a = o = e.position, !1)), Mf(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
9389
8846
  }
9390
- return am(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
8847
+ return qf(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
9391
8848
  }
9392
- function fm(e, t) {
8849
+ function ep(e, t) {
9393
8850
  var n = e.input.charCodeAt(e.position), r, i;
9394
8851
  if (n !== 39) return !1;
9395
8852
  for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) {
9396
- if (am(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
8853
+ if (qf(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
9397
8854
  else return !0;
9398
- } else Hp(n) ? (am(e, r, i, !0), um(e, Z(e, !1, t)), r = i = e.position) : e.position === e.lineStart && lm(e) ? X(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
8855
+ } else jf(n) ? (qf(e, r, i, !0), Qf(e, Z(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Zf(e) ? X(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
9399
8856
  X(e, "unexpected end of the stream within a single quoted scalar");
9400
8857
  }
9401
- function pm(e, t) {
8858
+ function tp(e, t) {
9402
8859
  var n, r, i, a, o, s = e.input.charCodeAt(e.position);
9403
8860
  if (s !== 34) return !1;
9404
- for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return am(e, n, e.position, !0), e.position++, !0;
8861
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return qf(e, n, e.position, !0), e.position++, !0;
9405
8862
  else if (s === 92) {
9406
- if (am(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), Hp(s)) Z(e, !1, t);
9407
- else if (s < 256 && Qp[s]) e.result += $p[s], e.position++;
9408
- else if ((o = qp(s)) > 0) {
9409
- for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Kp(s)) >= 0 ? a = (a << 4) + o : X(e, "expected hexadecimal character");
9410
- e.result += Xp(a), e.position++;
8863
+ if (qf(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), jf(s)) Z(e, !1, t);
8864
+ else if (s < 256 && Bf[s]) e.result += Vf[s], e.position++;
8865
+ else if ((o = Ff(s)) > 0) {
8866
+ for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Pf(s)) >= 0 ? a = (a << 4) + o : X(e, "expected hexadecimal character");
8867
+ e.result += Rf(a), e.position++;
9411
8868
  } else X(e, "unknown escape sequence");
9412
8869
  n = r = e.position;
9413
- } else Hp(s) ? (am(e, n, r, !0), um(e, Z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && lm(e) ? X(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
8870
+ } else jf(s) ? (qf(e, n, r, !0), Qf(e, Z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Zf(e) ? X(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
9414
8871
  X(e, "unexpected end of the stream within a double quoted scalar");
9415
8872
  }
9416
- function mm(e, t) {
8873
+ function np(e, t) {
9417
8874
  var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
9418
8875
  if (v === 91) u = 93, p = !1, s = [];
9419
8876
  else if (v === 123) u = 125, p = !0, s = {};
9420
8877
  else return !1;
9421
8878
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
9422
8879
  if (Z(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
9423
- n ? v === 44 && X(e, "expected the node content, but found ','") : X(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), Wp(l) && (d = f = !0, e.position++, Z(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, xm(e, t, kp, !1, !0), g = e.tag, h = e.result, Z(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), Z(e, !0, t), xm(e, t, kp, !1, !0), _ = e.result), p ? sm(e, s, m, g, h, _, r, i, a) : d ? s.push(sm(e, null, m, g, h, _, r, i, a)) : s.push(h), Z(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
8880
+ n ? v === 44 && X(e, "expected the node content, but found ','") : X(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), Y(l) && (d = f = !0, e.position++, Z(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, lp(e, t, vf, !1, !0), g = e.tag, h = e.result, Z(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), Z(e, !0, t), lp(e, t, vf, !1, !0), _ = e.result), p ? Yf(e, s, m, g, h, _, r, i, a) : d ? s.push(Yf(e, null, m, g, h, _, r, i, a)) : s.push(h), Z(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
9424
8881
  }
9425
8882
  X(e, "unexpected end of the stream within a flow collection");
9426
8883
  }
9427
- function hm(e, t) {
9428
- var n, r, i = Np, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
8884
+ function rp(e, t) {
8885
+ var n, r, i = Sf, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
9429
8886
  if (d === 124) r = !1;
9430
8887
  else if (d === 62) r = !0;
9431
8888
  else return !1;
9432
- for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Np === i ? i = d === 43 ? Fp : Pp : X(e, "repeat of a chomping mode identifier");
9433
- else if ((u = Jp(d)) >= 0) u === 0 ? X(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? X(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
8889
+ for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Sf === i ? i = d === 43 ? wf : Cf : X(e, "repeat of a chomping mode identifier");
8890
+ else if ((u = If(d)) >= 0) u === 0 ? X(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? X(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
9434
8891
  else break;
9435
- if (Up(d)) {
8892
+ if (Mf(d)) {
9436
8893
  do
9437
8894
  d = e.input.charCodeAt(++e.position);
9438
- while (Up(d));
8895
+ while (Mf(d));
9439
8896
  if (d === 35) do
9440
8897
  d = e.input.charCodeAt(++e.position);
9441
- while (!Hp(d) && d !== 0);
8898
+ while (!jf(d) && d !== 0);
9442
8899
  }
9443
8900
  for (; d !== 0;) {
9444
- for (cm(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
9445
- if (!o && e.lineIndent > s && (s = e.lineIndent), Hp(d)) {
8901
+ for (Xf(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
8902
+ if (!o && e.lineIndent > s && (s = e.lineIndent), jf(d)) {
9446
8903
  c++;
9447
8904
  continue;
9448
8905
  }
9449
8906
  if (e.lineIndent < s) {
9450
- i === Fp ? e.result += q.repeat("\n", a ? 1 + c : c) : i === Np && a && (e.result += "\n");
8907
+ i === wf ? e.result += K.repeat("\n", a ? 1 + c : c) : i === Sf && a && (e.result += "\n");
9451
8908
  break;
9452
8909
  }
9453
- for (r ? Up(d) ? (l = !0, e.result += q.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += q.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += q.repeat("\n", c) : e.result += q.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !Hp(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
9454
- am(e, n, e.position, !1);
8910
+ for (r ? Mf(d) ? (l = !0, e.result += K.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += K.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += K.repeat("\n", c) : e.result += K.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !jf(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
8911
+ qf(e, n, e.position, !1);
9455
8912
  }
9456
8913
  return !0;
9457
8914
  }
9458
- function gm(e, t) {
8915
+ function ip(e, t) {
9459
8916
  var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
9460
8917
  if (e.firstTabInLine !== -1) return !1;
9461
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !Wp(o))));) {
8918
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !Y(o))));) {
9462
8919
  if (s = !0, e.position++, Z(e, !0, -1) && e.lineIndent <= t) {
9463
8920
  a.push(null), c = e.input.charCodeAt(e.position);
9464
8921
  continue;
9465
8922
  }
9466
- if (n = e.line, xm(e, t, jp, !1, !0), a.push(e.result), Z(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) X(e, "bad indentation of a sequence entry");
8923
+ if (n = e.line, lp(e, t, bf, !1, !0), a.push(e.result), Z(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) X(e, "bad indentation of a sequence entry");
9467
8924
  else if (e.lineIndent < t) break;
9468
8925
  }
9469
8926
  return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
9470
8927
  }
9471
- function _m(e, t, n) {
8928
+ function ap(e, t, n) {
9472
8929
  var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
9473
8930
  if (e.firstTabInLine !== -1) return !1;
9474
8931
  for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
9475
- if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && Wp(r)) v === 63 ? (g && (sm(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : X(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
8932
+ if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && Y(r)) v === 63 ? (g && (Yf(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : X(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
9476
8933
  else {
9477
- if (o = e.line, s = e.lineStart, c = e.position, !xm(e, n, Ap, !1, !0)) break;
8934
+ if (o = e.line, s = e.lineStart, c = e.position, !lp(e, n, yf, !1, !0)) break;
9478
8935
  if (e.line === a) {
9479
- for (v = e.input.charCodeAt(e.position); Up(v);) v = e.input.charCodeAt(++e.position);
9480
- if (v === 58) v = e.input.charCodeAt(++e.position), Wp(v) || X(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (sm(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
8936
+ for (v = e.input.charCodeAt(e.position); Mf(v);) v = e.input.charCodeAt(++e.position);
8937
+ if (v === 58) v = e.input.charCodeAt(++e.position), Y(v) || X(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (Yf(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
9481
8938
  else if (_) X(e, "can not read an implicit mapping pair; a colon is missed");
9482
8939
  else return e.tag = l, e.anchor = u, !0;
9483
8940
  } else if (_) X(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
9484
8941
  else return e.tag = l, e.anchor = u, !0;
9485
8942
  }
9486
- if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), xm(e, t, Mp, !0, i) && (g ? m = e.result : h = e.result), g || (sm(e, d, f, p, m, h, o, s, c), p = m = h = null), Z(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) X(e, "bad indentation of a mapping entry");
8943
+ if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), lp(e, t, xf, !0, i) && (g ? m = e.result : h = e.result), g || (Yf(e, d, f, p, m, h, o, s, c), p = m = h = null), Z(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) X(e, "bad indentation of a mapping entry");
9487
8944
  else if (e.lineIndent < t) break;
9488
8945
  }
9489
- return g && sm(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
8946
+ return g && Yf(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
9490
8947
  }
9491
- function vm(e) {
8948
+ function op(e) {
9492
8949
  var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
9493
8950
  if (o !== 33) return !1;
9494
8951
  if (e.tag !== null && X(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
@@ -9497,40 +8954,40 @@ function vm(e) {
9497
8954
  while (o !== 0 && o !== 62);
9498
8955
  e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : X(e, "unexpected end of the stream within a verbatim tag");
9499
8956
  } else {
9500
- for (; o !== 0 && !Wp(o);) o === 33 && (r ? X(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), zp.test(i) || X(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
9501
- a = e.input.slice(t, e.position), Rp.test(a) && X(e, "tag suffix cannot contain flow indicator characters");
8957
+ for (; o !== 0 && !Y(o);) o === 33 && (r ? X(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Of.test(i) || X(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
8958
+ a = e.input.slice(t, e.position), Df.test(a) && X(e, "tag suffix cannot contain flow indicator characters");
9502
8959
  }
9503
- a && !Bp.test(a) && X(e, "tag name cannot contain such characters: " + a);
8960
+ a && !kf.test(a) && X(e, "tag name cannot contain such characters: " + a);
9504
8961
  try {
9505
8962
  a = decodeURIComponent(a);
9506
8963
  } catch {
9507
8964
  X(e, "tag name is malformed: " + a);
9508
8965
  }
9509
- return n ? e.tag = a : Op.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : X(e, "undeclared tag handle \"" + i + "\""), !0;
8966
+ return n ? e.tag = a : _f.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : X(e, "undeclared tag handle \"" + i + "\""), !0;
9510
8967
  }
9511
- function ym(e) {
8968
+ function sp(e) {
9512
8969
  var t, n = e.input.charCodeAt(e.position);
9513
8970
  if (n !== 38) return !1;
9514
- for (e.anchor !== null && X(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !Wp(n) && !Gp(n);) n = e.input.charCodeAt(++e.position);
8971
+ for (e.anchor !== null && X(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !Y(n) && !Nf(n);) n = e.input.charCodeAt(++e.position);
9515
8972
  return e.position === t && X(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
9516
8973
  }
9517
- function bm(e) {
8974
+ function cp(e) {
9518
8975
  var t, n, r = e.input.charCodeAt(e.position);
9519
8976
  if (r !== 42) return !1;
9520
- for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !Wp(r) && !Gp(r);) r = e.input.charCodeAt(++e.position);
9521
- return e.position === t && X(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Op.call(e.anchorMap, n) || X(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
8977
+ for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !Y(r) && !Nf(r);) r = e.input.charCodeAt(++e.position);
8978
+ return e.position === t && X(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), _f.call(e.anchorMap, n) || X(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
9522
8979
  }
9523
- function xm(e, t, n, r, i) {
8980
+ function lp(e, t, n, r, i) {
9524
8981
  var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
9525
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Mp === n || jp === n, r && Z(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; vm(e) || ym(e);) Z(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
9526
- if (s && (s = l || i), (c === 1 || Mp === n) && (h = kp === n || Ap === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (gm(e, g) || _m(e, g, h)) || mm(e, h) ? u = !0 : (o && hm(e, h) || fm(e, h) || pm(e, h) ? u = !0 : bm(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && X(e, "alias node should not have any properties")) : dm(e, h, kp === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && gm(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
8982
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = xf === n || bf === n, r && Z(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; op(e) || sp(e);) Z(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
8983
+ if (s && (s = l || i), (c === 1 || xf === n) && (h = vf === n || yf === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (ip(e, g) || ap(e, g, h)) || np(e, h) ? u = !0 : (o && rp(e, h) || ep(e, h) || tp(e, h) ? u = !0 : cp(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && X(e, "alias node should not have any properties")) : $f(e, h, vf === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && ip(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
9527
8984
  else if (e.tag === "?") {
9528
8985
  for (e.result !== null && e.kind !== "scalar" && X(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
9529
8986
  e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
9530
8987
  break;
9531
8988
  }
9532
8989
  } else if (e.tag !== "!") {
9533
- if (Op.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
8990
+ if (_f.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
9534
8991
  else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
9535
8992
  m = p[d];
9536
8993
  break;
@@ -9539,57 +8996,57 @@ function xm(e, t, n, r, i) {
9539
8996
  }
9540
8997
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
9541
8998
  }
9542
- function Sm(e) {
8999
+ function up(e) {
9543
9000
  var t = e.position, n, r, i, a = !1, o;
9544
9001
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (Z(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
9545
- for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !Wp(o);) o = e.input.charCodeAt(++e.position);
9002
+ for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !Y(o);) o = e.input.charCodeAt(++e.position);
9546
9003
  for (r = e.input.slice(n, e.position), i = [], r.length < 1 && X(e, "directive name must not be less than one character in length"); o !== 0;) {
9547
- for (; Up(o);) o = e.input.charCodeAt(++e.position);
9004
+ for (; Mf(o);) o = e.input.charCodeAt(++e.position);
9548
9005
  if (o === 35) {
9549
9006
  do
9550
9007
  o = e.input.charCodeAt(++e.position);
9551
- while (o !== 0 && !Hp(o));
9008
+ while (o !== 0 && !jf(o));
9552
9009
  break;
9553
9010
  }
9554
- if (Hp(o)) break;
9555
- for (n = e.position; o !== 0 && !Wp(o);) o = e.input.charCodeAt(++e.position);
9011
+ if (jf(o)) break;
9012
+ for (n = e.position; o !== 0 && !Y(o);) o = e.input.charCodeAt(++e.position);
9556
9013
  i.push(e.input.slice(n, e.position));
9557
9014
  }
9558
- o !== 0 && cm(e), Op.call(im, r) ? im[r](e, r, i) : rm(e, "unknown document directive \"" + r + "\"");
9015
+ o !== 0 && Xf(e), _f.call(Kf, r) ? Kf[r](e, r, i) : Gf(e, "unknown document directive \"" + r + "\"");
9559
9016
  }
9560
- if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : a && X(e, "directives end mark is expected"), xm(e, e.lineIndent - 1, Mp, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Lp.test(e.input.slice(t, e.position)) && rm(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && lm(e)) {
9017
+ if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : a && X(e, "directives end mark is expected"), lp(e, e.lineIndent - 1, xf, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Ef.test(e.input.slice(t, e.position)) && Gf(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Zf(e)) {
9561
9018
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
9562
9019
  return;
9563
9020
  }
9564
9021
  if (e.position < e.length - 1) X(e, "end of the stream or a document separator is expected");
9565
9022
  else return;
9566
9023
  }
9567
- function Cm(e, t) {
9024
+ function dp(e, t) {
9568
9025
  e = String(e), t || (t = {}), e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
9569
- var n = new tm(e, t), r = e.indexOf("\0");
9026
+ var n = new Uf(e, t), r = e.indexOf("\0");
9570
9027
  for (r !== -1 && (n.position = r, X(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
9571
- for (; n.position < n.length - 1;) Sm(n);
9028
+ for (; n.position < n.length - 1;) up(n);
9572
9029
  return n.documents;
9573
9030
  }
9574
- function wm(e, t, n) {
9031
+ function fp(e, t, n) {
9575
9032
  typeof t == "object" && t && n === void 0 && (n = t, t = null);
9576
- var r = Cm(e, n);
9033
+ var r = dp(e, n);
9577
9034
  if (typeof t != "function") return r;
9578
9035
  for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
9579
9036
  }
9580
- function Tm(e, t) {
9581
- var n = Cm(e, t);
9037
+ function pp(e, t) {
9038
+ var n = dp(e, t);
9582
9039
  if (n.length !== 0) {
9583
9040
  if (n.length === 1) return n[0];
9584
- throw new J("expected a single document in the stream, but found more");
9041
+ throw new q("expected a single document in the stream, but found more");
9585
9042
  }
9586
9043
  }
9587
- var Em = {
9588
- loadAll: wm,
9589
- load: Tm
9590
- }, Dm = Object.prototype.toString, Om = Object.prototype.hasOwnProperty, km = 65279, Am = 9, jm = 10, Mm = 13, Nm = 32, Pm = 33, Fm = 34, Im = 35, Lm = 37, Rm = 38, zm = 39, Bm = 42, Vm = 44, Hm = 45, Um = 58, Wm = 61, Gm = 62, Km = 63, qm = 64, Jm = 91, Ym = 93, Xm = 96, Zm = 123, Qm = 124, $m = 125, Q = {};
9044
+ var mp = {
9045
+ loadAll: fp,
9046
+ load: pp
9047
+ }, hp = Object.prototype.toString, gp = Object.prototype.hasOwnProperty, _p = 65279, vp = 9, yp = 10, bp = 13, xp = 32, Sp = 33, Cp = 34, wp = 35, Tp = 37, Ep = 38, Dp = 39, Op = 42, kp = 44, Ap = 45, jp = 58, Mp = 61, Np = 62, Pp = 63, Fp = 64, Ip = 91, Lp = 93, Rp = 96, zp = 123, Bp = 124, Vp = 125, Q = {};
9591
9048
  Q[0] = "\\0", Q[7] = "\\a", Q[8] = "\\b", Q[9] = "\\t", Q[10] = "\\n", Q[11] = "\\v", Q[12] = "\\f", Q[13] = "\\r", Q[27] = "\\e", Q[34] = "\\\"", Q[92] = "\\\\", Q[133] = "\\N", Q[160] = "\\_", Q[8232] = "\\L", Q[8233] = "\\P";
9592
- var eh = [
9049
+ var Hp = [
9593
9050
  "y",
9594
9051
  "Y",
9595
9052
  "yes",
@@ -9606,212 +9063,212 @@ var eh = [
9606
9063
  "off",
9607
9064
  "Off",
9608
9065
  "OFF"
9609
- ], th = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
9610
- function nh(e, t) {
9066
+ ], Up = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
9067
+ function Wp(e, t) {
9611
9068
  var n, r, i, a, o, s, c;
9612
9069
  if (t === null) return {};
9613
- for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Om.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
9070
+ for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && gp.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
9614
9071
  return n;
9615
9072
  }
9616
- function rh(e) {
9073
+ function Gp(e) {
9617
9074
  var t = e.toString(16).toUpperCase(), n, r;
9618
9075
  if (e <= 255) n = "x", r = 2;
9619
9076
  else if (e <= 65535) n = "u", r = 4;
9620
9077
  else if (e <= 4294967295) n = "U", r = 8;
9621
- else throw new J("code point within a string may not be greater than 0xFFFFFFFF");
9622
- return "\\" + n + q.repeat("0", r - t.length) + t;
9078
+ else throw new q("code point within a string may not be greater than 0xFFFFFFFF");
9079
+ return "\\" + n + K.repeat("0", r - t.length) + t;
9623
9080
  }
9624
- var ih = 1, ah = 2;
9625
- function oh(e) {
9626
- this.schema = e.schema || Dp, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = q.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = nh(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? ah : ih, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
9081
+ var Kp = 1, qp = 2;
9082
+ function Jp(e) {
9083
+ this.schema = e.schema || gf, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = K.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Wp(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? qp : Kp, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
9627
9084
  }
9628
- function sh(e, t) {
9629
- for (var n = q.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
9085
+ function Yp(e, t) {
9086
+ for (var n = K.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
9630
9087
  return a;
9631
9088
  }
9632
- function ch(e, t) {
9633
- return "\n" + q.repeat(" ", e.indent * t);
9089
+ function Xp(e, t) {
9090
+ return "\n" + K.repeat(" ", e.indent * t);
9634
9091
  }
9635
- function lh(e, t) {
9092
+ function Zp(e, t) {
9636
9093
  var n, r, i;
9637
9094
  for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
9638
9095
  return !1;
9639
9096
  }
9640
- function uh(e) {
9641
- return e === Nm || e === Am;
9097
+ function Qp(e) {
9098
+ return e === xp || e === vp;
9642
9099
  }
9643
- function dh(e) {
9644
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== km || 65536 <= e && e <= 1114111;
9100
+ function $p(e) {
9101
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== _p || 65536 <= e && e <= 1114111;
9645
9102
  }
9646
- function fh(e) {
9647
- return dh(e) && e !== km && e !== Mm && e !== jm;
9103
+ function em(e) {
9104
+ return $p(e) && e !== _p && e !== bp && e !== yp;
9648
9105
  }
9649
- function ph(e, t, n) {
9650
- var r = fh(e), i = r && !uh(e);
9651
- return (n ? r : r && e !== Vm && e !== Jm && e !== Ym && e !== Zm && e !== $m) && e !== Im && !(t === Um && !i) || fh(t) && !uh(t) && e === Im || t === Um && i;
9106
+ function tm(e, t, n) {
9107
+ var r = em(e), i = r && !Qp(e);
9108
+ return (n ? r : r && e !== kp && e !== Ip && e !== Lp && e !== zp && e !== Vp) && e !== wp && !(t === jp && !i) || em(t) && !Qp(t) && e === wp || t === jp && i;
9652
9109
  }
9653
- function mh(e) {
9654
- return dh(e) && e !== km && !uh(e) && e !== Hm && e !== Km && e !== Um && e !== Vm && e !== Jm && e !== Ym && e !== Zm && e !== $m && e !== Im && e !== Rm && e !== Bm && e !== Pm && e !== Qm && e !== Wm && e !== Gm && e !== zm && e !== Fm && e !== Lm && e !== qm && e !== Xm;
9110
+ function nm(e) {
9111
+ return $p(e) && e !== _p && !Qp(e) && e !== Ap && e !== Pp && e !== jp && e !== kp && e !== Ip && e !== Lp && e !== zp && e !== Vp && e !== wp && e !== Ep && e !== Op && e !== Sp && e !== Bp && e !== Mp && e !== Np && e !== Dp && e !== Cp && e !== Tp && e !== Fp && e !== Rp;
9655
9112
  }
9656
- function hh(e) {
9657
- return !uh(e) && e !== Um;
9113
+ function rm(e) {
9114
+ return !Qp(e) && e !== jp;
9658
9115
  }
9659
- function gh(e, t) {
9116
+ function im(e, t) {
9660
9117
  var n = e.charCodeAt(t), r;
9661
9118
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
9662
9119
  }
9663
- function _h(e) {
9120
+ function am(e) {
9664
9121
  return /^\n* /.test(e);
9665
9122
  }
9666
- var vh = 1, yh = 2, bh = 3, xh = 4, Sh = 5;
9667
- function Ch(e, t, n, r, i, a, o, s) {
9668
- var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = mh(gh(e, 0)) && hh(gh(e, e.length - 1));
9123
+ var om = 1, sm = 2, cm = 3, lm = 4, um = 5;
9124
+ function dm(e, t, n, r, i, a, o, s) {
9125
+ var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = nm(im(e, 0)) && rm(im(e, e.length - 1));
9669
9126
  if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
9670
- if (l = gh(e, c), !dh(l)) return Sh;
9671
- h && (h = ph(l, u, s)), u = l;
9127
+ if (l = im(e, c), !$p(l)) return um;
9128
+ h && (h = tm(l, u, s)), u = l;
9672
9129
  }
9673
9130
  else {
9674
9131
  for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
9675
- if (l = gh(e, c), l === jm) d = !0, p && (f || (f = c - m - 1 > r && e[m + 1] !== " "), m = c);
9676
- else if (!dh(l)) return Sh;
9677
- h && (h = ph(l, u, s)), u = l;
9132
+ if (l = im(e, c), l === yp) d = !0, p && (f || (f = c - m - 1 > r && e[m + 1] !== " "), m = c);
9133
+ else if (!$p(l)) return um;
9134
+ h && (h = tm(l, u, s)), u = l;
9678
9135
  }
9679
9136
  f || (f = p && c - m - 1 > r && e[m + 1] !== " ");
9680
9137
  }
9681
- return !d && !f ? h && !o && !i(e) ? vh : a === ah ? Sh : yh : n > 9 && _h(e) ? Sh : o ? a === ah ? Sh : yh : f ? xh : bh;
9138
+ return !d && !f ? h && !o && !i(e) ? om : a === qp ? um : sm : n > 9 && am(e) ? um : o ? a === qp ? um : sm : f ? lm : cm;
9682
9139
  }
9683
- function wh(e, t, n, r, i) {
9140
+ function fm(e, t, n, r, i) {
9684
9141
  e.dump = function() {
9685
- if (t.length === 0) return e.quotingType === ah ? "\"\"" : "''";
9686
- if (!e.noCompatMode && (eh.indexOf(t) !== -1 || th.test(t))) return e.quotingType === ah ? "\"" + t + "\"" : "'" + t + "'";
9142
+ if (t.length === 0) return e.quotingType === qp ? "\"\"" : "''";
9143
+ if (!e.noCompatMode && (Hp.indexOf(t) !== -1 || Up.test(t))) return e.quotingType === qp ? "\"" + t + "\"" : "'" + t + "'";
9687
9144
  var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && n >= e.flowLevel;
9688
9145
  function c(t) {
9689
- return lh(e, t);
9146
+ return Zp(e, t);
9690
9147
  }
9691
- switch (Ch(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
9692
- case vh: return t;
9693
- case yh: return "'" + t.replace(/'/g, "''") + "'";
9694
- case bh: return "|" + Th(t, e.indent) + Eh(sh(t, a));
9695
- case xh: return ">" + Th(t, e.indent) + Eh(sh(Dh(t, o), a));
9696
- case Sh: return "\"" + kh(t) + "\"";
9697
- default: throw new J("impossible error: invalid scalar style");
9148
+ switch (dm(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
9149
+ case om: return t;
9150
+ case sm: return "'" + t.replace(/'/g, "''") + "'";
9151
+ case cm: return "|" + pm(t, e.indent) + mm(Yp(t, a));
9152
+ case lm: return ">" + pm(t, e.indent) + mm(Yp(hm(t, o), a));
9153
+ case um: return "\"" + _m(t) + "\"";
9154
+ default: throw new q("impossible error: invalid scalar style");
9698
9155
  }
9699
9156
  }();
9700
9157
  }
9701
- function Th(e, t) {
9702
- var n = _h(e) ? String(t) : "", r = e[e.length - 1] === "\n";
9158
+ function pm(e, t) {
9159
+ var n = am(e) ? String(t) : "", r = e[e.length - 1] === "\n";
9703
9160
  return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
9704
9161
  }
9705
- function Eh(e) {
9162
+ function mm(e) {
9706
9163
  return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
9707
9164
  }
9708
- function Dh(e, t) {
9165
+ function hm(e, t) {
9709
9166
  for (var n = /(\n+)([^\n]*)/g, r = function() {
9710
9167
  var r = e.indexOf("\n");
9711
- return r = r === -1 ? e.length : r, n.lastIndex = r, Oh(e.slice(0, r), t);
9168
+ return r = r === -1 ? e.length : r, n.lastIndex = r, gm(e.slice(0, r), t);
9712
9169
  }(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
9713
9170
  var s = o[1], c = o[2];
9714
- a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Oh(c, t), i = a;
9171
+ a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + gm(c, t), i = a;
9715
9172
  }
9716
9173
  return r;
9717
9174
  }
9718
- function Oh(e, t) {
9175
+ function gm(e, t) {
9719
9176
  if (e === "" || e[0] === " ") return e;
9720
9177
  for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
9721
9178
  return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
9722
9179
  }
9723
- function kh(e) {
9724
- for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = gh(e, i), r = Q[n], !r && dh(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || rh(n);
9180
+ function _m(e) {
9181
+ for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = im(e, i), r = Q[n], !r && $p(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Gp(n);
9725
9182
  return t;
9726
9183
  }
9727
- function Ah(e, t, n) {
9184
+ function vm(e, t, n) {
9728
9185
  var r = "", i = e.tag, a, o, s;
9729
- for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Fh(e, t, s, !1, !1) || s === void 0 && Fh(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
9186
+ for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Cm(e, t, s, !1, !1) || s === void 0 && Cm(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
9730
9187
  e.tag = i, e.dump = "[" + r + "]";
9731
9188
  }
9732
- function jh(e, t, n, r) {
9189
+ function ym(e, t, n, r) {
9733
9190
  var i = "", a = e.tag, o, s, c;
9734
- for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Fh(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Fh(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ch(e, t)), e.dump && jm === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
9191
+ for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Cm(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Cm(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Xp(e, t)), e.dump && yp === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
9735
9192
  e.tag = a, e.dump = i || "[]";
9736
9193
  }
9737
- function Mh(e, t, n) {
9194
+ function bm(e, t, n) {
9738
9195
  var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
9739
- for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Fh(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Fh(e, t, l, !1, !1) && (u += e.dump, r += u));
9196
+ for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Cm(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Cm(e, t, l, !1, !1) && (u += e.dump, r += u));
9740
9197
  e.tag = i, e.dump = "{" + r + "}";
9741
9198
  }
9742
- function Nh(e, t, n, r) {
9199
+ function xm(e, t, n, r) {
9743
9200
  var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
9744
9201
  if (e.sortKeys === !0) o.sort();
9745
9202
  else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
9746
- else if (e.sortKeys) throw new J("sortKeys must be a boolean or a function");
9747
- for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += ch(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Fh(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && jm === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += ch(e, t)), Fh(e, t + 1, u, !0, d) && (e.dump && jm === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
9203
+ else if (e.sortKeys) throw new q("sortKeys must be a boolean or a function");
9204
+ for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += Xp(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Cm(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && yp === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += Xp(e, t)), Cm(e, t + 1, u, !0, d) && (e.dump && yp === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
9748
9205
  e.tag = a, e.dump = i || "{}";
9749
9206
  }
9750
- function Ph(e, t, n) {
9207
+ function Sm(e, t, n) {
9751
9208
  var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
9752
9209
  for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
9753
9210
  if (e.tag = n ? s.multi && s.representName ? s.representName(t) : s.tag : "?", s.represent) {
9754
- if (c = e.styleMap[s.tag] || s.defaultStyle, Dm.call(s.represent) === "[object Function]") r = s.represent(t, c);
9755
- else if (Om.call(s.represent, c)) r = s.represent[c](t, c);
9756
- else throw new J("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
9211
+ if (c = e.styleMap[s.tag] || s.defaultStyle, hp.call(s.represent) === "[object Function]") r = s.represent(t, c);
9212
+ else if (gp.call(s.represent, c)) r = s.represent[c](t, c);
9213
+ else throw new q("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
9757
9214
  e.dump = r;
9758
9215
  }
9759
9216
  return !0;
9760
9217
  }
9761
9218
  return !1;
9762
9219
  }
9763
- function Fh(e, t, n, r, i, a, o) {
9764
- e.tag = null, e.dump = n, Ph(e, n, !1) || Ph(e, n, !0);
9765
- var s = Dm.call(e.dump), c = r, l;
9220
+ function Cm(e, t, n, r, i, a, o) {
9221
+ e.tag = null, e.dump = n, Sm(e, n, !1) || Sm(e, n, !0);
9222
+ var s = hp.call(e.dump), c = r, l;
9766
9223
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
9767
9224
  var u = s === "[object Object]" || s === "[object Array]", d, f;
9768
9225
  if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
9769
9226
  else {
9770
- if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Nh(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Mh(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9771
- else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? jh(e, t - 1, e.dump, i) : jh(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Ah(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9772
- else if (s === "[object String]") e.tag !== "?" && wh(e, e.dump, t, a, c);
9227
+ if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (xm(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (bm(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9228
+ else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? ym(e, t - 1, e.dump, i) : ym(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (vm(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9229
+ else if (s === "[object String]") e.tag !== "?" && fm(e, e.dump, t, a, c);
9773
9230
  else if (s === "[object Undefined]") return !1;
9774
9231
  else {
9775
9232
  if (e.skipInvalid) return !1;
9776
- throw new J("unacceptable kind of an object to dump " + s);
9233
+ throw new q("unacceptable kind of an object to dump " + s);
9777
9234
  }
9778
9235
  e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
9779
9236
  }
9780
9237
  return !0;
9781
9238
  }
9782
- function Ih(e, t) {
9239
+ function wm(e, t) {
9783
9240
  var n = [], r = [], i, a;
9784
- for (Lh(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
9241
+ for (Tm(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
9785
9242
  t.usedDuplicates = Array(a);
9786
9243
  }
9787
- function Lh(e, t, n) {
9244
+ function Tm(e, t, n) {
9788
9245
  var r, i, a;
9789
9246
  if (typeof e == "object" && e) {
9790
9247
  if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
9791
- else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Lh(e[i], t, n);
9792
- else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Lh(e[r[i]], t, n);
9248
+ else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Tm(e[i], t, n);
9249
+ else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Tm(e[r[i]], t, n);
9793
9250
  }
9794
9251
  }
9795
- function Rh(e, t) {
9252
+ function Em(e, t) {
9796
9253
  t || (t = {});
9797
- var n = new oh(t);
9798
- n.noRefs || Ih(e, n);
9254
+ var n = new Jp(t);
9255
+ n.noRefs || wm(e, n);
9799
9256
  var r = e;
9800
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Fh(n, 0, r, !0, !0) ? n.dump + "\n" : "";
9257
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Cm(n, 0, r, !0, !0) ? n.dump + "\n" : "";
9801
9258
  }
9802
- var zh = { dump: Rh }, Bh = Em.load;
9803
- Em.loadAll, zh.dump;
9259
+ var Dm = { dump: Em }, Om = mp.load;
9260
+ mp.loadAll, Dm.dump;
9804
9261
  //#endregion
9805
9262
  //#region node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs
9806
- function Vh(e, t) {
9807
- let n = Bh(e, t);
9808
- return uf(e, n, t), n;
9263
+ function km(e, t) {
9264
+ let n = Om(e, t);
9265
+ return Qu(e, n, t), n;
9809
9266
  }
9810
9267
  //#endregion
9811
9268
  //#region src/lib/utils/parseSpec.ts
9812
- function Hh(e) {
9269
+ function Am(e) {
9813
9270
  if (typeof e == "string") try {
9814
- let t = Vh(e);
9271
+ let t = km(e);
9815
9272
  return t == null ? {} : t;
9816
9273
  } catch (e) {
9817
9274
  return console.error("Error parsing spec", e), {};
@@ -9820,12 +9277,12 @@ function Hh(e) {
9820
9277
  }
9821
9278
  //#endregion
9822
9279
  //#region src/lib/parser/dereferenceWithAnnotations.ts
9823
- var Uh = Symbol("origin"), Wh = /* @__PURE__ */ new Map();
9824
- function Gh(e, t) {
9825
- Wh.has(e) || Wh.set(e, /* @__PURE__ */ new Map());
9826
- let n = Wh.get(e);
9280
+ var jm = Symbol("origin"), Mm = /* @__PURE__ */ new Map();
9281
+ function Nm(e, t) {
9282
+ Mm.has(e) || Mm.set(e, /* @__PURE__ */ new Map());
9283
+ let n = Mm.get(e);
9827
9284
  if (n.has(t)) return n.get(t);
9828
- let r = t.split("/").slice(1), i = e;
9285
+ let r = t.split("/").slice(1).map(Pm), i = e;
9829
9286
  for (let e of r) {
9830
9287
  var a;
9831
9288
  if (!i || typeof i != "object") {
@@ -9836,46 +9293,52 @@ function Gh(e, t) {
9836
9293
  }
9837
9294
  return n.set(t, i), i;
9838
9295
  }
9839
- function Kh(e) {
9296
+ function Pm(e) {
9297
+ try {
9298
+ e = decodeURIComponent(e);
9299
+ } catch {}
9300
+ return e.replace(/~1/g, "/").replace(/~0/g, "~");
9301
+ }
9302
+ function Fm(e) {
9840
9303
  if (Array.isArray(e)) {
9841
9304
  let t = Array.from({ length: e.length });
9842
- for (let n = 0; n < e.length; n++) t[n] = e[n] && typeof e[n] == "object" ? Kh(e[n]) : e[n];
9305
+ for (let n = 0; n < e.length; n++) t[n] = e[n] && typeof e[n] == "object" ? Fm(e[n]) : e[n];
9843
9306
  return t;
9844
9307
  }
9845
9308
  if (Object.prototype.toString.call(e) === "[object Object]") {
9846
9309
  let t = {};
9847
9310
  for (let n in e) if (n === "__proto__") Object.defineProperty(t, n, {
9848
- value: Kh(e[n]),
9311
+ value: Fm(e[n]),
9849
9312
  configurable: !0,
9850
9313
  enumerable: !0,
9851
9314
  writable: !0
9852
9315
  });
9853
9316
  else {
9854
9317
  let r = e[n];
9855
- t[n] = r && typeof r == "object" ? Kh(r) : r;
9318
+ t[n] = r && typeof r == "object" ? Fm(r) : r;
9856
9319
  }
9857
9320
  return t;
9858
9321
  }
9859
9322
  return e;
9860
9323
  }
9861
- function qh(e, t = /* @__PURE__ */ new WeakSet()) {
9324
+ function Im(e, t = /* @__PURE__ */ new WeakSet()) {
9862
9325
  if (e && typeof e == "object" && !t.has(e)) {
9863
- t.add(e), Object.defineProperty(e, Uh, {
9326
+ t.add(e), Object.defineProperty(e, jm, {
9864
9327
  value: e,
9865
9328
  enumerable: !1
9866
9329
  });
9867
9330
  let n = Array.isArray(e) ? e : Object.values(e);
9868
- for (let e of n) qh(e, t);
9331
+ for (let e of n) Im(e, t);
9869
9332
  }
9870
9333
  }
9871
- function Jh(e) {
9334
+ function Lm(e) {
9872
9335
  let t = Array.isArray(e) ? [...e] : { ...e };
9873
- return Object.defineProperty(t, Uh, {
9874
- value: e[Uh] || e,
9336
+ return Object.defineProperty(t, jm, {
9337
+ value: e[jm] || e,
9875
9338
  enumerable: !1
9876
9339
  }), t;
9877
9340
  }
9878
- var Yh = /* @__PURE__ */ new Set([
9341
+ var Rm = /* @__PURE__ */ new Set([
9879
9342
  "title",
9880
9343
  "description",
9881
9344
  "summary",
@@ -9885,94 +9348,93 @@ var Yh = /* @__PURE__ */ new Set([
9885
9348
  "writeOnly",
9886
9349
  "examples",
9887
9350
  "example"
9888
- ]), Xh = /* @__PURE__ */ new Map();
9889
- function Zh(e) {
9890
- if (Xh.has(e)) return Xh.get(e);
9891
- let t = /* @__PURE__ */ new Set(), n = Kh(e);
9892
- qh(n);
9351
+ ]), zm = /* @__PURE__ */ new Map();
9352
+ function Bm(e) {
9353
+ if (zm.has(e)) return zm.get(e);
9354
+ let t = /* @__PURE__ */ new Map(), n = Fm(e);
9355
+ Im(n);
9893
9356
  let r = (e) => {
9894
9357
  if (typeof e == "object" && e) {
9895
- if (t.has(e)) return e;
9896
- if (t.add(e), Array.isArray(e)) for (let t = 0; t < e.length; t++) e[t] = r(e[t]);
9358
+ if (t.has(e)) return t.get(e);
9359
+ if (t.set(e, e), Array.isArray(e)) for (let t = 0; t < e.length; t++) e[t] = r(e[t]);
9897
9360
  else {
9898
9361
  if ("$ref" in e && typeof e.$ref == "string") {
9899
- let t = e;
9362
+ let i = e;
9900
9363
  do
9901
- t = Gh(n, t.$ref);
9902
- while (t != null && t.$ref);
9903
- t = Jh(t), t = r(t);
9904
- for (let n in e) n !== "$ref" && Yh.has(n) && (t[n] = e[n]);
9905
- return t;
9364
+ i = Nm(n, i.$ref);
9365
+ while (i != null && i.$ref);
9366
+ if (i == null) return e;
9367
+ i = Lm(i), i = r(i);
9368
+ for (let t in e) t !== "$ref" && Rm.has(t) && (i[t] = e[t]);
9369
+ return t.set(e, i), i;
9906
9370
  }
9907
9371
  for (let t in e) e[t] = r(e[t]);
9908
9372
  }
9909
9373
  }
9910
9374
  return e;
9911
9375
  }, i = r(n);
9912
- return Xh.set(e, i), i;
9376
+ return zm.set(e, i), i;
9913
9377
  }
9914
9378
  //#endregion
9915
9379
  //#region src/lib/spec/createOpenApiSpec.ts
9916
- function Qh(e = {}) {
9380
+ function Vm(e = {}) {
9917
9381
  var t;
9918
- let n = null, r = (t = e.originalSpec) == null ? null : t;
9919
- function i(e) {
9920
- n = e;
9382
+ let n = null, r = (t = e.originalSpec) == null ? null : t, i = null;
9383
+ function a(e) {
9384
+ n = e, i = null;
9921
9385
  }
9922
- function a() {
9386
+ function o() {
9923
9387
  if (!n) {
9924
9388
  var t;
9925
- i((t = e.spec) == null ? {} : t);
9389
+ a((t = e.spec) == null ? {} : t);
9926
9390
  }
9927
9391
  if (!n) throw Error("OpenAPI spec is not defined");
9928
9392
  return n;
9929
9393
  }
9930
- function o() {
9394
+ function s() {
9931
9395
  return r;
9932
9396
  }
9933
- function s(e) {
9397
+ function c(e) {
9934
9398
  r = e;
9935
9399
  }
9936
- function c(e, t) {
9937
- for (let r of Object.values(e)) for (let e of $) {
9938
- var n;
9939
- if (r && ((n = r[e]) == null ? void 0 : n.operationId) === t) return r[e];
9940
- }
9941
- return null;
9942
- }
9943
9400
  function l(e) {
9944
- let t = a().paths;
9945
- return t ? c(t, e) : null;
9401
+ var t;
9402
+ if (!i) {
9403
+ i = /* @__PURE__ */ new Map();
9404
+ for (let [e, t] of Object.entries(m())) for (let n of ph) {
9405
+ let r = t == null ? void 0 : t[n];
9406
+ (r == null ? void 0 : r.operationId) !== void 0 && !i.has(r.operationId) && i.set(r.operationId, {
9407
+ path: e,
9408
+ method: n,
9409
+ operation: r
9410
+ });
9411
+ }
9412
+ }
9413
+ return (t = i.get(e)) == null ? null : t;
9946
9414
  }
9947
9415
  function u(e) {
9948
- let t = a().paths;
9949
- if (!t) return null;
9950
- for (let [r, i] of Object.entries(t)) for (let t of $) {
9951
- var n;
9952
- if (i && ((n = i[t]) == null ? void 0 : n.operationId) === e) return r;
9953
- }
9954
- return null;
9416
+ var t, n;
9417
+ return (t = (n = l(e)) == null ? void 0 : n.operation) == null ? null : t;
9955
9418
  }
9956
9419
  function d(e) {
9957
- let t = a().paths;
9958
- if (!t) return null;
9959
- for (let r of Object.values(t)) for (let t of $) {
9960
- var n;
9961
- if (r && ((n = r[t]) == null ? void 0 : n.operationId) === e) return t;
9962
- }
9963
- return null;
9420
+ var t, n;
9421
+ return (t = (n = l(e)) == null ? void 0 : n.path) == null ? null : t;
9964
9422
  }
9965
9423
  function f(e) {
9966
- let t = l(e);
9424
+ var t, n;
9425
+ return (t = (n = l(e)) == null ? void 0 : n.method) == null ? null : t;
9426
+ }
9427
+ function p(e) {
9428
+ let t = u(e);
9967
9429
  return t && t.parameters || [];
9968
9430
  }
9969
- function p() {
9431
+ function m() {
9970
9432
  var e;
9971
- return (e = a().paths) == null ? {} : e;
9433
+ return (e = o().paths) == null ? {} : e;
9972
9434
  }
9973
- function m() {
9974
- let e = p();
9975
- return Object.keys(e).flatMap((t) => $.filter((n) => e && e[t] && e[t][n]).map((n) => {
9435
+ function h() {
9436
+ let e = m();
9437
+ return Object.keys(e).flatMap((t) => ph.filter((n) => e && e[t] && e[t][n]).map((n) => {
9976
9438
  if (!e || !e[t] || !e[t][n]) return null;
9977
9439
  let { operationId: r, summary: i, description: a, tags: o } = e[t][n];
9978
9440
  return {
@@ -9985,60 +9447,56 @@ function Qh(e = {}) {
9985
9447
  };
9986
9448
  }));
9987
9449
  }
9988
- function h() {
9989
- var e;
9990
- return (e = a().info) == null ? {} : e;
9991
- }
9992
9450
  function g() {
9993
9451
  var e;
9994
- return (e = a().externalDocs) == null ? {} : e;
9452
+ return (e = o().info) == null ? {} : e;
9995
9453
  }
9996
9454
  function _() {
9997
9455
  var e;
9998
- return (e = a().servers) == null ? [] : e;
9456
+ return (e = o().externalDocs) == null ? {} : e;
9999
9457
  }
10000
- function v(e) {
9458
+ function v() {
9459
+ var e;
9460
+ return (e = o().servers) == null ? [] : e;
9461
+ }
9462
+ function y(e) {
10001
9463
  var t, n;
10002
- let r = c(p(), e);
9464
+ let r = l(e);
10003
9465
  if (!r) return [];
10004
- let i = u(e), o = (t = a().paths[i == null ? "" : i]) == null ? void 0 : t.servers;
10005
- return (r == null ? void 0 : r.servers) === void 0 ? o === void 0 ? (n = a().servers) == null ? [] : n : o : r.servers;
9466
+ let i = r.operation, a = (t = m()[r.path]) == null ? void 0 : t.servers;
9467
+ return (i == null ? void 0 : i.servers) === void 0 ? a === void 0 ? (n = o().servers) == null ? [] : n : a : i.servers;
10006
9468
  }
10007
- function y() {
10008
- if (!a().paths) return [];
10009
- let e = a().paths;
10010
- return Object.values(e).reduce((e, t) => {
10011
- for (let r of $) {
10012
- var n;
10013
- t && (n = t[r]) != null && n.tags && t[r].tags.forEach((t) => {
10014
- e.includes(t) || e.push(t);
10015
- });
10016
- }
10017
- return e;
10018
- }, []);
9469
+ function b() {
9470
+ if (!o().paths) return [];
9471
+ let e = /* @__PURE__ */ new Set();
9472
+ for (let n of Object.values(m())) for (let r of ph) {
9473
+ var t;
9474
+ n == null || (t = n[r]) == null || (t = t.tags) == null || t.forEach((t) => e.add(t));
9475
+ }
9476
+ return [...e];
10019
9477
  }
10020
- function b(e) {
9478
+ function x(e) {
10021
9479
  var t;
10022
- let n = (t = p()) == null ? {} : t, r = {};
10023
- for (let [t, i] of Object.entries(n)) if (i) for (let n of $) {
9480
+ let n = (t = m()) == null ? {} : t, r = {};
9481
+ for (let [t, i] of Object.entries(n)) if (i) for (let n of ph) {
10024
9482
  let a = i[n];
10025
9483
  a && e(a) && (r[t] = r[t] || {}, r[t][n] = a);
10026
9484
  }
10027
9485
  return r;
10028
9486
  }
10029
- function x(e) {
9487
+ function S(e) {
10030
9488
  let t = typeof e == "string" ? [e] : e;
10031
- return b((e) => {
9489
+ return x((e) => {
10032
9490
  var n;
10033
9491
  return e == null || (n = e.tags) == null ? void 0 : n.some((e) => t.includes(e));
10034
9492
  });
10035
9493
  }
10036
- function S() {
10037
- return b((e) => !(e != null && e.tags) || e.tags.length === 0);
10038
- }
10039
9494
  function C() {
9495
+ return x((e) => !(e != null && e.tags) || e.tags.length === 0);
9496
+ }
9497
+ function ee() {
10040
9498
  var e;
10041
- return ((e = a().tags) == null ? [] : e).map((e) => {
9499
+ return ((e = o().tags) == null ? [] : e).map((e) => {
10042
9500
  var t, n;
10043
9501
  return {
10044
9502
  name: (t = e.name) == null ? null : t,
@@ -10046,8 +9504,8 @@ function Qh(e = {}) {
10046
9504
  };
10047
9505
  });
10048
9506
  }
10049
- function ee() {
10050
- let e = y(), t = C().filter((t) => {
9507
+ function te() {
9508
+ let e = b(), t = ee().filter((t) => {
10051
9509
  var n;
10052
9510
  return e.includes((n = t.name) == null ? "" : n);
10053
9511
  });
@@ -10057,33 +9515,33 @@ function Qh(e = {}) {
10057
9515
  }))];
10058
9516
  }
10059
9517
  return {
10060
- spec: a(),
10061
- originalSpec: o(),
10062
- setSpec: i,
10063
- getSpec: a,
10064
- getOriginalSpec: o,
10065
- setOriginalSpec: s,
10066
- getOperation: l,
10067
- getOperationPath: u,
10068
- getOperationMethod: d,
10069
- getOperationParameters: f,
10070
- getPaths: p,
10071
- getPathsByVerbs: m,
10072
- getInfo: h,
10073
- getExternalDocs: g,
10074
- getServers: _,
10075
- getOperationServers: v,
10076
- getOperationsTags: y,
10077
- getPathsByTags: x,
10078
- getPathsWithoutTags: S,
10079
- getTags: C,
10080
- getFilteredTags: ee
9518
+ spec: o(),
9519
+ originalSpec: s(),
9520
+ setSpec: a,
9521
+ getSpec: o,
9522
+ getOriginalSpec: s,
9523
+ setOriginalSpec: c,
9524
+ getOperation: u,
9525
+ getOperationPath: d,
9526
+ getOperationMethod: f,
9527
+ getOperationParameters: p,
9528
+ getPaths: m,
9529
+ getPathsByVerbs: h,
9530
+ getInfo: g,
9531
+ getExternalDocs: _,
9532
+ getServers: v,
9533
+ getOperationServers: y,
9534
+ getOperationsTags: b,
9535
+ getPathsByTags: S,
9536
+ getPathsWithoutTags: C,
9537
+ getTags: ee,
9538
+ getFilteredTags: te
10081
9539
  };
10082
9540
  }
10083
9541
  //#endregion
10084
9542
  //#region src/composables/usePaths.ts
10085
- function $h({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0 }) {
10086
- let r = Qh({ spec: b_().transformSync({
9543
+ function Hm({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0 }) {
9544
+ let r = Vm({ spec: T_().transformSync({
10087
9545
  spec: e,
10088
9546
  defaultTag: t,
10089
9547
  defaultTagDescription: n
@@ -10098,31 +9556,31 @@ function $h({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0
10098
9556
  }
10099
9557
  //#endregion
10100
9558
  //#region src/lib/sidebar/cleanSidebarItems.ts
10101
- function eg(e) {
10102
- return Array.isArray(e) ? e.map(eg) : typeof e == "object" ? {
9559
+ function Um(e) {
9560
+ return Array.isArray(e) ? e.map(Um) : typeof e == "object" ? {
10103
9561
  text: e.text,
10104
9562
  ...e.collapsed === void 0 ? {} : { collapsed: e.collapsed },
10105
9563
  ...e.link ? { link: e.link } : {},
10106
- ...e.items ? { items: eg(e.items) } : {}
9564
+ ...e.items ? { items: Um(e.items) } : {}
10107
9565
  } : e;
10108
9566
  }
10109
9567
  //#endregion
10110
9568
  //#region src/lib/sidebar/ensureGroupTextSlashPrefix.ts
10111
- function tg(e) {
9569
+ function Wm(e) {
10112
9570
  return e.map((e) => {
10113
9571
  if (e.items) {
10114
9572
  var t;
10115
- e.items = tg(e.items), e.text = (t = e.text) != null && t.startsWith("/") ? e.text : `/${e.text}`;
9573
+ e.items = Wm(e.items), e.text = (t = e.text) != null && t.startsWith("/") ? e.text : `/${e.text}`;
10116
9574
  } else e.text && !e.isOperation && !e.text.startsWith("/") && !e.text.includes("<") && (e.text = `/${e.text}`);
10117
9575
  return e;
10118
9576
  });
10119
9577
  }
10120
9578
  //#endregion
10121
9579
  //#region src/lib/sidebar/flatSidebarItems.ts
10122
- function ng(e, t, n, r = 1, i = "") {
10123
- return ig(rg(e, t, n, r, i));
9580
+ function Gm(e, t, n, r = 1, i = "") {
9581
+ return qm(Km(e, t, n, r, i));
10124
9582
  }
10125
- function rg(e, t, n, r, i = "") {
9583
+ function Km(e, t, n, r, i = "") {
10126
9584
  return e.map((e) => {
10127
9585
  if (e.items) {
10128
9586
  let a = i + e.text;
@@ -10133,12 +9591,12 @@ function rg(e, t, n, r, i = "") {
10133
9591
  ...r,
10134
9592
  items: (n = r.items) == null ? void 0 : n.filter((e) => e.isOperation)
10135
9593
  };
10136
- }) : e.items = rg(e.items, t, n, r + 1, a);
9594
+ }) : e.items = Km(e.items, t, n, r + 1, a);
10137
9595
  }
10138
9596
  return e;
10139
9597
  });
10140
9598
  }
10141
- function ig(e, t = "") {
9599
+ function qm(e, t = "") {
10142
9600
  let n = [];
10143
9601
  return e.forEach((e) => {
10144
9602
  e.flattenedItems ? n.push(...e.flattenedItems.map((n) => {
@@ -10148,40 +9606,40 @@ function ig(e, t = "") {
10148
9606
  n.text = (e.text || "") + a;
10149
9607
  }
10150
9608
  return n;
10151
- })) : n.push(e), e.items && (e.items = ig(e.items, t + e.text));
9609
+ })) : n.push(e), e.items && (e.items = qm(e.items, t + e.text));
10152
9610
  }), n;
10153
9611
  }
10154
9612
  //#endregion
10155
9613
  //#region src/lib/sidebar/mergeAdjacentGroups.ts
10156
- function ag(e) {
9614
+ function Jm(e) {
10157
9615
  return Array.isArray(e) ? e.reduce((e, t) => {
10158
9616
  var n;
10159
9617
  if (!((n = t.items) != null && n.length)) return e.push(t), e;
10160
9618
  if (t.items.length === 1 && !t.items.some((e) => "link" in e)) {
10161
- let n = t.items[0], r = ag([n])[0];
10162
- return r.text = og(t.text, r.text), r.path = r.path || t.path, e.push(r), e;
9619
+ let n = t.items[0], r = Jm([n])[0];
9620
+ return r.text = Ym(t.text, r.text), r.path = r.path || t.path, e.push(r), e;
10163
9621
  }
10164
- return t.items = ag(t.items), e.push(t), e;
9622
+ return t.items = Jm(t.items), e.push(t), e;
10165
9623
  }, []) : e;
10166
9624
  }
10167
- function og(e, t) {
9625
+ function Ym(e, t) {
10168
9626
  return e + (t.startsWith("/") ? t : `/${t}`);
10169
9627
  }
10170
9628
  //#endregion
10171
9629
  //#region src/lib/sidebar/setItemCollapsedState.ts
10172
- function sg(e) {
10173
- return e.map((e) => (e.items && (e.collapsed = !e.items.length, e.items.some((e) => "items" in e) && (e.items = sg(e.items))), e));
9630
+ function Xm(e) {
9631
+ return e.map((e) => (e.items && (e.collapsed = !e.items.length, e.items.some((e) => "items" in e) && (e.items = Xm(e.items))), e));
10174
9632
  }
10175
9633
  //#endregion
10176
9634
  //#region src/lib/sidebar/generateSidebarItemsByPaths.ts
10177
- function cg({ paths: e, startsWith: t = "", collapsible: n = !0, itemLinkPrefix: r = "", depth: i = 6, sidebarItemTemplate: a, sidebarGroupTemplate: o } = { paths: {} }) {
9635
+ function Zm({ paths: e, startsWith: t = "", collapsible: n = !0, itemLinkPrefix: r = "", depth: i = 6, sidebarItemTemplate: a, sidebarGroupTemplate: o } = { paths: {} }) {
10178
9636
  let s = [], c = {};
10179
9637
  return Object.keys(e).filter((e) => e.startsWith(t)).forEach((t) => {
10180
9638
  let n = t.split("/").filter(Boolean), i = s;
10181
9639
  n.forEach((o, s) => {
10182
- let l = s === n.length - 1, u = `/${n.slice(0, s + 1).join("/")}`, d = lg(i, o, u);
9640
+ let l = s === n.length - 1, u = `/${n.slice(0, s + 1).join("/")}`, d = Qm(i, o, u);
10183
9641
  if (l) {
10184
- let n = $.map((n) => {
9642
+ let n = ph.map((n) => {
10185
9643
  let i = e[t] ? e[t][n] : null;
10186
9644
  return i ? {
10187
9645
  text: a ? a({
@@ -10200,9 +9658,9 @@ function cg({ paths: e, startsWith: t = "", collapsible: n = !0, itemLinkPrefix:
10200
9658
  }
10201
9659
  i = d.items;
10202
9660
  });
10203
- }), s = ag(s), s = tg(s), n && (s = sg(s)), s = ng(s, c, i), o && (s = ug(s, o)), s;
9661
+ }), s = Jm(s), s = Wm(s), n && (s = Xm(s)), s = Gm(s, c, i), o && (s = $m(s, o)), s;
10204
9662
  }
10205
- function lg(e, t, n) {
9663
+ function Qm(e, t, n) {
10206
9664
  let r = e.find((e) => e.text === t && e.path === n);
10207
9665
  return r || (r = {
10208
9666
  text: t,
@@ -10210,46 +9668,46 @@ function lg(e, t, n) {
10210
9668
  items: []
10211
9669
  }, e.push(r)), r;
10212
9670
  }
10213
- function ug(e, t, n = 1) {
9671
+ function $m(e, t, n = 1) {
10214
9672
  return e.map((e) => (e.text && e.path && e.items && e.items.length && (e.text = t({
10215
9673
  path: e.path,
10216
9674
  depth: n
10217
- })), e.items && (e.items = ug(e.items, t, n + 1)), e));
9675
+ })), e.items && (e.items = $m(e.items, t, n + 1)), e));
10218
9676
  }
10219
9677
  //#endregion
10220
9678
  //#region src/lib/utils/minifyHtml.ts
10221
- var dg = /\s+/g;
10222
- function fg(e) {
10223
- return e.replace(dg, " ").trim();
9679
+ var eh = /\s+/g;
9680
+ function th(e) {
9681
+ return e.replace(eh, " ").trim();
10224
9682
  }
10225
9683
  //#endregion
10226
9684
  //#region src/composables/useSidebar.ts
10227
- var pg = {
9685
+ var nh = {
10228
9686
  linkPrefix: "/operations/",
10229
9687
  tagLinkPrefix: "/tags/",
10230
9688
  defaultTag: "Default"
10231
9689
  };
10232
- function mg({ path: e }) {
9690
+ function rh({ path: e }) {
10233
9691
  return e;
10234
9692
  }
10235
- function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagLinkPrefix, defaultTag: r = pg.defaultTag, methodAliases: i = {}, sidebarItemTemplate: a, sidebarGroupTemplate: o } = {}) {
9693
+ function ih({ spec: e, linkPrefix: t = nh.linkPrefix, tagLinkPrefix: n = nh.tagLinkPrefix, defaultTag: r = nh.defaultTag, methodAliases: i = {}, sidebarItemTemplate: a, sidebarGroupTemplate: o } = {}) {
10236
9694
  let s = null;
10237
9695
  function c() {
10238
9696
  if (!e) throw Error("OpenAPI spec is not provided.");
10239
- return s || (s = Qh({ spec: b_().transformSync({
9697
+ return s || (s = Vm({ spec: T_().transformSync({
10240
9698
  spec: e,
10241
9699
  defaultTag: r
10242
9700
  }) })), s;
10243
9701
  }
10244
9702
  let l = a || (({ method: e, path: t, title: n }) => {
10245
9703
  let r = i[e] || e.toUpperCase(), a = n || t;
10246
- return fg(`
9704
+ return th(`
10247
9705
  <span class="OASidebarItem group/oaOperationLink">
10248
9706
  <span class="OASidebarItem-badge OAMethodBadge--${e.toLowerCase()}">${r}</span>
10249
9707
  <span class="OASidebarItem-text text">${a}</span>
10250
9708
  </span>
10251
9709
  `);
10252
- }), u = o || mg;
9710
+ }), u = o || rh;
10253
9711
  function d({ method: e, path: t, sidebarItemTemplate: n }) {
10254
9712
  var r;
10255
9713
  let i = (r = c().getPaths()) == null || (r = r[t]) == null ? void 0 : r[e];
@@ -10281,7 +9739,7 @@ function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagL
10281
9739
  text: "",
10282
9740
  items: []
10283
9741
  };
10284
- let s = Array.isArray(e) ? e : [e], l = Object.entries(o).flatMap(([e, t]) => $.map((n) => {
9742
+ let s = Array.isArray(e) ? e : [e], l = Object.entries(o).flatMap(([e, t]) => ph.map((n) => {
10285
9743
  let a = t == null ? void 0 : t[n];
10286
9744
  return a && (s.length === 0 || s.every((e) => {
10287
9745
  var t;
@@ -10325,7 +9783,7 @@ function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagL
10325
9783
  }));
10326
9784
  }
10327
9785
  function g({ startsWith: e = "", collapsible: n = !0, depth: r = 6, linkPrefix: i = t, sidebarItemTemplate: a, sidebarGroupTemplate: o } = {}) {
10328
- return eg(cg({
9786
+ return Um(Zm({
10329
9787
  paths: c().getPaths(),
10330
9788
  startsWith: e,
10331
9789
  collapsible: n,
@@ -10351,22 +9809,22 @@ function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagL
10351
9809
  }
10352
9810
  //#endregion
10353
9811
  //#region src/lib/markdown/markdownToPlainText.ts
10354
- var gg = new Uu({ html: !0 }), _g = {
9812
+ var ah = new Uu({ html: !0 }), oh = {
10355
9813
  "&amp;": "&",
10356
9814
  "&lt;": "<",
10357
9815
  "&gt;": ">",
10358
9816
  "&quot;": "\"",
10359
9817
  "&#39;": "'"
10360
- }, vg = /<\/(?:p|div|h[1-6]|li|blockquote|td|th|tr)>|<(?:br|hr)\s*\/?>/g, yg = /<(?:"[^"]*"|'[^']*'|[^'">])*>/g, bg = /&(?:amp|lt|gt|quot|#39);/g, xg = /\s+/g, Sg = /\s*\S*$/;
10361
- function Cg(e, t = {}) {
10362
- let n = gg.render(e == null ? "" : e).replace(vg, " ").replace(yg, "").replace(bg, (e) => _g[e]).replace(xg, " ").trim(), { maxLength: r } = t;
9818
+ }, sh = /<\/(?:p|div|h[1-6]|li|blockquote|td|th|tr)>|<(?:br|hr)\s*\/?>/g, ch = /<(?:"[^"]*"|'[^']*'|[^'">])*>/g, lh = /&(?:amp|lt|gt|quot|#39);/g, uh = /\s+/g, dh = /\s*\S*$/;
9819
+ function fh(e, t = {}) {
9820
+ let n = ah.render(e == null ? "" : e).replace(sh, " ").replace(ch, "").replace(lh, (e) => oh[e]).replace(uh, " ").trim(), { maxLength: r } = t;
10363
9821
  if (r === void 0) return n;
10364
9822
  if (!Number.isInteger(r) || r < 0) throw TypeError("markdownToPlainText: maxLength must be a non-negative integer");
10365
- return r === 0 ? "" : n.length <= r ? n : `${n.slice(0, r - 1).replace(Sg, "")}…`;
9823
+ return r === 0 ? "" : n.length <= r ? n : `${n.slice(0, r - 1).replace(dh, "")}…`;
10366
9824
  }
10367
9825
  //#endregion
10368
9826
  //#region src/index.ts
10369
- var $ = [
9827
+ var ph = [
10370
9828
  "get",
10371
9829
  "put",
10372
9830
  "post",
@@ -10375,20 +9833,20 @@ var $ = [
10375
9833
  "head",
10376
9834
  "patch",
10377
9835
  "trace"
10378
- ], wg = [
9836
+ ], mh = [
10379
9837
  "string",
10380
9838
  "number",
10381
9839
  "integer",
10382
9840
  "boolean",
10383
9841
  "null"
10384
- ], Tg = Qh;
9842
+ ], hh = Vm;
10385
9843
  //#endregion
10386
9844
  //#region src/lib/parser/generateCodeSamples.ts
10387
- async function Eg(e) {
9845
+ async function gh(e) {
10388
9846
  var t;
10389
9847
  if (!(e != null && e.paths)) return e;
10390
9848
  let n = uo(((t = e.servers) == null || (t = t[0]) == null ? void 0 : t.url) || "");
10391
- for (let [t, a] of Object.entries(e.paths)) for (let e of $) {
9849
+ for (let [t, a] of Object.entries(e.paths)) for (let e of ph) {
10392
9850
  var r, i;
10393
9851
  let o = a[e];
10394
9852
  if (!o) continue;
@@ -10422,25 +9880,25 @@ async function Eg(e) {
10422
9880
  }
10423
9881
  //#endregion
10424
9882
  //#region src/lib/parser/generateMissingOperationIds.ts
10425
- var Dg = /\//g;
10426
- function Og(e) {
9883
+ var _h = /\//g;
9884
+ function vh(e) {
10427
9885
  e.paths = e.paths || {};
10428
9886
  for (let t of Object.keys(e.paths)) {
10429
9887
  let n = e.paths[t];
10430
- for (let e of $) {
9888
+ for (let e of ph) {
10431
9889
  let r = n[e];
10432
- r && (r.operationId || (r.operationId = `${e}${t.replace(Dg, "-")}`));
9890
+ r && (r.operationId || (r.operationId = `${e}${t.replace(_h, "-")}`));
10433
9891
  }
10434
9892
  }
10435
9893
  return e;
10436
9894
  }
10437
9895
  //#endregion
10438
9896
  //#region src/lib/parser/generateMissingSummary.ts
10439
- function kg(e) {
9897
+ function yh(e) {
10440
9898
  e.paths = e.paths || {};
10441
9899
  for (let t of Object.keys(e.paths)) {
10442
9900
  let n = e.paths[t];
10443
- for (let e of $) {
9901
+ for (let e of ph) {
10444
9902
  let r = n[e];
10445
9903
  r && (r.summary || (r.summary = `${e.toUpperCase()} ${t}`));
10446
9904
  }
@@ -10449,10 +9907,10 @@ function kg(e) {
10449
9907
  }
10450
9908
  //#endregion
10451
9909
  //#region src/lib/parser/generateMissingTags.ts
10452
- function Ag({ spec: e, defaultTag: t = "Default", defaultTagDescription: n = "" }) {
9910
+ function bh({ spec: e, defaultTag: t = "Default", defaultTagDescription: n = "" }) {
10453
9911
  let r = /* @__PURE__ */ new Set();
10454
9912
  e.paths = e.paths || {};
10455
- for (let [, n] of Object.entries(e.paths)) for (let e of $) {
9913
+ for (let [, n] of Object.entries(e.paths)) for (let e of ph) {
10456
9914
  if (!n || !n[e]) continue;
10457
9915
  let i = n[e], a = i.tags || [t];
10458
9916
  i.tags = a, a.forEach((e) => r.add(e));
@@ -10464,55 +9922,55 @@ function Ag({ spec: e, defaultTag: t = "Default", defaultTagDescription: n = ""
10464
9922
  }
10465
9923
  //#endregion
10466
9924
  //#region src/lib/examples/getSchemaUiJson.ts
10467
- function jg(e, t = !1) {
10468
- return Mg(e, t);
9925
+ function xh(e, t = !1) {
9926
+ return Sh(e, t);
10469
9927
  }
10470
- function Mg(e, t) {
10471
- return Array.isArray(e) ? e.map((e) => Ng(e, t)) : Ng(e, t);
9928
+ function Sh(e, t) {
9929
+ return Array.isArray(e) ? e.map((e) => Ch(e, t)) : Ch(e, t);
10472
9930
  }
10473
- function Ng(e, t) {
9931
+ function Ch(e, t) {
10474
9932
  var n, r, i;
10475
9933
  if ((n = e.meta) != null && n.isCircularReference) return "[Circular Reference]";
10476
- if ((r = e.meta) != null && r.isConstant) return Lg(e);
10477
- if (zg(e, "array")) return Pg(e, t);
10478
- if (Bg(e)) return Ig(e, t);
10479
- if (Vg(e)) {
9934
+ if ((r = e.meta) != null && r.isConstant) return Dh(e);
9935
+ if (kh(e, "array")) return wh(e, t);
9936
+ if (Ah(e)) return Eh(e, t);
9937
+ if (jh(e)) {
10480
9938
  var a;
10481
- return Ig({
9939
+ return Eh({
10482
9940
  ...e,
10483
9941
  types: [(a = e.types.find((e) => e !== "null")) == null ? "null" : a]
10484
9942
  }, t);
10485
9943
  }
10486
- return Gg(e) ? Kg(e, t) : Hg(e, "object") ? Fg(e.properties || [], t) : Rg((i = e.types[0]) == null ? "string" : i, e.defaultValue);
9944
+ return Fh(e) ? Ih(e, t) : Mh(e, "object") ? Th(e.properties || [], t) : Oh((i = e.types[0]) == null ? "string" : i, e.defaultValue);
10487
9945
  }
10488
- function Pg(e, t) {
9946
+ function wh(e, t) {
10489
9947
  var n;
10490
- if (Gg(e)) return [Kg(e, t)];
10491
- if ((n = e.meta) != null && n.hasPrefixItems && e.properties && Array.isArray(e.properties)) return e.properties.map((e) => Ng(e, t));
10492
- if (e.properties && Array.isArray(e.properties)) return [Fg(e.properties, t)];
9948
+ if (Fh(e)) return [Ih(e, t)];
9949
+ if ((n = e.meta) != null && n.hasPrefixItems && e.properties && Array.isArray(e.properties)) return e.properties.map((e) => Ch(e, t));
9950
+ if (e.properties && Array.isArray(e.properties)) return [Th(e.properties, t)];
10493
9951
  if (e.subtype) {
10494
9952
  var r;
10495
- return e.subtype === "object" && e.properties ? [Fg(e.properties, t)] : t ? [(r = oo(e)) == null ? Rg(e.subtype, e.defaultValue) : r] : [Rg(e.subtype, e.defaultValue)];
9953
+ return e.subtype === "object" && e.properties ? [Th(e.properties, t)] : t ? [(r = oo(e)) == null ? Oh(e.subtype, e.defaultValue) : r] : [Oh(e.subtype, e.defaultValue)];
10496
9954
  }
10497
9955
  return [];
10498
9956
  }
10499
- function Fg(e, t) {
10500
- return e.reduce((e, n) => (zg(n, "array") ? e[n.name] = Pg(n, t) : e[n.name] = Ng(n, t), e), {});
9957
+ function Th(e, t) {
9958
+ return e.reduce((e, n) => (kh(n, "array") ? e[n.name] = wh(n, t) : e[n.name] = Ch(n, t), e), {});
10501
9959
  }
10502
- function Ig(e, t) {
9960
+ function Eh(e, t) {
10503
9961
  var n, r;
10504
9962
  if (t) {
10505
9963
  let t = oo(e);
10506
9964
  if (t != null) return t;
10507
9965
  }
10508
- return ((n = e.constraints) == null ? void 0 : n.format) === "binary" ? "" : Rg((r = e.types[0]) == null ? "string" : r, e.defaultValue);
9966
+ return ((n = e.constraints) == null ? void 0 : n.format) === "binary" ? "" : Oh((r = e.types[0]) == null ? "string" : r, e.defaultValue);
10509
9967
  }
10510
- function Lg(e) {
9968
+ function Dh(e) {
10511
9969
  var t;
10512
9970
  let n = oo(e);
10513
- return n == null ? Rg((t = e.types[0]) == null ? "string" : t, e.defaultValue) : n;
9971
+ return n == null ? Oh((t = e.types[0]) == null ? "string" : t, e.defaultValue) : n;
10514
9972
  }
10515
- function Rg(e, t) {
9973
+ function Oh(e, t) {
10516
9974
  if (t !== void 0) return t;
10517
9975
  switch (e) {
10518
9976
  case "string": return "string";
@@ -10526,41 +9984,41 @@ function Rg(e, t) {
10526
9984
  default: return;
10527
9985
  }
10528
9986
  }
10529
- function zg(e, t) {
9987
+ function kh(e, t) {
10530
9988
  var n;
10531
9989
  return ((n = e.types) == null ? void 0 : n.length) === 1 && e.types[0] === t;
10532
9990
  }
10533
- function Bg(e) {
9991
+ function Ah(e) {
10534
9992
  var t;
10535
- return ((t = e.types) == null ? void 0 : t.length) === 1 && e.types[0] != null && wg.includes(e.types[0]);
9993
+ return ((t = e.types) == null ? void 0 : t.length) === 1 && e.types[0] != null && mh.includes(e.types[0]);
10536
9994
  }
10537
- function Vg(e) {
9995
+ function jh(e) {
10538
9996
  var t;
10539
- return (t = e.types) == null ? void 0 : t.every((e) => e && wg.includes(e));
9997
+ return (t = e.types) == null ? void 0 : t.every((e) => e && mh.includes(e));
10540
9998
  }
10541
- function Hg(e, t) {
9999
+ function Mh(e, t) {
10542
10000
  var n, r;
10543
10001
  return (n = (r = e.types) == null ? void 0 : r.includes(t)) != null && n;
10544
10002
  }
10545
- function Ug(e) {
10003
+ function Nh(e) {
10546
10004
  var t;
10547
10005
  return !!((t = e.meta) != null && t.isOneOf) && Array.isArray(e.properties);
10548
10006
  }
10549
- function Wg(e) {
10007
+ function Ph(e) {
10550
10008
  var t;
10551
10009
  return !!((t = e.meta) != null && t.isAnyOf) && Array.isArray(e.properties);
10552
10010
  }
10553
- function Gg(e) {
10554
- return Ug(e) || Wg(e);
10011
+ function Fh(e) {
10012
+ return Nh(e) || Ph(e);
10555
10013
  }
10556
- function Kg(e, t) {
10557
- if (e.properties && e.properties.length > 0) return Ng(e.properties[0], t);
10014
+ function Ih(e, t) {
10015
+ if (e.properties && e.properties.length > 0) return Ch(e.properties[0], t);
10558
10016
  var n;
10559
- return t ? oo(e) : Rg((n = e.types[0]) == null ? "string" : n, e.defaultValue);
10017
+ return t ? oo(e) : Oh((n = e.types[0]) == null ? "string" : n, e.defaultValue);
10560
10018
  }
10561
10019
  //#endregion
10562
10020
  //#region node_modules/.pnpm/json-xml-parse@1.3.0/node_modules/json-xml-parse/lib/constants.js
10563
- var qg = /* @__PURE__ */ ne(((e) => {
10021
+ var Lh = /* @__PURE__ */ ne(((e) => {
10564
10022
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DEFAULTS = e.TAGS = void 0, e.TAGS = {
10565
10023
  OPENING: "OPENING",
10566
10024
  CLOSING: "CLOSING",
@@ -10604,13 +10062,13 @@ var qg = /* @__PURE__ */ ne(((e) => {
10604
10062
  return [];
10605
10063
  }
10606
10064
  };
10607
- })), Jg = /* @__PURE__ */ ne(((e) => {
10065
+ })), Rh = /* @__PURE__ */ ne(((e) => {
10608
10066
  Object.defineProperty(e, "__esModule", { value: !0 }), e.objIsEmpty = e.keyExists = e.isUndef = e.isArr = e.isStr = e.isFunc = e.isObj = void 0;
10609
10067
  var t = "{}", n = "[]";
10610
10068
  e.isObj = (e) => !!e && typeof e == "object", e.isFunc = (e) => typeof e == "function", e.isStr = (e) => typeof e == "string", e.isArr = (e) => Array.isArray(e), e.isUndef = (e) => e === void 0, e.keyExists = (t, n) => (0, e.isObj)(t) && n in t, e.objIsEmpty = (r) => (0, e.isObj)(r) && [t, n].includes(JSON.stringify(r));
10611
- })), Yg = /* @__PURE__ */ ne(((e) => {
10069
+ })), zh = /* @__PURE__ */ ne(((e) => {
10612
10070
  Object.defineProperty(e, "__esModule", { value: !0 }), e.setDeclaration = e.setAttributes = e.setStringVal = e.createTag = e.checkChildTags = e.createEntityHandler = e.beautify = void 0;
10613
- var t = qg(), n = Jg();
10071
+ var t = Lh(), n = Rh();
10614
10072
  e.beautify = (e, n = t.DEFAULTS.LEVEL.INIT, r = t.DEFAULTS.BEAUTIFY.ENABLE) => {
10615
10073
  let i = e;
10616
10074
  if (!r) return t.DEFAULTS.EMPTY_STR;
@@ -10643,9 +10101,9 @@ var qg = /* @__PURE__ */ ne(((e) => {
10643
10101
  let o = Object.assign({}, (0, n.isObj)(r) ? r : t.DEFAULTS.DECLARATION);
10644
10102
  return `<?xml${(0, e.setAttributes)(o, i)}?>${(0, e.beautify)(t.DEFAULTS.NEW_LINE, t.DEFAULTS.LEVEL.INIT, a)}`;
10645
10103
  };
10646
- })), Xg = /* @__PURE__ */ ne(((e) => {
10104
+ })), Bh = /* @__PURE__ */ ne(((e) => {
10647
10105
  Object.defineProperty(e, "__esModule", { value: !0 });
10648
- var t = Yg(), n = Jg(), r = qg();
10106
+ var t = zh(), n = Rh(), r = Lh();
10649
10107
  e.default = (e = r.DEFAULTS.EMPTY_OBJ, i = r.DEFAULTS.EMPTY_OBJ) => {
10650
10108
  let a = (i == null ? void 0 : i.attrKey) || r.DEFAULTS.ATTR_KEY, o = (i == null ? void 0 : i.contentKey) || r.DEFAULTS.CONTENT_KEY, s = (0, t.createEntityHandler)(Object.assign({}, (0, n.isObj)(i == null ? void 0 : i.entityMap) ? i == null ? void 0 : i.entityMap : r.DEFAULTS.ENTITY_MAP)), c = (0, t.setDeclaration)(i == null ? void 0 : i.declaration, s, i == null ? void 0 : i.beautify), l = (e, u, d) => {
10651
10109
  var f;
@@ -10681,12 +10139,12 @@ var qg = /* @__PURE__ */ ne(((e) => {
10681
10139
  l(t, e[t], r.DEFAULTS.LEVEL.INIT);
10682
10140
  }), c))(e);
10683
10141
  };
10684
- })), Zg = /* @__PURE__ */ ne(((e) => {
10142
+ })), Vh = /* @__PURE__ */ ne(((e) => {
10685
10143
  var t = e && e.__importDefault || function(e) {
10686
10144
  return e && e.__esModule ? e : { default: e };
10687
10145
  };
10688
- Object.defineProperty(e, "__esModule", { value: !0 }), e.toXmlString = void 0, e.toXmlString = t(Xg()).default;
10689
- })), Qg = (/* @__PURE__ */ ne(((e) => {
10146
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.toXmlString = void 0, e.toXmlString = t(Bh()).default;
10147
+ })), Hh = (/* @__PURE__ */ ne(((e) => {
10690
10148
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
10691
10149
  r === void 0 && (r = n);
10692
10150
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -10711,355 +10169,937 @@ var qg = /* @__PURE__ */ ne(((e) => {
10711
10169
  if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) && t(r, e, i);
10712
10170
  return n(r, e), r;
10713
10171
  };
10714
- Object.defineProperty(e, "__esModule", { value: !0 }), e.jsXml = void 0, e.jsXml = r(Zg());
10172
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.jsXml = void 0, e.jsXml = r(Vh());
10715
10173
  })))();
10716
- function $g(e, t = !1) {
10717
- let n = jg(e, t);
10718
- return Qg.jsXml.toXmlString(n);
10174
+ function Uh(e, t = !1) {
10175
+ let n = xh(e, t);
10176
+ return Hh.jsXml.toXmlString(n);
10719
10177
  }
10720
10178
  //#endregion
10721
10179
  //#region src/lib/examples/getSchemaExample.ts
10722
- function e_(e) {
10180
+ function Wh(e) {
10723
10181
  return Ya(e) ? {
10724
10182
  key: "XML",
10725
10183
  summary: "XML",
10726
- valueGenerator: $g,
10184
+ valueGenerator: Uh,
10727
10185
  lang: "xml"
10728
10186
  } : {
10729
10187
  key: "JSON",
10730
10188
  summary: "JSON",
10731
- valueGenerator: jg,
10189
+ valueGenerator: xh,
10732
10190
  lang: "json",
10733
10191
  hideOnSchemaTabs: Xa(e) || Za(e) || $a(e)
10734
10192
  };
10735
10193
  }
10736
- function t_(e, t, n = !1) {
10737
- let r = e_(e);
10738
- return { [r.key]: n_(r, t, n) };
10194
+ function Gh(e, t, n = !1) {
10195
+ let r = Wh(e);
10196
+ return { [r.key]: Kh(r, t, n) };
10197
+ }
10198
+ function Kh(e, t, n = !1) {
10199
+ var r, i;
10200
+ return {
10201
+ summary: e.summary,
10202
+ description: "",
10203
+ value: e.valueGenerator(t, n),
10204
+ isAutogenerated: !0,
10205
+ lang: (r = e.lang) == null ? "json" : r,
10206
+ hideOnSchemaTabs: (i = e.hideOnSchemaTabs) != null && i
10207
+ };
10208
+ }
10209
+ //#endregion
10210
+ //#region src/lib/examples/getPropertyExamples.ts
10211
+ function qh(e) {
10212
+ var t, n;
10213
+ return (e == null ? void 0 : e.examples) === void 0 ? (e == null || (t = e.schema) == null ? void 0 : t.examples) === void 0 ? (e == null ? void 0 : e.example) === void 0 ? (e == null ? void 0 : e.subexamples) === void 0 ? (e == null || (n = e.schema) == null ? void 0 : n.example) === void 0 ? (e == null ? void 0 : e.subexample) === void 0 ? null : [e.subexample] : [e.schema.example] : e.subexamples : [e.example] : e.schema.examples : e.examples;
10214
+ }
10215
+ //#endregion
10216
+ //#region src/lib/parser/constraintsParser.ts
10217
+ var Jh = [
10218
+ "exclusiveMaximum",
10219
+ "exclusiveMinimum",
10220
+ "format",
10221
+ "maximum",
10222
+ "maxItems",
10223
+ "maxLength",
10224
+ "maxProperties",
10225
+ "minimum",
10226
+ "minItems",
10227
+ "minLength",
10228
+ "minProperties",
10229
+ "multipleOf",
10230
+ "pattern",
10231
+ "uniqueItems",
10232
+ "default"
10233
+ ];
10234
+ function Yh(e) {
10235
+ return Object.keys(e).some((e) => Jh.includes(e));
10236
+ }
10237
+ function Xh(e) {
10238
+ return Object.entries(e).filter(([e]) => Jh.includes(e)).reduce((e, [t, n]) => (e[t] = n, e), {});
10239
+ }
10240
+ //#endregion
10241
+ //#region src/lib/parser/resolveCircularRef.ts
10242
+ function Zh(e, t = /* @__PURE__ */ new WeakSet()) {
10243
+ return Qh({
10244
+ key: "root",
10245
+ value: e,
10246
+ parent: null
10247
+ }, /* @__PURE__ */ new Map(), t), e;
10248
+ }
10249
+ function Qh(e, t, n) {
10250
+ var r;
10251
+ let { value: i } = e;
10252
+ if (typeof i != "object" || !i) return;
10253
+ let a = (r = i[jm]) == null ? i : r, o = t.get(a);
10254
+ if (o) {
10255
+ e.parent.value[e.key] = {
10256
+ type: "object",
10257
+ circularReference: $h(o)
10258
+ };
10259
+ return;
10260
+ }
10261
+ if (!n.has(i)) {
10262
+ t.set(a, e);
10263
+ for (let [r, a] of Object.entries(i)) Qh({
10264
+ key: r,
10265
+ value: a,
10266
+ parent: e
10267
+ }, t, n);
10268
+ t.delete(a), n.add(i);
10269
+ }
10270
+ }
10271
+ function $h(e) {
10272
+ return e ? `${$h(e.parent)}/${e.key}` : "";
10273
+ }
10274
+ //#endregion
10275
+ //#region src/lib/parser/getSchemaUi.ts
10276
+ var eg = class {
10277
+ constructor() {
10278
+ T(this, "walked", /* @__PURE__ */ new WeakSet()), T(this, "ui", /* @__PURE__ */ new WeakMap());
10279
+ }
10280
+ }, tg = class e {
10281
+ constructor(e) {
10282
+ T(this, "memo", void 0), this.memo = e;
10283
+ }
10284
+ static createBaseProperty(e, t = {}, n = !1) {
10285
+ let r = Array.isArray(t.type) ? t.type : [t.type || "string"], i = qh(t), a = {
10286
+ name: e,
10287
+ types: r,
10288
+ required: n,
10289
+ ...t.title && { title: t.title },
10290
+ ...t.description && { description: t.description },
10291
+ ...t.default !== void 0 && { defaultValue: t.default },
10292
+ ...t.externalDocs && { docs: t.externalDocs },
10293
+ ...i && { examples: i },
10294
+ ...t.nullable && { nullable: t.nullable }
10295
+ };
10296
+ return t.const !== void 0 && (a.meta = {
10297
+ ...a.meta || {},
10298
+ isConstant: !0
10299
+ }), Yh(t) && (a.constraints = Xh(t)), Object.keys(t).forEach((e) => {
10300
+ e.startsWith("x-") && (a.meta = a.meta || {}, a.meta.extra = a.meta.extra || {}, a.meta.extra[e] = t[e]);
10301
+ }), a;
10302
+ }
10303
+ static createCircularReferenceProperty(e, t) {
10304
+ return {
10305
+ name: e,
10306
+ types: ["object"],
10307
+ required: !1,
10308
+ description: `Circular reference to **${t}**`,
10309
+ meta: { isCircularReference: !0 }
10310
+ };
10311
+ }
10312
+ createUnionProperty(t, n, r = "", i = {}, a = !1) {
10313
+ let o = e.createBaseProperty(r, i, a), s = [...new Set(t.map((e) => ig(e)).filter(Boolean))];
10314
+ s.length > 0 && (o.types = s);
10315
+ let c = n === "oneOf", l = c ? "isOneOfItem" : "isAnyOfItem", u = c ? "isOneOf" : "isAnyOf";
10316
+ return o.properties = t.map((e) => {
10317
+ let t = this.schemaToUiProperty("", e);
10318
+ return t.meta = {
10319
+ ...t.meta || {},
10320
+ [l]: !0
10321
+ }, t;
10322
+ }), o.meta = {
10323
+ ...o.meta || {},
10324
+ [u]: !0
10325
+ }, o;
10326
+ }
10327
+ createOneOfProperty(e, t = "", n = {}, r = !1) {
10328
+ return this.createUnionProperty(e, "oneOf", t, n, r);
10329
+ }
10330
+ createAnyOfProperty(e, t = "", n = {}, r = !1) {
10331
+ return this.createUnionProperty(e, "anyOf", t, n, r);
10332
+ }
10333
+ schemaToUiProperty(t, n, r = !1) {
10334
+ if (!n || Object.keys(n).length === 0) return {
10335
+ name: t,
10336
+ types: [],
10337
+ required: r
10338
+ };
10339
+ if (n.circularReference) return e.createCircularReferenceProperty(t, n.circularReference);
10340
+ let i = this.memo.get(n);
10341
+ return i || (i = this.buildUiProperty(n), this.memo.set(n, i)), {
10342
+ ...i,
10343
+ name: t,
10344
+ required: r
10345
+ };
10346
+ }
10347
+ buildUiProperty(t, n = "", r = !1) {
10348
+ if (t.oneOf) return this.createOneOfProperty(t.oneOf, n, t, r);
10349
+ if (t.anyOf) return this.createAnyOfProperty(t.anyOf, n, t, r);
10350
+ if (t.const !== void 0) {
10351
+ let i = e.createBaseProperty(n, t, r), a = ig(t);
10352
+ a && (i.types = [a]);
10353
+ let o = qh(t) || t.const;
10354
+ return o !== void 0 && (i.examples = Array.isArray(o) ? o : [o]), i.meta = {
10355
+ ...i.meta || {},
10356
+ isConstant: !0
10357
+ }, i;
10358
+ }
10359
+ if (t.enum) {
10360
+ let i = [];
10361
+ i = t.type ? Array.isArray(t.type) ? t.type : [t.type] : rg(t.enum), i.length === 0 && (i = ["string"]);
10362
+ let a = e.createBaseProperty(n, t, r);
10363
+ return a.enum = t.enum, a.types = i, a;
10364
+ }
10365
+ let i = e.createBaseProperty(n, t, r);
10366
+ if (Array.isArray(t.type) ? t.type.includes("array") : t.type === "array") {
10367
+ if (t.items) {
10368
+ let e = ig(t.items);
10369
+ i.properties = e === "object" ? this.extractProperties(t.items.properties, t.items.required || [], t.items.additionalProperties, t.items["x-additionalPropertiesName"]) : void 0, e !== void 0 && (i.subtype = e);
10370
+ let n = qh(t.items);
10371
+ if (n && (i.subexamples = n), t.items.const !== void 0 && (i.meta = {
10372
+ ...i.meta || {},
10373
+ isConstant: !0
10374
+ }), t.items.oneOf || t.items.anyOf) {
10375
+ let e = !!t.items.oneOf, n = e ? t.items.oneOf : t.items.anyOf, r = e ? "isOneOf" : "isAnyOf", a = e ? "isOneOfItem" : "isAnyOfItem";
10376
+ i.meta = {
10377
+ ...i.meta || {},
10378
+ [r]: !0
10379
+ }, i.properties = n.map((e) => {
10380
+ let n = {
10381
+ ...e,
10382
+ type: t.items.type
10383
+ };
10384
+ return {
10385
+ ...this.schemaToUiProperty("", n),
10386
+ meta: {
10387
+ ...e.meta || {},
10388
+ [a]: !0
10389
+ }
10390
+ };
10391
+ });
10392
+ }
10393
+ if (e !== "object" && e !== "array" && !t.items.oneOf && !t.items.anyOf) {
10394
+ let e = this.schemaToUiProperty("[item]", t.items);
10395
+ (e.description || e.enum || e.constraints || e.docs) && (i.items = e);
10396
+ }
10397
+ }
10398
+ if (t.prefixItems && Array.isArray(t.prefixItems) && (i.properties = t.prefixItems.map((e, t) => {
10399
+ let n = this.schemaToUiProperty(`[${t}]`, e, !1);
10400
+ return n.meta = {
10401
+ ...n.meta || {},
10402
+ isPrefixItem: !0,
10403
+ prefixItemIndex: t
10404
+ }, n;
10405
+ }), i.meta = {
10406
+ ...i.meta || {},
10407
+ hasPrefixItems: !0
10408
+ }), t.prefixItems && Array.isArray(t.prefixItems) && t.items) {
10409
+ let e = this.schemaToUiProperty("[n+]", t.items, !1);
10410
+ e.meta = {
10411
+ ...e.meta || {},
10412
+ isAdditionalItems: !0
10413
+ }, i.properties = [...i.properties || [], e], i.subtype = void 0;
10414
+ }
10415
+ } else (Array.isArray(t.type) ? t.type.includes("object") : t.type === "object") ? i.properties = this.extractProperties(t.properties, t.required || [], t.additionalProperties, t["x-additionalPropertiesName"]) : t.type === void 0 && (t.properties || t.additionalProperties) && (i.types = ["object"], i.properties = this.extractProperties(t.properties, t.required || [], t.additionalProperties, t["x-additionalPropertiesName"]));
10416
+ return i;
10417
+ }
10418
+ extractProperties(e, t = [], n, r) {
10419
+ let i = [];
10420
+ if (e && Object.entries(e).forEach(([e, n]) => {
10421
+ let r = t.includes(e);
10422
+ i.push(this.schemaToUiProperty(e, n, r));
10423
+ }), n) {
10424
+ let e = typeof n == "object" ? n : { type: "string" }, t = r || "additionalProperties", a = this.schemaToUiProperty(t, e);
10425
+ a.required = !1, a.meta = {
10426
+ ...a.meta || {},
10427
+ isAdditionalProperties: !0
10428
+ }, i.push(a);
10429
+ }
10430
+ return i;
10431
+ }
10432
+ };
10433
+ function ng(e, t = new eg()) {
10434
+ if (!e || Object.keys(e).length === 0) return [];
10435
+ let n = Zh(e, t.walked);
10436
+ return new tg(t.ui).schemaToUiProperty("", n);
10437
+ }
10438
+ function rg(e) {
10439
+ let t = /* @__PURE__ */ new Set();
10440
+ return e.forEach((e) => {
10441
+ e === null ? t.add("null") : Array.isArray(e) ? t.add("array") : typeof e == "object" ? t.add("object") : typeof e == "string" ? t.add("string") : typeof e == "boolean" ? t.add("boolean") : typeof e == "number" && t.add(Number.isInteger(e) ? "integer" : "number");
10442
+ }), t.has("number") && t.delete("integer"), [...t];
10443
+ }
10444
+ function ig(e) {
10445
+ return !e.type && e.properties ? "object" : !e.type && e.items ? "array" : !e.type && e.const !== void 0 ? Array.isArray(e.const) ? "array" : typeof e.const == "object" && e.const !== null ? "object" : typeof e.const == "string" ? "string" : typeof e.const == "number" ? "number" : typeof e.const == "boolean" ? "boolean" : "null" : e.type;
10739
10446
  }
10740
- function n_(e, t, n = !1) {
10741
- var r, i;
10742
- return {
10743
- summary: e.summary,
10744
- description: "",
10745
- value: e.valueGenerator(t, n),
10746
- isAutogenerated: !0,
10747
- lang: (r = e.lang) == null ? "json" : r,
10748
- hideOnSchemaTabs: (i = e.hideOnSchemaTabs) != null && i
10749
- };
10447
+ //#endregion
10448
+ //#region src/lib/parser/generateRequestBodyUi.ts
10449
+ function ag(e, t = new eg()) {
10450
+ if (!e.paths) return e;
10451
+ for (let n of Object.values(e.paths)) for (let e of ph) {
10452
+ let r = n[e];
10453
+ if (r && r.requestBody) for (let [e, n] of Object.entries(r.requestBody.content || {})) {
10454
+ let r = n;
10455
+ r.schema && (r.ui = ng(r.schema, t), r.examples = {
10456
+ ...r.examples || {},
10457
+ ...Gh(e, r.ui, !0)
10458
+ });
10459
+ }
10460
+ }
10461
+ return e;
10750
10462
  }
10751
10463
  //#endregion
10752
- //#region src/lib/examples/getPropertyExamples.ts
10753
- function r_(e) {
10754
- var t, n;
10755
- return (e == null ? void 0 : e.examples) === void 0 ? (e == null || (t = e.schema) == null ? void 0 : t.examples) === void 0 ? (e == null ? void 0 : e.example) === void 0 ? (e == null ? void 0 : e.subexamples) === void 0 ? (e == null || (n = e.schema) == null ? void 0 : n.example) === void 0 ? (e == null ? void 0 : e.subexample) === void 0 ? null : [e.subexample] : [e.schema.example] : e.subexamples : [e.example] : e.schema.examples : e.examples;
10464
+ //#region src/lib/parser/generateResponseUi.ts
10465
+ function og(e, t = new eg()) {
10466
+ if (!e.paths) return e;
10467
+ for (let n of Object.values(e.paths)) for (let e of ph) {
10468
+ let r = n[e];
10469
+ if (r && r.responses) for (let e of Object.values(r.responses)) for (let [n, r] of Object.entries(e.content || {})) {
10470
+ let e = r;
10471
+ e.schema && (e.ui = ng(e.schema, t), e.examples = {
10472
+ ...e.examples || {},
10473
+ ...Gh(n, e.ui, !0)
10474
+ });
10475
+ }
10476
+ }
10477
+ return e;
10756
10478
  }
10757
10479
  //#endregion
10758
- //#region src/lib/parser/constraintsParser.ts
10759
- var i_ = [
10760
- "exclusiveMaximum",
10761
- "exclusiveMinimum",
10762
- "format",
10763
- "maximum",
10764
- "maxItems",
10765
- "maxLength",
10766
- "maxProperties",
10767
- "minimum",
10768
- "minItems",
10769
- "minLength",
10770
- "minProperties",
10771
- "multipleOf",
10772
- "pattern",
10773
- "uniqueItems",
10774
- "default"
10775
- ];
10776
- function a_(e) {
10777
- return Object.keys(e).some((e) => i_.includes(e));
10480
+ //#region src/lib/parser/getSecurityUi.ts
10481
+ var sg = "None";
10482
+ function cg(e, t) {
10483
+ let n = [];
10484
+ return e ? (e.forEach((e) => {
10485
+ let r = {
10486
+ id: Object.keys(e).length ? Object.keys(e).join("|") : sg,
10487
+ schemes: {}
10488
+ };
10489
+ Object.keys(e).forEach((e) => {
10490
+ t && t[e] && (r.schemes[e] = t[e]);
10491
+ }), n.push(r);
10492
+ }), n.length === 1 && n[0].id === sg && Object.keys(n[0].schemes).length === 0 ? [] : n) : n;
10778
10493
  }
10779
- function o_(e) {
10780
- return Object.entries(e).filter(([e]) => i_.includes(e)).reduce((e, [t, n]) => (e[t] = n, e), {});
10494
+ //#endregion
10495
+ //#region src/lib/parser/generateSecurityUi.ts
10496
+ function lg(e) {
10497
+ if (!(e != null && e.paths)) return e;
10498
+ for (let i of Object.values(e.paths)) for (let a of ph) {
10499
+ var t, n, r;
10500
+ let o = i[a];
10501
+ o && (o.securityUi = cg((t = (n = o.security) == null ? e.security : n) == null ? [] : t, ((r = e.components) == null ? void 0 : r.securitySchemes) || {}));
10502
+ }
10503
+ return e;
10781
10504
  }
10782
10505
  //#endregion
10783
- //#region src/lib/parser/resolveCircularRef.ts
10784
- function s_(e) {
10785
- return c_({
10786
- key: "root",
10787
- value: e,
10788
- parent: null
10789
- }), e;
10506
+ //#region node_modules/.pnpm/allof-merge@0.6.8/node_modules/allof-merge/dist/index.mjs
10507
+ function ug(e, t) {
10508
+ var n = {};
10509
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
10510
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") {
10511
+ var i = 0;
10512
+ for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
10513
+ }
10514
+ return n;
10790
10515
  }
10791
- function c_(e) {
10792
- let { value: t } = e;
10793
- if (typeof t != "object" || !t) return;
10794
- let n = l_(e.parent, t);
10795
- if (n) e.parent.value[e.key] = {
10796
- type: "object",
10797
- circularReference: n
10798
- };
10799
- else for (let [n, r] of Object.entries(t)) c_({
10800
- key: n,
10801
- value: r,
10802
- parent: e
10803
- });
10516
+ function dg(e, t) {
10517
+ var n = {};
10518
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
10519
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") {
10520
+ var i = 0;
10521
+ for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
10522
+ }
10523
+ return n;
10804
10524
  }
10805
- function l_(e, t) {
10806
- let n = t && t[Uh] ? t[Uh] : t;
10807
- for (; e;) {
10808
- let t = e.value;
10809
- if ((t && t[Uh] ? t[Uh] : t) === n) return u_(e);
10810
- e = e.parent;
10525
+ var fg = (e = {}, t, n, r) => {
10526
+ let i = `/${t}`, a = typeof e["/**"] == "function" ? e["/**"]({
10527
+ key: t,
10528
+ path: n,
10529
+ value: r
10530
+ }) : e["/**"], o = typeof e["/*"] == "function" ? e["/*"]({
10531
+ key: t,
10532
+ path: n,
10533
+ value: r
10534
+ }) : e["/*"], s = {};
10535
+ if (i in e) s = e[i];
10536
+ else if (!a && !o) return;
10537
+ return s = typeof s == "function" ? s({
10538
+ key: t,
10539
+ path: n,
10540
+ value: r
10541
+ }) : s, o && (s = Object.assign(Object.assign({}, o), s)), a ? Object.assign(Object.assign({ "/**": e["/**"] }, a), s) : s;
10542
+ }, pg = (e) => {
10543
+ let t = {}, n = e.reduce(((e, t) => (Object.keys(t).forEach(((t) => e.add(t))), e)), /* @__PURE__ */ new Set());
10544
+ for (let r of n.keys()) {
10545
+ let n = e.filter(((e) => r in e));
10546
+ if (n.length !== 1) {
10547
+ if (r.charAt(0) !== "/") throw Error(`Cannot merge rules. Duplicate key: ${r}. Rules should not have same Rule key`);
10548
+ t[r] = (e, t) => pg(n.map(((n) => typeof n[r] == "function" ? n[r](e, t) : n[r])));
10549
+ } else t[r] = n[0][r];
10811
10550
  }
10812
- return null;
10551
+ return t;
10552
+ }, mg = (e) => typeof e == "object" && !!e, hg = (e) => Array.isArray(e), gg = (e, t, n = {}) => {
10553
+ var r, i;
10554
+ t = hg(t) ? t : [t];
10555
+ let a = hg(n.rules) ? pg(n.rules) : n.rules, o = [{
10556
+ data: e,
10557
+ state: n.state,
10558
+ path: [],
10559
+ keys: [],
10560
+ keyIndex: -1,
10561
+ rules: a
10562
+ }];
10563
+ for (; o.length > 0;) {
10564
+ let e = o[o.length - 1];
10565
+ if (e.keyIndex >= e.keys.length) {
10566
+ for (; (r = e.hooks) != null && r.length;) e.hooks.pop()();
10567
+ o.pop();
10568
+ continue;
10569
+ }
10570
+ let n = e.keys[e.keyIndex++], [s, c, l] = o.length > 1 ? [
10571
+ e.data[n],
10572
+ [...e.path, n],
10573
+ fg(e.rules, n, [...e.path, n], e.data[n])
10574
+ ] : [
10575
+ e.data,
10576
+ e.path,
10577
+ a
10578
+ ], u = {
10579
+ value: s,
10580
+ path: c,
10581
+ key: n,
10582
+ state: e.state,
10583
+ rules: l
10584
+ }, d = [];
10585
+ for (let e of t) {
10586
+ if (!e || typeof e != "function") continue;
10587
+ let t = (i = e(u)) == null ? {} : i, { terminate: n, done: r, exitHook: a } = t, o = dg(t, [
10588
+ "terminate",
10589
+ "done",
10590
+ "exitHook"
10591
+ ]);
10592
+ if (n) return;
10593
+ if (a && d.push(a), u = Object.assign(Object.assign({}, u), o), r) {
10594
+ u = null;
10595
+ break;
10596
+ }
10597
+ }
10598
+ if (u && mg(u.value)) {
10599
+ let e = hg(u.value) ? [...u.value.keys()] : Object.keys(u.value);
10600
+ o.push({
10601
+ hooks: d,
10602
+ state: u.state,
10603
+ data: u.value,
10604
+ path: c,
10605
+ keys: e,
10606
+ keyIndex: 0,
10607
+ rules: u.rules
10608
+ });
10609
+ } else for (; d.length;) d.pop()();
10610
+ }
10611
+ }, _g = () => {
10612
+ let e = /* @__PURE__ */ new WeakMap(), t;
10613
+ return [({ value: e }) => {
10614
+ t = e;
10615
+ }, ({ value: n, path: r, key: i, state: a }) => {
10616
+ if (i = r.length ? i : "#", mg(t) && mg(n)) {
10617
+ if (e.has(t)) return a.node[i] = e.get(t), { done: !0 };
10618
+ let r = Array.isArray(n) ? [] : {};
10619
+ a.node[i] = r, e.set(t, r);
10620
+ } else a.node[i] = n;
10621
+ return {
10622
+ value: n,
10623
+ state: Object.assign(Object.assign({}, a), { node: a.node[i] })
10624
+ };
10625
+ }];
10626
+ }, vg = class extends Map {
10627
+ add(e, t) {
10628
+ let n = this.get(e);
10629
+ return n ? n.push(t) : this.set(e, [t]), this;
10630
+ }
10631
+ }, yg = (e, t) => {
10632
+ let n = {};
10633
+ for (let r of t) r in e && (n[r] = e[r], delete e[r]);
10634
+ return n;
10635
+ }, bg = (e, t) => {
10636
+ if (Array.isArray(e) && Array.isArray(t)) return [...e, ...t];
10637
+ if (mg(e) && mg(t)) {
10638
+ let n = Object.assign({}, e);
10639
+ for (let e of Object.keys(t)) n[e] = bg(n[e], t[e]);
10640
+ return n;
10641
+ }
10642
+ return t;
10643
+ }, xg = (e) => e && e.$ref && typeof e.$ref == "string", Sg = (e) => e && e.anyOf && Array.isArray(e.anyOf), Cg = (e) => e && e.oneOf && Array.isArray(e.oneOf), wg = (e, t = "") => {
10644
+ let [n = t, r] = e.split("#"), i = r && r !== "/" ? r : "";
10645
+ return {
10646
+ filePath: n,
10647
+ pointer: i,
10648
+ normalized: Tg(n, i),
10649
+ jsonPath: Og(i)
10650
+ };
10651
+ }, Tg = (e, t) => e ? `${e}${t ? "#" + t : ""}` : t ? `#${t}` : "#", Eg = (e, t, n = [t]) => {
10652
+ if (!mg(e)) return;
10653
+ let r = e, i = Og(t);
10654
+ for (let t of i) if (Array.isArray(r) && r.length > +t) r = r[+t];
10655
+ else if (mg(r) && t in r) r = r[t];
10656
+ else {
10657
+ if (!xg(r)) return;
10658
+ {
10659
+ let t = wg(r.$ref);
10660
+ r = t.filePath || n.includes(t.pointer) ? void 0 : Eg(e, t.pointer, [...n, t.pointer]);
10661
+ }
10662
+ }
10663
+ return r;
10664
+ }, Dg = {
10665
+ slash: /\//g,
10666
+ tilde: /~/g,
10667
+ escapedSlash: /~1/g,
10668
+ escapedTilde: /~0/g
10669
+ }, Og = (e) => e.split("/").map(((e) => decodeURIComponent(e.replace(Dg.escapedSlash, "/").replace(Dg.escapedTilde, "~")))).slice(1), kg = (e) => e.length ? "/" + e.map(((e) => encodeURIComponent(String(e).replace(Dg.tilde, "~0").replace(Dg.slash, "~1")))).join("/") : "", Ag = (e, t) => JSON.stringify(e) == JSON.stringify(t), jg = (e) => {
10670
+ let t = 1;
10671
+ for (; e * t % 1 != 0;) t *= 10;
10672
+ return t;
10673
+ };
10674
+ function Mg(e) {
10675
+ let t = e.reduce(((e, t) => Math.max(e, jg(t))), 0);
10676
+ return e.reduce(((e, n) => Math.round(e * t * n * t / Ng(e * t, n * t)) / t));
10813
10677
  }
10814
- function u_(e) {
10815
- return e ? `${u_(e.parent)}/${e.key}` : "";
10678
+ function Ng(e, t) {
10679
+ return t === 0 ? e : Ng(t, e % t);
10816
10680
  }
10817
- //#endregion
10818
- //#region src/lib/parser/getSchemaUi.ts
10819
- var d_ = class e {
10820
- static createBaseProperty(e, t = {}, n = !1) {
10821
- let r = Array.isArray(t.type) ? t.type : [t.type || "string"], i = r_(t), a = {
10822
- name: e,
10823
- types: r,
10824
- required: n,
10825
- ...t.title && { title: t.title },
10826
- ...t.description && { description: t.description },
10827
- ...t.default !== void 0 && { defaultValue: t.default },
10828
- ...t.externalDocs && { docs: t.externalDocs },
10829
- ...i && { examples: i },
10830
- ...t.nullable && { nullable: t.nullable }
10831
- };
10832
- return t.const !== void 0 && (a.meta = {
10833
- ...a.meta || {},
10834
- isConstant: !0
10835
- }), a_(t) && (a.constraints = o_(t)), Object.keys(t).forEach((e) => {
10836
- e.startsWith("x-") && (a.meta = a.meta || {}, a.meta.extra = a.meta.extra || {}, a.meta.extra[e] = t[e]);
10837
- }), a;
10681
+ var Pg = (e) => {
10682
+ if (e.length === 0) return [[]];
10683
+ let t = e[0], n = Pg(e.slice(1)), r = [];
10684
+ for (let e of t) for (let t of n) r.push([e, ...t]);
10685
+ return r;
10686
+ }, Fg = (e) => {
10687
+ let t = [];
10688
+ for (let n of e) {
10689
+ if (!("properties" in n)) continue;
10690
+ let r = new Set(Object.keys(n.properties)), i = new vg();
10691
+ for (let t of r.values()) for (let a of e) if (!(a == n || a.properties && t in a.properties)) {
10692
+ if ("patternProperties" in a && a.patternProperties) for (let e of Object.keys(a.patternProperties)) new RegExp(e).test(t) || r.delete(t);
10693
+ else "additionalProperties" in a && (!1 === a.additionalProperties ? r.delete(t) : typeof a.additionalProperties == "object" && i.add(t, a.additionalProperties));
10694
+ }
10695
+ if (!r.size) continue;
10696
+ let a = {};
10697
+ for (let e of r.values()) a[e] = i.has(e) ? { allOf: [n.properties[e], ...i.get(e)] } : n.properties[e];
10698
+ t.push(a);
10699
+ }
10700
+ return t;
10701
+ }, Ig = (e) => {
10702
+ let t = [];
10703
+ for (let n of e) {
10704
+ if (!("patternProperties" in n)) continue;
10705
+ let r = new Set(Object.keys(n.patternProperties));
10706
+ for (let t of e) if (t != n && "additionalProperties" in t && !t.additionalProperties) for (let e of r.values()) t.patternProperties && e in t.patternProperties || r.delete(e);
10707
+ if (!r.size) continue;
10708
+ let i = {};
10709
+ for (let e of r.values()) i[e] = n.patternProperties[e];
10710
+ t.push(i);
10711
+ }
10712
+ return t;
10713
+ }, Lg = (e) => {
10714
+ let t = {}, n = Vg(e);
10715
+ for (let [e, r] of Object.entries(n)) t[e] = r.includes(!1) ? !1 : r.length > 1 ? { allOf: r } : r[0];
10716
+ return t;
10717
+ }, Rg = (e, t) => !!e.reduce(((e, t) => e && !0 === t), !0) || Hg(e, t), zg = () => "Could not merge values, they are probably incompatible", Bg = (e) => `Merge rule not found for key: ${e}`, Vg = (e) => {
10718
+ let t = {};
10719
+ for (let n of e) for (let e of Object.keys(n)) Array.isArray(t[e]) ? t[e].push(n[e]) : t[e] = [n[e]];
10720
+ return t;
10721
+ }, Hg = (e, t) => {
10722
+ if (e.includes(!1)) return !1;
10723
+ let n = {}, r = Vg(e);
10724
+ "properties" in r && (r.properties = Fg(e)), "patternProperties" in r && (r.patternProperties = Ig(e));
10725
+ for (let [i, a] of Object.entries(r)) {
10726
+ if (!a.length) continue;
10727
+ let r = t.mergeRules, o = `/${i}` in r ? r[`/${i}`] : r["/?"];
10728
+ o = o && !("$" in o) && "/" in o ? o["/"] : o, o = typeof o == "function" ? o() : o;
10729
+ let s = o && "$" in o ? o.$ : void 0;
10730
+ if (!s) throw Error(Bg(i));
10731
+ let c = a.length > 1 ? s(a, Object.assign(Object.assign({}, t), { allOfItems: e })) : a[0];
10732
+ c === void 0 ? t.mergeError(a) : n[i] = c;
10838
10733
  }
10839
- static createCircularReferenceProperty(e, t) {
10840
- return {
10841
- name: e,
10842
- types: ["object"],
10843
- required: !1,
10844
- description: `Circular reference to **${t}**`,
10845
- meta: { isCircularReference: !0 }
10846
- };
10734
+ return Object.keys(n).length ? n : void 0;
10735
+ }, Ug = (e) => e[e.length - 1], Wg = (e) => e.reduce(((e, t) => e || t), !1), Gg = (e) => Math.min(...e), Kg = (e) => Math.max(...e), qg = (e) => e.length > 1 ? e.reduce(((e, t) => `${e}(?=${t})`), "") : e[0], Jg = ([e, ...t]) => t.reduce(((e, t) => e.filter(((e) => t.includes(e)))), e), Yg = ([e, ...t]) => t.find(((t) => !Ag(t, e))) ? void 0 : e, Xg = ([e, ...t]) => t.reduce(((e, t) => bg(e, t)), e), Zg = (e) => Pg(e).map(((e) => ({ allOf: e }))), Qg = (e) => ({ anyOf: e }), $g = (e) => Mg(e), e_ = (e, t) => {
10736
+ let n = Jg(e.map(((e) => e.map(((e) => JSON.stringify(e)))))).map(((e) => JSON.parse(e))).sort();
10737
+ return n.length || t.mergeError(e), n;
10738
+ }, t_ = (e, t) => {
10739
+ let n = Jg(e.map(((e) => Array.isArray(e) ? e : [e])));
10740
+ return n.length === 1 ? n[0] : n.length ? n : void 0;
10741
+ }, n_ = (e) => {
10742
+ let t = /* @__PURE__ */ new Set();
10743
+ for (let n of e) for (let e of n) t.add(e);
10744
+ return Array.from(t).sort();
10745
+ }, r_ = (e, t) => {
10746
+ let n = {}, r = Vg(e);
10747
+ for (let [e, t] of Object.entries(r)) if (t.reduce(((e, t) => e && Array.isArray(t)), !0)) n[e] = n_(t);
10748
+ else {
10749
+ let r = t.map(((e) => Array.isArray(e) ? { required: e } : e));
10750
+ n[e] = r.length > 1 ? { allOf: r } : r[0];
10847
10751
  }
10848
- static createUnionProperty(t, n, r = "", i = {}, a = !1) {
10849
- let o = e.createBaseProperty(r, i, a), s = [...new Set(t.map((e) => m_(e)).filter(Boolean))];
10850
- s.length > 0 && (o.types = s);
10851
- let c = n === "oneOf", l = c ? "isOneOfItem" : "isAnyOfItem", u = c ? "isOneOf" : "isAnyOf";
10852
- return o.properties = t.map((t) => {
10853
- let n = e.schemaToUiProperty("", t);
10854
- return n.meta = {
10855
- ...n.meta || {},
10856
- [l]: !0
10857
- }, n;
10858
- }), o.meta = {
10859
- ...o.meta || {},
10860
- [u]: !0
10861
- }, o;
10752
+ return n;
10753
+ }, i_ = (e, t) => {
10754
+ if (!e.reduce(((e, t) => Array.isArray(t) || e), !1)) return Hg(e, t);
10755
+ let n = [], r = 1 / 0, i = 0, a = new vg();
10756
+ for (let e of t.allOfItems) "additionalItems" in e && e.additionalItems && "items" in e && Array.isArray(e.items) && a.add(e.items.length, e.additionalItems), "items" in e && (n.push(e.items), Array.isArray(e.items) && (i = Math.max(i, e.items.length), "additionalItems" in e && !1 === e.additionalItems && (r = Math.min(r, e.items.length))));
10757
+ let o = Math.min(i, r), s = [...Array(o)].map((() => ({ allOf: [] })));
10758
+ for (let e of n) if (Array.isArray(e)) for (let t = 0; t < o; t++) {
10759
+ let n = [];
10760
+ for (let e = 0; e <= t; e++) a.has(e) && n.push(...a.get(e));
10761
+ t < e.length ? s[t].allOf.push(n.length ? Object.assign(Object.assign({}, e[t]), { allOf: n }) : e[t]) : s[t].allOf.push(!n.length || { allOf: n });
10762
+ }
10763
+ else s.forEach((({ allOf: t }) => t.push(e)));
10764
+ return s;
10765
+ }, a_ = (e, t) => {
10766
+ let n = [], r = [];
10767
+ for (let e of t.allOfItems) "items" in e && !Array.isArray(e.items) && r.push(e.items), "additionalItems" in e && "items" in e && Array.isArray(e.items) && n.push(e.additionalItems);
10768
+ return r.length && n.forEach(((e) => e.allOf = r)), Hg(n, t);
10769
+ }, $ = (e = "draft-06", t = {}) => Object.assign(Object.assign(Object.assign(Object.assign({
10770
+ "/maximum": { $: Gg },
10771
+ "/exclusiveMaximum": { $: Wg },
10772
+ "/minimum": { $: Kg },
10773
+ "/exclusiveMinimum": { $: Wg },
10774
+ "/maxLength": { $: Gg },
10775
+ "/minLength": { $: Kg },
10776
+ "/maxItems": { $: Gg },
10777
+ "/minItems": { $: Kg },
10778
+ "/uniqueItems": { $: Wg },
10779
+ "/maxProperties": { $: Gg },
10780
+ "/minProperties": { $: Kg },
10781
+ "/required": { $: n_ },
10782
+ "/multipleOf": { $: $g },
10783
+ "/enum": { $: e_ },
10784
+ "/type": { $: t_ },
10785
+ "/allOf": {
10786
+ "/*": () => $(e, t),
10787
+ $: Zg
10788
+ },
10789
+ "/not": { $: Qg },
10790
+ "/oneOf": {
10791
+ "/*": () => $(e, t),
10792
+ $: Zg,
10793
+ sibling: [
10794
+ "definitions",
10795
+ "$defs",
10796
+ "$id",
10797
+ "$schema"
10798
+ ]
10799
+ },
10800
+ "/anyOf": {
10801
+ "/*": () => $(e, t),
10802
+ $: Zg,
10803
+ sibling: [
10804
+ "definitions",
10805
+ "$defs",
10806
+ "$id",
10807
+ "$schema"
10808
+ ]
10809
+ },
10810
+ "/properties": {
10811
+ "/*": () => $(e, t),
10812
+ $: Lg
10813
+ },
10814
+ "/items": () => Object.assign(Object.assign({}, $(e, t)), {
10815
+ $: i_,
10816
+ "/*": ({ key: n }) => typeof n == "number" ? $(e, t) : {}
10817
+ }),
10818
+ "/additionalProperties": () => Object.assign(Object.assign({}, $(e, t)), { $: Rg }),
10819
+ "/additionalItems": () => Object.assign(Object.assign({}, $(e, t)), { $: a_ }),
10820
+ "/patternProperties": {
10821
+ "/*": () => $(e, t),
10822
+ $: Lg
10823
+ },
10824
+ "/pattern": { $: qg },
10825
+ "/readOnly": { $: Wg },
10826
+ "/writeOnly": { $: Wg },
10827
+ "/example": { $: Xg },
10828
+ "/examples": { $: Xg },
10829
+ "/deprecated": { $: Wg }
10830
+ }, e === "draft-04" ? {} : {
10831
+ "/propertyNames": () => $(e, t),
10832
+ "/contains": () => $(e, t),
10833
+ "/dependencies": {
10834
+ "/*": () => $(e, t),
10835
+ $: r_
10836
+ },
10837
+ "/const": { $: Yg },
10838
+ "/exclusiveMaximum": { $: Gg },
10839
+ "/exclusiveMinimum": { $: Kg },
10840
+ "/$defs": {
10841
+ "/*": () => $(e, t),
10842
+ $: Xg
10862
10843
  }
10863
- static createOneOfProperty(t, n = "", r = {}, i = !1) {
10864
- return e.createUnionProperty(t, "oneOf", n, r, i);
10844
+ }), {
10845
+ "/definitions": {
10846
+ "/*": () => $(e, t),
10847
+ $: Xg
10848
+ },
10849
+ "/xml": { $: Xg },
10850
+ "/externalDocs": { $: Ug },
10851
+ "/description": { $: Ug },
10852
+ "/title": { $: Ug },
10853
+ "/format": { $: Ug },
10854
+ "/default": { $: Ug },
10855
+ "/?": { $: Ug }
10856
+ }), t), { $: Hg }), o_ = (e) => $(e, {
10857
+ "/discriminator": { $: Xg },
10858
+ "/oneOf": {
10859
+ "/*": () => o_(e),
10860
+ $: Zg,
10861
+ sibling: ["discriminator"]
10862
+ },
10863
+ "/anyOf": {
10864
+ "/*": () => o_(e),
10865
+ $: Zg,
10866
+ sibling: ["discriminator"]
10865
10867
  }
10866
- static createAnyOfProperty(t, n = "", r = {}, i = !1) {
10867
- return e.createUnionProperty(t, "anyOf", n, r, i);
10868
+ }), s_ = (e) => e === "3.0.x" ? Object.assign(Object.assign({}, o_("draft-04")), { "/items": ({ key: e }) => Object.assign(Object.assign({}, o_("draft-04")), { $: i_ }) }) : o_("draft-06"), c_ = (e) => ({ "/*": { "/schema": s_(e) } }), l_ = (e) => ({ "/content": { "/*": {
10869
+ "/schema": s_(e),
10870
+ "/encoding": { "/headers": c_(e) }
10871
+ } } }), u_ = (e) => ({ "/*": {
10872
+ "/headers": c_(e),
10873
+ "/content": { "/*": {
10874
+ "/schema": s_(e),
10875
+ "/encoding": { "/headers": c_(e) }
10876
+ } }
10877
+ } }), d_ = (e = "3.0.x") => ({
10878
+ "/paths": { "/*": {
10879
+ "/*": {
10880
+ "/parameters": c_(e),
10881
+ "/requestBody": l_(e),
10882
+ "/responses": u_(e)
10883
+ },
10884
+ "/parameters": c_(e)
10885
+ } },
10886
+ "/components": {
10887
+ "/schemas": { "/*": s_(e) },
10888
+ "/responses": u_(e),
10889
+ "/parameters": c_(e),
10890
+ "/requestBodies": { "/*": l_(e) },
10891
+ "/headers": c_(e)
10892
+ }
10893
+ }), f_ = $("draft-06", {
10894
+ "/args": () => f_,
10895
+ "/nullable": { $: Wg },
10896
+ "/specifiedByURL": { $: Ug },
10897
+ "/values": {
10898
+ $: Xg,
10899
+ "/*": {
10900
+ $: Xg,
10901
+ "/description": { $: Ug },
10902
+ "/deprecated": {
10903
+ $: Ug,
10904
+ "/reason": { $: Ug }
10905
+ }
10906
+ }
10907
+ },
10908
+ "/interfaces": {
10909
+ $: Xg,
10910
+ "/*": { $: Xg }
10911
+ },
10912
+ "/directives": {
10913
+ $: Xg,
10914
+ "/*": () => Object.assign(Object.assign({}, f_), { "/meta": { $: Xg } })
10868
10915
  }
10869
- static schemaToUiProperty(t, n, r = !1) {
10870
- if (!n || Object.keys(n).length === 0) return {
10871
- name: t,
10872
- types: [],
10873
- required: r
10916
+ }), p_ = {
10917
+ "/queries": { "/*": () => f_ },
10918
+ "/mutations": { "/*": () => f_ },
10919
+ "/subscriptions": { "/*": () => f_ },
10920
+ "/components": {
10921
+ "/*": { "/*": f_ },
10922
+ "/directives": { "/*": { "/args": () => f_ } }
10923
+ }
10924
+ }, m_ = (e, t, n) => {
10925
+ let r = n.sibling || [], i = e, a = t, o = i[a], s = ug(i, [typeof a == "symbol" ? a : a + ""]), c = yg(s, r);
10926
+ return Object.keys(s).length ? Object.assign({ [t]: o.map(((e) => ({ allOf: [s, e] }))) }, c) : e;
10927
+ }, h_ = (e, t, n, r) => {
10928
+ let i = [], a = kg(t), o = [], s = {
10929
+ pointer: a,
10930
+ data: "",
10931
+ refs: []
10932
+ };
10933
+ for (let t of e) if (xg(t) && !o.includes(t.$ref)) {
10934
+ s.data === "" && (s.data = JSON.stringify(e));
10935
+ let { $ref: c } = t, l = ug(t, ["$ref"]), { filePath: u, normalized: d, pointer: f } = wg(c);
10936
+ if (a === f) continue;
10937
+ let p = r.find(((e) => e.refs.includes(t.$ref) && e.data === s.data && f !== e.pointer));
10938
+ if (p) return {
10939
+ allOfItems: [{ $ref: `#${p.pointer}` }],
10940
+ brokenRefs: o
10874
10941
  };
10875
- if (n.circularReference) return e.createCircularReferenceProperty(t, n.circularReference);
10876
- if (n.oneOf) return e.createOneOfProperty(n.oneOf, t, n, r);
10877
- if (n.anyOf) return e.createAnyOfProperty(n.anyOf, t, n, r);
10878
- if (n.const !== void 0) {
10879
- let i = e.createBaseProperty(t, n, r), a = m_(n);
10880
- a && (i.types = [a]);
10881
- let o = r_(n) || n.const;
10882
- return o !== void 0 && (i.examples = Array.isArray(o) ? o : [o]), i.meta = {
10883
- ...i.meta || {},
10884
- isConstant: !0
10885
- }, i;
10942
+ if (!s.refs.includes(d)) {
10943
+ s.refs.push(d);
10944
+ let e = u ? void 0 : Eg(n, f);
10945
+ e === void 0 ? (o.push(d), i.push(t)) : i.push(e);
10886
10946
  }
10887
- if (n.enum) {
10888
- let i = [];
10889
- i = n.type ? Array.isArray(n.type) ? n.type : [n.type] : p_(n.enum), i.length === 0 && (i = ["string"]);
10890
- let a = e.createBaseProperty(t, n, r);
10891
- return a.enum = n.enum, a.types = i, a;
10892
- }
10893
- let i = e.createBaseProperty(t, n, r);
10894
- if (Array.isArray(n.type) ? n.type.includes("array") : n.type === "array") {
10895
- if (n.items) {
10896
- let t = m_(n.items);
10897
- i.properties = t === "object" ? e.extractProperties(n.items.properties, n.items.required || [], n.items.additionalProperties, n.items["x-additionalPropertiesName"]) : void 0, t !== void 0 && (i.subtype = t);
10898
- let r = r_(n.items);
10899
- if (r && (i.subexamples = r), n.items.const !== void 0 && (i.meta = {
10900
- ...i.meta || {},
10901
- isConstant: !0
10902
- }), n.items.oneOf || n.items.anyOf) {
10903
- let t = !!n.items.oneOf, r = t ? n.items.oneOf : n.items.anyOf, a = t ? "isOneOf" : "isAnyOf", o = t ? "isOneOfItem" : "isAnyOfItem";
10904
- i.meta = {
10905
- ...i.meta || {},
10906
- [a]: !0
10907
- }, i.properties = r.map((t) => {
10908
- let r = {
10909
- ...t,
10910
- type: n.items.type
10911
- };
10912
- return {
10913
- ...e.schemaToUiProperty("", r),
10914
- meta: {
10915
- ...t.meta || {},
10916
- [o]: !0
10917
- }
10918
- };
10919
- });
10920
- }
10921
- if (t !== "object" && t !== "array" && !n.items.oneOf && !n.items.anyOf) {
10922
- let t = e.schemaToUiProperty("[item]", n.items);
10923
- (t.description || t.enum || t.constraints || t.docs) && (i.items = t);
10924
- }
10947
+ Object.keys(l).length && i.push(l);
10948
+ } else i.push(t);
10949
+ s.refs.length && r.push(s);
10950
+ let c = g_(i);
10951
+ return c.find(((e) => xg(e) && !o.includes(e.$ref))) ? h_(c, t, n, r) : {
10952
+ allOfItems: c,
10953
+ brokenRefs: o
10954
+ };
10955
+ }, g_ = (e) => {
10956
+ let t = [];
10957
+ for (let n of e) if (mg(n)) {
10958
+ if (n.allOf && Array.isArray(n.allOf)) {
10959
+ let { allOf: e } = n, r = ug(n, ["allOf"]), i = Object.keys(r).length ? [...e, r] : e;
10960
+ t.push(...g_(i));
10961
+ } else t.push(n);
10962
+ }
10963
+ return t;
10964
+ }, __ = (e) => typeof e != "object" || !e ? $() : "openapi" in e && typeof e.openapi == "string" && /3.+/.test(e.openapi) ? d_(e.openapi.startsWith("3.1") ? "3.1.x" : "3.0.x") : "graphapi" in e && typeof e.graphapi == "string" ? p_ : $(), v_ = (e, t) => {
10965
+ var n;
10966
+ let r = (n = t == null ? void 0 : t.rules) == null ? __(e) : n;
10967
+ return ((e, t = [], n = {}) => {
10968
+ var r;
10969
+ t = Array.isArray(t) ? t : [t];
10970
+ let i = { "#": void 0 }, a = Object.assign({ state: Object.assign(Object.assign({}, (r = n.state) == null ? {} : r), {
10971
+ root: i,
10972
+ node: i
10973
+ }) }, n.rules ? { rules: n.rules } : {}), [o, s] = _g();
10974
+ return gg(e, [
10975
+ o,
10976
+ ...t,
10977
+ s
10978
+ ], a), i["#"];
10979
+ })(e, y_(t), { rules: r });
10980
+ }, y_ = (e) => {
10981
+ let t = /* @__PURE__ */ new Map(), n = e == null ? void 0 : e.source, r = [];
10982
+ return ({ value: i, key: a, path: o, rules: s, state: c }) => {
10983
+ var l;
10984
+ o.length || e != null && e.source || (n = i);
10985
+ let u = (n) => {
10986
+ var r;
10987
+ let i = b_(o);
10988
+ i ? t.set(...i) : (r = e == null ? void 0 : e.onMergeError) == null || r.call(e, zg(), o, n);
10989
+ }, d = () => {
10990
+ let { node: e } = c, n = kg(o);
10991
+ if (t.has(n)) {
10992
+ let r = t.get(n), o = e[a];
10993
+ Array.isArray(o) && (o.length < 2 && u((i == null ? void 0 : i.allOf) || []), o.splice(r, 1));
10925
10994
  }
10926
- if (n.prefixItems && Array.isArray(n.prefixItems) && (i.properties = n.prefixItems.map((t, n) => {
10927
- let r = e.schemaToUiProperty(`[${n}]`, t, !1);
10928
- return r.meta = {
10929
- ...r.meta || {},
10930
- isPrefixItem: !0,
10931
- prefixItemIndex: n
10932
- }, r;
10933
- }), i.meta = {
10934
- ...i.meta || {},
10935
- hasPrefixItems: !0
10936
- }), n.prefixItems && Array.isArray(n.prefixItems) && n.items) {
10937
- let t = e.schemaToUiProperty("[n+]", n.items, !1);
10938
- t.meta = {
10939
- ...t.meta || {},
10940
- isAdditionalItems: !0
10941
- }, i.properties = [...i.properties || [], t], i.subtype = void 0;
10995
+ };
10996
+ if (!mg(i) || Array.isArray(i) || !((e) => !!e && e["/allOf"] && "$" in e["/allOf"])(s)) return { exitHook: d };
10997
+ let { allOf: f } = i, p = ug(i, ["allOf"]), m = [];
10998
+ if (Array.isArray(f) && m.push(...f), m.length) Object.keys(p).length && m.push(p);
10999
+ else {
11000
+ let { $ref: t } = p, n = ug(p, ["$ref"]);
11001
+ if (e != null && e.mergeRefSibling && t && Object.keys(n).length > 0) m.push({ $ref: t }, n);
11002
+ else if (e != null && e.mergeCombinarySibling) {
11003
+ if (Sg(p) && s["/anyOf"]) return {
11004
+ value: m_(p, "anyOf", s["/anyOf"]),
11005
+ exitHook: d
11006
+ };
11007
+ if (Cg(p) && s["/oneOf"]) return {
11008
+ value: m_(p, "oneOf", s["/oneOf"]),
11009
+ exitHook: d
11010
+ };
10942
11011
  }
10943
- } else (Array.isArray(n.type) ? n.type.includes("object") : n.type === "object") ? i.properties = e.extractProperties(n.properties, n.required || [], n.additionalProperties, n["x-additionalPropertiesName"]) : n.type === void 0 && (n.properties || n.additionalProperties) && (i.types = ["object"], i.properties = e.extractProperties(n.properties, n.required || [], n.additionalProperties, n["x-additionalPropertiesName"]));
10944
- return i;
10945
- }
10946
- static extractProperties(t, n = [], r, i) {
10947
- let a = [];
10948
- if (t && Object.entries(t).forEach(([t, r]) => {
10949
- let i = n.includes(t);
10950
- a.push(e.schemaToUiProperty(t, r, i));
10951
- }), r) {
10952
- let t = typeof r == "object" ? r : { type: "string" }, n = i || "additionalProperties", o = e.schemaToUiProperty(n, t);
10953
- o.required = !1, o.meta = {
10954
- ...o.meta || {},
10955
- isAdditionalProperties: !0
10956
- }, a.push(o);
10957
11012
  }
10958
- return a;
10959
- }
11013
+ if (!m.length) return {
11014
+ value: p,
11015
+ exitHook: d
11016
+ };
11017
+ let { allOfItems: h, brokenRefs: g } = h_(m, o, n, r);
11018
+ if (g.length) {
11019
+ for (let t of g) (l = e == null ? void 0 : e.onRefResolveError) == null || l.call(e, "Cannot resolve $ref", o, t);
11020
+ return {
11021
+ value: { allOf: h },
11022
+ exitHook: d
11023
+ };
11024
+ }
11025
+ if (h.length < 2) return {
11026
+ value: h.length ? h[0] : {},
11027
+ exitHook: d
11028
+ };
11029
+ let _ = Hg(h, {
11030
+ allOfItems: h,
11031
+ mergeRules: s,
11032
+ mergeError: u
11033
+ });
11034
+ return e != null && e.mergeCombinarySibling && Sg(_) ? {
11035
+ value: m_(_, "anyOf", s["/anyOf"]),
11036
+ exitHook: d
11037
+ } : e != null && e.mergeCombinarySibling && Cg(_) ? {
11038
+ value: m_(_, "oneOf", s["/oneOf"]),
11039
+ exitHook: d
11040
+ } : {
11041
+ value: _,
11042
+ exitHook: d
11043
+ };
11044
+ };
11045
+ }, b_ = (e) => {
11046
+ for (let t = e.length - 2; t >= 0; t--) if (e[t] === "anyOf" || e[t] === "oneOf") return [kg(e.slice(0, t + 1)), e[t + 1]];
10960
11047
  };
10961
- function f_(e) {
10962
- if (!e || Object.keys(e).length === 0) return [];
10963
- let t = s_(e);
10964
- return d_.schemaToUiProperty("", t);
10965
- }
10966
- function p_(e) {
10967
- let t = /* @__PURE__ */ new Set();
10968
- return e.forEach((e) => {
10969
- e === null ? t.add("null") : Array.isArray(e) ? t.add("array") : typeof e == "object" ? t.add("object") : typeof e == "string" ? t.add("string") : typeof e == "boolean" ? t.add("boolean") : typeof e == "number" && t.add(Number.isInteger(e) ? "integer" : "number");
10970
- }), t.has("number") && t.delete("integer"), [...t];
10971
- }
10972
- function m_(e) {
10973
- return !e.type && e.properties ? "object" : !e.type && e.items ? "array" : !e.type && e.const !== void 0 ? Array.isArray(e.const) ? "array" : typeof e.const == "object" && e.const !== null ? "object" : typeof e.const == "string" ? "string" : typeof e.const == "number" ? "number" : typeof e.const == "boolean" ? "boolean" : "null" : e.type;
10974
- }
10975
11048
  //#endregion
10976
- //#region src/lib/parser/generateRequestBodyUi.ts
10977
- function h_(e) {
10978
- if (!e.paths) return e;
10979
- for (let t of Object.values(e.paths)) for (let e of $) {
10980
- let n = t[e];
10981
- if (n && n.requestBody) for (let [e, t] of Object.entries(n.requestBody.content || {})) {
10982
- let n = t;
10983
- n.schema && (n.ui = f_(n.schema), n.examples = {
10984
- ...n.examples || {},
10985
- ...t_(e, n.ui, !0)
10986
- });
10987
- }
10988
- }
10989
- return e;
11049
+ //#region src/lib/parser/mergeAllOf.ts
11050
+ function x_(e) {
11051
+ var t;
11052
+ let n = [["paths"], ...Object.keys((t = e.components) == null ? {} : t).map((e) => ["components", e])].flatMap((t) => {
11053
+ var n;
11054
+ return Object.entries((n = C_(e, t)) == null ? {} : n).filter(([, e]) => S_(e)).map(([e]) => [...t, e]);
11055
+ });
11056
+ if (!n.length) return e;
11057
+ let r = { openapi: e.openapi };
11058
+ n.forEach((t) => w_(r, t, C_(e, t)));
11059
+ let i = v_(r, { source: e }), a = { ...e };
11060
+ return n.forEach((e) => w_(a, e, C_(i, e))), a;
10990
11061
  }
10991
- //#endregion
10992
- //#region src/lib/parser/generateResponseUi.ts
10993
- function g_(e) {
10994
- if (!e.paths) return e;
10995
- for (let t of Object.values(e.paths)) for (let e of $) {
10996
- let n = t[e];
10997
- if (n && n.responses) for (let e of Object.values(n.responses)) for (let [t, n] of Object.entries(e.content || {})) {
10998
- let e = n;
10999
- e.schema && (e.ui = f_(e.schema), e.examples = {
11000
- ...e.examples || {},
11001
- ...t_(t, e.ui, !0)
11002
- });
11003
- }
11004
- }
11005
- return e;
11062
+ function S_(e) {
11063
+ return !e || typeof e != "object" ? !1 : "allOf" in e || Object.values(e).some(S_);
11006
11064
  }
11007
- //#endregion
11008
- //#region src/lib/parser/getSecurityUi.ts
11009
- var __ = "None";
11010
- function v_(e, t) {
11011
- let n = [];
11012
- return e ? (e.forEach((e) => {
11013
- let r = {
11014
- id: Object.keys(e).length ? Object.keys(e).join("|") : __,
11015
- schemes: {}
11016
- };
11017
- Object.keys(e).forEach((e) => {
11018
- t && t[e] && (r.schemes[e] = t[e]);
11019
- }), n.push(r);
11020
- }), n.length === 1 && n[0].id === __ && Object.keys(n[0].schemes).length === 0 ? [] : n) : n;
11065
+ function C_(e, t) {
11066
+ return t.reduce((e, t) => e == null ? void 0 : e[t], e);
11021
11067
  }
11022
- //#endregion
11023
- //#region src/lib/parser/generateSecurityUi.ts
11024
- function y_(e) {
11025
- if (!(e != null && e.paths)) return e;
11026
- for (let i of Object.values(e.paths)) for (let a of $) {
11027
- var t, n, r;
11028
- let o = i[a];
11029
- o && (o.securityUi = v_((t = (n = o.security) == null ? e.security : n) == null ? [] : t, ((r = e.components) == null ? void 0 : r.securitySchemes) || {}));
11030
- }
11031
- return e;
11068
+ function w_(e, t, n) {
11069
+ let r = e;
11070
+ for (let e of t.slice(0, -1)) r = r[e] = { ...r[e] };
11071
+ r[t[t.length - 1]] = n;
11032
11072
  }
11033
11073
  //#endregion
11034
11074
  //#region src/lib/parser/parseOpenapi.ts
11035
- function b_() {
11075
+ function T_() {
11036
11076
  function e({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0 }) {
11037
- let r = Hh(e);
11038
- return r ? !r.openapi || !String(r.openapi).startsWith("3.") ? (console.warn("Only OpenAPI 3.x is supported"), {}) : (r != null && r.paths && (r = Og(r), r = kg(r), r = Ag({
11077
+ let r = Am(e);
11078
+ return r ? !r.openapi || !String(r.openapi).startsWith("3.") ? (console.warn("Only OpenAPI 3.x is supported"), {}) : (r != null && r.paths && (r = vh(r), r = yh(r), r = bh({
11039
11079
  spec: r,
11040
11080
  defaultTag: t,
11041
11081
  defaultTagDescription: n
11042
11082
  })), r.externalDocs = r.externalDocs || {}, r.info = r.info || {}, r.servers = r.servers || [], r.tags = r.tags || [], { ...r }) : {};
11043
11083
  }
11044
11084
  async function t({ spec: e }) {
11045
- let t = Hh(e), [n, r] = await Wu(() => Eg(t));
11085
+ let t = Am(e), [n, r] = await Wu(() => gh(t));
11046
11086
  return t = r ? t : n, t;
11047
11087
  }
11048
11088
  function n({ spec: t, defaultTag: n = void 0, defaultTagDescription: r = void 0 }) {
11049
- let i = { ...Hh(t) }, [a, o] = Wu(() => nf(e({
11089
+ let i = { ...Am(t) }, [a, o] = Wu(() => x_(e({
11050
11090
  spec: t,
11051
11091
  defaultTag: n,
11052
11092
  defaultTagDescription: r
11053
11093
  })));
11054
11094
  i = o ? i : a;
11055
- let [s, c] = Wu(() => Zh(i));
11095
+ let [s, c] = Wu(() => Bm(i));
11056
11096
  i = c ? i : s;
11057
- let [l, u] = Wu(() => y_(i));
11097
+ let [l, u] = Wu(() => lg(i));
11058
11098
  i = u ? i : l;
11059
- let [d, f] = Wu(() => h_(i));
11060
- i = f ? i : d;
11061
- let [p, m] = Wu(() => g_(i));
11062
- return i = m ? i : p, i.externalDocs = i.externalDocs || i.externalDocs || {}, i.info = i.info || i.info || {}, i.servers = i.servers || i.servers || [], i.tags = i.tags || i.tags || [], { ...i };
11099
+ let d = new eg(), [f, p] = Wu(() => ag(i, d));
11100
+ i = p ? i : f;
11101
+ let [m, h] = Wu(() => og(i, d));
11102
+ return i = h ? i : m, i.externalDocs = i.externalDocs || i.externalDocs || {}, i.info = i.info || i.info || {}, i.servers = i.servers || i.servers || [], i.tags = i.tags || i.tags || [], { ...i };
11063
11103
  }
11064
11104
  async function r({ spec: e, defaultTag: r = void 0, defaultTagDescription: i = void 0 }) {
11065
11105
  let a = n({
@@ -11078,55 +11118,55 @@ function b_() {
11078
11118
  }
11079
11119
  //#endregion
11080
11120
  //#region src/composables/useOpenapi.ts
11081
- var x_ = Symbol("openapiLocal"), S_ = null;
11082
- function C_(e, t) {
11083
- return Qh({
11121
+ var E_ = Symbol("openapiLocal"), D_ = null;
11122
+ function O_(e, t) {
11123
+ return Vm({
11084
11124
  spec: e,
11085
11125
  originalSpec: t
11086
11126
  });
11087
11127
  }
11088
- function w_(e) {
11089
- let t = Hh(e.spec);
11090
- return C_(b_().parseSync({
11128
+ function k_(e) {
11129
+ let t = Am(e.spec);
11130
+ return O_(T_().parseSync({
11091
11131
  spec: e.spec,
11092
11132
  defaultTag: e.defaultTag,
11093
11133
  defaultTagDescription: e.defaultTagDescription
11094
11134
  }), t);
11095
11135
  }
11096
- async function T_(e) {
11097
- let t = Hh(e.spec);
11098
- return C_(await b_().parseAsync({
11136
+ async function A_(e) {
11137
+ let t = Am(e.spec);
11138
+ return O_(await T_().parseAsync({
11099
11139
  spec: e.spec,
11100
11140
  defaultTag: e.defaultTag,
11101
11141
  defaultTagDescription: e.defaultTagDescription
11102
11142
  }), t);
11103
11143
  }
11104
- function E_() {
11105
- return o(x_, null);
11144
+ function j_() {
11145
+ return a() ? o(E_, null) : null;
11106
11146
  }
11107
- function D_() {
11108
- return S_;
11147
+ function M_() {
11148
+ return D_;
11109
11149
  }
11110
- function O_(e = {}) {
11150
+ function N_(e = {}) {
11111
11151
  var t, n;
11112
11152
  if (e.config && Wo(e.config), e.spec) {
11113
11153
  var r, i;
11114
- S_ = w_({
11154
+ D_ = k_({
11115
11155
  spec: e.spec,
11116
11156
  defaultTag: (r = e.config) == null || (r = r.spec) == null ? void 0 : r.defaultTag,
11117
11157
  defaultTagDescription: (i = e.config) == null || (i = i.spec) == null ? void 0 : i.defaultTagDescription
11118
11158
  });
11119
11159
  }
11120
- let a = (t = (n = E_()) == null ? S_ : n) == null ? Qh({}) : t;
11160
+ let a = (t = (n = j_()) == null ? D_ : n) == null ? Vm({}) : t;
11121
11161
  async function o(t = {}) {
11122
11162
  var n, r, i;
11123
11163
  let a = (n = t.spec) == null ? e.spec : n;
11124
11164
  if (!a) throw Error("No spec provided");
11125
- return S_ = await T_({
11165
+ return D_ = await A_({
11126
11166
  spec: a,
11127
11167
  defaultTag: (r = e.config) == null || (r = r.spec) == null ? void 0 : r.defaultTag,
11128
11168
  defaultTagDescription: (i = e.config) == null || (i = i.spec) == null ? void 0 : i.defaultTagDescription
11129
- }), S_;
11169
+ }), D_;
11130
11170
  }
11131
11171
  return {
11132
11172
  ...a,
@@ -11134,4 +11174,4 @@ function O_(e = {}) {
11134
11174
  };
11135
11175
  }
11136
11176
  //#endregion
11137
- export { re as $, Ja as A, ot as B, To as C, io as D, lo as E, He as F, Oe as G, lt as H, Le as I, ke as J, me as K, ct as L, Ya as M, T as N, ao as O, Ie as P, ne as Q, Re as R, Eo as S, uo as T, ue as U, nt as V, de as W, le as X, Me as Y, Pe as Z, Vh as _, b_ as a, Wo as b, Tg as c, Cg as d, ae as et, hg as f, Hh as g, Qh as h, O_ as i, Za as j, Xa as k, $ as l, $h as m, D_ as n, o_ as o, fg as p, ye as q, E_ as r, r_ as s, x_ as t, oe as tt, wg as u, Uu as v, fo as w, No as x, Ro as y, ze as z };
11177
+ export { re as $, Ja as A, ot as B, To as C, io as D, lo as E, He as F, Oe as G, lt as H, Le as I, ke as J, me as K, ct as L, Ya as M, T as N, ao as O, Ie as P, ne as Q, Re as R, Eo as S, uo as T, ue as U, nt as V, de as W, le as X, Me as Y, Pe as Z, km as _, T_ as a, Wo as b, hh as c, fh as d, ae as et, ih as f, Am as g, Vm as h, N_ as i, Za as j, Xa as k, ph as l, Hm as m, M_ as n, Xh as o, th as p, ye as q, j_ as r, qh as s, E_ as t, oe as tt, mh as u, Uu as v, fo as w, No as x, Ro as y, ze as z };