@forsakringskassan/docs-generator 2.22.0 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/compile-example.js +14 -5
  2. package/dist/compile-example.js.map +1 -1
  3. package/dist/{create-markdown-renderer-CgqU8rql.js → create-markdown-renderer-wbIE-KQj.js} +11 -3
  4. package/dist/create-markdown-renderer-wbIE-KQj.js.map +1 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/index.js +344 -111
  7. package/dist/index.js.map +1 -1
  8. package/dist/markdown.d.ts +5 -0
  9. package/dist/markdown.js +4 -3
  10. package/dist/markdown.js.map +1 -1
  11. package/dist/runtime.js +2541 -1991
  12. package/dist/style/core.css +75 -5
  13. package/dist/style/index.css +81 -10
  14. package/dist/style/site.css +6 -5
  15. package/dist/tsdoc-metadata.json +1 -1
  16. package/dist/{vendor-BUiT5f0C.js → vendor-DQQ31U4v.js} +1178 -46
  17. package/dist/vendor-DQQ31U4v.js.map +1 -0
  18. package/dist/{vue3-CLY8kH6A.js → vue3-BQVQQ2Vn.js} +15 -8
  19. package/dist/vue3-BQVQQ2Vn.js.map +1 -0
  20. package/package.json +5 -1
  21. package/templates/api.class.template.html +1 -0
  22. package/templates/api.composable.template.html +1 -0
  23. package/templates/api.constant.template.html +1 -0
  24. package/templates/api.enum.template.html +1 -0
  25. package/templates/api.function.template.html +1 -0
  26. package/templates/api.interface.template.html +1 -0
  27. package/templates/api.method.template.html +1 -0
  28. package/templates/api.template.html +1 -0
  29. package/templates/api.type.template.html +1 -0
  30. package/templates/base.template.html +1 -1
  31. package/templates/macro/menu.html +3 -0
  32. package/templates/partials/footer.html +9 -3
  33. package/dist/create-markdown-renderer-CgqU8rql.js.map +0 -1
  34. package/dist/vendor-BUiT5f0C.js.map +0 -1
  35. package/dist/vue3-CLY8kH6A.js.map +0 -1
@@ -2,37 +2,39 @@
2
2
 
3
3
  var node_url = require('node:url');
4
4
  var path$1 = require('node:path');
5
- var require$$0 = require('fs');
5
+ var require$$0$1 = require('fs');
6
6
  var fs$2 = require('node:fs');
7
7
  var fs$1 = require('node:fs/promises');
8
8
  var node_events = require('node:events');
9
9
  var Stream = require('node:stream');
10
10
  var node_string_decoder = require('node:string_decoder');
11
- var require$$0$1 = require('@vue/compiler-sfc');
11
+ var require$$0$2 = require('@vue/compiler-sfc');
12
12
  var require$$1 = require('typescript');
13
- var require$$0$2 = require('constants');
14
- var require$$0$3 = require('stream');
13
+ var require$$0$3 = require('constants');
14
+ var require$$0$4 = require('stream');
15
15
  var require$$1$1 = require('util');
16
16
  var require$$5 = require('assert');
17
17
  var sysPath = require('path');
18
- var require$$0$4 = require('readline');
18
+ var node_module = require('node:module');
19
+ var require$$0$5 = require('readline');
19
20
  var require$$3 = require('events');
20
21
  var process$1 = require('node:process');
21
22
  var util = require('node:util');
22
23
  var node_child_process = require('node:child_process');
23
24
  var promises = require('node:stream/promises');
24
25
  var promises$1 = require('fs/promises');
25
- var require$$0$5 = require('os');
26
+ var require$$0$6 = require('os');
26
27
  var require$$1$5 = require('http');
27
28
  var require$$2$2 = require('https');
28
29
  var require$$2 = require('url');
29
- var require$$0$6 = require('buffer');
30
+ var require$$0$7 = require('buffer');
30
31
  var require$$1$2 = require('crypto');
31
32
  var require$$1$3 = require('net');
32
33
  var require$$2$1 = require('tls');
33
34
  var require$$1$4 = require('tty');
34
- var require$$0$7 = require('querystring');
35
+ var require$$0$8 = require('querystring');
35
36
 
37
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
36
38
  function _interopNamespaceDefault(e) {
37
39
  var n = Object.create(null);
38
40
  if (e) {
@@ -1430,7 +1432,7 @@ function normalizeReference (str) {
1430
1432
  // so plugins won't have to depend on them explicitly, which reduces their
1431
1433
  // bundled size (e.g. a browser build).
1432
1434
  //
1433
- const lib$2 = { mdurl, ucmicro };
1435
+ const lib$3 = { mdurl, ucmicro };
1434
1436
 
1435
1437
  var utils$3 = /*#__PURE__*/Object.freeze({
1436
1438
  __proto__: null,
@@ -1446,7 +1448,7 @@ var utils$3 = /*#__PURE__*/Object.freeze({
1446
1448
  isString: isString$1,
1447
1449
  isValidEntityCode: isValidEntityCode,
1448
1450
  isWhiteSpace: isWhiteSpace,
1449
- lib: lib$2,
1451
+ lib: lib$3,
1450
1452
  normalizeReference: normalizeReference,
1451
1453
  unescapeAll: unescapeAll,
1452
1454
  unescapeMd: unescapeMd
@@ -13047,12 +13049,12 @@ class Minipass extends node_events.EventEmitter {
13047
13049
  }
13048
13050
  }
13049
13051
 
13050
- const realpathSync = require$$0.realpathSync.native;
13052
+ const realpathSync = require$$0$1.realpathSync.native;
13051
13053
  const defaultFS = {
13052
- lstatSync: require$$0.lstatSync,
13053
- readdir: require$$0.readdir,
13054
- readdirSync: require$$0.readdirSync,
13055
- readlinkSync: require$$0.readlinkSync,
13054
+ lstatSync: require$$0$1.lstatSync,
13055
+ readdir: require$$0$1.readdir,
13056
+ readdirSync: require$$0$1.readdirSync,
13057
+ readlinkSync: require$$0$1.readlinkSync,
13056
13058
  realpathSync,
13057
13059
  promises: {
13058
13060
  lstat: fs$1.lstat,
@@ -16337,7 +16339,7 @@ function requireRegisterTs () {
16337
16339
  if (hasRequiredRegisterTs) return registerTs;
16338
16340
  hasRequiredRegisterTs = 1;
16339
16341
  if (typeof commonjsRequire !== 'undefined') {
16340
- require$$0$1.registerTS(() => require$$1);
16342
+ require$$0$2.registerTS(() => require$$1);
16341
16343
  }
16342
16344
  return registerTs;
16343
16345
  }
@@ -20772,6 +20774,487 @@ const closest = (str, arr) => {
20772
20774
  return arr[min_index];
20773
20775
  };
20774
20776
 
20777
+ var ciInfo = {};
20778
+
20779
+ var require$$0 = [
20780
+ {
20781
+ name: "Agola CI",
20782
+ constant: "AGOLA",
20783
+ env: "AGOLA_GIT_REF",
20784
+ pr: "AGOLA_PULL_REQUEST_ID"
20785
+ },
20786
+ {
20787
+ name: "Appcircle",
20788
+ constant: "APPCIRCLE",
20789
+ env: "AC_APPCIRCLE",
20790
+ pr: {
20791
+ env: "AC_GIT_PR",
20792
+ ne: "false"
20793
+ }
20794
+ },
20795
+ {
20796
+ name: "AppVeyor",
20797
+ constant: "APPVEYOR",
20798
+ env: "APPVEYOR",
20799
+ pr: "APPVEYOR_PULL_REQUEST_NUMBER"
20800
+ },
20801
+ {
20802
+ name: "AWS CodeBuild",
20803
+ constant: "CODEBUILD",
20804
+ env: "CODEBUILD_BUILD_ARN",
20805
+ pr: {
20806
+ env: "CODEBUILD_WEBHOOK_EVENT",
20807
+ any: [
20808
+ "PULL_REQUEST_CREATED",
20809
+ "PULL_REQUEST_UPDATED",
20810
+ "PULL_REQUEST_REOPENED"
20811
+ ]
20812
+ }
20813
+ },
20814
+ {
20815
+ name: "Azure Pipelines",
20816
+ constant: "AZURE_PIPELINES",
20817
+ env: "TF_BUILD",
20818
+ pr: {
20819
+ BUILD_REASON: "PullRequest"
20820
+ }
20821
+ },
20822
+ {
20823
+ name: "Bamboo",
20824
+ constant: "BAMBOO",
20825
+ env: "bamboo_planKey"
20826
+ },
20827
+ {
20828
+ name: "Bitbucket Pipelines",
20829
+ constant: "BITBUCKET",
20830
+ env: "BITBUCKET_COMMIT",
20831
+ pr: "BITBUCKET_PR_ID"
20832
+ },
20833
+ {
20834
+ name: "Bitrise",
20835
+ constant: "BITRISE",
20836
+ env: "BITRISE_IO",
20837
+ pr: "BITRISE_PULL_REQUEST"
20838
+ },
20839
+ {
20840
+ name: "Buddy",
20841
+ constant: "BUDDY",
20842
+ env: "BUDDY_WORKSPACE_ID",
20843
+ pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
20844
+ },
20845
+ {
20846
+ name: "Buildkite",
20847
+ constant: "BUILDKITE",
20848
+ env: "BUILDKITE",
20849
+ pr: {
20850
+ env: "BUILDKITE_PULL_REQUEST",
20851
+ ne: "false"
20852
+ }
20853
+ },
20854
+ {
20855
+ name: "CircleCI",
20856
+ constant: "CIRCLE",
20857
+ env: "CIRCLECI",
20858
+ pr: "CIRCLE_PULL_REQUEST"
20859
+ },
20860
+ {
20861
+ name: "Cirrus CI",
20862
+ constant: "CIRRUS",
20863
+ env: "CIRRUS_CI",
20864
+ pr: "CIRRUS_PR"
20865
+ },
20866
+ {
20867
+ name: "Cloudflare Pages",
20868
+ constant: "CLOUDFLARE_PAGES",
20869
+ env: "CF_PAGES"
20870
+ },
20871
+ {
20872
+ name: "Codefresh",
20873
+ constant: "CODEFRESH",
20874
+ env: "CF_BUILD_ID",
20875
+ pr: {
20876
+ any: [
20877
+ "CF_PULL_REQUEST_NUMBER",
20878
+ "CF_PULL_REQUEST_ID"
20879
+ ]
20880
+ }
20881
+ },
20882
+ {
20883
+ name: "Codemagic",
20884
+ constant: "CODEMAGIC",
20885
+ env: "CM_BUILD_ID",
20886
+ pr: "CM_PULL_REQUEST"
20887
+ },
20888
+ {
20889
+ name: "Codeship",
20890
+ constant: "CODESHIP",
20891
+ env: {
20892
+ CI_NAME: "codeship"
20893
+ }
20894
+ },
20895
+ {
20896
+ name: "Drone",
20897
+ constant: "DRONE",
20898
+ env: "DRONE",
20899
+ pr: {
20900
+ DRONE_BUILD_EVENT: "pull_request"
20901
+ }
20902
+ },
20903
+ {
20904
+ name: "dsari",
20905
+ constant: "DSARI",
20906
+ env: "DSARI"
20907
+ },
20908
+ {
20909
+ name: "Earthly",
20910
+ constant: "EARTHLY",
20911
+ env: "EARTHLY_CI"
20912
+ },
20913
+ {
20914
+ name: "Expo Application Services",
20915
+ constant: "EAS",
20916
+ env: "EAS_BUILD"
20917
+ },
20918
+ {
20919
+ name: "Gerrit",
20920
+ constant: "GERRIT",
20921
+ env: "GERRIT_PROJECT"
20922
+ },
20923
+ {
20924
+ name: "Gitea Actions",
20925
+ constant: "GITEA_ACTIONS",
20926
+ env: "GITEA_ACTIONS"
20927
+ },
20928
+ {
20929
+ name: "GitHub Actions",
20930
+ constant: "GITHUB_ACTIONS",
20931
+ env: "GITHUB_ACTIONS",
20932
+ pr: {
20933
+ GITHUB_EVENT_NAME: "pull_request"
20934
+ }
20935
+ },
20936
+ {
20937
+ name: "GitLab CI",
20938
+ constant: "GITLAB",
20939
+ env: "GITLAB_CI",
20940
+ pr: "CI_MERGE_REQUEST_ID"
20941
+ },
20942
+ {
20943
+ name: "GoCD",
20944
+ constant: "GOCD",
20945
+ env: "GO_PIPELINE_LABEL"
20946
+ },
20947
+ {
20948
+ name: "Google Cloud Build",
20949
+ constant: "GOOGLE_CLOUD_BUILD",
20950
+ env: "BUILDER_OUTPUT"
20951
+ },
20952
+ {
20953
+ name: "Harness CI",
20954
+ constant: "HARNESS",
20955
+ env: "HARNESS_BUILD_ID"
20956
+ },
20957
+ {
20958
+ name: "Heroku",
20959
+ constant: "HEROKU",
20960
+ env: {
20961
+ env: "NODE",
20962
+ includes: "/app/.heroku/node/bin/node"
20963
+ }
20964
+ },
20965
+ {
20966
+ name: "Hudson",
20967
+ constant: "HUDSON",
20968
+ env: "HUDSON_URL"
20969
+ },
20970
+ {
20971
+ name: "Jenkins",
20972
+ constant: "JENKINS",
20973
+ env: [
20974
+ "JENKINS_URL",
20975
+ "BUILD_ID"
20976
+ ],
20977
+ pr: {
20978
+ any: [
20979
+ "ghprbPullId",
20980
+ "CHANGE_ID"
20981
+ ]
20982
+ }
20983
+ },
20984
+ {
20985
+ name: "LayerCI",
20986
+ constant: "LAYERCI",
20987
+ env: "LAYERCI",
20988
+ pr: "LAYERCI_PULL_REQUEST"
20989
+ },
20990
+ {
20991
+ name: "Magnum CI",
20992
+ constant: "MAGNUM",
20993
+ env: "MAGNUM"
20994
+ },
20995
+ {
20996
+ name: "Netlify CI",
20997
+ constant: "NETLIFY",
20998
+ env: "NETLIFY",
20999
+ pr: {
21000
+ env: "PULL_REQUEST",
21001
+ ne: "false"
21002
+ }
21003
+ },
21004
+ {
21005
+ name: "Nevercode",
21006
+ constant: "NEVERCODE",
21007
+ env: "NEVERCODE",
21008
+ pr: {
21009
+ env: "NEVERCODE_PULL_REQUEST",
21010
+ ne: "false"
21011
+ }
21012
+ },
21013
+ {
21014
+ name: "Prow",
21015
+ constant: "PROW",
21016
+ env: "PROW_JOB_ID"
21017
+ },
21018
+ {
21019
+ name: "ReleaseHub",
21020
+ constant: "RELEASEHUB",
21021
+ env: "RELEASE_BUILD_ID"
21022
+ },
21023
+ {
21024
+ name: "Render",
21025
+ constant: "RENDER",
21026
+ env: "RENDER",
21027
+ pr: {
21028
+ IS_PULL_REQUEST: "true"
21029
+ }
21030
+ },
21031
+ {
21032
+ name: "Sail CI",
21033
+ constant: "SAIL",
21034
+ env: "SAILCI",
21035
+ pr: "SAIL_PULL_REQUEST_NUMBER"
21036
+ },
21037
+ {
21038
+ name: "Screwdriver",
21039
+ constant: "SCREWDRIVER",
21040
+ env: "SCREWDRIVER",
21041
+ pr: {
21042
+ env: "SD_PULL_REQUEST",
21043
+ ne: "false"
21044
+ }
21045
+ },
21046
+ {
21047
+ name: "Semaphore",
21048
+ constant: "SEMAPHORE",
21049
+ env: "SEMAPHORE",
21050
+ pr: "PULL_REQUEST_NUMBER"
21051
+ },
21052
+ {
21053
+ name: "Sourcehut",
21054
+ constant: "SOURCEHUT",
21055
+ env: {
21056
+ CI_NAME: "sourcehut"
21057
+ }
21058
+ },
21059
+ {
21060
+ name: "Strider CD",
21061
+ constant: "STRIDER",
21062
+ env: "STRIDER"
21063
+ },
21064
+ {
21065
+ name: "TaskCluster",
21066
+ constant: "TASKCLUSTER",
21067
+ env: [
21068
+ "TASK_ID",
21069
+ "RUN_ID"
21070
+ ]
21071
+ },
21072
+ {
21073
+ name: "TeamCity",
21074
+ constant: "TEAMCITY",
21075
+ env: "TEAMCITY_VERSION"
21076
+ },
21077
+ {
21078
+ name: "Travis CI",
21079
+ constant: "TRAVIS",
21080
+ env: "TRAVIS",
21081
+ pr: {
21082
+ env: "TRAVIS_PULL_REQUEST",
21083
+ ne: "false"
21084
+ }
21085
+ },
21086
+ {
21087
+ name: "Vela",
21088
+ constant: "VELA",
21089
+ env: "VELA",
21090
+ pr: {
21091
+ VELA_PULL_REQUEST: "1"
21092
+ }
21093
+ },
21094
+ {
21095
+ name: "Vercel",
21096
+ constant: "VERCEL",
21097
+ env: {
21098
+ any: [
21099
+ "NOW_BUILDER",
21100
+ "VERCEL"
21101
+ ]
21102
+ },
21103
+ pr: "VERCEL_GIT_PULL_REQUEST_ID"
21104
+ },
21105
+ {
21106
+ name: "Visual Studio App Center",
21107
+ constant: "APPCENTER",
21108
+ env: "APPCENTER_BUILD_ID"
21109
+ },
21110
+ {
21111
+ name: "Woodpecker",
21112
+ constant: "WOODPECKER",
21113
+ env: {
21114
+ CI: "woodpecker"
21115
+ },
21116
+ pr: {
21117
+ CI_BUILD_EVENT: "pull_request"
21118
+ }
21119
+ },
21120
+ {
21121
+ name: "Xcode Cloud",
21122
+ constant: "XCODE_CLOUD",
21123
+ env: "CI_XCODE_PROJECT",
21124
+ pr: "CI_PULL_REQUEST_NUMBER"
21125
+ },
21126
+ {
21127
+ name: "Xcode Server",
21128
+ constant: "XCODE_SERVER",
21129
+ env: "XCS"
21130
+ }
21131
+ ];
21132
+
21133
+ var hasRequiredCiInfo;
21134
+
21135
+ function requireCiInfo () {
21136
+ if (hasRequiredCiInfo) return ciInfo;
21137
+ hasRequiredCiInfo = 1;
21138
+ (function (exports) {
21139
+
21140
+ const vendors = require$$0;
21141
+
21142
+ const env = process.env;
21143
+
21144
+ // Used for testing only
21145
+ Object.defineProperty(exports, '_vendors', {
21146
+ value: vendors.map(function (v) {
21147
+ return v.constant
21148
+ })
21149
+ });
21150
+
21151
+ exports.name = null;
21152
+ exports.isPR = null;
21153
+ exports.id = null;
21154
+
21155
+ vendors.forEach(function (vendor) {
21156
+ const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
21157
+ const isCI = envs.every(function (obj) {
21158
+ return checkEnv(obj)
21159
+ });
21160
+
21161
+ exports[vendor.constant] = isCI;
21162
+
21163
+ if (!isCI) {
21164
+ return
21165
+ }
21166
+
21167
+ exports.name = vendor.name;
21168
+ exports.isPR = checkPR(vendor);
21169
+ exports.id = vendor.constant;
21170
+ });
21171
+
21172
+ exports.isCI = !!(
21173
+ env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'
21174
+ (env.BUILD_ID || // Jenkins, Cloudbees
21175
+ env.BUILD_NUMBER || // Jenkins, TeamCity
21176
+ env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
21177
+ env.CI_APP_ID || // Appflow
21178
+ env.CI_BUILD_ID || // Appflow
21179
+ env.CI_BUILD_NUMBER || // Appflow
21180
+ env.CI_NAME || // Codeship and others
21181
+ env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
21182
+ env.RUN_ID || // TaskCluster, dsari
21183
+ exports.name ||
21184
+ false)
21185
+ );
21186
+
21187
+ function checkEnv (obj) {
21188
+ // "env": "CIRRUS"
21189
+ if (typeof obj === 'string') return !!env[obj]
21190
+
21191
+ // "env": { "env": "NODE", "includes": "/app/.heroku/node/bin/node" }
21192
+ if ('env' in obj) {
21193
+ // Currently there are no other types, uncomment when there are
21194
+ // if ('includes' in obj) {
21195
+ return env[obj.env] && env[obj.env].includes(obj.includes)
21196
+ // }
21197
+ }
21198
+
21199
+ if ('any' in obj) {
21200
+ return obj.any.some(function (k) {
21201
+ return !!env[k]
21202
+ })
21203
+ }
21204
+
21205
+ return Object.keys(obj).every(function (k) {
21206
+ return env[k] === obj[k]
21207
+ })
21208
+ }
21209
+
21210
+ function checkPR (vendor) {
21211
+ switch (typeof vendor.pr) {
21212
+ case 'string':
21213
+ // "pr": "CIRRUS_PR"
21214
+ return !!env[vendor.pr]
21215
+ case 'object':
21216
+ if ('env' in vendor.pr) {
21217
+ if ('any' in vendor.pr) {
21218
+ // "pr": { "env": "CODEBUILD_WEBHOOK_EVENT", "any": ["PULL_REQUEST_CREATED", "PULL_REQUEST_UPDATED"] }
21219
+ return vendor.pr.any.some(function (key) {
21220
+ return env[vendor.pr.env] === key
21221
+ })
21222
+ } else {
21223
+ // "pr": { "env": "BUILDKITE_PULL_REQUEST", "ne": "false" }
21224
+ return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne
21225
+ }
21226
+ } else if ('any' in vendor.pr) {
21227
+ // "pr": { "any": ["ghprbPullId", "CHANGE_ID"] }
21228
+ return vendor.pr.any.some(function (key) {
21229
+ return !!env[key]
21230
+ })
21231
+ } else {
21232
+ // "pr": { "DRONE_BUILD_EVENT": "pull_request" }
21233
+ return checkEnv(vendor.pr)
21234
+ }
21235
+ default:
21236
+ // PR detection not supported for this vendor
21237
+ return null
21238
+ }
21239
+ }
21240
+ } (ciInfo));
21241
+ return ciInfo;
21242
+ }
21243
+
21244
+ var isCi;
21245
+ var hasRequiredIsCi;
21246
+
21247
+ function requireIsCi () {
21248
+ if (hasRequiredIsCi) return isCi;
21249
+ hasRequiredIsCi = 1;
21250
+
21251
+ isCi = requireCiInfo().isCI;
21252
+ return isCi;
21253
+ }
21254
+
21255
+ var isCiExports = requireIsCi();
21256
+ var isCI = /*@__PURE__*/getDefaultExportFromCjs(isCiExports);
21257
+
20775
21258
  var fs = {};
20776
21259
 
20777
21260
  var universalify = {};
@@ -20813,7 +21296,7 @@ var hasRequiredPolyfills;
20813
21296
  function requirePolyfills () {
20814
21297
  if (hasRequiredPolyfills) return polyfills;
20815
21298
  hasRequiredPolyfills = 1;
20816
- var constants = require$$0$2;
21299
+ var constants = require$$0$3;
20817
21300
 
20818
21301
  var origCwd = process.cwd;
20819
21302
  var cwd = null;
@@ -21177,7 +21660,7 @@ var hasRequiredLegacyStreams;
21177
21660
  function requireLegacyStreams () {
21178
21661
  if (hasRequiredLegacyStreams) return legacyStreams;
21179
21662
  hasRequiredLegacyStreams = 1;
21180
- var Stream = require$$0$3.Stream;
21663
+ var Stream = require$$0$4.Stream;
21181
21664
 
21182
21665
  legacyStreams = legacy;
21183
21666
 
@@ -21335,7 +21818,7 @@ var hasRequiredGracefulFs;
21335
21818
  function requireGracefulFs () {
21336
21819
  if (hasRequiredGracefulFs) return gracefulFs;
21337
21820
  hasRequiredGracefulFs = 1;
21338
- var fs = require$$0;
21821
+ var fs = require$$0$1;
21339
21822
  var polyfills = requirePolyfills();
21340
21823
  var legacy = requireLegacyStreams();
21341
21824
  var clone = requireClone();
@@ -23146,7 +23629,7 @@ function requireJsonfile$1 () {
23146
23629
  try {
23147
23630
  _fs = requireGracefulFs();
23148
23631
  } catch (_) {
23149
- _fs = require$$0;
23632
+ _fs = require$$0$1;
23150
23633
  }
23151
23634
  const universalify = requireUniversalify();
23152
23635
  const { stringify, stripBom } = requireUtils$1();
@@ -23500,14 +23983,14 @@ function requireMove () {
23500
23983
  return move;
23501
23984
  }
23502
23985
 
23503
- var lib$1;
23504
- var hasRequiredLib$1;
23986
+ var lib$2;
23987
+ var hasRequiredLib$2;
23505
23988
 
23506
- function requireLib$1 () {
23507
- if (hasRequiredLib$1) return lib$1;
23508
- hasRequiredLib$1 = 1;
23989
+ function requireLib$2 () {
23990
+ if (hasRequiredLib$2) return lib$2;
23991
+ hasRequiredLib$2 = 1;
23509
23992
 
23510
- lib$1 = {
23993
+ lib$2 = {
23511
23994
  // Export promiseified graceful-fs:
23512
23995
  ...requireFs(),
23513
23996
  // Export extra methods:
@@ -23521,11 +24004,658 @@ function requireLib$1 () {
23521
24004
  ...requirePathExists(),
23522
24005
  ...requireRemove()
23523
24006
  };
24007
+ return lib$2;
24008
+ }
24009
+
24010
+ var libExports$1 = /*@__PURE__*/ requireLib$2();
24011
+ var fse = /*@__PURE__*/getDefaultExportFromCjs(libExports$1);
24012
+
24013
+ /*!
24014
+ * path-root-regex <https://github.com/jonschlinkert/path-root-regex>
24015
+ *
24016
+ * Copyright (c) 2016, Jon Schlinkert.
24017
+ * Licensed under the MIT License.
24018
+ */
24019
+
24020
+ var pathRootRegex;
24021
+ var hasRequiredPathRootRegex;
24022
+
24023
+ function requirePathRootRegex () {
24024
+ if (hasRequiredPathRootRegex) return pathRootRegex;
24025
+ hasRequiredPathRootRegex = 1;
24026
+
24027
+ pathRootRegex = function() {
24028
+ // Regex is modified from the split device regex in the node.js path module.
24029
+ return /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?/;
24030
+ };
24031
+ return pathRootRegex;
24032
+ }
24033
+
24034
+ /*!
24035
+ * path-root <https://github.com/jonschlinkert/path-root>
24036
+ *
24037
+ * Copyright (c) 2016, Jon Schlinkert.
24038
+ * Licensed under the MIT License.
24039
+ */
24040
+
24041
+ var pathRoot;
24042
+ var hasRequiredPathRoot;
24043
+
24044
+ function requirePathRoot () {
24045
+ if (hasRequiredPathRoot) return pathRoot;
24046
+ hasRequiredPathRoot = 1;
24047
+
24048
+ var pathRootRegex = requirePathRootRegex();
24049
+
24050
+ pathRoot = function(filepath) {
24051
+ if (typeof filepath !== 'string') {
24052
+ throw new TypeError('expected a string');
24053
+ }
24054
+
24055
+ var match = pathRootRegex().exec(filepath);
24056
+ if (match) {
24057
+ return match[0];
24058
+ }
24059
+ };
24060
+ return pathRoot;
24061
+ }
24062
+
24063
+ var rethrowUnlessCode = {};
24064
+
24065
+ var hasRequiredRethrowUnlessCode;
24066
+
24067
+ function requireRethrowUnlessCode () {
24068
+ if (hasRequiredRethrowUnlessCode) return rethrowUnlessCode;
24069
+ hasRequiredRethrowUnlessCode = 1;
24070
+ Object.defineProperty(rethrowUnlessCode, "__esModule", { value: true });
24071
+ function rethrowUnlessCode$1(maybeError, ...codes) {
24072
+ if (maybeError !== null && typeof maybeError === 'object') {
24073
+ const code = maybeError.code;
24074
+ for (const allowed of codes) {
24075
+ if (code === allowed) {
24076
+ return;
24077
+ }
24078
+ }
24079
+ }
24080
+ throw maybeError;
24081
+ }
24082
+ rethrowUnlessCode.default = rethrowUnlessCode$1;
24083
+
24084
+ return rethrowUnlessCode;
24085
+ }
24086
+
24087
+ var shouldPreserveSymlinks;
24088
+ var hasRequiredShouldPreserveSymlinks;
24089
+
24090
+ function requireShouldPreserveSymlinks () {
24091
+ if (hasRequiredShouldPreserveSymlinks) return shouldPreserveSymlinks;
24092
+ hasRequiredShouldPreserveSymlinks = 1;
24093
+ function includes(array, entry) {
24094
+ for (let i = 0; i < array.length; i++) {
24095
+ if (array[i] === entry) {
24096
+ return true;
24097
+ }
24098
+ }
24099
+ return false;
24100
+ }
24101
+ shouldPreserveSymlinks = function (process) {
24102
+ return !!process.env.NODE_PRESERVE_SYMLINKS || includes(process.execArgv, '--preserve-symlinks');
24103
+ };
24104
+
24105
+ return shouldPreserveSymlinks;
24106
+ }
24107
+
24108
+ var resolvePackagePath_1;
24109
+ var hasRequiredResolvePackagePath;
24110
+
24111
+ function requireResolvePackagePath () {
24112
+ if (hasRequiredResolvePackagePath) return resolvePackagePath_1;
24113
+ hasRequiredResolvePackagePath = 1;
24114
+ var __importDefault = (resolvePackagePath_1 && resolvePackagePath_1.__importDefault) || function (mod) {
24115
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24116
+ };
24117
+ // credit goes to https://github.com/davecombs
24118
+ // extracted in part from: https://github.com/stefanpenner/hash-for-dep/blob/15b2ebcf22024ceb2eb7907f8c412ae40f87b15e/lib/resolve-package-path.js#L1
24119
+ //
24120
+ const fs = require$$0$1;
24121
+ const path = sysPath;
24122
+ const pathRoot = requirePathRoot();
24123
+ const rethrow_unless_code_1 = __importDefault(requireRethrowUnlessCode());
24124
+ /*
24125
+ * Define a regex that will match against the 'name' value passed into
24126
+ * resolvePackagePath. The regex corresponds to the following test:
24127
+ * Match any of the following 3 alternatives:
24128
+ *
24129
+ * 1) dot, then optional second dot, then / or nothing i.e. . ./ .. ../ OR
24130
+ * 2) / i.e. / OR
24131
+ * 3) (A-Za-z colon - [optional]), then / or \ i.e. optional drive letter + colon, then / or \
24132
+ *
24133
+ * Basically, the three choices mean "explicitly relative or absolute path, on either
24134
+ * Unix/Linux or Windows"
24135
+ */
24136
+ const ABSOLUTE_OR_RELATIVE_PATH_REGEX = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
24137
+ const shouldPreserveSymlinks = requireShouldPreserveSymlinks();
24138
+ const PRESERVE_SYMLINKS = shouldPreserveSymlinks(process);
24139
+ /*
24140
+ * Resolve the real path for a file. Return null if does not
24141
+ * exist or is not a file or FIFO, return the real path otherwise.
24142
+ *
24143
+ * Cache the result in the passed-in cache for performance,
24144
+ * keyed on the filePath passed in.
24145
+ *
24146
+ * NOTE: Because this is a private method, it does not attempt to normalize
24147
+ * the path passed in - it assumes the caller has done that.
24148
+ *
24149
+ * @private
24150
+ * @method _getRealFilePath
24151
+ * @param {Cache} realFilePathCache the Cache object to cache the real (resolved)
24152
+ * path in, keyed by filePath. See lib/cache.js and lib/cache-group.js
24153
+ * @param {String} filePath the path to the file of interest (which must have
24154
+ * been normalized, but not necessarily resolved to a real path).
24155
+ * @return {String} real path or null
24156
+ */
24157
+ function _getRealFilePath(realFilePathCache, filePath) {
24158
+ if (realFilePathCache.has(filePath)) {
24159
+ return realFilePathCache.get(filePath); // could be null
24160
+ }
24161
+ let realPath = null; // null = 'FILE NOT FOUND'
24162
+ try {
24163
+ const stat = fs.statSync(filePath);
24164
+ // I don't know if Node would handle having the filePath actually
24165
+ // be a FIFO, but as the following is also part of the node-resolution
24166
+ // algorithm in resolve.sync(), we'll do the same check here.
24167
+ if (stat.isFile() || stat.isFIFO()) {
24168
+ if (PRESERVE_SYMLINKS) {
24169
+ realPath = filePath;
24170
+ }
24171
+ else {
24172
+ realPath = fs.realpathSync(filePath);
24173
+ }
24174
+ }
24175
+ }
24176
+ catch (e) {
24177
+ (0, rethrow_unless_code_1.default)(e, 'ENOENT');
24178
+ }
24179
+ realFilePathCache.set(filePath, realPath);
24180
+ return realPath;
24181
+ }
24182
+ /*
24183
+ * Resolve the real path for a directory, return null if does not
24184
+ * exist or is not a directory, return the real path otherwise.
24185
+ *
24186
+ * @param {Cache} realDirectoryPathCache the Cache object to cache the real (resolved)
24187
+ * path in, keyed by directoryPath. See lib/cache.js and lib/cache-group.js
24188
+ * @param {String} directoryPath the path to the directory of interest (which must have
24189
+ * been normalized, but not necessarily resolved to a real path).
24190
+ * @return {String} real path or null
24191
+ */
24192
+ function _getRealDirectoryPath(realDirectoryPathCache, directoryPath) {
24193
+ if (realDirectoryPathCache.has(directoryPath)) {
24194
+ return realDirectoryPathCache.get(directoryPath); // could be null
24195
+ }
24196
+ let realPath = null;
24197
+ try {
24198
+ const stat = fs.statSync(directoryPath);
24199
+ if (stat.isDirectory()) {
24200
+ if (PRESERVE_SYMLINKS) {
24201
+ realPath = directoryPath;
24202
+ }
24203
+ else {
24204
+ realPath = fs.realpathSync(directoryPath);
24205
+ }
24206
+ }
24207
+ }
24208
+ catch (e) {
24209
+ (0, rethrow_unless_code_1.default)(e, 'ENOENT', 'ENOTDIR');
24210
+ }
24211
+ realDirectoryPathCache.set(directoryPath, realPath);
24212
+ return realPath;
24213
+ }
24214
+ /*
24215
+ * Given a package 'name' and starting directory, resolve to a real (existing) file path.
24216
+ *
24217
+ * Do it similar to how it is done in resolve.sync() - travel up the directory hierarchy,
24218
+ * attaching 'node-modules' to each directory and seeing if the directory exists and
24219
+ * has the relevant 'package.json' file we're searching for. It is *much* faster than
24220
+ * resolve.sync(), because we don't test that the requested name is a directory.
24221
+ * This routine assumes that it is only called when we don't already have
24222
+ * the cached entry.
24223
+ *
24224
+ * NOTE: it is valid for 'name' to be an absolute or relative path.
24225
+ * Because this is an internal routine, we'll require that 'dir' be non-empty
24226
+ * if this is called, to make things simpler (see resolvePackagePath).
24227
+ *
24228
+ * @param realFilePathCache the cache containing the real paths corresponding to
24229
+ * various file and directory paths (which may or may not be already resolved).
24230
+ *
24231
+ * @param name the 'name' of the module, i.e. x in require(x), but with
24232
+ * '/package.json' on the end. It is NOT referring to a directory (so we don't
24233
+ * have to do the directory checks that resolve.sync does).
24234
+ * NOTE: because this is an internal routine, for speed it does not check
24235
+ * that '/package.json' is actually the end of the name.
24236
+ *
24237
+ * @param dir the directory (MUST BE non-empty, and valid) to start from, appending the name to the
24238
+ * directory and checking that the file exists. Go up the directory hierarchy from there.
24239
+ * if name is itself an absolute path,
24240
+ *
24241
+ * @result the path to the actual package.json file that's found, or null if not.
24242
+ */
24243
+ function _findPackagePath(realFilePathCache, name, dir) {
24244
+ const fsRoot = pathRoot(dir);
24245
+ let currPath = dir;
24246
+ while (currPath !== fsRoot) {
24247
+ // when testing for 'node_modules', need to allow names like NODE_MODULES,
24248
+ // which can occur with case-insensitive OSes.
24249
+ let endsWithNodeModules = path.basename(currPath).toLowerCase() === 'node_modules';
24250
+ let filePath = path.join(currPath, endsWithNodeModules ? '' : 'node_modules', name);
24251
+ let realPath = _getRealFilePath(realFilePathCache, filePath);
24252
+ if (realPath) {
24253
+ return realPath;
24254
+ }
24255
+ if (endsWithNodeModules) {
24256
+ // go up past the ending node_modules directory so the next dirname
24257
+ // goes up past that (if ending in node_modules, going up just one
24258
+ // directory below will then add 'node_modules' on the next loop and
24259
+ // re-process this same node_modules directory.
24260
+ currPath = path.dirname(currPath);
24261
+ }
24262
+ currPath = path.dirname(currPath);
24263
+ }
24264
+ return null;
24265
+ }
24266
+ /*
24267
+ * Resolve the path to the nearest `package.json` from the given initial search
24268
+ * directory.
24269
+ *
24270
+ * @param {Cache} findUpCache - a cache of memoized results that is
24271
+ * prioritized to avoid I/O.
24272
+ *
24273
+ * @param {string} initialSearchDir - the normalized path to start searching
24274
+ * from.
24275
+ *
24276
+ * @return {string | null} - the deepest directory on the path to root from
24277
+ * `initialSearchDir` that contains a {{package.json}}, or `null` if no such
24278
+ * directory exists.
24279
+ */
24280
+ function _findUpPackagePath(findUpCache, initialSearchDir) {
24281
+ let previous;
24282
+ let dir = initialSearchDir;
24283
+ let maybePackageJsonPath;
24284
+ let result = null;
24285
+ do {
24286
+ if (findUpCache.has(dir)) {
24287
+ result = findUpCache.get(dir);
24288
+ break;
24289
+ }
24290
+ maybePackageJsonPath = path.join(dir, 'package.json');
24291
+ if (fs.existsSync(maybePackageJsonPath)) {
24292
+ result = maybePackageJsonPath;
24293
+ break;
24294
+ }
24295
+ previous = dir;
24296
+ dir = path.dirname(dir);
24297
+ } while (dir !== previous);
24298
+ findUpCache.set(initialSearchDir, result);
24299
+ return result;
24300
+ }
24301
+ /*
24302
+ * Resolve the path to a module's package.json file, if it exists. The
24303
+ * name and dir are as in hashForDep and ModuleEntry.locate.
24304
+ *
24305
+ * @param caches an instance of CacheGroup where information will be cached
24306
+ * during processing.
24307
+ *
24308
+ * @param name the 'name' of the module. The name may also be a path,
24309
+ * either relative or absolute. The path must be to a module DIRECTORY, NOT to the
24310
+ * package.json file in the directory, as we attach 'package.json' here.
24311
+ *
24312
+ * @param dir (optional) the root directory to run the path resolution from.
24313
+ * if dir is not provided, __dirname for this module is used instead.
24314
+ *
24315
+ * @return the realPath corresponding to the module's package.json file, or null
24316
+ * if that file is not found or is not a file.
24317
+ *
24318
+ * Note: 'name' is expected in the format expected for require(x), i.e., it is
24319
+ * resolved using the Node path-normalization rules.
24320
+ */
24321
+ function resolvePackagePath(caches, name, dir) {
24322
+ if (typeof name !== 'string' || name.length === 0) {
24323
+ throw new TypeError("resolvePackagePath: 'name' must be a non-zero-length string.");
24324
+ }
24325
+ // Perform tests similar to those in resolve.sync().
24326
+ let basedir = dir || __dirname;
24327
+ // Ensure that basedir is an absolute path at this point. If it does not refer to
24328
+ // a real directory, go up the path until a real directory is found, or return an error.
24329
+ // BUG!: this will never throw an exception, at least on Unix/Linux. If the path is
24330
+ // relative, path.resolve() will make it absolute by putting the current directory
24331
+ // before it, so it won't fail. If the path is already absolute, / will always be
24332
+ // valid, so again it won't fail.
24333
+ let absoluteStart = path.resolve(basedir);
24334
+ while (_getRealDirectoryPath(caches.REAL_DIRECTORY_PATH, absoluteStart) === null) {
24335
+ absoluteStart = path.dirname(absoluteStart);
24336
+ }
24337
+ if (!absoluteStart) {
24338
+ let error = new TypeError("resolvePackagePath: 'dir' or one of the parent directories in its path must refer to a valid directory.");
24339
+ error.code = 'MODULE_NOT_FOUND';
24340
+ throw error;
24341
+ }
24342
+ if (ABSOLUTE_OR_RELATIVE_PATH_REGEX.test(name)) {
24343
+ let res = path.resolve(absoluteStart, name);
24344
+ return _getRealFilePath(caches.REAL_FILE_PATH, path.join(res, 'package.json'));
24345
+ // XXX Do we need to handle the core(x) case too? Not sure.
24346
+ }
24347
+ else {
24348
+ return _findPackagePath(caches.REAL_FILE_PATH, path.join(name, 'package.json'), absoluteStart);
24349
+ }
24350
+ }
24351
+ resolvePackagePath._findPackagePath = _findPackagePath;
24352
+ resolvePackagePath._findUpPackagePath = _findUpPackagePath;
24353
+ resolvePackagePath._getRealFilePath = _getRealFilePath;
24354
+ resolvePackagePath._getRealDirectoryPath = _getRealDirectoryPath;
24355
+ resolvePackagePath_1 = resolvePackagePath;
24356
+
24357
+ return resolvePackagePath_1;
24358
+ }
24359
+
24360
+ var cache;
24361
+ var hasRequiredCache;
24362
+
24363
+ function requireCache () {
24364
+ if (hasRequiredCache) return cache;
24365
+ hasRequiredCache = 1;
24366
+ function makeCache() {
24367
+ // object with no prototype
24368
+ const cache = Object.create(null);
24369
+ // force the jit to immediately realize this object is a dictionary. This
24370
+ // should prevent the JIT from going wastefully one direction (fast mode)
24371
+ // then going another (dict mode) after
24372
+ cache['_cache'] = 1;
24373
+ delete cache['_cache'];
24374
+ return cache;
24375
+ }
24376
+ cache = class Cache {
24377
+ constructor() {
24378
+ this._store = makeCache();
24379
+ }
24380
+ set(key, value) {
24381
+ return (this._store[key] = value);
24382
+ }
24383
+ get(key) {
24384
+ return this._store[key];
24385
+ }
24386
+ has(key) {
24387
+ return key in this._store;
24388
+ }
24389
+ delete(key) {
24390
+ delete this._store[key];
24391
+ }
24392
+ get size() {
24393
+ return Object.keys(this._store).length;
24394
+ }
24395
+ };
24396
+
24397
+ return cache;
24398
+ }
24399
+
24400
+ var cacheGroup;
24401
+ var hasRequiredCacheGroup;
24402
+
24403
+ function requireCacheGroup () {
24404
+ if (hasRequiredCacheGroup) return cacheGroup;
24405
+ hasRequiredCacheGroup = 1;
24406
+ const Cache = requireCache();
24407
+ cacheGroup = class CacheGroup {
24408
+ constructor() {
24409
+ this.MODULE_ENTRY = new Cache();
24410
+ this.PATH = new Cache();
24411
+ this.REAL_FILE_PATH = new Cache();
24412
+ this.REAL_DIRECTORY_PATH = new Cache();
24413
+ Object.freeze(this);
24414
+ }
24415
+ };
24416
+
24417
+ return cacheGroup;
24418
+ }
24419
+
24420
+ var lib$1;
24421
+ var hasRequiredLib$1;
24422
+
24423
+ function requireLib$1 () {
24424
+ if (hasRequiredLib$1) return lib$1;
24425
+ hasRequiredLib$1 = 1;
24426
+ var __importDefault = (lib$1 && lib$1.__importDefault) || function (mod) {
24427
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24428
+ };
24429
+ const path_1 = __importDefault(sysPath);
24430
+ const resolve_package_path_1 = __importDefault(requireResolvePackagePath());
24431
+ const rethrow_unless_code_1 = __importDefault(requireRethrowUnlessCode());
24432
+ const ALLOWED_ERROR_CODES = [
24433
+ // resolve package error codes
24434
+ 'MODULE_NOT_FOUND',
24435
+ // Yarn PnP Error Codes
24436
+ 'UNDECLARED_DEPENDENCY',
24437
+ 'MISSING_PEER_DEPENDENCY',
24438
+ 'MISSING_DEPENDENCY'
24439
+ ];
24440
+ const CacheGroup = requireCacheGroup();
24441
+ const Cache = requireCache();
24442
+ const getRealFilePath = resolve_package_path_1.default._getRealFilePath;
24443
+ const getRealDirectoryPath = resolve_package_path_1.default._getRealDirectoryPath;
24444
+ const __findUpPackagePath = resolve_package_path_1.default._findUpPackagePath;
24445
+ let CACHE = new CacheGroup();
24446
+ let FIND_UP_CACHE = new Cache();
24447
+ let pnp;
24448
+ try {
24449
+ // eslint-disable-next-line node/no-missing-require
24450
+ pnp = require('pnpapi');
24451
+ }
24452
+ catch (error) {
24453
+ // not in Yarn PnP; not a problem
24454
+ }
24455
+ /**
24456
+ * Search each directory in the absolute path `baseDir`, from leaf to root, for
24457
+ * a `package.json`, and return the first match, or `null` if no `package.json`
24458
+ * was found.
24459
+ *
24460
+ * @public
24461
+ * @param {string} baseDir - an absolute path in which to search for a `package.json`
24462
+ * @param {CacheGroup|boolean} [_cache] (optional)
24463
+ * * if true: will choose the default global cache
24464
+ * * if false: will not cache
24465
+ * * if undefined or omitted, will choose the default global cache
24466
+ * * otherwise we assume the argument is an external cache of the form provided by resolve-package-path/lib/cache-group.js
24467
+ *
24468
+ * @return {string|null} a full path to the resolved package.json if found or null if not
24469
+ */
24470
+ function _findUpPackagePath(baseDir, _cache) {
24471
+ let cache;
24472
+ if (_cache === undefined || _cache === null || _cache === true) {
24473
+ // if no cache specified, or if cache is true then use the global cache
24474
+ cache = FIND_UP_CACHE;
24475
+ }
24476
+ else if (_cache === false) {
24477
+ // if cache is explicity false, create a throw-away cache;
24478
+ cache = new Cache();
24479
+ }
24480
+ else {
24481
+ // otherwise, assume the user has provided an alternative cache for the following form:
24482
+ // provided by resolve-package-path/lib/cache-group.js
24483
+ cache = _cache;
24484
+ }
24485
+ let absoluteStart = path_1.default.resolve(baseDir);
24486
+ return __findUpPackagePath(cache, absoluteStart);
24487
+ }
24488
+ function resolvePackagePath(target, baseDir, _cache) {
24489
+ let cache;
24490
+ if (_cache === undefined || _cache === null || _cache === true) {
24491
+ // if no cache specified, or if cache is true then use the global cache
24492
+ cache = CACHE;
24493
+ }
24494
+ else if (_cache === false) {
24495
+ // if cache is explicity false, create a throw-away cache;
24496
+ cache = new CacheGroup();
24497
+ }
24498
+ else {
24499
+ // otherwise, assume the user has provided an alternative cache for the following form:
24500
+ // provided by resolve-package-path/lib/cache-group.js
24501
+ cache = _cache;
24502
+ }
24503
+ if (baseDir.charAt(baseDir.length - 1) !== path_1.default.sep) {
24504
+ baseDir = `${baseDir}${path_1.default.sep}`;
24505
+ }
24506
+ const key = target + '\x00' + baseDir;
24507
+ let pkgPath;
24508
+ if (cache.PATH.has(key)) {
24509
+ pkgPath = cache.PATH.get(key);
24510
+ }
24511
+ else {
24512
+ try {
24513
+ // the custom `pnp` code here can be removed when yarn 1.13 is the
24514
+ // current release. This is due to Yarn 1.13 and resolve interoperating
24515
+ // together seamlessly.
24516
+ pkgPath = pnp
24517
+ ? pnp.resolveToUnqualified(target + '/package.json', baseDir)
24518
+ : (0, resolve_package_path_1.default)(cache, target, baseDir);
24519
+ }
24520
+ catch (e) {
24521
+ (0, rethrow_unless_code_1.default)(e, ...ALLOWED_ERROR_CODES);
24522
+ pkgPath = null;
24523
+ }
24524
+ cache.PATH.set(key, pkgPath);
24525
+ }
24526
+ return pkgPath;
24527
+ }
24528
+ resolvePackagePath._resetCache = function () {
24529
+ CACHE = new CacheGroup();
24530
+ FIND_UP_CACHE = new Cache();
24531
+ };
24532
+ // eslint-disable-next-line no-redeclare
24533
+ (function (resolvePackagePath) {
24534
+ resolvePackagePath._FIND_UP_CACHE = FIND_UP_CACHE;
24535
+ resolvePackagePath.findUpPackagePath = _findUpPackagePath;
24536
+ })(resolvePackagePath || (resolvePackagePath = {}));
24537
+ Object.defineProperty(resolvePackagePath, '_CACHE', {
24538
+ get: function () {
24539
+ return CACHE;
24540
+ },
24541
+ });
24542
+ Object.defineProperty(resolvePackagePath, '_FIND_UP_CACHE', {
24543
+ get: function () {
24544
+ return FIND_UP_CACHE;
24545
+ },
24546
+ });
24547
+ resolvePackagePath.getRealFilePath = function (filePath) {
24548
+ return getRealFilePath(CACHE.REAL_FILE_PATH, filePath);
24549
+ };
24550
+ resolvePackagePath.getRealDirectoryPath = function (directoryPath) {
24551
+ return getRealDirectoryPath(CACHE.REAL_DIRECTORY_PATH, directoryPath);
24552
+ };
24553
+ lib$1 = resolvePackagePath;
24554
+
23524
24555
  return lib$1;
23525
24556
  }
23526
24557
 
23527
- var libExports = /*@__PURE__*/ requireLib$1();
23528
- var fse = /*@__PURE__*/getDefaultExportFromCjs(libExports);
24558
+ var libExports = requireLib$1();
24559
+ var resolvePackagePath = /*@__PURE__*/getDefaultExportFromCjs(libExports);
24560
+
24561
+ function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:o||!r?"./"===f.slice(0,2)?f:"./"+f:f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function i(e,n={}){let t,i=0,o=n.browser,f=n.fields||["module","main"],s="string"==typeof o;for(o&&!f.includes("browser")&&(f.unshift("browser"),s&&(o=r(e.name,o,true)));i<f.length;i++)if(t=e[f[i]]){if("string"==typeof t);else {if("object"!=typeof t||"browser"!=f[i])continue;if(s&&(t=t[o],null==t))return o}return "string"==typeof t?"./"+t.replace(/^\.?\//,""):t}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}
24562
+
24563
+ // src/importer.js
24564
+
24565
+ // src/parsePackageName.js
24566
+ var SCOPED_PACKAGE = /^(@[^/]+\/[^@/]+).*?$/;
24567
+ var NON_SCOPED_PACKAGE = /^([^@/]+).*?$/;
24568
+ function getPackageNameFromPath(input) {
24569
+ const match = SCOPED_PACKAGE.exec(input) || NON_SCOPED_PACKAGE.exec(input);
24570
+ if (!input || !match) {
24571
+ return null;
24572
+ }
24573
+ return match[1];
24574
+ }
24575
+
24576
+ // src/importer.js
24577
+ var { findUpPackagePath } = resolvePackagePath;
24578
+ var require2 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('vendor-DQQ31U4v.js', document.baseURI).href)));
24579
+ var WEBPACK_NODE_MODULE_PREFIX = "~";
24580
+ var selfPackageJson = null;
24581
+ var selfPackageJsonPath = null;
24582
+ var moduleImporter = {
24583
+ findFileUrl(url) {
24584
+ setSelfPackage();
24585
+ let findUrl = url;
24586
+ if (url.startsWith(WEBPACK_NODE_MODULE_PREFIX)) {
24587
+ findUrl = url.substring(1);
24588
+ }
24589
+ const packageName = getPackageNameFromPath(findUrl);
24590
+ const filePath = findUrl.split(packageName)[1];
24591
+ if (!packageName) {
24592
+ return null;
24593
+ }
24594
+ let packageJson = selfPackageJson;
24595
+ let packagePath = selfPackageJsonPath;
24596
+ if (selfPackageJson.name !== packageName) {
24597
+ packagePath = resolvePackagePath(packageName, process.cwd());
24598
+ if (!packagePath) {
24599
+ return null;
24600
+ }
24601
+ packageJson = JSON.parse(
24602
+ fs$2.readFileSync(packagePath, { encoding: "utf-8" })
24603
+ );
24604
+ }
24605
+ const moduleDirectory = path$1.dirname(packagePath);
24606
+ try {
24607
+ const match = o(packageJson, filePath.substring(1), {
24608
+ conditions: ["sass"]
24609
+ });
24610
+ if (match && match.length === 1) {
24611
+ return new URL(
24612
+ node_url.pathToFileURL(path$1.join(moduleDirectory, match[0]))
24613
+ );
24614
+ }
24615
+ } catch {
24616
+ }
24617
+ if (!filePath) {
24618
+ const match = i(packageJson, { fields: ["sass", "main"] });
24619
+ if (match) {
24620
+ return new URL(
24621
+ node_url.pathToFileURL(path$1.join(moduleDirectory, match))
24622
+ );
24623
+ }
24624
+ }
24625
+ const directory = path$1.dirname(filePath);
24626
+ const fileName = path$1.basename(filePath);
24627
+ const search = [
24628
+ `${fileName}.css`,
24629
+ `${fileName}.scss`,
24630
+ `_${fileName}.scss`,
24631
+ `${fileName}`
24632
+ ];
24633
+ for (const variant of search) {
24634
+ try {
24635
+ const moduleName = path$1.posix.join(
24636
+ moduleDirectory,
24637
+ directory,
24638
+ variant
24639
+ );
24640
+ const resolved = require2.resolve(moduleName);
24641
+ return new URL(node_url.pathToFileURL(resolved));
24642
+ } catch (err) {
24643
+ if (err.code !== "MODULE_NOT_FOUND") {
24644
+ throw err;
24645
+ }
24646
+ }
24647
+ }
24648
+ return null;
24649
+ }
24650
+ };
24651
+ function setSelfPackage() {
24652
+ if (!selfPackageJson) {
24653
+ selfPackageJsonPath = findUpPackagePath(process.cwd());
24654
+ selfPackageJson = JSON.parse(
24655
+ fs$2.readFileSync(selfPackageJsonPath, { encoding: "utf-8" })
24656
+ );
24657
+ }
24658
+ }
23529
24659
 
23530
24660
  var eta;
23531
24661
  var hasRequiredEta;
@@ -23614,7 +24744,7 @@ var hasRequiredTerminal;
23614
24744
  function requireTerminal () {
23615
24745
  if (hasRequiredTerminal) return terminal;
23616
24746
  hasRequiredTerminal = 1;
23617
- const _readline = require$$0$4;
24747
+ const _readline = require$$0$5;
23618
24748
 
23619
24749
  // low-level terminal interactions
23620
24750
  class Terminal{
@@ -42877,7 +44007,7 @@ const normalizeFilter = (filter) => {
42877
44007
  }
42878
44008
  return emptyFn;
42879
44009
  };
42880
- class ReaddirpStream extends require$$0$3.Readable {
44010
+ class ReaddirpStream extends require$$0$4.Readable {
42881
44011
  constructor(options = {}) {
42882
44012
  super({
42883
44013
  objectMode: true,
@@ -43073,7 +44203,7 @@ const isWindows = pl === 'win32';
43073
44203
  const isMacos = pl === 'darwin';
43074
44204
  const isLinux = pl === 'linux';
43075
44205
  const isFreeBSD = pl === 'freebsd';
43076
- const isIBMi = require$$0$5.type() === 'OS400';
44206
+ const isIBMi = require$$0$6.type() === 'OS400';
43077
44207
  const EVENTS = {
43078
44208
  ALL: 'all',
43079
44209
  READY: 'ready',
@@ -43184,7 +44314,7 @@ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
43184
44314
  }
43185
44315
  };
43186
44316
  try {
43187
- return require$$0.watch(path, {
44317
+ return require$$0$1.watch(path, {
43188
44318
  persistent: options.persistent,
43189
44319
  }, handleEvent);
43190
44320
  }
@@ -43306,7 +44436,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
43306
44436
  // doesn't seem worthwhile for the added complexity.
43307
44437
  // listeners = cont.listeners;
43308
44438
  // rawEmitters = cont.rawEmitters;
43309
- require$$0.unwatchFile(fullPath);
44439
+ require$$0$1.unwatchFile(fullPath);
43310
44440
  cont = undefined;
43311
44441
  }
43312
44442
  if (cont) {
@@ -43321,7 +44451,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
43321
44451
  listeners: listener,
43322
44452
  rawEmitters: rawEmitter,
43323
44453
  options,
43324
- watcher: require$$0.watchFile(fullPath, options, (curr, prev) => {
44454
+ watcher: require$$0$1.watchFile(fullPath, options, (curr, prev) => {
43325
44455
  foreach(cont.rawEmitters, (rawEmitter) => {
43326
44456
  rawEmitter(EV.CHANGE, fullPath, { curr, prev });
43327
44457
  });
@@ -43341,7 +44471,7 @@ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
43341
44471
  delFromSet(cont, KEY_RAW, rawEmitter);
43342
44472
  if (isEmptySet(cont.listeners)) {
43343
44473
  FsWatchFileInstances.delete(fullPath);
43344
- require$$0.unwatchFile(fullPath);
44474
+ require$$0$1.unwatchFile(fullPath);
43345
44475
  cont.options = cont.watcher = undefined;
43346
44476
  Object.freeze(cont);
43347
44477
  }
@@ -44278,7 +45408,7 @@ class FSWatcher extends require$$3.EventEmitter {
44278
45408
  const now = new Date();
44279
45409
  const writes = this._pendingWrites;
44280
45410
  function awaitWriteFinishFn(prevStat) {
44281
- require$$0.stat(fullPath, (err, curStat) => {
45411
+ require$$0$1.stat(fullPath, (err, curStat) => {
44282
45412
  if (err || !writes.has(path)) {
44283
45413
  if (err && err.code !== 'ENOENT')
44284
45414
  awfEmit(err);
@@ -44497,7 +45627,7 @@ function requireSafeBuffer () {
44497
45627
  hasRequiredSafeBuffer = 1;
44498
45628
  (function (module, exports) {
44499
45629
  /* eslint-disable node/no-deprecated-api */
44500
- var buffer = require$$0$6;
45630
+ var buffer = require$$0$7;
44501
45631
  var Buffer = buffer.Buffer;
44502
45632
 
44503
45633
  // alternative to using Object.keys for old browsers
@@ -44615,7 +45745,7 @@ function requireStreams () {
44615
45745
  **/
44616
45746
 
44617
45747
 
44618
- var Stream = require$$0$3.Stream,
45748
+ var Stream = require$$0$4.Stream,
44619
45749
  util = require$$1$1;
44620
45750
 
44621
45751
 
@@ -46827,7 +47957,7 @@ function requireProxy () {
46827
47957
  hasRequiredProxy = 1;
46828
47958
 
46829
47959
  var Buffer = requireSafeBuffer().Buffer,
46830
- Stream = require$$0$3.Stream,
47960
+ Stream = require$$0$4.Stream,
46831
47961
  url = require$$2,
46832
47962
  util = require$$1$1,
46833
47963
  Base = requireBase(),
@@ -47578,7 +48708,7 @@ function requireApi () {
47578
48708
  if (hasRequiredApi) return api;
47579
48709
  hasRequiredApi = 1;
47580
48710
 
47581
- var Stream = require$$0$3.Stream,
48711
+ var Stream = require$$0$4.Stream,
47582
48712
  util = require$$1$1,
47583
48713
  driver = requireDriver(),
47584
48714
  EventTarget = requireEvent_target(),
@@ -47883,7 +49013,7 @@ function requireEventsource () {
47883
49013
  if (hasRequiredEventsource) return eventsource;
47884
49014
  hasRequiredEventsource = 1;
47885
49015
 
47886
- var Stream = require$$0$3.Stream,
49016
+ var Stream = require$$0$4.Stream,
47887
49017
  util = require$$1$1,
47888
49018
  driver = requireDriver(),
47889
49019
  Headers = requireHeaders(),
@@ -48807,7 +49937,7 @@ var hasRequiredSupportsColor;
48807
49937
  function requireSupportsColor () {
48808
49938
  if (hasRequiredSupportsColor) return supportsColor_1;
48809
49939
  hasRequiredSupportsColor = 1;
48810
- const os = require$$0$5;
49940
+ const os = require$$0$6;
48811
49941
  const tty = require$$1$4;
48812
49942
  const hasFlag = requireHasFlag();
48813
49943
 
@@ -49673,7 +50803,7 @@ function requireString_decoder () {
49673
50803
  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
49674
50804
  // USE OR OTHER DEALINGS IN THE SOFTWARE.
49675
50805
 
49676
- var Buffer = require$$0$6.Buffer;
50806
+ var Buffer = require$$0$7.Buffer;
49677
50807
 
49678
50808
  var isBufferEncoding = Buffer.isEncoding
49679
50809
  || function(encoding) {
@@ -50174,7 +51304,7 @@ var hasRequiredForm;
50174
51304
  function requireForm () {
50175
51305
  if (hasRequiredForm) return form;
50176
51306
  hasRequiredForm = 1;
50177
- var querystringParse = require$$0$7.parse;
51307
+ var querystringParse = require$$0$8.parse;
50178
51308
 
50179
51309
  var body = requireBody();
50180
51310
  var parseArguments = requireParseArguments();
@@ -53242,7 +54372,7 @@ function requireServer () {
53242
54372
 
53243
54373
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
53244
54374
 
53245
- var _fs = require$$0;
54375
+ var _fs = require$$0$1;
53246
54376
 
53247
54377
  var _fs2 = _interopRequireDefault(_fs);
53248
54378
 
@@ -53719,8 +54849,10 @@ exports.fm = fm;
53719
54849
  exports.fse = fse;
53720
54850
  exports.glob = glob;
53721
54851
  exports.globSync = globSync;
54852
+ exports.isCI = isCI;
53722
54853
  exports.minimatch = minimatch;
54854
+ exports.moduleImporter = moduleImporter;
53723
54855
  exports.spawn = spawn;
53724
54856
  exports.tinylr = tinylr;
53725
54857
  exports.watch = watch$1;
53726
- //# sourceMappingURL=vendor-BUiT5f0C.js.map
54858
+ //# sourceMappingURL=vendor-DQQ31U4v.js.map