@incajs/cli 0.0.21 → 0.0.23

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 (69) hide show
  1. package/README.md +5 -6
  2. package/dist/chunks/_format-CFy6_BQd.js +1 -0
  3. package/dist/chunks/defaults-DfHXv1fN.js +1 -0
  4. package/dist/chunks/dist-B-B_PlmU.js +1 -0
  5. package/dist/chunks/dist-BTWvruNB.js +1 -0
  6. package/dist/chunks/json5-BcF68iGq.js +14 -0
  7. package/dist/chunks/jsonc-DJWoCi14.js +4 -0
  8. package/dist/chunks/ohash-DUMW2FP0.js +1 -0
  9. package/dist/chunks/rolldown-runtime-DT7IzrpZ.js +1 -0
  10. package/dist/chunks/toml-n3nLqi2g.js +5 -0
  11. package/dist/chunks/types-Dz2aIWaI.d.ts +84 -0
  12. package/dist/chunks/yaml-DtBxpt6z.js +38 -0
  13. package/dist/{cli.d.mts → cli.d.ts} +1 -1
  14. package/dist/cli.js +22 -2181
  15. package/dist/config.d.ts +35 -0
  16. package/dist/config.js +1 -5
  17. package/dist/index.d.ts +27 -0
  18. package/dist/index.js +1 -0
  19. package/dist/vite-runtime.d.ts +28 -0
  20. package/dist/vite-runtime.js +7 -1179
  21. package/package.json +8 -26
  22. package/dist/adapterCore.d.mts +0 -11
  23. package/dist/build.d.mts +0 -28
  24. package/dist/chunks/__vite-optional-peer-dep_dotenv_c12-CxKvRg9-.js +0 -3
  25. package/dist/chunks/__vite-optional-peer-dep_giget_c12-BYcrHYBM.js +0 -5
  26. package/dist/chunks/__vite-optional-peer-dep_jiti_c12-DZVJNj6v.js +0 -5
  27. package/dist/chunks/_format-BKs7bsc4.js +0 -98
  28. package/dist/chunks/defaults-Ct95BSBl.js +0 -23
  29. package/dist/chunks/dist-C64iuQVW.js +0 -730
  30. package/dist/chunks/dist-DrnNGO2a.js +0 -114
  31. package/dist/chunks/json5-RapVXICN.js +0 -711
  32. package/dist/chunks/jsonc-BDHXk_1o.js +0 -40
  33. package/dist/chunks/ohash-Cc4pJh84.js +0 -231
  34. package/dist/chunks/rolldown-runtime-Dy4uBu1J.js +0 -11
  35. package/dist/chunks/toml-CgS7wGvD.js +0 -416
  36. package/dist/chunks/yaml-U_oPOIGK.js +0 -2123
  37. package/dist/config/defaults.d.mts +0 -45
  38. package/dist/config/index.d.mts +0 -18
  39. package/dist/config/loader.d.mts +0 -82
  40. package/dist/config/types.d.mts +0 -73
  41. package/dist/defaultBundler.d.mts +0 -7
  42. package/dist/dev-client/hostBin.d.mts +0 -15
  43. package/dist/dev-client/hostClient.d.mts +0 -70
  44. package/dist/dev-client/hostError.d.mts +0 -6
  45. package/dist/dev-client/index.d.mts +0 -4
  46. package/dist/dev-client/protocol.d.mts +0 -39
  47. package/dist/dev.d.mts +0 -45
  48. package/dist/devLock.d.mts +0 -11
  49. package/dist/entry.d.mts +0 -23
  50. package/dist/error.d.mts +0 -15
  51. package/dist/index.d.mts +0 -1
  52. package/dist/log.d.mts +0 -36
  53. package/dist/macosApp.d.mts +0 -47
  54. package/dist/package.d.mts +0 -50
  55. package/dist/plist.d.mts +0 -4
  56. package/dist/printConfig.d.mts +0 -20
  57. package/dist/retryOnEdit.d.mts +0 -32
  58. package/dist/types.d.mts +0 -136
  59. package/dist/vite/build.d.mts +0 -6
  60. package/dist/vite/captureOutput.d.mts +0 -17
  61. package/dist/vite/config.d.mts +0 -45
  62. package/dist/vite/createBundler.d.mts +0 -7
  63. package/dist/vite/emitConfig.d.mts +0 -17
  64. package/dist/vite/hmr.d.mts +0 -37
  65. package/dist/vite/index.d.mts +0 -1
  66. package/dist/vite/logger.d.mts +0 -8
  67. package/dist/vite/unsupported.d.mts +0 -24
  68. package/dist/vite/watch.d.mts +0 -7
  69. package/dist/watchForEdit.d.mts +0 -27
package/README.md CHANGED
@@ -29,10 +29,9 @@ bootstrapping; it wins outright when both exist.
29
29
  [HMR guide](https://incajs.tom96da.com/guide/hmr).
30
30
  - **`inca build`**: bundles your app for production, once, with no
31
31
  window opened.
32
- - **`inca package`**: builds your app, then packages it with a
33
- prebuilt `inca-host` into a distributable application: a `.app` on
34
- macOS, a plain directory on Linux (other platforms aren't supported
35
- yet).
32
+ - **`inca package`**: builds your app, then packages it with the
33
+ prebuilt host into a distributable application: a `.app` on macOS, a
34
+ plain directory on Linux (other platforms aren't supported yet).
36
35
  - **`inca config`**: prints the settings the host applies to your app,
37
36
  such as its window size, as JSON.
38
37
 
@@ -73,5 +72,5 @@ platform with no published one yet, or a custom build.
73
72
  ## How it works
74
73
 
75
74
  `inca dev`/`build`/`package` bundle your app with Vite, then (for `dev`
76
- and `package`) launch and supervise `inca-host`, the native runtime
77
- that renders it, as a child process.
75
+ and `package`) launch and supervise the host, the native runtime that
76
+ renders it, as a child process.
@@ -0,0 +1 @@
1
+ const e=/^(?:( )+|\t+)/,t=`space`;function n(e,n,r){return e&&n===t&&r===1}function r(r,a){let o=/* @__PURE__ */ new Map,s=0,c,l;for(let u of r.split(/\n/g)){if(!u)continue;let r=u.match(e);if(r===null)s=0,c=``;else{let e=r[0].length,u=r[1]?t:`tab`;if(n(a,u,e))continue;u!==c&&(s=0),c=u;let d=1,f=0,p=e-s;if(s=e,p===0)d=0,f=1;else{let e=Math.abs(p);if(n(a,u,e))continue;l=i(u,e)}let m=o.get(l);o.set(l,m===void 0?[1,0]:[m[0]+d,m[1]+f])}}return o}function i(e,n){return(e===t?`s`:`t`)+String(n)}function a(e){return{type:e[0]===`s`?t:`tab`,amount:Number(e.slice(1))}}function o(e){let t,n=0,r=0;for(let[i,[a,o]]of e)(a>n||a===n&&o>r)&&(n=a,r=o,t=i);return t}function s(e,n){return(e===t?` `:` `).repeat(n)}function c(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);let t=r(e,!0);t.size===0&&(t=r(e,!1));let n=o(t),i,c=0,l=``;return n!==void 0&&({type:i,amount:c}=a(n),l=s(i,c)),{amount:c,type:i,indent:l}}const l=Symbol.for(`__confbox_fmt__`),u=/^(\s+)/,d=/(\s+)$/;function f(e){return e.charCodeAt(0)===65279?e.slice(1):e}function p(e,t={}){return{sample:t.indent===void 0&&t.preserveIndentation!==!1&&f(e).slice(0,t?.sampleSize||1024),whiteSpace:t.preserveWhitespace===!1?void 0:{start:u.exec(e)?.[0]||``,end:d.exec(e)?.[0]||``}}}function m(e,t,n){!t||typeof t!=`object`||Object.defineProperty(t,l,{enumerable:!1,configurable:!0,writable:!0,value:p(e,n)})}function h(e,t){if(!e||typeof e!=`object`||!(l in e))return{indent:t?.indent??2,whitespace:{start:``,end:``}};let n=e[l];return{indent:t?.indent||c(n.sample||``).indent,whitespace:n.whiteSpace||{start:``,end:``}}}export{m as n,h as r,f as t};
@@ -0,0 +1 @@
1
+ const e={dev:{stackPaths:`relative`},outDir:`dist`,sourcemap:!1,version:`0.0.0`};function t(e){let t=e.indexOf(`/`);return e.startsWith(`@`)&&t!==-1?e.slice(t+1):e}function n(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``);return t===``?`app`:t}function r(e){return e?t(e):void 0}function i(e){return`org.inca.${n(e)}`}export{n as i,i as n,r,e as t};
@@ -0,0 +1 @@
1
+ import e,{lstatSync as t,realpathSync as n,statSync as r}from"node:fs";import i,{isAbsolute as a}from"node:path";import{format as o,inspect as s}from"node:util";import{URL as c,fileURLToPath as l,pathToFileURL as u}from"node:url";import d from"node:assert";import f from"node:process";const p=/^[A-Za-z]:\//;function m(e=``){return e&&e.replace(/\\/g,`/`).replace(p,e=>e.toUpperCase())}const h=/^[/\\]{2}/,g=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,_=/^[A-Za-z]:$/,ee=/.(\.[^./]+|\.)$/,v=function(e){if(e.length===0)return`.`;e=m(e);let t=e.match(h),n=b(e),r=e[e.length-1]===`/`;return e=y(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),_.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!b(e)?`/${e}`:e)},te=function(...e){let t=``;for(let n of e)if(n){if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;t+=e&&r?n.slice(1):e||r?n:`/${n}`}else t+=n}return v(t)};function ne(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}const re=function(...e){e=e.map(e=>m(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:ne();i&&i.length!==0&&(t=`${i}/${t}`,n=b(i))}return t=y(t,!n),n&&!b(t)?`/${t}`:t.length>0?t:`.`};function y(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(i!==s-1&&a!==1){if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1}i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}const b=function(e){return g.test(e)},ie=function(e){if(e===`..`)return``;let t=ee.exec(m(e));return t&&t[1]||``},ae=function(e){let t=m(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&_.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(b(e)?`/`:`.`)},oe=function(e,t){let n=m(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},x=/* @__PURE__ */ `_http_agent._http_client._http_common._http_incoming._http_outgoing._http_server._stream_duplex._stream_passthrough._stream_readable._stream_transform._stream_wrap._stream_writable._tls_common._tls_wrap.assert.assert/strict.async_hooks.buffer.child_process.cluster.console.constants.crypto.dgram.diagnostics_channel.dns.dns/promises.domain.events.fs.fs/promises.http.http2.https.inspector.inspector/promises.module.net.os.path.path/posix.path/win32.perf_hooks.process.punycode.querystring.readline.readline/promises.repl.stream.stream/consumers.stream/promises.stream/web.string_decoder.sys.timers.timers/promises.tls.trace_events.tty.url.util.util/types.v8.vm.wasi.worker_threads.zlib`.split(`.`),se=/^([A-Z][a-z\d]*)+$/,ce=/* @__PURE__ */ new Set([`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`]),S=/* @__PURE__ */ new Map;function C(e,t=`and`){switch(e.length){case 0:return``;case 1:return`${e[0]}`;case 2:return`${e[0]} ${t} ${e[1]}`;case 3:return`${e[0]}, ${e[1]}, ${t} ${e[2]}`;default:return`${e.slice(0,-1).join(`, `)}, ${t} ${e.at(-1)}`}}function w(e){let t=0,n=/%[dfijoOs]/g;for(;n.exec(e)!==null;)t++;return t}function T(e,t,n){return S.set(e,t),le(n,e)}const E=Symbol(`kIsNodeError`);function le(e,t){let n=S.get(t),r=typeof n==`string`?w(n):-1;switch(r){case 0:{class i extends e{code=t;constructor(...e){d.ok(e.length===0,`Code: ${t}; The provided arguments length (${e.length}) does not match the required ones (${r}).`),super(n)}get["constructor"](){return e}get[E](){return!0}toString(){return`${this.name} [${t}]: ${this.message}`}}return i}case-1:{class n extends e{code=t;constructor(...e){super(),Object.defineProperty(this,"message",{value:ue(t,e,this),enumerable:!1,writable:!0,configurable:!0})}get["constructor"](){return e}get[E](){return!0}toString(){return`${this.name} [${t}]: ${this.message}`}}return n}default:{class i extends e{code=t;constructor(...e){d.ok(e.length===r,`Code: ${t}; The provided arguments length (${e.length}) does not match the required ones (${r}).`),e.unshift(n),super(Reflect.apply(o,null,e))}get["constructor"](){return e}get[E](){return!0}toString(){return`${this.name} [${t}]: ${this.message}`}}return i}}}function ue(e,t,n){let r=S.get(e);if(d.ok(r!==void 0,"expected `message` to be found"),typeof r==`function`)return d.ok(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,n,t);let i=w(r);return d.ok(i===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i}).`),t.length===0?r:(t.unshift(r),Reflect.apply(o,null,t))}function de(e){if(e===null)return`null`;if(e===void 0)return`undefined`;let t=typeof e;switch(t){case`bigint`:return`type bigint (${e}n)`;case`number`:return e===0?1/e==-1/0?`type number (-0)`:`type number (0)`:Number.isNaN(e)?`type number (NaN)`:e===1/0?`type number (Infinity)`:e===-1/0?`type number (-Infinity)`:`type number (${e})`;case`boolean`:return e?`type boolean (true)`:`type boolean (false)`;case`symbol`:return`type symbol (${String(e)})`;case`function`:return`function ${e.name}`;case`object`:return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${s(e,{depth:-1})}`;case`string`:{let t=e;return t.length>28&&(t=`${t.slice(0,25)}...`),t.includes(`'`)?`type string (${JSON.stringify(t)})`:`type string ('${t}')`}default:{let n=s(e,{colors:!1});return n.length>28&&(n=`${n.slice(0,25)}...`),`type ${t} (${n})`}}}T(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{d.ok(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let r=`The `;if(e.endsWith(` argument`))r+=`${e} `;else{let t=e.includes(`.`)?`property`:`argument`;r+=`"${e}" ${t} `}r+=`must be `;let i=[],a=[],o=[];for(let e of t)d.ok(typeof e==`string`,`All expected entries have to be of type string`),ce.has(e)?i.push(e.toLowerCase()):se.exec(e)===null?(d.ok(e!==`object`,`The value "object" should be written as "Object"`),o.push(e)):a.push(e);if(a.length>0){let e=i.indexOf(`object`);e!==-1&&(i.splice(e,1),a.push(`Object`))}return i.length>0&&(r+=`${i.length>1?`one of type`:`of type`} ${C(i,`or`)}`,(a.length>0||o.length>0)&&(r+=` or `)),a.length>0&&(r+=`an instance of ${C(a,`or`)}`,o.length>0&&(r+=` or `)),o.length>0&&(o.length>1?r+=`one of ${C(o,`or`)}`:(o[0]?.toLowerCase()!==o[0]&&(r+=`an `),r+=`${o[0]}`)),r+=`. Received ${de(n)}`,r},TypeError);const D=T(`ERR_INVALID_MODULE_SPECIFIER`,(e,t,n)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:``}`,TypeError),O=T(`ERR_INVALID_PACKAGE_CONFIG`,(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:``}${n?`. ${n}`:``}`,Error),fe=T(`ERR_INVALID_PACKAGE_TARGET`,(e,t,n,r=!1,i)=>{let a=typeof n==`string`&&!r&&n.length>0&&!n.startsWith(`./`);return t===`.`?(d.ok(r===!1),`Invalid "exports" main target ${JSON.stringify(n)} defined in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`):`Invalid "${r?`imports`:`exports`}" target ${JSON.stringify(n)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`},Error),k=T(`ERR_MODULE_NOT_FOUND`,function(e,t,n=!1){return n&&typeof n==`string`&&(this.url=`${n}`),`Cannot find ${n?`module`:`package`} '${e}' imported from ${t}`},Error),pe=T(`ERR_PACKAGE_IMPORT_NOT_DEFINED`,(e,t,n)=>`Package import specifier "${e}" is not defined${t?` in package ${t||``}package.json`:``} imported from ${n}`,TypeError),me=T(`ERR_PACKAGE_PATH_NOT_EXPORTED`,(e,t,n)=>t===`.`?`No "exports" main defined in ${e}package.json${n?` imported from ${n}`:``}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${n?` imported from ${n}`:``}`,Error),he=T(`ERR_UNSUPPORTED_DIR_IMPORT`,function(e,t,n=void 0){return this.url=n,`Directory import '${e}' is not supported resolving ES modules imported from ${t}`},Error),A=T(`ERR_UNSUPPORTED_RESOLVE_REQUEST`,`Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.`,TypeError),ge=T(`ERR_UNKNOWN_FILE_EXTENSION`,(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);T(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let r=s(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${r}`},TypeError);const j={}.hasOwnProperty,M=/* @__PURE__ */ new Map;function N(t,{base:n,specifier:r}){let a=M.get(t);if(a)return a;let o;try{o=e.readFileSync(i.toNamespacedPath(t),`utf8`)}catch(e){let t=e;if(t.code!==`ENOENT`)throw t}let s={exists:!1,pjsonPath:t,main:void 0,name:void 0,type:`none`,exports:void 0,imports:void 0};if(o!==void 0){let e;try{e=JSON.parse(o)}catch(e){let i=new O(t,(n?`"${r}" from `:``)+l(n||r),e.message);throw i.cause=e,i}s.exists=!0,j.call(e,`name`)&&typeof e.name==`string`&&(s.name=e.name),j.call(e,`main`)&&typeof e.main==`string`&&(s.main=e.main),j.call(e,`exports`)&&(s.exports=e.exports),j.call(e,`imports`)&&(s.imports=e.imports),j.call(e,`type`)&&(e.type===`commonjs`||e.type===`module`)&&(s.type=e.type)}return M.set(t,s),s}function P(e){let t=new URL(`package.json`,e);for(;!t.pathname.endsWith(`node_modules/package.json`);){let n=N(l(t),{specifier:e});if(n.exists)return n;let r=t;if(t=new URL(`../package.json`,t),t.pathname===r.pathname)break}return{pjsonPath:l(t),exists:!1,type:`none`}}const _e={}.hasOwnProperty,ve={__proto__:null,".json":`json`,".cjs":`commonjs`,".cts":`commonjs`,".js":`module`,".ts":`module`,".mts":`module`,".mjs":`module`},F={__proto__:null,"data:":be,"file:":Se,"node:":()=>`builtin`};function ye(e){return e&&/^\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?$/i.test(e)?`module`:e===`application/json`?`json`:null}function be(e){let{1:t}=/^([^/]+\/[^;,]+)(?:[^,]*?)(;base64)?,/.exec(e.pathname)||[null,null,null];return ye(t)}function xe(e){let t=e.pathname;for(let e=t.length-1;e>0;e--)switch(t.charCodeAt(e)){case 47:return``;case 46:return t.charCodeAt(e-1)===47?``:t.slice(e)}return``}function Se(e,t,n){let r=xe(e);if(r===`.js`){let{type:t}=P(e);return t===`none`?`commonjs`:t}if(r===``){let{type:t}=P(e);return t===`module`?`module`:t===`none`?`commonjs`:t}let i=ve[r];if(i)return i;if(!n)throw new ge(r,l(e))}function Ce(e,t){let n=e.protocol;return _e.call(F,n)&&F[n](e,t,!0)||null}const I=RegExp.prototype[Symbol.replace],L={}.hasOwnProperty,R=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,z=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,we=/^\.|%|\\/,B=/\*/g,Te=/%2f|%5c/i,V=/* @__PURE__ */ new Set,Ee=/[/\\]{2}/;function H(e,t,n,r,i,a,o){if(f.noDeprecation)return;let s=l(r),c=Ee.exec(o?e:t)!==null;f.emitWarning(`Use of deprecated ${c?`double slash`:`leading or trailing slash matching`} resolving "${e}" for module request "${t}" ${t===n?``:`matched to "${n}" `}in the "${i?`imports`:`exports`}" field module resolution of the package at ${s}${a?` imported from ${l(a)}`:``}.`,`DeprecationWarning`,`DEP0166`)}function U(e,t,n,r){if(f.noDeprecation||Ce(e,{parentURL:n.href})!==`module`)return;let a=l(e.href),o=l(new c(`.`,t)),s=l(n);r?i.resolve(o,r)!==a&&f.emitWarning(`Package ${o} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${a.slice(o.length)}", imported from ${s}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`):f.emitWarning(`No "main" or "exports" field defined in the package.json for ${o} resolving the main entry point "${a.slice(o.length)}", imported from ${s}.\nDefault "index" lookups for the main are deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`)}function W(e){try{return r(e)}catch{}}function G(e){let t=r(e,{throwIfNoEntry:!1});return(t?t.isFile():void 0)??!1}function De(e,t,n){let r;if(t.main!==void 0){if(r=new c(t.main,e),G(r))return r;let i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<i.length&&(r=new c(i[a],e),!G(r));)r=void 0;if(r)return U(r,e,n,t.main),r}let i=[`./index.js`,`./index.json`,`./index.node`],a=-1;for(;++a<i.length&&(r=new c(i[a],e),!G(r));)r=void 0;if(r)return U(r,e,n,t.main),r;throw new k(l(new c(`.`,e)),l(n))}function Oe(e,t,r){if(Te.exec(e.pathname)!==null)throw new D(e.pathname,String.raw`must not include encoded "/" or "\" characters`,l(t));let a;try{a=l(e)}catch(n){throw Object.defineProperty(n,"input",{value:String(e)}),Object.defineProperty(n,"module",{value:String(t)}),n}let o=W(a.endsWith(`/`)?a.slice(-1):a);if(o&&o.isDirectory()){let n=new he(a,l(t));throw n.url=String(e),n}if(!o||!o.isFile()){let n=new k(a||e.pathname,t&&l(t),!0);throw n.url=String(e),n}if(!r){let t=n(a),{search:r,hash:o}=e;e=u(t+(a.endsWith(i.sep)?`/`:``)),e.search=r,e.hash=o}return e}function ke(e,t,n){return new pe(e,t&&l(new c(`.`,t)),l(n))}function K(e,t,n){return new me(l(new c(`.`,t)),e,n&&l(n))}function Ae(e,t,n,r,i){throw new D(e,`request is not a valid match in pattern "${t}" for the "${r?`imports`:`exports`}" resolution of ${l(n)}`,i&&l(i))}function q(e,t,n,r,i){return t=typeof t==`object`&&t?JSON.stringify(t,null,``):`${t}`,new fe(l(new c(`.`,n)),e,t,r,i&&l(i))}function je(e,t,n,r,i,a,o,s,l){if(t!==``&&!a&&e.at(-1)!==`/`)throw q(n,e,r,o,i);if(!e.startsWith(`./`)){if(o&&!e.startsWith(`../`)&&!e.startsWith(`/`)){let n=!1;try{new c(e),n=!0}catch{}if(!n)return Z(a?I.call(B,e,()=>t):e+t,r,l)}throw q(n,e,r,o,i)}if(R.exec(e.slice(2))!==null){if(z.exec(e.slice(2))===null){if(!s){let s=a?n.replace(`*`,()=>t):n+t;H(a?I.call(B,e,()=>t):e,s,n,r,o,i,!0)}}else throw q(n,e,r,o,i)}let u=new c(e,r),d=u.pathname,f=new c(`.`,r).pathname;if(!d.startsWith(f))throw q(n,e,r,o,i);if(t===``)return u;if(R.exec(t)!==null){let c=a?n.replace(`*`,()=>t):n+t;z.exec(t)===null?s||H(a?I.call(B,e,()=>t):e,c,n,r,o,i,!1):Ae(c,n,r,o,i)}return a?new c(I.call(B,u.href,()=>t)):new c(t,u)}function Me(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}function J(e,t,n,r,i,a,o,s,c){if(typeof t==`string`)return je(t,n,r,e,i,a,o,s,c);if(Array.isArray(t)){let l=t;if(l.length===0)return null;let u,d=-1;for(;++d<l.length;){let t=l[d],f;try{f=J(e,t,n,r,i,a,o,s,c)}catch(e){let t=e;if(u=t,t.code===`ERR_INVALID_PACKAGE_TARGET`)continue;throw e}if(f!==void 0){if(f===null)u=null;else return f}}if(u==null)return u;throw u}if(typeof t==`object`&&t){let u=Object.getOwnPropertyNames(t),d=-1;for(;++d<u.length;){let t=u[d];if(Me(t))throw new O(l(e),l(i),`"exports" cannot contain numeric property keys.`)}for(d=-1;++d<u.length;){let l=u[d];if(l==="default"||c&&c.has(l)){let u=t[l],d=J(e,u,n,r,i,a,o,s,c);if(d===void 0)continue;return d}}}else{if(t===null)return null;throw q(r,t,e,o,i)}}function Ne(e,t,n){if(typeof e==`string`||Array.isArray(e))return!0;if(typeof e!=`object`||!e)return!1;let r=Object.getOwnPropertyNames(e),i=!1,a=0,o=-1;for(;++o<r.length;){let e=r[o],s=e===``||e[0]!==`.`;if(a++===0)i=s;else if(i!==s)throw new O(l(t),l(n),`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}function Pe(e,t,n){if(f.noDeprecation)return;let r=l(t);V.has(r+`|`+e)||(V.add(r+`|`+e),f.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${n?` imported from ${l(n)}`:``}. Mapping specifiers ending in "/" is no longer supported.`,`DeprecationWarning`,`DEP0155`))}function Y(e,t,n,r,i){let a=n.exports;if(Ne(a,e,r)&&(a={".":a}),L.call(a,t)&&!t.includes(`*`)&&!t.endsWith(`/`)){let n=a[t],o=J(e,n,``,t,r,!1,!1,!1,i);if(o==null)throw K(t,e,r);return o}let o=``,s=``,c=Object.getOwnPropertyNames(a),l=-1;for(;++l<c.length;){let n=c[l],i=n.indexOf(`*`);if(i!==-1&&t.startsWith(n.slice(0,i))){t.endsWith(`/`)&&Pe(t,e,r);let a=n.slice(i+1);t.length>=n.length&&t.endsWith(a)&&X(o,n)===1&&n.lastIndexOf(`*`)===i&&(o=n,s=t.slice(i,t.length-a.length))}}if(o){let n=a[o],c=J(e,n,s,o,r,!0,!1,t.endsWith(`/`),i);if(c==null)throw K(t,e,r);return c}throw K(t,e,r)}function X(e,t){let n=e.indexOf(`*`),r=t.indexOf(`*`),i=n===-1?e.length:n+1,a=r===-1?t.length:r+1;return i>a?-1:a>i||n===-1?1:r===-1||e.length>t.length?-1:+(t.length>e.length)}function Fe(e,t,n){if(e===`#`||e.endsWith(`/`))throw new D(e,`is not a valid internal imports specifier name`,l(t));let r,i=P(t);if(i.exists){r=u(i.pjsonPath);let a=i.imports;if(a){if(L.call(a,e)&&!e.includes(`*`)){let i=J(r,a[e],``,e,t,!1,!0,!1,n);if(i!=null)return i}else{let i=``,o=``,s=Object.getOwnPropertyNames(a),c=-1;for(;++c<s.length;){let t=s[c],n=t.indexOf(`*`);if(n!==-1&&e.startsWith(t.slice(0,n))){let r=t.slice(n+1);e.length>=t.length&&e.endsWith(r)&&X(i,t)===1&&t.lastIndexOf(`*`)===n&&(i=t,o=e.slice(n,e.length-r.length))}}if(i){let e=a[i],s=J(r,e,o,i,t,!0,!0,!1,n);if(s!=null)return s}}}}throw ke(e,r,t)}function Ie(e,t){let n=e.indexOf(`/`),r=!0,i=!1;e[0]===`@`&&(i=!0,n===-1||e.length===0?r=!1:n=e.indexOf(`/`,n+1));let a=n===-1?e:e.slice(0,n);if(we.exec(a)!==null&&(r=!1),!r)throw new D(e,`is not a valid package name`,l(t));return{packageName:a,packageSubpath:`.`+(n===-1?``:e.slice(n)),isScoped:i}}function Z(e,t,n){if(x.includes(e))return new c(`node:`+e);let{packageName:r,packageSubpath:i,isScoped:a}=Ie(e,t),o=P(t);if(o.exists&&o.name===r&&o.exports!==void 0&&o.exports!==null)return Y(u(o.pjsonPath),i,o,t,n);let s=new c(`./node_modules/`+r+`/package.json`,t),d=l(s),f;do{let o=W(d.slice(0,-13));if(!o||!o.isDirectory()){f=d,s=new c((a?`../../../../node_modules/`:`../../../node_modules/`)+r+`/package.json`,s),d=l(s);continue}let u=N(d,{base:t,specifier:e});return u.exports!==void 0&&u.exports!==null?Y(s,i,u,t,n):i===`.`?De(s,u,t):new c(i,s)}while(d.length!==f.length);throw new k(r,l(t),!1)}function Le(e){return!(e[0]!==`.`||e.length!==1&&e[1]!==`/`&&(e[1]!==`.`||e.length!==2&&e[2]!==`/`))}function Re(e){return e===``?!1:e[0]===`/`||Le(e)}function ze(e,t,n,r){let i=t.protocol,a=i===`data:`,o;if(Re(e))try{o=new c(e,t)}catch(n){let r=new A(e,t);throw r.cause=n,r}else if(i===`file:`&&e[0]===`#`)o=Fe(e,t,n);else try{o=new c(e)}catch(r){if(a&&!x.includes(e)){let n=new A(e,t);throw n.cause=r,n}o=Z(e,t,n)}return d.ok(o!==void 0,`expected to be defined`),o.protocol===`file:`?Oe(o,t,r):o}const Be=/* #__PURE__ */ new Set([`node`,`import`]),Ve=process.platform===`win32`,He=globalThis.__EXSOLVE_CACHE__||=/* @__PURE__ */ new Map;function Ue(e,r){let i=$e(e);if(`external`in i)return i.external;let a=i.specifier,o=i.url,s=i.absolutePath,c,l;if(r?.cache!==!1&&(c=Ye(s||a,r),l=r?.cache&&typeof r?.cache==`object`?r.cache:He),l){let e=l.get(c);if(typeof e==`string`)return e;if(e instanceof Error){if(r?.try)return;throw e}}if(s)try{let e=t(s);if(e.isSymbolicLink()&&(s=n(s),o=u(s)),e.isFile())return l&&l.set(c,o.href),o.href}catch(e){if(e?.code!==`ENOENT`)throw l&&l.set(c,e),e}let d=r?.conditions?new Set(r.conditions):Be,f=a||o.href,p=Ke(r?.from),m=r?.suffixes||[``],h=r?.extensions?[``,...r.extensions]:[``],g;for(let e of p){for(let t of m){let n=Ze(f,t);n===`.`&&(n+=`/.`);for(let t of h)if(g=Ge(n+t,e,d),g)break;if(g)break}if(g)break}if(!g){let t=/* @__PURE__ */ Error(`Cannot resolve module "${e}" (from: ${p.map(e=>Je(e)).join(`, `)})`);if(t.code=`ERR_MODULE_NOT_FOUND`,l&&l.set(c,t),r?.try)return;throw t}return l&&l.set(c,g.href),g.href}function We(e,t){let n=Ue(e,t);if(!n||!n.startsWith(`file://`)&&t?.try)return;let r=l(n);return Ve?Qe(r):r}function Ge(e,t,n){try{return ze(e,t,n)}catch{}}function Ke(e){let t=(Array.isArray(e)?e:[e]).flatMap(e=>qe(e));return t.length===0?[u(`./`)]:t}function qe(e){if(!e)return[];if($(e))return[e];if(typeof e!=`string`)return[];if(/^(?:node|data|http|https|file):/.test(e))return new URL(e);try{return e.endsWith(`/`)||r(e).isDirectory()?u(e+`/`):u(e)}catch{return[u(e+`/`),u(e)]}}function Je(e){try{return l(e)}catch{return e}}function Ye(e,t){let n;return Array.isArray(t?.from)?n=t.from:t?.from&&(n=[t.from]),Q([e])+Xe(t?.conditions)+Q(t?.extensions)+Q(n)+Q(t?.suffixes)}function Xe(e){return e?Q([...new Set(e)].sort()):`2:6:import4:node`}function Q(e){if(!e)return`-`;let t=`${e.length}:`;for(let n of e){let e=String(n);t+=`${e.length}:${e}`}return t}function Ze(e,t){return!e||!t||t===`/`?e:(e.endsWith(`/`)?e:e+`/`)+(t.startsWith(`/`)?t.slice(1):t)}function Qe(e){return e.replace(/\\/g,`/`).replace(/^[a-z]:\//,e=>e.toUpperCase())}function $(e){return e instanceof URL||e?.constructor?.name===`URL`}function $e(e){if(typeof e==`string`){if(e.startsWith(`file:`)){let t=new URL(e);return{url:t,absolutePath:l(t)}}return a(e)?{url:u(e),absolutePath:e}:/^(?:node|data|http|https):/.test(e)?{external:e}:x.includes(e)&&!e.includes(`:`)?{external:`node:${e}`}:{specifier:e}}if($(e))return e.protocol===`file:`?{url:e,absolutePath:l(e)}:{external:e.href};throw TypeError("id must be a `string` or `URL`")}export{b as a,re as c,ie as i,oe as n,te as o,ae as r,v as s,We as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,o as n,r,s as i,t as a}from"./dist-B-B_PlmU.js";import{n as o,t as s}from"./_format-CFy6_BQd.js";import{t as c}from"./jsonc-DJWoCi14.js";import{promises as l,statSync as u}from"node:fs";import"node:fs/promises";import{fileURLToPath as d}from"node:url";function f(e,t){let n=JSON.parse(s(e),t?.reviver);return o(e,n,t),n}const p={startingFrom:`.`,rootPattern:/^node_modules$/,reverse:!1,test:e=>{try{if(u(e).isFile())return!0}catch{}}};async function m(e,r={}){let i=Array.isArray(e)?e:[e],a={...p,...r},o=t(a.startingFrom),s=o[0]===`/`,c=o.split(`/`).filter(Boolean);if(i.includes(c.at(-1))&&await a.test(o))return o;s&&(c[0]=`/`+c[0]);let l=c.findIndex(e=>e.match(a.rootPattern));if(l===-1&&(l=0),a.reverse)for(let e=l+1;e<=c.length;e++)for(let t of i){let r=n(...c.slice(0,e),t);if(await a.test(r))return r}else for(let e=c.length;e>l;e--)for(let t of i){let r=n(...c.slice(0,e),t);if(await a.test(r))return r}throw Error(`Cannot find matching ${e} in ${a.startingFrom} or parent directories`)}function h(e,t={}){return m(e,t)}function g(t,n={}){return t instanceof URL||t.startsWith(`file://`)?i(d(t)):e(t)?i(t):a(t,{...n,from:n.from||n.parent||n.url})}const _=[`yarn.lock`,`package-lock.json`,`pnpm-lock.yaml`,`npm-shrinkwrap.json`,`bun.lockb`,`bun.lock`,`deno.lock`],v=[`package.json`,`package.json5`,`package.yaml`],y=[`pnpm-workspace.yaml`,`lerna.json`,`turbo.json`,`rush.json`,`deno.json`,`deno.jsonc`],b=/* #__PURE__ */ new Map;async function x(e,t={}){let n=await S(e,t),r=t.cache&&typeof t.cache!=`boolean`?t.cache:b;if(t.cache&&r.has(n))return r.get(n);let i=await l.readFile(n,`utf8`),a;try{a=f(i)}catch{a=c(i)}return r.set(n,a),a}async function S(e=process.cwd(),t={}){return h(`package.json`,{...t,startingFrom:g(e,t)})}const C={workspaceFile:e=>m(y,e).then(e=>r(e)),gitConfig:e=>m(`.git/config`,e).then(e=>t(e,`../..`)),lockFile:e=>m(_,e).then(e=>r(e)),packageJson:e=>m(v,e).then(e=>r(e))};async function w(e=process.cwd(),t={}){let n=g(e,t),r=t.tests||[`workspaceFile`,`gitConfig`,`lockFile`,`packageJson`];for(let e of r){let r=C[e];if(t[e]===!1||!r)continue;let i=t[e]||(e===`gitConfig`?`closest`:`furthest`),a=await r({...t,startingFrom:n,reverse:i===`furthest`}).catch(()=>{});if(a)return a}throw Error(`Cannot detect workspace root from ${e}`)}export{w as findWorkspaceDir,x as readPackageJSON};
@@ -0,0 +1,14 @@
1
+ import{n as e,r as t,t as n}from"./_format-CFy6_BQd.js";var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule||!c.call(e,`default`)?i(n,`default`,{value:e,enumerable:!0}):n,e)),f=l(((e,t)=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,t.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,t.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/})),p=l(((e,t)=>{let n=f();t.exports={isSpaceSeparator(e){return typeof e==`string`&&n.Space_Separator.test(e)},isIdStartChar(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`$`||e===`_`||n.ID_Start.test(e))},isIdContinueChar(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`_`||e===`‌`||e===`‍`||n.ID_Continue.test(e))},isDigit(e){return typeof e==`string`&&/[0-9]/.test(e)},isHexDigit(e){return typeof e==`string`&&/[0-9A-Fa-f]/.test(e)}}})),m=l(((e,t)=>{let n=p(),r,i,a,o,s,c,l,u,d;t.exports=function(e,t){r=String(e),i=`start`,a=[],o=0,s=1,c=0,l=void 0,u=void 0,d=void 0;do l=y(),O[i]();while(l.type!==`eof`);return typeof t==`function`?f({"":d},``,t):d};function f(e,t,n){let r=e[t];if(typeof r==`object`&&r){if(Array.isArray(r))for(let e=0;e<r.length;e++){let t=String(e),i=f(r,t,n);i===void 0?delete r[t]:Object.defineProperty(r,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}else for(let e in r){let t=f(r,e,n);t===void 0?delete r[e]:Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}}return n.call(e,t,r)}let m,h,g,_,v;function y(){for(m=`default`,h=``,g=!1,_=1;;){v=b();let e=S[m]();if(e)return e}}function b(){if(r[o])return String.fromCodePoint(r.codePointAt(o))}function x(){let e=b();return e===`
2
+ `?(s++,c=0):e?c+=e.length:c++,e&&(o+=e.length),e}let S={default(){switch(v){case` `:case`\v`:case`\f`:case` `:case`\xA0`:case``:case`
3
+ `:case`\r`:case`\u2028`:case`\u2029`:x();return;case`/`:x(),m=`comment`;return;case void 0:return x(),C(`eof`)}if(n.isSpaceSeparator(v))x();else return S[i]()},comment(){switch(v){case`*`:x(),m=`multiLineComment`;return;case`/`:x(),m=`singleLineComment`;return}throw j(x())},multiLineComment(){switch(v){case`*`:x(),m=`multiLineCommentAsterisk`;return;case void 0:throw j(x())}x()},multiLineCommentAsterisk(){switch(v){case`*`:x();return;case`/`:x(),m=`default`;return;case void 0:throw j(x())}x(),m=`multiLineComment`},singleLineComment(){switch(v){case`
4
+ `:case`\r`:case`\u2028`:case`\u2029`:x(),m=`default`;return;case void 0:return x(),C(`eof`)}x()},value(){switch(v){case`{`:case`[`:return C(`punctuator`,x());case`n`:return x(),w(`ull`),C(`null`,null);case`t`:return x(),w(`rue`),C(`boolean`,!0);case`f`:return x(),w(`alse`),C(`boolean`,!1);case`-`:case`+`:x()===`-`&&(_=-1),m=`sign`;return;case`.`:h=x(),m=`decimalPointLeading`;return;case`0`:h=x(),m=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:h=x(),m=`decimalInteger`;return;case`I`:return x(),w(`nfinity`),C(`numeric`,1/0);case`N`:return x(),w(`aN`),C(`numeric`,NaN);case`"`:case`'`:g=x()===`"`,h=``,m=`string`;return}throw j(x())},identifierNameStartEscape(){if(v!==`u`)throw j(x());x();let e=D();switch(e){case`$`:case`_`:break;default:if(!n.isIdStartChar(e))throw N()}h+=e,m=`identifierName`},identifierName(){switch(v){case`$`:case`_`:case`‌`:case`‍`:h+=x();return;case`\\`:x(),m=`identifierNameEscape`;return}if(n.isIdContinueChar(v))h+=x();else return C(`identifier`,h)},identifierNameEscape(){if(v!==`u`)throw j(x());x();let e=D();switch(e){case`$`:case`_`:case`‌`:case`‍`:break;default:if(!n.isIdContinueChar(e))throw N()}h+=e,m=`identifierName`},sign(){switch(v){case`.`:h=x(),m=`decimalPointLeading`;return;case`0`:h=x(),m=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:h=x(),m=`decimalInteger`;return;case`I`:return x(),w(`nfinity`),C(`numeric`,1/0*_);case`N`:return x(),w(`aN`),C(`numeric`,NaN)}throw j(x())},zero(){switch(v){case`.`:h+=x(),m=`decimalPoint`;return;case`e`:case`E`:h+=x(),m=`decimalExponent`;return;case`x`:case`X`:h+=x(),m=`hexadecimal`;return}return C(`numeric`,_*0)},decimalInteger(){switch(v){case`.`:h+=x(),m=`decimalPoint`;return;case`e`:case`E`:h+=x(),m=`decimalExponent`;return}if(n.isDigit(v))h+=x();else return C(`numeric`,_*Number(h))},decimalPointLeading(){if(n.isDigit(v))h+=x(),m=`decimalFraction`;else throw j(x())},decimalPoint(){switch(v){case`e`:case`E`:h+=x(),m=`decimalExponent`;return}if(n.isDigit(v))h+=x(),m=`decimalFraction`;else return C(`numeric`,_*Number(h))},decimalFraction(){switch(v){case`e`:case`E`:h+=x(),m=`decimalExponent`;return}if(n.isDigit(v))h+=x();else return C(`numeric`,_*Number(h))},decimalExponent(){switch(v){case`+`:case`-`:h+=x(),m=`decimalExponentSign`;return}if(n.isDigit(v))h+=x(),m=`decimalExponentInteger`;else throw j(x())},decimalExponentSign(){if(n.isDigit(v))h+=x(),m=`decimalExponentInteger`;else throw j(x())},decimalExponentInteger(){if(n.isDigit(v))h+=x();else return C(`numeric`,_*Number(h))},hexadecimal(){if(n.isHexDigit(v))h+=x(),m=`hexadecimalInteger`;else throw j(x())},hexadecimalInteger(){if(n.isHexDigit(v))h+=x();else return C(`numeric`,_*Number(h))},string(){switch(v){case`\\`:x(),h+=T();return;case`"`:if(g)return x(),C(`string`,h);h+=x();return;case`'`:if(!g)return x(),C(`string`,h);h+=x();return;case`
5
+ `:case`\r`:throw j(x());case`\u2028`:case`\u2029`:P(v);break;case void 0:throw j(x())}h+=x()},start(){switch(v){case`{`:case`[`:return C(`punctuator`,x())}m=`value`},beforePropertyName(){switch(v){case`$`:case`_`:h=x(),m=`identifierName`;return;case`\\`:x(),m=`identifierNameStartEscape`;return;case`}`:return C(`punctuator`,x());case`"`:case`'`:g=x()===`"`,m=`string`;return}if(n.isIdStartChar(v))h+=x(),m=`identifierName`;else throw j(x())},afterPropertyName(){if(v===`:`)return C(`punctuator`,x());throw j(x())},beforePropertyValue(){m=`value`},afterPropertyValue(){switch(v){case`,`:case`}`:return C(`punctuator`,x())}throw j(x())},beforeArrayValue(){if(v===`]`)return C(`punctuator`,x());m=`value`},afterArrayValue(){switch(v){case`,`:case`]`:return C(`punctuator`,x())}throw j(x())},end(){throw j(x())}};function C(e,t){return{type:e,value:t,line:s,column:c}}function w(e){for(let t of e){if(b()!==t)throw j(x());x()}}function T(){switch(b()){case`b`:return x(),`\b`;case`f`:return x(),`\f`;case`n`:return x(),`
6
+ `;case`r`:return x(),`\r`;case`t`:return x(),` `;case`v`:return x(),`\v`;case`0`:if(x(),n.isDigit(b()))throw j(x());return`\0`;case`x`:return x(),E();case`u`:return x(),D();case`
7
+ `:case`\u2028`:case`\u2029`:return x(),``;case`\r`:return x(),b()===`
8
+ `&&x(),``;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:throw j(x());case void 0:throw j(x())}return x()}function E(){let e=``,t=b();if(!n.isHexDigit(t)||(e+=x(),t=b(),!n.isHexDigit(t)))throw j(x());return e+=x(),String.fromCodePoint(parseInt(e,16))}function D(){let e=``,t=4;for(;t-->0;){let t=b();if(!n.isHexDigit(t))throw j(x());e+=x()}return String.fromCodePoint(parseInt(e,16))}let O={start(){if(l.type===`eof`)throw M();k()},beforePropertyName(){switch(l.type){case`identifier`:case`string`:u=l.value,i=`afterPropertyName`;return;case`punctuator`:A();return;case`eof`:throw M()}},afterPropertyName(){if(l.type===`eof`)throw M();i=`beforePropertyValue`},beforePropertyValue(){if(l.type===`eof`)throw M();k()},beforeArrayValue(){if(l.type===`eof`)throw M();l.type===`punctuator`&&l.value===`]`?A():k()},afterPropertyValue(){if(l.type===`eof`)throw M();switch(l.value){case`,`:i=`beforePropertyName`;return;case`}`:A()}},afterArrayValue(){if(l.type===`eof`)throw M();switch(l.value){case`,`:i=`beforeArrayValue`;return;case`]`:A()}},end(){}};function k(){let e;switch(l.type){case`punctuator`:switch(l.value){case`{`:e={};break;case`[`:e=[]}break;case`null`:case`boolean`:case`numeric`:case`string`:e=l.value}if(d===void 0)d=e;else{let t=a[a.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,u,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(typeof e==`object`&&e)a.push(e),i=Array.isArray(e)?`beforeArrayValue`:`beforePropertyName`;else{let e=a[a.length-1];i=e==null?`end`:Array.isArray(e)?`afterArrayValue`:`afterPropertyValue`}}function A(){a.pop();let e=a[a.length-1];i=e==null?`end`:Array.isArray(e)?`afterArrayValue`:`afterPropertyValue`}function j(e){return I(e===void 0?`JSON5: invalid end of input at ${s}:${c}`:`JSON5: invalid character '${F(e)}' at ${s}:${c}`)}function M(){return I(`JSON5: invalid end of input at ${s}:${c}`)}function N(){return c-=5,I(`JSON5: invalid identifier character at ${s}:${c}`)}function P(e){console.warn(`JSON5: '${F(e)}' in strings is not valid ECMAScript; consider escaping`)}function F(e){let t={"'":`\\'`,'"':`\\"`,"\\":`\\\\`,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`,"\v":`\\v`,"\0":`\\0`,"\u2028":`\\u2028`,"\u2029":`\\u2029`};if(t[e])return t[e];if(e<` `){let t=e.charCodeAt(0).toString(16);return`\\x`+(`00`+t).substring(t.length)}return e}function I(e){let t=SyntaxError(e);return t.lineNumber=s,t.columnNumber=c,t}})),h=l(((e,t)=>{let n=p();t.exports=function(e,t,r){let i=[],a=``,o,s,c=``,l;if(typeof t==`object`&&t&&!Array.isArray(t)&&(r=t.space,l=t.quote,t=t.replacer),typeof t==`function`)s=t;else if(Array.isArray(t)){o=[];for(let e of t){let t;typeof e==`string`?t=e:(typeof e==`number`||e instanceof String||e instanceof Number)&&(t=String(e)),t!==void 0&&o.indexOf(t)<0&&o.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r==`number`?r>0&&(r=Math.min(10,Math.floor(r)),c=` `.substr(0,r)):typeof r==`string`&&(c=r.substr(0,10)),u(``,{"":e});function u(e,t){let n=t[e];switch(n!=null&&(typeof n.toJSON5==`function`?n=n.toJSON5(e):typeof n.toJSON==`function`&&(n=n.toJSON(e))),s&&(n=s.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return`null`;case!0:return`true`;case!1:return`false`}if(typeof n==`string`)return d(n,!1);if(typeof n==`number`)return String(n);if(typeof n==`object`)return Array.isArray(n)?m(n):f(n)}function d(e){let t={"'":.1,'"':.2},r={"'":`\\'`,'"':`\\"`,"\\":`\\\\`,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`,"\v":`\\v`,"\0":`\\0`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},i=``;for(let a=0;a<e.length;a++){let o=e[a];switch(o){case`'`:case`"`:t[o]++,i+=o;continue;case`\0`:if(n.isDigit(e[a+1])){i+=`\\x00`;continue}}if(r[o])i+=r[o];else if(o<` `){let e=o.charCodeAt(0).toString(16);i+=`\\x`+(`00`+e).substring(e.length)}else i+=o}let a=l||Object.keys(t).reduce((e,n)=>t[e]<t[n]?e:n);return i=i.replace(new RegExp(a,`g`),r[a]),a+i+a}function f(e){if(i.indexOf(e)>=0)throw TypeError(`Converting circular structure to JSON5`);i.push(e);let t=a;a+=c;let n=o||Object.keys(e),r=[];for(let t of n){let n=u(t,e);if(n!==void 0){let e=p(t)+`:`;c!==``&&(e+=` `),e+=n,r.push(e)}}let s;if(r.length===0)s=`{}`;else{let e;if(c===``)e=r.join(`,`),s=`{`+e+`}`;else{let n=`,
9
+ `+a;e=r.join(n),s=`{
10
+ `+a+e+`,
11
+ `+t+`}`}}return i.pop(),a=t,s}function p(e){if(e.length===0)return d(e,!0);let t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t))return d(e,!0);for(let r=t.length;r<e.length;r++)if(!n.isIdContinueChar(String.fromCodePoint(e.codePointAt(r))))return d(e,!0);return e}function m(e){if(i.indexOf(e)>=0)throw TypeError(`Converting circular structure to JSON5`);i.push(e);let t=a;a+=c;let n=[];for(let t=0;t<e.length;t++){let r=u(String(t),e);n.push(r===void 0?`null`:r)}let r;if(n.length===0)r=`[]`;else if(c===``)r=`[`+n.join(`,`)+`]`;else{let e=`,
12
+ `+a,i=n.join(e);r=`[
13
+ `+a+i+`,
14
+ `+t+`]`}return i.pop(),a=t,r}}})),g=d(m(),1),_=d(h(),1);function v(t,r){let i=(0,g.default)(n(t),r?.reviver);return e(t,i,r),i}function y(e,n){let r=t(e,n),i=(0,_.default)(e,n?.replacer,r.indent);return r.whitespace.start+i+r.whitespace.end}export{v as parseJSON5,y as stringifyJSON5};
@@ -0,0 +1,4 @@
1
+ import{t as e}from"./rolldown-runtime-DT7IzrpZ.js";import{n as t,t as n}from"./_format-CFy6_BQd.js";const r=Symbol(`singleComment`),i=Symbol(`multiComment`),a=()=>``,o=(e,t,n)=>e.slice(t,n).replace(/[^ \t\r\n]/g,` `),s=(e,t)=>{let n=t-1,r=0;for(;e[n]===`\\`;)--n,r+=1;return!!(r%2)};function c(e,{whitespace:t=!0,trailingCommas:n=!1}={}){if(typeof e!=`string`)throw TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof e}\``);let c=t?o:a,l=!1,u=!1,d=0,f=``,p=``,m=-1;for(let t=0;t<e.length;t++){let a=e[t],o=e[t+1];if(u||a!==`"`||s(e,t)||(l=!l),!l){if(!u&&a+o===`//`)f+=e.slice(d,t),d=t,u=r,t++;else if(u===r&&a+o===`\r
2
+ `){t++,u=!1,f+=c(e,d,t),d=t;continue}else if(u===r&&a===`
3
+ `)u=!1,f+=c(e,d,t),d=t;else if(!u&&a+o===`/*`){f+=e.slice(d,t),d=t,u=i,t++;continue}else if(u===i&&a+o===`*/`){t++,u=!1,f+=c(e,d,t+1),d=t+1;continue}else n&&!u&&(m===-1?a===`,`&&(p+=f+e.slice(d,t),f=``,d=t,m=t):a===`}`||a===`]`?(f+=e.slice(d,t),p+=c(f,0,1)+f.slice(1),f=``,d=t,m=-1):a!==` `&&a!==` `&&a!==`\r`&&a!==`
4
+ `&&(f+=e.slice(d,t),d=t,m=-1))}}let h=u===r?c(e,d):e.slice(d);return p+f+h}var l=/* @__PURE__ */ e({parseJSONC:()=>u});function u(e,r){let i=JSON.parse(c(n(e),{trailingCommas:r?.allowTrailingComma}));return t(e,i,r),i}export{l as n,u as t};
@@ -0,0 +1 @@
1
+ import{createHash as e}from"node:crypto";var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r};function r(e){return typeof e==`string`?`'${e}'`:new o().serialize(e)}const i=/*@__PURE__*/ (function(){let e=/* @__PURE__ */ new Uint8Array(128);for(let t=0;t<69;t++)e[` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function a(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let a=0;a<n;a++){let n=e.charCodeAt(a),o=t.charCodeAt(a);if(n===o)continue;let s=n<128&&i[n]?i[n]:n+128,c=o<128&&i[o]?i[o]:o+128;if(s!==c)return s<c?-1:1;r===0&&(r=n>o?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}const o=/*@__PURE__*/ (function(){class e{#e=/* @__PURE__ */ new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?a(e,t):n===`number`&&r===`number`?e-t:a(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(a),o=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];o+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(o+=`,`)}return o+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),s=globalThis.process?.getBuiltinModule?.(`crypto`)?.hash,c=`sha256`,l=`base64url`;function u(t){if(s)return s(c,t,l);let n=e(c).update(t);return globalThis.process?.versions?.webcontainer?n.digest().toString(l):n.digest(l)}var d=/* @__PURE__ */ n({digest:()=>u}),f=/* @__PURE__ */ n({diff:()=>m});const p=`__proto__`;function m(e,t){let n=[];return h(e,t,``,n),n}function h(e,t,n,r){if(e===t)return;let i=typeof e!=`object`||!e,a=typeof t!=`object`||!t;if(!i&&!a){let i=g(e),a=g(t);for(let[e,t]of i){let i=n?`${n}.${e}`:e;a.has(e)?h(t,a.get(e),i,r):r.push(new x(i,`removed`,void 0,y(t,i)))}for(let[e,t]of a){if(i.has(e))continue;let a=n?`${n}.${e}`:e;r.push(new x(a,`added`,y(t,a)))}return}if(_(e,i)||_(t,a))return;let o=v(e,n,i),s=v(t,n,a);o.hash!==s.hash&&r.push(new x(n,`changed`,s,o))}function g(e){let t=/* @__PURE__ */ new Map;for(let n in e)n!==p&&t.set(n,e[n]);return t}function _(e,t){if(t)return!1;for(let t in e)if(t!==p)return!0;return!1}function v(e,t,n){return n?new S(t,e,b(e)):new S(t,e,`{}`,Object.create(null))}function y(e,t=``){if(typeof e!=`object`||!e)return new S(t,e,b(e));let n=Object.create(null),r=[];for(let i in e){if(i===p)continue;let a=y(e[i],t?`${t}.${i}`:i);n[i]=a,r.push(a.hash)}return new S(t,e,`{${r.join(`:`)}}`,n)}function b(e){switch(typeof e){case`string`:return`'${e}'`;case`number`:case`boolean`:return``+e;case`bigint`:return`${e}n`;default:return r(e)}}var x=class{key;type;newValue;oldValue;constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue?.toString()}\``}}},S=class{key;value;hash;props;constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}};export{d as dist_exports,f as utils_exports};
@@ -0,0 +1 @@
1
+ import"node:module";var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
@@ -0,0 +1,5 @@
1
+ import{n as e,t}from"./_format-CFy6_BQd.js";let n=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;var r=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){let t=!0,r=!0,i=`Z`;if(typeof e==`string`){let a=e.match(n);a?(a[1]||(t=!1,e=`0000-01-01T${e}`),r=!!a[2],r&&e[10]===` `&&(e=e.replace(` `,`T`)),a[2]&&+a[2]>23?e=``:(i=a[3]||null,e=e.toUpperCase(),!i&&r&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=r,this.#n=i)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,(/* @__PURE__ */ new Date(this.getTime()-t*6e4)).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}};function i(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function a(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
2
+ `,e===t&&(i+=` `.repeat(a+n+2),i+=`^
3
+ `))}return i}var o=class extends Error{line;column;codeblock;constructor(e,t){let[n,r]=i(t.toml,t.ptr),o=a(t.toml,n,r);super(`Invalid TOML document: ${e}\n\n${o}`,t),this.line=n,this.column=r,this.codeblock=o}};function s(e,t=0){let n=e.indexOf(`
4
+ `,t);return e.charCodeAt(n-1)===13&&n--,n}function c(e){for(;e.p<e.s.length;e.p++){let t=e.s.charCodeAt(e.p);if(t===10)break;if(t===13&&e.s.charCodeAt(e.p+1)===10){e.p++;break}if(t<32&&t!==9||t===127)throw new o(`control characters are not allowed in comments`,{toml:e.s,ptr:e.p})}}function l(e,t,n){let r;for(;;){for(;(r=e.s.charCodeAt(e.p))===32||r===9||!t&&(r===10||r===13&&e.s.charCodeAt(e.p+1)===10);)e.p++;if(n||r!==35)break;c(e)}}function u(e,t,n){let r=e.p;if(!n)r=s(e.s,r),e.p=r<0?e.s.length:r;else{for(;e.p<e.s.length;e.p++){let r=e.s.charCodeAt(e.p);if(r===35)c(e);else if(r===n||r===t)return}throw new o(`cannot find end of structure`,{toml:e.s,ptr:r})}}let d=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,f=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,p=/^[+-]?0[0-9_]/;function m(e){let t=e.p,n=e.s.charCodeAt(e.p++),r=n,i=n===39,a=n===e.s.charCodeAt(e.p)&&n===e.s.charCodeAt(e.p+1);a&&((n=e.s.charCodeAt(e.p+=2))===10?e.p++:n===13&&e.s.charCodeAt(e.p+1)===10&&(e.p+=2));let s=``,c=e.p,l=0;for(;e.p<e.s.length;e.p++)if(n=e.s.charCodeAt(e.p),a&&(n===10||n===13&&e.s.charCodeAt(e.p+1)===10))l&&=3;else if(n<32&&n!==9||n===127)throw new o(`control characters are not allowed in strings`,{toml:e.s,ptr:e.p});else if((!l||l===3)&&n===r&&(!a||e.s.charCodeAt(e.p+1)===r&&e.s.charCodeAt(e.p+2)===r))return a&&(e.s.charCodeAt(e.p+3)===r&&e.p++,e.s.charCodeAt(e.p+3)===r&&e.p++),l||(s+=e.s.slice(c,e.p)),e.p+=a?3:1,s;else if(!l)!i&&n===92&&(s+=e.s.slice(c,c=e.p),l=1);else if(l===1){if(n===120||n===117||n===85){let t=0,r=n===120?2:n===117?4:8;for(let n=0;n<r;n++,e.p++){let n=e.s.charCodeAt(e.p+1),r=n>=48&&n<=57?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1;if(r<0)throw new o(`invalid non-hex character in unicode escape`,{toml:e.s,ptr:e.p+1});t=t<<4|r}if(t<0||t>1114111||t>=55296&&t<=57343)throw new o(`invalid unicode escape`,{toml:e.s,ptr:e.p});s+=String.fromCodePoint(t),c=e.p+1,l=0}else if(n===32||n===9)l=2;else{if(n===98)s+=`\b`;else if(n===116)s+=` `;else if(n===110)s+=`
5
+ `;else if(n===102)s+=`\f`;else if(n===114)s+=`\r`;else if(n===101)s+=`\x1B`;else if(n===34)s+=`"`;else if(n===92)s+=`\\`;else throw new o(`unrecognized escape sequence`,{toml:e.s,ptr:e.p});c=e.p+1,l=0}}else if(n!==32&&n!==9){if(l===2)throw new o(`invalid escape: only line-ending whitespace may be escaped`,{toml:e.s,ptr:c});l=+(!i&&n===92),c=e.p}throw new o(`unfinished string`,{toml:e.s,ptr:t})}function h(e,t,n){let r=e.s.slice(t,n),i=r.indexOf(`#`);return i>0&&(c({s:r,p:i,d:0}),r=r.slice(0,i)),r.trimEnd()}function g(e,t,n){let i=e.p,a={toml:e.s,ptr:i};u(e,44,n);let s=h(e,i,e.p);if(!s)throw new o(`incomplete declaration: value expected`,a);if(s===`-inf`)return-1/0;if(s===`inf`||s===`+inf`)return 1/0;if(s===`nan`||s===`+nan`||s===`-nan`)return NaN;if(s===`-0`)return t?0n:0;let c=d.test(s);if(c||f.test(s)){if(p.test(s))throw new o(`leading zeroes are not allowed`,a);s=s.replace(/_/g,``);let e=+s;if(isNaN(e))throw new o(`invalid number`,a);if(c){if((c=!Number.isSafeInteger(e))&&!t)throw new o(`integer value cannot be represented losslessly`,a);(c||t===!0)&&(e=BigInt(s))}return e}let l=new r(s);if(!l.isValid())throw new o(`invalid value`,a);return l}function _(e,t,n){let r=e.p,i=e.s.charCodeAt(r);if(i===91||i===123){if(!e.d--)throw new o(`document contains excessively nested structures. aborting.`,{toml:e.s,ptr:r});let t=i===91?x(e,n):b(e,n);return e.d++,t}if(i===34||i===39)return m(e);if(i===116){if(e.s.charCodeAt(++e.p)!==114||e.s.charCodeAt(++e.p)!==117||e.s.charCodeAt(++e.p)!==101)throw new o(`invalid value`,{toml:e.s,ptr:r});return e.p++,!0}if(i===102){if(e.s.charCodeAt(++e.p)!==97||e.s.charCodeAt(++e.p)!==108||e.s.charCodeAt(++e.p)!==115||e.s.charCodeAt(++e.p)!==101)throw new o(`invalid value`,{toml:e.s,ptr:r});return e.p++,!1}return g(e,n,t)}let v=/^[a-zA-Z0-9-_]+[ \t]*$/;function y(e,t=`=`){let n=e.p,r=n-1,i=[],a=e.s.indexOf(t,n);if(a<0)throw new o(`incomplete key-value: cannot find end of key`,{toml:e.s,ptr:n});do{let c=e.s.charCodeAt(e.p=++r);if(c!==32&&c!==9){if(c===34||c===39){if(c===e.s.charCodeAt(e.p+1)&&c===e.s.charCodeAt(e.p+2))throw new o(`multiline strings are not allowed in keys`,{toml:e.s,ptr:e.p});let l=m(e);r=e.s.indexOf(`.`,e.p);let u=e.s.slice(e.p,r<0||r>a?a:r),d=s(u);if(d>-1)throw new o(`newlines are not allowed in keys`,{toml:e.s,ptr:d});if(u.trimStart())throw new o(`found extra tokens after the string part`,{toml:e.s,ptr:e.p});if(a<e.p&&(a=e.s.indexOf(t,e.p),a<0))throw new o(`incomplete key-value: cannot find end of key`,{toml:e.s,ptr:n});i.push(l)}else{r=e.s.indexOf(`.`,e.p);let t=e.s.slice(e.p,r<0||r>a?a:r);if(!v.test(t))throw new o(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e.s,ptr:e.p});i.push(t.trimEnd())}}}while(r+1&&r<a);return e.p=a+1,l(e,!0,!0),i}function b(e,t){let n={},r=/* @__PURE__ */ new Set,i;for(e.p++;e.p<e.s.length;){if(l(e),(i=e.s.charCodeAt(e.p))===125)return e.p++,n;let a,s=n,c=!1,u=e.p,d=y(e);for(let t=0;t<d.length;t++){if(t&&(s=c?s[a]:s[a]={}),a=d[t],(c=Object.hasOwn(s,a))&&(typeof s[a]!=`object`||r.has(s[a])))throw new o(`trying to redefine an already defined value`,{toml:e.s,ptr:u});!c&&a===`__proto__`&&Object.defineProperty(s,a,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new o(`trying to redefine an already defined value`,{toml:e.s,ptr:e.p});let f=_(e,125,t);if(r.add(s[a]=f),l(e),(i=e.s.charCodeAt(e.p++))===125)return n;if(i!==44)throw new o(`expected comma or end of structure`,{toml:e.s,ptr:e.p-1})}throw new o(`unfinished table encountered`,{toml:e.s,ptr:e.p})}function x(e,t){let n=[],r;for(e.p++;e.p<e.s.length;){if(l(e),(r=e.s.charCodeAt(e.p))===93)return e.p++,n;if(n.push(_(e,93,t)),l(e),(r=e.s.charCodeAt(e.p++))===93)return n;if(r!==44)throw new o(`expected comma or end of structure`,{toml:e.s,ptr:e.p-1})}throw new o(`unfinished array encountered`,{toml:e.s,ptr:e.p})}function S(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&(r!==1||c.t!==3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function C(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={s:e,p:0,d:t},i={},a={},s,c=i,u=a;for(l(r);r.p<e.length;){if(e.charCodeAt(r.p)===91){let t=e.charCodeAt(++r.p)===91;s=r.p+=+t;let n=y(r,`]`);if(t){if(e.charCodeAt(r.p-1)!==93)throw new o(`expected end of table declaration`,{toml:e,ptr:r.p-1});r.p++}let l=S(n,i,a,t?2:1);if(!l)throw new o(`trying to redefine an already defined table or value`,{toml:e,ptr:s});u=l[2],c=l[1]}else{s=r.p;let t=S(y(r),c,u,0);if(!t)throw new o(`trying to redefine an already defined table or value`,{toml:e,ptr:s});t[1][t[0]]=_(r,void 0,n)}if(l(r,!0),r.p<e.length&&(s=e.charCodeAt(r.p))!==10&&s!==13)throw new o(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:r.p});l(r)}return i}function w(n){let r=C(t(n));return e(n,r,{preserveIndentation:!1}),r}export{w as parseTOML};
@@ -0,0 +1,84 @@
1
+ /**
2
+ * An app's own `inca.config.ts` (or `.js`/`.json`), loaded by `@incajs/cli`.
3
+ * `package.json`'s `"inca"` key still works as a fallback, but is
4
+ * deprecated. This file wins where both are present.
5
+ */
6
+ interface IncaConfig {
7
+ /** Path to an icon file, resolved from the app's root directory. */
8
+ icon?: string;
9
+ /**
10
+ * A reverse-DNS-style unique id, e.g. macOS's `CFBundleIdentifier`.
11
+ * @default a generated `org.inca.<slug>`
12
+ */
13
+ identifier?: string;
14
+ /**
15
+ * The app's display name.
16
+ * @default package.json's "name", with any npm scope stripped
17
+ */
18
+ productName?: string;
19
+ /**
20
+ * The packaged app's version.
21
+ * @default package.json's own "version"
22
+ */
23
+ version?: string;
24
+ /**
25
+ * The app's entry point.
26
+ * @default resolved automatically: a committed `src/main.mts`,
27
+ * `src/main.ts` or `src/main.js`, or `src/App.vue` wrapped in a
28
+ * synthesized one
29
+ */
30
+ entry?: string;
31
+ /**
32
+ * Where a build's output is written.
33
+ * @default "dist"
34
+ */
35
+ outDir?: string;
36
+ /**
37
+ * Whether `inca build` and `inca package` write `bundle.js.map` beside
38
+ * the bundle. `inca dev` always writes it.
39
+ * @default false
40
+ */
41
+ sourcemap?: boolean;
42
+ /** The window the app opens in. */
43
+ window?: WindowConfig;
44
+ /** What only `inca dev` applies. */
45
+ dev?: DevConfig;
46
+ }
47
+ /** What only `inca dev` applies. See {@link IncaConfig.dev}. */
48
+ interface DevConfig {
49
+ /**
50
+ * How an error's stack names a source file: from the app's root, or by its full path.
51
+ * @default "relative"
52
+ */
53
+ stackPaths?: "relative" | "absolute";
54
+ }
55
+ /** What an app declares about its window. See {@link IncaConfig.window}. */
56
+ interface WindowConfig {
57
+ /**
58
+ * Initial width, in pixels. Falls back to the width the app's root
59
+ * element declares, then to this default.
60
+ * @default 800
61
+ */
62
+ width?: number;
63
+ /**
64
+ * Initial height, in pixels. Falls back to the height the app's root
65
+ * element declares, then to this default.
66
+ * @default 600
67
+ */
68
+ height?: number;
69
+ /**
70
+ * The window's title.
71
+ * @default the app's productName
72
+ */
73
+ title?: string;
74
+ /**
75
+ * Whether a user can resize the window.
76
+ * @default false
77
+ */
78
+ resizable?: boolean;
79
+ /** Smallest width the window can be, in pixels. It opens at least this wide. */
80
+ minWidth?: number;
81
+ /** Smallest height the window can be, in pixels. It opens at least this tall. */
82
+ minHeight?: number;
83
+ }
84
+ export { IncaConfig as n, WindowConfig as r, DevConfig as t };
@@ -0,0 +1,38 @@
1
+ import{n as e,r as t,t as n}from"./_format-CFy6_BQd.js";var r=Symbol(`NOT_RESOLVED`);function i(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function a(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function o(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}var s=i(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),c=[``,`~`,`null`,`Null`,`NULL`],l=i(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>c.indexOf(e)===-1?r:null,identify:e=>e===null,represent:()=>`null`}),u=i(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:r,identify:e=>e===null,represent:()=>`null`}),d=[``,`~`,`null`,`Null`,`NULL`],f=i(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>d.indexOf(e)===-1?r:null,identify:e=>e===null,represent:()=>`null`}),p=[`true`,`True`,`TRUE`],m=[`false`,`False`,`FALSE`],h=i(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>p.indexOf(e)!==-1||m.indexOf(e)===-1&&r,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),ee=[`true`],te=[`false`],ne=i(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>ee.indexOf(e)!==-1||te.indexOf(e)===-1&&r,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),re=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],ie=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],ae=i(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>re.indexOf(e)!==-1||ie.indexOf(e)===-1&&r,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),oe=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),se=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function ce(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function le(e,t){if(t){if(!se.test(e))return r}else if(!oe.test(e))return r;let n=ce(e);return Number.isFinite(n)?n:r}var ue=i(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:le,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),de=RegExp(`^-?(?:0|[1-9][0-9]*)$`),fe=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function pe(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function me(e,t){if(t){if(!fe.test(e))return r}else if(!de.test(e))return r;let n=pe(e);return Number.isFinite(n)?n:r}var he=i(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:me,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),ge=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`);function _e(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function ve(e){if(!ge.test(e))return r;let t=_e(e);return Number.isFinite(t)?t:r}var ye=i(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:ve,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),be=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),xe=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Se(e){if(!be.test(e))return r;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let i=n*parseFloat(t);return Number.isFinite(i)||xe.test(e)?i:r}function Ce(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var we=i(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Se,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Ce}),Te=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),Ee=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function De(e,t){if(t){if(!Ee.test(e))return r;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let i=n*parseFloat(t);return Number.isFinite(i)?i:r}if(!Te.test(e))return r;let n=Number(e);return Number.isFinite(n)?n:r}function Oe(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var ke=i(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:De,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Oe}),Ae=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),je=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Me(e){if(!Ae.test(e))return r;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let i=0;if(t.includes(`:`)){for(let e of t.split(`:`))i=i*60+Number(e);i*=n}else i=n*parseFloat(t);return Number.isFinite(i)||je.test(e)?i:r}function Ne(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var Pe=i(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Me,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Ne}),Fe=i(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:r,identify:()=>!1}),Ie=/^[A-Za-z0-9+/]*={0,2}$/;function Le(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!Ie.test(t))return r;let n=atob(t),i=new Uint8Array(n.length);for(let e=0;e<n.length;e++)i[e]=n.charCodeAt(e);return i}function Re(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var ze=i(`tag:yaml.org,2002:binary`,{resolve:Le,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Re}),Be=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Ve=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function He(e,t,n,r=0,i=0,a=0,o=0){let s=new Date(Date.UTC(e,t,n,r,i,a,o));return s.setUTCFullYear(e,t,n),s}function Ue(e){let t=Be.exec(e);if(t===null&&(t=Ve.exec(e)),t===null)return r;let n=+t[1],i=t[2]-1,a=+t[3];if(!t[4]){let e=He(n,i,a);return e.getUTCFullYear()!==n||e.getUTCMonth()!==i||e.getUTCDate()!==a?r:e}let o=+t[4],s=+t[5],c=+t[6],l=0;if(o>23||s>59||c>59)return r;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;l=+e}let u=He(n,i,a,o,s,c,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==i||u.getUTCDate()!==a)return r;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return r;let i=(e*60+n)*6e4;u.setTime(u.getTime()-(t[9]===`-`?-i:i))}return u}var We=i(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Ue,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Ge=a(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function g(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ke(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var qe=a(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:/* @__PURE__ */ new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(g(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),Je=a(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),Ye=o(`tag:yaml.org,2002:map`,{create:()=>({}),identify:g,represent:e=>{let t=/* @__PURE__ */ new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Xe=o(`tag:yaml.org,2002:set`,{create:()=>/* @__PURE__ */ new Set,identify:e=>e instanceof Set,represent:e=>{let t=/* @__PURE__ */ new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function Ze(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Qe(){return{scalar:[],sequence:[],mapping:[]}}function $e(e){let t=[];for(let n of e){let e=t.length;for(let r=0;r<t.length;r++){let i=t[r];if(i.nodeKind===n.nodeKind&&i.tagName===n.tagName&&i.matchByTagPrefix===n.matchByTagPrefix){e=r;break}}t[e]=n}return t}var _=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=$e(e),n=[],r=Ze(),i=Qe();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=/* @__PURE__ */ new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=/* @__PURE__ */ new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==r)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},et=new _([s,Ge,Ye]);new _([...et.tags,u,ne,he,ke]);var tt=new _([...et.tags,l,h,ue,we]),nt=new _([...et.tags,f,ae,ye,Pe,We,Fe,ze,qe,Je,Xe]).withTags({...ye,resolve:(e,t,n)=>{let i=ye.resolve(e,t,n);return i===r?ue.resolve(e,t,n):i}},{...Pe,resolve:(e,t,n)=>{let i=Pe.resolve(e,t,n);return i===r?we.resolve(e,t,n):i}});o(`tag:yaml.org,2002:map`,{create:()=>/* @__PURE__ */ new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||g(e),represent:e=>{if(e instanceof Map)return e;let t=/* @__PURE__ */ new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}});function rt(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let e=0;e<t.length;e++){if(Array.isArray(t[e]))return null;typeof t[e]==`object`&&Object.prototype.toString.call(t[e])===`[object Object]`&&(t[e]=`[object Object]`)}return String(t)}return typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`?`[object Object]`:String(e)}o(`tag:yaml.org,2002:map`,{create:()=>({}),identify:g,represent:e=>{let t=/* @__PURE__ */ new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=rt(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=rt(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var it={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function at(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function ot(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function st(e,t){if(!e.buffer)return null;let n={...it,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let c=``,l=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=at(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${ot((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=at(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${ot((e.line+1).toString(),l)} | ${d.str}\n`,c+=`${`-`.repeat(n.indent+l+3+d.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=at(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${ot((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function ct(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var v=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=ct(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${ct(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);n===10?(a++,o=e+1):n===13&&(a++,t.charCodeAt(e+1)===10&&e++,o=e+1)}let s={name:i,buffer:t,position:n,line:a,column:n-o};throw s.snippet=st(s),new e(r,s)}},y={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},b={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},x={BLOCK:1,FLOW:2},S={CLIP:1,STRIP:2,KEEP:3},lt=-1;function ut(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
2
+ `;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}var dt=Array(256),ft=Array(256);for(let e=0;e<256;e++)dt[e]=+!!ut(e),ft[e]=ut(e);function pt(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function mt(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function ht(e){return e===120?2:e===117?4:8}function C(e,t,n){let r=0;for(;t<n;){let n=e.charCodeAt(t);if(n===10)r++,t++;else if(n===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(n===32||n===9)t++;else break}return{position:t,breaks:r}}function gt(e){return e===1?` `:`
3
+ `.repeat(e-1)}function _t(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===10||t===13){r+=e.slice(a,o);let t=C(e,i,n);r+=gt(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,o)}function vt(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===39)r+=e.slice(a,i)+`'`,i+=2,a=o=i;else if(t===10||t===13){r+=e.slice(a,o);let t=C(e,i,n);r+=gt(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function yt(e,t,n){let r=``,i=t,a=t,o=t;for(;i<n;){let t=e.charCodeAt(i);if(t===92){r+=e.slice(a,i),i++;let t=e.charCodeAt(i);if(t===10||t===13)i=C(e,i,n).position;else if(t<256&&dt[t])r+=ft[t],i++;else{let n=ht(t),a=0;for(;n>0;n--){i++;let t=mt(e.charCodeAt(i));a=(a<<4)+t}r+=pt(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=C(e,i,n);r+=gt(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function bt(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,`
4
+ `),c=s===``?[]:(s.endsWith(`
5
+ `)?s.slice(0,-1):s).split(`
6
+ `),l=``,u=!1,d=0,f=!1;for(let e of c){let t=0;for(;t<o&&e.charCodeAt(t)===32;)t++;if(r<0||t>=e.length){d++;continue}let n=e.slice(o),i=n.charCodeAt(0);a?i===32||i===9?(f=!0,l+=`
7
+ `.repeat(u?1+d:d)):f?(f=!1,l+=`
8
+ `.repeat(d+1)):d===0?u&&(l+=` `):l+=`
9
+ `.repeat(d):l+=`
10
+ `.repeat(u?1+d:d),l+=n,u=!0,d=0}return i===S.KEEP?l+=`
11
+ `.repeat(u?1+d:d):i!==S.STRIP&&u&&(l+=`
12
+ `),l}function xt(e,t){if(t.valueStart===lt)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case b.SINGLE_QUOTED:return vt(e,n,r);case b.DOUBLE_QUOTED:return yt(e,n,r);case b.LITERAL_BLOCK:return bt(e,n,r,t.indent,t.chomping,!1);case b.FOLDED_BLOCK:return bt(e,n,r,t.indent,t.chomping,!0);default:return _t(e,n,r)}}var St=Object.assign(Object.create(null),{"!":`!`,"!!":`tag:yaml.org,2002:`});function Ct(e){return encodeURI(e).replace(/!/g,`%21`)}function wt(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1),i=t?.[r]??St[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function Tt(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${Ct(t)}`):t.slice(0,18)===`tag:yaml.org,2002:`?`!!${Ct(t.slice(18))}`:`!<${Ct(t)}>`}var w=-1,Et=`tag:yaml.org,2002:merge`,Dt={filename:``,schema:tt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Ot(e){return`tagStart`in e&&e.tagStart!==w?e.tagStart:`anchorStart`in e&&e.anchorStart!==w?e.anchorStart:`valueStart`in e&&e.valueStart!==w?e.valueStart:`start`in e?e.start:0}function T(e,t){v.throwAt(e.source,e.position,t,e.filename)}function kt(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof v)throw n;v.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function At(e,t){let n=xt(e.source,t),i=t.tagStart===w?``:e.source.slice(t.tagStart,t.tagEnd),a=e.schema.defaultScalarTag;if(i!==``){if(i===`!`)return{value:n,tag:a};let t=wt(i,e.tagHandlers),o=e.schema.lookupScalarTag(t);if(o){let i=o.resolve(n,!0,t);return i===r&&T(e,`cannot resolve a node with !<${t}> explicit tag`),{value:i,tag:o}}let s=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(s){n!==``&&T(e,`cannot resolve a node with !<${t}> explicit tag`);let r=s.create(t);return{value:s.carrierIsResult?r:kt(e,e.position,s,r),tag:s}}T(e,`unknown scalar tag !<${t}>`)}return t.style===b.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:a.resolve(n,!1,a.tagName),tag:a}}function jt(e,t,n){let r=t.tagStart===w?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:wt(r,e.tagHandlers)}function Mt(e){return e.nodeKind===`mapping`}function Nt(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&T(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function Pt(e,t,n,r){Nt(e);for(let i of r.keys(n)){if(Nt(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&T(e,a),t.overridable??=/* @__PURE__ */ new Set,t.overridable.add(i)}}function Ft(e,t,n,r){if(e.position=t.keyPosition,Mt(r))Pt(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&T(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||T(e,`cannot merge mappings; the provided source object is unacceptable`),Pt(e,t,r,n)}}else T(e,`cannot merge mappings; the provided source object is unacceptable`)}function It(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){Ft(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&T(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&T(e,a),t.overridable?.delete(n)}function Lt(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){Mt(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&T(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,It(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===Et}function Rt(e,t,n,r,i){if(t.anchorStart!==w){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function zt(e,t){let n={...Dt,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:/* @__PURE__ */ new Map,nodeTags:/* @__PURE__ */ new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){let e=n.events[n.eventIndex++];switch(n.position=Ot(e),e.type){case y.DOCUMENT:n.anchors=/* @__PURE__ */ new Map,n.nodeTags=/* @__PURE__ */ new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(let t of e.directives)t.kind===`tag`&&(n.tagHandlers[t.handle]=t.prefix);n.frames.push({kind:`document`,position:n.position,value:void 0,hasValue:!1});break;case y.SCALAR:{let{value:t,tag:r}=At(n,e);Rt(n,e,t,r,!0),Lt(n,t,r);break}case y.SEQUENCE:{let t=jt(n,e,`tag:yaml.org,2002:seq`),r=n.schema.lookupSequenceTag(t);r||T(n,`unknown sequence tag !<${t}>`);let i=r.create(t),a=Rt(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case y.MAPPING:{let t=jt(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||T(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=Rt(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case y.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&T(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||T(n,`unidentified alias "${t}"`),r.isValueFinal||T(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),Lt(n,r.value,r.tag);break}case y.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,T(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:kt(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),Lt(n,t,e.tag)}break}}}return n.documents}var E=-1,Bt=Object.prototype.hasOwnProperty,D=1,Vt=2,Ht=3,O=4,Ut=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Wt=/[,\[\]{}]/,Gt=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Kt=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,qt=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Jt=RegExp(`^(?:${Kt})*$`),Yt=RegExp(`^(?:${qt})+$`),Xt=RegExp(`^(?:!(?:${Kt})*|${qt}(?:${Kt})*)$`),Zt={filename:``,maxDepth:100};function Qt(e,t,n){e.events.push({type:y.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function $t(e,t,n,r,i,a,o){e.events.push({type:y.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function en(e,t,n,r,i,a,o){e.events.push({type:y.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function tn(e,t){e.events.splice(t.eventsLength,0,{type:y.MAPPING,start:t.position,anchorStart:E,anchorEnd:E,tagStart:E,tagEnd:E,style:x.FLOW})}function k(e,t,n,r,i,a,o,s,c=S.CLIP,l=-1,u=!1){e.events.push({type:y.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:c,indent:l,fast:u})}function nn(e,t,n){e.events.push({type:y.ALIAS,anchorStart:t,anchorEnd:n})}function A(e){e.events.push({type:y.POP})}function j(e){k(e,E,E,E,E,E,E,b.PLAIN)}function rn(){return{anchorStart:E,anchorEnd:E,tagStart:E,tagEnd:E}}function M(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function N(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function P(e,t){v.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function F(e){return e===10||e===13}function I(e){return e===9||e===32}function L(e){return I(e)||F(e)}function R(e){return e===0||L(e)}function z(e){return e===44||e===91||e===93||e===123||e===125}function an(e){return e>=48&&e<=57?e-48:-1}function on(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function sn(e){return e===120?2:e===117?4:e===85?8:0}function cn(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function B(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function V(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||L(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;I(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!F(r)&&r!==0);if(!F(r))break;for(B(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function H(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||L(n)}return!1}function ln(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function un(e){if(e.position!==e.lineStart)return!1;if(H(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=M(e);ln(e),V(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&H(e));return N(e,t),r}function dn(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!F(t);)t=e.input.charCodeAt(++e.position)}function fn(e,t,n){Ut.test(e.input.slice(t,n))&&P(e,`the stream contains non-printable characters`)}function pn(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==E&&P(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let c=e.position,l;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&P(e,`unexpected end of the stream within a verbatim tag`),l=e.input.slice(c,e.position),e.position++}else{for(;s!==0&&!L(s)&&!(n&&z(s));)s===33&&(a?P(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(c-1,e.position+1),Gt.test(o)||P(e,`named tag handle cannot contain such characters`),a=!0,c=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),Wt.test(l)&&P(e,`tag suffix cannot contain flow indicator characters`)}return l&&!(i?Jt.test(l):Yt.test(l))&&P(e,`tag name cannot contain such characters: ${l}`),!i&&o!==`!`&&o!==`!!`&&!Bt.call(e.tagHandlers,o)&&P(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function mn(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==E&&P(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!L(e.input.charCodeAt(e.position))&&!z(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&P(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function hn(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==E||t.tagStart!==E)&&P(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!L(e.input.charCodeAt(e.position))&&!z(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&P(e,`name of an alias node must contain at least one character`),nn(e,n,e.position),!0}function gn(e,t){V(e,!1),e.lineIndent<t&&P(e,`deficient indentation`)}function _n(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}let t=e.position;return e.position++,k(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,b.SINGLE_QUOTED,S.CLIP,-1,i),!0}F(a)?(i=!1,gn(e,t)):e.position===e.lineStart&&H(e)?P(e,`unexpected end of the document within a single quoted scalar`):a!==9&&a<32?P(e,`expected valid JSON character`):e.position++}P(e,`unexpected end of the stream within a single quoted scalar`)}function vn(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let r=e.position,i=!0;for(;e.input.charCodeAt(e.position)!==0;){let a=e.input.charCodeAt(e.position);if(a===34){let t=e.position;return e.position++,k(e,r,t,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,b.DOUBLE_QUOTED,S.CLIP,-1,i),!0}if(a===92){i=!1;let n=e.input.charCodeAt(++e.position);if(F(n))gn(e,t);else if(cn(n))e.position++;else{let t=sn(n);for(t===0&&P(e,`unknown escape sequence`);t-->0;)e.position++,on(e.input.charCodeAt(e.position))<0&&P(e,`expected hexadecimal character`);e.position++}}else F(a)?(i=!1,gn(e,t)):e.position===e.lineStart&&H(e)?P(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?P(e,`expected valid JSON character`):e.position++}P(e,`unexpected end of the stream within a double quoted scalar`)}function yn(e,t,n){let r=e.input.charCodeAt(e.position),i=S.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?b.LITERAL_BLOCK:b.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=an(n);if(n===43||n===45)i!==S.CLIP&&P(e,`repeat of a chomping mode identifier`),i=n===43?S.KEEP:S.STRIP,e.position++;else if(r>=0)r===0&&P(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&P(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let c=!1;for(;I(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&dn(e),F(e.input.charCodeAt(e.position))?B(e):e.input.charCodeAt(e.position)!==0&&P(e,`a line break is expected`);let l=o?a:-1,u=0,d=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){l>=0?r>l&&(f=n+r):r>0&&(f=n+r);break}if(un(e))break;if(!o&&l===-1&&F(i)&&(u=Math.max(u,r)),!o&&l===-1&&!F(i)&&(i===9&&r<t&&(e.position=n+r,P(e,`tab characters must not be used in indentation`)),r<u&&(e.position=n+r,P(e,`bad indentation of a mapping entry`))),l===-1&&i!==0&&!F(i)&&r<t){e.lineIndent=r,e.position=n+r;break}!o&&i!==0&&!F(i)&&l===-1&&(l=r);let a=l===-1?t+1:l;if(i!==0&&!F(i)&&r<a){e.lineIndent=r,e.position=n+r;break}dn(e),f=e.position,F(e.input.charCodeAt(e.position))&&(B(e),f=e.position)}return fn(e,d,f),k(e,d,f,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,s,i,l),!0}function bn(e,t){let n=e.input.charCodeAt(e.position),r=t===D;if(n===0||L(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||r&&z(n))return!1;if(n===63||n===45){let t=e.input.charCodeAt(e.position+1);if(R(t)||r&&z(t))return!1}return!0}function xn(e,t,n,r){if(!bn(e,n))return!1;let i=e.position,a=e.position,o=e.input.charCodeAt(e.position),s=n===D,c=!1;for(;o!==0&&!un(e);){if(o===58){let t=e.input.charCodeAt(e.position+1);if(R(t)||s&&z(t))break}else if(o===35){if(L(e.input.charCodeAt(e.position-1)))break}else if(s&&z(o))break;else if(F(o)){let n=e.position,r=e.line,i=e.lineStart,a=e.lineIndent;if(V(e,!1),e.lineIndent>=t){c=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}I(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(fn(e,i,a),k(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,b.PLAIN,S.CLIP,-1,!c),!0)}function U(e,t){let n=e.line;V(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&P(e,`deficient indentation`)}function Sn(e,t,n){let r=e.input.charCodeAt(e.position),i=r===123,a=e.position,o=!0;if(r!==91&&r!==123)return!1;let s=i?125:93;for(i?en(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,x.FLOW):$t(e,a,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,x.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){U(e,t);let n=e.input.charCodeAt(e.position);if(n===s)return e.position++,A(e),!0;o?n===44&&P(e,`expected the node content, but found ','`):P(e,`missed comma between flow collection entries`);let r=!1,a=!1;n===63&&L(e.input.charCodeAt(e.position+1))&&(r=a=!0,e.position+=1,U(e,t));let c=e.line,l=M(e),u=G(e,t,D,!1,!0);U(e,t),n=e.input.charCodeAt(e.position),(i||a||e.line===c)&&n===58?(r=!0,e.position++,U(e,t),i||tn(e,l),u||j(e),G(e,t,D,!1,!0)||j(e),U(e,t),i||A(e)):i&&r?(u||j(e),j(e)):i?j(e):r&&(tn(e,l),u||j(e),j(e),A(e)),n=e.input.charCodeAt(e.position),n===44?(o=!0,e.position++):o=!1}P(e,`unexpected end of the stream within a flow collection`)}function Cn(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!R(e.input.charCodeAt(e.position+1)))return!1;for($t(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,x.BLOCK);e.input.charCodeAt(e.position)===45&&R(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,`tab characters must not be used in indentation`));let n=e.line;e.position++;let r=V(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&R(e.input.charCodeAt(e.position+1))&&P(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?j(e):G(e,t,Ht,!1,!0),V(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&P(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&R(e.input.charCodeAt(e.position+1))&&P(e,`bad indentation of a sequence entry`)}return A(e),!0}function W(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,`tab characters must not be used in indentation`));let l=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&R(l))o||=(en(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,x.BLOCK),!0),c===63?(i&&j(e),a=!0,i=!0):(i||(j(e),a=!0),i=!1),e.position+=1,s=!0;else{i&&=(j(e),!1);let t=M(e);if(!G(e,n,Vt,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);I(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),R(c)||P(e,`a whitespace character is expected after the key-value separator within a block mapping`),!o){for(N(e,t),en(e,t.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,x.BLOCK),o=!0,G(e,n,Vt,!1,!0),c=e.input.charCodeAt(e.position);I(c);)c=e.input.charCodeAt(++e.position);e.position++}a=!0,i=!1,s=!1}else if(a)P(e,`expected ':' after a mapping key`);else return r.anchorStart!==E||r.tagStart!==E?(N(e,t),!1):!0}else if(a)P(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==E||r.tagStart!==E?(N(e,t),!1):!0}if(G(e,t,O,!0,s)&&(s=!1),i||(s&&=(j(e),!1)),V(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&c!==0)P(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return a?(i&&j(e),o&&A(e),!0):!1}function G(e,t,n,r,i,a=!0){e.depth>=e.maxDepth&&P(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,c=!1,l=null,u=rn(),d=n===O||n===Ht,f=d,p=d;if(r&&V(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=M(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&p&&(u.tagStart!==E||u.anchorStart!==E)&&(r===33||r===38)){let n=M(e),r=t+1;if(W(e,e.position-e.lineStart,r,u)&&e.events[n.eventsLength]?.type===y.MAPPING)return e.depth--,!0;N(e,n)}if(s&&(r===33&&u.tagStart!==E||r===38&&u.anchorStart!==E)||!pn(e,u,n===D)&&!mn(e,u))break;l===null&&(l=i),V(e,!0)?(s=!0,f=p,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&=s||i,o===1||n===O){let r=n===D||n===Vt?t:t+1,i=e.position-e.lineStart;if(o===1){if(f&&(Cn(e,i,u)||W(e,i,r,u))||Sn(e,r,u))c=!0;else{let t=e.input.charCodeAt(e.position);if(l!==null&&a&&p&&!f&&t!==124&&t!==62){let t=M(e),n=l.position-l.lineStart;N(e,l),W(e,n,r,rn())&&e.events[t.eventsLength]?.type===y.MAPPING?c=!0:N(e,t)}!c&&(d&&yn(e,r,u)||_n(e,r,u)||vn(e,r,u)||hn(e,u)||xn(e,r,n,u))&&(c=!0)}}else o===0&&(c=f&&Cn(e,i,u))}return d&&=!c,!c&&(u.anchorStart!==E||u.tagStart!==E||d)&&(k(e,E,E,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,b.PLAIN),c=!0),e.depth--,c||u.anchorStart!==E||u.tagStart!==E}function wn(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!L(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&P(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position));){for(;I(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||F(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!L(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(F(e.input.charCodeAt(e.position))&&B(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&P(e,`duplication of %YAML directive`),r.length!==1&&P(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&P(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&P(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&P(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Gt.test(t)||P(e,`ill-formed tag handle (first argument) of the TAG directive`),Bt.call(e.tagHandlers,t)&&P(e,`there is a previously declared suffix for "${t}" tag handle`),Xt.test(n)||P(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function Tn(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(V(e,!0);wn(e);)t=!0,V(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&R(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,V(e,!0),i=e.line>t}else t&&P(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&H(e)){e.position+=3,V(e,!0);return}if(Qt(e,n,!1),G(e,e.lineIndent-1,O,!1,i,i)||j(e),V(e,!0),e.position===e.lineStart&&H(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,V(e,!0),e.line===t&&e.position<e.length&&P(e,`end of the stream or a document separator is expected`)}let o=e.events[a];o?.type===y.DOCUMENT&&(o.explicitEnd=r),A(e),!r&&e.position<e.length&&!un(e)&&P(e,`end of the stream or a document separator is expected`)}function En(e,t){let n=e.length,r={...Zt,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf(`\0`);for(i!==-1&&v.throwAt(e,i,`null byte is not allowed in input`,r.filename);r.position<r.length&&(ln(r),V(r,!0),!(r.position>=r.length));){let e=r.position;Tn(r),r.position===e&&P(r,`can not read a document`)}return r.events}var Dn={...Zt,...Dt};function On(e,t={}){let n={...Dn,...t},r=String(e),i=Object.keys(Zt),a=Object.keys(Dt);return zt(En(r,Ke(n,i)),{...Ke(n,a),source:r})}function kn(e,t){let n=On(e,t);if(n.length===0)throw new v(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new v(`expected a single document in the stream, but found more`)}var K=Symbol(`INVALID`);function An(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(e=>e!==void 0)),n=e.implicitScalarTags,r=e.tags.filter(e=>!(e.nodeKind===`scalar`&&e.implicit)&&!t.has(e)),i=e.tags.filter(e=>t.has(e));return[...n.map(e=>({tag:e,implicitTag:!0})),...r.map(e=>({tag:e,implicitTag:!1})),...i.map(e=>({tag:e,implicitTag:!0}))]}function jn(e,t){for(let n=0,r=e.representTypes.length;n<r;n+=1){let{tag:r,implicitTag:i}=e.representTypes[n];if(r.identify(t)){let e;return e=r.matchByTagPrefix?r.representTagName(t):r.tagName,{tag:r,tagName:e,implicitTag:i}}}return null}function q(e,t){if(!e.noRefs&&typeof t==`object`&&t){let n=e.refs.get(t);if(n)return n.anchor===void 0&&(n.anchor=`ref_${e.refCounter++}`),{kind:`alias`,anchor:n.anchor}}let n=jn(e,t);if(!n){if(t===void 0||e.skipInvalid)return K;throw new v(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:r,tagName:i,implicitTag:a}=n,o=a?i:Tt(i);if(r.nodeKind===`scalar`)return{kind:`scalar`,tag:o,tagged:!a,style:b.PLAIN,value:r.represent(t)};if(r.nodeKind===`sequence`){let n=r.represent(t),i={kind:`sequence`,tag:o,tagged:!a,style:x.BLOCK,items:[]};e.noRefs||e.refs.set(t,i);for(let t=0,r=n.length;t<r;t+=1){let r=q(e,n[t]);r===K&&n[t]===void 0&&(r=q(e,null)),r!==K&&i.items.push(r)}return i}let s=r.represent(t),c={kind:`mapping`,tag:o,tagged:!a,style:x.BLOCK,items:[]};e.noRefs||e.refs.set(t,c);for(let[t,n]of s){let r=q(e,t);if(r===K)continue;let i=q(e,n);i!==K&&c.items.push({key:r,value:i})}return c}function Mn(e,t,n={}){let r=q({representTypes:An(t),noRefs:n.noRefs??!1,skipInvalid:n.skipInvalid??!1,refs:/* @__PURE__ */ new Map,refCounter:0},e);return[{contents:r===K?null:r,directives:[]}]}var Nn=Symbol(`visit:break`),Pn=Symbol(`visit:skip`);function J(e,t,n){let r=t(e,n);if(r===Nn)return!0;if(r===Pn)return!1;let i=n.depth+1;switch(e.kind){case`sequence`:for(let n of e.items)if(J(n,t,{depth:i,parent:e,isKey:!1}))return!0;break;case`mapping`:for(let{key:n,value:r}of e.items)if(J(n,t,{depth:i,parent:e,isKey:!0})||J(r,t,{depth:i,parent:e,isKey:!1}))return!0}return!1}function Fn(e,t){for(let n of e)if(n.contents&&J(n.contents,t,{depth:0,parent:null,isKey:!1}))return}function Y(e,t){return!!(e&1<<t)}var In={applyQuoteFlowKeysOption:Rn,doubleQuoteForInvisibles:zn,doubleQuoteWhitespaceOnly:Bn,applyForceQuotesOption:Vn,tryLongOrMultilineAsBlock:Hn,quoteInvalidPlain:Un,fallbackToDoubleQuoted:Wn};function Ln(e){return e.presenterOptions.quoteStyle===`single`&&Y(e.allowedStylesMask,b.SINGLE_QUOTED)?b.SINGLE_QUOTED:b.DOUBLE_QUOTED}function Rn(e){e.presenterOptions.quoteFlowKeys&&(!e.isKey||!e.flowOnly||e.style!==b.PLAIN||(e.style=b.DOUBLE_QUOTED))}function zn(e){e.style===b.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=b.DOUBLE_QUOTED)}function Bn(e){e.style===b.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=b.DOUBLE_QUOTED)}function Vn(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==b.PLAIN||(e.style=e.node.value.includes(`
13
+ `)?b.DOUBLE_QUOTED:Ln(e)))}function Hn(e){if(e.style!==b.PLAIN||e.isKey)return;let t=e.node.value,n=t.indexOf(`
14
+ `)!==-1;if(!Y(e.allowedStylesMask,b.LITERAL_BLOCK)){n&&(e.style=b.DOUBLE_QUOTED);return}let r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=b.LITERAL_BLOCK);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),a=0,o=!1;for(;a<=t.length;){let e=t.length,n=t.indexOf(`
15
+ `,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=b.FOLDED_BLOCK:n&&(e.style=b.LITERAL_BLOCK)}function Un(e){e.style===b.PLAIN&&!Y(e.allowedStylesMask,b.PLAIN)&&(e.style=Ln(e))}function Wn(e){Y(e.allowedStylesMask,e.style)||(e.style=b.DOUBLE_QUOTED)}function X(e,t){return e|1<<t}var Gn=`[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]`,Kn=`[\\n\\r]`,qn=`\\uFEFF`,Jn=`[ \\t]`,Yn=`(?:(?!(?:${Kn}|${qn}))${Gn})`,Z=`(?:(?!${Jn})${Yn})`,Xn=`[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]`,Zn=`[-?:,\\[\\]{}#&*!|>'"%@\`]`,Qn=`[,\\[\\]{}]`,$n=Z,er=`(?:(?!${Qn})${Z})`,tr=`(?:(?:(?!${Zn})${Z})|[?:-](?=${$n}))`,nr=`(?:(?:(?!${Zn})${Z})|[?:-](?=${er}))`,rr=`(?:(?:(?![:#])${$n})|:(?=${$n}))#*`,ir=`(?:(?:(?![:#])${er})|:(?=${er}))#*`,ar=`(?:${Jn}*${rr})*`,or=`(?:${Jn}*${ir})*`,sr=`${tr}#*${ar}`,cr=`${nr}#*${or}`,lr=sr,ur=cr,dr=`\\n+${rr}${ar}`,fr=`\\n+${ir}${or}`,pr=`${sr}(?:${dr})*`,mr=`${cr}(?:${fr})*`,hr=RegExp(`^(?:${pr})$`,`u`),gr=RegExp(`^(?:${mr})$`,`u`),_r=RegExp(`^(?:${lr})$`,`u`),vr=RegExp(`^(?:${ur})$`,`u`),yr=RegExp(`^(?:${Xn})*$`,`u`),br=RegExp(`^(?:${Xn}|\\n)*$`,`u`),xr=RegExp(`^(?:${Yn}|\\n)*$`,`u`),Sr=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,Cr=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function wr(e){let t=e.node.value;if(t!==``){if(!(e.isKey?e.flowOnly?vr:_r:e.flowOnly?gr:hr).test(t)||e.shiftOfFirstLine===0&&Sr.test(t))return!1;if(e.shiftOfContent===0){let e=t.indexOf(`
16
+ `);if(e!==-1){let n=t.slice(e+1);if(Cr.test(n))return!1}}}let n=e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;return!(!e.node.tagged&&n!==e.node.tag||!e.node.tagged&&t===`=`&&n===e.presenterOptions.schema.defaultScalarTag.tagName)}function Tr(e){let t=e.node.value;if(!(e.isKey?yr:br).test(t)||/[ \t]\n|\n[ \t]/.test(t))return!1;if(!e.isKey&&e.shiftOfContent===0){let e=t.indexOf(`
17
+ `);if(e!==-1&&Cr.test(t.slice(e+1)))return!1}return!0}function Er(e){if(e.flowOnly||!xr.test(e.node.value))return!1;let t=e.shiftOfContent-e.shiftOfParent;return!(t<1||t>9&&/^\n* /.test(e.node.value)||e.shiftOfContent===0&&Cr.test(e.node.value))}function Dr(e){let t=X(0,b.DOUBLE_QUOTED);wr(e)&&(t=X(t,b.PLAIN)),Tr(e)&&(t=X(t,b.SINGLE_QUOTED)),Er(e)&&(t=X(X(t,b.LITERAL_BLOCK),b.FOLDED_BLOCK)),e.allowedStylesMask=t}function Or(e){switch(e.style){case b.PLAIN:return kr(e);case b.SINGLE_QUOTED:return Ar(e);case b.LITERAL_BLOCK:return jr(e);case b.FOLDED_BLOCK:return Mr(e);case b.DOUBLE_QUOTED:return Nr(e)}}function kr(e){return Pr(e.node.value,e.shiftOfContent)}function Ar(e){return`'${Pr(e.node.value,e.shiftOfContent).replace(/'/g,`''`)}'`}function jr(e){let t=e.node.value;return`|`+Lr(t,e.shiftOfParent,e.shiftOfContent)+Rr(Fr(t,e.shiftOfContent))}function Mr(e){let t=e.node.value,n=e.presenterOptions.lineWidth,r=1/0;return n!==-1&&(r=Math.max(Math.min(n,40),n-e.shiftOfContent)),`>`+Lr(t,e.shiftOfParent,e.shiftOfContent)+Rr(Fr(Vr(t,r),e.shiftOfContent))}function Nr(e){return`"${Wr(e.node.value)}"`}function Pr(e,t){let n=e.indexOf(`
18
+ `);if(n===-1)return e;let r=` `.repeat(t),i=e.slice(0,n),a=/(\n+)([^\n]*)/g;a.lastIndex=n;let o;for(;o=a.exec(e);){let e=o[1].length,t=o[2];i+=`
19
+ `.repeat(e+1)+r+t}return i}function Fr(e,t){let n=` `.repeat(t),r=0,i=``,a=e.length;for(;r<a;){let t,o=e.indexOf(`
20
+ `,r);o===-1?(t=e.slice(r),r=a):(t=e.slice(r,o+1),r=o+1),t.length&&t!==`
21
+ `&&(i+=n),i+=t}return i}function Ir(e){return/^\n* /.test(e)}function Lr(e,t,n){let r=Ir(e)?String(n-t):``,i=e[e.length-1]===`
22
+ `;return`${r}${i&&(e[e.length-2]===`
23
+ `||e===`
24
+ `)?`+`:i?``:`-`}\n`}function Rr(e){return e[e.length-1]===`
25
+ `?e.slice(0,-1):e}function zr(e){return e===` `||e===` `}function Br(e,t){if(e===``||zr(e[0]))return e;let n=/ [^ \t]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`\n${e.slice(i,a)}`,i=a+1),o=s;return c+=`
26
+ `,e.length-i>t&&o>i?c+=`${e.slice(i,o)}\n${e.slice(o+1)}`:c+=e.slice(i),c.slice(1)}function Vr(e,t){let n=/(\n+)([^\n]*)/g,r=e.indexOf(`
27
+ `);r===-1&&(r=e.length),n.lastIndex=r;let i=Br(e.slice(0,r),t),a=e[0]===`
28
+ `||zr(e[0]),o,s;for(;s=n.exec(e);){let e=s[1],n=s[2];o=n!==``&&zr(n[0]),i+=e+(!a&&!o&&n!==``?`
29
+ `:``)+Br(n,t),a=o}return i}var Hr=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function Ur(e){switch(e){case`\0`:return`\\0`;case`\x07`:return`\\a`;case`\b`:return`\\b`;case` `:return`\\t`;case`
30
+ `:return`\\n`;case`\v`:return`\\v`;case`\f`:return`\\f`;case`\r`:return`\\r`;case`\x1B`:return`\\e`;case`"`:return`\\"`;case`\\`:return`\\\\`;case`…`:return`\\N`;case`\xA0`:return`\\_`;case`\u2028`:return`\\L`;case`\u2029`:return`\\P`}let t=e.charCodeAt(0),n=t.toString(16).toUpperCase();return t<=255?`\\x${`0`.repeat(2-n.length)}${n}`:`\\u${`0`.repeat(4-n.length)}${n}`}function Wr(e){return e.replace(Hr,Ur)}var Q=10,Gr={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(In).map(e=>Reflect.get(In,e)),tagBeforeAnchor:!1};function Kr(e){return e.tagged?e.tag:Tt(e.tag)}function qr(e){let t={...Gr,...e};return t.flowSkipColonSpace&&(t.quoteFlowKeys=!0),{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,openEnded:!1}}function Jr(e,t){return`\n${` `.repeat(e.indent*t)}`}function Yr(e,t,n,r,i,a){return{node:t,parent:n,level:r,isKey:i,flowOnly:a,shiftOfParent:r===0?-1:e.indent*(r-1),shiftOfContent:e.indent*Math.max(1,r),shiftOfFirstLine:r===0?0:e.indent*r,presenterOptions:e,allowedStylesMask:0,style:t.style}}function Xr(e,t,n){let r=``;for(let i=0,a=n.items.length;i<a;i+=1){let a=$(e,t,n.items[i],n,{}).text;i>0&&(r+=`,${e.flowSkipCommaSpace?``:` `}`),r+=a}let i=e.flowBracketPadding&&n.items.length>0?` `:``;return`[${i}${r}${i}]`}function Zr(e,t,n,r){let i=``;for(let a=0,o=n.items.length;a<o;a+=1){let o=$(e,t+1,n.items[a],n,{block:!0,compact:e.seqInlineFirst,isblockseq:!0}).text;r&&i===``||(i+=Jr(e,t)),o===``||Q===o.charCodeAt(0)?i+=`-`:i+=`- `,i+=o}return i}function Qr(e,t,n){let r=``;for(let{key:i,value:a}of n.items){let o=``;r!==``&&(o+=`,${e.flowSkipCommaSpace?``:` `}`);let s=$(e,t,i,n,{iskey:!0}),c=s.text,l=$(e,t,a,n,{}).text,u=e.flowSkipColonSpace||l===``?``:` `,d=i.kind===`scalar`&&s.noBody&&(i.tagged||i.anchor!==void 0),f=i.kind===`alias`||d?` `:``;o+=`${c}${f}:${u}${l}`,r+=o}let i=e.flowBracketPadding&&r!==``?` `:``;return`{${i}${r}${i}}`}function $r(e,t,n,r){let i=``;for(let a=0,o=n.items.length;a<o;a+=1){let o=``;r&&i===``||(o+=Jr(e,t));let{key:s,value:c}=n.items[a],l=(s.kind===`mapping`||s.kind===`sequence`)&&s.style===x.BLOCK&&s.items.length!==0||s.kind===`scalar`&&(s.style===b.LITERAL_BLOCK||s.style===b.FOLDED_BLOCK),u=l?$(e,t+1,s,n,{block:!0,compact:!0,isblockseq:!ei(e,s,t+1)}):$(e,t+1,s,n,{block:!0,compact:!0,iskey:!0}),d=u.text,f=s.kind===`scalar`&&s.value.indexOf(`
31
+ `)!==-1,p=d.length>1024&&/^[\s\S]{1025}/u.test(d),m=l||f||p;m&&(d&&Q===d.charCodeAt(0)?o+=`?`:o+=`? `),o+=d,m&&(o+=Jr(e,t));let h=$(e,t+1,c,n,{block:!0,compact:m,isblockseq:m&&!ei(e,c,t+1)}).text,ee=s.kind===`scalar`&&u.noBody&&(s.tagged||s.anchor!==void 0),te=!m&&(s.kind===`alias`||ee)?` `:``;h===``||Q===h.charCodeAt(0)?o+=`${te}:`:o+=`${te}: `,o+=h,i+=o}return i}function ei(e,t,n){return t.kind===`alias`||t.tagged||t.anchor!==void 0||e.indent<2&&n>0}function $(e,t,n,r,i){if(n.kind===`alias`)return e.openEnded=!1,{text:`*${n.anchor}`,noBody:!1};let{block:a=!1,iskey:o=!1,isblockseq:s=!1}=i,c=i.compact??!1,l=n.anchor!==void 0;ei(e,n,t)&&(c=!1);let u,d=n.tagged,f=a&&(n.kind===`mapping`||n.kind===`sequence`)&&n.style===x.BLOCK&&n.items.length!==0;if(n.kind===`mapping`)u=f?$r(e,t,n,c):Qr(e,t,n);else if(n.kind===`sequence`)u=f?e.seqNoIndent&&!s&&t>0?Zr(e,t-1,n,c):Zr(e,t,n,c):Xr(e,t,n);else{let i=Yr(e,n,r,t,o,!a);Dr(i);for(let t of e.scalarStyleRules)t(i);u=Or(i),e.openEnded=(i.style===b.LITERAL_BLOCK||i.style===b.FOLDED_BLOCK)&&(n.value===`
32
+ `||n.value.endsWith(`
33
+
34
+ `)),d=n.tagged||u===``&&i.flowOnly&&r?.kind===`sequence`&&!l||i.style!==b.PLAIN&&n.tag!==e.defaultScalarTagName}n.kind!==`mapping`&&n.kind!==`sequence`||f||(e.openEnded=!1),f&&c&&t>0&&e.indent>2&&(u=`${` `.repeat(e.indent-2)}${u}`);let p=u===``,m=u;if(d||l){let t=[],r=d?Kr(n):null,i=l?`&${n.anchor}`:null;e.tagBeforeAnchor?(r!==null&&t.push(r),i!==null&&t.push(i)):(i!==null&&t.push(i),r!==null&&t.push(r));let a=u===``||u.charCodeAt(0)===Q?``:` `;m=`${t.join(` `)}${a}${u}`}return{text:m,noBody:p}}function ti(e){return(e.kind===`sequence`||e.kind===`mapping`)&&e.style===x.BLOCK&&e.items.length!==0&&!e.tagged&&e.anchor===void 0}function ni(e){let t=``;for(let n of e.directives){if(n.kind===`yaml`){t+=`%YAML ${n.version}\n`;continue}let{handle:e,prefix:r}=n;t+=`%TAG ${e} ${r}\n`}return t}function ri(e,t){let n=qr(t),r=``,i=!1;for(let t=0;t<e.length;t+=1){let a=e[t];n.openEnded=!1;let o=ni(a),s=o!==``,c=a.explicitStart||s||t>0&&!i;if(r+=o,a.contents===null)c&&(r+=`---
35
+ `);else if(c){let e=$(n,0,a.contents,null,{block:!0,compact:!0}).text,t=e===``?``:s||ti(a.contents)?`
36
+ `:` `;r+=`---${t}${e}\n`}else r+=$(n,0,a.contents,null,{block:!0,compact:!0}).text+`
37
+ `;i=a.explicitEnd||n.openEnded,i&&(r+=`...
38
+ `)}return r}var ii={...Gr,schema:nt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function ai(e,t){let n=String(e),r=String(t);return n<r?-1:+(n>r)}function oi(e,t={}){let n={...ii,...t},r=Mn(e,n.schema,{noRefs:n.noRefs,skipInvalid:n.skipInvalid});if(n.flowLevel>=0&&Fn(r,(e,t)=>{if(!(t.depth<n.flowLevel))return(e.kind===`sequence`||e.kind===`mapping`)&&(e.style=x.FLOW),Pn}),n.sortKeys){let e=n.sortKeys===!0?ai:n.sortKeys;Fn(r,t=>{t.kind===`mapping`&&t.items.sort((t,n)=>e(t.key.kind===`scalar`?t.key.value:``,n.key.kind===`scalar`?n.key.value:``))})}return n.transform(r),ri(r,{...Ke(n,Object.keys(Gr)),schema:n.schema})}y.DOCUMENT,y.SEQUENCE,y.MAPPING,y.SCALAR,y.ALIAS,y.POP,b.PLAIN,b.SINGLE_QUOTED,b.DOUBLE_QUOTED,b.LITERAL_BLOCK,b.FOLDED_BLOCK,x.BLOCK,x.FLOW,S.CLIP,S.STRIP,S.KEEP;function si(t,r){let i=kn(n(t),r);return e(t,i,r),i}function ci(e,n){let r=t(e,{preserveIndentation:!1}),i=oi(e,{indent:typeof r.indent==`string`?r.indent.length:r.indent,...n});return r.whitespace.start+i.trim()+r.whitespace.end}export{si as parseYAML,ci as stringifyYAML};
@@ -1,2 +1,2 @@
1
1
  /** Parses argv and runs the named subcommand: `dev`, `build`, `package` or `config`. */
2
- export declare function run(argv?: readonly string[]): Promise<void>;
2
+ export declare function run(argv?: readonly string[]): Promise<void>;