@visulima/ono 2.0.0-alpha.5 → 2.0.0-alpha.7
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var l=(t,e)=>f(t,"name",{value:e,configurable:!0});import u from"isomorphic-dompurify";var w=Object.defineProperty,n=l((t,e)=>w(t,"name",{value:e,configurable:!0}),"e$1");const D=["http://","https://","/","./","../"],g="#",y={'"':""","&":"&","'":"'","<":"<",">":">"},x=/^[\w+/-]+={0,2}$/,a=n(t=>String(t??"").trim(),"toString"),d=n(t=>t.replaceAll(/[&<>"']/g,e=>y[e]),"escapeHtml"),C=n(t=>{try{return u.sanitize(a(t))}catch{return d(a(t))}},"sanitizeHtml"),H=n(t=>{const e=a(t);if(!e)return"";try{return u.sanitize(e).replaceAll('"',""").replaceAll("'","'")}catch{return d(e)}},"sanitizeAttribute"),z=n(t=>{const e=a(t);if(!e)return g;try{const i=u.sanitize(e),r=i.toLowerCase();return D.some(o=>r.startsWith(o))?i:g}catch{return g}},"sanitizeUrlAttribute"),P=n(t=>{const e=a(t);if(!e)return"";try{return u.sanitize(e,{ADD_ATTR:["class","style"]})}catch{return C(e)}},"sanitizeCodeHtml"),b=n(t=>{const e=a(t);if(e)return x.test(e)?e:void 0},"sanitizeCspNonce"),$=n((t={})=>{if(!t||typeof t!="object")return{};try{return{...t,cspNonce:b(t.cspNonce),openInEditorUrl:t.openInEditorUrl?z(t.openInEditorUrl):void 0}}catch{return{...t,cspNonce:void 0,openInEditorUrl:void 0}}},"sanitizeOptions");var j=Object.defineProperty,s=l((t,e)=>j(t,"name",{value:e,configurable:!0}),"t");const h={javascript:s(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:s(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:s(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:s(()=>import("@shikijs/langs/tsx"),"tsx"),json:s(()=>import("@shikijs/langs/json"),"json"),jsonc:s(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:s(()=>import("@shikijs/langs/xml"),"xml"),sql:s(()=>import("@shikijs/langs/sql"),"sql"),markdown:s(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:s(()=>import("@shikijs/langs/mdx"),"mdx"),html:s(()=>import("@shikijs/langs/html"),"html"),css:s(()=>import("@shikijs/langs/css"),"css"),scss:s(()=>import("@shikijs/langs/scss"),"scss"),less:s(()=>import("@shikijs/langs/less"),"less"),sass:s(()=>import("@shikijs/langs/sass"),"sass"),stylus:s(()=>import("@shikijs/langs/stylus"),"stylus"),styl:s(()=>import("@shikijs/langs/styl"),"styl"),svelte:s(()=>import("@shikijs/langs/svelte"),"svelte"),vue:s(()=>import("@shikijs/langs/vue"),"vue"),bash:s(()=>import("@shikijs/langs/bash"),"bash"),shell:s(()=>import("@shikijs/langs/shell"),"shell"),text:s(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text",repository:{}}),"text")};s(async t=>{if(typeof t!="string"||!t)return;const e=h[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var A=Object.defineProperty,c=l((t,e)=>A(t,"name",{value:e,configurable:!0}),"a$1");let p,m;const F=c(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:i}=t,{createJavaScriptRegexEngine:r}=e,o=await i({themes:[import("../packem_chunks/github-dark-default.js"),import("../packem_chunks/github-light.js")],langs:[],engine:r()}),v=o;return m=c(()=>{try{o?.dispose?.()}catch{}p=void 0},"disposeFn"),v},"createSingletonHighlighter"),L=c(async(t,e)=>{if(e==="text")return;const i=e.toLowerCase();if(!(t.getLoadedLanguages?.()??t.getLanguages?.()??[]).includes(i)){const r=h[i];r&&await t.loadLanguage?.(await r())}},"ensureLanguageLoaded"),N=c(async(t=[])=>{p||(p=F());const e=await p,i=[];for(const r of t)if(typeof r=="string")i.push(r.toLowerCase());else{const o=r.name;o&&i.push(o.toLowerCase())}return await Promise.all(i.map(r=>L(e,r))),e},"getHighlighter");c(async()=>{try{m&&(m(),m=void 0)}catch{}},"disposeHighlighter");c((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,i){const r=t.find(o=>o.line===i);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");const O="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-check%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%20%2F%3E%20%3C%2Fsvg%3E",U="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clipboard%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%228%22%20height%3D%224%22%20x%3D%228%22%20y%3D%222%22%20rx%3D%221%22%20ry%3D%221%22%20%2F%3E%20%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2%22%20%2F%3E%20%3C%2Fsvg%3E";export{H as a,b,z as c,N as d,O as e,$ as f,P as g,U as n,C as s};
|
package/package.json
CHANGED
|
@@ -1,176 +1,177 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"name": "@visulima/ono",
|
|
3
|
+
"version": "2.0.0-alpha.7",
|
|
4
|
+
"description": "Ono is an error-parsing library that pretty prints JavaScript errors on a web page or the terminal.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"visulima",
|
|
7
|
+
"error",
|
|
8
|
+
"exception",
|
|
9
|
+
"error-inspector",
|
|
10
|
+
"diagnostics",
|
|
11
|
+
"debugging",
|
|
12
|
+
"stacktrace",
|
|
13
|
+
"code-frame",
|
|
14
|
+
"codeframe",
|
|
15
|
+
"source-code-preview",
|
|
16
|
+
"html-error",
|
|
17
|
+
"open-in-editor",
|
|
18
|
+
"cli",
|
|
19
|
+
"terminal",
|
|
20
|
+
"node",
|
|
21
|
+
"web",
|
|
22
|
+
"browser",
|
|
23
|
+
"express",
|
|
24
|
+
"connect",
|
|
25
|
+
"http-errors",
|
|
26
|
+
"devtools",
|
|
27
|
+
"error-reporting",
|
|
28
|
+
"whoops",
|
|
29
|
+
"youch",
|
|
30
|
+
"anolilab",
|
|
31
|
+
"webpack"
|
|
32
|
+
],
|
|
33
|
+
"homepage": "https://www.visulima.com/docs/package/ono",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/visulima/visulima.git",
|
|
37
|
+
"directory": "packages/error-debugging/ono"
|
|
38
|
+
},
|
|
39
|
+
"funding": [
|
|
40
|
+
{
|
|
41
|
+
"type": "github",
|
|
42
|
+
"url": "https://github.com/sponsors/prisis"
|
|
38
43
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
{
|
|
45
|
+
"type": "consulting",
|
|
46
|
+
"url": "https://anolilab.com/support"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"author": {
|
|
51
|
+
"name": "Daniel Bannert",
|
|
52
|
+
"email": "d.bannert@anolilab.de"
|
|
53
|
+
},
|
|
54
|
+
"sideEffects": true,
|
|
55
|
+
"type": "module",
|
|
56
|
+
"exports": {
|
|
57
|
+
".": {
|
|
58
|
+
"types": "./dist/index.d.ts",
|
|
59
|
+
"default": "./dist/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./page/context": {
|
|
62
|
+
"types": "./dist/error-inspector/page/create-request-context.d.ts",
|
|
63
|
+
"default": "./dist/error-inspector/page/create-request-context.js"
|
|
53
64
|
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
".": {
|
|
58
|
-
"types": "./dist/index.d.ts",
|
|
59
|
-
"default": "./dist/index.js"
|
|
60
|
-
},
|
|
61
|
-
"./page/context": {
|
|
62
|
-
"types": "./dist/error-inspector/page/create-request-context.d.ts",
|
|
63
|
-
"default": "./dist/error-inspector/page/create-request-context.js"
|
|
64
|
-
},
|
|
65
|
-
"./server/open-in-editor": {
|
|
66
|
-
"types": "./dist/server/open-in-editor.d.ts",
|
|
67
|
-
"default": "./dist/server/open-in-editor.js"
|
|
68
|
-
},
|
|
69
|
-
"./package.json": "./package.json"
|
|
65
|
+
"./server/open-in-editor": {
|
|
66
|
+
"types": "./dist/server/open-in-editor.d.ts",
|
|
67
|
+
"default": "./dist/server/open-in-editor.js"
|
|
70
68
|
},
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
69
|
+
"./package.json": "./package.json"
|
|
70
|
+
},
|
|
71
|
+
"files": [
|
|
72
|
+
"dist",
|
|
73
|
+
"README.md",
|
|
74
|
+
"CHANGELOG.md",
|
|
75
|
+
"LICENSE.md"
|
|
76
|
+
],
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "packem build --development",
|
|
79
|
+
"build:prod": "packem build --production",
|
|
80
|
+
"clean": "rimraf node_modules dist .eslintcache",
|
|
81
|
+
"dev:hono": "packem build --development --watch --onSuccess 'node ./examples/hono/index.js'",
|
|
82
|
+
"dev:node": "packem build --development --watch --onSuccess 'node ./examples/node/index.js'",
|
|
83
|
+
"lint:attw": "attw --pack",
|
|
84
|
+
"lint:eslint": "eslint . --cache --concurrency auto",
|
|
85
|
+
"lint:eslint:fix": "eslint . --cache --concurrency auto --fix",
|
|
86
|
+
"lint:package-json": "publint --strict",
|
|
87
|
+
"lint:prettier": "prettier --config=.prettierrc.cjs --check .",
|
|
88
|
+
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
|
|
89
|
+
"lint:types": "tsc --noEmit",
|
|
90
|
+
"test": "vitest run",
|
|
91
|
+
"test:coverage": "vitest run --coverage",
|
|
92
|
+
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
93
|
+
"test:watch": "vitest"
|
|
94
|
+
},
|
|
95
|
+
"dependencies": {
|
|
96
|
+
"@shikijs/langs": "catalog:prod",
|
|
97
|
+
"@visulima/error": "6.0.0-alpha.6",
|
|
98
|
+
"isomorphic-dompurify": "catalog:prod",
|
|
99
|
+
"launch-editor-middleware": "catalog:prod",
|
|
100
|
+
"shiki": "catalog:syntax"
|
|
101
|
+
},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@anolilab/eslint-config": "catalog:lint",
|
|
104
|
+
"@anolilab/prettier-config": "catalog:lint",
|
|
105
|
+
"@anolilab/semantic-release-preset": "catalog:dev",
|
|
106
|
+
"@arethetypeswrong/cli": "catalog:dev",
|
|
107
|
+
"@eslint/css": "catalog:lint",
|
|
108
|
+
"@shikijs/themes": "catalog:dev",
|
|
109
|
+
"@tailwindcss/forms": "catalog:frontend",
|
|
110
|
+
"@tailwindcss/node": "catalog:frontend",
|
|
111
|
+
"@tailwindcss/oxide": "catalog:frontend",
|
|
112
|
+
"@tailwindcss/typography": "catalog:style",
|
|
113
|
+
"@total-typescript/ts-reset": "catalog:dev",
|
|
114
|
+
"@types/http-errors": "catalog:types",
|
|
115
|
+
"@types/node": "catalog:types",
|
|
116
|
+
"@visulima/packem": "catalog:dev",
|
|
117
|
+
"@visulima/path": "3.0.0-alpha.6",
|
|
118
|
+
"@vitest/coverage-v8": "catalog:test",
|
|
119
|
+
"cssnano": "catalog:dev",
|
|
120
|
+
"esbuild": "catalog:build",
|
|
121
|
+
"eslint": "catalog:lint",
|
|
122
|
+
"http-errors": "catalog:dev",
|
|
123
|
+
"lucide-static": "catalog:icons",
|
|
124
|
+
"marked": "catalog:dev",
|
|
125
|
+
"node-mocks-http": "catalog:dev",
|
|
126
|
+
"openai": "catalog:dev",
|
|
127
|
+
"prettier": "catalog:lint",
|
|
128
|
+
"prettier-plugin-tailwindcss": "catalog:lint",
|
|
129
|
+
"publint": "catalog:dev",
|
|
130
|
+
"rimraf": "catalog:node",
|
|
131
|
+
"semantic-release": "catalog:cli",
|
|
132
|
+
"sort-package-json": "catalog:dev",
|
|
133
|
+
"tailwind-csstree": "catalog:dev",
|
|
134
|
+
"tailwindcss": "catalog:style",
|
|
135
|
+
"typescript": "catalog:tsc",
|
|
136
|
+
"vitest": "catalog:test"
|
|
137
|
+
},
|
|
138
|
+
"peerDependencies": {
|
|
139
|
+
"@ai-sdk/anthropic": "catalog:peer",
|
|
140
|
+
"@ai-sdk/azure": "catalog:peer",
|
|
141
|
+
"@ai-sdk/google": "catalog:peer",
|
|
142
|
+
"@ai-sdk/mistral": "catalog:peer",
|
|
143
|
+
"@ai-sdk/openai": "catalog:peer",
|
|
144
|
+
"ai": "^4.0.0 || ^5.0.0"
|
|
145
|
+
},
|
|
146
|
+
"peerDependenciesMeta": {
|
|
147
|
+
"@ai-sdk/anthropic": {
|
|
148
|
+
"optional": true
|
|
94
149
|
},
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
"@visulima/error": "6.0.0-alpha.4",
|
|
98
|
-
"isomorphic-dompurify": "^2.35.0",
|
|
99
|
-
"launch-editor-middleware": "2.12.0",
|
|
100
|
-
"shiki": "^3.21.0"
|
|
150
|
+
"@ai-sdk/azure": {
|
|
151
|
+
"optional": true
|
|
101
152
|
},
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
"@anolilab/prettier-config": "^9.0.0",
|
|
105
|
-
"@anolilab/semantic-release-preset": "^13.1.0",
|
|
106
|
-
"@arethetypeswrong/cli": "^0.18.2",
|
|
107
|
-
"@eslint/css": "0.14.1",
|
|
108
|
-
"@shikijs/themes": "^3.21.0",
|
|
109
|
-
"@tailwindcss/forms": "^0.5.11",
|
|
110
|
-
"@tailwindcss/node": "^4.1.18",
|
|
111
|
-
"@tailwindcss/oxide": "^4.1.18",
|
|
112
|
-
"@tailwindcss/typography": "^0.5.19",
|
|
113
|
-
"@total-typescript/ts-reset": "^0.6.1",
|
|
114
|
-
"@types/http-errors": "^2.0.5",
|
|
115
|
-
"@types/node": "25.0.9",
|
|
116
|
-
"@visulima/packem": "2.0.0-alpha.46",
|
|
117
|
-
"@visulima/path": "3.0.0-alpha.4",
|
|
118
|
-
"@vitest/coverage-v8": "^4.0.17",
|
|
119
|
-
"cssnano": "7.1.2",
|
|
120
|
-
"esbuild": "0.27.2",
|
|
121
|
-
"eslint": "^9.39.2",
|
|
122
|
-
"http-errors": "^2.0.1",
|
|
123
|
-
"lucide-static": "^0.562.0",
|
|
124
|
-
"marked": "^17.0.1",
|
|
125
|
-
"node-mocks-http": "^1.17.2",
|
|
126
|
-
"openai": "6.16.0",
|
|
127
|
-
"prettier": "^3.8.0",
|
|
128
|
-
"prettier-plugin-tailwindcss": "0.7.2",
|
|
129
|
-
"publint": "^0.3.16",
|
|
130
|
-
"rimraf": "^6.1.2",
|
|
131
|
-
"semantic-release": "^25.0.2",
|
|
132
|
-
"sort-package-json": "^3.6.0",
|
|
133
|
-
"tailwind-csstree": "0.1.4",
|
|
134
|
-
"tailwindcss": "^4.1.18",
|
|
135
|
-
"typescript": "^5.9.3",
|
|
136
|
-
"vitest": "^4.0.17"
|
|
153
|
+
"@ai-sdk/google": {
|
|
154
|
+
"optional": true
|
|
137
155
|
},
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
"@ai-sdk/azure": "^1.0.22",
|
|
141
|
-
"@ai-sdk/google": "^1.0.17",
|
|
142
|
-
"@ai-sdk/mistral": "^1.0.9",
|
|
143
|
-
"@ai-sdk/openai": "^1.0.20",
|
|
144
|
-
"ai": "^4.0.0 || ^5.0.0"
|
|
156
|
+
"@ai-sdk/mistral": {
|
|
157
|
+
"optional": true
|
|
145
158
|
},
|
|
146
|
-
"
|
|
147
|
-
|
|
148
|
-
"optional": true
|
|
149
|
-
},
|
|
150
|
-
"@ai-sdk/azure": {
|
|
151
|
-
"optional": true
|
|
152
|
-
},
|
|
153
|
-
"@ai-sdk/google": {
|
|
154
|
-
"optional": true
|
|
155
|
-
},
|
|
156
|
-
"@ai-sdk/mistral": {
|
|
157
|
-
"optional": true
|
|
158
|
-
},
|
|
159
|
-
"@ai-sdk/openai": {
|
|
160
|
-
"optional": true
|
|
161
|
-
},
|
|
162
|
-
"ai": {
|
|
163
|
-
"optional": true
|
|
164
|
-
},
|
|
165
|
-
"open-editor": {
|
|
166
|
-
"optional": true
|
|
167
|
-
}
|
|
159
|
+
"@ai-sdk/openai": {
|
|
160
|
+
"optional": true
|
|
168
161
|
},
|
|
169
|
-
"
|
|
170
|
-
|
|
162
|
+
"ai": {
|
|
163
|
+
"optional": true
|
|
171
164
|
},
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
"provenance": true
|
|
165
|
+
"open-editor": {
|
|
166
|
+
"optional": true
|
|
175
167
|
}
|
|
168
|
+
},
|
|
169
|
+
"optionalDependencies": {},
|
|
170
|
+
"engines": {
|
|
171
|
+
"node": ">=22.13 <=25.x"
|
|
172
|
+
},
|
|
173
|
+
"publishConfig": {
|
|
174
|
+
"access": "public",
|
|
175
|
+
"provenance": true
|
|
176
|
+
}
|
|
176
177
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var f=Object.defineProperty;var l=(t,e)=>f(t,"name",{value:e,configurable:!0});import u from"isomorphic-dompurify";var D=Object.defineProperty,n=l((t,e)=>D(t,"name",{value:e,configurable:!0}),"e$1");const w=["http://","https://","/","./","../"],g="#",y={'"':""","&":"&","'":"'","<":"<",">":">"},x=/^[\w+/-]+={0,2}$/,a=n(t=>String(t??"").trim(),"toString"),h=n(t=>t.replaceAll(/[&<>"']/g,e=>y[e]),"escapeHtml"),C=n(t=>{try{return u.sanitize(a(t))}catch{return h(a(t))}},"sanitizeHtml"),H=n(t=>{const e=a(t);if(!e)return"";try{return u.sanitize(e).replaceAll('"',""").replaceAll("'","'")}catch{return h(e)}},"sanitizeAttribute"),z=n(t=>{const e=a(t);if(!e)return g;try{const i=u.sanitize(e),r=i.toLowerCase();return w.some(o=>r.startsWith(o))?i:g}catch{return g}},"sanitizeUrlAttribute"),P=n(t=>{const e=a(t);if(!e)return"";try{return u.sanitize(e,{ADD_ATTR:["class","style"]})}catch{return C(e)}},"sanitizeCodeHtml"),b=n(t=>{const e=a(t);if(e)return x.test(e)?e:void 0},"sanitizeCspNonce"),N=n((t={})=>{if(!t||typeof t!="object")return{};try{return{...t,cspNonce:b(t.cspNonce),openInEditorUrl:t.openInEditorUrl?z(t.openInEditorUrl):void 0}}catch{return{...t,cspNonce:void 0,openInEditorUrl:void 0}}},"sanitizeOptions");var j=Object.defineProperty,s=l((t,e)=>j(t,"name",{value:e,configurable:!0}),"t");const d={javascript:s(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:s(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:s(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:s(()=>import("@shikijs/langs/tsx"),"tsx"),json:s(()=>import("@shikijs/langs/json"),"json"),jsonc:s(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:s(()=>import("@shikijs/langs/xml"),"xml"),sql:s(()=>import("@shikijs/langs/sql"),"sql"),markdown:s(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:s(()=>import("@shikijs/langs/mdx"),"mdx"),html:s(()=>import("@shikijs/langs/html"),"html"),css:s(()=>import("@shikijs/langs/css"),"css"),scss:s(()=>import("@shikijs/langs/scss"),"scss"),less:s(()=>import("@shikijs/langs/less"),"less"),sass:s(()=>import("@shikijs/langs/sass"),"sass"),stylus:s(()=>import("@shikijs/langs/stylus"),"stylus"),styl:s(()=>import("@shikijs/langs/styl"),"styl"),svelte:s(()=>import("@shikijs/langs/svelte"),"svelte"),vue:s(()=>import("@shikijs/langs/vue"),"vue"),bash:s(()=>import("@shikijs/langs/bash"),"bash"),shell:s(()=>import("@shikijs/langs/shell"),"shell"),text:s(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text"}),"text")};s(async t=>{if(typeof t!="string"||!t)return;const e=d[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var A=Object.defineProperty,c=l((t,e)=>A(t,"name",{value:e,configurable:!0}),"r");let p,m;const F=c(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:i}=t,{createJavaScriptRegexEngine:r}=e,o=await i({themes:[import("../packem_chunks/github-dark-default.js"),import("../packem_chunks/github-light.js")],langs:[],engine:r()}),v=o;return m=c(()=>{try{o?.dispose?.()}catch{}p=void 0},"disposeFn"),v},"createSingletonHighlighter"),E=c(async(t,e)=>{if(e==="text")return;const i=e.toLowerCase();if(!(t.getLanguages?.()||[]).includes(i)){const r=d[i];r&&await t.loadLanguage?.(r())}},"ensureLanguageLoaded"),O=c(async(t=[])=>{p||(p=F());const e=await p,i=[];for(const r of t)if(typeof r=="string")i.push(r.toLowerCase());else{const o=r.name;o&&i.push(o.toLowerCase())}return await Promise.all(i.map(r=>E(e,r))),e},"getHighlighter");c(async()=>{try{m&&(m(),m=void 0)}catch{}},"disposeHighlighter");c((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,i){const r=t.find(o=>o.line===i);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");const U="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-check%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%20%2F%3E%20%3C%2Fsvg%3E",$="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clipboard%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%228%22%20height%3D%224%22%20x%3D%228%22%20y%3D%222%22%20rx%3D%221%22%20ry%3D%221%22%20%2F%3E%20%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2%22%20%2F%3E%20%3C%2Fsvg%3E";export{H as a,b,z as c,O as d,U as e,N as f,P as g,$ as n,C as s};
|