vitepress-openapi 0.2.6 → 0.2.7
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.
- package/dist/{angular-html-DARb335O.js → angular-html-C0iYY931.js} +2 -2
- package/dist/{angular-html-CGsuZc6a.cjs → angular-html-DAq3gDGA.cjs} +1 -1
- package/dist/{angular-ts-Bg4b1K8o.cjs → angular-ts-B2PPB0Y5.cjs} +1 -1
- package/dist/{angular-ts-CrrEVOLQ.js → angular-ts-Ct5d_gHN.js} +2 -2
- package/dist/{apl-BUNzB7iS.js → apl-CiiA3JDJ.js} +5 -5
- package/dist/{apl-D9ujzlDe.cjs → apl-CoWANpfc.cjs} +1 -1
- package/dist/{astro-DuWrFiiv.cjs → astro-BX6R0KnA.cjs} +1 -1
- package/dist/{astro-CT6LVfZb.js → astro-Bzlt-IuJ.js} +5 -5
- package/dist/{blade-DEZwhTmz.cjs → blade-BBZCfhID.cjs} +1 -1
- package/dist/{blade-CT3BYEkw.js → blade-BGVF6ubL.js} +7 -7
- package/dist/{c-Df26Rt3n.js → c-BpiaxH9s.js} +1 -1
- package/dist/{c-DDdF0YXr.cjs → c-CHRY6FQk.cjs} +1 -1
- package/dist/{chapel-BGl0pLYE.cjs → chapel-CCUE2hqL.cjs} +1 -1
- package/dist/{chapel-7XVmedRB.js → chapel-fECU7c1r.js} +1 -1
- package/dist/{cobol-BgGrvcfE.cjs → cobol-Ete-w65U.cjs} +1 -1
- package/dist/{cobol-7e4lFVpj.js → cobol-lxVOio4o.js} +2 -2
- package/dist/{coffee-D2EFnoK3.js → coffee-D_GP6Mp_.js} +1 -1
- package/dist/{coffee-CnTOT7qi.cjs → coffee-DcVdEhV6.cjs} +1 -1
- package/dist/{cpp-BdIhYOqJ.cjs → cpp-BQiBH6_n.cjs} +1 -1
- package/dist/{cpp-BrJ3qayw.js → cpp-C2_nndOX.js} +3 -3
- package/dist/{crystal-CijsJH2S.js → crystal-D68fQQf4.js} +6 -6
- package/dist/{crystal-C0oOOTvI.cjs → crystal-bWCs3mcQ.cjs} +1 -1
- package/dist/{css-BDLPKt_n.js → css-CwZ52NVY.js} +1 -1
- package/dist/{css-BJ4fQgJY.cjs → css-LUs62piT.cjs} +1 -1
- package/dist/{edge-D7t7tSii.cjs → edge-CRrD84FE.cjs} +1 -1
- package/dist/{edge-CWCiEXP9.js → edge-CxIBp4BJ.js} +3 -3
- package/dist/{elixir-8Qtl7ev_.js → elixir-DzlkeFTp.js} +1 -1
- package/dist/{elixir-CEVCh53I.cjs → elixir-txrLIPgt.cjs} +1 -1
- package/dist/{elm-CQNq4BKy.js → elm-BSAvBsXU.js} +1 -1
- package/dist/{elm-BktTaRPW.cjs → elm-D3rgeOAI.cjs} +1 -1
- package/dist/{erb-DCFD7vrt.js → erb-CDFFPhk2.js} +2 -2
- package/dist/{erb-Bas_b7PL.cjs → erb-CEerDw7_.cjs} +1 -1
- package/dist/{git-rebase-CSFTH0sQ.js → git-rebase-BI3TNfL1.js} +1 -1
- package/dist/{git-rebase-DGo4nA7C.cjs → git-rebase-BRc34H8A.cjs} +1 -1
- package/dist/{glimmer-js-Ce8bwdpO.js → glimmer-js-BCOl9pkK.js} +4 -4
- package/dist/{glimmer-js-Z7E0DaWX.cjs → glimmer-js-BjCbjAxk.cjs} +1 -1
- package/dist/{glimmer-ts-osenBmqR.cjs → glimmer-ts-BaygTMht.cjs} +1 -1
- package/dist/{glimmer-ts-CdP0Y2rr.js → glimmer-ts-DtU3AR2J.js} +4 -4
- package/dist/{glsl-gQ2PTprT.js → glsl-C3jot75m.js} +2 -2
- package/dist/{glsl-DqSyLtjd.cjs → glsl-C4QVQ8IM.cjs} +1 -1
- package/dist/{graphql-D9d0A3NW.js → graphql-C57m_foI.js} +5 -5
- package/dist/{graphql-DTkt67qx.cjs → graphql-CWVurcx-.cjs} +1 -1
- package/dist/{hack-BsFtI2Eg.cjs → hack-CO29PdAW.cjs} +1 -1
- package/dist/{hack-D2t7w518.js → hack-LG-O4iX2.js} +2 -2
- package/dist/{haml-BBf8fdr9.cjs → haml-D5udMhEZ.cjs} +1 -1
- package/dist/{haml-DtrHnXyI.js → haml-Qqt96dA3.js} +3 -3
- package/dist/{handlebars-BFrhjavm.js → handlebars-BBft0uRg.js} +4 -4
- package/dist/{handlebars-DPepJR-F.cjs → handlebars-dotklBKW.cjs} +1 -1
- package/dist/{html-CZSxUh6E.js → html-Cm4eMgz9.js} +3 -3
- package/dist/{html-derivative-CiU9WY3_.cjs → html-derivative-Cu6O2gHN.cjs} +1 -1
- package/dist/{html-derivative-1D9rMziY.js → html-derivative-DMWaumzq.js} +1 -1
- package/dist/{html-tDTTwBjP.cjs → html-hrBEmwSv.cjs} +1 -1
- package/dist/{http-_yCM4LFM.js → http-Cz6VY5Wo.js} +4 -4
- package/dist/{http-BEeboTha.cjs → http-D168KNW_.cjs} +1 -1
- package/dist/{hurl-CjTriWW3.js → hurl-D36azgIj.js} +2 -2
- package/dist/{hurl-CzW0xtQK.cjs → hurl-DSwY6Z5G.cjs} +1 -1
- package/dist/{java-BBWcloI5.js → java-BKXCRk8D.js} +1 -1
- package/dist/{java-DEV9nIzf.cjs → java-CFiC7SeI.cjs} +1 -1
- package/dist/{javascript-COXg7KRK.cjs → javascript-Bx9N9g1f.cjs} +1 -1
- package/dist/{javascript-BtdwTU5l.js → javascript-DljrdC8t.js} +1 -1
- package/dist/{jinja-0Fph51Wu.js → jinja-NZUdcntO.js} +1 -1
- package/dist/{jinja-SDapQ1jF.cjs → jinja-f05HaP8v.cjs} +1 -1
- package/dist/{jison-DKkCHBi3.js → jison-BQnZ1V4P.js} +1 -1
- package/dist/{jison-C6HvDI82.cjs → jison-Dlb0RIZ3.cjs} +1 -1
- package/dist/{json-D9-BN10e.cjs → json-CzaEM6zR.cjs} +1 -1
- package/dist/{json-1Shnxn5T.js → json-DyprfpNy.js} +1 -1
- package/dist/{jsx-DMGrwzK7.js → jsx-DoPFZPXc.js} +1 -1
- package/dist/{jsx-CJ8AuAld.cjs → jsx-X5IYTTmR.cjs} +1 -1
- package/dist/{julia-BOWoqzWb.cjs → julia-BUcVnjBf.cjs} +1 -1
- package/dist/{julia-CtGveS0F.js → julia-DrSudrKE.js} +4 -4
- package/dist/{just-DJBTWvtH.cjs → just-DydEbCQZ.cjs} +1 -1
- package/dist/{just-Ocglo-Ta.js → just-tTSTWYrq.js} +5 -5
- package/dist/{latex-jmD-x2Sw.cjs → latex-BQA9tWbc.cjs} +1 -1
- package/dist/{latex-CwRnFmhO.js → latex-BUsA-DrV.js} +1 -1
- package/dist/{liquid-B0j0Ojr6.cjs → liquid-DkgygF2N.cjs} +1 -1
- package/dist/{liquid-BUvHlsu4.js → liquid-cWkPgL2I.js} +4 -4
- package/dist/{lua-CCwV5A-2.js → lua-C6iAvpwo.js} +2 -2
- package/dist/{lua-Cx8wh7Cx.cjs → lua-DIfY63me.cjs} +1 -1
- package/dist/{marko-B7d7a75U.js → marko-CNIbHKC5.js} +3 -3
- package/dist/{marko-DgvX-ocG.cjs → marko-Du_QgmTX.cjs} +1 -1
- package/dist/{mdc-T8GMGcnF.cjs → mdc-C_TsMRBC.cjs} +1 -1
- package/dist/{mdc-qWBp3e-g.js → mdc-DJo1F4gz.js} +2 -2
- package/dist/{nginx-CJ6LIx1U.cjs → nginx-B4IJHacq.cjs} +1 -1
- package/dist/{nginx-BbITQOFT.js → nginx-CwCNXVm0.js} +1 -1
- package/dist/{nim-_u7AMou0.cjs → nim-rz8U_2RE.cjs} +1 -1
- package/dist/{nim-jrsjoy8-.js → nim-vPNRZtmW.js} +6 -6
- package/dist/{org-BlOpuc2_.cjs → org-BJUQuLxI.cjs} +1 -1
- package/dist/{org-BvB9eDZB.js → org-BXPZpMn-.js} +26 -26
- package/dist/{perl-Db3mBsuQ.js → perl-C4EazcOb.js} +5 -5
- package/dist/{perl-D8XroKo0.cjs → perl-CmADOgcQ.cjs} +1 -1
- package/dist/{php-C8SG25Wa.cjs → php-BDdD_YcH.cjs} +1 -1
- package/dist/{php-DXAFydNe.js → php-BsJ_ZqPP.js} +6 -6
- package/dist/{pug-DUGE64tE.js → pug-BYXwQyBY.js} +3 -3
- package/dist/{pug-DGLtElT2.cjs → pug-BqCAm08K.cjs} +1 -1
- package/dist/{qml-f8YoerFJ.cjs → qml-BkLbkVNV.cjs} +1 -1
- package/dist/{qml-BI8Qke4k.js → qml-CnP9LpPo.js} +1 -1
- package/dist/{r-BqUCIOdg.js → r-BskJ0B3b.js} +1 -1
- package/dist/{r-DTie9Nyk.cjs → r-Crbt2ian.cjs} +1 -1
- package/dist/{razor-Cznq4CrH.cjs → razor-CcOw1mzY.cjs} +1 -1
- package/dist/{razor-DzYuKCwQ.js → razor-CgobKwDB.js} +1 -1
- package/dist/{regexp-CCkYPv1N.js → regexp-35oNQcei.js} +1 -1
- package/dist/{regexp-W6uDzT_l.cjs → regexp-CiRKg-B7.cjs} +1 -1
- package/dist/{rst-CjRZqYHL.cjs → rst-0CCQrjRR.cjs} +1 -1
- package/dist/{rst-DkdHGABB.js → rst-CcG1VyHf.js} +6 -6
- package/dist/{ruby-DYZIHus3.cjs → ruby-Bz7pH067.cjs} +1 -1
- package/dist/{ruby-SrIlbOFE.js → ruby-D84T3HVs.js} +12 -12
- package/dist/{sas-D4DC5Y7L.cjs → sas-CfNVA6xj.cjs} +1 -1
- package/dist/{sas-BgMaDA2M.js → sas-leffZV-t.js} +1 -1
- package/dist/{scss-Cy7mHhKR.js → scss-ConKgv_x.js} +2 -2
- package/dist/{scss-D2afYGNC.cjs → scss-tjluFEfq.cjs} +1 -1
- package/dist/{shellscript-DL7dA6YH.cjs → shellscript-CZORtZ0m.cjs} +1 -1
- package/dist/{shellscript-Dc7jtvdg.js → shellscript-Cqrf74-d.js} +1 -1
- package/dist/{shellsession-CGkCOuFx.cjs → shellsession-C7TZqfBX.cjs} +1 -1
- package/dist/{shellsession-BZTJuggn.js → shellsession-DGN6o4H4.js} +1 -1
- package/dist/{soy-X1cLpGrT.js → soy-C3C1N4BB.js} +1 -1
- package/dist/{soy-B2OqotLG.cjs → soy-CYwevEyV.cjs} +1 -1
- package/dist/{sql-BLxweCea.cjs → sql-CKAdltev.cjs} +1 -1
- package/dist/{sql-DRYM5A-g.js → sql-D28Ep8kC.js} +1 -1
- package/dist/{stata-mshAKmrC.js → stata-BdKZ3Tfa.js} +1 -1
- package/dist/{stata-DUfnFR7t.cjs → stata-gwURYib4.cjs} +1 -1
- package/dist/{surrealql-DQzrI0uj.js → surrealql-BE3WUki2.js} +1 -1
- package/dist/{surrealql-Zfoia8BY.cjs → surrealql-CBAekr00.cjs} +1 -1
- package/dist/{svelte-D2bLGYCT.js → svelte-BIf-Q33W.js} +3 -3
- package/dist/{svelte-aFul1Jy8.cjs → svelte-ClXPqtyX.cjs} +1 -1
- package/dist/{templ-Dx8bEvea.cjs → templ-CJJCQFkp.cjs} +1 -1
- package/dist/{templ-BT5bFFZC.js → templ-KcJQzTCJ.js} +2 -2
- package/dist/{tex-BGjRDs2m.js → tex-DtiwEWZU.js} +2 -2
- package/dist/{tex-DLVxreb-.cjs → tex-V7tXlPyb.cjs} +1 -1
- package/dist/{ts-tags-BIebym7V.cjs → ts-tags-BaSrqEU0.cjs} +1 -1
- package/dist/{ts-tags-Ck5aGNIn.js → ts-tags-gxidxB8R.js} +7 -7
- package/dist/{tsx-G3EWmL7D.js → tsx-CLVkAc-4.js} +1 -1
- package/dist/{tsx-B4QBkk0q.cjs → tsx-yCIscrGd.cjs} +1 -1
- package/dist/{twig-CHwtVyR-.js → twig-BozPiA4G.js} +5 -5
- package/dist/{twig-BgwYNE2l.cjs → twig-DucNk_L2.cjs} +1 -1
- package/dist/types/src/composables/useShiki.d.ts +13 -2
- package/dist/types/src/composables/useTheme.d.ts +53 -0
- package/dist/types/src/lib/shiki/resolveGrammar.d.ts +11 -0
- package/dist/{typescript-DoW3h951.cjs → typescript-CpL8J23X.cjs} +1 -1
- package/dist/{typescript-DAazdaCE.js → typescript-v3MDZy3z.js} +1 -1
- package/dist/{typst-BLT0Jxqy.js → typst-BqVfAgGz.js} +29 -29
- package/dist/{typst-9vf_wdP8.cjs → typst-KAYwLgnz.cjs} +1 -1
- package/dist/{useOpenapi-DyGwf6EG.js → useOpenapi-B8TP2xUt.js} +356 -337
- package/dist/{useOpenapi-zUwxozsv.cjs → useOpenapi-_Y6U0hd9.cjs} +58 -58
- package/dist/vitepress-openapi.client.cjs.js +126 -126
- package/dist/vitepress-openapi.client.es.js +11721 -11643
- package/dist/vitepress-openapi.node.cjs.js +1 -1
- package/dist/vitepress-openapi.node.es.js +1 -1
- package/dist/{vue-CpqLnHVY.js → vue-CCBnDBrj.js} +6 -6
- package/dist/{vue-BRjGF9q6.cjs → vue-DDP4ToP4.cjs} +1 -1
- package/dist/{vue-html-Zve9lhNA.js → vue-html-ChckxjrF.js} +1 -1
- package/dist/{vue-html-5pJeWJlE.cjs → vue-html-pUsOdCRA.cjs} +1 -1
- package/dist/{vue-vine-D8sXouna.cjs → vue-vine-C-R1ePqA.cjs} +1 -1
- package/dist/{vue-vine-BIyjr9Yw.js → vue-vine-CW6_oew-.js} +3 -3
- package/dist/{xml-DfteIxKp.cjs → xml-5oO_YDXi.cjs} +1 -1
- package/dist/{xml-B4yjP0re.js → xml-BjuxZasO.js} +2 -2
- package/dist/{xsl-BfNOhnnx.js → xsl-A-O9TTaY.js} +1 -1
- package/dist/{xsl-BaF5pye5.cjs → xsl-BfGzl8_E.cjs} +1 -1
- package/dist/{yaml-BWP6Z5iN.cjs → yaml-CFG4vyir.cjs} +1 -1
- package/dist/{yaml-BMWpYE45.js → yaml-DgRJBItn.js} +1 -1
- package/package.json +1 -1
- package/src/composables/useShiki.ts +226 -105
- package/src/composables/useTheme.ts +57 -0
- package/src/lib/shiki/resolveGrammar.ts +42 -0
|
@@ -4868,11 +4868,11 @@ var Ro = [
|
|
|
4868
4868
|
function Wo(e = {}) {
|
|
4869
4869
|
t(e);
|
|
4870
4870
|
function t(e) {
|
|
4871
|
-
var t, n, r, i, a, o, c, l,
|
|
4872
|
-
!e || !Object.keys(e).length || ((t = e.theme) != null && t.highlighterTheme && s(e.theme.highlighterTheme), (
|
|
4871
|
+
var t, n, r, i, a, o, c, l, d, f, p, m, h, g, _, v, y, b, x, S, ee, te, w;
|
|
4872
|
+
!e || !Object.keys(e).length || ((t = e.theme) != null && t.highlighterTheme && s(e.theme.highlighterTheme), (n = e.theme) != null && n.shikiLanguages && u(e.theme.shikiLanguages), ((r = e.path) == null ? void 0 : r.showBaseURL) !== void 0 && L(B, "path", "showBaseURL", e.path.showBaseURL), ((i = e.requestBody) == null ? void 0 : i.defaultView) !== void 0 && L(B, "requestBody", "defaultView", e.requestBody.defaultView), ((a = e.jsonViewer) == null ? void 0 : a.deep) !== void 0 && L(B, "jsonViewer", "deep", e.jsonViewer.deep), ((o = e.jsonViewer) == null ? void 0 : o.renderer) !== void 0 && L(B, "jsonViewer", "renderer", e.jsonViewer.renderer), ((c = e.schemaViewer) == null ? void 0 : c.deep) !== void 0 && L(B, "schemaViewer", "deep", e.schemaViewer.deep), e.headingLevels !== void 0 && C(e.headingLevels), ((l = e.response) == null ? void 0 : l.responseCodeSelector) !== void 0 && L(B, "response", "responseCodeSelector", e.response.responseCodeSelector), ((d = e.response) == null ? void 0 : d.maxTabs) !== void 0 && L(B, "response", "maxTabs", e.response.maxTabs), ((f = e.response) == null || (f = f.body) == null ? void 0 : f.defaultView) !== void 0 && R(B, ["response", "body"], "defaultView", e.response.body.defaultView), ((p = e.playground) == null || (p = p.jsonEditor) == null ? void 0 : p.mode) !== void 0 && R(B, ["playground", "jsonEditor"], "mode", e.playground.jsonEditor.mode), ((m = e.playground) == null || (m = m.jsonEditor) == null ? void 0 : m.mainMenuBar) !== void 0 && R(B, ["playground", "jsonEditor"], "mainMenuBar", e.playground.jsonEditor.mainMenuBar), ((h = e.playground) == null || (h = h.jsonEditor) == null ? void 0 : h.navigationBar) !== void 0 && R(B, ["playground", "jsonEditor"], "navigationBar", e.playground.jsonEditor.navigationBar), ((g = e.playground) == null || (g = g.jsonEditor) == null ? void 0 : g.statusBar) !== void 0 && R(B, ["playground", "jsonEditor"], "statusBar", e.playground.jsonEditor.statusBar), ((_ = e.playground) == null || (_ = _.examples) == null ? void 0 : _.behavior) !== void 0 && R(B, ["playground", "examples"], "behavior", e.playground.examples.behavior), ((v = e.playground) == null || (v = v.examples) == null ? void 0 : v.playgroundExampleBehavior) !== void 0 && R(B, ["playground", "examples"], "playgroundExampleBehavior", e.playground.examples.playgroundExampleBehavior), ((y = e.security) == null ? void 0 : y.defaultScheme) !== void 0 && L(B, "security", "defaultScheme", e.security.defaultScheme), ((b = e.operation) == null ? void 0 : b.badges) !== void 0 && L(B, "operation", "badges", e.operation.badges), ((x = e.operation) == null ? void 0 : x.slots) !== void 0 && L(B, "operation", "slots", e.operation.slots), ((S = e.operation) == null ? void 0 : S.hiddenSlots) !== void 0 && L(B, "operation", "hiddenSlots", e.operation.hiddenSlots), ((ee = e.operation) == null ? void 0 : ee.cols) !== void 0 && L(B, "operation", "cols", e.operation.cols), ((te = e.operation) == null ? void 0 : te.defaultBaseUrl) !== void 0 && Oe(e.operation.defaultBaseUrl), ((w = e.operation) == null ? void 0 : w.getServers) !== void 0 && Ae(e.operation.getServers), e.i18n !== void 0 && Me(e.i18n), e.spec !== void 0 && Ie(e.spec), e.codeSamples !== void 0 && Ve(e.codeSamples), e.linksPrefixes !== void 0 && We(e.linksPrefixes), e.server !== void 0 && Je(e.server), e.storage !== void 0 && tt(e.storage), e.markdown !== void 0 && Qe(e.markdown));
|
|
4873
4873
|
}
|
|
4874
4874
|
function n() {
|
|
4875
|
-
t(z);
|
|
4875
|
+
t(z), B.theme && (B.theme.shikiLanguages = {});
|
|
4876
4876
|
}
|
|
4877
4877
|
function r() {
|
|
4878
4878
|
return ko(B);
|
|
@@ -4896,50 +4896,65 @@ function Wo(e = {}) {
|
|
|
4896
4896
|
};
|
|
4897
4897
|
}
|
|
4898
4898
|
function c() {
|
|
4899
|
+
var e, t;
|
|
4900
|
+
return (e = (t = B.theme) == null ? void 0 : t.shikiLanguages) == null ? {} : e;
|
|
4901
|
+
}
|
|
4902
|
+
function l(e) {
|
|
4903
|
+
var t;
|
|
4904
|
+
return (t = B.theme) == null || (t = t.shikiLanguages) == null ? void 0 : t[e];
|
|
4905
|
+
}
|
|
4906
|
+
function u(e) {
|
|
4907
|
+
let t = I(B, "theme");
|
|
4908
|
+
t.shikiLanguages = {
|
|
4909
|
+
...t.shikiLanguages,
|
|
4910
|
+
...e
|
|
4911
|
+
};
|
|
4912
|
+
}
|
|
4913
|
+
function d() {
|
|
4899
4914
|
var e;
|
|
4900
4915
|
return B == null || (e = B.requestBody) == null || (e = e.defaultView) == null ? void 0 : e.value;
|
|
4901
4916
|
}
|
|
4902
|
-
function
|
|
4917
|
+
function f(e) {
|
|
4903
4918
|
L(B, "requestBody", "defaultView", e);
|
|
4904
4919
|
}
|
|
4905
|
-
function
|
|
4920
|
+
function p() {
|
|
4906
4921
|
var e;
|
|
4907
4922
|
return B == null || (e = B.path) == null || (e = e.showBaseURL) == null ? void 0 : e.value;
|
|
4908
4923
|
}
|
|
4909
|
-
function
|
|
4924
|
+
function m(e) {
|
|
4910
4925
|
L(B, "path", "showBaseURL", e);
|
|
4911
4926
|
}
|
|
4912
|
-
function
|
|
4927
|
+
function h() {
|
|
4913
4928
|
var e;
|
|
4914
4929
|
return B == null || (e = B.jsonViewer) == null || (e = e.deep) == null ? void 0 : e.value;
|
|
4915
4930
|
}
|
|
4916
|
-
function
|
|
4931
|
+
function g(e) {
|
|
4917
4932
|
L(B, "jsonViewer", "deep", e);
|
|
4918
4933
|
}
|
|
4919
|
-
function
|
|
4934
|
+
function _() {
|
|
4920
4935
|
var e;
|
|
4921
4936
|
return (B == null || (e = B.jsonViewer) == null || (e = e.renderer) == null ? void 0 : e.value) || "vue-json-pretty";
|
|
4922
4937
|
}
|
|
4923
|
-
function
|
|
4938
|
+
function v(e) {
|
|
4924
4939
|
L(B, "jsonViewer", "renderer", e);
|
|
4925
4940
|
}
|
|
4926
|
-
function
|
|
4941
|
+
function y() {
|
|
4927
4942
|
var e;
|
|
4928
4943
|
return B == null || (e = B.schemaViewer) == null || (e = e.deep) == null ? void 0 : e.value;
|
|
4929
4944
|
}
|
|
4930
|
-
function
|
|
4945
|
+
function b(e) {
|
|
4931
4946
|
L(B, "schemaViewer", "deep", e);
|
|
4932
4947
|
}
|
|
4933
|
-
function
|
|
4948
|
+
function x() {
|
|
4934
4949
|
return B.headingLevels;
|
|
4935
4950
|
}
|
|
4936
|
-
function
|
|
4951
|
+
function S(e) {
|
|
4937
4952
|
if (!B.headingLevels) return `h${e}`;
|
|
4938
4953
|
let t = B.headingLevels[e];
|
|
4939
4954
|
if (t < 1 || t > 6) throw Error(`Heading level for ${e} must be between 1 and 6.`);
|
|
4940
4955
|
return `h${t}`;
|
|
4941
4956
|
}
|
|
4942
|
-
function
|
|
4957
|
+
function C(e) {
|
|
4943
4958
|
B.headingLevels || (B.headingLevels = {});
|
|
4944
4959
|
for (let t of Object.keys(e)) {
|
|
4945
4960
|
let n = e[t];
|
|
@@ -4947,147 +4962,147 @@ function Wo(e = {}) {
|
|
|
4947
4962
|
}
|
|
4948
4963
|
Object.assign(B.headingLevels, e);
|
|
4949
4964
|
}
|
|
4950
|
-
function
|
|
4965
|
+
function ee() {
|
|
4951
4966
|
var e;
|
|
4952
4967
|
return B == null || (e = B.response) == null || (e = e.responseCodeSelector) == null ? void 0 : e.value;
|
|
4953
4968
|
}
|
|
4954
|
-
function
|
|
4969
|
+
function te(e) {
|
|
4955
4970
|
L(B, "response", "responseCodeSelector", e);
|
|
4956
4971
|
}
|
|
4957
|
-
function
|
|
4972
|
+
function w() {
|
|
4958
4973
|
var e;
|
|
4959
4974
|
return B == null || (e = B.response) == null || (e = e.maxTabs) == null ? void 0 : e.value;
|
|
4960
4975
|
}
|
|
4961
|
-
function
|
|
4976
|
+
function ne(e) {
|
|
4962
4977
|
L(B, "response", "maxTabs", e);
|
|
4963
4978
|
}
|
|
4964
|
-
function
|
|
4979
|
+
function re() {
|
|
4965
4980
|
var e;
|
|
4966
4981
|
return B == null || (e = B.response) == null || (e = e.body) == null || (e = e.defaultView) == null ? void 0 : e.value;
|
|
4967
4982
|
}
|
|
4968
|
-
function
|
|
4983
|
+
function ie(e) {
|
|
4969
4984
|
R(B, ["response", "body"], "defaultView", e);
|
|
4970
4985
|
}
|
|
4971
|
-
function
|
|
4986
|
+
function ae() {
|
|
4972
4987
|
var e;
|
|
4973
4988
|
return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.mode) == null ? void 0 : e.value;
|
|
4974
4989
|
}
|
|
4975
|
-
function
|
|
4990
|
+
function oe(e) {
|
|
4976
4991
|
R(B, ["playground", "jsonEditor"], "mode", e);
|
|
4977
4992
|
}
|
|
4978
|
-
function
|
|
4993
|
+
function se() {
|
|
4979
4994
|
var e;
|
|
4980
4995
|
return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.mainMenuBar) == null ? void 0 : e.value;
|
|
4981
4996
|
}
|
|
4982
|
-
function
|
|
4997
|
+
function ce(e) {
|
|
4983
4998
|
R(B, ["playground", "jsonEditor"], "mainMenuBar", e);
|
|
4984
4999
|
}
|
|
4985
|
-
function
|
|
5000
|
+
function le() {
|
|
4986
5001
|
var e;
|
|
4987
5002
|
return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.navigationBar) == null ? void 0 : e.value;
|
|
4988
5003
|
}
|
|
4989
|
-
function
|
|
5004
|
+
function ue(e) {
|
|
4990
5005
|
R(B, ["playground", "jsonEditor"], "navigationBar", e);
|
|
4991
5006
|
}
|
|
4992
|
-
function
|
|
5007
|
+
function de() {
|
|
4993
5008
|
var e;
|
|
4994
5009
|
return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.statusBar) == null ? void 0 : e.value;
|
|
4995
5010
|
}
|
|
4996
|
-
function
|
|
5011
|
+
function fe(e) {
|
|
4997
5012
|
R(B, ["playground", "jsonEditor"], "statusBar", e);
|
|
4998
5013
|
}
|
|
4999
|
-
function
|
|
5014
|
+
function pe() {
|
|
5000
5015
|
var e, t;
|
|
5001
5016
|
return (e = B == null || (t = B.playground) == null || (t = t.examples) == null || (t = t.behavior) == null ? void 0 : t.value) == null ? "value" : e;
|
|
5002
5017
|
}
|
|
5003
|
-
function
|
|
5018
|
+
function me(e) {
|
|
5004
5019
|
R(B, ["playground", "examples"], "behavior", e);
|
|
5005
5020
|
}
|
|
5006
|
-
function
|
|
5021
|
+
function he() {
|
|
5007
5022
|
var e, t;
|
|
5008
5023
|
return (e = B == null || (t = B.playground) == null || (t = t.examples) == null || (t = t.playgroundExampleBehavior) == null ? void 0 : t.value) == null ? "value" : e;
|
|
5009
5024
|
}
|
|
5010
|
-
function
|
|
5025
|
+
function ge(e) {
|
|
5011
5026
|
R(B, ["playground", "examples"], "playgroundExampleBehavior", e);
|
|
5012
5027
|
}
|
|
5013
|
-
function
|
|
5028
|
+
function _e() {
|
|
5014
5029
|
var e;
|
|
5015
5030
|
return B == null || (e = B.security) == null || (e = e.defaultScheme) == null ? void 0 : e.value;
|
|
5016
5031
|
}
|
|
5017
|
-
function
|
|
5032
|
+
function ve(e) {
|
|
5018
5033
|
L(B, "security", "defaultScheme", e);
|
|
5019
5034
|
}
|
|
5020
|
-
function
|
|
5035
|
+
function ye() {
|
|
5021
5036
|
var e;
|
|
5022
5037
|
return [...(B == null || (e = B.operation) == null || (e = e.badges) == null ? void 0 : e.value) || []];
|
|
5023
5038
|
}
|
|
5024
|
-
function
|
|
5039
|
+
function be(e) {
|
|
5025
5040
|
L(B, "operation", "badges", e);
|
|
5026
5041
|
}
|
|
5027
|
-
function
|
|
5042
|
+
function xe() {
|
|
5028
5043
|
var e;
|
|
5029
5044
|
return B == null || (e = B.operation) == null || (e = e.slots) == null ? void 0 : e.value;
|
|
5030
5045
|
}
|
|
5031
|
-
function
|
|
5046
|
+
function Se(e) {
|
|
5032
5047
|
L(B, "operation", "slots", e);
|
|
5033
5048
|
}
|
|
5034
|
-
function
|
|
5049
|
+
function Ce() {
|
|
5035
5050
|
var e;
|
|
5036
5051
|
return B == null || (e = B.operation) == null || (e = e.hiddenSlots) == null ? void 0 : e.value;
|
|
5037
5052
|
}
|
|
5038
|
-
function
|
|
5053
|
+
function we(e) {
|
|
5039
5054
|
L(B, "operation", "hiddenSlots", e);
|
|
5040
5055
|
}
|
|
5041
|
-
function
|
|
5056
|
+
function Te() {
|
|
5042
5057
|
var e;
|
|
5043
5058
|
return B == null || (e = B.operation) == null || (e = e.cols) == null ? void 0 : e.value;
|
|
5044
5059
|
}
|
|
5045
|
-
function
|
|
5060
|
+
function Ee(e) {
|
|
5046
5061
|
L(B, "operation", "cols", e);
|
|
5047
5062
|
}
|
|
5048
|
-
function
|
|
5063
|
+
function De() {
|
|
5049
5064
|
var e;
|
|
5050
5065
|
return (B == null || (e = B.operation) == null ? void 0 : e.defaultBaseUrl) || "http://localhost";
|
|
5051
5066
|
}
|
|
5052
|
-
function
|
|
5067
|
+
function Oe(e) {
|
|
5053
5068
|
let t = I(B, "operation");
|
|
5054
5069
|
t.defaultBaseUrl = e;
|
|
5055
5070
|
}
|
|
5056
|
-
function
|
|
5071
|
+
function ke() {
|
|
5057
5072
|
var e, t;
|
|
5058
5073
|
return B != null && (e = B.operation) != null && e.getServers ? (console.warn("operation.getServers is deprecated. Use server.getServers instead."), B.operation.getServers) : (B == null || (t = B.server) == null ? void 0 : t.getServers) || null;
|
|
5059
5074
|
}
|
|
5060
|
-
function
|
|
5075
|
+
function Ae(e) {
|
|
5061
5076
|
let t = I(B, "operation");
|
|
5062
5077
|
t.getServers = e;
|
|
5063
5078
|
}
|
|
5064
|
-
function
|
|
5079
|
+
function je() {
|
|
5065
5080
|
return B.i18n;
|
|
5066
5081
|
}
|
|
5067
|
-
function
|
|
5082
|
+
function Me(e) {
|
|
5068
5083
|
let t = I(B, "i18n");
|
|
5069
5084
|
e.locale && L(B, "i18n", "locale", e.locale), e.fallbackLocale && L(B, "i18n", "fallbackLocale", e.fallbackLocale), e.messages && (t.messages = e.messages), e.availableLocales && (t.availableLocales = e.availableLocales);
|
|
5070
5085
|
}
|
|
5071
|
-
function
|
|
5086
|
+
function Ne() {
|
|
5072
5087
|
return B.spec;
|
|
5073
5088
|
}
|
|
5074
|
-
function
|
|
5089
|
+
function Pe() {
|
|
5075
5090
|
var e;
|
|
5076
5091
|
return B == null || (e = B.spec) == null ? void 0 : e.wrapExamples;
|
|
5077
5092
|
}
|
|
5078
|
-
function
|
|
5093
|
+
function Fe() {
|
|
5079
5094
|
var e;
|
|
5080
5095
|
return B == null || (e = B.spec) == null || (e = e.disableDownload) == null ? void 0 : e.value;
|
|
5081
5096
|
}
|
|
5082
|
-
function
|
|
5097
|
+
function Ie(e) {
|
|
5083
5098
|
let t = I(B, "spec");
|
|
5084
5099
|
e.groupByTags !== void 0 && L(B, "spec", "groupByTags", e.groupByTags), e.collapsePaths !== void 0 && L(B, "spec", "collapsePaths", e.collapsePaths), e.showPathsSummary !== void 0 && L(B, "spec", "showPathsSummary", e.showPathsSummary), e.avoidCirculars !== void 0 && L(B, "spec", "avoidCirculars", e.avoidCirculars), e.lazyRendering !== void 0 && L(B, "spec", "lazyRendering", e.lazyRendering), e.defaultTag !== void 0 && (t.defaultTag = e.defaultTag), e.defaultTagDescription !== void 0 && (t.defaultTagDescription = e.defaultTagDescription), e.wrapExamples !== void 0 && (t.wrapExamples = e.wrapExamples), e.disableDownload !== void 0 && L(B, "spec", "disableDownload", e.disableDownload);
|
|
5085
5100
|
}
|
|
5086
|
-
function
|
|
5087
|
-
let e =
|
|
5101
|
+
function Le() {
|
|
5102
|
+
let e = Re(), t = I(B, "codeSamples"), n = e.map((e) => e.lang);
|
|
5088
5103
|
return t.defaultLang && n.includes(t.defaultLang) ? t.defaultLang : n[0];
|
|
5089
5104
|
}
|
|
5090
|
-
function
|
|
5105
|
+
function Re(e = []) {
|
|
5091
5106
|
let t = I(B, "codeSamples");
|
|
5092
5107
|
if (e.length) {
|
|
5093
5108
|
var n;
|
|
@@ -5095,56 +5110,56 @@ function Wo(e = {}) {
|
|
|
5095
5110
|
}
|
|
5096
5111
|
return t.availableLanguages || [];
|
|
5097
5112
|
}
|
|
5098
|
-
function
|
|
5113
|
+
function ze() {
|
|
5099
5114
|
let e = I(B, "codeSamples");
|
|
5100
5115
|
return e.generator || (e.generator = z.codeSamples.generator), e.generator;
|
|
5101
5116
|
}
|
|
5102
|
-
function
|
|
5117
|
+
function Be() {
|
|
5103
5118
|
let e = I(B, "codeSamples");
|
|
5104
5119
|
return e.defaultHeaders || (e.defaultHeaders = z.codeSamples.defaultHeaders), e.defaultHeaders;
|
|
5105
5120
|
}
|
|
5106
|
-
function
|
|
5121
|
+
function Ve(e) {
|
|
5107
5122
|
let t = I(B, "codeSamples");
|
|
5108
|
-
e.defaultLang && (t.defaultLang = e.defaultLang), e.availableLanguages &&
|
|
5123
|
+
e.defaultLang && (t.defaultLang = e.defaultLang), e.availableLanguages && He(e.availableLanguages), e.generator && (t.generator = e.generator), e.defaultHeaders && (t.defaultHeaders = e.defaultHeaders);
|
|
5109
5124
|
}
|
|
5110
|
-
function
|
|
5125
|
+
function He(e) {
|
|
5111
5126
|
let t = I(B, "codeSamples");
|
|
5112
5127
|
t.availableLanguages = e;
|
|
5113
5128
|
}
|
|
5114
|
-
function
|
|
5129
|
+
function Ue() {
|
|
5115
5130
|
return B.linksPrefixes;
|
|
5116
5131
|
}
|
|
5117
|
-
function
|
|
5132
|
+
function We(e) {
|
|
5118
5133
|
let t = I(B, "linksPrefixes");
|
|
5119
5134
|
e.tags && (t.tags = e.tags), e.operations && (t.operations = e.operations);
|
|
5120
5135
|
}
|
|
5121
|
-
function
|
|
5136
|
+
function Ge() {
|
|
5122
5137
|
var e;
|
|
5123
5138
|
return B == null || (e = B.linksPrefixes) == null ? void 0 : e.tags;
|
|
5124
5139
|
}
|
|
5125
|
-
function
|
|
5140
|
+
function Ke() {
|
|
5126
5141
|
var e;
|
|
5127
5142
|
return B == null || (e = B.linksPrefixes) == null ? void 0 : e.operations;
|
|
5128
5143
|
}
|
|
5129
|
-
function
|
|
5144
|
+
function qe() {
|
|
5130
5145
|
return B.server;
|
|
5131
5146
|
}
|
|
5132
|
-
function
|
|
5147
|
+
function Je(e) {
|
|
5133
5148
|
let t = I(B, "server");
|
|
5134
5149
|
e.allowCustomServer !== void 0 && (t.allowCustomServer = e.allowCustomServer), e.getServers !== void 0 && (t.getServers = e.getServers);
|
|
5135
5150
|
}
|
|
5136
|
-
function
|
|
5151
|
+
function Ye() {
|
|
5137
5152
|
var e;
|
|
5138
5153
|
return ((e = B.server) == null ? void 0 : e.allowCustomServer) || !1;
|
|
5139
5154
|
}
|
|
5140
|
-
function
|
|
5155
|
+
function Xe() {
|
|
5141
5156
|
return B.markdown;
|
|
5142
5157
|
}
|
|
5143
|
-
function
|
|
5158
|
+
function Ze() {
|
|
5144
5159
|
var e, t;
|
|
5145
5160
|
return (e = (t = B.markdown) == null ? void 0 : t.externalLinksNewTab) != null && e;
|
|
5146
5161
|
}
|
|
5147
|
-
function
|
|
5162
|
+
function Qe(e) {
|
|
5148
5163
|
let t = I(B, "markdown");
|
|
5149
5164
|
if (e.operationLink !== void 0) {
|
|
5150
5165
|
if (e.operationLink === !1) t.operationLink = !1;
|
|
@@ -5155,19 +5170,19 @@ function Wo(e = {}) {
|
|
|
5155
5170
|
}
|
|
5156
5171
|
e.externalLinksNewTab !== void 0 && (t.externalLinksNewTab = e.externalLinksNewTab), e.config !== void 0 && (t.config = e.config);
|
|
5157
5172
|
}
|
|
5158
|
-
function
|
|
5173
|
+
function $e() {
|
|
5159
5174
|
var e;
|
|
5160
5175
|
return (e = B.markdown) == null ? void 0 : e.operationLink;
|
|
5161
5176
|
}
|
|
5162
|
-
function
|
|
5177
|
+
function et() {
|
|
5163
5178
|
var e, t;
|
|
5164
5179
|
return (e = B == null || (t = B.storage) == null ? void 0 : t.prefix) == null ? Bo : e;
|
|
5165
5180
|
}
|
|
5166
|
-
function
|
|
5181
|
+
function tt(e) {
|
|
5167
5182
|
let t = I(B, "storage");
|
|
5168
5183
|
e.prefix !== void 0 && (t.prefix = e.prefix), e.persistAuth !== void 0 && (t.persistAuth = e.persistAuth);
|
|
5169
5184
|
}
|
|
5170
|
-
function
|
|
5185
|
+
function nt() {
|
|
5171
5186
|
var e, t;
|
|
5172
5187
|
return (e = B == null || (t = B.storage) == null ? void 0 : t.persistAuth) == null || e;
|
|
5173
5188
|
}
|
|
@@ -5179,76 +5194,80 @@ function Wo(e = {}) {
|
|
|
5179
5194
|
getLocale: i,
|
|
5180
5195
|
setLocale: a,
|
|
5181
5196
|
getHighlighterTheme: o,
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5197
|
+
setHighlighterTheme: s,
|
|
5198
|
+
getShikiLanguages: c,
|
|
5199
|
+
getShikiLanguage: l,
|
|
5200
|
+
setShikiLanguages: u,
|
|
5201
|
+
getSchemaDefaultView: d,
|
|
5202
|
+
getRequestBodyDefaultView: d,
|
|
5203
|
+
setSchemaDefaultView: f,
|
|
5204
|
+
setRequestBodyDefaultView: f,
|
|
5205
|
+
getShowBaseURL: p,
|
|
5206
|
+
setShowBaseURL: m,
|
|
5207
|
+
getJsonViewerDeep: h,
|
|
5208
|
+
setJsonViewerDeep: g,
|
|
5209
|
+
getJsonViewerRenderer: _,
|
|
5210
|
+
setJsonViewerRenderer: v,
|
|
5211
|
+
getSchemaViewerDeep: y,
|
|
5212
|
+
setSchemaViewerDeep: b,
|
|
5213
|
+
getHeadingLevels: x,
|
|
5214
|
+
getHeadingLevel: S,
|
|
5215
|
+
setHeadingLevels: C,
|
|
5216
|
+
getResponseCodeSelector: ee,
|
|
5217
|
+
setResponseCodeSelector: te,
|
|
5218
|
+
getResponseCodeMaxTabs: w,
|
|
5219
|
+
setResponseCodeMaxTabs: ne,
|
|
5220
|
+
getResponseBodyDefaultView: re,
|
|
5221
|
+
setResponseBodyDefaultView: ie,
|
|
5222
|
+
getPlaygroundJsonEditorMode: ae,
|
|
5223
|
+
setPlaygroundJsonEditorMode: oe,
|
|
5224
|
+
getPlaygroundJsonEditorMainMenuBar: se,
|
|
5225
|
+
setPlaygroundJsonEditorMainMenuBar: ce,
|
|
5226
|
+
getPlaygroundJsonEditorNavigationBar: le,
|
|
5227
|
+
setPlaygroundJsonEditorNavigationBar: ue,
|
|
5228
|
+
getPlaygroundJsonEditorStatusBar: de,
|
|
5229
|
+
setPlaygroundJsonEditorStatusBar: fe,
|
|
5230
|
+
getPlaygroundExamplesBehavior: pe,
|
|
5231
|
+
setPlaygroundExamplesBehavior: me,
|
|
5232
|
+
getPlaygroundXExampleBehavior: he,
|
|
5233
|
+
setPlaygroundXExampleBehavior: ge,
|
|
5234
|
+
getSecurityDefaultScheme: _e,
|
|
5235
|
+
setSecurityDefaultScheme: ve,
|
|
5236
|
+
getOperationBadges: ye,
|
|
5237
|
+
setOperationBadges: be,
|
|
5238
|
+
getOperationSlots: xe,
|
|
5239
|
+
setOperationSlots: Se,
|
|
5240
|
+
getOperationHiddenSlots: Ce,
|
|
5241
|
+
setOperationHiddenSlots: we,
|
|
5242
|
+
getOperationCols: Te,
|
|
5243
|
+
setOperationCols: Ee,
|
|
5244
|
+
getOperationDefaultBaseUrl: De,
|
|
5245
|
+
getOperationServers: ke,
|
|
5246
|
+
getI18nConfig: je,
|
|
5247
|
+
setI18nConfig: Me,
|
|
5248
|
+
getSpecConfig: Ne,
|
|
5249
|
+
getWrapExamples: Pe,
|
|
5250
|
+
getSpecDisableDownload: Fe,
|
|
5251
|
+
setSpecConfig: Ie,
|
|
5252
|
+
getCodeSamplesDefaultLang: Le,
|
|
5253
|
+
getCodeSamplesAvailableLanguages: Re,
|
|
5254
|
+
getCodeSamplesGenerator: ze,
|
|
5255
|
+
getCodeSamplesDefaultHeaders: Be,
|
|
5256
|
+
setCodeSamplesConfig: Ve,
|
|
5257
|
+
getLinksPrefixesConfig: Ue,
|
|
5258
|
+
setLinksPrefixesConfig: We,
|
|
5259
|
+
getTagsLinkPrefix: Ge,
|
|
5260
|
+
getOperationsLinkPrefix: Ke,
|
|
5261
|
+
getServerConfig: qe,
|
|
5262
|
+
setServerConfig: Je,
|
|
5263
|
+
getServerAllowCustomServer: Ye,
|
|
5264
|
+
getMarkdownConfig: Xe,
|
|
5265
|
+
getExternalLinksNewTab: Ze,
|
|
5266
|
+
setMarkdownConfig: Qe,
|
|
5267
|
+
getOperationLinkConfig: $e,
|
|
5268
|
+
getStoragePrefix: et,
|
|
5269
|
+
getStoragePersistAuth: nt,
|
|
5270
|
+
setStorageConfig: tt
|
|
5252
5271
|
};
|
|
5253
5272
|
}
|
|
5254
5273
|
//#endregion
|
|
@@ -8792,29 +8811,29 @@ function vf(e, t) {
|
|
|
8792
8811
|
vf.prototype = Object.create(Error.prototype), vf.prototype.constructor = vf, vf.prototype.toString = function(e) {
|
|
8793
8812
|
return this.name + ": " + _f(this, e);
|
|
8794
8813
|
};
|
|
8795
|
-
var
|
|
8796
|
-
function
|
|
8814
|
+
var J = vf;
|
|
8815
|
+
function yf(e, t, n, r, i) {
|
|
8797
8816
|
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
8798
8817
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
8799
8818
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
8800
8819
|
pos: r - t + a.length
|
|
8801
8820
|
};
|
|
8802
8821
|
}
|
|
8803
|
-
function
|
|
8822
|
+
function bf(e, t) {
|
|
8804
8823
|
return q.repeat(" ", t - e.length) + e;
|
|
8805
8824
|
}
|
|
8806
|
-
function
|
|
8825
|
+
function xf(e, t) {
|
|
8807
8826
|
var n;
|
|
8808
8827
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
8809
8828
|
(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);
|
|
8810
8829
|
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);
|
|
8811
8830
|
s < 0 && (s = i.length - 1);
|
|
8812
8831
|
var c = "", l, u, d = Math.min(e.line + t.linesAfter, a.length).toString().length, f = t.maxLength - (t.indent + d + 3);
|
|
8813
|
-
for (l = 1; l <= t.linesBefore && !(s - l < 0); l++) u =
|
|
8814
|
-
for (u =
|
|
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";
|
|
8815
8834
|
return c.replace(/\n$/, "");
|
|
8816
8835
|
}
|
|
8817
|
-
var
|
|
8836
|
+
var Sf = xf, Cf = [
|
|
8818
8837
|
"kind",
|
|
8819
8838
|
"multi",
|
|
8820
8839
|
"resolve",
|
|
@@ -8825,12 +8844,12 @@ var Cf = Sf, wf = [
|
|
|
8825
8844
|
"representName",
|
|
8826
8845
|
"defaultStyle",
|
|
8827
8846
|
"styleAliases"
|
|
8828
|
-
],
|
|
8847
|
+
], wf = [
|
|
8829
8848
|
"scalar",
|
|
8830
8849
|
"sequence",
|
|
8831
8850
|
"mapping"
|
|
8832
8851
|
];
|
|
8833
|
-
function
|
|
8852
|
+
function Tf(e) {
|
|
8834
8853
|
var t = {};
|
|
8835
8854
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
8836
8855
|
e[n].forEach(function(e) {
|
|
@@ -8838,17 +8857,17 @@ function Ef(e) {
|
|
|
8838
8857
|
});
|
|
8839
8858
|
}), t;
|
|
8840
8859
|
}
|
|
8841
|
-
function
|
|
8860
|
+
function Ef(e, t) {
|
|
8842
8861
|
if (t || (t = {}), Object.keys(t).forEach(function(t) {
|
|
8843
|
-
if (
|
|
8862
|
+
if (Cf.indexOf(t) === -1) throw new J("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
8844
8863
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
8845
8864
|
return !0;
|
|
8846
8865
|
}, this.construct = t.construct || function(e) {
|
|
8847
8866
|
return e;
|
|
8848
|
-
}, 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 =
|
|
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.");
|
|
8849
8868
|
}
|
|
8850
|
-
var
|
|
8851
|
-
function
|
|
8869
|
+
var Y = Ef;
|
|
8870
|
+
function Df(e, t) {
|
|
8852
8871
|
var n = [];
|
|
8853
8872
|
return e[t].forEach(function(e) {
|
|
8854
8873
|
var t = n.length;
|
|
@@ -8857,7 +8876,7 @@ function Of(e, t) {
|
|
|
8857
8876
|
}), n[t] = e;
|
|
8858
8877
|
}), n;
|
|
8859
8878
|
}
|
|
8860
|
-
function
|
|
8879
|
+
function Of() {
|
|
8861
8880
|
var e = {
|
|
8862
8881
|
scalar: {},
|
|
8863
8882
|
sequence: {},
|
|
@@ -8876,61 +8895,61 @@ function kf() {
|
|
|
8876
8895
|
for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
8877
8896
|
return e;
|
|
8878
8897
|
}
|
|
8879
|
-
function
|
|
8898
|
+
function kf(e) {
|
|
8880
8899
|
return this.extend(e);
|
|
8881
8900
|
}
|
|
8882
|
-
|
|
8901
|
+
kf.prototype.extend = function(e) {
|
|
8883
8902
|
var t = [], n = [];
|
|
8884
|
-
if (e instanceof
|
|
8903
|
+
if (e instanceof Y) n.push(e);
|
|
8885
8904
|
else if (Array.isArray(e)) n = n.concat(e);
|
|
8886
8905
|
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));
|
|
8887
|
-
else throw new
|
|
8906
|
+
else throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
8888
8907
|
t.forEach(function(e) {
|
|
8889
|
-
if (!(e instanceof
|
|
8890
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new
|
|
8891
|
-
if (e.multi) throw new
|
|
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.");
|
|
8892
8911
|
}), n.forEach(function(e) {
|
|
8893
|
-
if (!(e instanceof
|
|
8912
|
+
if (!(e instanceof Y)) throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
8894
8913
|
});
|
|
8895
|
-
var r = Object.create(
|
|
8896
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit =
|
|
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;
|
|
8897
8916
|
};
|
|
8898
|
-
var
|
|
8899
|
-
new
|
|
8917
|
+
var Af = new kf({ explicit: [
|
|
8918
|
+
new Y("tag:yaml.org,2002:str", {
|
|
8900
8919
|
kind: "scalar",
|
|
8901
8920
|
construct: function(e) {
|
|
8902
8921
|
return e === null ? "" : e;
|
|
8903
8922
|
}
|
|
8904
8923
|
}),
|
|
8905
|
-
new
|
|
8924
|
+
new Y("tag:yaml.org,2002:seq", {
|
|
8906
8925
|
kind: "sequence",
|
|
8907
8926
|
construct: function(e) {
|
|
8908
8927
|
return e === null ? [] : e;
|
|
8909
8928
|
}
|
|
8910
8929
|
}),
|
|
8911
|
-
new
|
|
8930
|
+
new Y("tag:yaml.org,2002:map", {
|
|
8912
8931
|
kind: "mapping",
|
|
8913
8932
|
construct: function(e) {
|
|
8914
8933
|
return e === null ? {} : e;
|
|
8915
8934
|
}
|
|
8916
8935
|
})
|
|
8917
8936
|
] });
|
|
8918
|
-
function
|
|
8937
|
+
function jf(e) {
|
|
8919
8938
|
if (e === null) return !0;
|
|
8920
8939
|
var t = e.length;
|
|
8921
8940
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
8922
8941
|
}
|
|
8923
|
-
function
|
|
8942
|
+
function Mf() {
|
|
8924
8943
|
return null;
|
|
8925
8944
|
}
|
|
8926
|
-
function
|
|
8945
|
+
function Nf(e) {
|
|
8927
8946
|
return e === null;
|
|
8928
8947
|
}
|
|
8929
|
-
var
|
|
8948
|
+
var Pf = new Y("tag:yaml.org,2002:null", {
|
|
8930
8949
|
kind: "scalar",
|
|
8931
|
-
resolve:
|
|
8932
|
-
construct:
|
|
8933
|
-
predicate:
|
|
8950
|
+
resolve: jf,
|
|
8951
|
+
construct: Mf,
|
|
8952
|
+
predicate: Nf,
|
|
8934
8953
|
represent: {
|
|
8935
8954
|
canonical: function() {
|
|
8936
8955
|
return "~";
|
|
@@ -8950,22 +8969,22 @@ var Ff = new J("tag:yaml.org,2002:null", {
|
|
|
8950
8969
|
},
|
|
8951
8970
|
defaultStyle: "lowercase"
|
|
8952
8971
|
});
|
|
8953
|
-
function
|
|
8972
|
+
function Ff(e) {
|
|
8954
8973
|
if (e === null) return !1;
|
|
8955
8974
|
var t = e.length;
|
|
8956
8975
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
8957
8976
|
}
|
|
8958
|
-
function
|
|
8977
|
+
function If(e) {
|
|
8959
8978
|
return e === "true" || e === "True" || e === "TRUE";
|
|
8960
8979
|
}
|
|
8961
|
-
function
|
|
8980
|
+
function Lf(e) {
|
|
8962
8981
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
8963
8982
|
}
|
|
8964
|
-
var
|
|
8983
|
+
var Rf = new Y("tag:yaml.org,2002:bool", {
|
|
8965
8984
|
kind: "scalar",
|
|
8966
|
-
resolve:
|
|
8967
|
-
construct:
|
|
8968
|
-
predicate:
|
|
8985
|
+
resolve: Ff,
|
|
8986
|
+
construct: If,
|
|
8987
|
+
predicate: Lf,
|
|
8969
8988
|
represent: {
|
|
8970
8989
|
lowercase: function(e) {
|
|
8971
8990
|
return e ? "true" : "false";
|
|
@@ -8979,16 +8998,16 @@ var zf = new J("tag:yaml.org,2002:bool", {
|
|
|
8979
8998
|
},
|
|
8980
8999
|
defaultStyle: "lowercase"
|
|
8981
9000
|
});
|
|
8982
|
-
function
|
|
9001
|
+
function zf(e) {
|
|
8983
9002
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
8984
9003
|
}
|
|
8985
|
-
function
|
|
9004
|
+
function Bf(e) {
|
|
8986
9005
|
return 48 <= e && e <= 55;
|
|
8987
9006
|
}
|
|
8988
|
-
function
|
|
9007
|
+
function Vf(e) {
|
|
8989
9008
|
return 48 <= e && e <= 57;
|
|
8990
9009
|
}
|
|
8991
|
-
function
|
|
9010
|
+
function Hf(e) {
|
|
8992
9011
|
if (e === null) return !1;
|
|
8993
9012
|
var t = e.length, n = 0, r = !1, i;
|
|
8994
9013
|
if (!t) return !1;
|
|
@@ -9003,14 +9022,14 @@ function Uf(e) {
|
|
|
9003
9022
|
}
|
|
9004
9023
|
if (i === "x") {
|
|
9005
9024
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
9006
|
-
if (!
|
|
9025
|
+
if (!zf(e.charCodeAt(n))) return !1;
|
|
9007
9026
|
r = !0;
|
|
9008
9027
|
}
|
|
9009
9028
|
return r && i !== "_";
|
|
9010
9029
|
}
|
|
9011
9030
|
if (i === "o") {
|
|
9012
9031
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
9013
|
-
if (!
|
|
9032
|
+
if (!Bf(e.charCodeAt(n))) return !1;
|
|
9014
9033
|
r = !0;
|
|
9015
9034
|
}
|
|
9016
9035
|
return r && i !== "_";
|
|
@@ -9018,12 +9037,12 @@ function Uf(e) {
|
|
|
9018
9037
|
}
|
|
9019
9038
|
if (i === "_") return !1;
|
|
9020
9039
|
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
9021
|
-
if (!
|
|
9040
|
+
if (!Vf(e.charCodeAt(n))) return !1;
|
|
9022
9041
|
r = !0;
|
|
9023
9042
|
}
|
|
9024
9043
|
return !(!r || i === "_");
|
|
9025
9044
|
}
|
|
9026
|
-
function
|
|
9045
|
+
function Uf(e) {
|
|
9027
9046
|
var t = e, n = 1, r;
|
|
9028
9047
|
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;
|
|
9029
9048
|
if (r === "0") {
|
|
@@ -9033,14 +9052,14 @@ function Wf(e) {
|
|
|
9033
9052
|
}
|
|
9034
9053
|
return n * parseInt(t, 10);
|
|
9035
9054
|
}
|
|
9036
|
-
function
|
|
9055
|
+
function Wf(e) {
|
|
9037
9056
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !q.isNegativeZero(e);
|
|
9038
9057
|
}
|
|
9039
|
-
var
|
|
9058
|
+
var Gf = new Y("tag:yaml.org,2002:int", {
|
|
9040
9059
|
kind: "scalar",
|
|
9041
|
-
resolve:
|
|
9042
|
-
construct:
|
|
9043
|
-
predicate:
|
|
9060
|
+
resolve: Hf,
|
|
9061
|
+
construct: Uf,
|
|
9062
|
+
predicate: Wf,
|
|
9044
9063
|
represent: {
|
|
9045
9064
|
binary: function(e) {
|
|
9046
9065
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -9062,16 +9081,16 @@ var Kf = new J("tag:yaml.org,2002:int", {
|
|
|
9062
9081
|
decimal: [10, "dec"],
|
|
9063
9082
|
hexadecimal: [16, "hex"]
|
|
9064
9083
|
}
|
|
9065
|
-
}),
|
|
9066
|
-
function
|
|
9067
|
-
return !(e === null || !
|
|
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] === "_");
|
|
9068
9087
|
}
|
|
9069
|
-
function
|
|
9088
|
+
function Jf(e) {
|
|
9070
9089
|
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
9071
9090
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? 1 / 0 : -1 / 0 : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
9072
9091
|
}
|
|
9073
|
-
var
|
|
9074
|
-
function
|
|
9092
|
+
var Yf = /^[-+]?[0-9]+e/;
|
|
9093
|
+
function Xf(e, t) {
|
|
9075
9094
|
var n;
|
|
9076
9095
|
if (isNaN(e)) switch (t) {
|
|
9077
9096
|
case "lowercase": return ".nan";
|
|
@@ -9089,30 +9108,30 @@ function Zf(e, t) {
|
|
|
9089
9108
|
case "camelcase": return "-.Inf";
|
|
9090
9109
|
}
|
|
9091
9110
|
else if (q.isNegativeZero(e)) return "-0.0";
|
|
9092
|
-
return n = e.toString(10),
|
|
9111
|
+
return n = e.toString(10), Yf.test(n) ? n.replace("e", ".e") : n;
|
|
9093
9112
|
}
|
|
9094
|
-
function
|
|
9113
|
+
function Zf(e) {
|
|
9095
9114
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || q.isNegativeZero(e));
|
|
9096
9115
|
}
|
|
9097
|
-
var
|
|
9116
|
+
var Qf = new Y("tag:yaml.org,2002:float", {
|
|
9098
9117
|
kind: "scalar",
|
|
9099
|
-
resolve:
|
|
9100
|
-
construct:
|
|
9101
|
-
predicate:
|
|
9102
|
-
represent:
|
|
9118
|
+
resolve: qf,
|
|
9119
|
+
construct: Jf,
|
|
9120
|
+
predicate: Zf,
|
|
9121
|
+
represent: Xf,
|
|
9103
9122
|
defaultStyle: "lowercase"
|
|
9104
|
-
}),
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
] }),
|
|
9110
|
-
function
|
|
9111
|
-
return e === null ? !1 :
|
|
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;
|
|
9112
9131
|
}
|
|
9113
|
-
function
|
|
9132
|
+
function rp(e) {
|
|
9114
9133
|
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
9115
|
-
if (t =
|
|
9134
|
+
if (t = ep.exec(e), t === null && (t = tp.exec(e)), t === null) throw Error("Date resolve error");
|
|
9116
9135
|
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
9117
9136
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
9118
9137
|
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
@@ -9120,58 +9139,58 @@ function ip(e) {
|
|
|
9120
9139
|
}
|
|
9121
9140
|
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;
|
|
9122
9141
|
}
|
|
9123
|
-
function
|
|
9142
|
+
function ip(e) {
|
|
9124
9143
|
return e.toISOString();
|
|
9125
9144
|
}
|
|
9126
|
-
var
|
|
9145
|
+
var ap = new Y("tag:yaml.org,2002:timestamp", {
|
|
9127
9146
|
kind: "scalar",
|
|
9128
|
-
resolve:
|
|
9129
|
-
construct:
|
|
9147
|
+
resolve: np,
|
|
9148
|
+
construct: rp,
|
|
9130
9149
|
instanceOf: Date,
|
|
9131
|
-
represent:
|
|
9150
|
+
represent: ip
|
|
9132
9151
|
});
|
|
9133
|
-
function
|
|
9152
|
+
function op(e) {
|
|
9134
9153
|
return e === "<<" || e === null;
|
|
9135
9154
|
}
|
|
9136
|
-
var
|
|
9155
|
+
var sp = new Y("tag:yaml.org,2002:merge", {
|
|
9137
9156
|
kind: "scalar",
|
|
9138
|
-
resolve:
|
|
9139
|
-
}),
|
|
9140
|
-
function
|
|
9157
|
+
resolve: op
|
|
9158
|
+
}), cp = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
9159
|
+
function lp(e) {
|
|
9141
9160
|
if (e === null) return !1;
|
|
9142
|
-
var t, n, r = 0, i = e.length, a =
|
|
9161
|
+
var t, n, r = 0, i = e.length, a = cp;
|
|
9143
9162
|
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
9144
9163
|
if (t < 0) return !1;
|
|
9145
9164
|
r += 6;
|
|
9146
9165
|
}
|
|
9147
9166
|
return r % 8 == 0;
|
|
9148
9167
|
}
|
|
9149
|
-
function
|
|
9150
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
9168
|
+
function up(e) {
|
|
9169
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = cp, o = 0, s = [];
|
|
9151
9170
|
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));
|
|
9152
9171
|
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);
|
|
9153
9172
|
}
|
|
9154
|
-
function
|
|
9155
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
9173
|
+
function dp(e) {
|
|
9174
|
+
var t = "", n = 0, r, i, a = e.length, o = cp;
|
|
9156
9175
|
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];
|
|
9157
9176
|
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;
|
|
9158
9177
|
}
|
|
9159
|
-
function
|
|
9178
|
+
function fp(e) {
|
|
9160
9179
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
9161
9180
|
}
|
|
9162
|
-
var
|
|
9181
|
+
var pp = new Y("tag:yaml.org,2002:binary", {
|
|
9163
9182
|
kind: "scalar",
|
|
9164
|
-
resolve:
|
|
9165
|
-
construct:
|
|
9166
|
-
predicate:
|
|
9167
|
-
represent:
|
|
9168
|
-
}),
|
|
9169
|
-
function
|
|
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) {
|
|
9170
9189
|
if (e === null) return !0;
|
|
9171
9190
|
var t = [], n, r, i, a, o, s = e;
|
|
9172
9191
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
9173
|
-
if (i = s[n], o = !1,
|
|
9174
|
-
for (a in i) if (
|
|
9192
|
+
if (i = s[n], o = !1, hp.call(i) !== "[object Object]") return !1;
|
|
9193
|
+
for (a in i) if (mp.call(i, a)) {
|
|
9175
9194
|
if (!o) o = !0;
|
|
9176
9195
|
else return !1;
|
|
9177
9196
|
}
|
|
@@ -9181,66 +9200,66 @@ function _p(e) {
|
|
|
9181
9200
|
}
|
|
9182
9201
|
return !0;
|
|
9183
9202
|
}
|
|
9184
|
-
function
|
|
9203
|
+
function _p(e) {
|
|
9185
9204
|
return e === null ? [] : e;
|
|
9186
9205
|
}
|
|
9187
|
-
var
|
|
9206
|
+
var vp = new Y("tag:yaml.org,2002:omap", {
|
|
9188
9207
|
kind: "sequence",
|
|
9189
|
-
resolve:
|
|
9190
|
-
construct:
|
|
9191
|
-
}),
|
|
9192
|
-
function
|
|
9208
|
+
resolve: gp,
|
|
9209
|
+
construct: _p
|
|
9210
|
+
}), yp = Object.prototype.toString;
|
|
9211
|
+
function bp(e) {
|
|
9193
9212
|
if (e === null) return !0;
|
|
9194
9213
|
var t, n, r, i, a, o = e;
|
|
9195
9214
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
9196
|
-
if (r = o[t],
|
|
9215
|
+
if (r = o[t], yp.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
9197
9216
|
a[t] = [i[0], r[i[0]]];
|
|
9198
9217
|
}
|
|
9199
9218
|
return !0;
|
|
9200
9219
|
}
|
|
9201
|
-
function
|
|
9220
|
+
function xp(e) {
|
|
9202
9221
|
if (e === null) return [];
|
|
9203
9222
|
var t, n, r, i, a, o = e;
|
|
9204
9223
|
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]]];
|
|
9205
9224
|
return a;
|
|
9206
9225
|
}
|
|
9207
|
-
var
|
|
9226
|
+
var Sp = new Y("tag:yaml.org,2002:pairs", {
|
|
9208
9227
|
kind: "sequence",
|
|
9209
|
-
resolve:
|
|
9210
|
-
construct:
|
|
9211
|
-
}),
|
|
9212
|
-
function
|
|
9228
|
+
resolve: bp,
|
|
9229
|
+
construct: xp
|
|
9230
|
+
}), Cp = Object.prototype.hasOwnProperty;
|
|
9231
|
+
function wp(e) {
|
|
9213
9232
|
if (e === null) return !0;
|
|
9214
9233
|
var t, n = e;
|
|
9215
|
-
for (t in n) if (
|
|
9234
|
+
for (t in n) if (Cp.call(n, t) && n[t] !== null) return !1;
|
|
9216
9235
|
return !0;
|
|
9217
9236
|
}
|
|
9218
|
-
function
|
|
9237
|
+
function Tp(e) {
|
|
9219
9238
|
return e === null ? {} : e;
|
|
9220
9239
|
}
|
|
9221
|
-
var
|
|
9240
|
+
var Ep = new Y("tag:yaml.org,2002:set", {
|
|
9222
9241
|
kind: "mapping",
|
|
9223
|
-
resolve:
|
|
9224
|
-
construct:
|
|
9225
|
-
}),
|
|
9226
|
-
implicit: [
|
|
9242
|
+
resolve: wp,
|
|
9243
|
+
construct: Tp
|
|
9244
|
+
}), Dp = $f.extend({
|
|
9245
|
+
implicit: [ap, sp],
|
|
9227
9246
|
explicit: [
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9247
|
+
pp,
|
|
9248
|
+
vp,
|
|
9249
|
+
Sp,
|
|
9250
|
+
Ep
|
|
9232
9251
|
]
|
|
9233
|
-
}),
|
|
9234
|
-
function
|
|
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) {
|
|
9235
9254
|
return Object.prototype.toString.call(e);
|
|
9236
9255
|
}
|
|
9237
|
-
function
|
|
9256
|
+
function Hp(e) {
|
|
9238
9257
|
return e === 10 || e === 13;
|
|
9239
9258
|
}
|
|
9240
|
-
function
|
|
9259
|
+
function Up(e) {
|
|
9241
9260
|
return e === 9 || e === 32;
|
|
9242
9261
|
}
|
|
9243
|
-
function
|
|
9262
|
+
function Wp(e) {
|
|
9244
9263
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
9245
9264
|
}
|
|
9246
9265
|
function Gp(e) {
|
|
@@ -9272,7 +9291,7 @@ function Zp(e, t, n) {
|
|
|
9272
9291
|
}
|
|
9273
9292
|
for (var Qp = Array(256), $p = Array(256), em = 0; em < 256; em++) Qp[em] = +!!Yp(em), $p[em] = Yp(em);
|
|
9274
9293
|
function tm(e, t) {
|
|
9275
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
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 = [];
|
|
9276
9295
|
}
|
|
9277
9296
|
function nm(e, t) {
|
|
9278
9297
|
var n = {
|
|
@@ -9282,7 +9301,7 @@ function nm(e, t) {
|
|
|
9282
9301
|
line: e.line,
|
|
9283
9302
|
column: e.position - e.lineStart
|
|
9284
9303
|
};
|
|
9285
|
-
return n.snippet =
|
|
9304
|
+
return n.snippet = Sf(n), new J(t, n);
|
|
9286
9305
|
}
|
|
9287
9306
|
function X(e, t) {
|
|
9288
9307
|
throw nm(e, t);
|
|
@@ -9297,7 +9316,7 @@ var im = {
|
|
|
9297
9316
|
},
|
|
9298
9317
|
TAG: function(e, t, n) {
|
|
9299
9318
|
var r, i;
|
|
9300
|
-
n.length !== 2 && X(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1],
|
|
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");
|
|
9301
9320
|
try {
|
|
9302
9321
|
i = decodeURIComponent(i);
|
|
9303
9322
|
} catch {
|
|
@@ -9310,21 +9329,21 @@ function am(e, t, n, r) {
|
|
|
9310
9329
|
var i, a, o, s;
|
|
9311
9330
|
if (t < n) {
|
|
9312
9331
|
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");
|
|
9313
|
-
else
|
|
9332
|
+
else Ip.test(s) && X(e, "the stream contains non-printable characters");
|
|
9314
9333
|
e.result += s;
|
|
9315
9334
|
}
|
|
9316
9335
|
}
|
|
9317
9336
|
function om(e, t, n, r) {
|
|
9318
9337
|
var i, a, o, s;
|
|
9319
|
-
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],
|
|
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);
|
|
9320
9339
|
}
|
|
9321
9340
|
function sm(e, t, n, r, i, a, o, s, c) {
|
|
9322
9341
|
var l, u;
|
|
9323
|
-
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" &&
|
|
9324
|
-
if (typeof i == "object" &&
|
|
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") {
|
|
9325
9344
|
if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) om(e, t, a[l], n);
|
|
9326
9345
|
else om(e, t, a, n);
|
|
9327
|
-
} else !e.json && !
|
|
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];
|
|
9328
9347
|
return t;
|
|
9329
9348
|
}
|
|
9330
9349
|
function cm(e) {
|
|
@@ -9333,32 +9352,32 @@ function cm(e) {
|
|
|
9333
9352
|
}
|
|
9334
9353
|
function Z(e, t, n) {
|
|
9335
9354
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
9336
|
-
for (;
|
|
9355
|
+
for (; Up(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
9337
9356
|
if (t && i === 35) do
|
|
9338
9357
|
i = e.input.charCodeAt(++e.position);
|
|
9339
9358
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
9340
|
-
if (
|
|
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);
|
|
9341
9360
|
else break;
|
|
9342
9361
|
}
|
|
9343
9362
|
return n !== -1 && r !== 0 && e.lineIndent < n && rm(e, "deficient indentation"), r;
|
|
9344
9363
|
}
|
|
9345
9364
|
function lm(e) {
|
|
9346
9365
|
var t = e.position, n = e.input.charCodeAt(t);
|
|
9347
|
-
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 ||
|
|
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)));
|
|
9348
9367
|
}
|
|
9349
9368
|
function um(e, t) {
|
|
9350
9369
|
t === 1 ? e.result += " " : t > 1 && (e.result += q.repeat("\n", t - 1));
|
|
9351
9370
|
}
|
|
9352
9371
|
function dm(e, t, n) {
|
|
9353
9372
|
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
9354
|
-
if (
|
|
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;
|
|
9355
9374
|
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
9356
9375
|
if (p === 58) {
|
|
9357
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
9376
|
+
if (i = e.input.charCodeAt(e.position + 1), Wp(i) || n && Gp(i)) break;
|
|
9358
9377
|
} else if (p === 35) {
|
|
9359
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
9378
|
+
if (r = e.input.charCodeAt(e.position - 1), Wp(r)) break;
|
|
9360
9379
|
} else if (e.position === e.lineStart && lm(e) || n && Gp(p)) break;
|
|
9361
|
-
else if (
|
|
9380
|
+
else if (Hp(p)) {
|
|
9362
9381
|
if (c = e.line, l = e.lineStart, u = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
|
|
9363
9382
|
s = !0, p = e.input.charCodeAt(e.position);
|
|
9364
9383
|
continue;
|
|
@@ -9366,7 +9385,7 @@ function dm(e, t, n) {
|
|
|
9366
9385
|
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
9367
9386
|
break;
|
|
9368
9387
|
}
|
|
9369
|
-
s && (s = (am(e, a, o, !1), um(e, e.line - c), a = o = e.position, !1)),
|
|
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);
|
|
9370
9389
|
}
|
|
9371
9390
|
return am(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
9372
9391
|
}
|
|
@@ -9376,7 +9395,7 @@ function fm(e, t) {
|
|
|
9376
9395
|
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) {
|
|
9377
9396
|
if (am(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
9378
9397
|
else return !0;
|
|
9379
|
-
} else
|
|
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);
|
|
9380
9399
|
X(e, "unexpected end of the stream within a single quoted scalar");
|
|
9381
9400
|
}
|
|
9382
9401
|
function pm(e, t) {
|
|
@@ -9384,14 +9403,14 @@ function pm(e, t) {
|
|
|
9384
9403
|
if (s !== 34) return !1;
|
|
9385
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;
|
|
9386
9405
|
else if (s === 92) {
|
|
9387
|
-
if (am(e, n, e.position, !0), s = e.input.charCodeAt(++e.position),
|
|
9406
|
+
if (am(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), Hp(s)) Z(e, !1, t);
|
|
9388
9407
|
else if (s < 256 && Qp[s]) e.result += $p[s], e.position++;
|
|
9389
9408
|
else if ((o = qp(s)) > 0) {
|
|
9390
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");
|
|
9391
9410
|
e.result += Xp(a), e.position++;
|
|
9392
9411
|
} else X(e, "unknown escape sequence");
|
|
9393
9412
|
n = r = e.position;
|
|
9394
|
-
} else
|
|
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);
|
|
9395
9414
|
X(e, "unexpected end of the stream within a double quoted scalar");
|
|
9396
9415
|
}
|
|
9397
9416
|
function mm(e, t) {
|
|
@@ -9401,37 +9420,37 @@ function mm(e, t) {
|
|
|
9401
9420
|
else return !1;
|
|
9402
9421
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
9403
9422
|
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;
|
|
9404
|
-
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),
|
|
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;
|
|
9405
9424
|
}
|
|
9406
9425
|
X(e, "unexpected end of the stream within a flow collection");
|
|
9407
9426
|
}
|
|
9408
9427
|
function hm(e, t) {
|
|
9409
|
-
var n, r, i =
|
|
9428
|
+
var n, r, i = Np, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
9410
9429
|
if (d === 124) r = !1;
|
|
9411
9430
|
else if (d === 62) r = !0;
|
|
9412
9431
|
else return !1;
|
|
9413
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
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");
|
|
9414
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);
|
|
9415
9434
|
else break;
|
|
9416
|
-
if (
|
|
9435
|
+
if (Up(d)) {
|
|
9417
9436
|
do
|
|
9418
9437
|
d = e.input.charCodeAt(++e.position);
|
|
9419
|
-
while (
|
|
9438
|
+
while (Up(d));
|
|
9420
9439
|
if (d === 35) do
|
|
9421
9440
|
d = e.input.charCodeAt(++e.position);
|
|
9422
|
-
while (!
|
|
9441
|
+
while (!Hp(d) && d !== 0);
|
|
9423
9442
|
}
|
|
9424
9443
|
for (; d !== 0;) {
|
|
9425
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);
|
|
9426
|
-
if (!o && e.lineIndent > s && (s = e.lineIndent),
|
|
9445
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), Hp(d)) {
|
|
9427
9446
|
c++;
|
|
9428
9447
|
continue;
|
|
9429
9448
|
}
|
|
9430
9449
|
if (e.lineIndent < s) {
|
|
9431
|
-
i ===
|
|
9450
|
+
i === Fp ? e.result += q.repeat("\n", a ? 1 + c : c) : i === Np && a && (e.result += "\n");
|
|
9432
9451
|
break;
|
|
9433
9452
|
}
|
|
9434
|
-
for (r ?
|
|
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);
|
|
9435
9454
|
am(e, n, e.position, !1);
|
|
9436
9455
|
}
|
|
9437
9456
|
return !0;
|
|
@@ -9439,12 +9458,12 @@ function hm(e, t) {
|
|
|
9439
9458
|
function gm(e, t) {
|
|
9440
9459
|
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
9441
9460
|
if (e.firstTabInLine !== -1) return !1;
|
|
9442
|
-
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), !
|
|
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))));) {
|
|
9443
9462
|
if (s = !0, e.position++, Z(e, !0, -1) && e.lineIndent <= t) {
|
|
9444
9463
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
9445
9464
|
continue;
|
|
9446
9465
|
}
|
|
9447
|
-
if (n = e.line, xm(e, t,
|
|
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");
|
|
9448
9467
|
else if (e.lineIndent < t) break;
|
|
9449
9468
|
}
|
|
9450
9469
|
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
@@ -9453,18 +9472,18 @@ function _m(e, t, n) {
|
|
|
9453
9472
|
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;
|
|
9454
9473
|
if (e.firstTabInLine !== -1) return !1;
|
|
9455
9474
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
9456
|
-
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) &&
|
|
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;
|
|
9457
9476
|
else {
|
|
9458
|
-
if (o = e.line, s = e.lineStart, c = e.position, !xm(e, n,
|
|
9477
|
+
if (o = e.line, s = e.lineStart, c = e.position, !xm(e, n, Ap, !1, !0)) break;
|
|
9459
9478
|
if (e.line === a) {
|
|
9460
|
-
for (v = e.input.charCodeAt(e.position);
|
|
9461
|
-
if (v === 58) v = e.input.charCodeAt(++e.position),
|
|
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;
|
|
9462
9481
|
else if (_) X(e, "can not read an implicit mapping pair; a colon is missed");
|
|
9463
9482
|
else return e.tag = l, e.anchor = u, !0;
|
|
9464
9483
|
} else if (_) X(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
9465
9484
|
else return e.tag = l, e.anchor = u, !0;
|
|
9466
9485
|
}
|
|
9467
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), xm(e, t,
|
|
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");
|
|
9468
9487
|
else if (e.lineIndent < t) break;
|
|
9469
9488
|
}
|
|
9470
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), _;
|
|
@@ -9478,40 +9497,40 @@ function vm(e) {
|
|
|
9478
9497
|
while (o !== 0 && o !== 62);
|
|
9479
9498
|
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");
|
|
9480
9499
|
} else {
|
|
9481
|
-
for (; o !== 0 && !
|
|
9482
|
-
a = e.input.slice(t, e.position),
|
|
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");
|
|
9483
9502
|
}
|
|
9484
|
-
a && !
|
|
9503
|
+
a && !Bp.test(a) && X(e, "tag name cannot contain such characters: " + a);
|
|
9485
9504
|
try {
|
|
9486
9505
|
a = decodeURIComponent(a);
|
|
9487
9506
|
} catch {
|
|
9488
9507
|
X(e, "tag name is malformed: " + a);
|
|
9489
9508
|
}
|
|
9490
|
-
return n ? e.tag = a :
|
|
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;
|
|
9491
9510
|
}
|
|
9492
9511
|
function ym(e) {
|
|
9493
9512
|
var t, n = e.input.charCodeAt(e.position);
|
|
9494
9513
|
if (n !== 38) return !1;
|
|
9495
|
-
for (e.anchor !== null && X(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !
|
|
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);
|
|
9496
9515
|
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;
|
|
9497
9516
|
}
|
|
9498
9517
|
function bm(e) {
|
|
9499
9518
|
var t, n, r = e.input.charCodeAt(e.position);
|
|
9500
9519
|
if (r !== 42) return !1;
|
|
9501
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
9502
|
-
return e.position === t && X(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position),
|
|
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;
|
|
9503
9522
|
}
|
|
9504
9523
|
function xm(e, t, n, r, i) {
|
|
9505
9524
|
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
9506
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
9507
|
-
if (s && (s = l || i), (c === 1 ||
|
|
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);
|
|
9508
9527
|
else if (e.tag === "?") {
|
|
9509
9528
|
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)) {
|
|
9510
9529
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
9511
9530
|
break;
|
|
9512
9531
|
}
|
|
9513
9532
|
} else if (e.tag !== "!") {
|
|
9514
|
-
if (
|
|
9533
|
+
if (Op.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
9515
9534
|
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) {
|
|
9516
9535
|
m = p[d];
|
|
9517
9536
|
break;
|
|
@@ -9523,22 +9542,22 @@ function xm(e, t, n, r, i) {
|
|
|
9523
9542
|
function Sm(e) {
|
|
9524
9543
|
var t = e.position, n, r, i, a = !1, o;
|
|
9525
9544
|
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));) {
|
|
9526
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
9545
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !Wp(o);) o = e.input.charCodeAt(++e.position);
|
|
9527
9546
|
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;) {
|
|
9528
|
-
for (;
|
|
9547
|
+
for (; Up(o);) o = e.input.charCodeAt(++e.position);
|
|
9529
9548
|
if (o === 35) {
|
|
9530
9549
|
do
|
|
9531
9550
|
o = e.input.charCodeAt(++e.position);
|
|
9532
|
-
while (o !== 0 && !
|
|
9551
|
+
while (o !== 0 && !Hp(o));
|
|
9533
9552
|
break;
|
|
9534
9553
|
}
|
|
9535
|
-
if (
|
|
9536
|
-
for (n = e.position; o !== 0 && !
|
|
9554
|
+
if (Hp(o)) break;
|
|
9555
|
+
for (n = e.position; o !== 0 && !Wp(o);) o = e.input.charCodeAt(++e.position);
|
|
9537
9556
|
i.push(e.input.slice(n, e.position));
|
|
9538
9557
|
}
|
|
9539
|
-
o !== 0 && cm(e),
|
|
9558
|
+
o !== 0 && cm(e), Op.call(im, r) ? im[r](e, r, i) : rm(e, "unknown document directive \"" + r + "\"");
|
|
9540
9559
|
}
|
|
9541
|
-
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,
|
|
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)) {
|
|
9542
9561
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
|
|
9543
9562
|
return;
|
|
9544
9563
|
}
|
|
@@ -9562,7 +9581,7 @@ function Tm(e, t) {
|
|
|
9562
9581
|
var n = Cm(e, t);
|
|
9563
9582
|
if (n.length !== 0) {
|
|
9564
9583
|
if (n.length === 1) return n[0];
|
|
9565
|
-
throw new
|
|
9584
|
+
throw new J("expected a single document in the stream, but found more");
|
|
9566
9585
|
}
|
|
9567
9586
|
}
|
|
9568
9587
|
var Em = {
|
|
@@ -9599,12 +9618,12 @@ function rh(e) {
|
|
|
9599
9618
|
if (e <= 255) n = "x", r = 2;
|
|
9600
9619
|
else if (e <= 65535) n = "u", r = 4;
|
|
9601
9620
|
else if (e <= 4294967295) n = "U", r = 8;
|
|
9602
|
-
else throw new
|
|
9621
|
+
else throw new J("code point within a string may not be greater than 0xFFFFFFFF");
|
|
9603
9622
|
return "\\" + n + q.repeat("0", r - t.length) + t;
|
|
9604
9623
|
}
|
|
9605
9624
|
var ih = 1, ah = 2;
|
|
9606
9625
|
function oh(e) {
|
|
9607
|
-
this.schema = e.schema ||
|
|
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;
|
|
9608
9627
|
}
|
|
9609
9628
|
function sh(e, t) {
|
|
9610
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;
|
|
@@ -9675,7 +9694,7 @@ function wh(e, t, n, r, i) {
|
|
|
9675
9694
|
case bh: return "|" + Th(t, e.indent) + Eh(sh(t, a));
|
|
9676
9695
|
case xh: return ">" + Th(t, e.indent) + Eh(sh(Dh(t, o), a));
|
|
9677
9696
|
case Sh: return "\"" + kh(t) + "\"";
|
|
9678
|
-
default: throw new
|
|
9697
|
+
default: throw new J("impossible error: invalid scalar style");
|
|
9679
9698
|
}
|
|
9680
9699
|
}();
|
|
9681
9700
|
}
|
|
@@ -9724,7 +9743,7 @@ function Nh(e, t, n, r) {
|
|
|
9724
9743
|
var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
|
|
9725
9744
|
if (e.sortKeys === !0) o.sort();
|
|
9726
9745
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
9727
|
-
else if (e.sortKeys) throw new
|
|
9746
|
+
else if (e.sortKeys) throw new J("sortKeys must be a boolean or a function");
|
|
9728
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));
|
|
9729
9748
|
e.tag = a, e.dump = i || "{}";
|
|
9730
9749
|
}
|
|
@@ -9734,7 +9753,7 @@ function Ph(e, t, n) {
|
|
|
9734
9753
|
if (e.tag = n ? s.multi && s.representName ? s.representName(t) : s.tag : "?", s.represent) {
|
|
9735
9754
|
if (c = e.styleMap[s.tag] || s.defaultStyle, Dm.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
9736
9755
|
else if (Om.call(s.represent, c)) r = s.represent[c](t, c);
|
|
9737
|
-
else throw new
|
|
9756
|
+
else throw new J("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
9738
9757
|
e.dump = r;
|
|
9739
9758
|
}
|
|
9740
9759
|
return !0;
|
|
@@ -9754,7 +9773,7 @@ function Fh(e, t, n, r, i, a, o) {
|
|
|
9754
9773
|
else if (s === "[object Undefined]") return !1;
|
|
9755
9774
|
else {
|
|
9756
9775
|
if (e.skipInvalid) return !1;
|
|
9757
|
-
throw new
|
|
9776
|
+
throw new J("unacceptable kind of an object to dump " + s);
|
|
9758
9777
|
}
|
|
9759
9778
|
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);
|
|
9760
9779
|
}
|