@vinicunca/unocss-preset 1.47.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { n as layerMeta } from "./meta-BWU-BFPZ.mjs";
2
- import { n as h } from "./utils-BtCNpQqm-BMsPT3mH.mjs";
2
+ import { n as h } from "./utils-BtCNpQqm-Bygqfcj5.mjs";
3
3
  //#region src/presets/animation/animation.entity.ts
4
4
  const CSS_VARIABLE_PREFIX = "--vin";
5
5
  const ENTER_ANIMATION_NAME = "vin-in";
@@ -1,5 +1,5 @@
1
- import { l as toArray, r as definePreset, s as mergeDeep, t as LAYER_IMPORTS } from "./dist-BSedd5SE.mjs";
2
- //#region node_modules/.pnpm/@unocss+preset-web-fonts@66.7.0/node_modules/@unocss/preset-web-fonts/dist/index.mjs
1
+ import { l as toArray, r as definePreset, s as mergeDeep, t as LAYER_IMPORTS } from "./dist-aKOzxsNl.mjs";
2
+ //#region node_modules/.pnpm/@unocss+preset-web-fonts@66.7.2/node_modules/@unocss/preset-web-fonts/dist/index.mjs
3
3
  function createBunnyFontsProvider(name, host) {
4
4
  return {
5
5
  name,
@@ -343,7 +343,7 @@ function createWebFontPreset(fetcher) {
343
343
  };
344
344
  }
345
345
  const userAgentWoff2 = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36";
346
- const defaultFetch = async (url) => (await import("./node-BoMp354b.mjs")).$fetch(url, {
346
+ const defaultFetch = async (url) => (await import("./node-CsRin8Rz.mjs")).$fetch(url, {
347
347
  headers: { "User-Agent": userAgentWoff2 },
348
348
  retry: 3
349
349
  });
@@ -1,5 +1,5 @@
1
1
  import { n as searchForIcon, t as loadIcon } from "./loader-w_QTsl1j.mjs";
2
- import { r as definePreset, u as warnOnce } from "./dist-BSedd5SE.mjs";
2
+ import { r as definePreset, u as warnOnce } from "./dist-aKOzxsNl.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  //#region node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/svg/url.js
5
5
  /**
@@ -25,7 +25,7 @@ function encodeSvgForCss(svg) {
25
25
  return encodeSVGforURL(useSvg);
26
26
  }
27
27
  //#endregion
28
- //#region node_modules/.pnpm/@unocss+preset-icons@66.7.0/node_modules/@unocss/preset-icons/dist/core-Cb3gCBCx.mjs
28
+ //#region node_modules/.pnpm/@unocss+preset-icons@66.7.2/node_modules/@unocss/preset-icons/dist/core-oAhSf_2m.mjs
29
29
  function getEnvFlags() {
30
30
  const isNode = typeof process !== "undefined" && process.stdout;
31
31
  return {
@@ -39,6 +39,7 @@ var collections_default = [
39
39
  "akar-icons",
40
40
  "ant-design",
41
41
  "arcticons",
42
+ "at-icons",
42
43
  "basil",
43
44
  "bi",
44
45
  "bitcoin-icons",
@@ -124,6 +125,7 @@ var collections_default = [
124
125
  "gcp",
125
126
  "geo",
126
127
  "gg",
128
+ "ginetex",
127
129
  "gis",
128
130
  "glyphs-poly",
129
131
  "glyphs",
@@ -381,7 +383,7 @@ async function parseIconWithLoader(body, loader, options = {}, safeCollectionsNa
381
383
  let collection = "";
382
384
  let name = "";
383
385
  let svg;
384
- const allCollections = new Set([
386
+ const allCollections = /* @__PURE__ */ new Set([
385
387
  ...collections_default,
386
388
  ...safeCollectionsNames,
387
389
  ...Object.keys(options.customCollections || {})
@@ -408,13 +410,13 @@ async function parseIconWithLoader(body, loader, options = {}, safeCollectionsNa
408
410
  };
409
411
  }
410
412
  //#endregion
411
- //#region node_modules/.pnpm/@unocss+preset-icons@66.7.0/node_modules/@unocss/preset-icons/dist/cdn-B5KlXljx.mjs
413
+ //#region node_modules/.pnpm/@unocss+preset-icons@66.7.2/node_modules/@unocss/preset-icons/dist/cdn-CyYCPPDQ.mjs
412
414
  async function createCDNLoader(cdnBase) {
413
- const { $fetch } = await import("./node-BoMp354b.mjs");
415
+ const { $fetch } = await import("./node-CsRin8Rz.mjs");
414
416
  return createCDNFetchLoader($fetch, cdnBase);
415
417
  }
416
418
  //#endregion
417
- //#region node_modules/.pnpm/@unocss+preset-icons@66.7.0/node_modules/@unocss/preset-icons/dist/index.mjs
419
+ //#region node_modules/.pnpm/@unocss+preset-icons@66.7.2/node_modules/@unocss/preset-icons/dist/index.mjs
418
420
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
419
421
  const _factory = /* @__PURE__ */ createPresetIcons(async (options) => {
420
422
  const { cdn } = options;
@@ -449,7 +451,7 @@ const presetIcons = /* @__PURE__ */ definePreset((options = {}) => {
449
451
  });
450
452
  async function createNodeLoader() {
451
453
  try {
452
- return await import("./node-loader-DOgc4ALB.mjs").then((i) => i?.loadNodeIcon);
454
+ return await import("./node-loader-DeYaYavU.mjs").then((i) => i?.loadNodeIcon);
453
455
  } catch {}
454
456
  try {
455
457
  return __require("@iconify/utils/lib/loader/node-loader.cjs").loadNodeIcon;
@@ -1,11 +1,11 @@
1
- import { t as __exportAll } from "./chunk-z9aeyW2b.mjs";
2
- import { a as escapeSelector, i as escapeRegExp, l as toArray, o as isString } from "./dist-BSedd5SE.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
+ import { a as escapeSelector, i as escapeRegExp, l as toArray, o as isString } from "./dist-aKOzxsNl.mjs";
3
3
  //#region node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
4
4
  var comma = ",".charCodeAt(0);
5
5
  var semicolon = ";".charCodeAt(0);
6
6
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
7
- var intToChar = new Uint8Array(64);
8
- var charToInt = new Uint8Array(128);
7
+ var intToChar = /* @__PURE__ */ new Uint8Array(64);
8
+ var charToInt = /* @__PURE__ */ new Uint8Array(128);
9
9
  for (let i = 0; i < chars.length; i++) {
10
10
  const c = chars.charCodeAt(i);
11
11
  intToChar[i] = c;
@@ -1010,7 +1010,7 @@ var MagicString = class MagicString {
1010
1010
  }
1011
1011
  };
1012
1012
  //#endregion
1013
- //#region node_modules/.pnpm/@unocss+rule-utils@66.7.0/node_modules/@unocss/rule-utils/dist/index.mjs
1013
+ //#region node_modules/.pnpm/@unocss+rule-utils@66.7.2/node_modules/@unocss/rule-utils/dist/index.mjs
1014
1014
  var dist_exports = /* @__PURE__ */ __exportAll({
1015
1015
  PseudoClassFunctions: () => PseudoClassFunctions,
1016
1016
  PseudoClassFunctionsStr: () => PseudoClassFunctionsStr,
@@ -1,6 +1,6 @@
1
- import { c as symbols, l as toArray, n as clone, r as definePreset, s as mergeDeep } from "./dist-BSedd5SE.mjs";
2
- import { r as colorToString, t as alphaPlaceholders } from "./dist-C9X3OQLP.mjs";
3
- //#region node_modules/.pnpm/@unocss+preset-typography@66.7.0/node_modules/@unocss/preset-typography/dist/index.mjs
1
+ import { c as symbols, l as toArray, n as clone, r as definePreset, s as mergeDeep } from "./dist-aKOzxsNl.mjs";
2
+ import { r as colorToString, t as alphaPlaceholders } from "./dist-CRklVSbu.mjs";
3
+ //#region node_modules/.pnpm/@unocss+preset-typography@66.7.2/node_modules/@unocss/preset-typography/dist/index.mjs
4
4
  const modifiers = [
5
5
  [
6
6
  "headings",
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/@unocss+core@66.7.0/node_modules/@unocss/core/dist/index.mjs
1
+ //#region node_modules/.pnpm/@unocss+core@66.7.2/node_modules/@unocss/core/dist/index.mjs
2
2
  const LAYER_IMPORTS = "imports";
3
3
  function toArray(value = []) {
4
4
  return Array.isArray(value) ? value : [value];
package/dist/index.d.mts CHANGED
@@ -226,7 +226,7 @@ interface LoadConfigResult<T> {
226
226
  dependencies?: string[];
227
227
  } //#endregion
228
228
  //#endregion
229
- //#region node_modules/.pnpm/@unocss+core@66.7.0/node_modules/@unocss/core/dist/index.d.mts
229
+ //#region node_modules/.pnpm/@unocss+core@66.7.2/node_modules/@unocss/core/dist/index.d.mts
230
230
  //#endregion
231
231
  //#region src/utils/countable-set.d.ts
232
232
  declare class CountableSet<K> extends Set<K> {
@@ -1505,7 +1505,7 @@ type InlineCollection = Record<string, string | (() => Awaitable<string | undefi
1505
1505
  * Collection of custom icons. Key is the collection name, the value is the loader or InlineCollection object
1506
1506
  */
1507
1507
  //#endregion
1508
- //#region node_modules/.pnpm/@unocss+preset-icons@66.7.0/node_modules/@unocss/preset-icons/dist/core-BUAiicPC.d.mts
1508
+ //#region node_modules/.pnpm/@unocss+preset-icons@66.7.2/node_modules/@unocss/preset-icons/dist/core-BUAiicPC.d.mts
1509
1509
  //#region src/types.d.ts
1510
1510
  interface IconMeta {
1511
1511
  collection: string;
@@ -1620,7 +1620,7 @@ interface IconsOptions {
1620
1620
  } //#endregion
1621
1621
  //#region src/collections.d.ts
1622
1622
  //#endregion
1623
- //#region node_modules/.pnpm/@unocss+preset-mini@66.7.0/node_modules/@unocss/preset-mini/dist/colors-DCBiEX2u.d.mts
1623
+ //#region node_modules/.pnpm/@unocss+preset-mini@66.7.2/node_modules/@unocss/preset-mini/dist/colors-DCBiEX2u.d.mts
1624
1624
  //#region src/_theme/types.d.ts
1625
1625
  interface ThemeAnimation$1 {
1626
1626
  keyframes?: Record<string, string>;
@@ -1699,7 +1699,7 @@ interface Theme$1 {
1699
1699
  } //#endregion
1700
1700
  //#region src/_theme/colors.d.ts
1701
1701
  //#endregion
1702
- //#region node_modules/.pnpm/@unocss+preset-mini@66.7.0/node_modules/@unocss/preset-mini/dist/index-C15Z0rWV.d.mts
1702
+ //#region node_modules/.pnpm/@unocss+preset-mini@66.7.2/node_modules/@unocss/preset-mini/dist/index-C15Z0rWV.d.mts
1703
1703
  //#endregion
1704
1704
  //#region src/index.d.ts
1705
1705
  interface DarkModeSelectors$1 {
@@ -1762,7 +1762,7 @@ interface PresetMiniOptions extends PresetOptions {
1762
1762
  * @see https://unocss.dev/presets/mini
1763
1763
  */
1764
1764
  //#endregion
1765
- //#region node_modules/.pnpm/@unocss+preset-typography@66.7.0/node_modules/@unocss/preset-typography/dist/index.d.mts
1765
+ //#region node_modules/.pnpm/@unocss+preset-typography@66.7.2/node_modules/@unocss/preset-typography/dist/index.d.mts
1766
1766
  //#region src/types.d.ts
1767
1767
  interface TypographyCompatibilityOptions {
1768
1768
  noColonWhere?: boolean;
@@ -1909,7 +1909,7 @@ interface TypographyOptions<T extends TypographyTheme = TypographyTheme> {
1909
1909
  * @public
1910
1910
  */
1911
1911
  //#endregion
1912
- //#region node_modules/.pnpm/@unocss+preset-web-fonts@66.7.0/node_modules/@unocss/preset-web-fonts/dist/types-Bbb4MXF_.d.mts
1912
+ //#region node_modules/.pnpm/@unocss+preset-web-fonts@66.7.2/node_modules/@unocss/preset-web-fonts/dist/types-Bbb4MXF_.d.mts
1913
1913
  //#region src/types.d.ts
1914
1914
  type WebFontsProviders = 'google' | 'bunny' | 'fontshare' | 'fontsource' | 'coollabs' | 'zeoseven' | 'none' | Provider;
1915
1915
  interface WebFontMeta {
@@ -2037,7 +2037,7 @@ interface Axes {
2037
2037
  step: string;
2038
2038
  } //#endregion
2039
2039
  //#endregion
2040
- //#region node_modules/.pnpm/@unocss+preset-wind3@66.7.0/node_modules/@unocss/preset-wind3/dist/index-7RoeBIPP.d.mts
2040
+ //#region node_modules/.pnpm/@unocss+preset-wind3@66.7.2/node_modules/@unocss/preset-wind3/dist/index-7RoeBIPP.d.mts
2041
2041
  //#endregion
2042
2042
  //#region src/index.d.ts
2043
2043
  interface PresetWind3Options extends PresetMiniOptions {
@@ -2060,7 +2060,7 @@ interface PresetWind3Options extends PresetMiniOptions {
2060
2060
  * @see https://unocss.dev/presets/wind3
2061
2061
  */
2062
2062
  //#endregion
2063
- //#region node_modules/.pnpm/@unocss+preset-wind4@66.7.0/node_modules/@unocss/preset-wind4/dist/theme-C7zgiweA.d.mts
2063
+ //#region node_modules/.pnpm/@unocss+preset-wind4@66.7.2/node_modules/@unocss/preset-wind4/dist/theme-C7zgiweA.d.mts
2064
2064
  //#endregion
2065
2065
  //#region src/theme/types.d.ts
2066
2066
  interface Colors {
@@ -2117,7 +2117,7 @@ interface Theme {
2117
2117
  } //#endregion
2118
2118
  //#region src/theme/font.d.ts
2119
2119
  //#endregion
2120
- //#region node_modules/.pnpm/@unocss+preset-wind4@66.7.0/node_modules/@unocss/preset-wind4/dist/index-DRmQ2SKQ.d.mts
2120
+ //#region node_modules/.pnpm/@unocss+preset-wind4@66.7.2/node_modules/@unocss/preset-wind4/dist/index-DRmQ2SKQ.d.mts
2121
2121
  //#endregion
2122
2122
  //#region src/index.d.ts
2123
2123
  interface DarkModeSelectors {
@@ -2242,7 +2242,7 @@ interface PresetWind4Options extends PresetOptions {
2242
2242
  };
2243
2243
  }
2244
2244
  //#endregion
2245
- //#region node_modules/.pnpm/@unocss+transformer-directives@66.7.0/node_modules/@unocss/transformer-directives/dist/index.d.mts
2245
+ //#region node_modules/.pnpm/@unocss+transformer-directives@66.7.2/node_modules/@unocss/transformer-directives/dist/index.d.mts
2246
2246
  //#region src/types.d.ts
2247
2247
  interface TransformerDirectivesOptions {
2248
2248
  enforce?: SourceCodeTransformer['enforce'];
@@ -2271,7 +2271,7 @@ interface TransformerDirectivesOptions {
2271
2271
  varStyle?: false | string;
2272
2272
  }
2273
2273
  //#endregion
2274
- //#region node_modules/.pnpm/@unocss+transformer-variant-group@66.7.0/node_modules/@unocss/transformer-variant-group/dist/index.d.mts
2274
+ //#region node_modules/.pnpm/@unocss+transformer-variant-group@66.7.2/node_modules/@unocss/transformer-variant-group/dist/index.d.mts
2275
2275
  //#region src/index.d.ts
2276
2276
  interface TransformerVariantGroupOptions {
2277
2277
  /**
package/dist/index.mjs CHANGED
@@ -538,14 +538,14 @@ async function resolveOptions(options) {
538
538
  async function resolvePresets(options) {
539
539
  const presets = [];
540
540
  const presetMap = {
541
- icons: import("./dist-CfzVMiRr.mjs").then((mod) => mod.presetIcons),
541
+ icons: import("./dist-CJHzGraD.mjs").then((mod) => mod.presetIcons),
542
542
  wind4: import("unocss").then((m) => m.presetWind4),
543
543
  wind3: import("unocss").then((m) => m.presetWind3),
544
544
  fluid: import("./fluid-vyZzun_V.mjs").then((mod) => mod.presetFluid),
545
- animation: import("./animation-CW3bNe3I.mjs").then((mod) => mod.presetAnimation),
546
- webFonts: import("./dist-CZcIarKL.mjs").then((mod) => mod.presetWebFonts),
547
- typography: import("./dist-Bd570nH8.mjs").then((mod) => mod.presetTypography),
548
- scrollbar: import("./scrollbar-gf2hXs4h.mjs").then((mod) => mod.presetScrollbar),
545
+ animation: import("./animation-CwBXwE2g.mjs").then((mod) => mod.presetAnimation),
546
+ webFonts: import("./dist-BaR0zMmx.mjs").then((mod) => mod.presetWebFonts),
547
+ typography: import("./dist-CUVvXCsz.mjs").then((mod) => mod.presetTypography),
548
+ scrollbar: import("./scrollbar-TN4l13tK.mjs").then((mod) => mod.presetScrollbar),
549
549
  magicCss: import("./magic-css-DVWebgFO.mjs").then((mod) => mod.presetMagicss),
550
550
  akar: import("./akar-DW0k-RQw.mjs").then((mod) => mod.presetAkar)
551
551
  };
@@ -565,7 +565,7 @@ async function resolveTransformers(options) {
565
565
  const transformerMap = {
566
566
  directives: import("unocss").then((m) => m.transformerDirectives),
567
567
  variantGroup: import("unocss").then((m) => m.transformerVariantGroup),
568
- alias: import("./transformer-alias-CUUXiUed.mjs").then((mod) => mod.transformerAlias)
568
+ alias: import("./transformer-alias-B5L6CNdC.mjs").then((mod) => mod.transformerAlias)
569
569
  };
570
570
  for (const [key, transformer] of Object.entries(transformerMap)) {
571
571
  const option = options[key];
@@ -1,4 +1,4 @@
1
- import { o as qn, r as br } from "./node-CmhetNN9.mjs";
1
+ import { o as qn, r as br } from "./node-Di28XAWx.mjs";
2
2
  //#region node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs
3
3
  var B = Object.defineProperty;
4
4
  var E = (u, a) => B(u, "name", {
@@ -1,6 +1,6 @@
1
- import { c as ye, n as Mn, t as Mi } from "./node-CmhetNN9.mjs";
2
- import http from "node:http";
3
- import https from "node:https";
1
+ import { c as ye, n as Mn, t as Mi } from "./node-Di28XAWx.mjs";
2
+ import Bt from "node:http";
3
+ import zs from "node:https";
4
4
  //#region node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs
5
5
  const o = !!globalThis.process?.env?.FORCE_NODE_FETCH, r$1 = !o && globalThis.fetch || Mi;
6
6
  !o && globalThis.Blob;
@@ -449,8 +449,8 @@ function createFetch(globalOptions = {}) {
449
449
  function createNodeFetch() {
450
450
  if (!JSON.parse(process.env.FETCH_KEEP_ALIVE || "false")) return r$1;
451
451
  const agentOptions = { keepAlive: true };
452
- const httpAgent = new http.Agent(agentOptions);
453
- const httpsAgent = new https.Agent(agentOptions);
452
+ const httpAgent = new Bt.Agent(agentOptions);
453
+ const httpsAgent = new zs.Agent(agentOptions);
454
454
  const nodeFetchOptions = { agent(parsedURL) {
455
455
  return parsedURL.protocol === "http:" ? httpAgent : httpsAgent;
456
456
  } };
@@ -1,11 +1,11 @@
1
- import { n as __require } from "./chunk-z9aeyW2b.mjs";
1
+ import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
2
  import { deprecate, promisify, types } from "node:util";
3
3
  import { basename } from "node:path";
4
4
  import { createReadStream, promises, statSync } from "node:fs";
5
5
  import me, { PassThrough, pipeline } from "node:stream";
6
6
  import { format as format$1 } from "node:url";
7
- import http from "node:http";
8
- import https from "node:https";
7
+ import Bt from "node:http";
8
+ import zs from "node:https";
9
9
  import st from "node:zlib";
10
10
  import { Buffer as Buffer$1 } from "node:buffer";
11
11
  import { isIP } from "node:net";
@@ -2926,7 +2926,7 @@ const mr = Symbol.toStringTag, wi = n((i) => typeof i == "object" && typeof i.ap
2926
2926
  for (const [p, h] of l) f.append(p, h);
2927
2927
  return f;
2928
2928
  }
2929
- const { toFormData: a } = await import("./multipart-parser-BfE-2pJ1.mjs");
2929
+ const { toFormData: a } = await import("./multipart-parser-DWwgMt8_.mjs");
2930
2930
  return a(this.body, o);
2931
2931
  }
2932
2932
  async blob() {
@@ -2992,12 +2992,12 @@ const In = n((i, o) => {
2992
2992
  return o === null ? 0 : yr(o) ? o.size : Buffer$1.isBuffer(o) ? o.length : o && typeof o.getLengthSync == "function" && o.hasKnownLength && o.hasKnownLength() ? o.getLengthSync() : null;
2993
2993
  }, "getTotalBytes"), nl = n(async (i, { body: o }) => {
2994
2994
  o === null ? i.end() : await el(o, i);
2995
- }, "writeToStream"), gr = typeof http.validateHeaderName == "function" ? http.validateHeaderName : (i) => {
2995
+ }, "writeToStream"), gr = typeof Bt.validateHeaderName == "function" ? Bt.validateHeaderName : (i) => {
2996
2996
  if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(i)) {
2997
2997
  const o = /* @__PURE__ */ new TypeError(`Header name must be a valid HTTP token [${i}]`);
2998
2998
  throw Object.defineProperty(o, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), o;
2999
2999
  }
3000
- }, Fn = typeof http.validateHeaderValue == "function" ? http.validateHeaderValue : (i, o) => {
3000
+ }, Fn = typeof Bt.validateHeaderValue == "function" ? Bt.validateHeaderValue : (i, o) => {
3001
3001
  if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(o)) {
3002
3002
  const a = /* @__PURE__ */ new TypeError(`Invalid character in header content ["${i}"]`);
3003
3003
  throw Object.defineProperty(a, "code", { value: "ERR_INVALID_CHAR" }), a;
@@ -3090,7 +3090,7 @@ function ol(i = []) {
3090
3090
  }));
3091
3091
  }
3092
3092
  n(ol, "fromRawHeaders");
3093
- const il = new Set([
3093
+ const il = /* @__PURE__ */ new Set([
3094
3094
  301,
3095
3095
  302,
3096
3096
  303,
@@ -3199,7 +3199,7 @@ function Ti(i, o = !1) {
3199
3199
  return i == null || (i = new URL(i), /^(about|blob|data):$/.test(i.protocol)) ? "no-referrer" : (i.username = "", i.password = "", i.hash = "", o && (i.pathname = "", i.search = ""), i);
3200
3200
  }
3201
3201
  n(Ti, "stripURLForUseAsAReferrer");
3202
- const Ci = new Set([
3202
+ const Ci = /* @__PURE__ */ new Set([
3203
3203
  "",
3204
3204
  "no-referrer",
3205
3205
  "no-referrer-when-downgrade",
@@ -3415,7 +3415,7 @@ const vi = n((i, o, a = "") => new ut([new Sr({
3415
3415
  };
3416
3416
  He = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), n(Er, "BlobDataItem");
3417
3417
  let Sr = Er;
3418
- const wl = new Set([
3418
+ const wl = /* @__PURE__ */ new Set([
3419
3419
  "data:",
3420
3420
  "http:",
3421
3421
  "https:"
@@ -3429,7 +3429,7 @@ async function Ai(i, o) {
3429
3429
  a(new le(g, { headers: { "Content-Type": g.typeFull } }));
3430
3430
  return;
3431
3431
  }
3432
- const S = (p.protocol === "https:" ? https : http).request, { signal: v } = l;
3432
+ const S = (p.protocol === "https:" ? zs : Bt).request, { signal: v } = l;
3433
3433
  let w = null;
3434
3434
  const A = n(() => {
3435
3435
  const g = new _r("The operation was aborted.");
@@ -3,12 +3,12 @@ import { builtinModules } from "node:module";
3
3
  import { format, inspect, styleText } from "node:util";
4
4
  import process$1, { cwd } from "node:process";
5
5
  import fs from "node:fs/promises";
6
- import path, { delimiter, dirname, normalize, resolve } from "node:path";
7
- import fs$1, { existsSync, realpathSync, statSync } from "node:fs";
8
- import { createRequire as createRequire$1 } from "module";
6
+ import path, { basename, delimiter, dirname, normalize, resolve } from "node:path";
7
+ import fs$1, { closeSync, existsSync, openSync, readSync, realpathSync, statSync } from "node:fs";
9
8
  import { spawn } from "node:child_process";
9
+ import { pipeline } from "node:stream/promises";
10
10
  import { PassThrough } from "node:stream";
11
- import c from "node:readline";
11
+ import u from "node:readline";
12
12
  import { fileURLToPath, pathToFileURL } from "node:url";
13
13
  import assert from "node:assert";
14
14
  import v8 from "node:v8";
@@ -177,452 +177,163 @@ function isMetadataYarnClassic(metadataPath) {
177
177
  return metadataPath.endsWith(".yarn_integrity");
178
178
  }
179
179
  //#endregion
180
- //#region node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js
181
- var l = Object.create;
182
- var u = Object.defineProperty;
183
- var d = Object.getOwnPropertyDescriptor;
184
- var f = Object.getOwnPropertyNames;
185
- var p = Object.getPrototypeOf;
186
- var m = Object.prototype.hasOwnProperty;
187
- var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
188
- var g = (e, t, n, r) => {
189
- if (t && typeof t === "object" || typeof t === "function") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {
190
- s = i[a];
191
- if (!m.call(e, s) && s !== n) u(e, s, {
192
- get: ((e) => t[e]).bind(null, s),
193
- enumerable: !(r = d(t, s)) || r.enumerable
194
- });
195
- }
196
- return e;
197
- };
198
- var _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, "default", {
199
- value: e,
200
- enumerable: true
201
- }) : n, e));
202
- var v = /* @__PURE__ */ createRequire$1(import.meta.url);
203
- const y = /^path$/i;
204
- const b = {
180
+ //#region node_modules/.pnpm/tinyexec@1.2.2/node_modules/tinyexec/dist/main.mjs
181
+ const h = /^path$/i;
182
+ const g = {
205
183
  key: "PATH",
206
184
  value: ""
207
185
  };
208
- function x(e) {
186
+ function _(e) {
209
187
  for (const t in e) {
210
- if (!Object.prototype.hasOwnProperty.call(e, t) || !y.test(t)) continue;
188
+ if (!Object.prototype.hasOwnProperty.call(e, t) || !h.test(t)) continue;
211
189
  const n = e[t];
212
- if (!n) return b;
190
+ if (!n) return g;
213
191
  return {
214
192
  key: t,
215
193
  value: n
216
194
  };
217
195
  }
218
- return b;
196
+ return g;
219
197
  }
220
- function S(e, t) {
221
- const i = t.value.split(delimiter);
198
+ function v(e, t) {
199
+ const n = t.value.split(delimiter);
200
+ const r = [];
222
201
  let o = e;
223
- let s;
202
+ let c;
224
203
  do {
225
- i.push(resolve(o, "node_modules", ".bin"));
226
- s = o;
204
+ r.push(resolve(o, "node_modules", ".bin"));
205
+ c = o;
227
206
  o = dirname(o);
228
- } while (o !== s);
207
+ } while (o !== c);
208
+ r.push(dirname(process.execPath));
209
+ const l = r.concat(n).join(delimiter);
229
210
  return {
230
211
  key: t.key,
231
- value: i.join(delimiter)
212
+ value: l
232
213
  };
233
214
  }
234
- function C(e, t) {
235
- const n = {
215
+ function y(e, t, n = true) {
216
+ const r = {
236
217
  ...process.env,
237
218
  ...t
238
219
  };
239
- const r = S(e, x(n));
240
- n[r.key] = r.value;
241
- return n;
220
+ if (!n) return r;
221
+ const i = v(e, _(r));
222
+ r[i.key] = i.value;
223
+ return r;
242
224
  }
243
- const w = (e) => {
225
+ const b = (e) => {
244
226
  let t = e.length;
245
227
  const n = new PassThrough();
246
228
  const r = () => {
247
- if (--t === 0) n.emit("end");
229
+ if (--t === 0) n.end();
248
230
  };
249
- for (const t of e) {
250
- t.pipe(n, { end: false });
251
- t.on("end", r);
252
- }
231
+ for (const t of e) pipeline(t, n, { end: false }).then(r).catch(r);
253
232
  return n;
254
233
  };
255
- var T = h((exports, t) => {
256
- t.exports = a;
257
- a.sync = o;
258
- var n = v("fs");
259
- function r(e, t) {
260
- var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
261
- if (!n) return true;
262
- n = n.split(";");
263
- if (n.indexOf("") !== -1) return true;
264
- for (var r = 0; r < n.length; r++) {
265
- var i = n[r].toLowerCase();
266
- if (i && e.substr(-i.length).toLowerCase() === i) return true;
267
- }
268
- return false;
269
- }
270
- function i(e, t, n) {
271
- if (!e.isSymbolicLink() && !e.isFile()) return false;
272
- return r(t, n);
273
- }
274
- function a(e, t, r) {
275
- n.stat(e, function(n, a) {
276
- r(n, n ? false : i(a, e, t));
277
- });
278
- }
279
- function o(e, t) {
280
- return i(n.statSync(e), e, t);
281
- }
282
- });
283
- var E = h((exports, t) => {
284
- t.exports = r;
285
- r.sync = i;
286
- var n = v("fs");
287
- function r(e, t, r) {
288
- n.stat(e, function(e, n) {
289
- r(e, e ? false : a(n, t));
290
- });
291
- }
292
- function i(e, t) {
293
- return a(n.statSync(e), t);
294
- }
295
- function a(e, t) {
296
- return e.isFile() && o(e, t);
297
- }
298
- function o(e, t) {
299
- var n = e.mode;
300
- var r = e.uid;
301
- var i = e.gid;
302
- var a = t.uid !== void 0 ? t.uid : process.getuid && process.getuid();
303
- var o = t.gid !== void 0 ? t.gid : process.getgid && process.getgid();
304
- var s = parseInt("100", 8);
305
- var c = parseInt("010", 8);
306
- var l = parseInt("001", 8);
307
- var u = s | c;
308
- return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
309
- }
310
- });
311
- var D = h((exports, t) => {
312
- v("fs");
313
- var r;
314
- if (process.platform === "win32" || global.TESTING_WINDOWS) r = T();
315
- else r = E();
316
- t.exports = i;
317
- i.sync = a;
318
- function i(e, t, n) {
319
- if (typeof t === "function") {
320
- n = t;
321
- t = {};
322
- }
323
- if (!n) {
324
- if (typeof Promise !== "function") throw new TypeError("callback not provided");
325
- return new Promise(function(n, r) {
326
- i(e, t || {}, function(e, t) {
327
- if (e) r(e);
328
- else n(t);
329
- });
330
- });
331
- }
332
- r(e, t || {}, function(e, r) {
333
- if (e) {
334
- if (e.code === "EACCES" || t && t.ignoreErrors) {
335
- e = null;
336
- r = false;
337
- }
338
- }
339
- n(e, r);
340
- });
341
- }
342
- function a(e, t) {
343
- try {
344
- return r.sync(e, t || {});
345
- } catch (e) {
346
- if (t && t.ignoreErrors || e.code === "EACCES") return false;
347
- else throw e;
348
- }
349
- }
350
- });
351
- var O = h((exports, t) => {
352
- const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
353
- const r = v("path");
354
- const i = n ? ";" : ":";
355
- const a = D();
356
- const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
357
- const s = (e, t) => {
358
- const r = t.colon || i;
359
- const a = e.match(/\//) || n && e.match(/\\/) ? [""] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || "").split(r)];
360
- const o = n ? t.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
361
- const s = n ? o.split(r) : [""];
362
- if (n) {
363
- if (e.indexOf(".") !== -1 && s[0] !== "") s.unshift("");
364
- }
365
- return {
366
- pathEnv: a,
367
- pathExt: s,
368
- pathExtExe: o
369
- };
370
- };
371
- const c = (e, t, n) => {
372
- if (typeof t === "function") {
373
- n = t;
374
- t = {};
375
- }
376
- if (!t) t = {};
377
- const { pathEnv: i, pathExt: c, pathExtExe: l } = s(e, t);
378
- const u = [];
379
- const d = (n) => new Promise((a, s) => {
380
- if (n === i.length) return t.all && u.length ? a(u) : s(o(e));
381
- const c = i[n];
382
- const l = /^".*"$/.test(c) ? c.slice(1, -1) : c;
383
- const d = r.join(l, e);
384
- a(f(!l && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + d : d, n, 0));
385
- });
386
- const f = (e, n, r) => new Promise((i, o) => {
387
- if (r === c.length) return i(d(n + 1));
388
- const s = c[r];
389
- a(e + s, { pathExt: l }, (a, o) => {
390
- if (!a && o) if (t.all) u.push(e + s);
391
- else return i(e + s);
392
- return i(f(e, n, r + 1));
393
- });
394
- });
395
- return n ? d(0).then((e) => n(null, e), n) : d(0);
396
- };
397
- const l = (e, t) => {
398
- t = t || {};
399
- const { pathEnv: n, pathExt: i, pathExtExe: c } = s(e, t);
400
- const l = [];
401
- for (let o = 0; o < n.length; o++) {
402
- const s = n[o];
403
- const u = /^".*"$/.test(s) ? s.slice(1, -1) : s;
404
- const d = r.join(u, e);
405
- const f = !u && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + d : d;
406
- for (let e = 0; e < i.length; e++) {
407
- const n = f + i[e];
408
- try {
409
- if (a.sync(n, { pathExt: c })) if (t.all) l.push(n);
410
- else return n;
411
- } catch (e) {}
412
- }
413
- }
414
- if (t.all && l.length) return l;
415
- if (t.nothrow) return null;
416
- throw o(e);
417
- };
418
- t.exports = c;
419
- c.sync = l;
420
- });
421
- var k = h((exports, t) => {
422
- const n = (e = {}) => {
423
- const t = e.env || process.env;
424
- if ((e.platform || process.platform) !== "win32") return "PATH";
425
- return Object.keys(t).reverse().find((e) => e.toUpperCase() === "PATH") || "Path";
426
- };
427
- t.exports = n;
428
- t.exports.default = n;
429
- });
430
- var A = h((exports, t) => {
431
- const n = v("path");
432
- const r = O();
433
- const i = k();
434
- function a(e, t) {
435
- const a = e.options.env || process.env;
436
- const o = process.cwd();
437
- const s = e.options.cwd != null;
438
- const c = s && process.chdir !== void 0 && !process.chdir.disabled;
439
- if (c) try {
440
- process.chdir(e.options.cwd);
441
- } catch (e) {}
442
- let l;
443
- try {
444
- l = r.sync(e.command, {
445
- path: a[i({ env: a })],
446
- pathExt: t ? n.delimiter : void 0
447
- });
448
- } catch (e) {} finally {
449
- if (c) process.chdir(o);
450
- }
451
- if (l) l = n.resolve(s ? e.options.cwd : "", l);
452
- return l;
453
- }
454
- function o(e) {
455
- return a(e) || a(e, true);
456
- }
457
- t.exports = o;
458
- });
459
- var j = h((exports, t) => {
460
- const n = /([()\][%!^"`<>&|;, *?])/g;
461
- function r(e) {
462
- e = e.replace(n, "^$1");
463
- return e;
464
- }
465
- function i(e, t) {
466
- e = `${e}`;
467
- e = e.replace(/(\\*)"/g, "$1$1\\\"");
468
- e = e.replace(/(\\*)$/, "$1$1");
469
- e = `"${e}"`;
470
- e = e.replace(n, "^$1");
471
- if (t) e = e.replace(n, "^$1");
472
- return e;
473
- }
474
- t.exports.command = r;
475
- t.exports.argument = i;
476
- });
477
- var M = h((exports, t) => {
478
- t.exports = /^#!(.*)/;
479
- });
480
- var N = h((exports, t) => {
481
- const n = M();
482
- t.exports = (e = "") => {
483
- const t = e.match(n);
484
- if (!t) return null;
485
- const [r, i] = t[0].replace(/#! ?/, "").split(" ");
486
- const a = r.split("/").pop();
487
- if (a === "env") return i;
488
- return i ? `${a} ${i}` : a;
234
+ const x = /([()\][%!^"`<>&|;, *?])/g;
235
+ const S = /^#!\s*(.+)/;
236
+ const C = /\.(?:com|exe)$/i;
237
+ const w = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i;
238
+ const T = process.platform === "win32";
239
+ const E = [
240
+ ".EXE",
241
+ ".CMD",
242
+ ".BAT",
243
+ ".COM"
244
+ ];
245
+ /**
246
+ * Normalizes the command and arguments to work cross-platform.
247
+ * On Windows, this basically handles things like shebangs, calling
248
+ * `node_modules/.bin` commands, and escaping meta characters.
249
+ * On other platforms, it just returns the command and arguments as-is.
250
+ */
251
+ function D(e, t = [], n = {}) {
252
+ if (n.shell === true || !T) return {
253
+ command: e,
254
+ args: t,
255
+ options: n
489
256
  };
490
- });
491
- var P = h((exports, t) => {
492
- const n = v("fs");
493
- const r = N();
494
- function i(e) {
495
- const t = 150;
496
- const i = Buffer.alloc(t);
497
- let a;
257
+ let i = O(e, n);
258
+ let a = null;
259
+ if (i !== null) {
260
+ const e = 150;
261
+ const t = Buffer.alloc(e);
262
+ let n = null;
498
263
  try {
499
- a = n.openSync(e, "r");
500
- n.readSync(a, i, 0, t, 0);
501
- n.closeSync(a);
502
- } catch (e) {}
503
- return r(i.toString());
504
- }
505
- t.exports = i;
506
- });
507
- var F = h((exports, t) => {
508
- const n = v("path");
509
- const r = A();
510
- const i = j();
511
- const a = P();
512
- const o = process.platform === "win32";
513
- const s = /\.(?:com|exe)$/i;
514
- const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
515
- function l(e) {
516
- e.file = r(e);
517
- const t = e.file && a(e.file);
518
- if (t) {
519
- e.args.unshift(e.file);
520
- e.command = t;
521
- return r(e);
264
+ n = openSync(i, "r");
265
+ readSync(n, t, 0, e, 0);
266
+ } catch {} finally {
267
+ if (n !== null) closeSync(n);
522
268
  }
523
- return e.file;
524
- }
525
- function u(e) {
526
- if (!o) return e;
527
- const t = l(e);
528
- const r = !s.test(t);
529
- if (e.options.forceShell || r) {
530
- const r = c.test(t);
531
- e.command = n.normalize(e.command);
532
- e.command = i.command(e.command);
533
- e.args = e.args.map((e) => i.argument(e, r));
534
- e.args = [
535
- "/d",
536
- "/s",
537
- "/c",
538
- `"${[e.command].concat(e.args).join(" ")}"`
539
- ];
540
- e.command = process.env.comspec || "cmd.exe";
541
- e.options.windowsVerbatimArguments = true;
269
+ const o = t.toString().match(S);
270
+ if (o !== null) {
271
+ const e = o[1].trim();
272
+ const t = e.indexOf(" ");
273
+ const n = t !== -1 ? e.slice(0, t) : e;
274
+ const i = t !== -1 ? e.slice(t + 1) : "";
275
+ const s = basename(n);
276
+ a = s === "env" ? i || null : s;
542
277
  }
543
- return e;
544
278
  }
545
- function d(e, t, n) {
546
- if (t && !Array.isArray(t)) {
547
- n = t;
548
- t = null;
549
- }
550
- t = t ? t.slice(0) : [];
551
- n = Object.assign({}, n);
552
- const r = {
553
- command: e,
554
- args: t,
555
- options: n,
556
- file: void 0,
557
- original: {
558
- command: e,
559
- args: t
560
- }
561
- };
562
- return n.shell ? r : u(r);
563
- }
564
- t.exports = d;
565
- });
566
- var I = h((exports, t) => {
567
- const n = process.platform === "win32";
568
- function r(e, t) {
569
- return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
570
- code: "ENOENT",
571
- errno: "ENOENT",
572
- syscall: `${t} ${e.command}`,
573
- path: e.command,
574
- spawnargs: e.args
279
+ if (a !== null && i !== null) {
280
+ t = [i, ...t];
281
+ e = a;
282
+ i = O(e, n);
283
+ }
284
+ if (i === null || !C.test(i)) {
285
+ const r = i !== null && w.test(i);
286
+ e = normalize(e);
287
+ e = e.replace(x, "^$1");
288
+ t = t.map((e) => {
289
+ e = e.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
290
+ e = e.replace(/(?=(\\+?)?)\1$/, "$1$1");
291
+ e = `"${e}"`;
292
+ e = e.replace(x, "^$1");
293
+ if (r) e = e.replace(x, "^$1");
294
+ return e;
575
295
  });
576
- }
577
- function i(e, t) {
578
- if (!n) return;
579
- const r = e.emit;
580
- e.emit = function(n, i) {
581
- if (n === "exit") {
582
- const n = a(i, t, "spawn");
583
- if (n) return r.call(e, "error", n);
584
- }
585
- return r.apply(e, arguments);
296
+ t = [
297
+ "/d",
298
+ "/s",
299
+ "/c",
300
+ `"${[e, ...t].join(" ")}"`
301
+ ];
302
+ e = n.env?.comspec ?? "cmd.exe";
303
+ n = {
304
+ ...n,
305
+ windowsVerbatimArguments: true
586
306
  };
587
307
  }
588
- function a(e, t) {
589
- if (n && e === 1 && !t.file) return r(t.original, "spawn");
590
- return null;
591
- }
592
- function o(e, t) {
593
- if (n && e === 1 && !t.file) return r(t.original, "spawnSync");
594
- return null;
595
- }
596
- t.exports = {
597
- hookChildProcess: i,
598
- verifyENOENT: a,
599
- verifyENOENTSync: o,
600
- notFoundError: r
308
+ return {
309
+ command: e,
310
+ args: t,
311
+ options: n
601
312
  };
602
- });
603
- var R = _(h((exports, t) => {
604
- const n = v("child_process");
605
- const r = F();
606
- const i = I();
607
- function a(e, t, a) {
608
- const o = r(e, t, a);
609
- const s = n.spawn(o.command, o.args, o.options);
610
- i.hookChildProcess(s, o);
611
- return s;
612
- }
613
- function o(e, t, a) {
614
- const o = r(e, t, a);
615
- const s = n.spawnSync(o.command, o.args, o.options);
616
- s.error = s.error || i.verifyENOENTSync(s.status, o);
617
- return s;
618
- }
619
- t.exports = a;
620
- t.exports.spawn = a;
621
- t.exports.sync = o;
622
- t.exports._parse = r;
623
- t.exports._enoent = i;
624
- })(), 1);
625
- var z = class extends Error {
313
+ }
314
+ /**
315
+ * Resolves the command to an absolute path if possible.
316
+ * Handles things like traversing PATH and adding extensions from PATHEXT
317
+ */
318
+ function O(e, t) {
319
+ const r = (t.cwd ?? cwd()).toString();
320
+ const a = t.env ?? process.env;
321
+ const o = _(a).value;
322
+ const c = e.includes("/") || e.includes("\\") ? [""] : [r, ...o.split(delimiter)];
323
+ const l = a.PATHEXT ? a.PATHEXT.split(delimiter) : E;
324
+ if (e.includes(".") && l[0] !== "") l.unshift("");
325
+ for (const t of c) {
326
+ const n = resolve(r, t.startsWith("\"") && t.endsWith("\"") && t.length > 1 ? t.slice(1, -1) : t, e);
327
+ for (const e of l) {
328
+ const t = n + e;
329
+ try {
330
+ if (statSync(t).isFile()) return t;
331
+ } catch {}
332
+ }
333
+ }
334
+ return null;
335
+ }
336
+ var k = class extends Error {
626
337
  result;
627
338
  output;
628
339
  get exitCode() {
@@ -634,18 +345,12 @@ var z = class extends Error {
634
345
  this.output = t;
635
346
  }
636
347
  };
637
- const B = {
348
+ const j = {
638
349
  timeout: void 0,
639
350
  persist: false
640
351
  };
641
- const V = { windowsHide: true };
642
- function H(e, t) {
643
- return {
644
- command: normalize(e),
645
- args: t ?? []
646
- };
647
- }
648
- function U(e) {
352
+ const N = { windowsHide: true };
353
+ function P(e) {
649
354
  const t = new AbortController();
650
355
  for (const n of e) {
651
356
  if (n.aborted) {
@@ -659,12 +364,14 @@ function U(e) {
659
364
  }
660
365
  return t.signal;
661
366
  }
662
- async function W(e) {
367
+ async function F(e) {
663
368
  let t = "";
664
- for await (const n of e) t += n.toString();
369
+ try {
370
+ for await (const n of e) t += n.toString();
371
+ } catch {}
665
372
  return t;
666
373
  }
667
- var G = class {
374
+ var I = class {
668
375
  _process;
669
376
  _aborted = false;
670
377
  _options;
@@ -684,7 +391,7 @@ var G = class {
684
391
  }
685
392
  constructor(e, t, n) {
686
393
  this._options = {
687
- ...B,
394
+ ...j,
688
395
  ...n
689
396
  };
690
397
  this._command = e;
@@ -703,7 +410,7 @@ var G = class {
703
410
  return this._process?.killed === true;
704
411
  }
705
412
  pipe(e, t, n) {
706
- return q(e, t, {
413
+ return z(e, t, {
707
414
  ...n,
708
415
  stdin: this
709
416
  });
@@ -714,29 +421,30 @@ var G = class {
714
421
  const t = [];
715
422
  if (this._streamErr) t.push(this._streamErr);
716
423
  if (this._streamOut) t.push(this._streamOut);
717
- const n = w(t);
718
- const r = c.createInterface({ input: n });
424
+ const n = b(t);
425
+ const r = u.createInterface({ input: n });
719
426
  for await (const e of r) yield e.toString();
720
427
  await this._processClosed;
721
428
  e.removeAllListeners();
722
429
  if (this._thrownError) throw this._thrownError;
723
- if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);
430
+ if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new k(this);
724
431
  }
725
432
  async _waitForOutput() {
726
433
  const e = this._process;
727
434
  if (!e) throw new Error("No process was started");
728
- const [t, n] = await Promise.all([this._streamOut ? W(this._streamOut) : "", this._streamErr ? W(this._streamErr) : ""]);
435
+ const [t, n] = await Promise.all([this._streamOut ? F(this._streamOut) : "", this._streamErr ? F(this._streamErr) : ""]);
729
436
  await this._processClosed;
730
- if (this._options?.stdin) await this._options.stdin;
437
+ const { stdin: r } = this._options;
438
+ if (r && typeof r !== "string") await r;
731
439
  e.removeAllListeners();
732
440
  if (this._thrownError) throw this._thrownError;
733
- const r = {
441
+ const i = {
734
442
  stderr: n,
735
443
  stdout: t,
736
444
  exitCode: this.exitCode
737
445
  };
738
- if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r);
739
- return r;
446
+ if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new k(this, i);
447
+ return i;
740
448
  }
741
449
  then(e, t) {
742
450
  return this._waitForOutput().then(e, t);
@@ -744,30 +452,30 @@ var G = class {
744
452
  _streamOut;
745
453
  _streamErr;
746
454
  spawn() {
747
- const e = cwd();
748
- const n = this._options;
749
- const r = {
750
- ...V,
751
- ...n.nodeOptions
455
+ const t = cwd();
456
+ const r = this._options;
457
+ const i = {
458
+ ...N,
459
+ ...r.nodeOptions
752
460
  };
753
- const i = [];
461
+ const a = [];
754
462
  this._resetState();
755
- if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
756
- if (n.signal !== void 0) i.push(n.signal);
757
- if (n.persist === true) r.detached = true;
758
- if (i.length > 0) r.signal = U(i);
759
- r.env = C(e, r.env);
760
- const { command: a, args: s } = H(this._command, this._args);
761
- const c = (0, R._parse)(a, s, r);
762
- const l = spawn(c.command, c.args, c.options);
763
- if (l.stderr) this._streamErr = l.stderr;
764
- if (l.stdout) this._streamOut = l.stdout;
765
- this._process = l;
766
- l.once("error", this._onError);
767
- l.once("close", this._onClose);
768
- if (n.stdin !== void 0 && l.stdin && n.stdin.process) {
769
- const { stdout: e } = n.stdin.process;
770
- if (e) e.pipe(l.stdin);
463
+ if (r.timeout !== void 0) a.push(AbortSignal.timeout(r.timeout));
464
+ if (r.signal !== void 0) a.push(r.signal);
465
+ if (r.persist === true) i.detached = true;
466
+ if (a.length > 0) i.signal = P(a);
467
+ i.env = y(t, i.env, r.nodePath);
468
+ const o = D(this._command, this._args, i);
469
+ const s = spawn(o.command, o.args, o.options);
470
+ if (s.stderr) this._streamErr = s.stderr;
471
+ if (s.stdout) this._streamOut = s.stdout;
472
+ this._process = s;
473
+ s.once("error", this._onError);
474
+ s.once("close", this._onClose);
475
+ if (s.stdin) {
476
+ const { stdin: e } = r;
477
+ if (typeof e === "string") s.stdin.end(e);
478
+ else e?.process?.stdout?.pipe(s.stdin);
771
479
  }
772
480
  }
773
481
  _resetState() {
@@ -788,12 +496,12 @@ var G = class {
788
496
  if (this._resolveClose) this._resolveClose();
789
497
  };
790
498
  };
791
- const K = (e, t, n) => {
792
- const r = new G(e, t, n);
499
+ const R = (e, t, n) => {
500
+ const r = new I(e, t, n);
793
501
  r.spawn();
794
502
  return r;
795
503
  };
796
- const q = K;
504
+ const z = R;
797
505
  //#endregion
798
506
  //#region node_modules/.pnpm/@antfu+install-pkg@1.1.0/node_modules/@antfu/install-pkg/dist/index.js
799
507
  async function detectPackageManager(cwd = process$1.cwd()) {
@@ -821,7 +529,7 @@ async function installPackage(names, options = {}) {
821
529
  );
822
530
  if (existsSync(resolve(options.cwd ?? process$1.cwd(), "pnpm-workspace.yaml"))) args.unshift("-w");
823
531
  }
824
- return K(agent, [
532
+ return R(agent, [
825
533
  agent === "yarn" ? "add" : "install",
826
534
  options.dev ? "-D" : "",
827
535
  ...args,
@@ -875,7 +583,7 @@ async function tryInstallPkg(name, autoInstall) {
875
583
  */
876
584
  const own$1 = {}.hasOwnProperty;
877
585
  const classRegExp = /^([A-Z][a-z\d]*)+$/;
878
- const kTypes = new Set([
586
+ const kTypes = /* @__PURE__ */ new Set([
879
587
  "string",
880
588
  "function",
881
589
  "number",
@@ -10,6 +10,6 @@ var __exportAll = (all, no_symbols) => {
10
10
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
11
11
  return target;
12
12
  };
13
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
13
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
14
14
  //#endregion
15
15
  export { __require as n, __exportAll as t };
@@ -1,4 +1,4 @@
1
- import { r as handler, t as colorResolver } from "./utils-BtCNpQqm-BMsPT3mH.mjs";
1
+ import { r as handler, t as colorResolver } from "./utils-BtCNpQqm-Bygqfcj5.mjs";
2
2
  //#region src/presets/scrollbar/index.ts
3
3
  const defaultOption = {
4
4
  scrollbarWidth: "8px",
@@ -40,7 +40,7 @@ async function transformAlias({ code, uno, options = {} }) {
40
40
  }
41
41
  if (item[1] === keep.prefix) {
42
42
  result = `${item[2]} ${result}`;
43
- if (keep.block) uno.config.blocklist = [...new Set([...uno.config.blocklist, item[2]])];
43
+ if (keep.block) uno.config.blocklist = [.../* @__PURE__ */ new Set([...uno.config.blocklist, item[2]])];
44
44
  }
45
45
  code.overwrite(item.index, item.index + item[0].length, result);
46
46
  }
@@ -1,6 +1,6 @@
1
- import { a as escapeSelector, l as toArray } from "./dist-BSedd5SE.mjs";
2
- import { a as dist_exports, c as parseCssColor, i as createValueHandler, n as colorOpacityToString, o as getStringComponent, r as colorToString, s as getStringComponents } from "./dist-C9X3OQLP.mjs";
3
- //#region node_modules/.pnpm/@unocss+preset-mini@66.7.0/node_modules/@unocss/preset-mini/dist/chunk-D1SwGrFN.mjs
1
+ import { a as escapeSelector, l as toArray } from "./dist-aKOzxsNl.mjs";
2
+ import { a as dist_exports, c as parseCssColor, i as createValueHandler, n as colorOpacityToString, o as getStringComponent, r as colorToString, s as getStringComponents } from "./dist-CRklVSbu.mjs";
3
+ //#region node_modules/.pnpm/@unocss+preset-mini@66.7.2/node_modules/@unocss/preset-mini/dist/chunk-D1SwGrFN.mjs
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -26,7 +26,7 @@ var __copyProps = (to, from, except, desc) => {
26
26
  };
27
27
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
28
28
  //#endregion
29
- //#region node_modules/.pnpm/@unocss+preset-mini@66.7.0/node_modules/@unocss/preset-mini/dist/utils-BtCNpQqm.mjs
29
+ //#region node_modules/.pnpm/@unocss+preset-mini@66.7.2/node_modules/@unocss/preset-mini/dist/utils-BtCNpQqm.mjs
30
30
  const directionMap = {
31
31
  "l": ["-left"],
32
32
  "r": ["-right"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/unocss-preset",
3
3
  "type": "module",
4
- "version": "1.47.0",
4
+ "version": "1.48.0",
5
5
  "description": "Opinionated UnoCSS preset",
6
6
  "author": "praburangki<https://github.com/praburangki>",
7
7
  "license": "MIT",
@@ -41,42 +41,42 @@
41
41
  "dist"
42
42
  ],
43
43
  "peerDependencies": {
44
- "@vinicunca/perkakas": "^1.15.0",
45
- "unocss": "66.7.0"
44
+ "@vinicunca/perkakas": "^1.16.0",
45
+ "unocss": "66.7.2"
46
46
  },
47
47
  "publishConfig": {
48
48
  "registry": "https://registry.npmjs.org/"
49
49
  },
50
50
  "devDependencies": {
51
- "@types/node": "^24.12.4",
52
- "@unocss/preset-icons": "66.7.0",
53
- "@unocss/preset-mini": "66.7.0",
54
- "@unocss/preset-typography": "66.7.0",
55
- "@unocss/preset-web-fonts": "66.7.0",
56
- "@unocss/preset-wind4": "66.7.0",
57
- "@unocss/transformer-directives": "66.7.0",
58
- "@unocss/transformer-variant-group": "66.7.0",
51
+ "@types/node": "^26.0.1",
52
+ "@unocss/preset-icons": "66.7.2",
53
+ "@unocss/preset-mini": "66.7.2",
54
+ "@unocss/preset-typography": "66.7.2",
55
+ "@unocss/preset-web-fonts": "66.7.2",
56
+ "@unocss/preset-wind4": "66.7.2",
57
+ "@unocss/transformer-directives": "66.7.2",
58
+ "@unocss/transformer-variant-group": "66.7.2",
59
59
  "@vinicunca/eslint-config": "5.2.0",
60
- "@vinicunca/perkakas": "^1.15.0",
60
+ "@vinicunca/perkakas": "^1.16.0",
61
61
  "bumpp": "^11.1.0",
62
62
  "culori": "^4.0.2",
63
63
  "defu": "^6.1.7",
64
- "eslint": "^10.4.0",
65
- "lint-staged": "^16.4.0",
64
+ "eslint": "^10.5.0",
65
+ "lint-staged": "^17.0.8",
66
66
  "magic-string": "^0.30.21",
67
67
  "postcss": "^8.5.15",
68
68
  "postcss-js": "^5.1.0",
69
- "prettier": "^3.8.3",
69
+ "prettier": "^3.8.4",
70
70
  "simple-git-hooks": "^2.13.1",
71
- "tsdown": "^0.22.1",
71
+ "tsdown": "^0.22.3",
72
72
  "typescript": "^6.0.3",
73
- "unocss": "66.7.0",
74
- "vite": "^7.3.3",
75
- "vitest": "^4.1.7",
76
- "@vinicunca/unocss-preset": "1.47.0"
73
+ "unocss": "66.7.2",
74
+ "vite": "^8.1.0",
75
+ "vitest": "^4.1.9",
76
+ "@vinicunca/unocss-preset": "1.48.0"
77
77
  },
78
78
  "simple-git-hooks": {
79
- "pre-commit": "npx lint-staged"
79
+ "pre-commit": "pnpx lint-staged"
80
80
  },
81
81
  "lint-staged": {
82
82
  "*.{js,ts,tsx,vue,md}": [