@visulima/ono 2.0.0-alpha.1 → 2.0.0-alpha.3
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.
- package/CHANGELOG.md +18 -0
- package/dist/error-inspector/page/create-request-context.js +12 -12
- package/dist/index.js +56 -56
- package/dist/packem_chunks/github-dark-default.js +1 -0
- package/dist/packem_chunks/github-light.js +1 -0
- package/dist/packem_shared/clipboard-BS03XwiW.js +1 -0
- package/dist/server/open-in-editor.js +1 -1
- package/package.json +11 -11
- package/dist/packem_shared/clipboard-CI3XgYla.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f78166","activityBar.background":"#0d1117","activityBar.border":"#30363d","activityBar.foreground":"#e6edf3","activityBar.inactiveForeground":"#7d8590","activityBarBadge.background":"#1f6feb","activityBarBadge.foreground":"#ffffff","badge.background":"#1f6feb","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#7d8590","breadcrumb.focusForeground":"#e6edf3","breadcrumb.foreground":"#7d8590","breadcrumbPicker.background":"#161b22","button.background":"#238636","button.foreground":"#ffffff","button.hoverBackground":"#2ea043","button.secondaryBackground":"#282e33","button.secondaryForeground":"#c9d1d9","button.secondaryHoverBackground":"#30363d","checkbox.background":"#161b22","checkbox.border":"#30363d","debugConsole.errorForeground":"#ffa198","debugConsole.infoForeground":"#8b949e","debugConsole.sourceForeground":"#e3b341","debugConsole.warningForeground":"#d29922","debugConsoleInputIcon.foreground":"#bc8cff","debugIcon.breakpointForeground":"#f85149","debugTokenExpression.boolean":"#56d364","debugTokenExpression.error":"#ffa198","debugTokenExpression.name":"#79c0ff","debugTokenExpression.number":"#56d364","debugTokenExpression.string":"#a5d6ff","debugTokenExpression.value":"#a5d6ff","debugToolBar.background":"#161b22","descriptionForeground":"#7d8590","diffEditor.insertedLineBackground":"#23863626","diffEditor.insertedTextBackground":"#3fb9504d","diffEditor.removedLineBackground":"#da363326","diffEditor.removedTextBackground":"#ff7b724d","dropdown.background":"#161b22","dropdown.border":"#30363d","dropdown.foreground":"#e6edf3","dropdown.listBackground":"#161b22","editor.background":"#0d1117","editor.findMatchBackground":"#9e6a03","editor.findMatchHighlightBackground":"#f2cc6080","editor.focusedStackFrameHighlightBackground":"#2ea04366","editor.foldBackground":"#6e76811a","editor.foreground":"#e6edf3","editor.lineHighlightBackground":"#6e76811a","editor.linkedEditingBackground":"#2f81f712","editor.selectionHighlightBackground":"#3fb95040","editor.stackFrameHighlightBackground":"#bb800966","editor.wordHighlightBackground":"#6e768180","editor.wordHighlightBorder":"#6e768199","editor.wordHighlightStrongBackground":"#6e76814d","editor.wordHighlightStrongBorder":"#6e768199","editorBracketHighlight.foreground1":"#79c0ff","editorBracketHighlight.foreground2":"#56d364","editorBracketHighlight.foreground3":"#e3b341","editorBracketHighlight.foreground4":"#ffa198","editorBracketHighlight.foreground5":"#ff9bce","editorBracketHighlight.foreground6":"#d2a8ff","editorBracketHighlight.unexpectedBracket.foreground":"#7d8590","editorBracketMatch.background":"#3fb95040","editorBracketMatch.border":"#3fb95099","editorCursor.foreground":"#2f81f7","editorGroup.border":"#30363d","editorGroupHeader.tabsBackground":"#010409","editorGroupHeader.tabsBorder":"#30363d","editorGutter.addedBackground":"#2ea04366","editorGutter.deletedBackground":"#f8514966","editorGutter.modifiedBackground":"#bb800966","editorIndentGuide.activeBackground":"#e6edf33d","editorIndentGuide.background":"#e6edf31f","editorInlayHint.background":"#8b949e33","editorInlayHint.foreground":"#7d8590","editorInlayHint.paramBackground":"#8b949e33","editorInlayHint.paramForeground":"#7d8590","editorInlayHint.typeBackground":"#8b949e33","editorInlayHint.typeForeground":"#7d8590","editorLineNumber.activeForeground":"#e6edf3","editorLineNumber.foreground":"#6e7681","editorOverviewRuler.border":"#010409","editorWhitespace.foreground":"#484f58","editorWidget.background":"#161b22","errorForeground":"#f85149","focusBorder":"#1f6feb","foreground":"#e6edf3","gitDecoration.addedResourceForeground":"#3fb950","gitDecoration.conflictingResourceForeground":"#db6d28","gitDecoration.deletedResourceForeground":"#f85149","gitDecoration.ignoredResourceForeground":"#6e7681","gitDecoration.modifiedResourceForeground":"#d29922","gitDecoration.submoduleResourceForeground":"#7d8590","gitDecoration.untrackedResourceForeground":"#3fb950","icon.foreground":"#7d8590","input.background":"#0d1117","input.border":"#30363d","input.foreground":"#e6edf3","input.placeholderForeground":"#6e7681","keybindingLabel.foreground":"#e6edf3","list.activeSelectionBackground":"#6e768166","list.activeSelectionForeground":"#e6edf3","list.focusBackground":"#388bfd26","list.focusForeground":"#e6edf3","list.highlightForeground":"#2f81f7","list.hoverBackground":"#6e76811a","list.hoverForeground":"#e6edf3","list.inactiveFocusBackground":"#388bfd26","list.inactiveSelectionBackground":"#6e768166","list.inactiveSelectionForeground":"#e6edf3","minimapSlider.activeBackground":"#8b949e47","minimapSlider.background":"#8b949e33","minimapSlider.hoverBackground":"#8b949e3d","notificationCenterHeader.background":"#161b22","notificationCenterHeader.foreground":"#7d8590","notifications.background":"#161b22","notifications.border":"#30363d","notifications.foreground":"#e6edf3","notificationsErrorIcon.foreground":"#f85149","notificationsInfoIcon.foreground":"#2f81f7","notificationsWarningIcon.foreground":"#d29922","panel.background":"#010409","panel.border":"#30363d","panelInput.border":"#30363d","panelTitle.activeBorder":"#f78166","panelTitle.activeForeground":"#e6edf3","panelTitle.inactiveForeground":"#7d8590","peekViewEditor.background":"#6e76811a","peekViewEditor.matchHighlightBackground":"#bb800966","peekViewResult.background":"#0d1117","peekViewResult.matchHighlightBackground":"#bb800966","pickerGroup.border":"#30363d","pickerGroup.foreground":"#7d8590","progressBar.background":"#1f6feb","quickInput.background":"#161b22","quickInput.foreground":"#e6edf3","scrollbar.shadow":"#484f5833","scrollbarSlider.activeBackground":"#8b949e47","scrollbarSlider.background":"#8b949e33","scrollbarSlider.hoverBackground":"#8b949e3d","settings.headerForeground":"#e6edf3","settings.modifiedItemIndicator":"#bb800966","sideBar.background":"#010409","sideBar.border":"#30363d","sideBar.foreground":"#e6edf3","sideBarSectionHeader.background":"#010409","sideBarSectionHeader.border":"#30363d","sideBarSectionHeader.foreground":"#e6edf3","sideBarTitle.foreground":"#e6edf3","statusBar.background":"#0d1117","statusBar.border":"#30363d","statusBar.debuggingBackground":"#da3633","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#1f6feb80","statusBar.foreground":"#7d8590","statusBar.noFolderBackground":"#0d1117","statusBarItem.activeBackground":"#e6edf31f","statusBarItem.focusBorder":"#1f6feb","statusBarItem.hoverBackground":"#e6edf314","statusBarItem.prominentBackground":"#6e768166","statusBarItem.remoteBackground":"#30363d","statusBarItem.remoteForeground":"#e6edf3","symbolIcon.arrayForeground":"#f0883e","symbolIcon.booleanForeground":"#58a6ff","symbolIcon.classForeground":"#f0883e","symbolIcon.colorForeground":"#79c0ff","symbolIcon.constantForeground":["#aff5b4","#7ee787","#56d364","#3fb950","#2ea043","#238636","#196c2e","#0f5323","#033a16","#04260f"],"symbolIcon.constructorForeground":"#d2a8ff","symbolIcon.enumeratorForeground":"#f0883e","symbolIcon.enumeratorMemberForeground":"#58a6ff","symbolIcon.eventForeground":"#6e7681","symbolIcon.fieldForeground":"#f0883e","symbolIcon.fileForeground":"#d29922","symbolIcon.folderForeground":"#d29922","symbolIcon.functionForeground":"#bc8cff","symbolIcon.interfaceForeground":"#f0883e","symbolIcon.keyForeground":"#58a6ff","symbolIcon.keywordForeground":"#ff7b72","symbolIcon.methodForeground":"#bc8cff","symbolIcon.moduleForeground":"#ff7b72","symbolIcon.namespaceForeground":"#ff7b72","symbolIcon.nullForeground":"#58a6ff","symbolIcon.numberForeground":"#3fb950","symbolIcon.objectForeground":"#f0883e","symbolIcon.operatorForeground":"#79c0ff","symbolIcon.packageForeground":"#f0883e","symbolIcon.propertyForeground":"#f0883e","symbolIcon.referenceForeground":"#58a6ff","symbolIcon.snippetForeground":"#58a6ff","symbolIcon.stringForeground":"#79c0ff","symbolIcon.structForeground":"#f0883e","symbolIcon.textForeground":"#79c0ff","symbolIcon.typeParameterForeground":"#79c0ff","symbolIcon.unitForeground":"#58a6ff","symbolIcon.variableForeground":"#f0883e","tab.activeBackground":"#0d1117","tab.activeBorder":"#0d1117","tab.activeBorderTop":"#f78166","tab.activeForeground":"#e6edf3","tab.border":"#30363d","tab.hoverBackground":"#0d1117","tab.inactiveBackground":"#010409","tab.inactiveForeground":"#7d8590","tab.unfocusedActiveBorder":"#0d1117","tab.unfocusedActiveBorderTop":"#30363d","tab.unfocusedHoverBackground":"#6e76811a","terminal.ansiBlack":"#484f58","terminal.ansiBlue":"#58a6ff","terminal.ansiBrightBlack":"#6e7681","terminal.ansiBrightBlue":"#79c0ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#56d364","terminal.ansiBrightMagenta":"#d2a8ff","terminal.ansiBrightRed":"#ffa198","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e3b341","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#3fb950","terminal.ansiMagenta":"#bc8cff","terminal.ansiRed":"#ff7b72","terminal.ansiWhite":"#b1bac4","terminal.ansiYellow":"#d29922","terminal.foreground":"#e6edf3","textBlockQuote.background":"#010409","textBlockQuote.border":"#30363d","textCodeBlock.background":"#6e768166","textLink.activeForeground":"#2f81f7","textLink.foreground":"#2f81f7","textPreformat.background":"#6e768166","textPreformat.foreground":"#7d8590","textSeparator.foreground":"#21262d","titleBar.activeBackground":"#0d1117","titleBar.activeForeground":"#7d8590","titleBar.border":"#30363d","titleBar.inactiveBackground":"#010409","titleBar.inactiveForeground":"#7d8590","tree.indentGuidesStroke":"#21262d","welcomePage.buttonBackground":"#21262d","welcomePage.buttonHoverBackground":"#30363d"},"displayName":"GitHub Dark Default","name":"github-dark-default","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#8b949e"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#ff7b72"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#79c0ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#ffa657"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#e6edf3"}},{"scope":"entity.name.function","settings":{"foreground":"#d2a8ff"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#7ee787"}},{"scope":"keyword","settings":{"foreground":"#ff7b72"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#ff7b72"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e6edf3"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#a5d6ff"}},{"scope":"support","settings":{"foreground":"#79c0ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79c0ff"}},{"scope":"variable","settings":{"foreground":"#ffa657"}},{"scope":"variable.other","settings":{"foreground":"#e6edf3"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"carriage-return","settings":{"background":"#ff7b72","content":"^M","fontStyle":"italic underline","foreground":"#f0f6fc"}},{"scope":"message.error","settings":{"foreground":"#ffa198"}},{"scope":"string variable","settings":{"foreground":"#79c0ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#a5d6ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#a5d6ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#7ee787"}},{"scope":"support.constant","settings":{"foreground":"#79c0ff"}},{"scope":"support.variable","settings":{"foreground":"#79c0ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#7ee787"}},{"scope":"meta.module-reference","settings":{"foreground":"#79c0ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffa657"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"markup.quote","settings":{"foreground":"#7ee787"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e6edf3"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e6edf3"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79c0ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#490202","foreground":"#ffa198"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#ff7b72"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#04260f","foreground":"#7ee787"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#5a1e02","foreground":"#ffa657"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79c0ff","foreground":"#161b22"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#d2a8ff"}},{"scope":"meta.diff.header","settings":{"foreground":"#79c0ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"meta.output","settings":{"foreground":"#79c0ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#8b949e"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ffa198"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#a5d6ff"}}],"type":"dark"}'));export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackground":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));export{e as default};
|
|
@@ -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 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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Qt=Object.defineProperty;var F=(s,i)=>Qt(s,"name",{value:i,configurable:!0});import{createRequire as Xt}from"node:module";import tn from"launch-editor-middleware";import{a as we}from"../packem_shared/process-B37didfB.js";const Yt=Xt(import.meta.url),L=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,en=F(s=>{if(typeof L<"u"&&L.versions&&L.versions.node){const[i,a]=L.versions.node.split(".").map(Number);if(i>22||i===22&&a>=3||i===20&&a>=16)return L.getBuiltinModule(s)}return Yt(s)},"__cjs_getBuiltinModule"),{realpathSync:$e}=en("node:fs");var nn=Object.defineProperty,l=F((s,i)=>nn(s,"name",{value:i,configurable:!0}),"s");let ye=l(()=>{var s=(()=>{var i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,g=l((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},"ne"),x=l((e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of u(t))!d.call(e,r)&&r!==n&&i(e,r,{get:l(()=>t[r],"get"),enumerable:!(o=a(t,r))||o.enumerable});return e},"ae"),m=l(e=>x(i({},"__esModule",{value:!0}),e),"oe"),y={};g(y,{zeptomatch:l(()=>me,"zeptomatch")});var b=l(e=>{const t=new Set,n=[e];for(let o=0;o<n.length;o++){const r=n[o];if(t.has(r))continue;t.add(r);const{children:c}=r;if(c?.length)for(let f=0,h=c.length;f<h;f++)n.push(c[f])}return Array.from(t)},"M"),P=l(e=>{let t="";const n=b(e);for(let o=0,r=n.length;o<r;o++){const c=n[o];if(!c.regex)continue;const f=c.regex.flags;if(t||(t=f),t!==f)throw new Error(`Inconsistent RegExp flags used: "${t}" and "${f}"`)}return t},"se"),z=l((e,t,n)=>{const o=n.get(e);if(o!==void 0)return o;const r=e.partial??t;let c="";if(e.regex&&(c+=r?"(?:$|":"",c+=e.regex.source),e.children?.length){const f=D(e.children.map(h=>z(h,t,n)).filter(Boolean));if(f?.length){const h=e.children.some(N=>!N.regex||!(N.partial??t)),w=f.length>1||r&&(!c.length||h);c+=w?r?"(?:$|":"(?:":"",c+=f.join("|"),c+=w?")":""}}return e.regex&&(c+=r?")":""),n.set(e,c),c},"O"),G=l((e,t)=>{const n=new Map,o=b(e);for(let r=o.length-1;r>=0;r--){const c=z(o[r],t,n);if(!(r>0))return c}return""},"ie"),D=l(e=>Array.from(new Set(e)),"ue"),S=l((e,t,n)=>S.compile(e,n).test(t),"R");S.compile=(e,t)=>{const n=t?.partial??!1,o=G(e,n),r=P(e);return new RegExp(`^(?:${o})$`,r)};var Ae=S,Ee=l((e,t)=>{const n=Ae.compile(e,t),o=`${n.source.slice(0,-1)}[\\\\/]?$`,r=n.flags;return new RegExp(o,r)},"le"),ke=Ee,Oe=l(e=>{const t=e.map(o=>o.source).join("|")||"$^",n=e[0]?.flags;return new RegExp(t,n)},"ve"),_e=Oe,ee=l(e=>Array.isArray(e),"j"),W=l(e=>typeof e=="function","_"),Re=l(e=>e.length===0,"he"),Se=(()=>{const{toString:e}=Function.prototype,t=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return n=>(n.length===0||n.length===1)&&t.test(e.call(n))})(),Ie=l(e=>typeof e=="number","de"),Be=l(e=>typeof e=="object"&&e!==null,"xe"),Ce=l(e=>e instanceof RegExp,"me"),We=(()=>{const e=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return t=>e.test(t.source)})(),qe=(()=>{const e=/^[a-zA-Z0-9_-]+$/;return t=>e.test(t.source)&&!t.flags.includes("i")})(),te=l(e=>typeof e=="string","A"),A=l(e=>e===void 0,"f"),Ne=l(e=>{const t=new Map;return n=>{const o=t.get(n);if(o!==void 0)return o;const r=e(n);return t.set(n,r),r}},"ye"),ne=l((e,t,n={})=>{const o={cache:{},input:e,index:0,indexBacktrackMax:0,options:n,output:[]},r=E(t)(o),c=Math.max(o.index,o.indexBacktrackMax);if(r&&o.index===e.length)return o.output;throw new Error(`Failed to parse at index ${c}`)},"I"),p=l((e,t)=>ee(e)?Ze(e,t):te(e)?re(e,t):Le(e,t),"i"),Ze=l((e,t)=>{const n={};for(const o of e){if(o.length!==1)throw new Error(`Invalid character: "${o}"`);const r=o.charCodeAt(0);n[r]=!0}return o=>{const r=o.input;let c=o.index,f=c;for(;f<r.length&&r.charCodeAt(f)in n;)f+=1;if(f>c){if(!A(t)&&!o.options.silent){const h=r.slice(c,f),w=W(t)?t(h,r,`${c}`):t;A(w)||o.output.push(w)}o.index=f}return!0}},"we"),Le=l((e,t)=>{if(qe(e))return re(e.source,t);{const n=e.source,o=e.flags.replace(/y|$/,"y"),r=new RegExp(n,o);return We(e)&&W(t)&&!Se(t)?He(r,t):Fe(r,t)}},"$e"),He=l((e,t)=>n=>{const o=n.index,r=n.input;e.lastIndex=o;const c=e.exec(r);if(c){const f=e.lastIndex;if(!n.options.silent){const h=t(...c,r,`${o}`);A(h)||n.output.push(h)}return n.index=f,!0}else return!1},"Ee"),Fe=l((e,t)=>n=>{const o=n.index,r=n.input;if(e.lastIndex=o,e.test(r)){const c=e.lastIndex;if(!A(t)&&!n.options.silent){const f=W(t)?t(r.slice(o,c),r,`${o}`):t;A(f)||n.output.push(f)}return n.index=c,!0}else return!1},"Ce"),re=l((e,t)=>n=>{const o=n.index,r=n.input;if(r.startsWith(e,o)){if(!A(t)&&!n.options.silent){const c=W(t)?t(e,r,`${o}`):t;A(c)||n.output.push(c)}return n.index+=e.length,!0}else return!1},"F"),J=l((e,t,n,o)=>{const r=E(e),c=t>1;return K(V(se(f=>{let h=0;for(;h<n;){const w=f.index;if(!r(f)||(h+=1,f.index===w))break}return h>=t},c),o))},"k"),oe=l((e,t)=>J(e,0,1,t),"L"),H=l((e,t)=>J(e,0,1/0,t),"$"),Te=l((e,t)=>J(e,1,1/0,t),"Re"),I=l((e,t)=>{const n=e.map(E);return K(V(se(o=>{for(let r=0,c=n.length;r<c;r++)if(!n[r](o))return!1;return!0}),t))},"x"),j=l((e,t)=>{const n=e.map(E);return K(V(o=>{for(let r=0,c=n.length;r<c;r++)if(n[r](o))return!0;return!1},t))},"p"),se=l((e,t=!0,n=!1)=>{const o=E(e);return t?r=>{const c=r.index,f=r.output.length,h=o(r);return!h&&!n&&(r.indexBacktrackMax=Math.max(r.indexBacktrackMax,r.index)),(!h||n)&&(r.index=c,r.output.length!==f&&(r.output.length=f)),h}:o},"q"),V=l((e,t)=>{const n=E(e);return t?o=>{if(o.options.silent)return n(o);const r=o.output.length;if(n(o)){const c=o.output.splice(r,1/0),f=t(c);return A(f)||o.output.push(f),!0}else return!1}:n},"B"),K=(()=>{let e=0;return t=>{const n=E(t),o=e+=1;return r=>{var c;if(r.options.memoization===!1)return n(r);const f=r.index,h=(c=r.cache)[o]||(c[o]={indexMax:-1,queue:[]}),w=h.queue;if(f<=h.indexMax){const Z=h.store||(h.store=new Map);if(w.length){for(let C=0,Jt=w.length;C<Jt;C+=2){const Vt=w[C*2],Kt=w[C*2+1];Z.set(Vt,Kt)}w.length=0}const v=Z.get(f);if(v===!1)return!1;if(Ie(v))return r.index=v,!0;if(v)return r.index=v.index,v.output?.length&&r.output.push(...v.output),!0}const N=r.output.length,Dt=n(r);if(h.indexMax=Math.max(h.indexMax,f),Dt){const Z=r.index,v=r.output.length;if(v>N){const C=r.output.slice(N,v);w.push(f,{index:Z,output:C})}else w.push(f,Z);return!0}else return w.push(f,!1),!1}}})(),le=l(e=>{let t;return n=>(t||(t=E(e())),t(n))},"G"),E=Ne(e=>{if(W(e))return Re(e)?le(e):e;if(te(e)||Ce(e))return p(e);if(ee(e))return I(e);if(Be(e))return j(Object.values(e));throw new Error("Invalid rule")}),O=l(e=>e,"d"),Ue=l(e=>typeof e=="string","ke"),Ge=l(e=>{const t=new WeakMap,n=new WeakMap;return(o,r)=>{const c=r?.partial?n:t,f=c.get(o);if(f!==void 0)return f;const h=e(o,r);return c.set(o,h),h}},"Be"),De=l(e=>{const t={},n={};return(o,r)=>{const c=r?.partial?n:t;return c[o]??(c[o]=e(o,r))}},"Pe"),Je=p(/\\./,O),Ve=p(/./,O),Ke=p(/\*\*\*+/,"*"),Qe=p(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),Xe=p(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Ye=H(j([Je,Ke,Qe,Xe,Ve])),et=Ye,tt=l(e=>ne(e,et,{memoization:!1}).join(""),"Ie"),nt=tt,ie="abcdefghijklmnopqrstuvwxyz",rt=l(e=>{let t="";for(;e>0;){const n=(e-1)%26;t=ie[n]+t,e=Math.floor((e-1)/26)}return t},"Le"),ae=l(e=>{let t=0;for(let n=0,o=e.length;n<o;n++)t=t*26+ie.indexOf(e[n])+1;return t},"V"),Q=l((e,t)=>{if(t<e)return Q(t,e);const n=[];for(;e<=t;)n.push(e++);return n},"b"),ot=l((e,t,n)=>Q(e,t).map(o=>String(o).padStart(n,"0")),"qe"),ce=l((e,t)=>Q(ae(e),ae(t)).map(rt),"W"),$=l(e=>({partial:!1,regex:new RegExp(e,"s"),children:[]}),"c"),q=l(e=>({children:e}),"y"),B=(()=>{const e=l((t,n,o)=>{if(o.has(t))return;o.add(t);const{children:r}=t;if(!r.length)r.push(n);else for(let c=0,f=r.length;c<f;c++)e(r[c],n,o)},"e");return t=>{if(!t.length)return q([]);for(let n=t.length-1;n>=1;n--){const o=new Set,r=t[n-1],c=t[n];e(r,c,o)}return t[0]}})(),k=l(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),st=p(/\\./,$),lt=p(/[$.*+?^(){}[\]\|]/,e=>$(`\\${e}`)),it=p(/[\\\/]/,k),at=p(/[^$.*+?^(){}[\]\|\\\/]+/,$),ct=p(/^(?:!!)*!(.*)$/,(e,t)=>$(`(?!^${me.compile(t).source}$).*?`)),ut=p(/^(!!)+/),ft=j([ct,ut]),pt=p(/\/(\*\*\/)+/,()=>q([B([k(),$(".+?"),k()]),k()])),dt=p(/^(\*\*\/)+/,()=>q([$("^"),B([$(".*?"),k()])])),ht=p(/\/(\*\*)$/,()=>q([B([k(),$(".*?")]),$("$")])),gt=p(/\*\*/,()=>$(".*?")),ue=j([pt,dt,ht,gt]),xt=p(/\*\/(?!\*\*\/|\*$)/,()=>B([$("[^\\\\/]*?"),k()])),mt=p(/\*/,()=>$("[^\\\\/]*")),fe=j([xt,mt]),pe=p("?",()=>$("[^\\\\/]")),$t=p("[",O),wt=p("]",O),yt=p(/[!^]/,"^\\\\/"),bt=p(/[a-z]-[a-z]|[0-9]-[0-9]/i,O),jt=p(/\\./,O),vt=p(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Mt=p(/[\\\/]/,"\\\\/"),Pt=p(/[^$.*+?^(){}[\]\|\\\/]+/,O),zt=j([jt,vt,Mt,bt,Pt]),de=I([$t,oe(yt),H(zt),wt],e=>$(e.join(""))),At=p("{","(?:"),Et=p("}",")"),kt=p(/(\d+)\.\.(\d+)/,(e,t,n)=>ot(+t,+n,Math.min(t.length,n.length)).join("|")),Ot=p(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>ce(t,n).join("|")),_t=p(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>ce(t.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Rt=j([kt,Ot,_t]),he=I([At,Rt,Et],e=>$(e.join(""))),St=p("{"),It=p("}"),Bt=p(","),Ct=p(/\\./,$),Wt=p(/[$.*+?^(){[\]\|]/,e=>$(`\\${e}`)),qt=p(/[\\\/]/,k),Nt=p(/[^$.*+?^(){}[\]\|\\\/,]+/,$),Zt=le(()=>xe),Lt=p("",()=>$("(?:)")),Ht=Te(j([ue,fe,pe,de,he,Zt,Ct,Wt,qt,Nt]),B),ge=j([Ht,Lt]),xe=I([St,oe(I([ge,H(I([Bt,ge]))])),It],q),Ft=H(j([ft,ue,fe,pe,de,he,xe,st,lt,it,at]),B),Tt=Ft,Ut=l(e=>ne(e,Tt,{memoization:!1})[0],"kr"),Gt=Ut,X=l((e,t,n)=>X.compile(e,n).test(t),"N");X.compile=(()=>{const e=De((n,o)=>ke(Gt(nt(n)),o)),t=Ge((n,o)=>_e(n.map(r=>e(r,o))));return(n,o)=>Ue(n)?e(n,o):t(n,o)})();var me=X;return m(y)})();return s.default||s},"_lazyMatch"),Y;const rn=l((s,i)=>(Y||(Y=ye(),ye=null),Y(s,i)),"zeptomatch"),on=/^[A-Z]:\//i,R=l((s="")=>s&&s.replaceAll("\\","/").replace(on,i=>i.toUpperCase()),"normalizeWindowsPath"),sn=/^[/\\]{2}/,ln=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Me=/^[A-Z]:$/i,be=/^\/([A-Z]:)?$/i,an=/.(\.[^./]+)$/,cn=/^[/\\]|^[a-z]:[/\\]/i,un=l(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),je="/",Pe=l((s,i)=>{let a="",u=0,d=-1,g=0,x;for(let m=0;m<=s.length;++m){if(m<s.length)x=s[m];else{if(x==="/")break;x="/"}if(x==="/"){if(!(d===m-1||g===1))if(g===2){if(a.length<2||u!==2||!a.endsWith(".")||a.at(-2)!=="."){if(a.length>2){const y=a.lastIndexOf("/");y===-1?(a="",u=0):(a=a.slice(0,y),u=a.length-1-a.lastIndexOf("/")),d=m,g=0;continue}else if(a.length>0){a="",u=0,d=m,g=0;continue}}i&&(a+=a.length>0?"/..":"..",u=2)}else a.length>0?a+=`/${s.slice(d+1,m)}`:a=s.slice(d+1,m),u=m-d-1;d=m,g=0}else x==="."&&g!==-1?++g:g=-1}return a},"normalizeString"),_=l(s=>ln.test(s),"isAbsolute"),T=l(function(s){if(s.length===0)return".";s=R(s);const i=sn.exec(s),a=_(s),u=s.at(-1)==="/";return s=Pe(s,!a),s.length===0?a?"/":u?"./":".":(u&&(s+="/"),Me.test(s)&&(s+="/"),i?a?`//${s}`:`//./${s}`:a&&!_(s)?`/${s}`:s)},"normalize");l((...s)=>{let i="";for(const a of s)if(a)if(i.length>0){const u=i[i.length-1]==="/",d=a[0]==="/";u&&d?i+=a.slice(1):i+=u||d?a:`/${a}`}else i+=a;return T(i)},"join");const U=l(function(...s){s=s.map(u=>R(u));let i="",a=!1;for(let u=s.length-1;u>=-1&&!a;u--){const d=u>=0?s[u]:un();!d||d.length===0||(i=`${d}/${i}`,a=_(d))}return i=Pe(i,!a),a&&!_(i)?`/${i}`:i.length>0?i:"."},"resolve");l(function(s){return R(s)},"toNamespacedPath");const fn=l(function(s){return an.exec(R(s))?.[1]??""},"extname"),pn=l(function(s,i){const a=U(s).replace(be,"$1").split("/"),u=U(i).replace(be,"$1").split("/");if(u[0][1]===":"&&a[0][1]===":"&&a[0]!==u[0])return u.join("/");const d=[...a];for(const g of d){if(u[0]!==g)break;a.shift(),u.shift()}return[...a.map(()=>".."),...u].join("/")},"relative"),dn=l(s=>{const i=R(s).replace(/\/$/,"").split("/").slice(0,-1);return i.length===1&&Me.test(i[0])&&(i[0]+="/"),i.join("/")||(_(s)?"/":".")},"dirname");l(function(s){const i=[s.root,s.dir,s.base??s.name+s.ext].filter(Boolean);return R(s.root?U(...i):i.join("/"))},"format");const hn=l((s,i)=>{const a=R(s).split("/").pop();return i&&a.endsWith(i)?a.slice(0,-i.length):a},"basename");l(function(s){const i=cn.exec(s)?.[0]?.replaceAll("\\","/")??"",a=hn(s),u=fn(a);return{base:a,dir:dn(s),ext:u,name:a.slice(0,a.length-u.length),root:i}},"parse");l((s,i)=>rn(i,T(s)),"matchesGlob");var gn=Object.defineProperty,M=F((s,i)=>gn(s,"name",{value:i,configurable:!0}),"a");const ve=M(s=>{if(typeof s.status=="function"){s.status(400).send("Failed to open editor");return}s.statusCode=400,s.end("Failed to open editor")},"respond400"),ze=M((s={})=>{const i=M(async u=>{if(String(u.method||"GET").toUpperCase()==="POST")return u.body&&typeof u.body=="object"?u.body:new Promise(g=>{try{let x="";const m=M(b=>{x+=String(b)},"onData"),y=M(()=>{try{g(x?JSON.parse(x):{})}catch{g({})}},"onEnd");u.on("data",m),u.on("end",y),u.on("error",()=>g({}))}catch{g({})}});const d=new URL(u.url||"","http://localhost");return{column:Number(d.searchParams.get("column")||1),editor:d.searchParams.get("editor")||void 0,file:d.searchParams.get("file")||void 0,line:Number(d.searchParams.get("line")||1)}},"parseRequestBody"),a=M((u,d,g)=>{if(!u)return;const x=_(u)?u:U(d,u);if(!g)try{const m=$e(d),y=$e(x),b=T(m),P=T(y),z=we()==="win32"||we()==="darwin",G=z?b.toLowerCase():b,D=z?P.toLowerCase():P,S=pn(b,P);if(S.startsWith("..")||_(S)||z&&!D.startsWith(G))return}catch{const m=d.endsWith(je)?d:d+je;if(!x.startsWith(m))return}return x},"validateFilePath");return M(async function(u,d,g){try{const x=await i(u),m=s.projectRoot??process.cwd(),y=a(x.file,m,s.allowOutsideProject??!1);if(!y){ve(d);return}const b=tn(x.editor,m),P=new URLSearchParams({column:String(x.column??1),file:y,line:String(x.line??1)});if(x.editor&&P.set("editor",String(x.editor)),u.url=`/?${P.toString()}`,typeof g=="function"){b(u,d,g);return}await new Promise(z=>{b(u,d,()=>{z()})})}catch{ve(d)}},"universalHandler")},"createOpenInEditorMiddleware"),yn=M((s={})=>{const i=ze(s);return async(a,u)=>i(a,u)},"createNodeHttpHandler"),bn=M((s={})=>ze(s),"createExpressHandler");export{bn as createExpressHandler,yn as createNodeHttpHandler,ze as createOpenInEditorMiddleware};
|
|
1
|
+
var Yt=Object.defineProperty;var T=(s,a)=>Yt(s,"name",{value:a,configurable:!0});import{createRequire as en}from"node:module";import rn from"launch-editor-middleware";import{a as be}from"../packem_shared/process-B37didfB.js";const tn=en(import.meta.url),H=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nn=T(s=>{if(typeof H<"u"&&H.versions&&H.versions.node){const[a,i]=H.versions.node.split(".").map(Number);if(a>22||a===22&&i>=3||a===20&&i>=16)return H.getBuiltinModule(s)}return tn(s)},"__cjs_getBuiltinModule"),{realpathSync:we}=nn("node:fs");var on=Object.defineProperty,sn=T((s,a)=>on(s,"name",{value:a,configurable:!0}),"$e"),an=Object.defineProperty,te=sn((s,a)=>an(s,"name",{value:a,configurable:!0}),"W"),ln=Object.defineProperty,c=te((s,a)=>ln(s,"name",{value:a,configurable:!0}),"u$1");let ve=c(()=>{var s=(()=>{var a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,g=c((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},"ne"),x=c((e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of u(t))!d.call(e,r)&&r!==n&&a(e,r,{get:c(()=>t[r],"get"),enumerable:!(o=i(t,r))||o.enumerable});return e},"ae"),m=c(e=>x(a({},"__esModule",{value:!0}),e),"oe"),b={};g(b,{zeptomatch:c(()=>ye,"zeptomatch")});var v=c(e=>{const t=new Set,n=[e];for(let o=0;o<n.length;o++){const r=n[o];if(t.has(r))continue;t.add(r);const{children:l}=r;if(l?.length)for(let f=0,h=l.length;f<h;f++)n.push(l[f])}return Array.from(t)},"M"),O=c(e=>{let t="";const n=v(e);for(let o=0,r=n.length;o<r;o++){const l=n[o];if(!l.regex)continue;const f=l.regex.flags;if(t||(t=f),t!==f)throw new Error(`Inconsistent RegExp flags used: "${t}" and "${f}"`)}return t},"se"),_=c((e,t,n)=>{const o=n.get(e);if(o!==void 0)return o;const r=e.partial??t;let l="";if(e.regex&&(l+=r?"(?:$|":"",l+=e.regex.source),e.children?.length){const f=J(e.children.map(h=>_(h,t,n)).filter(Boolean));if(f?.length){const h=e.children.some(L=>!L.regex||!(L.partial??t)),y=f.length>1||r&&(!l.length||h);l+=y?r?"(?:$|":"(?:":"",l+=f.join("|"),l+=y?")":""}}return e.regex&&(l+=r?")":""),n.set(e,l),l},"O"),D=c((e,t)=>{const n=new Map,o=v(e);for(let r=o.length-1;r>=0;r--){const l=_(o[r],t,n);if(!(r>0))return l}return""},"ie"),J=c(e=>Array.from(new Set(e)),"ue"),I=c((e,t,n)=>I.compile(e,n).test(t),"R");I.compile=(e,t)=>{const n=t?.partial??!1,o=D(e,n),r=O(e);return new RegExp(`^(?:${o})$`,r)};var Ae=I,Ee=c((e,t)=>{const n=Ae.compile(e,t),o=`${n.source.slice(0,-1)}[\\\\/]?$`,r=n.flags;return new RegExp(o,r)},"le"),Re=Ee,Se=c(e=>{const t=e.map(o=>o.source).join("|")||"$^",n=e[0]?.flags;return new RegExp(t,n)},"ve"),ke=Se,ne=c(e=>Array.isArray(e),"j"),q=c(e=>typeof e=="function","_"),Ie=c(e=>e.length===0,"he"),Be=(()=>{const{toString:e}=Function.prototype,t=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return n=>(n.length===0||n.length===1)&&t.test(e.call(n))})(),We=c(e=>typeof e=="number","de"),Ce=c(e=>typeof e=="object"&&e!==null,"xe"),qe=c(e=>e instanceof RegExp,"me"),Ne=(()=>{const e=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return t=>e.test(t.source)})(),Le=(()=>{const e=/^[a-zA-Z0-9_-]+$/;return t=>e.test(t.source)&&!t.flags.includes("i")})(),re=c(e=>typeof e=="string","A"),z=c(e=>e===void 0,"f"),Ze=c(e=>{const t=new Map;return n=>{const o=t.get(n);if(o!==void 0)return o;const r=e(n);return t.set(n,r),r}},"ye"),oe=c((e,t,n={})=>{const o={cache:{},input:e,index:0,indexBacktrackMax:0,options:n,output:[]},r=A(t)(o),l=Math.max(o.index,o.indexBacktrackMax);if(r&&o.index===e.length)return o.output;throw new Error(`Failed to parse at index ${l}`)},"I"),p=c((e,t)=>ne(e)?He(e,t):re(e)?se(e,t):Fe(e,t),"i"),He=c((e,t)=>{const n={};for(const o of e){if(o.length!==1)throw new Error(`Invalid character: "${o}"`);const r=o.charCodeAt(0);n[r]=!0}return o=>{const r=o.input;let l=o.index,f=l;for(;f<r.length&&r.charCodeAt(f)in n;)f+=1;if(f>l){if(!z(t)&&!o.options.silent){const h=r.slice(l,f),y=q(t)?t(h,r,`${l}`):t;z(y)||o.output.push(y)}o.index=f}return!0}},"we"),Fe=c((e,t)=>{if(Le(e))return se(e.source,t);{const n=e.source,o=e.flags.replace(/y|$/,"y"),r=new RegExp(n,o);return Ne(e)&&q(t)&&!Be(t)?Te(r,t):Ue(r,t)}},"$e"),Te=c((e,t)=>n=>{const o=n.index,r=n.input;e.lastIndex=o;const l=e.exec(r);if(l){const f=e.lastIndex;if(!n.options.silent){const h=t(...l,r,`${o}`);z(h)||n.output.push(h)}return n.index=f,!0}else return!1},"Ee"),Ue=c((e,t)=>n=>{const o=n.index,r=n.input;if(e.lastIndex=o,e.test(r)){const l=e.lastIndex;if(!z(t)&&!n.options.silent){const f=q(t)?t(r.slice(o,l),r,`${o}`):t;z(f)||n.output.push(f)}return n.index=l,!0}else return!1},"Ce"),se=c((e,t)=>n=>{const o=n.index,r=n.input;if(r.startsWith(e,o)){if(!z(t)&&!n.options.silent){const l=q(t)?t(e,r,`${o}`):t;z(l)||n.output.push(l)}return n.index+=e.length,!0}else return!1},"F"),V=c((e,t,n,o)=>{const r=A(e),l=t>1;return Q(K(ie(f=>{let h=0;for(;h<n;){const y=f.index;if(!r(f)||(h+=1,f.index===y))break}return h>=t},l),o))},"k"),ae=c((e,t)=>V(e,0,1,t),"L"),F=c((e,t)=>V(e,0,1/0,t),"$"),Ge=c((e,t)=>V(e,1,1/0,t),"Re"),B=c((e,t)=>{const n=e.map(A);return Q(K(ie(o=>{for(let r=0,l=n.length;r<l;r++)if(!n[r](o))return!1;return!0}),t))},"x"),j=c((e,t)=>{const n=e.map(A);return Q(K(o=>{for(let r=0,l=n.length;r<l;r++)if(n[r](o))return!0;return!1},t))},"p"),ie=c((e,t=!0,n=!1)=>{const o=A(e);return t?r=>{const l=r.index,f=r.output.length,h=o(r);return!h&&!n&&(r.indexBacktrackMax=Math.max(r.indexBacktrackMax,r.index)),(!h||n)&&(r.index=l,r.output.length!==f&&(r.output.length=f)),h}:o},"q"),K=c((e,t)=>{const n=A(e);return t?o=>{if(o.options.silent)return n(o);const r=o.output.length;if(n(o)){const l=o.output.splice(r,1/0),f=t(l);return z(f)||o.output.push(f),!0}else return!1}:n},"B"),Q=(()=>{let e=0;return t=>{const n=A(t),o=e+=1;return r=>{var l;if(r.options.memoization===!1)return n(r);const f=r.index,h=(l=r.cache)[o]||(l[o]={indexMax:-1,queue:[]}),y=h.queue;if(f<=h.indexMax){const Z=h.store||(h.store=new Map);if(y.length){for(let C=0,Kt=y.length;C<Kt;C+=2){const Qt=y[C*2],Xt=y[C*2+1];Z.set(Qt,Xt)}y.length=0}const P=Z.get(f);if(P===!1)return!1;if(We(P))return r.index=P,!0;if(P)return r.index=P.index,P.output?.length&&r.output.push(...P.output),!0}const L=r.output.length,Vt=n(r);if(h.indexMax=Math.max(h.indexMax,f),Vt){const Z=r.index,P=r.output.length;if(P>L){const C=r.output.slice(L,P);y.push(f,{index:Z,output:C})}else y.push(f,Z);return!0}else return y.push(f,!1),!1}}})(),le=c(e=>{let t;return n=>(t||(t=A(e())),t(n))},"G"),A=Ze(e=>{if(q(e))return Ie(e)?le(e):e;if(re(e)||qe(e))return p(e);if(ne(e))return B(e);if(Ce(e))return j(Object.values(e));throw new Error("Invalid rule")}),R=c(e=>e,"d"),De=c(e=>typeof e=="string","ke"),Je=c(e=>{const t=new WeakMap,n=new WeakMap;return(o,r)=>{const l=r?.partial?n:t,f=l.get(o);if(f!==void 0)return f;const h=e(o,r);return l.set(o,h),h}},"Be"),Ve=c(e=>{const t={},n={};return(o,r)=>{const l=r?.partial?n:t;return l[o]??(l[o]=e(o,r))}},"Pe"),Ke=p(/\\./,R),Qe=p(/./,R),Xe=p(/\*\*\*+/,"*"),Ye=p(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),et=p(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),tt=F(j([Ke,Xe,Ye,et,Qe])),nt=tt,rt=c(e=>oe(e,nt,{memoization:!1}).join(""),"Ie"),ot=rt,ce="abcdefghijklmnopqrstuvwxyz",st=c(e=>{let t="";for(;e>0;){const n=(e-1)%26;t=ce[n]+t,e=Math.floor((e-1)/26)}return t},"Le"),ue=c(e=>{let t=0;for(let n=0,o=e.length;n<o;n++)t=t*26+ce.indexOf(e[n])+1;return t},"V"),X=c((e,t)=>{if(t<e)return X(t,e);const n=[];for(;e<=t;)n.push(e++);return n},"b"),at=c((e,t,n)=>X(e,t).map(o=>String(o).padStart(n,"0")),"qe"),fe=c((e,t)=>X(ue(e),ue(t)).map(st),"W"),$=c(e=>({partial:!1,regex:new RegExp(e,"s"),children:[]}),"c"),N=c(e=>({children:e}),"y"),W=(()=>{const e=c((t,n,o)=>{if(o.has(t))return;o.add(t);const{children:r}=t;if(!r.length)r.push(n);else for(let l=0,f=r.length;l<f;l++)e(r[l],n,o)},"e");return t=>{if(!t.length)return N([]);for(let n=t.length-1;n>=1;n--){const o=new Set,r=t[n-1],l=t[n];e(r,l,o)}return t[0]}})(),E=c(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),it=p(/\\./,$),lt=p(/[$.*+?^(){}[\]\|]/,e=>$(`\\${e}`)),ct=p(/[\\\/]/,E),ut=p(/[^$.*+?^(){}[\]\|\\\/]+/,$),ft=p(/^(?:!!)*!(.*)$/,(e,t)=>$(`(?!^${ye.compile(t).source}$).*?`)),pt=p(/^(!!)+/),dt=j([ft,pt]),ht=p(/\/(\*\*\/)+/,()=>N([W([E(),$(".+?"),E()]),E()])),gt=p(/^(\*\*\/)+/,()=>N([$("^"),W([$(".*?"),E()])])),xt=p(/\/(\*\*)$/,()=>N([W([E(),$(".*?")]),$("$")])),mt=p(/\*\*/,()=>$(".*?")),pe=j([ht,gt,xt,mt]),$t=p(/\*\/(?!\*\*\/|\*$)/,()=>W([$("[^\\\\/]*?"),E()])),yt=p(/\*/,()=>$("[^\\\\/]*")),de=j([$t,yt]),he=p("?",()=>$("[^\\\\/]")),wt=p("[",R),bt=p("]",R),vt=p(/[!^]/,"^\\\\/"),jt=p(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),Pt=p(/\\./,R),Mt=p(/[$.*+?^(){}[\|]/,e=>`\\${e}`),Ot=p(/[\\\/]/,"\\\\/"),_t=p(/[^$.*+?^(){}[\]\|\\\/]+/,R),zt=j([Pt,Mt,Ot,jt,_t]),ge=B([wt,ae(vt),F(zt),bt],e=>$(e.join(""))),At=p("{","(?:"),Et=p("}",")"),Rt=p(/(\d+)\.\.(\d+)/,(e,t,n)=>at(+t,+n,Math.min(t.length,n.length)).join("|")),St=p(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>fe(t,n).join("|")),kt=p(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>fe(t.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),It=j([Rt,St,kt]),xe=B([At,It,Et],e=>$(e.join(""))),Bt=p("{"),Wt=p("}"),Ct=p(","),qt=p(/\\./,$),Nt=p(/[$.*+?^(){[\]\|]/,e=>$(`\\${e}`)),Lt=p(/[\\\/]/,E),Zt=p(/[^$.*+?^(){}[\]\|\\\/,]+/,$),Ht=le(()=>$e),Ft=p("",()=>$("(?:)")),Tt=Ge(j([pe,de,he,ge,xe,Ht,qt,Nt,Lt,Zt]),W),me=j([Tt,Ft]),$e=B([Bt,ae(B([me,F(B([Ct,me]))])),Wt],N),Ut=F(j([dt,pe,de,he,ge,xe,$e,it,lt,ct,ut]),W),Gt=Ut,Dt=c(e=>oe(e,Gt,{memoization:!1})[0],"kr"),Jt=Dt,Y=c((e,t,n)=>Y.compile(e,n).test(t),"N");Y.compile=(()=>{const e=Ve((n,o)=>Re(Jt(ot(n)),o)),t=Je((n,o)=>ke(n.map(r=>e(r,o))));return(n,o)=>De(n)?e(n,o):t(n,o)})();var ye=Y;return m(b)})();return s.default||s},"_lazyMatch"),ee;const cn=c((s,a)=>(ee||(ee=ve(),ve=null),ee(s,a)),"default");var un=Object.defineProperty,fn=te((s,a)=>un(s,"name",{value:a,configurable:!0}),"t$1");const pn=/^[A-Z]:\//i,k=fn((s="")=>s&&s.replaceAll("\\","/").replace(pn,a=>a.toUpperCase()),"normalizeWindowsPath");var dn=Object.defineProperty,w=te((s,a)=>dn(s,"name",{value:a,configurable:!0}),"r");const hn=/^[/\\]{2}/,gn=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Oe=/^[A-Z]:$/i,je=/^\/([A-Z]:)?$/i,xn=/.(\.[^./]+)$/,mn=/^[/\\]|^[a-z]:[/\\]/i,$n=w(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Pe="/",_e=w((s,a)=>{let i="",u=0,d=-1,g=0,x;for(let m=0;m<=s.length;++m){if(m<s.length)x=s[m];else{if(x==="/")break;x="/"}if(x==="/"){if(!(d===m-1||g===1))if(g===2){if(i.length<2||u!==2||!i.endsWith(".")||i.at(-2)!=="."){if(i.length>2){const b=i.lastIndexOf("/");b===-1?(i="",u=0):(i=i.slice(0,b),u=i.length-1-i.lastIndexOf("/")),d=m,g=0;continue}else if(i.length>0){i="",u=0,d=m,g=0;continue}}a&&(i+=i.length>0?"/..":"..",u=2)}else i.length>0?i+=`/${s.slice(d+1,m)}`:i=s.slice(d+1,m),u=m-d-1;d=m,g=0}else x==="."&&g!==-1?++g:g=-1}return i},"normalizeString"),S=w(s=>gn.test(s),"isAbsolute"),U=w(function(s){if(s.length===0)return".";s=k(s);const a=hn.exec(s),i=S(s),u=s.at(-1)==="/";return s=_e(s,!i),s.length===0?i?"/":u?"./":".":(u&&(s+="/"),Oe.test(s)&&(s+="/"),a?i?`//${s}`:`//./${s}`:i&&!S(s)?`/${s}`:s)},"normalize");w((...s)=>{let a="";for(const i of s)if(i)if(a.length>0){const u=a[a.length-1]==="/",d=i[0]==="/";u&&d?a+=i.slice(1):a+=u||d?i:`/${i}`}else a+=i;return U(a)},"join");const G=w(function(...s){s=s.map(u=>k(u));let a="",i=!1;for(let u=s.length-1;u>=-1&&!i;u--){const d=u>=0?s[u]:$n();!d||d.length===0||(a=`${d}/${a}`,i=S(d))}return a=_e(a,!i),i&&!S(a)?`/${a}`:a.length>0?a:"."},"resolve");w(function(s){return k(s)},"toNamespacedPath");const yn=w(function(s){return xn.exec(k(s))?.[1]??""},"extname"),wn=w(function(s,a){const i=G(s).replace(je,"$1").split("/"),u=G(a).replace(je,"$1").split("/");if(u[0][1]===":"&&i[0][1]===":"&&i[0]!==u[0])return u.join("/");const d=[...i];for(const g of d){if(u[0]!==g)break;i.shift(),u.shift()}return[...i.map(()=>".."),...u].join("/")},"relative"),bn=w(s=>{const a=k(s).replace(/\/$/,"").split("/").slice(0,-1);return a.length===1&&Oe.test(a[0])&&(a[0]+="/"),a.join("/")||(S(s)?"/":".")},"dirname");w(function(s){const a=[s.root,s.dir,s.base??s.name+s.ext].filter(Boolean);return k(s.root?G(...a):a.join("/"))},"format");const vn=w((s,a)=>{const i=k(s).split("/").pop();return a&&i.endsWith(a)?i.slice(0,-a.length):i},"basename");w(function(s){const a=mn.exec(s)?.[0]?.replaceAll("\\","/")??"",i=vn(s),u=yn(i);return{base:i,dir:bn(s),ext:u,name:i.slice(0,i.length-u.length),root:a}},"parse");w((s,a)=>cn(a,U(s)),"matchesGlob");var jn=Object.defineProperty,M=T((s,a)=>jn(s,"name",{value:a,configurable:!0}),"a");const Me=M(s=>{if(typeof s.status=="function"){s.status(400).send("Failed to open editor");return}s.statusCode=400,s.end("Failed to open editor")},"respond400"),ze=M((s={})=>{const a=M(async u=>{if(String(u.method||"GET").toUpperCase()==="POST")return u.body&&typeof u.body=="object"?u.body:new Promise(g=>{try{let x="";const m=M(v=>{x+=String(v)},"onData"),b=M(()=>{try{g(x?JSON.parse(x):{})}catch{g({})}},"onEnd");u.on("data",m),u.on("end",b),u.on("error",()=>g({}))}catch{g({})}});const d=new URL(u.url||"","http://localhost");return{column:Number(d.searchParams.get("column")||1),editor:d.searchParams.get("editor")||void 0,file:d.searchParams.get("file")||void 0,line:Number(d.searchParams.get("line")||1)}},"parseRequestBody"),i=M((u,d,g)=>{if(!u)return;const x=S(u)?u:G(d,u);if(!g)try{const m=we(d),b=we(x),v=U(m),O=U(b),_=be()==="win32"||be()==="darwin",D=_?v.toLowerCase():v,J=_?O.toLowerCase():O,I=wn(v,O);if(I.startsWith("..")||S(I)||_&&!J.startsWith(D))return}catch{const m=d.endsWith(Pe)?d:d+Pe;if(!x.startsWith(m))return}return x},"validateFilePath");return M(async function(u,d,g){try{const x=await a(u),m=s.projectRoot??process.cwd(),b=i(x.file,m,s.allowOutsideProject??!1);if(!b){Me(d);return}const v=rn(x.editor,m),O=new URLSearchParams({column:String(x.column??1),file:b,line:String(x.line??1)});if(x.editor&&O.set("editor",String(x.editor)),u.url=`/?${O.toString()}`,typeof g=="function"){v(u,d,g);return}await new Promise(_=>{v(u,d,()=>{_()})})}catch{Me(d)}},"universalHandler")},"createOpenInEditorMiddleware"),zn=M((s={})=>{const a=ze(s);return async(i,u)=>a(i,u)},"createNodeHttpHandler"),An=M((s={})=>ze(s),"createExpressHandler");export{An as createExpressHandler,zn as createNodeHttpHandler,ze as createOpenInEditorMiddleware};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/ono",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "Ono is an error-parsing library that pretty prints JavaScript errors on a web page or the terminal.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visulima",
|
|
@@ -94,42 +94,42 @@
|
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@shikijs/langs": "^3.19.0",
|
|
97
|
-
"@
|
|
98
|
-
"
|
|
99
|
-
"isomorphic-dompurify": "^2.33.0",
|
|
97
|
+
"@visulima/error": "6.0.0-alpha.2",
|
|
98
|
+
"isomorphic-dompurify": "^2.34.0",
|
|
100
99
|
"launch-editor-middleware": "2.12.0",
|
|
101
100
|
"shiki": "^3.19.0"
|
|
102
101
|
},
|
|
103
102
|
"devDependencies": {
|
|
104
|
-
"@anolilab/eslint-config": "^
|
|
105
|
-
"@anolilab/prettier-config": "^
|
|
103
|
+
"@anolilab/eslint-config": "^17.0.0",
|
|
104
|
+
"@anolilab/prettier-config": "^7.0.0",
|
|
106
105
|
"@anolilab/semantic-release-preset": "^12.1.2",
|
|
107
106
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
108
107
|
"@eslint/css": "0.14.1",
|
|
108
|
+
"@shikijs/themes": "^3.19.0",
|
|
109
109
|
"@tailwindcss/forms": "^0.5.10",
|
|
110
110
|
"@tailwindcss/node": "^4.1.17",
|
|
111
111
|
"@tailwindcss/oxide": "^4.1.17",
|
|
112
112
|
"@tailwindcss/typography": "^0.5.19",
|
|
113
113
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
114
114
|
"@types/http-errors": "^2.0.5",
|
|
115
|
-
"@types/node": "
|
|
115
|
+
"@types/node": "25.0.0",
|
|
116
116
|
"@visulima/packem": "2.0.0-alpha.40",
|
|
117
|
-
"@visulima/path": "3.0.0-alpha.
|
|
117
|
+
"@visulima/path": "3.0.0-alpha.3",
|
|
118
118
|
"@vitest/coverage-v8": "^4.0.15",
|
|
119
119
|
"cssnano": "7.1.2",
|
|
120
120
|
"esbuild": "0.27.1",
|
|
121
121
|
"eslint": "^9.39.1",
|
|
122
122
|
"http-errors": "^2.0.1",
|
|
123
|
-
"lucide-static": "^0.
|
|
123
|
+
"lucide-static": "^0.559.0",
|
|
124
124
|
"marked": "^17.0.1",
|
|
125
125
|
"node-mocks-http": "^1.17.2",
|
|
126
126
|
"openai": "6.10.0",
|
|
127
127
|
"prettier": "^3.7.4",
|
|
128
128
|
"prettier-plugin-tailwindcss": "0.7.2",
|
|
129
|
-
"publint": "^0.3.
|
|
129
|
+
"publint": "^0.3.16",
|
|
130
130
|
"rimraf": "^6.1.2",
|
|
131
131
|
"semantic-release": "^25.0.2",
|
|
132
|
-
"sort-package-json": "^3.5.
|
|
132
|
+
"sort-package-json": "^3.5.1",
|
|
133
133
|
"tailwind-csstree": "0.1.4",
|
|
134
134
|
"tailwindcss": "^4.1.17",
|
|
135
135
|
"typescript": "^5.9.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var D=Object.defineProperty;var m=(t,e)=>D(t,"name",{value:e,configurable:!0});import p from"isomorphic-dompurify";var v=Object.defineProperty,i=m((t,e)=>v(t,"name",{value:e,configurable:!0}),"e");const w=["http://","https://","/","./","../"],h="#",f={'"':""","&":"&","'":"'","<":"<",">":">"},y=/^[\w+/-]+={0,2}$/,n=i(t=>String(t??"").trim(),"toString"),u=i(t=>t.replaceAll(/[&<>"']/g,e=>f[e]),"escapeHtml"),C=i(t=>{try{return p.sanitize(n(t))}catch{return u(n(t))}},"sanitizeHtml"),H=i(t=>{const e=n(t);if(!e)return"";try{return p.sanitize(e).replaceAll('"',""").replaceAll("'","'")}catch{return u(e)}},"sanitizeAttribute"),z=i(t=>{const e=n(t);if(!e)return h;try{const r=p.sanitize(e),s=r.toLowerCase();return w.some(a=>s.startsWith(a))?r:h}catch{return h}},"sanitizeUrlAttribute"),A=i(t=>{const e=n(t);if(!e)return"";try{return p.sanitize(e,{ADD_ATTR:["class","style"]})}catch{return C(e)}},"sanitizeCodeHtml"),F=i(t=>{const e=n(t);if(e)return y.test(e)?e:void 0},"sanitizeCspNonce"),j=i((t={})=>{if(!t||typeof t!="object")return{};try{return{...t,cspNonce:F(t.cspNonce),openInEditorUrl:t.openInEditorUrl?z(t.openInEditorUrl):void 0}}catch{return{...t,cspNonce:void 0,openInEditorUrl:void 0}}},"sanitizeOptions");var b=Object.defineProperty,o=m((t,e)=>b(t,"name",{value:e,configurable:!0}),"r");let c,l;const x=o(async(t=[])=>{try{const[e,r]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:s}=e,{createJavaScriptRegexEngine:a}=r,d=await s({themes:[import("@shikijs/themes/github-dark-default"),import("@shikijs/themes/github-light")],langs:[import("@shikijs/langs/javascript"),import("@shikijs/langs/typescript"),import("@shikijs/langs/jsx"),import("@shikijs/langs/tsx"),import("@shikijs/langs/json"),import("@shikijs/langs/jsonc"),import("@shikijs/langs/xml"),import("@shikijs/langs/sql"),import("@shikijs/langs/bash"),import("@shikijs/langs/shell"),import("@shikijs/langs/markdown"),import("@shikijs/langs/mdx"),import("@shikijs/langs/html"),import("@shikijs/langs/css"),import("@shikijs/langs/scss"),import("@shikijs/langs/less"),import("@shikijs/langs/sass"),import("@shikijs/langs/stylus"),import("@shikijs/langs/styl"),...t],engine:a()}),g=d;return l=o(()=>{try{d?.dispose?.()}catch{}c=void 0},"disposeFn"),g}catch{const{createHighlighter:e}=await import("shiki"),r=await e({langs:["javascript","typescript","jsx","tsx","json","jsonc","xml","sql","bash","shell","markdown","mdx"],themes:["github-dark-default","github-light"]});return l=o(()=>{try{r?.dispose?.()}catch{}c=void 0},"disposeFn"),r}},"createSingletonHighlighter"),U=o(async(t=[])=>(c||(c=x(t)),c),"getHighlighter");o(async()=>{try{l&&(l(),l=void 0)}catch{}},"disposeHighlighter");o((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,r){const s=t.find(a=>a.line===r);return s?.classes&&this.addClassToHast(e,s.classes),e}}),"transformerCompactLineOptions");const $="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",N="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,F as b,U as c,z as d,$ as e,j as f,A as g,N as n,C as s};
|