pixel-react 1.20.17 → 1.20.18

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 (115) hide show
  1. package/lib/components/Button/types.d.ts +1 -1
  2. package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js +3 -2
  3. package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js.map +1 -1
  4. package/lib/components/ConnectingBranch/ConnectingBranch.js +6 -5
  5. package/lib/components/ConnectingBranch/ConnectingBranch.js.map +1 -1
  6. package/lib/components/ConnectingBranch/types.d.ts +2 -0
  7. package/lib/components/Drawer/Types.d.ts +3 -3
  8. package/lib/components/Editor/Editor.d.ts +0 -3
  9. package/lib/components/Editor/Editor.js +0 -32
  10. package/lib/components/Editor/Editor.js.map +1 -1
  11. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js +2 -2
  12. package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js.map +1 -1
  13. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +1 -1
  14. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
  15. package/lib/index.d.ts +5 -4
  16. package/lib/index.js +48 -1
  17. package/lib/styles.css +1 -0
  18. package/package.json +1 -1
  19. package/lib/abap-DLDM7-KI.js +0 -1
  20. package/lib/apex-BNdX0WAH.js +0 -1
  21. package/lib/azcli-Y6nb8tq_.js +0 -1
  22. package/lib/bat-BwHxbl9M.js +0 -1
  23. package/lib/bicep-C6ulU1r4.js +0 -1
  24. package/lib/cameligo-Bf6VGUru.js +0 -1
  25. package/lib/clojure-Dnu-v4kV.js +0 -1
  26. package/lib/coffee-CozJ4qrN.js +0 -1
  27. package/lib/cpp-BBo9EYEl.js +0 -1
  28. package/lib/csharp-Co3qMtFm.js +0 -1
  29. package/lib/csp-D-4FJmMZ.js +0 -1
  30. package/lib/css-B3WdvWL3.js +0 -1
  31. package/lib/css.worker.js +0 -1
  32. package/lib/cssMode-buFp11Nm.js +0 -1
  33. package/lib/cypher-Xe3m_mFX.js +0 -1
  34. package/lib/dart-BqPeQaEN.js +0 -1
  35. package/lib/dockerfile-BG73LgW2.js +0 -1
  36. package/lib/ecl-BEgZUVRK.js +0 -1
  37. package/lib/editor.worker.js +0 -1
  38. package/lib/editorWorkerHost-CvlBJcBX.js +0 -1
  39. package/lib/elixir-BkW5O-1t.js +0 -1
  40. package/lib/flow9-BeJ5waoc.js +0 -1
  41. package/lib/freemarker2-Cw3CeKkn.js +0 -1
  42. package/lib/fsharp-PahG7c26.js +0 -1
  43. package/lib/go-acbASCJo.js +0 -1
  44. package/lib/graphql-BxJiqAUM.js +0 -1
  45. package/lib/handlebars-CKPGQ_CV.js +0 -1
  46. package/lib/hcl-DtV1sZF8.js +0 -1
  47. package/lib/html-DFnGMfjA.js +0 -1
  48. package/lib/html.worker.js +0 -1
  49. package/lib/htmlMode-BBPMlu2n.js +0 -1
  50. package/lib/index-CYtUYanB.js +0 -31
  51. package/lib/index-u8dzJtLi.js +0 -1
  52. package/lib/ini-Kd9XrMLS.js +0 -1
  53. package/lib/initialize-BnJ699yk.js +0 -1
  54. package/lib/java-CXBNlu9o.js +0 -1
  55. package/lib/javascript-DSQUzrye.js +0 -1
  56. package/lib/json.worker.js +0 -1
  57. package/lib/jsonMode-CHW0RLsW.js +0 -1
  58. package/lib/julia-cl7-CwDS.js +0 -1
  59. package/lib/kotlin-s7OhZKlX.js +0 -1
  60. package/lib/less-BnJUVY2t.js +0 -1
  61. package/lib/lexon-OrD6JF1K.js +0 -1
  62. package/lib/liquid-Cx4QDSDc.js +0 -1
  63. package/lib/lspLanguageFeatures-Ct9P2u7j.js +0 -1
  64. package/lib/lua-Cyyb5UIc.js +0 -1
  65. package/lib/m3-LY51E2VB.js +0 -1
  66. package/lib/main-B28dfOH0.js +0 -1
  67. package/lib/main-DlX1vOF-.js +0 -1
  68. package/lib/markdown-B2IVEJkz.js +0 -1
  69. package/lib/mdx-QQot1D8Q.js +0 -1
  70. package/lib/mips-CiqrrVzr.js +0 -1
  71. package/lib/msdax-DmeGPVcC.js +0 -1
  72. package/lib/mysql-C_tMU-Nz.js +0 -1
  73. package/lib/objective-c-DBm-qgi-.js +0 -1
  74. package/lib/pascal-vHIfCaH5.js +0 -1
  75. package/lib/pascaligo-DtZ0uQbO.js +0 -1
  76. package/lib/perl-Ub6l9XKa.js +0 -1
  77. package/lib/pgsql-BlNEE0v7.js +0 -1
  78. package/lib/php-BBUBE1dy.js +0 -1
  79. package/lib/pla-DSh2-awV.js +0 -1
  80. package/lib/postiats-CocnycG-.js +0 -1
  81. package/lib/powerquery-tScXyioY.js +0 -1
  82. package/lib/powershell-COWaemsV.js +0 -1
  83. package/lib/protobuf-CNF4Uy2b.js +0 -1
  84. package/lib/pug-8SOpv6rk.js +0 -1
  85. package/lib/python-Bpyc1xz5.js +0 -1
  86. package/lib/qsharp-Bw9ernYp.js +0 -1
  87. package/lib/r-j7ic8hl3.js +0 -1
  88. package/lib/razor-CQG6WmAq.js +0 -1
  89. package/lib/redis-Bu5POkcn.js +0 -1
  90. package/lib/redshift-Bs9aos_-.js +0 -1
  91. package/lib/restructuredtext-CdmJ0L9T.js +0 -1
  92. package/lib/ruby-DekwO-k2.js +0 -1
  93. package/lib/rust-BzKRNQWT.js +0 -1
  94. package/lib/sb-BBc9UKZt.js +0 -1
  95. package/lib/scala-D9hQfWCl.js +0 -1
  96. package/lib/scheme-BPhDTwHR.js +0 -1
  97. package/lib/scss-CYJiWjYa.js +0 -1
  98. package/lib/shell-DiJ1NA_G.js +0 -1
  99. package/lib/solidity-Db0IVjzk.js +0 -1
  100. package/lib/sophia-CnS9iZB_.js +0 -1
  101. package/lib/sparql-CJmd_6j2.js +0 -1
  102. package/lib/sql-ClhHkBeG.js +0 -1
  103. package/lib/st-CHwy0fLd.js +0 -1
  104. package/lib/swift-CEacdKTa.js +0 -4
  105. package/lib/systemverilog-Bs9z6M-B.js +0 -1
  106. package/lib/tcl-Dm6ycUr_.js +0 -1
  107. package/lib/ts.worker.js +0 -20
  108. package/lib/tsMode-CUUCQ8-B.js +0 -1
  109. package/lib/twig-CU7587ZD.js +0 -1
  110. package/lib/typescript-MQYA4fhe.js +0 -1
  111. package/lib/typespec-Dhh-p9HY.js +0 -1
  112. package/lib/vb-Db0cS2oM.js +0 -1
  113. package/lib/wgsl-CGLQCrIz.js +0 -1
  114. package/lib/xml-BEFnC3MB.js +0 -1
  115. package/lib/yaml-CD7NFOWN.js +0 -1
@@ -1 +0,0 @@
1
- class t{constructor(t,e,r,n){this._uri=t,this._languageId=e,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const e=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(e,r)}return this._content}update(e,r){for(let r of e)if(t.isIncremental(r)){const t=i(r.range),e=this.offsetAt(t.start),s=this.offsetAt(t.end);this._content=this._content.substring(0,e)+r.text+this._content.substring(s,this._content.length);const o=Math.max(t.start.line,0),h=Math.max(t.end.line,0);let a=this._lineOffsets;const c=n(r.text,!1,e);if(h-o===c.length)for(let t=0,e=c.length;t<e;t++)a[t+o+1]=c[t];else c.length<1e4?a.splice(o+1,h-o,...c):this._lineOffsets=a=a.slice(0,o+1).concat(c,a.slice(h+1));const l=r.text.length-(s-e);if(0!==l)for(let t=o+1+c.length,e=a.length;t<e;t++)a[t]=a[t]+l}else{if(!t.isFull(r))throw new Error("Unknown change event received");this._content=r.text,this._lineOffsets=void 0}this._version=r}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=n(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let e=this.getLineOffsets(),r=0,n=e.length;if(0===n)return{line:0,character:t};for(;r<n;){let i=Math.floor((r+n)/2);e[i]>t?n=i:r=i+1}let i=r-1;return{line:i,character:t-e[i]}}offsetAt(t){let e=this.getLineOffsets();if(t.line>=e.length)return this._content.length;if(t.line<0)return 0;let r=e[t.line],n=t.line+1<e.length?e[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,n),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let e=t;return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)}static isFull(t){let e=t;return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength}}var e;function r(t,e){if(t.length<=1)return t;const n=t.length/2|0,i=t.slice(0,n),s=t.slice(n);r(i,e),r(s,e);let o=0,h=0,a=0;for(;o<i.length&&h<s.length;){let r=e(i[o],s[h]);t[a++]=r<=0?i[o++]:s[h++]}for(;o<i.length;)t[a++]=i[o++];for(;h<s.length;)t[a++]=s[h++];return t}function n(t,e,r=0){const n=e?[r]:[];for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);13!==i&&10!==i||(13===i&&e+1<t.length&&10===t.charCodeAt(e+1)&&e++,n.push(r+e+1))}return n}function i(t){const e=t.start,r=t.end;return e.line>r.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}function s(t){const e=i(t.range);return e!==t.range?{newText:t.newText,range:e}:t}function o(...t){const e=t[0];let r,n,i;if("string"==typeof e)r=e,n=e,t.splice(0,1),i=t&&"object"==typeof t[0]?t[0]:t;else{if(e instanceof Array){const r=t.slice(1);if(e.length!==r.length+1)throw new Error("expected a string as the first argument to l10n.t");let n=e[0];for(let t=1;t<e.length;t++)n+=`{${t-1}}`+e[t];return o(n,...r)}n=e.message,r=n,e.comment&&e.comment.length>0&&(r+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),i=e.args??{}}return function(t,e){if(0===Object.keys(e).length)return t;return t.replace(a,(t,r)=>e[r]??t)}(n,i)}!function(e){e.create=function(e,r,n,i){return new t(e,r,n,i)},e.update=function(e,r,n){if(e instanceof t)return e.update(r,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(t,e){let n=t.getText(),i=r(e.map(s),(t,e)=>{let r=t.range.start.line-e.range.start.line;return 0===r?t.range.start.character-e.range.start.character:r}),o=0;const h=[];for(const e of i){let r=t.offsetAt(e.range.start);if(r<o)throw new Error("Overlapping edit");r>o&&h.push(n.substring(o,r)),e.newText.length&&h.push(e.newText),o=t.offsetAt(e.range.end)}return h.push(n.substr(o)),h.join("")}}(e||(e={}));var h,a=/{([^}]+)}/g;(()=>{var t={470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",i=0,s=-1,o=0,h=0;h<=t.length;++h){if(h<t.length)r=t.charCodeAt(h);else{if(47===r)break;r=47}if(47===r){if(s===h-1||1===o);else if(s!==h-1&&2===o){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var a=n.lastIndexOf("/");if(a!==n.length-1){-1===a?(n="",i=0):i=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),s=h,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,s=h,o=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(s+1,h):n=t.slice(s+1,h),i=h-s-1;s=h,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var n={resolve:function(){for(var t,n="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===t&&(t=process.cwd()),o=t),e(o),0!==o.length&&(n=o+"/"+n,i=47===o.charCodeAt(0))}return n=r(n,!i),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return".";var n=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&i&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r<arguments.length;++r){var i=arguments[r];e(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return"";if((t=n.resolve(t))===(r=n.resolve(r)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var s=t.length,o=s-i,h=1;h<r.length&&47===r.charCodeAt(h);++h);for(var a=r.length-h,c=o<a?o:a,l=-1,f=0;f<=c;++f){if(f===c){if(a>c){if(47===r.charCodeAt(h+f))return r.slice(h+f+1);if(0===f)return r.slice(h+f)}else o>c&&(47===t.charCodeAt(i+f)?l=f:0===f&&(l=0));break}var u=t.charCodeAt(i+f);if(u!==r.charCodeAt(h+f))break;47===u&&(l=f)}var g="";for(f=i+l+1;f<=s;++f)f!==s&&47!==t.charCodeAt(f)||(0===g.length?g+="..":g+="/..");return g.length>0?g+r.slice(h+l):(h+=l,47===r.charCodeAt(h)&&++h,r.slice(h))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var r=t.charCodeAt(0),n=47===r,i=-1,s=!0,o=t.length-1;o>=1;--o)if(47===(r=t.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,i=0,s=-1,o=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var h=r.length-1,a=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),h>=0&&(c===r.charCodeAt(h)?-1==--h&&(s=n):(h=-1,s=a))}return i===s?s=a:-1===s&&(s=t.length),t.slice(i,s)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1);return-1===s?"":t.slice(i,s)},extname:function(t){e(t);for(var r=-1,n=0,i=-1,s=!0,o=0,h=t.length-1;h>=0;--h){var a=t.charCodeAt(h);if(47!==a)-1===i&&(s=!1,i=h+1),46===a?-1===r?r=h:1!==o&&(o=1):-1!==r&&(o=-1);else if(!s){n=h+1;break}}return-1===r||-1===i||0===o||1===o&&r===i-1&&r===n+1?"":t.slice(r,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,i=t.charCodeAt(0),s=47===i;s?(r.root="/",n=1):n=0;for(var o=-1,h=0,a=-1,c=!0,l=t.length-1,f=0;l>=n;--l)if(47!==(i=t.charCodeAt(l)))-1===a&&(c=!1,a=l+1),46===i?-1===o?o=l:1!==f&&(f=1):-1!==o&&(f=-1);else if(!c){h=l+1;break}return-1===o||-1===a||0===f||1===f&&o===a-1&&o===h+1?-1!==a&&(r.base=r.name=0===h&&s?t.slice(1,a):t.slice(h,a)):(0===h&&s?(r.name=t.slice(1,o),r.base=t.slice(1,a)):(r.name=t.slice(h,o),r.base=t.slice(h,a)),r.ext=t.slice(o,a)),h>0?r.dir=t.slice(0,h-1):s&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,r),s.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{let t;if(r.r(n),r.d(n,{URI:()=>l,Utils:()=>_}),"object"==typeof process)t="win32"===process.platform;else if("object"==typeof navigator){let e=navigator.userAgent;t=e.indexOf("Windows")>=0}const e=/^\w[\w\d+.-]*$/,i=/^\//,s=/^\/\//;function o(t,r){if(!t.scheme&&r)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!e.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!i.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const h="",a="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class l{static isUri(t){return t instanceof l||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString}scheme;authority;path;query;fragment;constructor(t,e,r,n,i,s=!1){"object"==typeof t?(this.scheme=t.scheme||h,this.authority=t.authority||h,this.path=t.path||h,this.query=t.query||h,this.fragment=t.fragment||h):(this.scheme=function(t,e){return t||e?t:"file"}(t,s),this.authority=e||h,this.path=function(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==a&&(e=a+e):e=a}return e}(this.scheme,r||h),this.query=n||h,this.fragment=i||h,o(this,s))}get fsPath(){return m(this)}with(t){if(!t)return this;let{scheme:e,authority:r,path:n,query:i,fragment:s}=t;return void 0===e?e=this.scheme:null===e&&(e=h),void 0===r?r=this.authority:null===r&&(r=h),void 0===n?n=this.path:null===n&&(n=h),void 0===i?i=this.query:null===i&&(i=h),void 0===s?s=this.fragment:null===s&&(s=h),e===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&s===this.fragment?this:new u(e,r,n,i,s)}static parse(t,e=!1){const r=c.exec(t);return r?new u(r[2]||h,A(r[4]||h),A(r[5]||h),A(r[7]||h),A(r[9]||h),e):new u(h,h,h,h,h)}static file(e){let r=h;if(t&&(e=e.replace(/\\/g,a)),e[0]===a&&e[1]===a){const t=e.indexOf(a,2);-1===t?(r=e.substring(2),e=a):(r=e.substring(2,t),e=e.substring(t)||a)}return new u("file",r,e,h,h)}static from(t){const e=new u(t.scheme,t.authority,t.path,t.query,t.fragment);return o(e,!0),e}toString(t=!1){return v(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof l)return t;{const e=new u(t);return e._formatted=t.external,e._fsPath=t._sep===f?t.fsPath:null,e}}return t}}const f=t?1:void 0;class u extends l{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this)),this._fsPath}toString(t=!1){return t?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=f),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function d(t,e,r){let n,i=-1;for(let s=0;s<t.length;s++){const o=t.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||e&&47===o||r&&91===o||r&&93===o||r&&58===o)-1!==i&&(n+=encodeURIComponent(t.substring(i,s)),i=-1),void 0!==n&&(n+=t.charAt(s));else{void 0===n&&(n=t.substr(0,s));const e=g[o];void 0!==e?(-1!==i&&(n+=encodeURIComponent(t.substring(i,s)),i=-1),n+=e):-1===i&&(i=s)}}return-1!==i&&(n+=encodeURIComponent(t.substring(i))),void 0!==n?n:t}function p(t){let e;for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);35===n||63===n?(void 0===e&&(e=t.substr(0,r)),e+=g[n]):void 0!==e&&(e+=t[r])}return void 0!==e?e:t}function m(e,r){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,t&&(n=n.replace(/\//g,"\\")),n}function v(t,e){const r=e?p:d;let n="",{scheme:i,authority:s,path:o,query:h,fragment:c}=t;if(i&&(n+=i,n+=":"),(s||"file"===i)&&(n+=a,n+=a),s){let t=s.indexOf("@");if(-1!==t){const e=s.substr(0,t);s=s.substr(t+1),t=e.lastIndexOf(":"),-1===t?n+=r(e,!1,!1):(n+=r(e.substr(0,t),!1,!1),n+=":",n+=r(e.substr(t+1),!1,!0)),n+="@"}s=s.toLowerCase(),t=s.lastIndexOf(":"),-1===t?n+=r(s,!1,!0):(n+=r(s.substr(0,t),!1,!0),n+=s.substr(t))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const t=o.charCodeAt(1);t>=65&&t<=90&&(o=`/${String.fromCharCode(t+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const t=o.charCodeAt(0);t>=65&&t<=90&&(o=`${String.fromCharCode(t+32)}:${o.substr(2)}`)}n+=r(o,!0,!1)}return h&&(n+="?",n+=r(h,!1,!1)),c&&(n+="#",n+=e?c:d(c,!1,!1)),n}function y(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+y(t.substr(3)):t}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function A(t){return t.match(b)?t.replace(b,t=>y(t)):t}var w=r(470);const C=w.posix||w,x="/";var _;!function(t){t.joinPath=function(t,...e){return t.with({path:C.join(t.path,...e)})},t.resolvePath=function(t,...e){let r=t.path,n=!1;r[0]!==x&&(r=x+r,n=!0);let i=C.resolve(r,...e);return n&&i[0]===x&&!t.authority&&(i=i.substring(1)),t.with({path:i})},t.dirname=function(t){if(0===t.path.length||t.path===x)return t;let e=C.dirname(t.path);return 1===e.length&&46===e.charCodeAt(0)&&(e=""),t.with({path:e})},t.basename=function(t){return C.basename(t.path)},t.extname=function(t){return C.extname(t.path)}}(_||(_={}))})(),h=n})();const{URI:c,Utils:l}=h;export{e as T,c as U,l as a,o as t};
@@ -1 +0,0 @@
1
- const e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};export{e as conf,n as language};
@@ -1 +0,0 @@
1
- import{eG as e,dJ as r,dL as t}from"./editorWorkerHost-CvlBJcBX.js";let o=!1;function n(n){let s;const a=function(r){if(o)throw new Error("WebWorker already initialized!");o=!0;const t=new e(e=>globalThis.postMessage(e),e=>r(e));return globalThis.onmessage=e=>{t.onmessage(e.data)},t}(e=>{const o=r.getChannel(e),i=new Proxy({},{get(e,r,t){if("then"!==r){if("string"!=typeof r)throw new Error("Not supported");return(...e)=>o.$fhr(r,e)}}});return s=n({host:i,getMirrorModels:()=>a.requestHandler.getModels()}),new t(s)});return s}let s=!1;function a(){return s}function i(e){s=!0,self.onmessage=r=>{n(t=>e(t,r.data))}}export{i as a,a as i,n as s};
@@ -1 +0,0 @@
1
- const e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},t={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}};export{e as conf,t as language};
@@ -1 +0,0 @@
1
- import{conf as t,language as e}from"./typescript-MQYA4fhe.js";import"./index-CYtUYanB.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-window";import"react-hook-form";import"react-day-picker";import"react-google-recaptcha";import"react-virtuoso";import"./editorWorkerHost-CvlBJcBX.js";import"react-archer";import"react-phone-input-2";import"react-phone-number-input";import"react-draft-wysiwyg";const r=t,i={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,i as language};
@@ -1 +0,0 @@
1
- import{a as e}from"./initialize-BnJ699yk.js";import{c as t,g as r,a as n,f as s,p as o,b as i}from"./main-DlX1vOF-.js";import{M as a,D as c,R as l,a as u,C as h,I as m,b as f,T as p,L as d,S as g,F as y,P as b,c as v}from"./main-B28dfOH0.js";import{t as S,U as x,T}from"./index-u8dzJtLi.js";import"./editorWorkerHost-CvlBJcBX.js";function A(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(!A(e[r],t[r]))return!1}else{const s=[];for(n in e)s.push(n);s.sort();const o=[];for(n in t)o.push(n);if(o.sort(),!A(s,o))return!1;for(r=0;r<s.length;r++)if(!A(e[s[r]],t[s[r]]))return!1}return!0}function k(e){return"number"==typeof e}function N(e){return void 0!==e}function C(e){return"boolean"==typeof e}function O(e){return"string"==typeof e}function P(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function w(e,t){const r=e.length-t.length;return r>0?e.lastIndexOf(t)===r:0===r&&e===t}function I(e){let t="";(function(e,t){if(e.length<t.length)return!1;for(let r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0})(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(r){try{return new RegExp(e,t)}catch(e){return}}}function M(e){let t=0;for(let r=0;r<e.length;r++){t++;const n=e.charCodeAt(r);55296<=n&&n<=56319&&r++}return t}var V,L,E;!function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",e[e.SchemaResolveError=768]="SchemaResolveError",e[e.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature"}(V||(V={})),function(e){e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v6=6]="v6",e[e.v7=7]="v7",e[e.v2019_09=19]="v2019_09",e[e.v2020_12=20]="v2020_12"}(L||(L={})),function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[a.Markdown,a.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}}}(E||(E={}));const $={"color-hex":{errorMessage:S("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:S("String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:S("String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:S("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:S("String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:S("String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:S("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:S("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}};class F{constructor(e,t,r=0){this.offset=t,this.length=r,this.parent=e}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}}class j extends F{constructor(e,t){super(e,t),this.type="null",this.value=null}}class D extends F{constructor(e,t,r){super(e,r),this.type="boolean",this.value=t}}class R extends F{constructor(e,t){super(e,t),this.type="array",this.items=[]}get children(){return this.items}}class _ extends F{constructor(e,t){super(e,t),this.type="number",this.isInteger=!0,this.value=Number.NaN}}class U extends F{constructor(e,t,r){super(e,t,r),this.type="string",this.value=""}}class q extends F{constructor(e,t,r){super(e,t),this.type="property",this.colonOffset=-1,this.keyNode=r}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}}class K extends F{constructor(e,t){super(e,t),this.type="object",this.properties=[]}get children(){return this.properties}}function J(e){return C(e)?e?{}:{not:{}}:e}var B;!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(B||(B={}));const W={"http://json-schema.org/draft-03/schema#":L.v3,"http://json-schema.org/draft-04/schema#":L.v4,"http://json-schema.org/draft-06/schema#":L.v6,"http://json-schema.org/draft-07/schema#":L.v7,"https://json-schema.org/draft/2019-09/schema":L.v2019_09,"https://json-schema.org/draft/2020-12/schema":L.v2020_12};class H{constructor(e){this.schemaDraft=e}}class z{constructor(e=-1,t){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){Array.prototype.push.apply(this.schemas,e.schemas)}include(e){return(-1===this.focusOffset||Y(e,this.focusOffset))&&e!==this.exclude}newSub(){return new z(-1,this.exclude)}}class G{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}}G.instance=new G;class Z{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches+=e.propertiesMatches,this.propertiesValueMatches+=e.propertiesValueMatches,this.mergeProcessedProperties(e)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===V.EnumValueMismatch&&(e.message=S("Value is not accepted. Valid values: {0}.",this.enumValues.map(e=>JSON.stringify(e)).join(", ")))}}mergePropertyMatch(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++}mergeProcessedProperties(e){e.processedProperties.forEach(e=>this.processedProperties.add(e))}compare(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches}}function X(e){return n(e)}function Q(e){return r(e)}function Y(e,t,r=!1){return t>=e.offset&&t<e.offset+e.length||r&&t===e.offset+e.length}class ee{constructor(e,t=[],r=[]){this.root=e,this.syntaxErrors=t,this.comments=r}getNodeFromOffset(e,t=!1){if(this.root)return s(this.root,e,t)}visit(e){if(this.root){const t=r=>{let n=e(r);const s=r.children;if(Array.isArray(s))for(let e=0;e<s.length&&n;e++)n=t(s[e]);return n};t(this.root)}}validate(e,t,r=c.Warning,n){if(this.root&&t){const s=new Z;return re(this.root,t,s,G.instance,new H(n??te(t))),s.problems.map(t=>{const n=l.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return u.create(n,t.message,t.severity??r,t.code)})}}getMatchingSchemas(e,t=-1,r){if(this.root&&e){const n=new z(t,r),s=te(e),o=new H(s);return re(this.root,e,new Z,n,o),n.schemas}return[]}}function te(e,t=L.v2020_12){let r=e.$schema;return r?W[r]??t:t}function re(e,t,r,n,s){if(!e||!n.include(e))return;if("property"===e.type)return re(e.valueNode,t,r,n,s);const o=e;switch(function(){function e(e){return o.type===e||"integer"===e&&"number"===o.type&&o.isInteger}Array.isArray(t.type)?t.type.some(e)||r.problems.push({location:{offset:o.offset,length:o.length},message:t.errorMessage||S("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||r.problems.push({location:{offset:o.offset,length:o.length},message:t.errorMessage||S('Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(const e of t.allOf){const t=new Z,i=n.newSub();re(o,J(e),t,i,s),r.merge(t),n.merge(i)}const i=J(t.not);if(i){const e=new Z,a=n.newSub();re(o,i,e,a,s),e.hasProblems()||r.problems.push({location:{offset:o.offset,length:o.length},message:t.errorMessage||S("Matches a schema that is not allowed.")});for(const e of a.schemas)e.inverted=!e.inverted,n.add(e)}const a=(e,t)=>{const i=[];let a;for(const r of e){const e=J(r),c=new Z,l=n.newSub();if(re(o,e,c,l,s),c.hasProblems()||i.push(e),a)if(t||c.hasProblems()||a.validationResult.hasProblems()){const t=c.compare(a.validationResult);t>0?a={schema:e,validationResult:c,matchingSchemas:l}:0===t&&(a.matchingSchemas.merge(l),a.validationResult.mergeEnumValues(c))}else a.matchingSchemas.merge(l),a.validationResult.propertiesMatches+=c.propertiesMatches,a.validationResult.propertiesValueMatches+=c.propertiesValueMatches,a.validationResult.mergeProcessedProperties(c);else a={schema:e,validationResult:c,matchingSchemas:l}}return i.length>1&&t&&r.problems.push({location:{offset:o.offset,length:1},message:S("Matches multiple schemas when only one must validate.")}),a&&(r.merge(a.validationResult),n.merge(a.matchingSchemas)),i.length};Array.isArray(t.anyOf)&&a(t.anyOf,!1);Array.isArray(t.oneOf)&&a(t.oneOf,!0);const l=e=>{const t=new Z,i=n.newSub();re(o,J(e),t,i,s),r.merge(t),n.merge(i)},u=J(t.if);u&&((e,t,i)=>{const a=J(e),c=new Z,u=n.newSub();re(o,a,c,u,s),n.merge(u),r.mergeProcessedProperties(c),c.hasProblems()?i&&l(i):t&&l(t)})(u,J(t.then),J(t.else));if(Array.isArray(t.enum)){const e=X(o);let n=!1;for(const r of t.enum)if(A(e,r)){n=!0;break}r.enumValues=t.enum,r.enumValueMatch=n,n||r.problems.push({location:{offset:o.offset,length:o.length},code:V.EnumValueMismatch,message:t.errorMessage||S("Value is not accepted. Valid values: {0}.",t.enum.map(e=>JSON.stringify(e)).join(", "))})}if(N(t.const)){A(X(o),t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:o.offset,length:o.length},code:V.EnumValueMismatch,message:t.errorMessage||S("Value must be {0}.",JSON.stringify(t.const))}),r.enumValueMatch=!1),r.enumValues=[t.const]}let h=t.deprecationMessage;if(h||t.deprecated){h=h||S("Value is deprecated");let e="property"===o.parent?.type?o.parent:o;r.problems.push({location:{offset:e.offset,length:e.length},severity:c.Warning,message:h,code:V.Deprecated})}}(),o.type){case"object":!function(e){const o=Object.create(null),i=new Set;for(const t of e.properties){const e=t.keyNode.value;o[e]=t.valueNode,i.add(e)}if(Array.isArray(t.required))for(const n of t.required)if(!o[n]){const t=e.parent&&"property"===e.parent.type&&e.parent.keyNode,s=t?{offset:t.offset,length:t.length}:{offset:e.offset,length:1};r.problems.push({location:s,message:S('Missing property "{0}".',n)})}const a=e=>{i.delete(e),r.processedProperties.add(e)};if(t.properties)for(const e of Object.keys(t.properties)){a(e);const i=t.properties[e],c=o[e];if(c)if(C(i))if(i)r.propertiesMatches++,r.propertiesValueMatches++;else{const n=c.parent;r.problems.push({location:{offset:n.keyNode.offset,length:n.keyNode.length},message:t.errorMessage||S("Property {0} is not allowed.",e)})}else{const e=new Z;re(c,i,e,n,s),r.mergePropertyMatch(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const c=I(e);if(c){const l=[];for(const a of i)if(c.test(a)){l.push(a);const i=o[a];if(i){const o=t.patternProperties[e];if(C(o))if(o)r.propertiesMatches++,r.propertiesValueMatches++;else{const e=i.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||S("Property {0} is not allowed.",a)})}else{const e=new Z;re(i,o,e,n,s),r.mergePropertyMatch(e)}}}l.forEach(a)}}const c=t.additionalProperties;if(void 0!==c)for(const e of i){a(e);const i=o[e];if(i)if(!1===c){const n=i.parent;r.problems.push({location:{offset:n.keyNode.offset,length:n.keyNode.length},message:t.errorMessage||S("Property {0} is not allowed.",e)})}else if(!0!==c){const e=new Z;re(i,c,e,n,s),r.mergePropertyMatch(e)}}const l=t.unevaluatedProperties;if(void 0!==l){const e=[];for(const a of i)if(!r.processedProperties.has(a)){e.push(a);const i=o[a];if(i)if(!1===l){const e=i.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||S("Property {0} is not allowed.",a)})}else if(!0!==l){const e=new Z;re(i,l,e,n,s),r.mergePropertyMatch(e)}}e.forEach(a)}k(t.maxProperties)&&e.properties.length>t.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Object has more properties than limit of {0}.",t.maxProperties)});k(t.minProperties)&&e.properties.length<t.minProperties&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependentRequired)for(const e in t.dependentRequired){const r=o[e],n=t.dependentRequired[e];r&&Array.isArray(n)&&h(e,n)}if(t.dependentSchemas)for(const e in t.dependentSchemas){const r=o[e],n=t.dependentSchemas[e];r&&P(n)&&h(e,n)}if(t.dependencies)for(const e in t.dependencies){o[e]&&h(e,t.dependencies[e])}const u=J(t.propertyNames);if(u)for(const t of e.properties){const e=t.keyNode;e&&re(e,u,r,G.instance,s)}function h(t,i){if(Array.isArray(i))for(const n of i)o[n]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},message:S("Object is missing property {0} required by property {1}.",n,t)});else{const t=J(i);if(t){const o=new Z;re(e,t,o,n,s),r.mergePropertyMatch(o)}}}}(o);break;case"array":!function(e){let o,i;s.schemaDraft>=L.v2020_12?(o=t.prefixItems,i=Array.isArray(t.items)?void 0:t.items):(o=Array.isArray(t.items)?t.items:void 0,i=Array.isArray(t.items)?t.additionalItems:t.items);let a=0;if(void 0!==o){const u=Math.min(o.length,e.items.length);for(;a<u;a++){const h=J(o[a]),m=new Z,f=e.items[a];f&&(re(f,h,m,n,s),r.mergePropertyMatch(m)),r.processedProperties.add(String(a))}}if(void 0!==i&&a<e.items.length)if("boolean"==typeof i)for(!1===i&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Array has too many items according to schema. Expected {0} or fewer.",a)});a<e.items.length;a++)r.processedProperties.add(String(a)),r.propertiesValueMatches++;else for(;a<e.items.length;a++){const p=new Z;re(e.items[a],i,p,n,s),r.mergePropertyMatch(p),r.processedProperties.add(String(a))}const c=J(t.contains);if(c){let d=0;for(let g=0;g<e.items.length;g++){const y=e.items[g],b=new Z;re(y,c,b,G.instance,s),b.hasProblems()||(d++,s.schemaDraft>=L.v2020_12&&r.processedProperties.add(String(g)))}0!==d||k(t.minContains)||r.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||S("Array does not contain required item.")}),k(t.minContains)&&d<t.minContains&&r.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||S("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),k(t.maxContains)&&d>t.maxContains&&r.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||S("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}const l=t.unevaluatedItems;if(void 0!==l)for(let v=0;v<e.items.length;v++){if(!r.processedProperties.has(String(v)))if(!1===l)r.problems.push({location:{offset:e.offset,length:e.length},message:S("Item does not match any validation rule from the array.")});else{const x=new Z;re(e.items[v],t.unevaluatedItems,x,n,s),r.mergePropertyMatch(x)}r.processedProperties.add(String(v)),r.propertiesValueMatches++}k(t.minItems)&&e.items.length<t.minItems&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Array has too few items. Expected {0} or more.",t.minItems)});k(t.maxItems)&&e.items.length>t.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){const T=X(e);function N(){for(let e=0;e<T.length-1;e++){const t=T[e];for(let r=e+1;r<T.length;r++)if(A(t,T[r]))return!0}return!1}N()&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Array has duplicate items.")})}}(o);break;case"string":!function(e){k(t.minLength)&&M(e.value)<t.minLength&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("String is shorter than the minimum length of {0}.",t.minLength)});k(t.maxLength)&&M(e.value)>t.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("String is longer than the maximum length of {0}.",t.maxLength)});if(O(t.pattern)){const n=I(t.pattern);n?.test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||S('String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":{let n;if(e.value){const r=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);r?r[2]||"uri"!==t.format||(n=S("URI with a scheme is expected.")):n=S("URI is expected.")}else n=S("URI expected.");n&&r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||S("String is not a URI: {0}",n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":const n=$[t.format];e.value&&n.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||n.errorMessage})}}(o);break;case"number":!function(e){const n=e.value;function s(e){const t=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return t&&{value:Number(t[1]+(t[2]||"")),multiplier:(t[2]?.length||0)-(parseInt(t[3])||0)}}if(k(t.multipleOf)){let o=-1;if(Number.isInteger(t.multipleOf))o=n%t.multipleOf;else{let e=s(t.multipleOf),r=s(n);if(e&&r){const t=10**Math.abs(r.multiplier-e.multiplier);r.multiplier<e.multiplier?r.value*=t:e.value*=t,o=r.value%e.value}}0!==o&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Value is not divisible by {0}.",t.multipleOf)})}function o(e,t){return k(t)?t:C(t)&&t?e:void 0}function i(e,t){if(!C(t)||!t)return e}const a=o(t.minimum,t.exclusiveMinimum);k(a)&&n<=a&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Value is below the exclusive minimum of {0}.",a)});const c=o(t.maximum,t.exclusiveMaximum);k(c)&&n>=c&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Value is above the exclusive maximum of {0}.",c)});const l=i(t.minimum,t.exclusiveMinimum);k(l)&&n<l&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Value is below the minimum of {0}.",l)});const u=i(t.maximum,t.exclusiveMaximum);k(u)&&n>u&&r.problems.push({location:{offset:e.offset,length:e.length},message:S("Value is above the maximum of {0}.",u)})}(o)}n.add({node:o,schema:t})}function ne(e,r){const n=[];let s=-1;const o=e.getText(),i=t(o,!1),a=r&&r.collectComments?[]:void 0;function h(){for(;;){const t=i.scan();switch(p(),t){case 12:case 13:Array.isArray(a)&&a.push(l.create(e.positionAt(i.getTokenOffset()),e.positionAt(i.getTokenOffset()+i.getTokenLength())));break;case 15:case 14:break;default:return t}}}function m(t,r,o,i,a=c.Error){if(0===n.length||o!==s){const c=l.create(e.positionAt(o),e.positionAt(i));n.push(u.create(c,t,a,r,e.languageId)),s=o}}function f(e,t,r=void 0,n=[],s=[]){let a=i.getTokenOffset(),c=i.getTokenOffset()+i.getTokenLength();if(a===c&&a>0){for(a--;a>0&&/\s/.test(o.charAt(a));)a--;c=a+1}if(m(e,t,a,c),r&&d(r,!1),n.length+s.length>0){let e=i.getToken();for(;17!==e;){if(-1!==n.indexOf(e)){h();break}if(-1!==s.indexOf(e))break;e=h()}}return r}function p(){switch(i.getTokenError()){case 4:return f(S("Invalid unicode sequence in string."),V.InvalidUnicode),!0;case 5:return f(S("Invalid escape character in string."),V.InvalidEscapeCharacter),!0;case 3:return f(S("Unexpected end of number."),V.UnexpectedEndOfNumber),!0;case 1:return f(S("Unexpected end of comment."),V.UnexpectedEndOfComment),!0;case 2:return f(S("Unexpected end of string."),V.UnexpectedEndOfString),!0;case 6:return f(S("Invalid characters in string. Control characters must be escaped."),V.InvalidCharacter),!0}return!1}function d(e,t){return e.length=i.getTokenOffset()+i.getTokenLength()-e.offset,t&&h(),e}const g=new U(void 0,0,0);function y(t,r){const n=new q(t,i.getTokenOffset(),g);let s=b(n);if(!s){if(16!==i.getToken())return;{f(S("Property keys must be doublequoted"),V.PropertyKeysMustBeDoublequoted);const e=new U(n,i.getTokenOffset(),i.getTokenLength());e.value=i.getTokenValue(),s=e,h()}}if(n.keyNode=s,"//"!==s.value){const e=r[s.value];e?(m(S("Duplicate object key"),V.DuplicateKey,n.keyNode.offset,n.keyNode.offset+n.keyNode.length,c.Warning),P(e)&&m(S("Duplicate object key"),V.DuplicateKey,e.keyNode.offset,e.keyNode.offset+e.keyNode.length,c.Warning),r[s.value]=!0):r[s.value]=n}if(6===i.getToken())n.colonOffset=i.getTokenOffset(),h();else if(f(S("Colon expected"),V.ColonExpected),10===i.getToken()&&e.positionAt(s.offset+s.length).line<e.positionAt(i.getTokenOffset()).line)return n.length=s.length,n;const o=v(n);return o?(n.valueNode=o,n.length=o.offset+o.length-n.offset,n):f(S("Value expected"),V.ValueExpected,n,[],[2,5])}function b(e){if(10!==i.getToken())return;const t=new U(e,i.getTokenOffset());return t.value=i.getTokenValue(),d(t,!0)}function v(e){return function(e){if(3!==i.getToken())return;const t=new R(e,i.getTokenOffset());h();let r=!1;for(;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){r||f(S("Value expected"),V.ValueExpected);const e=i.getTokenOffset();if(h(),4===i.getToken()){r&&m(S("Trailing comma"),V.TrailingComma,e,e+1);continue}}else r&&f(S("Expected comma"),V.CommaExpected);const e=v(t);e?t.items.push(e):f(S("Value expected"),V.ValueExpected,void 0,[],[4,5]),r=!0}return 4!==i.getToken()?f(S("Expected comma or closing bracket"),V.CommaOrCloseBacketExpected,t):d(t,!0)}(e)||function(e){if(1!==i.getToken())return;const t=new K(e,i.getTokenOffset()),r=Object.create(null);h();let n=!1;for(;2!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){n||f(S("Property expected"),V.PropertyExpected);const e=i.getTokenOffset();if(h(),2===i.getToken()){n&&m(S("Trailing comma"),V.TrailingComma,e,e+1);continue}}else n&&f(S("Expected comma"),V.CommaExpected);const e=y(t,r);e?t.properties.push(e):f(S("Property expected"),V.PropertyExpected,void 0,[],[2,5]),n=!0}return 2!==i.getToken()?f(S("Expected comma or closing brace"),V.CommaOrCloseBraceExpected,t):d(t,!0)}(e)||b(e)||function(e){if(11!==i.getToken())return;const t=new _(e,i.getTokenOffset());if(0===i.getTokenError()){const e=i.getTokenValue();try{const r=JSON.parse(e);if(!k(r))return f(S("Invalid number format."),V.Undefined,t);t.value=r}catch(e){return f(S("Invalid number format."),V.Undefined,t)}t.isInteger=-1===e.indexOf(".")}return d(t,!0)}(e)||function(e){switch(i.getToken()){case 7:return d(new j(e,i.getTokenOffset()),!0);case 8:return d(new D(e,!0,i.getTokenOffset()),!0);case 9:return d(new D(e,!1,i.getTokenOffset()),!0);default:return}}(e)}let x;return 17!==h()&&(x=v(x),x?17!==i.getToken()&&f(S("End of file expected."),V.Undefined):f(S("Expected a JSON object, array or literal."),V.Undefined)),new ee(x,n,a)}function se(e,t,r){if(null!==e&&"object"==typeof e){const n=t+"\t";if(Array.isArray(e)){if(0===e.length)return"[]";let s="[\n";for(let t=0;t<e.length;t++)s+=n+se(e[t],n,r),t<e.length-1&&(s+=","),s+="\n";return s+=t+"]",s}{const s=Object.keys(e);if(0===s.length)return"{}";let o="{\n";for(let t=0;t<s.length;t++){const i=s[t];o+=n+JSON.stringify(i)+": "+se(e[i],n,r),t<s.length-1&&(o+=","),o+="\n"}return o+=t+"}",o}}return r(e)}class oe{constructor(e,t=[],r=Promise,n={}){this.schemaService=e,this.contributions=t,this.promiseConstructor=r,this.clientCapabilities=n}doResolve(e){for(let t=this.contributions.length-1;t>=0;t--){const r=this.contributions[t].resolveCompletion;if(r){const t=r(e);if(t)return t}}return this.promiseConstructor.resolve(e)}doComplete(e,t,r){const n={items:[],isIncomplete:!1},s=e.getText(),o=e.offsetAt(t);let i=r.getNodeFromOffset(o,!0);if(this.isInComment(e,i?i.offset:0,o))return Promise.resolve(n);if(i&&o===i.offset+i.length&&o>0){const e=s[o-1];("object"===i.type&&"}"===e||"array"===i.type&&"]"===e)&&(i=i.parent)}const a=this.getCurrentWord(e,o);let c;if(!i||"string"!==i.type&&"number"!==i.type&&"boolean"!==i.type&&"null"!==i.type){let r=o-a.length;r>0&&'"'===s[r-1]&&r--,c=l.create(e.positionAt(r),t)}else c=l.create(e.positionAt(i.offset),e.positionAt(i.offset+i.length));const u=new Map,d={add:e=>{let t=e.label;const r=u.get(t);if(r)r.documentation||(r.documentation=e.documentation),r.detail||(r.detail=e.detail),r.labelDetails||(r.labelDetails=e.labelDetails);else{if(t=t.replace(/[\n]/g,"↵"),t.length>60){const e=t.substr(0,57).trim()+"...";u.has(e)||(t=e)}e.textEdit=p.replace(c,e.insertText),e.label=t,u.set(t,e),n.items.push(e)}},setAsIncomplete:()=>{n.isIncomplete=!0},error:e=>{console.error(e)},getNumberOfProposals:()=>n.items.length};return this.schemaService.getSchemaForResource(e.uri,r).then(t=>{const l=[];let p,g=!0,y="";if(i&&"string"===i.type){const e=i.parent;e&&"property"===e.type&&e.keyNode===i&&(g=!e.valueNode,p=e,y=s.substr(i.offset+1,i.length-2),e&&(i=e.parent))}if(i&&"object"===i.type){if(i.offset===o)return n;i.properties.forEach(e=>{p&&p===e||u.set(e.keyNode.value,h.create("__"))});let b="";g&&(b=this.evaluateSeparatorAfter(e,e.offsetAt(c.end))),t?this.getPropertyCompletions(t,r,i,g,b,d):this.getSchemaLessPropertyCompletions(r,i,y,d);const v=Q(i);this.contributions.forEach(t=>{const r=t.collectPropertyCompletions(e.uri,v,a,g,""===b,d);r&&l.push(r)}),!t&&a.length>0&&'"'!==s.charAt(o-a.length-1)&&(d.add({kind:f.Property,label:this.getLabelForValue(a),insertText:this.getInsertTextForProperty(a,void 0,!1,b),insertTextFormat:m.Snippet,documentation:""}),d.setAsIncomplete())}const b={};return t?this.getValueCompletions(t,r,i,o,e,d,b):this.getSchemaLessValueCompletions(r,i,o,e,d),this.contributions.length>0&&this.getContributedValueCompletions(r,i,o,e,d,l),this.promiseConstructor.all(l).then(()=>{if(0===d.getNumberOfProposals()){let t=o;!i||"string"!==i.type&&"number"!==i.type&&"boolean"!==i.type&&"null"!==i.type||(t=i.offset+i.length);const r=this.evaluateSeparatorAfter(e,t);this.addFillerValueCompletions(b,r,d)}return n})})}getPropertyCompletions(e,t,r,n,s,o){t.getMatchingSchemas(e.schema,r.offset).forEach(e=>{if(e.node===r&&!e.inverted){const t=e.schema.properties;t&&Object.keys(t).forEach(e=>{const r=t[e];if("object"==typeof r&&!r.deprecationMessage&&!r.doNotSuggest){const t={kind:f.Property,label:e,insertText:this.getInsertTextForProperty(e,r,n,s),insertTextFormat:m.Snippet,filterText:this.getFilterTextForValue(e),documentation:this.fromMarkup(r.markdownDescription)||r.description||""};void 0!==r.suggestSortText&&(t.sortText=r.suggestSortText),t.insertText&&w(t.insertText,`$1${s}`)&&(t.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(t)}});const r=e.schema.propertyNames;if("object"==typeof r&&!r.deprecationMessage&&!r.doNotSuggest){const e=(e,t=void 0)=>{const i={kind:f.Property,label:e,insertText:this.getInsertTextForProperty(e,void 0,n,s),insertTextFormat:m.Snippet,filterText:this.getFilterTextForValue(e),documentation:t||this.fromMarkup(r.markdownDescription)||r.description||""};void 0!==r.suggestSortText&&(i.sortText=r.suggestSortText),i.insertText&&w(i.insertText,`$1${s}`)&&(i.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(i)};if(r.enum)for(let t=0;t<r.enum.length;t++){let n;r.markdownEnumDescriptions&&t<r.markdownEnumDescriptions.length?n=this.fromMarkup(r.markdownEnumDescriptions[t]):r.enumDescriptions&&t<r.enumDescriptions.length&&(n=r.enumDescriptions[t]),e(r.enum[t],n)}r.const&&e(r.const)}}})}getSchemaLessPropertyCompletions(e,t,r,n){const s=e=>{e.properties.forEach(e=>{const t=e.keyNode.value;n.add({kind:f.Property,label:t,insertText:this.getInsertTextForValue(t,""),insertTextFormat:m.Snippet,filterText:this.getFilterTextForValue(t),documentation:""})})};if(t.parent)if("property"===t.parent.type){const r=t.parent.keyNode.value;e.visit(e=>("property"===e.type&&e!==t.parent&&e.keyNode.value===r&&e.valueNode&&"object"===e.valueNode.type&&s(e.valueNode),!0))}else"array"===t.parent.type&&t.parent.items.forEach(e=>{"object"===e.type&&e!==t&&s(e)});else"object"===t.type&&n.add({kind:f.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:m.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(e,t,r,n,s){let o=r;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(o=t.offset+t.length,t=t.parent),!t)return s.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:m.Snippet,documentation:""}),void s.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:m.Snippet,documentation:""});const i=this.evaluateSeparatorAfter(n,o),a=e=>{e.parent&&!Y(e.parent,r,!0)&&s.add({kind:this.getSuggestionKind(e.type),label:this.getLabelTextForMatchingNode(e,n),insertText:this.getInsertTextForMatchingNode(e,n,i),insertTextFormat:m.Snippet,documentation:""}),"boolean"===e.type&&this.addBooleanValueCompletion(!e.value,i,s)};if("property"===t.type&&r>(t.colonOffset||0)){const n=t.valueNode;if(n&&(r>n.offset+n.length||"object"===n.type||"array"===n.type))return;const o=t.keyNode.value;e.visit(e=>("property"===e.type&&e.keyNode.value===o&&e.valueNode&&a(e.valueNode),!0)),"$schema"===o&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(i,s)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){const r=t.parent.keyNode.value;e.visit(e=>("property"===e.type&&e.keyNode.value===r&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(a),!0))}else t.items.forEach(a)}getValueCompletions(e,t,r,n,s,o,i){let a,c,l=n;if(!r||"string"!==r.type&&"number"!==r.type&&"boolean"!==r.type&&"null"!==r.type||(l=r.offset+r.length,c=r,r=r.parent),r){if("property"===r.type&&n>(r.colonOffset||0)){const e=r.valueNode;if(e&&n>e.offset+e.length)return;a=r.keyNode.value,r=r.parent}if(r&&(void 0!==a||"array"===r.type)){const u=this.evaluateSeparatorAfter(s,l),h=t.getMatchingSchemas(e.schema,r.offset,c);for(const e of h)if(e.node===r&&!e.inverted&&e.schema){if("array"===r.type&&e.schema.items){let t=o;if(e.schema.uniqueItems){const e=new Set;r.children.forEach(t=>{"array"!==t.type&&"object"!==t.type&&e.add(this.getLabelForValue(X(t)))}),t={...o,add(t){e.has(t.label)||o.add(t)}}}if(Array.isArray(e.schema.items)){const o=this.findItemAtOffset(r,s,n);o<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[o],u,t,i)}else this.addSchemaValueCompletions(e.schema.items,u,t,i)}if(void 0!==a){let t=!1;if(e.schema.properties){const r=e.schema.properties[a];r&&(t=!0,this.addSchemaValueCompletions(r,u,o,i))}if(e.schema.patternProperties&&!t)for(const r of Object.keys(e.schema.patternProperties)){const n=I(r);if(n?.test(a)){t=!0;const n=e.schema.patternProperties[r];this.addSchemaValueCompletions(n,u,o,i)}}if(e.schema.additionalProperties&&!t){const t=e.schema.additionalProperties;this.addSchemaValueCompletions(t,u,o,i)}}}"$schema"!==a||r.parent||this.addDollarSchemaCompletions(u,o),i.boolean&&(this.addBooleanValueCompletion(!0,u,o),this.addBooleanValueCompletion(!1,u,o)),i.null&&this.addNullValueCompletion(u,o)}}else this.addSchemaValueCompletions(e.schema,"",o,i)}getContributedValueCompletions(e,t,r,n,s,o){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&r>(t.colonOffset||0)){const e=t.keyNode.value,i=t.valueNode;if((!i||r<=i.offset+i.length)&&t.parent){const r=Q(t.parent);this.contributions.forEach(t=>{const i=t.collectValueCompletions(n.uri,r,e,s);i&&o.push(i)})}}}else this.contributions.forEach(e=>{const t=e.collectDefaultCompletions(n.uri,s);t&&o.push(t)})}addSchemaValueCompletions(e,t,r,n){"object"==typeof e&&(this.addEnumValueCompletions(e,t,r),this.addDefaultValueCompletions(e,t,r),this.collectTypes(e,n),Array.isArray(e.allOf)&&e.allOf.forEach(e=>this.addSchemaValueCompletions(e,t,r,n)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>this.addSchemaValueCompletions(e,t,r,n)),Array.isArray(e.oneOf)&&e.oneOf.forEach(e=>this.addSchemaValueCompletions(e,t,r,n)))}addDefaultValueCompletions(e,t,r,n=0){let s=!1;if(N(e.default)){let o=e.type,i=e.default;for(let e=n;e>0;e--)i=[i],o="array";const a={kind:this.getSuggestionKind(o),label:this.getLabelForValue(i),insertText:this.getInsertTextForValue(i,t),insertTextFormat:m.Snippet};this.doesSupportsLabelDetails()?a.labelDetails={description:S("Default value")}:a.detail=S("Default value"),r.add(a),s=!0}Array.isArray(e.examples)&&e.examples.forEach(o=>{let i=e.type,a=o;for(let e=n;e>0;e--)a=[a],i="array";r.add({kind:this.getSuggestionKind(i),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:m.Snippet}),s=!0}),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach(o=>{let i,a,c=e.type,l=o.body,u=o.label;if(N(l)){e.type;for(let e=n;e>0;e--)l=[l];i=this.getInsertTextForSnippetValue(l,t),a=this.getFilterTextForSnippetValue(l),u=u||this.getLabelForSnippetValue(l)}else{if("string"!=typeof o.bodyText)return;{let e="",r="",s="";for(let t=n;t>0;t--)e=e+s+"[\n",r=r+"\n"+s+"]",s+="\t",c="array";i=e+s+o.bodyText.split("\n").join("\n"+s)+r+t,u=u||i,a=i.replace(/[\n]/g,"")}}r.add({kind:this.getSuggestionKind(c),label:u,documentation:this.fromMarkup(o.markdownDescription)||o.description,insertText:i,insertTextFormat:m.Snippet,filterText:a}),s=!0}),!s&&"object"==typeof e.items&&!Array.isArray(e.items)&&n<5&&this.addDefaultValueCompletions(e.items,t,r,n+1)}addEnumValueCompletions(e,t,r){if(N(e.const)&&r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:m.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let n=0,s=e.enum.length;n<s;n++){const s=e.enum[n];let o=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&n<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(e.markdownEnumDescriptions[n]):e.enumDescriptions&&n<e.enumDescriptions.length&&(o=e.enumDescriptions[n]),r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:m.Snippet,documentation:o})}}collectTypes(e,t){if(Array.isArray(e.enum)||N(e.const))return;const r=e.type;Array.isArray(r)?r.forEach(e=>t[e]=!0):r&&(t[r]=!0)}addFillerValueCompletions(e,t,r){e.object&&r.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:m.Snippet,detail:S("New object"),documentation:""}),e.array&&r.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:m.Snippet,detail:S("New array"),documentation:""})}addBooleanValueCompletion(e,t,r){r.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:m.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:m.Snippet,documentation:""})}addDollarSchemaCompletions(e,t){this.schemaService.getRegisteredSchemaIds(e=>"http"===e||"https"===e).forEach(r=>{r.startsWith("http://json-schema.org/draft-")&&(r+="#"),t.add({kind:f.Module,label:this.getLabelForValue(r),filterText:this.getFilterTextForValue(r),insertText:this.getInsertTextForValue(r,e),insertTextFormat:m.Snippet,documentation:""})})}getLabelForValue(e){return JSON.stringify(e)}getValueFromLabel(e){return JSON.parse(e)}getFilterTextForValue(e){return JSON.stringify(e)}getFilterTextForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getInsertTextForPlainText(e){return e.replace(/[\\\$\}]/g,"\\$&")}getInsertTextForValue(e,t){const r=JSON.stringify(e,null,"\t");return"{}"===r?"{$1}"+t:"[]"===r?"[$1]"+t:this.getInsertTextForPlainText(r+t)}getInsertTextForSnippetValue(e,t){return se(e,"",e=>"string"==typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e))+t}getInsertTextForGuessedValue(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":let r=JSON.stringify(e);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),'"${1:'+r+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:void 0}if(!e)return f.Value;switch(e){case"string":default:return f.Value;case"object":return f.Module;case"property":return f.Property}}getLabelTextForMatchingNode(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}}getInsertTextForMatchingNode(e,t,r){switch(e.type){case"array":return this.getInsertTextForValue([],r);case"object":return this.getInsertTextForValue({},r);default:const n=t.getText().substr(e.offset,e.length)+r;return this.getInsertTextForPlainText(n)}}getInsertTextForProperty(e,t,r,n){const s=this.getInsertTextForValue(e,"");if(!r)return s;const o=s+": ";let i,a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;N(e)&&(i=this.getInsertTextForSnippetValue(e,""))}a+=t.defaultSnippets.length}if(t.enum&&(i||1!==t.enum.length||(i=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),N(t.const)&&(i||(i=this.getInsertTextForGuessedValue(t.const,"")),a++),N(t.default)&&(i||(i=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(i||(i=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){let e=Array.isArray(t.type)?t.type[0]:t.type;switch(e||(t.properties?e="object":t.items&&(e="array")),e){case"boolean":i="$1";break;case"string":i='"$1"';break;case"object":i="{$1}";break;case"array":i="[$1]";break;case"number":case"integer":i="${1:0}";break;case"null":i="${1:null}";break;default:return s}}}return(!i||a>1)&&(i="$1"),o+i+n}getCurrentWord(e,t){let r=t-1;const n=e.getText();for(;r>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)}evaluateSeparatorAfter(e,r){const n=t(e.getText(),!0);n.setPosition(r);switch(n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(e,r,n){const s=t(r.getText(),!0),o=e.items;for(let e=o.length-1;e>=0;e--){const t=o[e];if(n>t.offset+t.length){s.setPosition(t.offset+t.length);return 5===s.scan()&&n>=s.getTokenOffset()+s.getTokenLength()?e+1:e}if(n>=t.offset)return e}return 0}isInComment(e,r,n){const s=t(e.getText(),!1);s.setPosition(r);let o=s.scan();for(;17!==o&&s.getTokenOffset()+s.getTokenLength()<n;)o=s.scan();return(12===o||13===o)&&s.getTokenOffset()<=n}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:a.Markdown,value:e}}doesSupportMarkdown(){if(!N(this.supportsMarkdown)){const e=this.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(a.Markdown)}return this.supportsMarkdown}doesSupportsCommitCharacters(){return N(this.supportsCommitCharacters)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){return N(this.labelDetailsSupport)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.labelDetailsSupport),this.labelDetailsSupport}}class ie{constructor(e,t=[],r){this.schemaService=e,this.contributions=t,this.promise=r||Promise}doHover(e,t,r){const n=e.offsetAt(t);let s=r.getNodeFromOffset(n);if(!s||("object"===s.type||"array"===s.type)&&n>s.offset+1&&n<s.offset+s.length-1)return this.promise.resolve(null);const o=s;if("string"===s.type){const e=s.parent;if(e&&"property"===e.type&&e.keyNode===s&&(s=e.valueNode,!s))return this.promise.resolve(null)}const i=l.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length)),a=e=>({contents:e,range:i}),c=Q(s);for(let t=this.contributions.length-1;t>=0;t--){const r=this.contributions[t].getInfoContribution(e.uri,c);if(r)return r.then(e=>a(e))}return this.schemaService.getSchemaForResource(e.uri,r).then(e=>{if(e&&s){let t,n,o,i;r.getMatchingSchemas(e.schema,s.offset).every(e=>{if(e.node===s&&!e.inverted&&e.schema&&(t=t||e.schema.title,n=n||e.schema.markdownDescription||ae(e.schema.description),e.schema.enum)){const t=e.schema.enum.indexOf(X(s));e.schema.markdownEnumDescriptions?o=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(o=ae(e.schema.enumDescriptions[t])),o&&(i=e.schema.enum[t],"string"!=typeof i&&(i=JSON.stringify(i)))}return!0});let c="";return t&&(c=ae(t)),n&&(c.length>0&&(c+="\n\n"),c+=n),o&&(c.length>0&&(c+="\n\n"),c+=`\`${function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(i)}\`: ${o}`),a([c])}return null})}}function ae(e){if(e){return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}class ce{constructor(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}configure(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:c.Error)}doValidation(e,t,r,n){if(!this.validationEnabled)return this.promise.resolve([]);const s=[],o={},i=e=>{const t=e.range.start.line+" "+e.range.start.character+" "+e.message;o[t]||(o[t]=!0,s.push(e))},a=n=>{let o=r?.trailingCommas?me(r.trailingCommas):c.Error,a=r?.comments?me(r.comments):this.commentSeverity,h=r?.schemaValidation?me(r.schemaValidation):c.Warning,m=r?.schemaRequest?me(r.schemaRequest):c.Warning;if(n){const s=(r,n)=>{if(t.root&&m){const s=t.root,o="object"===s.type?s.properties[0]:void 0;if(o&&"$schema"===o.keyNode.value){const t=o.valueNode||o,s=l.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length));i(u.create(s,r,m,n))}else{const t=l.create(e.positionAt(s.offset),e.positionAt(s.offset+1));i(u.create(t,r,m,n))}}};if(n.errors.length)s(n.errors[0],V.SchemaResolveError);else if(h){for(const e of n.warnings)s(e,V.SchemaUnsupportedFeature);const o=t.validate(e,n.schema,h,r?.schemaDraft);o&&o.forEach(i)}ue(n.schema)&&(a=void 0),he(n.schema)&&(o=void 0)}for(const e of t.syntaxErrors){if(e.code===V.TrailingComma){if("number"!=typeof o)continue;e.severity=o}i(e)}if("number"==typeof a){const e=S("Comments are not permitted in JSON.");t.comments.forEach(t=>{i(u.create(t,e,a,V.CommentNotPermitted))})}return s};if(n){const e=n.id||"schemaservice://untitled/"+le++;return this.jsonSchemaService.registerExternalSchema({uri:e,schema:n}).getResolvedSchema().then(e=>a(e))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then(e=>a(e))}getLanguageStatus(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}}}let le=0;function ue(e){if(e&&"object"==typeof e){if(C(e.allowComments))return e.allowComments;if(e.allOf)for(const t of e.allOf){const e=ue(t);if(C(e))return e}}}function he(e){if(e&&"object"==typeof e){if(C(e.allowTrailingCommas))return e.allowTrailingCommas;const t=e;if(C(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(const t of e.allOf){const e=he(t);if(C(e))return e}}}function me(e){switch(e){case"error":return c.Error;case"warning":return c.Warning;case"ignore":return}}function fe(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function pe(e){if("#"===e[0])switch(e.length){case 4:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*fe(e.charCodeAt(1))/255,green:17*fe(e.charCodeAt(2))/255,blue:17*fe(e.charCodeAt(3))/255,alpha:17*fe(e.charCodeAt(4))/255};case 7:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*fe(e.charCodeAt(1))+fe(e.charCodeAt(2)))/255,green:(16*fe(e.charCodeAt(3))+fe(e.charCodeAt(4)))/255,blue:(16*fe(e.charCodeAt(5))+fe(e.charCodeAt(6)))/255,alpha:(16*fe(e.charCodeAt(7))+fe(e.charCodeAt(8)))/255}}}class de{constructor(e){this.schemaService=e}findDocumentSymbols(e,t,r={resultLimit:Number.MAX_VALUE}){const n=t.root;if(!n)return[];let s=r.resultLimit||Number.MAX_VALUE;const o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||w(o.toLowerCase(),"/user/keybindings.json"))&&"array"===n.type){const t=[];for(const i of n.items)if("object"===i.type)for(const n of i.properties)if("key"===n.keyNode.value&&n.valueNode){const a=d.create(e.uri,ge(e,i));if(t.push({name:ye(n.valueNode),kind:g.Function,location:a}),s--,s<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),t}return t}const i=[{node:n,containerName:""}];let a=0,c=!1;const l=[],u=(t,r)=>{"array"===t.type?t.items.forEach(e=>{e&&i.push({node:e,containerName:r})}):"object"===t.type&&t.properties.forEach(t=>{const n=t.valueNode;if(n)if(s>0){s--;const o=d.create(e.uri,ge(e,t)),a=r?r+"."+t.keyNode.value:t.keyNode.value;l.push({name:this.getKeyLabel(t),kind:this.getSymbolKind(n.type),location:o,containerName:r}),i.push({node:n,containerName:a})}else c=!0})};for(;a<i.length;){const e=i[a++];u(e.node,e.containerName)}return c&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),l}findDocumentSymbols2(e,t,r={resultLimit:Number.MAX_VALUE}){const n=t.root;if(!n)return[];let s=r.resultLimit||Number.MAX_VALUE;const o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||w(o.toLowerCase(),"/user/keybindings.json"))&&"array"===n.type){const t=[];for(const i of n.items)if("object"===i.type)for(const n of i.properties)if("key"===n.keyNode.value&&n.valueNode){const a=ge(e,i),c=ge(e,n.keyNode);if(t.push({name:ye(n.valueNode),kind:g.Function,range:a,selectionRange:c}),s--,s<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),t}return t}const i=[],a=[{node:n,result:i}];let c=0,l=!1;const u=(t,r)=>{"array"===t.type?t.items.forEach((t,n)=>{if(t)if(s>0){s--;const o=ge(e,t),i=o,c={name:String(n),kind:this.getSymbolKind(t.type),range:o,selectionRange:i,children:[]};r.push(c),a.push({result:c.children,node:t})}else l=!0}):"object"===t.type&&t.properties.forEach(t=>{const n=t.valueNode;if(n)if(s>0){s--;const o=ge(e,t),i=ge(e,t.keyNode),c=[],l={name:this.getKeyLabel(t),kind:this.getSymbolKind(n.type),range:o,selectionRange:i,children:c,detail:this.getDetail(n)};r.push(l),a.push({result:c,node:n})}else l=!0})};for(;c<a.length;){const e=a[c++];u(e.node,e.result)}return l&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),i}getSymbolKind(e){switch(e){case"object":return g.Module;case"string":return g.String;case"number":return g.Number;case"array":return g.Array;case"boolean":return g.Boolean;default:return g.Variable}}getKeyLabel(e){let t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"↵")),t&&t.trim()?t:`"${t}"`}getDetail(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0}findDocumentColors(e,t,r){return this.schemaService.getSchemaForResource(e.uri,t).then(n=>{const s=[];if(n){let o=r&&"number"==typeof r.resultLimit?r.resultLimit:Number.MAX_VALUE;const i=t.getMatchingSchemas(n.schema),a={};for(const t of i)if(!t.inverted&&t.schema&&("color"===t.schema.format||"color-hex"===t.schema.format)&&t.node&&"string"===t.node.type){const n=String(t.node.offset);if(!a[n]){const i=pe(X(t.node));if(i){const r=ge(e,t.node);s.push({color:i,range:r})}if(a[n]=!0,o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(e.uri),s}}}return s})}getColorPresentations(e,t,r,n){const s=[],o=Math.round(255*r.red),i=Math.round(255*r.green),a=Math.round(255*r.blue);function c(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}let l;return l=1===r.alpha?`#${c(o)}${c(i)}${c(a)}`:`#${c(o)}${c(i)}${c(a)}${c(Math.round(255*r.alpha))}`,s.push({label:l,textEdit:p.replace(n,JSON.stringify(l))}),s}}function ge(e,t){return l.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function ye(e){return X(e)||S("<empty>")}const be={schemaAssociations:[],schemas:{"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},ve={id:S("A unique identifier for the schema."),$schema:S("The schema to verify this document against."),title:S("A descriptive title of the element."),description:S("A long description of the element. Used in hover menus and suggestions."),default:S("A default value. Used by suggestions."),multipleOf:S("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:S("The maximum numerical value, inclusive by default."),exclusiveMaximum:S("Makes the maximum property exclusive."),minimum:S("The minimum numerical value, inclusive by default."),exclusiveMinimum:S("Makes the minimum property exclusive."),maxLength:S("The maximum length of a string."),minLength:S("The minimum length of a string."),pattern:S("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:S("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:S("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:S("The maximum number of items that can be inside an array. Inclusive."),minItems:S("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:S("If all of the items in the array must be unique. Defaults to false."),maxProperties:S("The maximum number of properties an object can have. Inclusive."),minProperties:S("The minimum number of properties an object can have. Inclusive."),required:S("An array of strings that lists the names of all properties required on this object."),additionalProperties:S("Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:S("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:S("A map of property names to schemas for each property."),patternProperties:S("A map of regular expressions on property names to schemas for matching properties."),dependencies:S("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:S("The set of literal values that are valid."),type:S("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:S("Describes the format expected for the value."),allOf:S("An array of schemas, all of which must match."),anyOf:S("An array of schemas, where at least one must match."),oneOf:S("An array of schemas, exactly one of which must match."),not:S("A schema which must not match."),$id:S("A unique identifier for the schema."),$ref:S("Reference a definition hosted on any location."),$comment:S("Comments from schema authors to readers or maintainers of the schema."),readOnly:S("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:S("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:S('An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:S("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:S("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:S("Describes the media type of a string property."),contentEncoding:S("Describes the content encoding of a string property."),if:S('The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:S('The "if" subschema is used for validation when the "if" subschema succeeds.'),else:S('The "else" subschema is used for validation when the "if" subschema fails.')};for(const e in be.schemas){const t=be.schemas[e];for(const e in t.properties){let r=t.properties[e];"boolean"==typeof r&&(r=t.properties[e]={});const n=ve[e];n&&(r.description=n)}}function Se(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");const r=String(e);let n="";const s=!!t,o=!!t;let i=!1;const a=t&&"string"==typeof t.flags?t.flags:"";let c;for(let e=0,t=r.length;e<t;e++)switch(c=r[e],c){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":n+="\\"+c;break;case"?":if(s){n+=".";break}case"[":case"]":if(s){n+=c;break}case"{":if(s){i=!0,n+="(";break}case"}":if(s){i=!1,n+=")";break}case",":if(i){n+="|";break}n+="\\"+c;break;case"*":const t=r[e-1];let a=1;for(;"*"===r[e+1];)a++,e++;const l=r[e+1];if(o){a>1&&("/"===t||void 0===t||"{"===t||","===t)&&("/"===l||void 0===l||","===l||"}"===l)?("/"===l?e++:"/"===t&&n.endsWith("\\/")&&(n=n.substr(0,n.length-2)),n+="((?:[^/]*(?:/|$))*)"):n+="([^/]*)"}else n+=".*";break;default:n+=c}return a&&~a.indexOf("g")||(n="^"+n+"$"),new RegExp(n,a)}class xe{constructor(e,t,r){this.folderUri=t,this.uris=r,this.globWrappers=[];try{for(let t of e){const e="!"!==t[0];e||(t=t.substring(1)),t.length>0&&("/"===t[0]&&(t=t.substring(1)),this.globWrappers.push({regexp:Se("**/"+t,{extended:!0,globstar:!0}),include:e}))}t&&((t=Pe(t)).endsWith("/")||(t+="/"),this.folderUri=t)}catch(e){this.globWrappers.length=0,this.uris=[]}}matchesPattern(e){if(this.folderUri&&!e.startsWith(this.folderUri))return!1;let t=!1;for(const{regexp:r,include:n}of this.globWrappers)r.test(e)&&(t=n);return t}getURIs(){return this.uris}}class Te{constructor(e,t,r){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,r&&(this.unresolvedSchema=this.service.promise.resolve(new Ae(r)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(e=>this.service.resolveSchemaContent(e,this))),this.resolvedSchema}clearSchema(){const e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e}}class Ae{constructor(e,t=[]){this.schema=e,this.errors=t}}class ke{constructor(e,t=[],r=[],n){this.schema=e,this.errors=t,this.warnings=r,this.schemaDraft=n}getSection(e){const t=this.getSectionRecursive(e,this.schema);if(t)return J(t)}getSectionRecursive(e,t){if(!t||"boolean"==typeof t||0===e.length)return t;const r=e.shift();if(t.properties&&(t.properties[r],1))return this.getSectionRecursive(e,t.properties[r]);if(t.patternProperties)for(const n of Object.keys(t.patternProperties)){const s=I(n);if(s?.test(r))return this.getSectionRecursive(e,t.patternProperties[n])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(r.match("[0-9]+"))if(Array.isArray(t.items)){const n=parseInt(r,10);if(!isNaN(n)&&t.items[n])return this.getSectionRecursive(e,t.items[n])}else if(t.items)return this.getSectionRecursive(e,t.items)}}}class Ne{constructor(e,t,r){this.contextService=t,this.requestService=e,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(e){return Object.keys(this.registeredSchemasIds).filter(t=>{const r=x.parse(t).scheme;return"schemaservice"!==r&&(!e||e(r))})}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(e){this.cachedSchemaForResource=void 0;let t=!1;const r=[e=Oe(e)],n=Object.keys(this.schemasById).map(e=>this.schemasById[e]);for(;r.length;){const e=r.pop();for(let s=0;s<n.length;s++){const o=n[s];o&&(o.uri===e||o.dependencies.has(e))&&(o.uri!==e&&r.push(o.uri),o.clearSchema()&&(t=!0),n[s]=void 0)}}return t}setSchemaContributions(e){if(e.schemas){const t=e.schemas;for(const e in t){const r=Oe(e);this.contributionSchemas[r]=this.addSchemaHandle(r,t[e])}}if(Array.isArray(e.schemaAssociations)){const t=e.schemaAssociations;for(let e of t){const t=e.uris.map(Oe),r=this.addFilePatternAssociation(e.pattern,e.folderUri,t);this.contributionAssociations.push(r)}}}addSchemaHandle(e,t){const r=new Te(this,e,t);return this.schemasById[e]=r,r}getOrAddSchemaHandle(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)}addFilePatternAssociation(e,t,r){const n=new xe(e,t,r);return this.filePatternAssociations.push(n),n}registerExternalSchema(e){const t=Oe(e.uri);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,e.fileMatch&&e.fileMatch.length&&this.addFilePatternAssociation(e.fileMatch,e.folderUri,[t]),e.schema?this.addSchemaHandle(t,e.schema):this.getOrAddSchemaHandle(t)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(const e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(const e of this.contributionAssociations)this.filePatternAssociations.push(e)}getResolvedSchema(e){const t=Oe(e),r=this.schemasById[t];return r?r.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(e){if(!this.requestService){const t=S("Unable to load schema from '{0}'. No schema request service available",we(e));return this.promise.resolve(new Ae({},[t]))}return e.startsWith("http://json-schema.org/")&&(e="https"+e.substring(4)),this.requestService(e).then(t=>{if(!t){const t=S("Unable to load schema from '{0}': No content.",we(e));return new Ae({},[t])}const r=[];65279===t.charCodeAt(0)&&(r.push(S("Problem reading content from '{0}': UTF-8 with BOM detected, only UTF 8 is allowed.",we(e))),t=t.trimStart());let n={};const s=[];return n=o(t,s),s.length&&r.push(S("Unable to parse content from '{0}': Parse error at offset {1}.",we(e),s[0].offset)),new Ae(n,r)},t=>{let r=t.toString();const n=t.toString().split("Error: ");return n.length>1&&(r=n[1]),w(r,".")&&(r=r.substr(0,r.length-1)),new Ae({},[S("Unable to load schema from '{0}': {1}.",we(e),r)])})}resolveSchemaContent(e,t){const r=e.errors.slice(0),n=e.schema;let s=n.$schema?Oe(n.$schema):void 0;if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new ke({},[S("Draft-03 schemas are not supported.")],[],s));let o=new Set;const i=this.contextService,a=(e,t,n,s)=>{let o;o=void 0===s||0===s.length?t:"/"===s.charAt(0)?((e,t)=>{t=decodeURIComponent(t);let r=e;return"/"===t[0]&&(t=t.substring(1)),t.split("/").some(e=>(e=e.replace(/~1/g,"/").replace(/~0/g,"~"),r=r[e],!r)),r})(t,s):((e,t,r)=>(t.anchors||(t.anchors=u(e)),t.anchors.get(r)))(t,n,s),o?((e,t)=>{for(const r in t)t.hasOwnProperty(r)&&"id"!==r&&"$id"!==r&&(e[r]=t[r])})(e,o):r.push(S("$ref '{0}' in '{1}' can not be resolved.",s||"",n.uri))},c=(e,t,n,s)=>{i&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=i.resolveRelativePath(t,s.uri)),t=Oe(t);const o=this.getOrAddSchemaHandle(t);return o.getUnresolvedSchema().then(i=>{if(s.dependencies.add(t),i.errors.length){const e=n?t+"#"+n:t;r.push(S("Problems loading reference '{0}': {1}",e,i.errors[0]))}return a(e,i.schema,o,n),l(e,i.schema,o)})},l=(e,t,r)=>{const n=[];return this.traverseNodes(e,e=>{const s=new Set;for(;e.$ref;){const o=e.$ref,i=o.split("#",2);if(delete e.$ref,i[0].length>0)return void n.push(c(e,i[0],i[1],r));if(!s.has(o)){const n=i[1];a(e,t,r,n),s.add(o)}}e.$recursiveRef&&o.add("$recursiveRef"),e.$dynamicRef&&o.add("$dynamicRef")}),this.promise.all(n)},u=e=>{const t=new Map;return this.traverseNodes(e,e=>{const n=e.$id||e.id,s=O(n)&&"#"===n.charAt(0)?n.substring(1):e.$anchor;s&&(t.has(s)?r.push(S("Duplicate anchor declaration: '{0}'",s)):t.set(s,e)),e.$recursiveAnchor&&o.add("$recursiveAnchor"),e.$dynamicAnchor&&o.add("$dynamicAnchor")}),t};return l(n,n,t).then(e=>{let t=[];return o.size&&t.push(S("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(o.keys()).join(", "))),new ke(n,r,t,s)})}traverseNodes(e,t){if(!e||"object"!=typeof e)return Promise.resolve(null);const r=new Set,n=(...e)=>{for(const t of e)P(t)&&a.push(t)},s=(...e)=>{for(const t of e)if(P(t))for(const e in t){const r=t[e];P(r)&&a.push(r)}},o=(...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)P(e)&&a.push(e)},i=e=>{if(Array.isArray(e))for(const t of e)P(t)&&a.push(t);else P(e)&&a.push(e)},a=[e];let c=a.pop();for(;c;)r.has(c)||(r.add(c),t(c),n(c.additionalItems,c.additionalProperties,c.not,c.contains,c.propertyNames,c.if,c.then,c.else,c.unevaluatedItems,c.unevaluatedProperties),s(c.definitions,c.$defs,c.properties,c.patternProperties,c.dependencies,c.dependentSchemas),o(c.anyOf,c.allOf,c.oneOf,c.prefixItems),i(c.items)),c=a.pop()}getSchemaFromProperty(e,t){if("object"===t.root?.type)for(const r of t.root.properties)if("$schema"===r.keyNode.value&&"string"===r.valueNode?.type){let t=r.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(t)&&(t=this.contextService.resolveRelativePath(t,e)),t}}getAssociatedSchemas(e){const t=Object.create(null),r=[],n=Pe(e);for(const e of this.filePatternAssociations)if(e.matchesPattern(n))for(const n of e.getURIs())t[n]||(r.push(n),t[n]=!0);return r}getSchemaURIsForResource(e,t){let r=t&&this.getSchemaFromProperty(e,t);return r?[r]:this.getAssociatedSchemas(e)}getSchemaForResource(e,t){if(t){let r=this.getSchemaFromProperty(e,t);if(r){const e=Oe(r);return this.getOrAddSchemaHandle(e).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;const r=this.getAssociatedSchemas(e),n=r.length>0?this.createCombinedSchema(e,r).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:n},n}createCombinedSchema(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);{const r="schemaservice://combinedSchema/"+encodeURIComponent(e),n={allOf:t.map(e=>({$ref:e}))};return this.addSchemaHandle(r,n)}}getMatchingSchemas(e,t,r){if(r){const e=r.id||"schemaservice://untitled/matchingSchemas/"+Ce++;return this.addSchemaHandle(e,r).getResolvedSchema().then(e=>t.getMatchingSchemas(e.schema).filter(e=>!e.inverted))}return this.getSchemaForResource(e.uri,t).then(e=>e?t.getMatchingSchemas(e.schema).filter(e=>!e.inverted):[])}}let Ce=0;function Oe(e){try{return x.parse(e).toString(!0)}catch(t){return e}}function Pe(e){try{return x.parse(e).with({fragment:null,query:null}).toString(!0)}catch(t){return e}}function we(e){try{const t=x.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function Ie(e,r){const n=[],s=[],o=[];let i=-1;const a=t(e.getText(),!1);let c=a.scan();function l(e){n.push(e),s.push(o.length)}for(;17!==c;){switch(c){case 1:case 3:{const t=e.positionAt(a.getTokenOffset()).line,r={startLine:t,endLine:t,kind:1===c?"object":"array"};o.push(r);break}case 2:case 4:{const t=2===c?"object":"array";if(o.length>0&&o[o.length-1].kind===t){const t=o.pop(),r=e.positionAt(a.getTokenOffset()).line;t&&r>t.startLine+1&&i!==t.startLine&&(t.endLine=r-1,l(t),i=t.startLine)}break}case 13:{const t=e.positionAt(a.getTokenOffset()).line,r=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;1===a.getTokenError()&&t+1<e.lineCount?a.setPosition(e.offsetAt(b.create(t+1,0))):t<r&&(l({startLine:t,endLine:r,kind:y.Comment}),i=t);break}case 12:{const t=e.getText().substr(a.getTokenOffset(),a.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(t){const r=e.positionAt(a.getTokenOffset()).line;if(t[1]){const e={startLine:r,endLine:r,kind:y.Region};o.push(e)}else{let e=o.length-1;for(;e>=0&&o[e].kind!==y.Region;)e--;if(e>=0){const t=o[e];o.length=e,r>t.startLine&&i!==t.startLine&&(t.endLine=r,l(t),i=t.startLine)}}}break}}c=a.scan()}const u=r&&r.rangeLimit;if("number"!=typeof u||n.length<=u)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);const h=[];for(let e of s)e<30&&(h[e]=(h[e]||0)+1);let m=0,f=0;for(let e=0;e<h.length;e++){const t=h[e];if(t){if(t+m>u){f=e;break}m+=t}}const p=[];for(let e=0;e<n.length;e++){const t=s[e];"number"==typeof t&&(t<f||t===f&&m++<u)&&p.push(n[e])}return p}function Me(e,r,n){function s(t,r){return l.create(e.positionAt(t),e.positionAt(r))}const o=t(e.getText(),!0);function i(e,t){return o.setPosition(e),o.scan()===t?o.getTokenOffset()+o.getTokenLength():-1}return r.map(function(t){let r=e.offsetAt(t),o=n.getNodeFromOffset(r,!0);const a=[];for(;o;){switch(o.type){case"string":case"object":case"array":const e=o.offset+1,t=o.offset+o.length-1;e<t&&r>=e&&r<=t&&a.push(s(e,t)),a.push(s(o.offset,o.offset+o.length));break;case"number":case"boolean":case"null":case"property":a.push(s(o.offset,o.offset+o.length))}if("property"===o.type||o.parent&&"array"===o.parent.type){const e=i(o.offset+o.length,5);-1!==e&&a.push(s(o.offset,e))}o=o.parent}let c;for(let e=a.length-1;e>=0;e--)c=v.create(a[e],c);return c||(c=v.create(l.create(t,t))),c})}function Ve(e,t,r){let n;if(r){const t=e.offsetAt(r.start);n={offset:t,length:e.offsetAt(r.end)-t}}const s={tabSize:t?t.tabSize:4,insertSpaces:!0===t?.insertSpaces,insertFinalNewline:!0===t?.insertFinalNewline,eol:"\n",keepLines:!0===t?.keepLines};return i(e.getText(),n,s).map(t=>p.replace(l.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content))}var Le;!function(e){e[e.Object=0]="Object",e[e.Array=1]="Array"}(Le||(Le={}));class Ee{constructor(e,t){this.propertyName=e??"",this.beginningLineNumber=t,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(e){if(e.parent=this,this.childrenProperties.length>0){let t=0;t=e.noKeyName?this.childrenProperties.length:function(e,t,r){const n=t.propertyName.toLowerCase(),s=e[0].propertyName.toLowerCase(),o=e[e.length-1].propertyName.toLowerCase();if(n<s)return 0;if(n>o)return e.length;let i=0,a=e.length-1;for(;i<=a;){let n=a+i>>1,s=r(t,e[n]);if(s>0)i=n+1;else{if(!(s<0))return n;a=n-1}}return-i-1}(this.childrenProperties,e,$e),t<0&&(t=-1*t-1),this.childrenProperties.splice(t,0,e)}else this.childrenProperties.push(e);return e}}function $e(e,t){const r=e.propertyName.toLowerCase(),n=t.propertyName.toLowerCase();return r<n?-1:r>n?1:0}function Fe(e,r){const n={...r,keepLines:!1},s=T.applyEdits(e,Ve(e,n,void 0)),o=T.create("test://test.json","json",0,s),i=function(e,t){if(0===t.childrenProperties.length)return e;const r=T.create("test://test.json","json",0,e.getText()),n=[];je(n,t,t.beginningLineNumber);for(;n.length>0;){const t=n.shift(),s=t.propertyTreeArray;let o=t.beginningLineNumber;for(let t=0;t<s.length;t++){const i=s[t],a=l.create(b.create(i.beginningLineNumber,0),b.create(i.endLineNumber+1,0)),c=e.getText(a),u=T.create("test://test.json","json",0,c);if(!0===i.lastProperty&&t!==s.length-1){const e=i.lineWhereToAddComma-i.beginningLineNumber,t=i.indexWhereToAddComa,r={range:l.create(b.create(e,t),b.create(e,t)),text:","};T.update(u,[r],1)}else if(!1===i.lastProperty&&t===s.length-1){const e=i.commaIndex,t=i.commaLine-i.beginningLineNumber,r={range:l.create(b.create(t,e),b.create(t,e+1)),text:""};T.update(u,[r],1)}const h=i.endLineNumber-i.beginningLineNumber+1,m={range:l.create(b.create(o,0),b.create(o+h,0)),text:u.getText()};T.update(r,[m],1),je(n,i,o),o+=h}}return r}(o,function(e){const r=e.getText(),n=t(r,!1);let s,o,i,a=new Ee,c=a,u=a,h=a,m=0,f=0,p=-1,d=-1,g=0,y=0,v=[],S=!1,x=!1;for(;17!==(s=n.scan());){if(!0===S&&14!==s&&15!==s&&12!==s&&13!==s&&void 0===u.endLineNumber){let e=n.getTokenStartLine();2===i||4===i?h.endLineNumber=e-1:u.endLineNumber=e-1,g=e,S=!1}if(!0===x&&14!==s&&15!==s&&12!==s&&13!==s&&(g=n.getTokenStartLine(),x=!1),n.getTokenStartLine()!==m){for(let t=m;t<n.getTokenStartLine();t++){f+=e.getText(l.create(b.create(t,0),b.create(t+1,0))).length}m=n.getTokenStartLine()}switch(s){case 10:if(void 0===o||1===o||5===o&&v[v.length-1]===Le.Object){const e=new Ee(n.getTokenValue(),g);h=u,u=c.addChildProperty(e)}break;case 3:if(void 0===a.beginningLineNumber&&(a.beginningLineNumber=n.getTokenStartLine()),v[v.length-1]===Le.Object)c=u;else if(v[v.length-1]===Le.Array){const e=new Ee(n.getTokenValue(),g);e.noKeyName=!0,h=u,u=c.addChildProperty(e),c=u}v.push(Le.Array),u.type=Le.Array,g=n.getTokenStartLine(),g++;break;case 1:if(void 0===a.beginningLineNumber)a.beginningLineNumber=n.getTokenStartLine();else if(v[v.length-1]===Le.Array){const e=new Ee(n.getTokenValue(),g);e.noKeyName=!0,h=u,u=c.addChildProperty(e)}u.type=Le.Object,v.push(Le.Object),c=u,g=n.getTokenStartLine(),g++;break;case 4:y=n.getTokenStartLine(),v.pop(),void 0!==u.endLineNumber||2!==o&&4!==o||(u.endLineNumber=y-1,u.lastProperty=!0,u.lineWhereToAddComma=p,u.indexWhereToAddComa=d,h=u,u=u?u.parent:void 0,c=u),a.endLineNumber=y,g=y+1;break;case 2:y=n.getTokenStartLine(),v.pop(),1!==o&&(void 0===u.endLineNumber&&(u.endLineNumber=y-1,u.lastProperty=!0,u.lineWhereToAddComma=p,u.indexWhereToAddComa=d),h=u,u=u?u.parent:void 0,c=u),a.endLineNumber=n.getTokenStartLine(),g=y+1;break;case 5:y=n.getTokenStartLine(),void 0!==u.endLineNumber||v[v.length-1]!==Le.Object&&(v[v.length-1]!==Le.Array||2!==o&&4!==o)||(u.endLineNumber=y,u.commaIndex=n.getTokenOffset()-f,u.commaLine=y),2!==o&&4!==o||(h=u,u=u?u.parent:void 0,c=u),g=y+1;break;case 13:5!==o||p!==n.getTokenStartLine()||(v[v.length-1]!==Le.Array||2!==i&&4!==i)&&v[v.length-1]!==Le.Object||(v[v.length-1]!==Le.Array||2!==i&&4!==i)&&v[v.length-1]!==Le.Object||(u.endLineNumber=void 0,S=!0),1!==o&&3!==o||p!==n.getTokenStartLine()||(x=!0)}14!==s&&13!==s&&12!==s&&15!==s&&(i=o,o=s,p=n.getTokenStartLine(),d=n.getTokenOffset()+n.getTokenLength()-f)}return a}(o)),a=Ve(i,n,void 0),c=T.applyEdits(i,a);return[p.replace(l.create(b.create(0,0),e.positionAt(e.getText().length)),c)]}function je(e,t,r){if(0!==t.childrenProperties.length)if(t.type===Le.Object){let n=1/0;for(const e of t.childrenProperties)e.beginningLineNumber<n&&(n=e.beginningLineNumber);r+=n-t.beginningLineNumber,e.push(new Re(r,t.childrenProperties))}else t.type===Le.Array&&De(e,t,r)}function De(e,t,r){for(const n of t.childrenProperties){if(n.type===Le.Object){let s=1/0;for(const e of n.childrenProperties)e.beginningLineNumber<s&&(s=e.beginningLineNumber);const o=s-n.beginningLineNumber;e.push(new Re(r+n.beginningLineNumber-t.beginningLineNumber+o,n.childrenProperties))}n.type===Le.Array&&De(e,n,r+n.beginningLineNumber-t.beginningLineNumber)}}class Re{constructor(e,t){this.beginningLineNumber=e,this.propertyTreeArray=t}}function _e(e,t){const r=[];return t.visit(n=>{if("property"===n.type&&"$ref"===n.keyNode.value&&"string"===n.valueNode?.type){const s=n.valueNode.value,o=function(e,t){const r=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(Ke)}(t);if(!r)return null;return qe(r,e.root)}(t,s);if(o){const t=e.positionAt(o.offset);r.push({target:`${e.uri}#${t.line+1},${t.character+1}`,range:Ue(e,n.valueNode)})}}return!0}),Promise.resolve(r)}function Ue(e,t){return l.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function qe(e,t){if(!t)return null;if(0===e.length)return t;const r=e.shift();if(t&&"object"===t.type){const n=t.properties.find(e=>e.keyNode.value===r);return n?qe(e,n.valueNode):null}if(t&&"array"===t.type&&r.match(/^(0|[1-9][0-9]*)$/)){const n=Number.parseInt(r),s=t.items[n];return s?qe(e,s):null}return null}function Ke(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Je(e){const t=e.promiseConstructor||Promise,r=new Ne(e.schemaRequestService,e.workspaceContext,t);r.setSchemaContributions(be);const n=new oe(r,e.contributions,t,e.clientCapabilities),s=new ie(r,e.contributions,t),o=new de(r),i=new ce(r,t);return{configure:e=>{r.clearExternalSchemas(),e.schemas?.forEach(r.registerExternalSchema.bind(r)),i.configure(e)},resetSchema:e=>r.onResourceChange(e),doValidation:i.doValidation.bind(i),getLanguageStatus:i.getLanguageStatus.bind(i),parseJSONDocument:e=>ne(e,{collectComments:!0}),newJSONDocument:(e,t)=>function(e,t=[]){return new ee(e,t,[])}(e,t),getMatchingSchemas:r.getMatchingSchemas.bind(r),doResolve:n.doResolve.bind(n),doComplete:n.doComplete.bind(n),findDocumentSymbols:o.findDocumentSymbols.bind(o),findDocumentSymbols2:o.findDocumentSymbols2.bind(o),findDocumentColors:o.findDocumentColors.bind(o),getColorPresentations:o.getColorPresentations.bind(o),doHover:s.doHover.bind(s),getFoldingRanges:Ie,getSelectionRanges:Me,findDefinition:()=>Promise.resolve([]),findLinks:_e,format:(e,t,r)=>Ve(e,r,t),sort:(e,t)=>Fe(e,t)}}let Be;"undefined"!=typeof fetch&&(Be=function(e){return fetch(e).then(e=>e.text())});class We{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Je({workspaceContext:{resolveRelativePath:(e,t)=>function(e,t){if(function(e){return e.charCodeAt(0)===He}(t)){const r=x.parse(e),n=t.split("/");return r.with({path:Ge(n)}).toString()}return function(e,...t){const r=x.parse(e),n=r.path.split("/");for(let e of t)n.push(...e.split("/"));return r.with({path:Ge(n)}).toString()}(e,t)}(t.substr(0,t.lastIndexOf("/")+1),e)},schemaRequestService:t.enableSchemaRequest?Be:void 0,clientCapabilities:E.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,e,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let r=this._getTextDocument(e);if(!r)return null;let n=this._languageService.parseJSONDocument(r);return this._languageService.doComplete(r,t,n)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let r=this._getTextDocument(e);if(!r)return null;let n=this._languageService.parseJSONDocument(r);return this._languageService.doHover(r,t,n)}async format(e,t,r){let n=this._getTextDocument(e);if(!n)return[];let s=this._languageService.format(n,t,r);return Promise.resolve(s)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let r=this._languageService.parseJSONDocument(t),n=this._languageService.findDocumentSymbols2(t,r);return Promise.resolve(n)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let r=this._languageService.parseJSONDocument(t),n=this._languageService.findDocumentColors(t,r);return Promise.resolve(n)}async getColorPresentations(e,t,r){let n=this._getTextDocument(e);if(!n)return[];let s=this._languageService.parseJSONDocument(n),o=this._languageService.getColorPresentations(n,s,t,r);return Promise.resolve(o)}async getFoldingRanges(e,t){let r=this._getTextDocument(e);if(!r)return[];let n=this._languageService.getFoldingRanges(r,t);return Promise.resolve(n)}async getSelectionRanges(e,t){let r=this._getTextDocument(e);if(!r)return[];let n=this._languageService.parseJSONDocument(r),s=this._languageService.getSelectionRanges(r,t,n);return Promise.resolve(s)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let r=this._languageService.parseJSONDocument(t);return Promise.resolve(r)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let r=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,r))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let r of t)if(r.uri.toString()===e)return T.create(e,this._languageId,r.version,r.getValue());return null}}const He="/".charCodeAt(0),ze=".".charCodeAt(0);function Ge(e){const t=[];for(const r of e)0===r.length||1===r.length&&r.charCodeAt(0)===ze||(2===r.length&&r.charCodeAt(0)===ze&&r.charCodeAt(1)===ze?t.pop():t.push(r));e.length>1&&0===e[e.length-1].length&&t.push("");let r=t.join("/");return 0===e[0].length&&(r="/"+r),r}self.onmessage=()=>{e((e,t)=>new We(e,t))};
@@ -1 +0,0 @@
1
- import{c as s,l as r,e as n}from"./index-CYtUYanB.js";import{D as o,a,C as c,H as l,b as u,c as p,F as d,S as m,d as w}from"./lspLanguageFeatures-Ct9P2u7j.js";export{e as DefinitionAdapter,f as DocumentHighlightAdapter,g as DocumentLinkAdapter,R as ReferenceAdapter,h as RenameAdapter,i as fromPosition,j as fromRange,t as toRange,k as toTextEdit}from"./lspLanguageFeatures-Ct9P2u7j.js";import{c as _}from"./main-DlX1vOF-.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-window";import"react-hook-form";import"react-day-picker";import"react-google-recaptcha";import"react-virtuoso";import"./editorWorkerHost-CvlBJcBX.js";import"react-archer";import"react-phone-input-2";import"react-phone-number-input";import"react-draft-wysiwyg";import"./main-B28dfOH0.js";class b{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=s({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("json.worker.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}}function C(e){return{getInitialState:()=>new T(null,null,!1,null),tokenize:(e,t)=>function(e,t,s,r=0){let n=0,o=!1;switch(s.scanError){case 2:t='"'+t,n=1;break;case 1:t="/*"+t,n=2}const a=_(t);let i=s.lastWasColon,c=s.parents;const l={tokens:[],endState:s.clone()};for(;;){let e=r+a.getPosition(),u="";const h=a.scan();if(17===h)break;if(e===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(e-=n),o=n>0,h){case 1:c=q.push(c,0),u=S,i=!1;break;case 2:c=q.pop(c),u=S,i=!1;break;case 3:c=q.push(c,1),u=v,i=!1;break;case 4:c=q.pop(c),u=v,i=!1;break;case 6:u=I,i=!0;break;case 5:u=D,i=!1;break;case 8:case 9:u=P,i=!1;break;case 7:u=y,i=!1;break;case 10:const e=c?c.type:0;u=i||1===e?W:L,i=!1;break;case 11:u=E,i=!1}switch(h){case 12:u=F;break;case 13:u=x}l.endState=new T(s.getStateData(),a.getTokenError(),i,c),l.tokens.push({startIndex:e,scopes:u})}return l}(0,e,t)}}const S="delimiter.bracket.json",v="delimiter.array.json",I="delimiter.colon.json",D="delimiter.comma.json",P="keyword.json",y="keyword.json",W="string.value.json",E="number.json",L="string.key.json",x="comment.block.json",F="comment.line.json";class q{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(e,t){return new q(e,t)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}}class T{constructor(e,t,s,r){this._state=e,this.scanError=t,this.lastWasColon=s,this.parents=r}clone(){return new T(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this||!!(e&&e instanceof T)&&(this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&q.equals(this.parents,e.parents))}getStateData(){return this._state}setStateData(e){this._state=e}}let A;function H(){return new Promise((e,t)=>{if(!A)return t("JSON not registered!");e(A)})}class U extends w{constructor(e,t,s){super(e,t,s.onDidChange),this._disposables.push(n.onWillDisposeModel(e=>{this._resetSchema(e.uri)})),this._disposables.push(n.onDidChangeModelLanguage(e=>{this._resetSchema(e.model.uri)}))}_resetSchema(e){this._worker().then(t=>{t.resetSchema(e.toString())})}}function O(e){const t=[],s=[],n=new b(e);function i(){const{languageId:t,modeConfiguration:n}=e;z(s),n.documentFormattingEdits&&s.push(r.registerDocumentFormattingEditProvider(t,new o(A))),n.documentRangeFormattingEdits&&s.push(r.registerDocumentRangeFormattingEditProvider(t,new a(A))),n.completionItems&&s.push(r.registerCompletionItemProvider(t,new c(A,[" ",":",'"']))),n.hovers&&s.push(r.registerHoverProvider(t,new l(A))),n.documentSymbols&&s.push(r.registerDocumentSymbolProvider(t,new u(A))),n.tokens&&s.push(r.setTokensProvider(t,C())),n.colors&&s.push(r.registerColorProvider(t,new p(A))),n.foldingRanges&&s.push(r.registerFoldingRangeProvider(t,new d(A))),n.diagnostics&&s.push(new U(t,A,e)),n.selectionRanges&&s.push(r.registerSelectionRangeProvider(t,new m(A)))}t.push(n),A=(...e)=>n.getLanguageServiceWorker(...e),i(),t.push(r.setLanguageConfiguration(e.languageId,J));let h=e.modeConfiguration;return e.onDidChange(e=>{e.modeConfiguration!==h&&(h=e.modeConfiguration,i())}),t.push(M(s)),M(t)}function M(e){return{dispose:()=>z(e)}}function z(e){for(;e.length;)e.pop().dispose()}const J={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{c as CompletionAdapter,w as DiagnosticsAdapter,p as DocumentColorAdapter,o as DocumentFormattingEditProvider,a as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,d as FoldingRangeAdapter,l as HoverAdapter,m as SelectionRangeAdapter,b as WorkerManager,H as getWorker,O as setupMode};
@@ -1 +0,0 @@
1
- const e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","π","ℯ","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","÷","∈","∉","∋","∌","∘","√","∛","∩","∪","≈","≉","≠","≡","≢","≤","≥","⊆","⊇","⊈","⊉","⊊","⊋","⊻"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}};export{e as conf,t as language};
@@ -1 +0,0 @@
1
- const e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},t={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[A-Z][\w\$]*/,"type.identifier"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fF]?/,"number.float"],[/(@digits)?\.(@digits)([eE][\-+]?(@digits))?[fF]?/,"number.float"],[/0[xX](@hexdigits)[uU]?L?/,"number.hex"],[/0[bB](@binarydigits)[uU]?L?/,"number.binary"],[/(@digits)[fF]/,"number.float"],[/(@digits)[uU]?L?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}};export{e as conf,t as language};
@@ -1 +0,0 @@
1
- const e={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}};export{e as conf,t as language};
@@ -1 +0,0 @@
1
- const e={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},t={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,["","comment"]],[/"/,{token:"identifier.quote",bracket:"@open",next:"@quoted_identifier"}],["LEX$",{token:"keyword",bracket:"@open",next:"@identifier_until_period"}],["LEXON",{token:"keyword",bracket:"@open",next:"@semver"}],[":",{token:"delimiter",bracket:"@open",next:"@identifier_until_period"}],[/[a-z_$][\w$]*/,{cases:{"@operators":"operator","@typeKeywords":"keyword.type","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}};export{e as conf,t as language};
@@ -1 +0,0 @@
1
- import{l as e}from"./index-CYtUYanB.js";import"react/jsx-runtime";import"react";import"react-dom";import"react-window";import"react-hook-form";import"react-day-picker";import"react-google-recaptcha";import"react-virtuoso";import"./editorWorkerHost-CvlBJcBX.js";import"react-archer";import"react-phone-input-2";import"react-phone-number-input";import"react-draft-wysiwyg";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{i as conf,r as language};
@@ -1 +0,0 @@
1
- import{I as e,b as t,e as r,S as n,F as i,D as s}from"./main-B28dfOH0.js";import{R as o,l as a,e as u,U as c,a as l}from"./index-CYtUYanB.js";class d{constructor(e,t,r){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const n=e=>{let t,r=e.getLanguageId();r===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent(()=>{window.clearTimeout(t),t=window.setTimeout(()=>this._doValidate(e.uri,r),500)}),this._doValidate(e.uri,r))},i=e=>{u.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),r=this._listener[t];r&&(r.dispose(),delete this._listener[t])};this._disposables.push(u.onDidCreateModel(n)),this._disposables.push(u.onWillDisposeModel(i)),this._disposables.push(u.onDidChangeModelLanguage(e=>{i(e.model),n(e.model)})),this._disposables.push(r(e=>{u.getModels().forEach(e=>{e.getLanguageId()===this._languageId&&(i(e),n(e))})})),this._disposables.push({dispose:()=>{u.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),u.getModels().forEach(n)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(t=>t.doValidation(e.toString())).then(r=>{const n=r.map(e=>function(e,t){let r="number"==typeof t.code?String(t.code):t.code;return{severity:g(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:r,source:t.source}}(0,e));let i=u.getModel(e);i&&i.getLanguageId()===t&&u.setModelMarkers(i,t,n)}).then(void 0,e=>{console.error(e)})}}function g(e){switch(e){case s.Error:return l.Error;case s.Warning:return l.Warning;case s.Information:return l.Info;case s.Hint:return l.Hint;default:return l.Info}}class h{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(t,r,n,i){const s=t.uri;return this._worker(s).then(e=>e.doComplete(s.toString(),m(r))).then(n=>{if(!n)return;const i=t.getWordUntilPosition(r),s=new o(r.lineNumber,i.startColumn,r.lineNumber,i.endColumn),u=n.items.map(t=>{const r={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,documentation:t.documentation,detail:t.detail,command:(n=t.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:s,kind:_(t.kind)};var n,i;return t.textEdit&&(void 0!==(i=t.textEdit).insert&&void 0!==i.replace?r.range={insert:f(t.textEdit.insert),replace:f(t.textEdit.replace)}:r.range=f(t.textEdit.range),r.insertText=t.textEdit.newText),t.additionalTextEdits&&(r.additionalTextEdits=t.additionalTextEdits.map(k)),t.insertTextFormat===e.Snippet&&(r.insertTextRules=a.CompletionItemInsertTextRule.InsertAsSnippet),r});return{isIncomplete:n.isIncomplete,suggestions:u}})}}function m(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function p(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function f(e){if(e)return new o(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function _(e){const r=a.CompletionItemKind;switch(e){case t.Text:return r.Text;case t.Method:return r.Method;case t.Function:return r.Function;case t.Constructor:return r.Constructor;case t.Field:return r.Field;case t.Variable:return r.Variable;case t.Class:return r.Class;case t.Interface:return r.Interface;case t.Module:return r.Module;case t.Property:return r.Property;case t.Unit:return r.Unit;case t.Value:return r.Value;case t.Enum:return r.Enum;case t.Keyword:return r.Keyword;case t.Snippet:return r.Snippet;case t.Color:return r.Color;case t.File:return r.File;case t.Reference:return r.Reference}return r.Property}function k(e){if(e)return{range:f(e.range),text:e.newText}}class w{constructor(e){this._worker=e}provideHover(e,t,r){let n=e.uri;return this._worker(n).then(e=>e.doHover(n.toString(),m(t))).then(e=>{if(e)return{range:f(e.range),contents:b(e.contents)}})}}function x(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function b(e){if(e)return Array.isArray(e)?e.map(x):[x(e)]}class C{constructor(e){this._worker=e}provideDocumentHighlights(e,t,r){const n=e.uri;return this._worker(n).then(e=>e.findDocumentHighlights(n.toString(),m(t))).then(e=>{if(e)return e.map(e=>({range:f(e.range),kind:S(e.kind)}))})}}function S(e){switch(e){case r.Read:return a.DocumentHighlightKind.Read;case r.Write:return a.DocumentHighlightKind.Write;case r.Text:return a.DocumentHighlightKind.Text}return a.DocumentHighlightKind.Text}class v{constructor(e){this._worker=e}provideDefinition(e,t,r){const n=e.uri;return this._worker(n).then(e=>e.findDefinition(n.toString(),m(t))).then(e=>{if(e)return[E(e)]})}}function E(e){return{uri:c.parse(e.uri),range:f(e.range)}}class R{constructor(e){this._worker=e}provideReferences(e,t,r,n){const i=e.uri;return this._worker(i).then(e=>e.findReferences(i.toString(),m(t))).then(e=>{if(e)return e.map(E)})}}class T{constructor(e){this._worker=e}provideRenameEdits(e,t,r,n){const i=e.uri;return this._worker(i).then(e=>e.doRename(i.toString(),m(t),r)).then(e=>function(e){if(!e||!e.changes)return;let t=[];for(let r in e.changes){const n=c.parse(r);for(let i of e.changes[r])t.push({resource:n,versionId:void 0,textEdit:{range:f(i.range),text:i.newText}})}return{edits:t}}(e))}}class I{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const r=e.uri;return this._worker(r).then(e=>e.findDocumentSymbols(r.toString())).then(e=>{if(e)return e.map(e=>"children"in e?F(e):{name:e.name,detail:"",containerName:e.containerName,kind:D(e.kind),range:f(e.location.range),selectionRange:f(e.location.range),tags:[]})})}}function F(e){return{name:e.name,detail:e.detail??"",kind:D(e.kind),range:f(e.range),selectionRange:f(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(e=>F(e))}}function D(e){let t=a.SymbolKind;switch(e){case n.File:return t.File;case n.Module:return t.Module;case n.Namespace:return t.Namespace;case n.Package:return t.Package;case n.Class:return t.Class;case n.Method:return t.Method;case n.Property:return t.Property;case n.Field:return t.Field;case n.Constructor:return t.Constructor;case n.Enum:return t.Enum;case n.Interface:return t.Interface;case n.Function:return t.Function;case n.Variable:return t.Variable;case n.Constant:return t.Constant;case n.String:return t.String;case n.Number:return t.Number;case n.Boolean:return t.Boolean;case n.Array:return t.Array}return t.Function}class y{constructor(e){this._worker=e}provideLinks(e,t){const r=e.uri;return this._worker(r).then(e=>e.findDocumentLinks(r.toString())).then(e=>{if(e)return{links:e.map(e=>({range:f(e.range),url:e.target}))}})}}class M{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,r){const n=e.uri;return this._worker(n).then(e=>e.format(n.toString(),null,L(t)).then(e=>{if(e&&0!==e.length)return e.map(k)}))}}class N{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,r,n){const i=e.uri;return this._worker(i).then(e=>e.format(i.toString(),p(t),L(r)).then(e=>{if(e&&0!==e.length)return e.map(k)}))}}function L(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}class H{constructor(e){this._worker=e}provideDocumentColors(e,t){const r=e.uri;return this._worker(r).then(e=>e.findDocumentColors(r.toString())).then(e=>{if(e)return e.map(e=>({color:e.color,range:f(e.range)}))})}provideColorPresentations(e,t,r){const n=e.uri;return this._worker(n).then(e=>e.getColorPresentations(n.toString(),t.color,p(t.range))).then(e=>{if(e)return e.map(e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=k(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(k)),t})})}}class K{constructor(e){this._worker=e}provideFoldingRanges(e,t,r){const n=e.uri;return this._worker(n).then(e=>e.getFoldingRanges(n.toString(),t)).then(e=>{if(e)return e.map(e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case i.Comment:return a.FoldingRangeKind.Comment;case i.Imports:return a.FoldingRangeKind.Imports;case i.Region:return a.FoldingRangeKind.Region}return}(e.kind)),t})})}}class P{constructor(e){this._worker=e}provideSelectionRanges(e,t,r){const n=e.uri;return this._worker(n).then(e=>e.getSelectionRanges(n.toString(),t.map(m))).then(e=>{if(e)return e.map(e=>{const t=[];for(;e;)t.push({range:f(e.range)}),e=e.parent;return t})})}}export{h as C,M as D,K as F,w as H,R,P as S,N as a,I as b,H as c,d,v as e,C as f,y as g,T as h,m as i,p as j,k,f as t};
@@ -1 +0,0 @@
1
- const e={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};export{e as conf,o as language};
@@ -1 +0,0 @@
1
- const e={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},t={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}};export{e as conf,t as language};
@@ -1 +0,0 @@
1
- var n,t,e,i,r,o,a,c,u,s,d,f,l,g,p,m,v,b,h,y,x,A,I,L,E,k,_,w,j,T,M,R,C,S,N,U,V,O,P,F,D,X,K,$,z,W,q,B,H,Q,G,J,Y,Z,nn,tn,en,rn,on,an,cn,un,sn,dn,fn,ln,gn,pn,mn,vn,bn,hn,yn,xn,An,In,Ln,En,kn,_n;!function(n){n.is=function(n){return"string"==typeof n}}(n||(n={})),function(n){n.is=function(n){return"string"==typeof n}}(t||(t={})),function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647,n.is=function(t){return"number"==typeof t&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}}(e||(e={})),function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647,n.is=function(t){return"number"==typeof t&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}}(i||(i={})),function(n){n.create=function(n,t){return n===Number.MAX_VALUE&&(n=i.MAX_VALUE),t===Number.MAX_VALUE&&(t=i.MAX_VALUE),{line:n,character:t}},n.is=function(n){let t=n;return _n.objectLiteral(t)&&_n.uinteger(t.line)&&_n.uinteger(t.character)}}(r||(r={})),function(n){n.create=function(n,t,e,i){if(_n.uinteger(n)&&_n.uinteger(t)&&_n.uinteger(e)&&_n.uinteger(i))return{start:r.create(n,t),end:r.create(e,i)};if(r.is(n)&&r.is(t))return{start:n,end:t};throw new Error(`Range#create called with invalid arguments[${n}, ${t}, ${e}, ${i}]`)},n.is=function(n){let t=n;return _n.objectLiteral(t)&&r.is(t.start)&&r.is(t.end)}}(o||(o={})),function(n){n.create=function(n,t){return{uri:n,range:t}},n.is=function(n){let t=n;return _n.objectLiteral(t)&&o.is(t.range)&&(_n.string(t.uri)||_n.undefined(t.uri))}}(a||(a={})),function(n){n.create=function(n,t,e,i){return{targetUri:n,targetRange:t,targetSelectionRange:e,originSelectionRange:i}},n.is=function(n){let t=n;return _n.objectLiteral(t)&&o.is(t.targetRange)&&_n.string(t.targetUri)&&o.is(t.targetSelectionRange)&&(o.is(t.originSelectionRange)||_n.undefined(t.originSelectionRange))}}(c||(c={})),function(n){n.create=function(n,t,e,i){return{red:n,green:t,blue:e,alpha:i}},n.is=function(n){const t=n;return _n.objectLiteral(t)&&_n.numberRange(t.red,0,1)&&_n.numberRange(t.green,0,1)&&_n.numberRange(t.blue,0,1)&&_n.numberRange(t.alpha,0,1)}}(u||(u={})),function(n){n.create=function(n,t){return{range:n,color:t}},n.is=function(n){const t=n;return _n.objectLiteral(t)&&o.is(t.range)&&u.is(t.color)}}(s||(s={})),function(n){n.create=function(n,t,e){return{label:n,textEdit:t,additionalTextEdits:e}},n.is=function(n){const t=n;return _n.objectLiteral(t)&&_n.string(t.label)&&(_n.undefined(t.textEdit)||y.is(t))&&(_n.undefined(t.additionalTextEdits)||_n.typedArray(t.additionalTextEdits,y.is))}}(d||(d={})),function(n){n.Comment="comment",n.Imports="imports",n.Region="region"}(f||(f={})),function(n){n.create=function(n,t,e,i,r,o){const a={startLine:n,endLine:t};return _n.defined(e)&&(a.startCharacter=e),_n.defined(i)&&(a.endCharacter=i),_n.defined(r)&&(a.kind=r),_n.defined(o)&&(a.collapsedText=o),a},n.is=function(n){const t=n;return _n.objectLiteral(t)&&_n.uinteger(t.startLine)&&_n.uinteger(t.startLine)&&(_n.undefined(t.startCharacter)||_n.uinteger(t.startCharacter))&&(_n.undefined(t.endCharacter)||_n.uinteger(t.endCharacter))&&(_n.undefined(t.kind)||_n.string(t.kind))}}(l||(l={})),function(n){n.create=function(n,t){return{location:n,message:t}},n.is=function(n){let t=n;return _n.defined(t)&&a.is(t.location)&&_n.string(t.message)}}(g||(g={})),function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4}(p||(p={})),function(n){n.Unnecessary=1,n.Deprecated=2}(m||(m={})),function(n){n.is=function(n){const t=n;return _n.objectLiteral(t)&&_n.string(t.href)}}(v||(v={})),function(n){n.create=function(n,t,e,i,r,o){let a={range:n,message:t};return _n.defined(e)&&(a.severity=e),_n.defined(i)&&(a.code=i),_n.defined(r)&&(a.source=r),_n.defined(o)&&(a.relatedInformation=o),a},n.is=function(n){var t;let e=n;return _n.defined(e)&&o.is(e.range)&&_n.string(e.message)&&(_n.number(e.severity)||_n.undefined(e.severity))&&(_n.integer(e.code)||_n.string(e.code)||_n.undefined(e.code))&&(_n.undefined(e.codeDescription)||_n.string(null===(t=e.codeDescription)||void 0===t?void 0:t.href))&&(_n.string(e.source)||_n.undefined(e.source))&&(_n.undefined(e.relatedInformation)||_n.typedArray(e.relatedInformation,g.is))}}(b||(b={})),function(n){n.create=function(n,t,...e){let i={title:n,command:t};return _n.defined(e)&&e.length>0&&(i.arguments=e),i},n.is=function(n){let t=n;return _n.defined(t)&&_n.string(t.title)&&_n.string(t.command)}}(h||(h={})),function(n){n.replace=function(n,t){return{range:n,newText:t}},n.insert=function(n,t){return{range:{start:n,end:n},newText:t}},n.del=function(n){return{range:n,newText:""}},n.is=function(n){const t=n;return _n.objectLiteral(t)&&_n.string(t.newText)&&o.is(t.range)}}(y||(y={})),function(n){n.create=function(n,t,e){const i={label:n};return void 0!==t&&(i.needsConfirmation=t),void 0!==e&&(i.description=e),i},n.is=function(n){const t=n;return _n.objectLiteral(t)&&_n.string(t.label)&&(_n.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(_n.string(t.description)||void 0===t.description)}}(x||(x={})),function(n){n.is=function(n){const t=n;return _n.string(t)}}(A||(A={})),function(n){n.replace=function(n,t,e){return{range:n,newText:t,annotationId:e}},n.insert=function(n,t,e){return{range:{start:n,end:n},newText:t,annotationId:e}},n.del=function(n,t){return{range:n,newText:"",annotationId:t}},n.is=function(n){const t=n;return y.is(t)&&(x.is(t.annotationId)||A.is(t.annotationId))}}(I||(I={})),function(n){n.create=function(n,t){return{textDocument:n,edits:t}},n.is=function(n){let t=n;return _n.defined(t)&&M.is(t.textDocument)&&Array.isArray(t.edits)}}(L||(L={})),function(n){n.create=function(n,t,e){let i={kind:"create",uri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==e&&(i.annotationId=e),i},n.is=function(n){let t=n;return t&&"create"===t.kind&&_n.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||_n.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||_n.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}}(E||(E={})),function(n){n.create=function(n,t,e,i){let r={kind:"rename",oldUri:n,newUri:t};return void 0===e||void 0===e.overwrite&&void 0===e.ignoreIfExists||(r.options=e),void 0!==i&&(r.annotationId=i),r},n.is=function(n){let t=n;return t&&"rename"===t.kind&&_n.string(t.oldUri)&&_n.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||_n.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||_n.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}}(k||(k={})),function(n){n.create=function(n,t,e){let i={kind:"delete",uri:n};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==e&&(i.annotationId=e),i},n.is=function(n){let t=n;return t&&"delete"===t.kind&&_n.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||_n.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||_n.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}}(_||(_={})),function(n){n.is=function(n){let t=n;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(n=>_n.string(n.kind)?E.is(n)||k.is(n)||_.is(n):L.is(n)))}}(w||(w={})),function(n){n.create=function(n){return{uri:n}},n.is=function(n){let t=n;return _n.defined(t)&&_n.string(t.uri)}}(j||(j={})),function(n){n.create=function(n,t){return{uri:n,version:t}},n.is=function(n){let t=n;return _n.defined(t)&&_n.string(t.uri)&&_n.integer(t.version)}}(T||(T={})),function(n){n.create=function(n,t){return{uri:n,version:t}},n.is=function(n){let t=n;return _n.defined(t)&&_n.string(t.uri)&&(null===t.version||_n.integer(t.version))}}(M||(M={})),function(n){n.create=function(n,t,e,i){return{uri:n,languageId:t,version:e,text:i}},n.is=function(n){let t=n;return _n.defined(t)&&_n.string(t.uri)&&_n.string(t.languageId)&&_n.integer(t.version)&&_n.string(t.text)}}(R||(R={})),function(n){n.PlainText="plaintext",n.Markdown="markdown",n.is=function(t){const e=t;return e===n.PlainText||e===n.Markdown}}(C||(C={})),function(n){n.is=function(n){const t=n;return _n.objectLiteral(n)&&C.is(t.kind)&&_n.string(t.value)}}(S||(S={})),function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25}(N||(N={})),function(n){n.PlainText=1,n.Snippet=2}(U||(U={})),function(n){n.Deprecated=1}(V||(V={})),function(n){n.create=function(n,t,e){return{newText:n,insert:t,replace:e}},n.is=function(n){const t=n;return t&&_n.string(t.newText)&&o.is(t.insert)&&o.is(t.replace)}}(O||(O={})),function(n){n.asIs=1,n.adjustIndentation=2}(P||(P={})),function(n){n.is=function(n){const t=n;return t&&(_n.string(t.detail)||void 0===t.detail)&&(_n.string(t.description)||void 0===t.description)}}(F||(F={})),function(n){n.create=function(n){return{label:n}}}(D||(D={})),function(n){n.create=function(n,t){return{items:n||[],isIncomplete:!!t}}}(X||(X={})),function(n){n.fromPlainText=function(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},n.is=function(n){const t=n;return _n.string(t)||_n.objectLiteral(t)&&_n.string(t.language)&&_n.string(t.value)}}(K||(K={})),function(n){n.is=function(n){let t=n;return!!t&&_n.objectLiteral(t)&&(S.is(t.contents)||K.is(t.contents)||_n.typedArray(t.contents,K.is))&&(void 0===n.range||o.is(n.range))}}($||($={})),function(n){n.create=function(n,t){return t?{label:n,documentation:t}:{label:n}}}(z||(z={})),function(n){n.create=function(n,t,...e){let i={label:n};return _n.defined(t)&&(i.documentation=t),_n.defined(e)?i.parameters=e:i.parameters=[],i}}(W||(W={})),function(n){n.Text=1,n.Read=2,n.Write=3}(q||(q={})),function(n){n.create=function(n,t){let e={range:n};return _n.number(t)&&(e.kind=t),e}}(B||(B={})),function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26}(H||(H={})),function(n){n.Deprecated=1}(Q||(Q={})),function(n){n.create=function(n,t,e,i,r){let o={name:n,kind:t,location:{uri:i,range:e}};return r&&(o.containerName=r),o}}(G||(G={})),function(n){n.create=function(n,t,e,i){return void 0!==i?{name:n,kind:t,location:{uri:e,range:i}}:{name:n,kind:t,location:{uri:e}}}}(J||(J={})),function(n){n.create=function(n,t,e,i,r,o){let a={name:n,detail:t,kind:e,range:i,selectionRange:r};return void 0!==o&&(a.children=o),a},n.is=function(n){let t=n;return t&&_n.string(t.name)&&_n.number(t.kind)&&o.is(t.range)&&o.is(t.selectionRange)&&(void 0===t.detail||_n.string(t.detail))&&(void 0===t.deprecated||_n.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(Y||(Y={})),function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"}(Z||(Z={})),function(n){n.Invoked=1,n.Automatic=2}(nn||(nn={})),function(n){n.create=function(n,t,e){let i={diagnostics:n};return null!=t&&(i.only=t),null!=e&&(i.triggerKind=e),i},n.is=function(n){let t=n;return _n.defined(t)&&_n.typedArray(t.diagnostics,b.is)&&(void 0===t.only||_n.typedArray(t.only,_n.string))&&(void 0===t.triggerKind||t.triggerKind===nn.Invoked||t.triggerKind===nn.Automatic)}}(tn||(tn={})),function(n){n.create=function(n,t,e){let i={title:n},r=!0;return"string"==typeof t?(r=!1,i.kind=t):h.is(t)?i.command=t:i.edit=t,r&&void 0!==e&&(i.kind=e),i},n.is=function(n){let t=n;return t&&_n.string(t.title)&&(void 0===t.diagnostics||_n.typedArray(t.diagnostics,b.is))&&(void 0===t.kind||_n.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||h.is(t.command))&&(void 0===t.isPreferred||_n.boolean(t.isPreferred))&&(void 0===t.edit||w.is(t.edit))}}(en||(en={})),function(n){n.create=function(n,t){let e={range:n};return _n.defined(t)&&(e.data=t),e},n.is=function(n){let t=n;return _n.defined(t)&&o.is(t.range)&&(_n.undefined(t.command)||h.is(t.command))}}(rn||(rn={})),function(n){n.create=function(n,t){return{tabSize:n,insertSpaces:t}},n.is=function(n){let t=n;return _n.defined(t)&&_n.uinteger(t.tabSize)&&_n.boolean(t.insertSpaces)}}(on||(on={})),function(n){n.create=function(n,t,e){return{range:n,target:t,data:e}},n.is=function(n){let t=n;return _n.defined(t)&&o.is(t.range)&&(_n.undefined(t.target)||_n.string(t.target))}}(an||(an={})),function(n){n.create=function(n,t){return{range:n,parent:t}},n.is=function(t){let e=t;return _n.objectLiteral(e)&&o.is(e.range)&&(void 0===e.parent||n.is(e.parent))}}(cn||(cn={})),function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator",n.decorator="decorator"}(un||(un={})),function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"}(sn||(sn={})),function(n){n.is=function(n){const t=n;return _n.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(dn||(dn={})),function(n){n.create=function(n,t){return{range:n,text:t}},n.is=function(n){const t=n;return null!=t&&o.is(t.range)&&_n.string(t.text)}}(fn||(fn={})),function(n){n.create=function(n,t,e){return{range:n,variableName:t,caseSensitiveLookup:e}},n.is=function(n){const t=n;return null!=t&&o.is(t.range)&&_n.boolean(t.caseSensitiveLookup)&&(_n.string(t.variableName)||void 0===t.variableName)}}(ln||(ln={})),function(n){n.create=function(n,t){return{range:n,expression:t}},n.is=function(n){const t=n;return null!=t&&o.is(t.range)&&(_n.string(t.expression)||void 0===t.expression)}}(gn||(gn={})),function(n){n.create=function(n,t){return{frameId:n,stoppedLocation:t}},n.is=function(n){const t=n;return _n.defined(t)&&o.is(n.stoppedLocation)}}(pn||(pn={})),function(n){n.Type=1,n.Parameter=2,n.is=function(n){return 1===n||2===n}}(mn||(mn={})),function(n){n.create=function(n){return{value:n}},n.is=function(n){const t=n;return _n.objectLiteral(t)&&(void 0===t.tooltip||_n.string(t.tooltip)||S.is(t.tooltip))&&(void 0===t.location||a.is(t.location))&&(void 0===t.command||h.is(t.command))}}(vn||(vn={})),function(n){n.create=function(n,t,e){const i={position:n,label:t};return void 0!==e&&(i.kind=e),i},n.is=function(n){const t=n;return _n.objectLiteral(t)&&r.is(t.position)&&(_n.string(t.label)||_n.typedArray(t.label,vn.is))&&(void 0===t.kind||mn.is(t.kind))&&void 0===t.textEdits||_n.typedArray(t.textEdits,y.is)&&(void 0===t.tooltip||_n.string(t.tooltip)||S.is(t.tooltip))&&(void 0===t.paddingLeft||_n.boolean(t.paddingLeft))&&(void 0===t.paddingRight||_n.boolean(t.paddingRight))}}(bn||(bn={})),function(n){n.createSnippet=function(n){return{kind:"snippet",value:n}}}(hn||(hn={})),function(n){n.create=function(n,t,e,i){return{insertText:n,filterText:t,range:e,command:i}}}(yn||(yn={})),function(n){n.create=function(n){return{items:n}}}(xn||(xn={})),function(n){n.Invoked=0,n.Automatic=1}(An||(An={})),function(n){n.create=function(n,t){return{range:n,text:t}}}(In||(In={})),function(n){n.create=function(n,t){return{triggerKind:n,selectedCompletionInfo:t}}}(Ln||(Ln={})),function(n){n.is=function(n){const e=n;return _n.objectLiteral(e)&&t.is(e.uri)&&_n.string(e.name)}}(En||(En={})),function(n){function t(n,e){if(n.length<=1)return n;const i=n.length/2|0,r=n.slice(0,i),o=n.slice(i);t(r,e),t(o,e);let a=0,c=0,u=0;for(;a<r.length&&c<o.length;){let t=e(r[a],o[c]);n[u++]=t<=0?r[a++]:o[c++]}for(;a<r.length;)n[u++]=r[a++];for(;c<o.length;)n[u++]=o[c++];return n}n.create=function(n,t,e,i){return new wn(n,t,e,i)},n.is=function(n){let t=n;return!!(_n.defined(t)&&_n.string(t.uri)&&(_n.undefined(t.languageId)||_n.string(t.languageId))&&_n.uinteger(t.lineCount)&&_n.func(t.getText)&&_n.func(t.positionAt)&&_n.func(t.offsetAt))},n.applyEdits=function(n,e){let i=n.getText(),r=t(e,(n,t)=>{let e=n.range.start.line-t.range.start.line;return 0===e?n.range.start.character-t.range.start.character:e}),o=i.length;for(let t=r.length-1;t>=0;t--){let e=r[t],a=n.offsetAt(e.range.start),c=n.offsetAt(e.range.end);if(!(c<=o))throw new Error("Overlapping edit");i=i.substring(0,a)+e.newText+i.substring(c,i.length),o=a}return i}}(kn||(kn={}));class wn{constructor(n,t,e,i){this._uri=n,this._languageId=t,this._version=e,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(n){if(n){let t=this.offsetAt(n.start),e=this.offsetAt(n.end);return this._content.substring(t,e)}return this._content}update(n,t){this._content=n.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let n=[],t=this._content,e=!0;for(let i=0;i<t.length;i++){e&&(n.push(i),e=!1);let r=t.charAt(i);e="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}e&&t.length>0&&n.push(t.length),this._lineOffsets=n}return this._lineOffsets}positionAt(n){n=Math.max(Math.min(n,this._content.length),0);let t=this.getLineOffsets(),e=0,i=t.length;if(0===i)return r.create(0,n);for(;e<i;){let r=Math.floor((e+i)/2);t[r]>n?i=r:e=r+1}let o=e-1;return r.create(o,n-t[o])}offsetAt(n){let t=this.getLineOffsets();if(n.line>=t.length)return this._content.length;if(n.line<0)return 0;let e=t[n.line],i=n.line+1<t.length?t[n.line+1]:this._content.length;return Math.max(Math.min(e+n.character,i),e)}get lineCount(){return this.getLineOffsets().length}}!function(n){const t=Object.prototype.toString;n.defined=function(n){return void 0!==n},n.undefined=function(n){return void 0===n},n.boolean=function(n){return!0===n||!1===n},n.string=function(n){return"[object String]"===t.call(n)},n.number=function(n){return"[object Number]"===t.call(n)},n.numberRange=function(n,e,i){return"[object Number]"===t.call(n)&&e<=n&&n<=i},n.integer=function(n){return"[object Number]"===t.call(n)&&-2147483648<=n&&n<=2147483647},n.uinteger=function(n){return"[object Number]"===t.call(n)&&0<=n&&n<=2147483647},n.func=function(n){return"[object Function]"===t.call(n)},n.objectLiteral=function(n){return null!==n&&"object"==typeof n},n.typedArray=function(n,t){return Array.isArray(n)&&n.every(t)}}(_n||(_n={}));export{D as C,p as D,f as F,U as I,a as L,C as M,r as P,o as R,H as S,y as T,T as V,b as a,N as b,cn as c,V as d,q as e,h as f,L as g,en as h,Z as i,G as j,Y as k};
@@ -1 +0,0 @@
1
- function e(e,a=!1){const o=e.length;let c=0,s="",i=0,l=16,f=0,u=0,k=0,d=0,g=0;function h(n,t){let r=0,a=0;for(;r<n;){let n=e.charCodeAt(c);if(n>=48&&n<=57)a=16*a+n-48;else if(n>=65&&n<=70)a=16*a+n-65+10;else{if(!(n>=97&&n<=102))break;a=16*a+n-97+10}c++,r++}return r<n&&(a=-1),a}function p(){if(s="",g=0,i=c,u=f,d=k,c>=o)return i=o,l=17;let a=e.charCodeAt(c);if(n(a)){do{c++,s+=String.fromCharCode(a),a=e.charCodeAt(c)}while(n(a));return l=15}if(t(a))return c++,s+=String.fromCharCode(a),13===a&&10===e.charCodeAt(c)&&(c++,s+="\n"),f++,k=c,l=14;switch(a){case 123:return c++,l=1;case 125:return c++,l=2;case 91:return c++,l=3;case 93:return c++,l=4;case 58:return c++,l=6;case 44:return c++,l=5;case 34:return c++,s=function(){let n="",r=c;for(;;){if(c>=o){n+=e.substring(r,c),g=2;break}const a=e.charCodeAt(c);if(34===a){n+=e.substring(r,c),c++;break}if(92!==a){if(a>=0&&a<=31){if(t(a)){n+=e.substring(r,c),g=2;break}g=6}c++}else{if(n+=e.substring(r,c),c++,c>=o){g=2;break}switch(e.charCodeAt(c++)){case 34:n+='"';break;case 92:n+="\\";break;case 47:n+="/";break;case 98:n+="\b";break;case 102:n+="\f";break;case 110:n+="\n";break;case 114:n+="\r";break;case 116:n+="\t";break;case 117:const e=h(4);e>=0?n+=String.fromCharCode(e):g=4;break;default:g=5}r=c}}return n}(),l=10;case 47:const n=c-1;if(47===e.charCodeAt(c+1)){for(c+=2;c<o&&!t(e.charCodeAt(c));)c++;return s=e.substring(n,c),l=12}if(42===e.charCodeAt(c+1)){c+=2;const r=o-1;let a=!1;for(;c<r;){const n=e.charCodeAt(c);if(42===n&&47===e.charCodeAt(c+1)){c+=2,a=!0;break}c++,t(n)&&(13===n&&10===e.charCodeAt(c)&&c++,f++,k=c)}return a||(c++,g=1),s=e.substring(n,c),l=13}return s+=String.fromCharCode(a),c++,l=16;case 45:if(s+=String.fromCharCode(a),c++,c===o||!r(e.charCodeAt(c)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=function(){let n=c;if(48===e.charCodeAt(c))c++;else for(c++;c<e.length&&r(e.charCodeAt(c));)c++;if(c<e.length&&46===e.charCodeAt(c)){if(c++,!(c<e.length&&r(e.charCodeAt(c))))return g=3,e.substring(n,c);for(c++;c<e.length&&r(e.charCodeAt(c));)c++}let t=c;if(c<e.length&&(69===e.charCodeAt(c)||101===e.charCodeAt(c)))if(c++,(c<e.length&&43===e.charCodeAt(c)||45===e.charCodeAt(c))&&c++,c<e.length&&r(e.charCodeAt(c))){for(c++;c<e.length&&r(e.charCodeAt(c));)c++;t=c}else g=3;return e.substring(n,t)}(),l=11;default:for(;c<o&&C(a);)c++,a=e.charCodeAt(c);if(i!==c){switch(s=e.substring(i,c),s){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return s+=String.fromCharCode(a),c++,l=16}}function C(e){if(n(e)||t(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){c=e,s="",i=0,l=16,g=0},getPosition:()=>c,scan:a?function(){let e;do{e=p()}while(e>=12&&e<=15);return e}:p,getToken:()=>l,getTokenValue:()=>s,getTokenOffset:()=>i,getTokenLength:()=>c-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-d,getTokenError:()=>g}}function n(e){return 32===e||9===e}function t(e){return 10===e||13===e}function r(e){return e>=48&&e<=57}var a;!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(a||(a={}));const o=new Array(20).fill(0).map((e,n)=>" ".repeat(n)),c=200,s={" ":{"\n":new Array(c).fill(0).map((e,n)=>"\n"+" ".repeat(n)),"\r":new Array(c).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(c).fill(0).map((e,n)=>"\r\n"+" ".repeat(n))},"\t":{"\n":new Array(c).fill(0).map((e,n)=>"\n"+"\t".repeat(n)),"\r":new Array(c).fill(0).map((e,n)=>"\r"+"\t".repeat(n)),"\r\n":new Array(c).fill(0).map((e,n)=>"\r\n"+"\t".repeat(n))}},i=["\n","\r","\r\n"];function l(n,t,r){let a,c,l,k,d;if(t){for(k=t.offset,d=k+t.length,l=k;l>0&&!u(n,l-1);)l--;let e=d;for(;e<n.length&&!u(n,e);)e++;c=n.substring(l,e),a=function(e,n){let t=0,r=0;const a=n.tabSize||4;for(;t<e.length;){let n=e.charAt(t);if(n===o[1])r++;else{if("\t"!==n)break;r+=a}t++}return Math.floor(r/a)}(c,r)}else c=n,a=0,l=0,k=0,d=n.length;const g=function(e,n){for(let e=0;e<n.length;e++){const t=n.charAt(e);if("\r"===t)return e+1<n.length&&"\n"===n.charAt(e+1)?"\r\n":"\r";if("\n"===t)return"\n"}return e&&e.eol||"\n"}(r,n),h=i.includes(g);let p,C=0,b=0;p=r.insertSpaces?o[r.tabSize||4]??f(o[1],r.tabSize||4):"\t";const T="\t"===p?"\t":" ";let m=e(c,!1),A=!1;function E(){if(C>1)return f(g,C)+f(p,a+b);const e=p.length*(a+b);return!h||e>s[T][g].length?g+f(p,a+b):e<=0?g:s[T][g][e]}function L(){let e=m.scan();for(C=0;15===e||14===e;)14===e&&r.keepLines?C+=1:14===e&&(C=1),e=m.scan();return A=16===e||0!==m.getTokenError(),e}const O=[];function y(e,r,a){A||t&&!(r<d&&a>k)||n.substring(r,a)===e||O.push({offset:r,length:a-r,content:e})}let v=L();if(r.keepLines&&C>0&&y(f(g,C),0,0),17!==v){let e=m.getTokenOffset()+l;y(p.length*a<20&&r.insertSpaces?o[p.length*a]:f(p,a),l,e)}for(;17!==v;){let e=m.getTokenOffset()+m.getTokenLength()+l,n=L(),t="",a=!1;for(;0===C&&(12===n||13===n);){let r=m.getTokenOffset()+l;y(o[1],e,r),e=m.getTokenOffset()+m.getTokenLength()+l,a=12===n,t=a?E():"",n=L()}if(2===n)1!==v&&b--,r.keepLines&&C>0||!r.keepLines&&1!==v?t=E():r.keepLines&&(t=o[1]);else if(4===n)3!==v&&b--,r.keepLines&&C>0||!r.keepLines&&3!==v?t=E():r.keepLines&&(t=o[1]);else{switch(v){case 3:case 1:b++,t=r.keepLines&&C>0||!r.keepLines?E():o[1];break;case 5:t=r.keepLines&&C>0||!r.keepLines?E():o[1];break;case 12:t=E();break;case 13:C>0?t=E():a||(t=o[1]);break;case 6:r.keepLines&&C>0?t=E():a||(t=o[1]);break;case 10:r.keepLines&&C>0?t=E():6!==n||a||(t="");break;case 7:case 8:case 9:case 11:case 2:case 4:r.keepLines&&C>0?t=E():12!==n&&13!==n||a?5!==n&&17!==n&&(A=!0):t=o[1];break;case 16:A=!0}C>0&&(12===n||13===n)&&(t=E())}17===n&&(t=r.keepLines&&C>0?E():r.insertFinalNewline?g:"");y(t,e,m.getTokenOffset()+l),v=n}return O}function f(e,n){let t="";for(let r=0;r<n;r++)t+=e;return t}function u(e,n){return-1!=="\r\n".indexOf(e.charAt(n))}var k;!function(e){e.DEFAULT={allowTrailingComma:!1}}(k||(k={}));const d=e;var g,h;!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(g||(g={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(h||(h={}));const p=function(n,t=[],r=k.DEFAULT){let a=null,o=[];const c=[];function s(e){Array.isArray(o)?o.push(e):null!==a&&(o[a]=e)}return function(n,t,r=k.DEFAULT){const a=e(n,!1),o=[];function c(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function s(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),()=>o.slice()):()=>!0}function i(e){return e?n=>e(n,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?n=>e(n,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),()=>o.slice()):()=>!0}const f=s(t.onObjectBegin),u=l(t.onObjectProperty),d=c(t.onObjectEnd),g=s(t.onArrayBegin),h=c(t.onArrayEnd),p=l(t.onLiteralValue),C=i(t.onSeparator),b=c(t.onComment),T=i(t.onError),m=r&&r.disallowComments,A=r&&r.allowTrailingComma;function E(){for(;;){const e=a.scan();switch(a.getTokenError()){case 4:L(14);break;case 5:L(15);break;case 3:L(13);break;case 1:m||L(11);break;case 2:L(12);break;case 6:L(16)}switch(e){case 12:case 13:m?L(10):b();break;case 16:L(1);break;case 15:case 14:break;default:return e}}}function L(e,n=[],t=[]){if(T(e),n.length+t.length>0){let e=a.getToken();for(;17!==e;){if(-1!==n.indexOf(e)){E();break}if(-1!==t.indexOf(e))break;e=E()}}}function O(e){const n=a.getTokenValue();return e?p(n):(u(n),o.push(n)),E(),!0}function y(){switch(a.getToken()){case 11:const e=a.getTokenValue();let n=Number(e);isNaN(n)&&(L(2),n=0),p(n);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return E(),!0}function v(){return 10!==a.getToken()?(L(3,[],[2,5]),!1):(O(!1),6===a.getToken()?(C(":"),E(),S()||L(4,[],[2,5])):L(5,[],[2,5]),o.pop(),!0)}function w(){f(),E();let e=!1;for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||L(4,[],[]),C(","),E(),2===a.getToken()&&A)break}else e&&L(6,[],[]);v()||L(4,[],[2,5]),e=!0}return d(),2!==a.getToken()?L(7,[2],[]):E(),!0}function x(){g(),E();let e=!0,n=!1;for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(n||L(4,[],[]),C(","),E(),4===a.getToken()&&A)break}else n&&L(6,[],[]);e?(o.push(0),e=!1):o[o.length-1]++,S()||L(4,[],[4,5]),n=!0}return h(),e||o.pop(),4!==a.getToken()?L(8,[4],[]):E(),!0}function S(){switch(a.getToken()){case 3:return x();case 1:return w();case 10:return O(!0);default:return y()}}if(E(),17===a.getToken())return!!r.allowEmptyContent||(L(4,[],[]),!1);if(!S())return L(4,[],[]),!1;17!==a.getToken()&&L(9,[],[])}(n,{onObjectBegin:()=>{const e={};s(e),c.push(o),o=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{o=c.pop()},onArrayBegin:()=>{const e=[];s(e),c.push(o),o=e,a=null},onArrayEnd:()=>{o=c.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},r),o[0]},C=function e(n,t,r=!1){if(function(e,n,t=!1){return n>=e.offset&&n<e.offset+e.length||t&&n===e.offset+e.length}(n,t,r)){const a=n.children;if(Array.isArray(a))for(let n=0;n<a.length&&a[n].offset<=t;n++){const o=e(a[n],t,r);if(o)return o}return n}},b=function e(n){if(!n.parent||!n.parent.children)return[];const t=e(n.parent);if("property"===n.parent.type){const e=n.parent.children[0].value;t.push(e)}else if("array"===n.parent.type){const e=n.parent.children.indexOf(n);-1!==e&&t.push(e)}return t},T=function e(n){switch(n.type){case"array":return n.children.map(e);case"object":const t=Object.create(null);for(let r of n.children){const n=r.children[1];n&&(t[r.children[0].value]=e(n))}return t;case"null":case"string":case"number":case"boolean":return n.value;default:return}};var m;function A(e,n,t){return l(e,n,t)}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(m||(m={}));export{T as a,A as b,d as c,C as f,b as g,p};
@@ -1 +0,0 @@
1
- const e={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}};export{e as conf,t as language};