@swagger-api/apidom-ast 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +352 -0
  2. package/LICENSES/Apache-2.0.txt +202 -0
  3. package/LICENSES/MIT.txt +9 -0
  4. package/NOTICE +57 -0
  5. package/README.md +98 -0
  6. package/cjs/Error.cjs +25 -0
  7. package/cjs/Literal.cjs +22 -0
  8. package/cjs/Node.cjs +46 -0
  9. package/cjs/ParseResult.cjs +22 -0
  10. package/cjs/Position.cjs +46 -0
  11. package/cjs/index.cjs +113 -0
  12. package/cjs/json/nodes/JsonArray.cjs +21 -0
  13. package/cjs/json/nodes/JsonDocument.cjs +22 -0
  14. package/cjs/json/nodes/JsonEscapeSequence.cjs +14 -0
  15. package/cjs/json/nodes/JsonFalse.cjs +14 -0
  16. package/cjs/json/nodes/JsonKey.cjs +14 -0
  17. package/cjs/json/nodes/JsonNode.cjs +10 -0
  18. package/cjs/json/nodes/JsonNull.cjs +14 -0
  19. package/cjs/json/nodes/JsonNumber.cjs +14 -0
  20. package/cjs/json/nodes/JsonObject.cjs +21 -0
  21. package/cjs/json/nodes/JsonProperty.cjs +27 -0
  22. package/cjs/json/nodes/JsonString.cjs +27 -0
  23. package/cjs/json/nodes/JsonStringContent.cjs +14 -0
  24. package/cjs/json/nodes/JsonTrue.cjs +14 -0
  25. package/cjs/json/nodes/JsonValue.cjs +22 -0
  26. package/cjs/json/nodes/predicates.cjs +29 -0
  27. package/cjs/predicates.cjs +14 -0
  28. package/cjs/traversal/visitor.cjs +493 -0
  29. package/cjs/yaml/nodes/YamlAlias.cjs +22 -0
  30. package/cjs/yaml/nodes/YamlAnchor.cjs +22 -0
  31. package/cjs/yaml/nodes/YamlCollection.cjs +10 -0
  32. package/cjs/yaml/nodes/YamlComment.cjs +22 -0
  33. package/cjs/yaml/nodes/YamlDirective.cjs +30 -0
  34. package/cjs/yaml/nodes/YamlDocument.cjs +14 -0
  35. package/cjs/yaml/nodes/YamlKeyValuePair.cjs +40 -0
  36. package/cjs/yaml/nodes/YamlMapping.cjs +24 -0
  37. package/cjs/yaml/nodes/YamlNode.cjs +28 -0
  38. package/cjs/yaml/nodes/YamlScalar.cjs +22 -0
  39. package/cjs/yaml/nodes/YamlSequence.cjs +27 -0
  40. package/cjs/yaml/nodes/YamlStream.cjs +26 -0
  41. package/cjs/yaml/nodes/YamlStyle.cjs +33 -0
  42. package/cjs/yaml/nodes/YamlTag.cjs +32 -0
  43. package/cjs/yaml/nodes/predicates.cjs +25 -0
  44. package/cjs/yaml/schemas/ScalarTag.cjs +43 -0
  45. package/cjs/yaml/schemas/Tag.cjs +14 -0
  46. package/cjs/yaml/schemas/canonical-format.cjs +129 -0
  47. package/cjs/yaml/schemas/failsafe/GenericMapping.cjs +29 -0
  48. package/cjs/yaml/schemas/failsafe/GenericSequence.cjs +29 -0
  49. package/cjs/yaml/schemas/failsafe/GenericString.cjs +24 -0
  50. package/cjs/yaml/schemas/failsafe/index.cjs +96 -0
  51. package/cjs/yaml/schemas/json/Boolean.cjs +30 -0
  52. package/cjs/yaml/schemas/json/FloatingPoint.cjs +30 -0
  53. package/cjs/yaml/schemas/json/Integer.cjs +30 -0
  54. package/cjs/yaml/schemas/json/Null.cjs +29 -0
  55. package/cjs/yaml/schemas/json/index.cjs +47 -0
  56. package/dist/apidom-ast.browser.js +21212 -0
  57. package/dist/apidom-ast.browser.min.js +2 -0
  58. package/dist/apidom-ast.browser.min.js.LICENSE.txt +6 -0
  59. package/es/Error.js +19 -0
  60. package/es/Literal.js +16 -0
  61. package/es/Node.js +40 -0
  62. package/es/ParseResult.js +16 -0
  63. package/es/Position.js +39 -0
  64. package/es/index.js +39 -0
  65. package/es/json/nodes/JsonArray.js +15 -0
  66. package/es/json/nodes/JsonDocument.js +16 -0
  67. package/es/json/nodes/JsonEscapeSequence.js +8 -0
  68. package/es/json/nodes/JsonFalse.js +8 -0
  69. package/es/json/nodes/JsonKey.js +8 -0
  70. package/es/json/nodes/JsonNode.js +4 -0
  71. package/es/json/nodes/JsonNull.js +8 -0
  72. package/es/json/nodes/JsonNumber.js +8 -0
  73. package/es/json/nodes/JsonObject.js +15 -0
  74. package/es/json/nodes/JsonProperty.js +21 -0
  75. package/es/json/nodes/JsonString.js +21 -0
  76. package/es/json/nodes/JsonStringContent.js +8 -0
  77. package/es/json/nodes/JsonTrue.js +8 -0
  78. package/es/json/nodes/JsonValue.js +16 -0
  79. package/es/json/nodes/predicates.js +13 -0
  80. package/es/predicates.js +5 -0
  81. package/es/traversal/visitor.js +483 -0
  82. package/es/yaml/nodes/YamlAlias.js +16 -0
  83. package/es/yaml/nodes/YamlAnchor.js +16 -0
  84. package/es/yaml/nodes/YamlCollection.js +4 -0
  85. package/es/yaml/nodes/YamlComment.js +16 -0
  86. package/es/yaml/nodes/YamlDirective.js +24 -0
  87. package/es/yaml/nodes/YamlDocument.js +8 -0
  88. package/es/yaml/nodes/YamlKeyValuePair.js +34 -0
  89. package/es/yaml/nodes/YamlMapping.js +18 -0
  90. package/es/yaml/nodes/YamlNode.js +22 -0
  91. package/es/yaml/nodes/YamlScalar.js +16 -0
  92. package/es/yaml/nodes/YamlSequence.js +21 -0
  93. package/es/yaml/nodes/YamlStream.js +20 -0
  94. package/es/yaml/nodes/YamlStyle.js +25 -0
  95. package/es/yaml/nodes/YamlTag.js +25 -0
  96. package/es/yaml/nodes/predicates.js +11 -0
  97. package/es/yaml/schemas/ScalarTag.js +37 -0
  98. package/es/yaml/schemas/Tag.js +8 -0
  99. package/es/yaml/schemas/canonical-format.js +122 -0
  100. package/es/yaml/schemas/failsafe/GenericMapping.js +23 -0
  101. package/es/yaml/schemas/failsafe/GenericSequence.js +23 -0
  102. package/es/yaml/schemas/failsafe/GenericString.js +18 -0
  103. package/es/yaml/schemas/failsafe/index.js +90 -0
  104. package/es/yaml/schemas/json/Boolean.js +24 -0
  105. package/es/yaml/schemas/json/FloatingPoint.js +24 -0
  106. package/es/yaml/schemas/json/Integer.js +24 -0
  107. package/es/yaml/schemas/json/Null.js +23 -0
  108. package/es/yaml/schemas/json/index.js +41 -0
  109. package/package.json +62 -0
  110. package/types/dist.d.ts +362 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see apidom-ast.browser.min.js.LICENSE.txt */
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomAST=e():t.apidomAST=e()}(self,(()=>(()=>{var t={591:t=>{!function(){"use strict";var e,n,r,i,o,s="properties",c="deepProperties",a="propertyDescriptors",u="staticProperties",l="staticDeepProperties",f="staticPropertyDescriptors",p="configuration",d="deepConfiguration",y="deepProps",g="deepStatics",h="deepConf",m="initializers",v="methods",b="composers",S="compose";function O(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function j(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var w=j.bind(0,(function(t,e){if(e)for(var n=O(e),r=0;r<n.length;r+=1)Object.defineProperty(t,n[r],Object.getOwnPropertyDescriptor(e,n[r]));return t}));function A(t){return"function"==typeof t}function x(t){return t&&"object"==typeof t||A(t)}function E(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var N=j.bind(0,(function t(n,r){if(r===e)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!E(r))return r;for(var i,o,s=O(r),c=0;c<s.length;)i=s[c++],(o=Object.getOwnPropertyDescriptor(r,i)).hasOwnProperty("value")?o.value!==e&&(n[i]=t(E(n[i])||Array.isArray(r[i])?n[i]:{},r[i])):Object.defineProperty(n,i,o);return n}));function P(){return(n=Array.prototype.concat.apply([],arguments).filter((function(t,e,n){return A(t)&&n.indexOf(t)===e}))).length?n:e}function T(t,e){function r(n,r){x(e[n])&&(x(t[n])||(t[n]={}),(r||w)(t[n],e[n]))}function i(r){(n=P(t[r],e[r]))&&(t[r]=n)}return e&&x(e=e[S]||e)&&(r(v),r(s),r(c,N),r(a),r(u),r(l,N),r(f),r(p),r(d,N),i(m),i(b)),t}function M(){return function(t){return n=function t(n){var r,i,o=t[S]||{},u={__proto__:o[v]},l=o[m],f=Array.prototype.slice.apply(arguments),p=o[c];if(p&&N(u,p),(p=o[s])&&w(u,p),(p=o[a])&&Object.defineProperties(u,p),!l||!l.length)return u;for(n===e&&(n={}),o=0;o<l.length;)A(r=l[o++])&&(u=(i=r.call(u,n,{instance:u,stamp:t,args:f}))===e?u:i);return u},(r=t[l])&&N(n,r),(r=t[u])&&w(n,r),(r=t[f])&&Object.defineProperties(n,r),r=A(n[S])?n[S]:M,w(n[S]=function(){return r.apply(this,arguments)},t),n}(Array.prototype.concat.apply([this],arguments).reduce(T,{}))}function k(t){return A(t)&&A(t[S])}var F={};function D(t,o){return function(){return(i={})[t]=o.apply(e,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[S]||r).call(n,i)}}F[v]=D(v,w),F[s]=F.props=D(s,w),F[m]=F.init=D(m,P),F[b]=D(b,P),F[c]=F[y]=D(c,N),F[u]=F.statics=D(u,w),F[l]=F[g]=D(l,N),F[p]=F.conf=D(p,w),F[d]=F[h]=D(d,N),F[a]=D(a,w),F[f]=D(f,w),r=F[S]=w((function(){for(var t,O,j=0,A=[],E=arguments,T=this;j<E.length;)x(t=E[j++])&&A.push(k(t)?t:((i={})[v]=(O=t)[v]||e,r=O.props,i[s]=x((n=O[s])||r)?w({},r,n):e,i[m]=P(O.init,O[m]),i[b]=P(O[b]),r=O[y],i[c]=x((n=O[c])||r)?N({},r,n):e,i[a]=O[a],r=O.statics,i[u]=x((n=O[u])||r)?w({},r,n):e,r=O[g],i[l]=x((n=O[l])||r)?N({},r,n):e,n=O[f],i[f]=x((r=O.name&&{name:{value:O.name}})||n)?w({},n,r):e,r=O.conf,i[p]=x((n=O[p])||r)?w({},r,n):e,r=O[h],i[d]=x((n=O[d])||r)?N({},r,n):e,i));if(t=M.apply(T||o,A),T&&A.unshift(T),Array.isArray(E=t[S][b]))for(j=0;j<E.length;)t=k(T=E[j++]({stamp:t,composables:A}))?T:t;return t}),F),F.create=function(){return this.apply(e,arguments)},(i={})[u]=F,o=M(i),r[S]=r.bind(),r.version="4.3.2","object"!=typeof e?t.exports=r:self.stampit=r}()},396:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(n=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},770:(t,e,n)=>{"use strict";const r=n(396);function i(t,e,n){const i=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(i)||void 0!==n&&n!==t.length)throw new SyntaxError(r.errorMessages.get(e));return i}function o(t,e){const n=i(t,r.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=i(e,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,t)}return String.fromCharCode(n)}r.ErrorType,r.errorMessages;const s=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const c=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function a(t,e=!1){return t.replace(c,(function(t,n,c,a,u,l,f,p,d){if(void 0!==n)return"\\";if(void 0!==c)return function(t){const e=i(t,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(c);if(void 0!==a)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var e;const n=i(t.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(t){throw t instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):t}}(a);if(void 0!==u)return o(u,l);if(void 0!==f)return o(f);if("0"===p)return"\0";if(void 0!==p)return function(t,e=!1){if(e)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(t,8);return String.fromCharCode(n)}(p,!e);if(void 0!==d)return y=d,s.get(y)||y;var y;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}e.S6=a}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{BREAK:()=>Zn,Error:()=>Hn,JsonArray:()=>de,JsonDocument:()=>zt,JsonEscapeSequence:()=>ve,JsonFalse:()=>Oe,JsonKey:()=>he,JsonNode:()=>o,JsonNull:()=>je,JsonNumber:()=>be,JsonObject:()=>fe,JsonProperty:()=>pe,JsonString:()=>ge,JsonStringContent:()=>me,JsonTrue:()=>Se,JsonValue:()=>ye,Literal:()=>zn,ParseResult:()=>Wn,Point:()=>Kn,Position:()=>Qn,YamlAlias:()=>we,YamlAnchor:()=>Qe,YamlCollection:()=>xe,YamlComment:()=>Ee,YamlDirective:()=>Ne,YamlDocument:()=>Pe,YamlFailsafeSchema:()=>Rn,YamlJsonSchema:()=>Bn,YamlKeyValuePair:()=>$e,YamlMapping:()=>Le,YamlNode:()=>Ae,YamlNodeKind:()=>ze,YamlScalar:()=>Ge,YamlSequence:()=>Ve,YamlStream:()=>Be,YamlStyle:()=>Te,YamlStyleGroup:()=>Me,YamlTag:()=>Ke,getNodeType:()=>tr,getVisitFn:()=>Xn,isJsonArray:()=>oe,isJsonDocument:()=>Zt,isJsonEscapeSequence:()=>ae,isJsonFalse:()=>ee,isJsonKey:()=>le,isJsonNull:()=>re,isJsonNumber:()=>ie,isJsonObject:()=>se,isJsonProperty:()=>ue,isJsonString:()=>te,isJsonStringContent:()=>ce,isJsonTrue:()=>ne,isLiteral:()=>Qt,isNode:()=>er,isParseResult:()=>Xt,isPoint:()=>Wt,isPosition:()=>Ht,isYamlAlias:()=>Ue,isYamlDirective:()=>_e,isYamlDocument:()=>De,isYamlKeyValuePair:()=>Je,isYamlMapping:()=>Ce,isYamlScalar:()=>Ie,isYamlSequence:()=>qe,isYamlStream:()=>Fe,isYamlTag:()=>Ye,mergeAllVisitors:()=>nr,visit:()=>rr});var t=n(591),e=n.n(t);const i=e()({props:{type:null,position:null,children:[]},init(){let{children:t=[],position:e=null,isMissing:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stamp:r={}}=arguments.length>1?arguments[1]:void 0;this.type=r.type,this.isMissing=n,this.children=t,this.position=e},methods:{clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const n=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,n)})),t}}}),o=e()(i);function s(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function c(t){return function e(n){return 0===arguments.length||s(n)?e:t.apply(this,arguments)}}function a(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return s(n)?e:c((function(e){return t(n,e)}));default:return s(n)&&s(r)?e:s(n)?c((function(e){return t(e,r)})):s(r)?c((function(e){return t(n,e)})):t(n,r)}}}const u=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function l(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!u(r)){for(var i=0;i<t.length;){if("function"==typeof r[t[i]])return r[t[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const f={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function p(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}function d(t){return"[object String]"===Object.prototype.toString.call(t)}const y=c((function(t){return!!u(t)||!!t&&("object"==typeof t&&(!d(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var g=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function h(t){return new g(t)}function m(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,o){return e.apply(this,arguments)};case 6:return function(t,n,r,i,o,s){return e.apply(this,arguments)};case 7:return function(t,n,r,i,o,s,c){return e.apply(this,arguments)};case 8:return function(t,n,r,i,o,s,c,a){return e.apply(this,arguments)};case 9:return function(t,n,r,i,o,s,c,a,u){return e.apply(this,arguments)};case 10:return function(t,n,r,i,o,s,c,a,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}const v=a((function(t,e){return m(t.length,(function(){return t.apply(e,arguments)}))}));function b(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function S(t,e,n,r){return t["@@transducer/result"](n[r](v(t["@@transducer/step"],t),e))}var O="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function j(t,e,n){if("function"==typeof t&&(t=h(t)),y(n))return function(t,e,n){for(var r=0,i=n.length;r<i;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return S(t,e,n,"fantasy-land/reduce");if(null!=n[O])return b(t,e,n[O]());if("function"==typeof n.next)return b(t,e,n);if("function"==typeof n.reduce)return S(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var w=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=f.init,t.prototype["@@transducer/result"]=f.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const A=a((function(t,e){return new w(t,e)}));function x(t,e,n){return function(){for(var r=[],i=0,o=t,c=0;c<e.length||i<arguments.length;){var a;c<e.length&&(!s(e[c])||i>=arguments.length)?a=e[c]:(a=arguments[i],i+=1),r[c]=a,s(a)||(o-=1),c+=1}return o<=0?n.apply(this,r):m(o,x(t,r,n))}}const E=a((function(t,e){return 1===t?c(e):m(t,x(t,[],e))}));function N(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var P=Object.prototype.toString;const T=function(){return"[object Arguments]"===P.call(arguments)?function(t){return"[object Arguments]"===P.call(t)}:function(t){return N("callee",t)}}();var M=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=function(){return arguments.propertyIsEnumerable("length")}(),D=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1};const C="function"!=typeof Object.keys||F?c((function(t){if(Object(t)!==t)return[];var e,n,r=[],i=F&&T(t);for(e in t)!N(e,t)||i&&"length"===e||(r[r.length]=e);if(M)for(n=k.length-1;n>=0;)N(e=k[n],t)&&!D(r,e)&&(r[r.length]=e),n-=1;return r})):c((function(t){return Object(t)!==t?[]:Object.keys(t)}));const q=a(l(["fantasy-land/map","map"],A,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return E(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return j((function(n,r){return n[r]=t(e[r]),n}),{},C(e));default:return p(t,e)}}))),J=Number.isInteger||function(t){return t<<0===t};const Y=a((function(t,e){var n=t<0?e.length+t:t;return d(e)?e.charAt(n):e[n]}));const I=a((function(t,e){if(null!=e)return J(t)?Y(t,e):e[t]}));const U=a((function(t,e){return q(I(t),e)}));function _(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return s(n)?e:a((function(e,r){return t(n,e,r)}));case 2:return s(n)&&s(r)?e:s(n)?a((function(e,n){return t(e,r,n)})):s(r)?a((function(e,r){return t(n,e,r)})):c((function(e){return t(n,r,e)}));default:return s(n)&&s(r)&&s(i)?e:s(n)&&s(r)?a((function(e,n){return t(e,n,i)})):s(n)&&s(i)?a((function(e,n){return t(e,r,n)})):s(r)&&s(i)?a((function(e,r){return t(n,e,r)})):s(n)?c((function(e){return t(e,r,i)})):s(r)?c((function(e){return t(n,e,i)})):s(i)?c((function(e){return t(n,r,e)})):t(n,r,i)}}}const R=_(j);const $=c((function(t){return function(){return t}}));const L=a((function(t,e){return e>t?e:t}));const G=c((function(t){return E(R(L,0,U("length",t)),(function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function V(t,e){var n;e=e||[];var r=(t=t||[]).length,i=e.length,o=[];for(n=0;n<r;)o[o.length]=t[n],n+=1;for(n=0;n<i;)o[o.length]=e[n],n+=1;return o}const B=a((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:j((function(t,n){return V(t,q(n,e))}),[],t)}));function z(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const K=a((function(t,e){return t&&e}));const Q=a((function(t,e){var n=E(t,e);return E(t,(function(){return j(B,q(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const H=c((function(t){return Q(t.length,t)}));const W=a((function(t,e){return z(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:H(K)(t,e)}));const X=H(c((function(t){return!t})));function Z(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function tt(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return u(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const et=_(tt("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)})));const nt=c(tt("tail",et(1,1/0)));function rt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return m(arguments[0].length,R(Z,arguments[0],nt(arguments)))}const it=c((function(t){return d(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function ot(){if(0===arguments.length)throw new Error("compose requires at least one argument");return rt.apply(this,it(arguments))}function st(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function ct(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}const at="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};const ut=c((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function lt(t,e,n,r){var i=st(t);function o(t,e){return ft(t,e,n.slice(),r.slice())}return!ct((function(t,e){return!ct(o,e,t)}),st(e),i)}function ft(t,e,n,r){if(at(t,e))return!0;var i,o,s=ut(t);if(s!==ut(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(i=t.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!at(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!at(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===t)return r[c]===e;c-=1}switch(s){case"Map":return t.size===e.size&&lt(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&lt(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=C(t);if(a.length!==C(e).length)return!1;var u=n.concat([t]),l=r.concat([e]);for(c=a.length-1;c>=0;){var f=a[c];if(!N(f,e)||!ft(e[f],t[f],u,l))return!1;c-=1}return!0}const pt=a((function(t,e){return ft(t,e,[],[])}));function dt(t,e){return function(t,e,n){var r,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(i=t[n])&&1/i===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(i=t[n])&&i!=i)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(pt(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function yt(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var gt=function(t){return(t<10?"0":"")+t};const ht="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+gt(t.getUTCMonth()+1)+"-"+gt(t.getUTCDate())+"T"+gt(t.getUTCHours())+":"+gt(t.getUTCMinutes())+":"+gt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var mt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=f.init,t.prototype["@@transducer/result"]=f.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();const vt=a(l(["fantasy-land/filter","filter"],a((function(t,e){return new mt(t,e)})),(function(t,e){return n=e,"[object Object]"===Object.prototype.toString.call(n)?j((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},C(e)):function(t,e){for(var n=0,r=e.length,i=[];n<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}(t,e);var n})));const bt=a((function(t,e){return vt((n=t,function(){return!n.apply(this,arguments)}),e);var n}));function St(t,e){var n=function(n){var r=e.concat([t]);return dt(n,r)?"<Circular>":St(n,r)},r=function(t,e){return p((function(e){return yt(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+p(n,t).join(", ")+"))";case"[object Array]":return"["+p(n,t).concat(r(t,bt((function(t){return/^\d+$/.test(t)}),C(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):yt(ht(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":yt(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var i=t.toString();if("[object Object]"!==i)return i}return"{"+r(t,C(t)).join(", ")+"}"}}const Ot=c((function(t){return St(t,[])}));const jt=a((function(t,e){if(u(t)){if(u(e))return t.concat(e);throw new TypeError(Ot(e)+" is not an array")}if(d(t)){if(d(e))return t+e;throw new TypeError(Ot(e)+" is not a string")}if(null!=t&&z(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&z(t.concat))return t.concat(e);throw new TypeError(Ot(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const wt=a((function(t,e){return E(R(L,0,U("length",e)),(function(){var n=arguments,r=this;return t.apply(r,p((function(t){return t.apply(r,n)}),e))}))}));const At=c((function(t){return E(t.length,t)}));var xt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=f.init,t.prototype["@@transducer/result"]=f.result,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();const Et=a(l(["dropWhile"],a((function(t,e){return new xt(t,e)})),(function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return et(n,1/0,e)})));const Nt=c((function(t){return E(t.length,(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)}))}));const Pt=a((function(t,e){return t>e}));const Tt=Y(0);const Mt=a(at);function kt(t){return t}const Ft=c(kt);const Dt=a(dt);const Ct="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,r=arguments.length;n<r;){var i=arguments[n];if(null!=i)for(var o in i)N(o,i)&&(e[o]=i[o]);n+=1}return e};const qt=a((function(t,e){return E(t+1,(function(){var n=arguments[t];if(null!=n&&z(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Ot(n)+' does not have a method named "'+e+'"')}))}));const Jt=qt(1,"join");const Yt=a((function(t,e){return t.map((function(t){for(var n,r=e,i=0;i<t.length;){if(null==r)return;n=t[i],r=J(n)?Y(n,r):r[n],i+=1}return r}))}));const It=a((function(t,e){return Yt([t],e)[0]}));const Ut=a((function(t,e){return Ct({},t,e)}));const _t=a((function(t,e){return null==e||e!=e?t:e}));const Rt=_((function(t,e,n){return _t(t,It(e,n))}));const $t=_((function(t,e,n){return n.replace(t,e)}));const Lt=qt(1,"split");const Gt=E(4,(function(t,e,n,r){return j(t("function"==typeof e?h(e):e),n,r)}));var Vt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Bt=c("function"==typeof String.prototype.trim&&!Vt.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+Vt+"]["+Vt+"]*"),n=new RegExp("["+Vt+"]["+Vt+"]*$");return t.replace(e,"").replace(n,"")});const zt=e()(o,{statics:{type:"document"},methods:{get child(){return Tt(this.children)}}}),Kt=(t,e)=>e?.type===t,Qt=Kt.bind(void 0,"literal"),Ht=Kt.bind(void 0,"position"),Wt=Kt.bind(void 0,"point"),Xt=Kt.bind(void 0,"parseResult"),Zt=Kt.bind(void 0,"document"),te=Kt.bind(void 0,"string"),ee=Kt.bind(void 0,"false"),ne=Kt.bind(void 0,"true"),re=Kt.bind(void 0,"null"),ie=Kt.bind(void 0,"number"),oe=Kt.bind(void 0,"array"),se=Kt.bind(void 0,"object"),ce=Kt.bind(void 0,"stringContent"),ae=Kt.bind(void 0,"escapeSequence"),ue=Kt.bind(void 0,"property"),le=Kt.bind(void 0,"key"),fe=e()(o,{statics:{type:"object"},methods:{get properties(){return this.children.filter(ue)}}}),pe=e()(o,{statics:{type:"property"},methods:{get key(){return this.children.find(le)},get value(){return this.children.find((t=>ee(t)||ne(t)||re(t)||ie(t)||te(t)||oe(t)||se(t)))}}}),de=e()(o,{statics:{type:"array"},methods:{get items(){return this.children.filter((t=>ee(t)||ne(t)||re(t)||ie(t)||te(t)||oe(t)||se))}}}),ye=e()(o,{statics:{type:"value"},props:{value:null},init(){let{value:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=t}}),ge=e()(o,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((t=>ce(t)||ae(t))).reduce(((t,e)=>t+e.value),"")}}}),he=e()(ge,{statics:{type:"key"}}),me=e()(ye,{statics:{type:"stringContent"}}),ve=e()(ye,{statics:{type:"escapeSequence"}}),be=e()(ye,{statics:{type:"number"}}),Se=e()(ye,{statics:{type:"true"}}),Oe=e()(ye,{statics:{type:"false"}}),je=e()(ye,{statics:{type:"null"}}),we=e()(i,{statics:{type:"alias"},props:{content:null},init(){let{content:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.content=t}}),Ae=e()(i,{props:{anchor:null,tag:null,style:null,styleGroup:null},init(){let{anchor:t=null,tag:e=null,style:n=null,styleGroup:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.anchor=t,this.tag=e,this.style=n,this.styleGroup=r}}),xe=e()(Ae,{}),Ee=e()(i,{statics:{type:"comment"},props:{content:null},init(){let{content:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.content=t}}),Ne=e()(i,{statics:{type:"directive"},props:{name:null,parameters:null},init(){let{name:t=null,parameters:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=t,this.parameters=Ut({version:null,handle:null,prefix:null},e)}}),Pe=e()(i,{statics:{type:"document"}});let Te,Me;!function(t){t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine"}(Te||(Te={})),function(t){t.Flow="Flow",t.Block="Block"}(Me||(Me={}));const ke=e()({props:{styleGroup:null,style:null}}),Fe=Kt.bind(void 0,"stream"),De=Kt.bind(void 0,"document"),Ce=Kt.bind(void 0,"mapping"),qe=Kt.bind(void 0,"sequence"),Je=Kt.bind(void 0,"keyValuePair"),Ye=Kt.bind(void 0,"tag"),Ie=Kt.bind(void 0,"scalar"),Ue=Kt.bind(void 0,"alias"),_e=Kt.bind(void 0,"directive"),Re=Kt.bind(void 0,"comment"),$e=e()(i,ke,{statics:{type:"keyValuePair"},propertyDescriptors:{key:{get(){return this.children.filter((t=>Ie(t)||Ce(t)||qe(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>Ie(t)||Ce(t)||qe(t)||Ue(t))(e)))[0]},enumerable:!0}}}),Le=e()(xe,{statics:{type:"mapping"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter(Je):[]},enumerable:!0}}}),Ge=e()(Ae,{statics:{type:"scalar"},props:{content:""},init(){let{content:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.content=t}}),Ve=e()(xe,{statics:{type:"sequence"},propertyDescriptors:{content:{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>qe(t)||Ce(t)||Ie(t)||Ue(t))):[]},enumerable:!0}}}),Be=e()(i,{statics:{type:"stream"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter((t=>De(t)||Re(t))):[]},enumerable:!0}}});let ze;!function(t){t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping"}(ze||(ze={}));const Ke=e()(i,{statics:{type:"tag"},props:{explicitName:"",kind:null},init(){let{explicitName:t,kind:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.explicitName=t,this.kind=e}}),Qe=e()(i,{statics:{type:"anchor"},props:{name:null},init(){let{name:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=t}});const He=pt("");const We=E(1,rt(ut,Mt("GeneratorFunction")));const Xe=E(1,rt(ut,Mt("AsyncFunction")));const Ze=G([rt(ut,Mt("Function")),We,Xe]);const tn=E(1,rt(ut,Mt("Number")));var en=W(tn,isFinite);var nn=E(1,en);const rn=Ze(Number.isFinite)?E(1,v(Number.isFinite,Number)):nn;var on=W(rn,wt(pt,[Math.floor,Ft]));var sn=E(1,on);const cn=Ze(Number.isInteger)?E(1,v(Number.isInteger,Number)):sn;const an=X(rn);const un=E(1,W(tn,Pt(0)));const ln=function(t,e){var n=Number(e);if(n!==e&&(n=0),un(n))throw new RangeError("repeat count must be non-negative");if(an(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===t.length||0===n)return"";if(t.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=t.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var i=t;n;)i+=t,n-=1;return i+=i.substring(0,r-i.length)};var fn=At(ln),pn=Nt(qt(1,"repeat"));const dn=Ze(String.prototype.repeat)?pn:fn;var yn=$(void 0);const gn=pt(yn());var hn=$t(/[\s\uFEFF\xA0]+$/,""),mn=qt(0,"trimEnd");const vn=Ze(String.prototype.trimEnd)?mn:hn;var bn=$t(/^[\s\uFEFF\xA0]+/,""),Sn=qt(0,"trimStart");const On=Ze(String.prototype.trimStart)?Sn:bn;const jn=Nt(Dt);const wn=At((function(t,e){return rt(Lt(""),Et(jn(t)),Jt(""))(e)}));const An=Nt(jt);var xn=n(770);const En=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Nn=t=>{const e=(t=>{const e=t.match(En),n=Rt("",["groups","indentation"],e);return He(n)?void 0:parseInt(n,10)})(t);if(cn(e))return dn(" ",e);const n=Rt("",[1],t.split("\n")),r=Rt(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return dn(" ",r)},Pn=t=>{const e=t.match(En),n=Rt("",["groups","chomping"],e);return He(n)?void 0:n},Tn=(t,e)=>gn(t)?`${vn(e)}\n`:"-"===t?vn(e):e,Mn=t=>t.replace(/\r\n/g,"\n"),kn=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,n)=>e?t:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Fn=At(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),Dn=rt(Mn,Bt,kn,Lt("\n"),q(On),Jt("\n")),Cn=rt(Mn,Bt,Fn("'"),kn,Lt("\n"),q(On),Jt("\n")),qn=rt(Mn,Bt,Fn('"'),(t=>t.replace(/\\\n\s*/g,"")),kn,xn.S6,Lt("\n"),q(On),Jt("\n")),Jn=e()({methods:{test:t=>t.tag.kind===ze.Scalar&&"string"==typeof t.content,canonicalFormat(t){let e=t.content;const n=t.clone();return t.style===Te.Plain?e=Dn(t.content):t.style===Te.SingleQuoted?e=Cn(t.content):t.style===Te.DoubleQuoted?e=qn(t.content):t.style===Te.Literal?e=(t=>{const e=Nn(t),n=Pn(t),r=Mn(t),i=nt(r.split("\n")),o=ot(q(wn(e)),q(An("\n"))),s=Gt(o,jt,"",i);return Tn(n,s)})(t.content):t.style===Te.Folded&&(e=(t=>{const e=Nn(t),n=Pn(t),r=Mn(t),i=nt(r.split("\n")),o=ot(q(wn(e)),q(An("\n"))),s=Gt(o,jt,"",i),c=kn(s);return Tn(n,c)})(t.content)),n.content=e,n},resolve:t=>t}}),Yn=e()(Jn,{props:{tag:""}}),In=e()(Yn,{statics:{uri:"tag:yaml.org,2002:map"},init(t,e){let{stamp:n}=e;this.tag=n.uri},methods:{test:t=>t.tag.kind===ze.Mapping,resolve:t=>t}}),Un=e()(Yn,{statics:{uri:"tag:yaml.org,2002:seq"},init(t,e){let{stamp:n}=e;this.tag=n.uri},methods:{test:t=>t.tag.kind===ze.Sequence,resolve:t=>t}}),_n=e()(Yn,{statics:{uri:"tag:yaml.org,2002:str"},init(t,e){let{stamp:n}=e;this.tag=n.uri},methods:{resolve:t=>t}}),Rn=e()({props:{tags:[],tagDirectives:[]},init(){this.tags=[],this.tagDirectives=[],this.registerTag(In()),this.registerTag(Un()),this.registerTag(_n())},methods:{toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===ze.Scalar?e=_n.uri:t.tag.kind===ze.Sequence?e=Un.uri:t.tag.kind===ze.Mapping&&(e=In.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e},registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})},registerTag(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.tags.unshift(t):this.tags.push(t),this},overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this},resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let n=t;t.tag.kind===ze.Scalar&&(n=Jn().canonicalFormat(t));const r=this.tags.find((t=>t?.tag===e));if(void 0===r)throw new Error(`Tag "${e}" couldn't be resolved`);if(!r.test(n))throw new Error(`Node couldn't be resolved against tag "${e}"`);return r.resolve(n)}}}),$n=e()(Yn,{statics:{uri:"tag:yaml.org,2002:bool"},init(t,e){let{stamp:n}=e;this.tag=n.uri},methods:{test:t=>/^(true|false)$/.test(t.content),resolve(t){const e="true"===t.content,n=t.clone();return n.content=e,n}}}),Ln=e()(Yn,{statics:{uri:"tag:yaml.org,2002:float"},init(t,e){let{stamp:n}=e;this.tag=n.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content),resolve(t){const e=parseFloat(t.content),n=t.clone();return n.content=e,n}}}),Gn=e()(Yn,{statics:{uri:"tag:yaml.org,2002:int"},init(t,e){let{stamp:n}=e;this.tag=n.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)$/.test(t.content),resolve(t){const e=parseInt(t.content,10),n=t.clone();return n.content=e,n}}}),Vn=e()(Yn,{statics:{uri:"tag:yaml.org,2002:null"},init(t,e){let{stamp:n}=e;this.tag=n.uri},methods:{test:t=>/^null$/.test(t.content),resolve(t){const e=t.clone();return e.content=null,e}}}),Bn=e()(Rn,{init(){this.registerTag($n(),!0),this.registerTag(Ln(),!0),this.registerTag(Gn(),!0),this.registerTag(Vn(),!0)},methods:{toSpecificTagName(t){let e=Rn.compose.methods.toSpecificTagName.call(this,t);if("?"===e)if(t.tag.vkind===ze.Sequence)e=Un.uri;else if(t.tag.kind===ze.Mapping)e=In.uri;else if(t.tag.kind===ze.Scalar){const n=this.tags.find((e=>e.test(t)));e=n?.tag||"?"}return e}}}),zn=e()(i,{statics:{type:"literal"},props:{value:null},init(){let{value:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=t}}),Kn=e()({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init(){let{row:t=null,column:e=null,char:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.row=t,this.column=e,this.char=n}}),Qn=e()({statics:{type:"position"},props:{type:"position",start:null,end:null},init(){let{start:t=null,end:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.start=t,this.end=e}}),Hn=e()(i,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init(){let{value:t=null,isUnexpected:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=t,this.isUnexpected=e}}),Wn=e()(i,{statics:{type:"parseResult"},methods:{get rootNode(){return Tt(this.children)}}}),Xn=(t,e,n)=>{const r=t[e];if(null!=r){if(!n&&"function"==typeof r)return r;const t=n?r.leave:r.enter;if("function"==typeof t)return t}else{const r=n?t.leave:t.enter;if(null!=r){if("function"==typeof r)return r;const t=r[e];if("function"==typeof t)return t}}return null},Zn={},tr=t=>t?.type,er=t=>"string"==typeof tr(t),nr=function(t){let{visitFnGetter:e=Xn,nodeTypeGetter:n=tr}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new Array(t.length);return{enter(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];for(let o=0;o<t.length;o+=1)if(null==r[o]){const c=e(t[o],n(i),!1);if("function"==typeof c){const e=c.call(t[o],i,...s);if(!1===e)r[o]=i;else if(e===Zn)r[o]=Zn;else if(void 0!==e)return e}}},leave(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];for(let o=0;o<t.length;o+=1)if(null==r[o]){const c=e(t[o],n(i),!0);if("function"==typeof c){const e=c.call(t[o],i,...s);if(e===Zn)r[o]=Zn;else if(void 0!==e&&!1!==e)return e}}else r[o]===i&&(r[o]=null)}}},rr=function(t,e){let{keyMap:n=null,state:r={},breakSymbol:i=Zn,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=Xn,nodeTypeGetter:a=tr,nodePredicate:u=er,detectCycles:l=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const f=n||{};let p,d,y=Array.isArray(t),g=[t],h=-1,m=[];const v=[],b=[];let S=t;do{h+=1;const t=h===g.length;let n,O;const j=t&&0!==m.length;if(t){if(n=0===b.length?void 0:v.pop(),O=d,d=b.pop(),j){O=y?O.slice():Object.create(Object.getPrototypeOf(O),Object.getOwnPropertyDescriptors(O));let t=0;for(let e=0;e<m.length;e+=1){let n=m[e][0];const r=m[e][1];y&&(n-=t),y&&r===o?(O.splice(n,1),t+=1):O[n]=r}}h=p.index,g=p.keys,m=p.edits,y=p.inArray,p=p.prev}else{if(n=d?y?h:g[h]:void 0,O=d?d[n]:S,O===o||void 0===O)continue;d&&v.push(n)}if(b.includes(O))continue;let w;if(!Array.isArray(O)){if(!u(O))throw new Error(`Invalid AST Node: ${JSON.stringify(O)}`);if(l&&b.includes(O)){v.pop();continue}const o=c(e,a(O),t);if(o){for(const[t,n]of Object.entries(r))e[t]=n;if(w=o.call(e,O,n,d,v,b),w===i)break;if(w===s){if(!t){v.pop();continue}}else if(void 0!==w&&(m.push([n,w]),!t)){if(!u(w)){v.pop();continue}O=w}}}void 0===w&&j&&m.push([n,O]),t||(p={inArray:y,index:h,keys:g,edits:m,prev:p},y=Array.isArray(O),g=y?O:f[a(O)]||[],h=-1,m=[],d&&b.push(d),d=O)}while(void 0!==p);return 0!==m.length&&([,S]=m[m.length-1]),S};rr[Symbol.for("nodejs.util.promisify.custom")]=async function(t,e){let{keyMap:n=null,state:r={},breakSymbol:i=Zn,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=Xn,nodeTypeGetter:a=tr,nodePredicate:u=er,detectCycles:l=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const f=n||{};let p,d,y=Array.isArray(t),g=[t],h=-1,m=[];const v=[],b=[];let S=t;do{h+=1;const t=h===g.length;let n,O;const j=t&&0!==m.length;if(t){if(n=0===b.length?void 0:v.pop(),O=d,d=b.pop(),j){O=y?O.slice():Object.create(Object.getPrototypeOf(O),Object.getOwnPropertyDescriptors(O));let t=0;for(let e=0;e<m.length;e+=1){let n=m[e][0];const r=m[e][1];y&&(n-=t),y&&r===o?(O.splice(n,1),t+=1):O[n]=r}}h=p.index,g=p.keys,m=p.edits,y=p.inArray,p=p.prev}else{if(n=d?y?h:g[h]:void 0,O=d?d[n]:S,O===o||void 0===O)continue;d&&v.push(n)}let w;if(!Array.isArray(O)){if(!u(O))throw new Error(`Invalid AST Node: ${JSON.stringify(O)}`);if(l&&b.includes(O)){v.pop();continue}const o=c(e,a(O),t);if(o){for(const[t,n]of Object.entries(r))e[t]=n;if(w=await o.call(e,O,n,d,v,b),w===i)break;if(w===s){if(!t){v.pop();continue}}else if(void 0!==w&&(m.push([n,w]),!t)){if(!u(w)){v.pop();continue}O=w}}}void 0===w&&j&&m.push([n,O]),t||(p={inArray:y,index:h,keys:g,edits:m,prev:p},y=Array.isArray(O),g=y?O:f[a(O)]||[],h=-1,m=[],d&&b.push(d),d=O)}while(void 0!==p);return 0!==m.length&&([,S]=m[m.length-1]),S}})(),r})()));
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file **unraw - errors.ts** | Error messages used by `unraw`.
3
+ * @author Ian Sanders
4
+ * @copyright 2019 Ian Sanders
5
+ * @license MIT
6
+ */
package/es/Error.js ADDED
@@ -0,0 +1,19 @@
1
+ import stampit from 'stampit';
2
+ import Node from "./Node.js";
3
+ const Error = stampit(Node, {
4
+ statics: {
5
+ type: 'error'
6
+ },
7
+ props: {
8
+ value: null,
9
+ isUnexpected: false
10
+ },
11
+ init({
12
+ value = null,
13
+ isUnexpected = false
14
+ } = {}) {
15
+ this.value = value;
16
+ this.isUnexpected = isUnexpected;
17
+ }
18
+ });
19
+ export default Error;
package/es/Literal.js ADDED
@@ -0,0 +1,16 @@
1
+ import stampit from 'stampit';
2
+ import Node from "./Node.js";
3
+ const Literal = stampit(Node, {
4
+ statics: {
5
+ type: 'literal'
6
+ },
7
+ props: {
8
+ value: null
9
+ },
10
+ init({
11
+ value = null
12
+ } = {}) {
13
+ this.value = value;
14
+ }
15
+ });
16
+ export default Literal;
package/es/Node.js ADDED
@@ -0,0 +1,40 @@
1
+ import stampit from 'stampit';
2
+ const Node = stampit({
3
+ props: {
4
+ type: null,
5
+ position: null,
6
+ children: []
7
+ },
8
+ // eslint-disable-next-line @typescript-eslint/default-param-last
9
+ init({
10
+ children = [],
11
+ position = null,
12
+ isMissing = false
13
+ } = {}, {
14
+ stamp = {}
15
+ }) {
16
+ this.type = stamp.type;
17
+ this.isMissing = isMissing;
18
+ this.children = children;
19
+ this.position = position;
20
+ },
21
+ methods: {
22
+ // creates shallow clone of node
23
+ clone() {
24
+ // 1. copy has same prototype as orig
25
+ const copy = Object.create(Object.getPrototypeOf(this));
26
+
27
+ // 2. copy has all of orig’s properties
28
+ Object.getOwnPropertyNames(this) // (1)
29
+ .forEach(propKey => {
30
+ // (2)
31
+ const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
32
+ // @ts-ignore
33
+ Object.defineProperty(copy, propKey, descriptor); // (4)
34
+ });
35
+
36
+ return copy;
37
+ }
38
+ }
39
+ });
40
+ export default Node;
@@ -0,0 +1,16 @@
1
+ import stampit from 'stampit';
2
+ import { head } from 'ramda';
3
+ import Node from "./Node.js";
4
+ const ParseResult = stampit(Node, {
5
+ statics: {
6
+ type: 'parseResult'
7
+ },
8
+ methods: {
9
+ // @ts-ignore
10
+ get rootNode() {
11
+ // @ts-ignore
12
+ return head(this.children);
13
+ }
14
+ }
15
+ });
16
+ export default ParseResult;
package/es/Position.js ADDED
@@ -0,0 +1,39 @@
1
+ import stampit from 'stampit';
2
+ export const Point = stampit({
3
+ statics: {
4
+ type: 'point'
5
+ },
6
+ props: {
7
+ type: 'point',
8
+ row: null,
9
+ column: null,
10
+ char: null
11
+ },
12
+ init({
13
+ row = null,
14
+ column = null,
15
+ char = null
16
+ } = {}) {
17
+ this.row = row;
18
+ this.column = column;
19
+ this.char = char;
20
+ }
21
+ });
22
+ const Position = stampit({
23
+ statics: {
24
+ type: 'position'
25
+ },
26
+ props: {
27
+ type: 'position',
28
+ start: null,
29
+ end: null
30
+ },
31
+ init({
32
+ start = null,
33
+ end = null
34
+ } = {}) {
35
+ this.start = start;
36
+ this.end = end;
37
+ }
38
+ });
39
+ export default Position;
package/es/index.js ADDED
@@ -0,0 +1,39 @@
1
+ // JSON AST related exports
2
+ export { default as JsonNode } from "./json/nodes/JsonNode.js";
3
+ export { default as JsonDocument } from "./json/nodes/JsonDocument.js";
4
+ export { default as JsonObject } from "./json/nodes/JsonObject.js";
5
+ export { default as JsonProperty } from "./json/nodes/JsonProperty.js";
6
+ export { default as JsonArray } from "./json/nodes/JsonArray.js";
7
+ export { default as JsonValue } from "./json/nodes/JsonValue.js";
8
+ export { default as JsonKey } from "./json/nodes/JsonKey.js";
9
+ export { default as JsonString } from "./json/nodes/JsonString.js";
10
+ export { default as JsonStringContent } from "./json/nodes/JsonStringContent.js";
11
+ export { default as JsonEscapeSequence } from "./json/nodes/JsonEscapeSequence.js";
12
+ export { default as JsonNumber } from "./json/nodes/JsonNumber.js";
13
+ export { default as JsonTrue } from "./json/nodes/JsonTrue.js";
14
+ export { default as JsonFalse } from "./json/nodes/JsonFalse.js";
15
+ export { default as JsonNull } from "./json/nodes/JsonNull.js";
16
+ export { isDocument as isJsonDocument, isFalse as isJsonFalse, isProperty as isJsonProperty, isStringContent as isJsonStringContent, isEscapeSequence as isJsonEscapeSequence, isArray as isJsonArray, isKey as isJsonKey, isNull as isJsonNull, isNumber as isJsonNumber, isObject as isJsonObject, isString as isJsonString, isTrue as isJsonTrue } from "./json/nodes/predicates.js"; // YAML AST related exports
17
+ export { default as YamlAlias } from "./yaml/nodes/YamlAlias.js";
18
+ export { default as YamlCollection } from "./yaml/nodes/YamlCollection.js";
19
+ export { default as YamlComment } from "./yaml/nodes/YamlComment.js";
20
+ export { default as YamlDirective } from "./yaml/nodes/YamlDirective.js";
21
+ export { default as YamlDocument } from "./yaml/nodes/YamlDocument.js";
22
+ export { default as YamlKeyValuePair } from "./yaml/nodes/YamlKeyValuePair.js";
23
+ export { default as YamlMapping } from "./yaml/nodes/YamlMapping.js";
24
+ export { default as YamlNode } from "./yaml/nodes/YamlNode.js";
25
+ export { default as YamlScalar } from "./yaml/nodes/YamlScalar.js";
26
+ export { default as YamlSequence } from "./yaml/nodes/YamlSequence.js";
27
+ export { default as YamlStream } from "./yaml/nodes/YamlStream.js";
28
+ export { default as YamlTag, YamlNodeKind } from "./yaml/nodes/YamlTag.js";
29
+ export { default as YamlAnchor } from "./yaml/nodes/YamlAnchor.js";
30
+ export { YamlStyle, YamlStyleGroup } from "./yaml/nodes/YamlStyle.js";
31
+ export { default as YamlFailsafeSchema } from "./yaml/schemas/failsafe/index.js";
32
+ export { default as YamlJsonSchema } from "./yaml/schemas/json/index.js";
33
+ export { isAlias as isYamlAlias, isKeyValuePair as isYamlKeyValuePair, isDirective as isYamlDirective, isDocument as isYamlDocument, isMapping as isYamlMapping, isScalar as isYamlScalar, isSequence as isYamlSequence, isStream as isYamlStream, isTag as isYamlTag } from "./yaml/nodes/predicates.js"; // generic AST related exports
34
+ export { default as Literal } from "./Literal.js";
35
+ export { Point, default as Position } from "./Position.js";
36
+ export { default as Error } from "./Error.js";
37
+ export { default as ParseResult } from "./ParseResult.js";
38
+ export { isParseResult, isLiteral, isPoint, isPosition } from "./predicates.js"; // AST traversal related exports
39
+ export { getVisitFn, BREAK, mergeAll as mergeAllVisitors, visit, getNodeType, isNode } from "./traversal/visitor.js";
@@ -0,0 +1,15 @@
1
+ import stampit from 'stampit';
2
+ import JsonNode from "./JsonNode.js";
3
+ import { isFalse, isTrue, isNull, isNumber, isString, isArray, isObject } from "./predicates.js";
4
+ const JsonArray = stampit(JsonNode, {
5
+ statics: {
6
+ type: 'array'
7
+ },
8
+ methods: {
9
+ get items() {
10
+ // @ts-ignore
11
+ return this.children.filter(node => isFalse(node) || isTrue(node) || isNull(node) || isNumber(node) || isString(node) || isArray(node) || isObject);
12
+ }
13
+ }
14
+ });
15
+ export default JsonArray;
@@ -0,0 +1,16 @@
1
+ import stampit from 'stampit';
2
+ import { head } from 'ramda';
3
+ import JsonNode from "./JsonNode.js";
4
+ const JsonDocument = stampit(JsonNode, {
5
+ statics: {
6
+ type: 'document'
7
+ },
8
+ methods: {
9
+ // @ts-ignore
10
+ get child() {
11
+ // @ts-ignore
12
+ return head(this.children);
13
+ }
14
+ }
15
+ });
16
+ export default JsonDocument;
@@ -0,0 +1,8 @@
1
+ import stampit from 'stampit';
2
+ import JsonValue from "./JsonValue.js";
3
+ const JsonEscapeSequence = stampit(JsonValue, {
4
+ statics: {
5
+ type: 'escapeSequence'
6
+ }
7
+ });
8
+ export default JsonEscapeSequence;
@@ -0,0 +1,8 @@
1
+ import stampit from 'stampit';
2
+ import JsonValue from "./JsonValue.js";
3
+ const JsonFalse = stampit(JsonValue, {
4
+ statics: {
5
+ type: 'false'
6
+ }
7
+ });
8
+ export default JsonFalse;
@@ -0,0 +1,8 @@
1
+ import stampit from 'stampit';
2
+ import JsonString from "./JsonString.js";
3
+ const JsonKey = stampit(JsonString, {
4
+ statics: {
5
+ type: 'key'
6
+ }
7
+ });
8
+ export default JsonKey;
@@ -0,0 +1,4 @@
1
+ import stampit from 'stampit';
2
+ import Node from "../../Node.js";
3
+ const JsonNode = stampit(Node);
4
+ export default JsonNode;
@@ -0,0 +1,8 @@
1
+ import stampit from 'stampit';
2
+ import JsonValue from "./JsonValue.js";
3
+ const JsonNull = stampit(JsonValue, {
4
+ statics: {
5
+ type: 'null'
6
+ }
7
+ });
8
+ export default JsonNull;
@@ -0,0 +1,8 @@
1
+ import stampit from 'stampit';
2
+ import JsonValue from "./JsonValue.js";
3
+ const JsonNumber = stampit(JsonValue, {
4
+ statics: {
5
+ type: 'number'
6
+ }
7
+ });
8
+ export default JsonNumber;
@@ -0,0 +1,15 @@
1
+ import stampit from 'stampit';
2
+ import JsonNode from "./JsonNode.js";
3
+ import { isProperty } from "./predicates.js";
4
+ const JsonObject = stampit(JsonNode, {
5
+ statics: {
6
+ type: 'object'
7
+ },
8
+ methods: {
9
+ get properties() {
10
+ // @ts-ignore
11
+ return this.children.filter(isProperty);
12
+ }
13
+ }
14
+ });
15
+ export default JsonObject;
@@ -0,0 +1,21 @@
1
+ import stampit from 'stampit';
2
+ import JsonNode from "./JsonNode.js";
3
+ import { isArray, isFalse, isKey, isNull, isNumber, isObject, isString, isTrue } from "./predicates.js";
4
+ const JsonProperty = stampit(JsonNode, {
5
+ statics: {
6
+ type: 'property'
7
+ },
8
+ methods: {
9
+ // @ts-ignore
10
+ get key() {
11
+ // @ts-ignore
12
+ return this.children.find(isKey);
13
+ },
14
+ // @ts-ignore
15
+ get value() {
16
+ // @ts-ignore
17
+ return this.children.find(node => isFalse(node) || isTrue(node) || isNull(node) || isNumber(node) || isString(node) || isArray(node) || isObject(node));
18
+ }
19
+ }
20
+ });
21
+ export default JsonProperty;
@@ -0,0 +1,21 @@
1
+ import stampit from 'stampit';
2
+ import JsonNode from "./JsonNode.js";
3
+ import { isEscapeSequence, isStringContent } from "./predicates.js";
4
+ const JsonString = stampit(JsonNode, {
5
+ statics: {
6
+ type: 'string'
7
+ },
8
+ methods: {
9
+ get value() {
10
+ // @ts-ignore
11
+ if (this.children.length === 1) {
12
+ // @ts-ignore
13
+ return this.children[0].value;
14
+ }
15
+ return this.children
16
+ // @ts-ignore
17
+ .filter(node => isStringContent(node) || isEscapeSequence(node)).reduce((acc, cur) => acc + cur.value, '');
18
+ }
19
+ }
20
+ });
21
+ export default JsonString;
@@ -0,0 +1,8 @@
1
+ import stampit from 'stampit';
2
+ import JsonValue from "./JsonValue.js";
3
+ const JsonStringContent = stampit(JsonValue, {
4
+ statics: {
5
+ type: 'stringContent'
6
+ }
7
+ });
8
+ export default JsonStringContent;
@@ -0,0 +1,8 @@
1
+ import stampit from 'stampit';
2
+ import JsonValue from "./JsonValue.js";
3
+ const JsonTrue = stampit(JsonValue, {
4
+ statics: {
5
+ type: 'true'
6
+ }
7
+ });
8
+ export default JsonTrue;
@@ -0,0 +1,16 @@
1
+ import stampit from 'stampit';
2
+ import JsonNode from "./JsonNode.js";
3
+ const JsonValue = stampit(JsonNode, {
4
+ statics: {
5
+ type: 'value'
6
+ },
7
+ props: {
8
+ value: null
9
+ },
10
+ init({
11
+ value = null
12
+ } = {}) {
13
+ this.value = value;
14
+ }
15
+ });
16
+ export default JsonValue;
@@ -0,0 +1,13 @@
1
+ import { isNodeType } from "../../predicates.js";
2
+ export const isDocument = isNodeType.bind(undefined, 'document');
3
+ export const isString = isNodeType.bind(undefined, 'string');
4
+ export const isFalse = isNodeType.bind(undefined, 'false');
5
+ export const isTrue = isNodeType.bind(undefined, 'true');
6
+ export const isNull = isNodeType.bind(undefined, 'null');
7
+ export const isNumber = isNodeType.bind(undefined, 'number');
8
+ export const isArray = isNodeType.bind(undefined, 'array');
9
+ export const isObject = isNodeType.bind(undefined, 'object');
10
+ export const isStringContent = isNodeType.bind(undefined, 'stringContent');
11
+ export const isEscapeSequence = isNodeType.bind(undefined, 'escapeSequence');
12
+ export const isProperty = isNodeType.bind(undefined, 'property');
13
+ export const isKey = isNodeType.bind(undefined, 'key');
@@ -0,0 +1,5 @@
1
+ export const isNodeType = (type, node) => (node === null || node === void 0 ? void 0 : node.type) === type;
2
+ export const isLiteral = isNodeType.bind(undefined, 'literal');
3
+ export const isPosition = isNodeType.bind(undefined, 'position');
4
+ export const isPoint = isNodeType.bind(undefined, 'point');
5
+ export const isParseResult = isNodeType.bind(undefined, 'parseResult');