@e-llm-studio/requirement-ai 0.0.351-alpha.0 → 0.0.351
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/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +2 -0
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +2 -0
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +2 -0
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/service/redlineService.js +1 -1
- package/dist/cjs/utils/tagHelper.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +2 -0
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map +1 -0
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +2 -0
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js.map +1 -0
- package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +2 -0
- package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js.map +1 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/redlineService.js +1 -1
- package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +2 -33
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +1 -3
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +1 -5
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts +0 -3
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +0 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +2 -23
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +0 -52
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +0 -4
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.d.ts +0 -61
- package/dist/types/src/service/redlineService.d.ts.map +1 -1
- package/dist/types/src/utils/tagHelper.d.ts +0 -9
- package/dist/types/src/utils/tagHelper.d.ts.map +1 -1
- package/dist/utils/tagHelper.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js +0 -2
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js +0 -2
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js +0 -2
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +0 -2
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +0 -1
- package/dist/cjs/features/RequirementAI/utils/exponential-retry.js +0 -2
- package/dist/cjs/features/RequirementAI/utils/exponential-retry.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +0 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js +0 -2
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js.map +0 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js +0 -2
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js.map +0 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js +0 -2
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js.map +0 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +0 -2
- package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +0 -1
- package/dist/features/RequirementAI/utils/exponential-retry.js +0 -2
- package/dist/features/RequirementAI/utils/exponential-retry.js.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.d.ts +0 -5
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditEdgeCases.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditEdgeCases.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.d.ts +0 -16
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableStructure.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableStructure.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +0 -8
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts +0 -58
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.d.ts +0 -14
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts +0 -14
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts +0 -3
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.d.ts +0 -4
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts +0 -86
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts +0 -7
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/randomEditSerialization.audit.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/randomEditSerialization.audit.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.d.ts +0 -15
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/serializationPreservation.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/serializationPreservation.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableMarkdownReviewRoundTrip.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableMarkdownReviewRoundTrip.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingFix.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingFix.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingIssue.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingIssue.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingSample.fixture.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingSample.fixture.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingValidation.test.d.ts +0 -2
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingValidation.test.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.d.ts +0 -13
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/index.d.ts +0 -3
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/index.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.d.ts +0 -30
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +0 -3006
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts +0 -9
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts.map +0 -1
- package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts +0 -12
- package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts.map +0 -1
|
@@ -36,7 +36,6 @@ export type { AppModCitationRendererProps, CodeLinkConfig, } from "./features/Re
|
|
|
36
36
|
export type { ReadFileCitationStyleGroup, RCACitationStyleGroup, AppModCitationStyleGroup, } from "./features/RequirementAI/types/aiReasoning.type";
|
|
37
37
|
export { default as RequirementAIWrapper } from "./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper";
|
|
38
38
|
export { useRequirementAI } from "./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper";
|
|
39
|
-
export { deleteRedlineDocument } from "./service/redlineService";
|
|
40
39
|
export { default as UserStoryScreen } from "./features/RequirementAI/components/story-screen/UserStoryScreen";
|
|
41
40
|
export { default as UserStoryApprovalScreen } from "./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen";
|
|
42
41
|
export { default as RichTextEditor } from "./features/RequirementAI/components/RichTextEditor/RichTextEditor";
|
|
@@ -51,10 +50,10 @@ export { useStreamContentHandler } from "./features/RequirementAI/hooks/useStrea
|
|
|
51
50
|
export { useOnDemandCitation } from "./features/RequirementAI/hooks/useOnDemandCitation";
|
|
52
51
|
export { processAIReasoningFromBlocks, extractBlockStreams, processUserStoryValue, extractDescription } from "./features/RequirementAI/utils/proccess-stream.utils";
|
|
53
52
|
export type { IUserStory } from "./features/RequirementAI/interfaces/userstory.interface";
|
|
54
|
-
export type { UserStoryCitations, ImageCitationsForFile, FileImageData, IChatHistoryItem, IBigEnoughBlock
|
|
53
|
+
export type { UserStoryCitations, ImageCitationsForFile, FileImageData, IChatHistoryItem, IBigEnoughBlock } from "./features/RequirementAI/interfaces/citation.interface";
|
|
55
54
|
export type { PartialRequirementContentProps } from "./features/RequirementAI/components/cra/PartialRequirementContent";
|
|
56
55
|
export { default as PartialRequirementContent } from "./features/RequirementAI/components/cra/PartialRequirementContent";
|
|
57
|
-
export type {
|
|
56
|
+
export type { RequirementAIWrapperProps } from "./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper";
|
|
58
57
|
export type { TAIReasoning, AiReasoningCitationStyles, AiReasoningContentStyles, AiReasoningCustomStyles, StormeeCitationStyles, VideoPlayerStyles, WaveformCitationStyles, UserStoryIcons, MarkdownCustomStyles, ExpandedOLCustomStyles, AiReasonAccordionStyles, SearchWaveformStyles, CitationStyleGroup, ImageCitationStyles, FileCitationStyles, } from "./features/RequirementAI/types/aiReasoning.type";
|
|
59
58
|
export type { UserStoryWithCitationCustomStyles } from "./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation";
|
|
60
59
|
export type { RequirementAICustomStyles } from "./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,+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C3G,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,iFAAiF,CAAC;AAEjI,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,6EAA6E,CAAC"}
|
|
@@ -1,54 +1,3 @@
|
|
|
1
|
-
export declare const buildCreateRedlineDocumentRequestPayload: (payload: {
|
|
2
|
-
userName: string;
|
|
3
|
-
userEmail: string;
|
|
4
|
-
redlineConfigId: string;
|
|
5
|
-
changelogConfigId: string;
|
|
6
|
-
artifactId: string;
|
|
7
|
-
inputData: any;
|
|
8
|
-
comparisonId: string;
|
|
9
|
-
baseApiUrl: string;
|
|
10
|
-
documentTitle?: string;
|
|
11
|
-
documentType?: string;
|
|
12
|
-
documentSummary?: string;
|
|
13
|
-
documentFileName?: string;
|
|
14
|
-
documentOwner?: string;
|
|
15
|
-
}) => {
|
|
16
|
-
document_owner?: string | undefined;
|
|
17
|
-
document_file_name?: string | undefined;
|
|
18
|
-
document_summary?: string | undefined;
|
|
19
|
-
document_type?: string | undefined;
|
|
20
|
-
document_title?: string | undefined;
|
|
21
|
-
user_name: string;
|
|
22
|
-
user_email: string;
|
|
23
|
-
redline_config_id: string;
|
|
24
|
-
changelog_config_id: string;
|
|
25
|
-
artifact_id: string;
|
|
26
|
-
input_data: any;
|
|
27
|
-
document_metadata: {
|
|
28
|
-
comparison_id: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const buildUpdateRedlineDocumentRequestPayload: (payload: {
|
|
32
|
-
documentId: string;
|
|
33
|
-
userEmail: string;
|
|
34
|
-
userName: string;
|
|
35
|
-
sectionId: string;
|
|
36
|
-
updatedContent: string;
|
|
37
|
-
baseApiUrl: string;
|
|
38
|
-
redlineConfigId: string;
|
|
39
|
-
}) => {
|
|
40
|
-
document_id: string;
|
|
41
|
-
segment_id: string;
|
|
42
|
-
user_name: string;
|
|
43
|
-
user_email: string;
|
|
44
|
-
new_plain_content: string;
|
|
45
|
-
redline_config_id: string;
|
|
46
|
-
};
|
|
47
|
-
export declare const buildDeleteRedlineDocumentRequestUrl: (payload: {
|
|
48
|
-
documentId: string;
|
|
49
|
-
baseApiUrl: string;
|
|
50
|
-
redlineConfigId: string;
|
|
51
|
-
}) => string;
|
|
52
1
|
export declare const getRedlineDocumentId: (payload: {
|
|
53
2
|
comparisonId: any;
|
|
54
3
|
baseApiUrl: string;
|
|
@@ -62,11 +11,6 @@ export declare const createRedlineDocument: (payload: {
|
|
|
62
11
|
inputData: any;
|
|
63
12
|
comparisonId: string;
|
|
64
13
|
baseApiUrl: string;
|
|
65
|
-
documentTitle?: string;
|
|
66
|
-
documentType?: string;
|
|
67
|
-
documentSummary?: string;
|
|
68
|
-
documentFileName?: string;
|
|
69
|
-
documentOwner?: string;
|
|
70
14
|
}, token: string) => Promise<any>;
|
|
71
15
|
export declare const updateRedlineDocument: (payload: {
|
|
72
16
|
documentId: string;
|
|
@@ -77,11 +21,6 @@ export declare const updateRedlineDocument: (payload: {
|
|
|
77
21
|
baseApiUrl: string;
|
|
78
22
|
redlineConfigId: string;
|
|
79
23
|
}, token: string) => Promise<any>;
|
|
80
|
-
export declare const deleteRedlineDocument: (payload: {
|
|
81
|
-
documentId: string;
|
|
82
|
-
baseApiUrl: string;
|
|
83
|
-
redlineConfigId: string;
|
|
84
|
-
}, token: string) => Promise<any>;
|
|
85
24
|
export declare const resolveRedline: (payload: {
|
|
86
25
|
documentId: string;
|
|
87
26
|
userEmail: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redlineService.d.ts","sourceRoot":"","sources":["../../../../src/service/redlineService.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"redlineService.d.ts","sourceRoot":"","sources":["../../../../src/service/redlineService.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,YAAmB;IAChD,YAAY,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACtB,iBAeA,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,GAAG,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACtB,SAAS,MAAM,iBAiCf,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA8Bf,CAAC;AAEF,eAAO,MAAM,cAAc,YAAmB;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA8Bf,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAAmB;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA+Bf,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
export declare function splitTagAcrossParagraphs(text: string, tag: string, setMain?: boolean): string;
|
|
2
2
|
export declare function escapeTagIds(markdown: string, tags: string[]): string;
|
|
3
3
|
export declare function unescapeTagIds(markdown: string, tags: string[]): string;
|
|
4
|
-
/** Convert standalone backend UUID comments into DOM-safe editor anchors. */
|
|
5
|
-
export declare function normalizeCommentAnchorsForEditor(source: string): string;
|
|
6
|
-
/** Restore exact source comments/invisible tags and their preceding blank lines. */
|
|
7
|
-
export declare function preserveDocumentAnchorsFromSource(source: string, draft: string): string;
|
|
8
|
-
/** Make legacy comment/redline anchors valid HTML before DOM parsing. */
|
|
9
|
-
export declare function normalizeLegacyCommentRedlinesForEditor(source: string): string;
|
|
10
|
-
/** Rebuild the exact legacy comment/tag shell after Lexical serialization. */
|
|
11
|
-
export declare function preserveLegacyCommentRedlinesFromSource(source: string, draft: string): string;
|
|
12
|
-
export declare function preserveInvisibleAnchorBeforeTablePipe(source: string, draft: string): string;
|
|
13
4
|
export declare function mergeTagAcrossParagraphs(text: string, tag: string): string;
|
|
14
5
|
//# sourceMappingURL=tagHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tagHelper.d.ts","sourceRoot":"","sources":["../../../../src/utils/tagHelper.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,UAAQ,
|
|
1
|
+
{"version":3,"file":"tagHelper.d.ts","sourceRoot":"","sources":["../../../../src/utils/tagHelper.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,UAAQ,UA0CnF;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAerE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAiBvE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAgH1E"}
|
package/dist/utils/tagHelper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e,n,i=!1){const
|
|
1
|
+
function e(e,n,i=!1){const l=new RegExp(`(<${n}(?:\\s[^>]*)?>)|(</${n}>)|(\\s*\\n\\s*)`,"gi");let s="",c=!1,t=!1;return e.replace(l,(e,l,$,a)=>l?(c=!0,s=l,i&&!t?(t=!0,l.replace(/^<([^\s>]+)/,"<$1 data-main")):l):$?(c=!1,s="",t=!1,$):a&&c?`</${n}>${a}${s}`:e)}function n(e,n){const i=n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(`<(${i})\\b([^>]*?)\\bid="([^"]*)"([^>]*)>`,"gi");return e.replace(l,(e,n,i,l,s)=>`<${n}${i}id="${l.replace(/</g,"@").replace(/>/g,"#")}"${s}>`)}function i(e,n){const i=n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(`<(${i})\\b([^>]*?)\\bid="([^"]*)"([^>]*)>`,"gi");return e.replace(l,(e,n,i,l,s)=>`<${n}${i}id="${l.replace(/@/g,"<").replace(/#/g,">")}"${s}>`)}function l(e,n){var i,l,s,c;const t=["del","ins","preserved"].includes(n),$=["manual","upt"].includes(n),a=new RegExp(`(<${n}(?:\\s[^>]*)?>)|(</${n}>)|(${t?"</?(?:manual|upt)\\b[^>]*>":"$^"})`,"gi");let r,o="",p=0,d="",u="",g="",f="";for(;null!==(r=a.exec(e));){const n=e.slice(p,r.index),[,v,x,b]=r;if(g)if(f+=n,b)o+=g+f+b,d="",u="",g="",f="";else if(v){const e=$&&null!==(l=null===(i=v.match(/\bid\s*=\s*["']?([^"'\s>]+)["']?/i))||void 0===i?void 0:i[1])&&void 0!==l?l:"";/^\s*$/.test(f)&&($&&e===u||t)?(o+=f,f="",g=""):(o+=g+f+v,d=v,u=e,g="",f="")}else x&&(o+=g+f,g=x,f="");else d?(o+=n,b?o+=b:x?g=x:v&&(o+=v)):(o+=n,b?o+=b:v?(d=v,u=$&&null!==(c=null===(s=v.match(/\bid\s*=\s*["']?([^"'\s>]+)["']?/i))||void 0===s?void 0:s[1])&&void 0!==c?c:"",o+=v):x&&(o+=x));p=a.lastIndex}const v=e.slice(p);return o+=g?g+f+v:v,o}export{n as escapeTagIds,l as mergeTagAcrossParagraphs,e as splitTagAcrossParagraphs,i as unescapeTagIds};
|
|
2
2
|
//# sourceMappingURL=tagHelper.js.map
|
package/package.json
CHANGED
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateTags.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.prepareCodeBlocksForExport=e=>{e.querySelectorAll("pre").forEach(t=>{t.querySelectorAll("br").forEach(e=>e.replaceWith("\n"));const r=e.createElement("code");r.textContent=t.textContent;const o=t.getAttribute("data-language");o&&(r.className=`language-${o}`),t.replaceChildren(r)})},exports.prepareCodeBlocksForImport=e=>{e.querySelectorAll("pre > code").forEach(e=>{var t;const r=e.parentElement,o=null===(t=e.className.match(/(?:^|\s)language-([^\s]+)/))||void 0===t?void 0:t[1];o&&r.setAttribute("data-language",o),r.textContent=e.textContent})};
|
|
2
|
-
//# sourceMappingURL=codeBlockSerialization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codeBlockSerialization.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=(e,t)=>{let r=0;for(let l=t-1;l>=0&&"\\"===e[l];l-=1)r+=1;return r%2==1},t=new Set(["updated","upt","manual","deleted","changed","del","ins","preserved","mark"]),r=String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`,l=[new RegExp(String.raw`^<\/(?:manual|upt|updated)\s*>`,"i"),new RegExp(String.raw`^<invisible\b${r}>[\s\S]*?<\/invisible\s*>`,"i"),new RegExp(String.raw`^<manual\b${r}>[\s\S]*?<\/manual\s*>`,"i"),new RegExp(String.raw`^<upt\b${r}>[\s\S]*?<\/upt\s*>`,"i")],n=e=>{let t=e.trim();for(;t;){const e=l.map(e=>t.match(e)).find(Boolean);if(!e)break;t=t.slice(e[0].length).trimStart()}return""===t},a=(t,r)=>{let l="";for(let n=r+1;n<t.length;n+=1){const r=t[n];if(l)r!==l||e(t,n)||(l="");else if('"'===r||"'"===r)l=r;else if(">"===r)return n}return-1},i=r=>{var l,i;const s=r.trimEnd(),o=[];let u="",c=0,d=0,h=-1,p=-1;for(let r=0;r<s.length;r+=1){if("<"===s[r]&&/[A-Za-z/]/.test(null!==(l=s[r+1])&&void 0!==l?l:"")){const e=a(s,r);if(-1!==e){const l=s.slice(r,e+1),n=l.match(/^<\s*(\/?)\s*([A-Za-z][\w:-]*)/),a=null!==(i=null==n?void 0:n[2].toLowerCase())&&void 0!==i?i:"";t.has(a)&&("/"===(null==n?void 0:n[1])?c=Math.max(0,c-1):/\/\s*>$/.test(l)||(c+=1)),u+=l,r=e;continue}}"|"!==s[r]||0!==c||e(s,r)?u+=s[r]:(o.push(u),u="",-1===h&&(h=r),p=r,d+=1)}if(o.push(u),!d)return null;const g=s.search(/\S/),f=g>=0&&"|"===s[g],v=!f&&n(o[0]),m=p===s.length-1,S=!m&&n(o[o.length-1]);return(f||v)&&o.shift(),(m||S)&&o.pop(),{cells:o,trailingPipe:m,firstStructuralPipe:h,lastStructuralPipe:p,hasLeadingMetadata:v,hasTrailingMetadata:S}},s=e=>!!e&&e.cells.length>0&&e.cells.every(e=>/^\s*:?-{3,}:?\s*$/.test(e)),o=(e,t,r)=>{var l,n;if(r<=0)return e;const a=null!==(n=null===(l=e.match(/\s*$/))||void 0===l?void 0:l[0])&&void 0!==n?n:"";return`${e.slice(0,e.length-a.length)}${t.trailingPipe?" |".repeat(r):` | |${" |".repeat(r-1)}`}${a}`},u=(e,t,r)=>{var l,n;if(r<=0)return e;const a=null!==(n=null===(l=e.match(/\s*$/))||void 0===l?void 0:l[0])&&void 0!==n?n:"";return`${e.slice(0,e.length-a.length)}${t.trailingPipe?" --- |".repeat(r):" | ---".repeat(r)}${a}`},c=e=>{const t=new Set;let r="",l=0;return e.forEach((e,n)=>{var a;const i=e.match(/^\s{0,3}(`{3,}|~{3,})/);r?(t.add(n),i&&i[1][0]===r&&i[1].length>=l&&/^\s*$/.test(e.slice((null!==(a=i.index)&&void 0!==a?a:0)+i[0].length))&&(r="",l=0)):i&&(r=i[1][0],l=i[1].length,t.add(n))}),t},d=e=>{var t;return{separators:null!==(t=e.match(/\r\n|\n|\r/g))&&void 0!==t?t:[],lines:e.split(/\r\n|\n|\r/)}},h=(e,t)=>e.map((e,r)=>{var l;return`${e}${null!==(l=t[r])&&void 0!==l?l:""}`}).join(""),p=e=>{let t=e,r=i(t);if(!r)return e;if(r.hasLeadingMetadata){const e=t.slice(0,r.firstStructuralPipe);t=t.slice(r.firstStructuralPipe,r.firstStructuralPipe+1)+e+t.slice(r.firstStructuralPipe+1),r=i(t)}if(null==r?void 0:r.hasTrailingMetadata){const e=t.slice(r.lastStructuralPipe+1);t=t.slice(0,r.lastStructuralPipe)+e+t.slice(r.lastStructuralPipe,r.lastStructuralPipe+1)}return t},g=t=>{var r;let l="",n=!1,a="";for(let i=0;i<t.length;i+=1){const s=t[i];n?(l+=s,a?s!==a||e(t,i)||(a=""):'"'===s||"'"===s?a=s:">"===s&&(n=!1)):"<"===s&&/[A-Za-z/!?]/.test(null!==(r=t[i+1])&&void 0!==r?r:"")?(n=!0,l+=s):l+="|"!==s||e(t,i)?s:"\\|"}return l};exports.ensureMarkdownTableColumnCounts=e=>{const{lines:t,separators:r}=d(e),l=c(t);for(let e=1;e<t.length;e+=1){if(l.has(e)||l.has(e-1))continue;const r=i(t[e]),n=i(t[e-1]);if(!s(r)||!n)continue;const a=Math.max(n.cells.length,r.cells.length);let c=a;for(let r=e+1;r<t.length&&(t[r].trim()&&!l.has(r));r+=1){const e=i(t[r]);if(!e||s(e))break;let l=e.cells.length;for(;l>a&&!e.cells[l-1].trim();)l-=1;c=Math.max(c,l)}t[e-1]=o(t[e-1],n,c-n.cells.length),t[e]=u(t[e],r,c-r.cells.length)}return h(t,r)},exports.escapeMarkdownTableCellPipes=g,exports.markdownTableCellReplacement=(e,t)=>{var r,l;const n=t,a=0===Array.from(null!==(l=null===(r=n.parentElement)||void 0===r?void 0:r.children)&&void 0!==l?l:[]).indexOf(n);let i=e.trim().replace(/\n{2,}/g,"<br><br>").replace(/\n/g,"<br>");return/^(?:<br>)+$/.test(i)&&(i=""),i=g(i),a?i?`| ${i} |`:"| |":i?` ${i} |`:" |"},exports.normalizeMarkdownTableBoundaryMetadataForRendering=e=>{const{lines:t,separators:r}=d(e),l=c(t);for(let e=1;e<t.length;e+=1){if(l.has(e)||l.has(e-1))continue;const r=i(t[e]),n=i(t[e-1]);if(s(r)&&n){t[e-1]=p(t[e-1]);for(let r=e+1;r<t.length&&(t[r].trim()&&!l.has(r));r+=1){const e=i(t[r]);if(!e||s(e))break;t[r]=p(t[r])}}}return h(t,r)};
|
|
2
|
-
//# sourceMappingURL=markdownTableSerialization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdownTableSerialization.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./markdownTableSerialization.js");const t=String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`,n=new RegExp(String.raw`<updated\b(${t})>([\s\S]*?)<\/updated\s*>`,"gi"),r=new RegExp(String.raw`<upt\b(${t})>([\s\S]*?)<\/upt\s*>`,"gi"),i=new RegExp(String.raw`<(deleted|changed)\b(${t})>([\s\S]*?)<\/\1\s*>`,"gi"),l=new Set(["updated","upt","manual","deleted","changed","del","ins","preserved","mark"]),s=(e,t)=>{let n=0;for(let r=t-1;r>=0&&"\\"===e[r];r-=1)n+=1;return n%2==1},d=(e,t)=>{let n="";for(let r=t+1;r<e.length;r+=1){const t=e[r];if(n)t!==n||s(e,r)||(n="");else if('"'===t||"'"===t)n=t;else if(">"===t)return r}return-1},a=e=>{var t,n;let r="",i=0;for(let a=0;a<e.length;a+=1){if("<"===e[a]&&/[A-Za-z/]/.test(null!==(t=e[a+1])&&void 0!==t?t:"")){const t=d(e,a);if(-1!==t){const s=e.slice(a,t+1),d=s.match(/^<\s*(\/?)\s*([A-Za-z][\w:-]*)/),o=null!==(n=null==d?void 0:d[2].toLowerCase())&&void 0!==n?n:"",c=l.has(o),u="/"===(null==d?void 0:d[1]),g=/\/\s*>$/.test(s);r+=c||i>0?s.replace(/\|/g,"|"):s,c&&u?i=Math.max(0,i-1):c&&!g&&(i+=1),a=t;continue}}"|"===e[a]&&i>0?(s(e,a)&&(r=r.slice(0,-1)),r+="|"):r+=e[a]}return r},o=e=>{const t=e.trim();if(!t.includes("|"))return null;const n=[];let r="";for(let e=0;e<t.length;e+=1){const i=t[e],l=e>0&&"\\"===t[e-1];"|"!==i||l?r+=i:(n.push(r.trim()),r="")}return n.push(r.trim()),t.startsWith("|")&&n.shift(),t.endsWith("|")&&n.pop(),n},c=e=>!!(null==e?void 0:e.length)&&e.every(e=>/^:?-{3,}:?$/.test(e)),u=e=>`| ${e.join(" | ")} |`,g=e=>e.replace(r,(e,t,n)=>{if(!(e=>{const t=e.split("\n");return t.some((e,n)=>{var r;return n>0&&c(o(e))&&!!(null===(r=o(t[n-1]))||void 0===r?void 0:r.length)})})(n))return e;return`<updated${t}>${n.replace(/<del\b([^>]*)>/gi,"<deleted$1>").replace(/<\/del\s*>/gi,"</deleted>").replace(/<ins\b([^>]*)>/gi,"<changed$1>").replace(/<\/ins\s*>/gi,"</changed>")}</updated>`});exports.normalizeRedlineMarkdown=r=>{if(!r)return"";let l=g(r).replace(n,(e,t,n)=>{if(!n.includes("|"))return e;if(!/\bid\s*=\s*["']ai_reasoning\$/i.test(t))return n;const r=/\bdata-main\b/i.test(t)?"":" data-main",i=((e,t)=>{const n=t.match(/\bid\s*=\s*["']([^"']+)["']/i);if(!n)return e;const r=encodeURIComponent(n[1]);return e.replace(/<(deleted|changed)\b([^>]*)>/gi,(e,t,n)=>/\bdata-upt-id\s*=/i.test(n)?e:`<${t}${n} data-upt-id="${r}">`)})(n,t);return`<upt${t}${r}></upt>\n\n${i}`});return l=(e=>{const n=new RegExp(String.raw`(<deleted\b${t}>(?:(?!<\/deleted\s*>)[\s\S])*?\|(?:(?!<\/deleted\s*>)[\s\S])*?<\/deleted\s*>)\s*(<changed\b${t}>[^|]*?<\/changed\s*>)\s*\|`,"gi"),r=e.replace(n,(e,t,n)=>{var r;return`${(null!==(r=t.replace(/<\/deleted\s*>$/i,"").trimEnd().split("\n").at(-1))&&void 0!==r?r:"").trimEnd().endsWith("|")?t:t.replace(/<\/deleted\s*>$/i," |</deleted>")}\n${n}`}),l=new RegExp(String.raw`(<deleted\b${t}>(?:(?!<\/deleted\s*>)[\s\S])*?\|(?:(?!<\/deleted\s*>)[\s\S])*?<\/deleted\s*>)\s*(?=<changed\b${t}>)`,"gi"),s=r.replace(l,"$1\n\n");return s.replace(i,(e,t,n,r,i)=>{if(!r.includes("|"))return e;const l=s.slice(0,i),d=/(?:^|\n)[ \t]*$/.test(l);return r.split("\n").map((e,r)=>{if(!e)return e;let i=e;i.includes("|")&&!/^\s*\|/.test(i)&&(r>0||d)&&(i=`| ${i}`);const l=o(i);return c(l)?i:i.split(/(\|)/).map(e=>"|"!==e&&e.trim()?`<${t}${n}>${e}</${t}>`:e).join("")}).join("\n")})})(l),l=l.replace(/([([])\s+(?=<(?:deleted|changed)>)/gi,"$1"),l=a(l),l=e.normalizeMarkdownTableBoundaryMetadataForRendering(l),(e=>{const t=e.split("\n");for(let e=1;e<t.length;e+=1){const n=o(t[e]);if(!c(n))continue;const r=o(t[e-1]);if(!(null==r?void 0:r.length))continue;for(;r.length>n.length;){const e=r.findIndex(e=>""===e);if(-1===e)break;r.splice(e,1)}const i=Math.max(r.length,n.length);let l=e+1,s=0;for(;l<t.length&&""!==t[l].trim();){const e=o(t[l]);if(!e)break;for(;e.length>i;){const t=e.findIndex(e=>""===e);if(-1===t)break;e.splice(t,1)}t[l]=u(e),s=Math.max(s,e.length),l+=1}const d=Math.max(r.length,n.length,s);for(;r.length<d;)r.push("");for(;n.length<d;)n.push("---");t[e-1]=u(r),t[e]=u(n)}return t.join("\n")})(l)},exports.protectReviewTagPipesForRendering=a;
|
|
2
|
-
//# sourceMappingURL=normalizeRedlineMarkdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeRedlineMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=(e,n)=>{let t=0;for(let r=n-1;r>=0&&"\\"===e[r];r-=1)t+=1;return t%2==1},n=e=>/[\p{L}\p{N}]/u.test(e),t=(n,t)=>{let r="",l=0,o="",s=!1,a=0;return n.split(/(\r?\n)/).map(n=>{var i;if(/^\r?\n$/.test(n))return n;const c=s||a?null:n.match(/^\s*(`{3,}|~{3,})/);if(r)return c&&c[1][0]===r&&c[1].length>=l&&(r="",l=0),n;if(c)return r=c[1][0],l=c[1].length,n;let d="";for(let r=0;r<n.length;r+=1){const l=n[r];if(s){d+=l,o?l!==o||e(n,r)||(o=""):'"'===l||"'"===l?o=l:">"===l&&(s=!1);continue}if(!a&&"<"===l&&/[A-Za-z/!?]/.test(null!==(i=n[r+1])&&void 0!==i?i:"")){s=!0,d+=l;continue}if("`"===l&&!e(n,r)){let e=1;for(;"`"===n[r+e];)e+=1;a?a===e&&(a=0):a=e,d+=n.slice(r,r+e),r+=e-1;continue}if(a){d+=l;continue}const c=t(n,r);c?(d+=c.value,r+=c.consumedLength-1):d+=l}return d}).join("")},r=e=>Array.from(e.matchAll(/[\p{L}\p{N}]+(?:(?:\\?_)+[\p{L}\p{N}]+)+/gu),e=>{var n;return{index:null!==(n=e.index)&&void 0!==n?n:0,raw:e[0],visible:e[0].replace(/\\_/g,"_")}}),l=e=>/^(?:B|STRONG)$/.test(e.tagName)?"bold":/^(?:I|EM)$/.test(e.tagName)?"italic":"",o=e=>0===e.attributes.length,s=e=>{var n;Array.from(e.classList).filter(e=>e.startsWith("PlaygroundEditorTheme__")).forEach(n=>e.classList.remove(n)),e.classList.length||e.removeAttribute("class");const t=e;"pre-wrap"===t.style.whiteSpace&&t.style.removeProperty("white-space"),(null===(n=t.getAttribute("style"))||void 0===n?void 0:n.trim())||t.removeAttribute("style")},a=t=>{var r,l,o;const s=[],a=[];let i="",c=!1,d=0;for(let g=0;g<t.length;g+=1){const u=t[g];if(c){i?u!==i||e(t,g)||(i=""):'"'===u||"'"===u?i=u:">"===u&&(c=!1);continue}if(!d&&"<"===u&&/[A-Za-z/!?]/.test(null!==(r=t[g+1])&&void 0!==r?r:"")){c=!0;continue}if("`"===u&&!e(t,g)){let e=1;for(;"`"===t[g+e];)e+=1;d?d===e&&(d=0):d=e,g+=e-1;continue}if(d||"*"!==u&&"_"!==u)continue;if(e(t,g))continue;let p=1;for(;t[g+p]===u;)p+=1;const h=null!==(l=t[g-1])&&void 0!==l?l:"",m=null!==(o=t[g+p])&&void 0!==o?o:"",x="_"===u&&n(h)&&n(m),f=""!==m&&!/\s/.test(m)&&!x;let I=0,v=p;if(""!==h&&!/\s/.test(h)&&!x){let e=a.at(-1);for(;e&&e.marker===u&&v>=e.markerLength;)s.push({...e,closeIndex:g+I}),I+=e.markerLength,v-=e.markerLength,a.pop(),e=a.at(-1)}f&&v>0&&v<=3&&a.push({openIndex:g+I,marker:u,markerLength:v}),g+=p-1}return s.sort((e,n)=>e.openIndex-n.openIndex)},i=e=>e.split(/(`+[^`]*`+|<(?:[^>"']|"[^"]*"|'[^']*')*>)/g).map((e,n)=>n%2==1?e:e.replace(/\*{1,3}/g,"")).join("").replace(/[ \t]*(<\/?(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>)[ \t]*/gi,"$1").replace(/\r\n/g,"\n"),c=e=>{const n=[];let t="",r=0;return e.split("\n").forEach(e=>{const l=e.match(/^\s*(`{3,}|~{3,})/);if(l){const n=l[1][0];return t?t===n&&(t=""):t=n,void(r+=e.length+1)}if(!t){let t=0;e.split(/(`+[^`]*`+)/g).forEach((e,l)=>{l%2==0&&Array.from(e.matchAll(/\*{3}([ \t]*)(\S(?:.*?\S)?)([ \t]*)\*{3}/g)).forEach(e=>{var l;const o=r+t+(null!==(l=e.index)&&void 0!==l?l:0);n.push({openIndex:o,closeIndex:o+e[0].length-3,leadingSpace:e[1],content:e[2],trailingSpace:e[3]})}),t+=e.length})}r+=e.length+1}),n},d=/(<(manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/\2\s*>)/gi;exports.collectMarkdownEmphasisRanges=a,exports.markdownWithoutEmphasisMarkers=e=>a(e).flatMap(e=>[{index:e.openIndex,length:e.markerLength},{index:e.closeIndex,length:e.markerLength}]).sort((e,n)=>n.index-e.index).reduce((e,n)=>e.slice(0,n.index)+e.slice(n.index+n.length),e),exports.normalizeCombinedEmphasisForRendering=e=>{let n="";return e.split("\n").map(e=>{const t=e.match(/^\s*(`{3,}|~{3,})/);if(t){const r=t[1][0];return n?n===r&&(n=""):n=r,e}return n?e:e.split(/(`+[^`]*`+)/g).map((e,n)=>n%2==1?e:e.replace(/\*{3}([ \t]*)(\S(?:.*?\S)?)([ \t]*)\*{3}/g,(e,n,t,r)=>`${n}***${t}***${r}`)).join("")}).join("\n")},exports.normalizeNestedReviewEmphasisForRendering=e=>e.replace(/(<(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<ins\b(?:[^>"']|"[^"]*"|'[^']*')*>)([\s\S]*?)(<\/ins\s*>[\s\S]*?<\/(?:manual|upt)\s*>)/gi,(e,n,t,r,l,o)=>{const s=o.lastIndexOf("\n",Math.max(0,l-1))+1,a=o.indexOf("\n",l+e.length),i=o.slice(s,l),c=o.slice(l+e.length,-1===a?o.length:a);if(!["**","__"].some(e=>i.includes(e)&&c.includes(e)))return e;return`${n}${t.replace(/(\*{2}|_{2})([ \t]+)((\*{3}|_{3})(\S(?:.*?\S)?)\4)([ \t]+)\1/g,(e,n,t,r,l,o,s)=>`${t}${r}${s}`)}${r}`}),exports.normalizeRedundantInlineFormattingElements=e=>{e.querySelectorAll("b, strong, i, em").forEach(s);let n=!0;for(;n;){n=!1,e.querySelectorAll("b b, b strong, strong b, strong strong, i i, i em, em i, em em").forEach(e=>{const t=e.parentElement;t&&l(t)===l(e)&&o(e)&&(e.replaceWith(...Array.from(e.childNodes)),n=!0)});[e,...Array.from(e.querySelectorAll("*"))].forEach(e=>{let t=e.firstChild;for(;t;){const e=t.nextSibling;t instanceof Element&&e instanceof Element&&l(t)&&l(t)===l(e)&&o(t)&&o(e)?(t.append(...Array.from(e.childNodes)),e.remove(),n=!0):t=e}})}},exports.normalizeReviewBoundaryEmphasisForRendering=e=>e.replace(/(<(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>)(<del\b(?:[^>"']|"[^"]*"|'[^']*')*>)(\*{1,3}|_{1,3})([\s\S]*?)(<\/del\s*>)([ \t]*)(<ins\b(?:[^>"']|"[^"]*"|'[^']*')*>)\3([\s\S]*?)(<\/ins\s*>)(<\/(?:manual|upt)\s*>)([^\n]*?)\3/g,(e,n,t,r,l,o,s,a,i,c,d,g)=>`${r}${n}${t}${l}${o}${s}${a}${i}${c}${d}${g}${r}`),exports.preserveEmphasisMarkersFromSource=(e,n)=>{n=((e,n)=>{const t=c(e),r=c(n);if(!t.length||!r.length)return n;const l=[];if(t.length===r.length)r.forEach((e,n)=>{l.push({sourceIndex:n,generatedIndex:n})});else{let e=0;r.forEach((n,r)=>{const o=t.findIndex((t,r)=>r>=e&&t.content===n.content);-1!==o&&(l.push({sourceIndex:o,generatedIndex:r}),e=o+1)})}let o=n;return l.sort((e,n)=>r[n.generatedIndex].openIndex-r[e.generatedIndex].openIndex).forEach(({sourceIndex:e,generatedIndex:n})=>{const l=t[e],s=r[n],a=`***${l.leadingSpace}${s.content}${l.trailingSpace}***`;o=o.slice(0,s.openIndex)+a+o.slice(s.closeIndex+3)}),o})(e,n),n=((e,n)=>{const t=a(e).filter(n=>/<(?:manual|upt)\b/i.test(e.slice(n.openIndex+n.markerLength,n.closeIndex)));let r=n;return t.sort((e,n)=>n.openIndex-e.openIndex).forEach(n=>{const t=n.marker.repeat(n.markerLength),l="*".repeat(n.markerLength),o=e.slice(n.openIndex+n.markerLength,n.closeIndex),s=o.split(new RegExp(d.source,"gi")).filter((e,n)=>e&&(n%3==0||n%3==1)).map(e=>/^<(?:manual|upt)\b/i.test(e)?e:`${l}${e}${l}`).join(""),a=`${t}${o}${t}`;s&&r.includes(s)&&(r=r.replace(s,a))}),r})(e,n);const t=a(e),r=a(n),l=(e,n)=>e.slice(n.openIndex+n.markerLength,n.closeIndex).replace(/\r\n/g,"\n"),o=t.map(n=>l(e,n)),s=r.map(e=>l(n,e)),i=[],g=(e,n)=>t[e].markerLength===r[n].markerLength&&o[e]===s[n],u=Array.from({length:o.length+1},()=>Array(s.length+1).fill(0));for(let e=o.length-1;e>=0;e-=1)for(let n=s.length-1;n>=0;n-=1)u[e][n]=g(e,n)?u[e+1][n+1]+1:Math.max(u[e+1][n],u[e][n+1]);let p=0,h=0;for(;p<o.length&&h<s.length;)g(p,h)?(i.push({sourceIndex:p,generatedIndex:h}),p+=1,h+=1):u[p+1][h]>=u[p][h+1]?p+=1:h+=1;if(t.length===r.length){const e=new Set(i.map(e=>e.generatedIndex));for(let n=0;n<r.length;n+=1)e.has(n)||t[n].markerLength!==r[n].markerLength||i.push({sourceIndex:n,generatedIndex:n})}let m=n;return i.sort((e,n)=>n.generatedIndex-e.generatedIndex),i.forEach(({sourceIndex:e,generatedIndex:n})=>{const l=t[e],o=r[n],s=l.marker.repeat(l.markerLength);m=m.slice(0,o.closeIndex)+s+m.slice(o.closeIndex+o.markerLength),m=m.slice(0,o.openIndex)+s+m.slice(o.openIndex+o.markerLength)}),m},exports.preserveLiteralMidWordUnderscoresFromSource=(l,o)=>{let s=t(o,(t,r)=>{var l,o;if("\\"!==t[r]||e(t,r))return null;let s=r,a=0;for(;"\\"===t[s]&&"_"===t[s+1]&&!e(t,s);)a+=1,s+=2;return a&&n(null!==(l=t[r-1])&&void 0!==l?l:"")&&n(null!==(o=t[s])&&void 0!==o?o:"")?{consumedLength:s-r,value:"_".repeat(a)}:null});const a=r(l),i=r(s);if(!a.length||!i.length)return s;const c=Array.from({length:a.length+1},()=>Array(i.length+1).fill(0));for(let e=a.length-1;e>=0;e-=1)for(let n=i.length-1;n>=0;n-=1)c[e][n]=a[e].visible===i[n].visible?c[e+1][n+1]+1:Math.max(c[e+1][n],c[e][n+1]);const d=[];let g=0,u=0;for(;g<a.length&&u<i.length;)a[g].visible===i[u].visible?(d.push({sourceIndex:g,generatedIndex:u}),g+=1,u+=1):c[g+1][u]>=c[g][u+1]?g+=1:u+=1;return d.sort((e,n)=>i[n.generatedIndex].index-i[e.generatedIndex].index).forEach(({sourceIndex:e,generatedIndex:n})=>{const t=a[e],r=i[n];t.raw!==r.raw&&(s=s.slice(0,r.index)+t.raw+s.slice(r.index+r.raw.length))}),s},exports.preserveUnchangedEmphasisParagraphsFromSource=(e,n)=>{const t=e.split(/(\r?\n\r?\n)/),r=n.split(/(\r?\n\r?\n)/);return t.length!==r.length?n:r.map((e,n)=>{if(n%2==1)return e;const r=t[n],l=i(r)===i(e),o=/<(?:manual|upt)\b/i.test(r),s=/\*{4,}/.test(e);return l&&(o||s)?r:e}).join("")},exports.protectLiteralMidWordUnderscoresForRendering=r=>t(r,(t,r)=>{var l,o;if("_"!==t[r]||e(t,r))return null;let s=1;for(;"_"===t[r+s];)s+=1;return n(null!==(l=t[r-1])&&void 0!==l?l:"")&&n(null!==(o=t[r+s])&&void 0!==o?o:"")?{consumedLength:s,value:"\\_".repeat(s)}:null});
|
|
2
|
-
//# sourceMappingURL=preserveMarkdownEmphasis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveMarkdownEmphasis.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var n=e(require("showdown"));const t=new Set(Array.from("`*_{}[]()>#+.!~=|:-")),r=e=>e.replace(/&(?:#\d+|#x[\da-f]+|[a-z][\da-z]+);/gi,e=>{const n=document.createElement("textarea");return n.innerHTML=e,n.value}),a=/<!--\s*([a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12})\s*-->/gi,o=/<invisible\b[^>]*\bid=(["'])([a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12})\1[^>]*>\s*<\/invisible>/gi,l=new n.default.Converter({tables:!0,simpleLineBreaks:!0,literalMidWordUnderscores:!0}),s=e=>e.split(/\r?\n/).filter(e=>/^ {0,3}\[[^\]]+\]:\s*\S/.test(e)).join("\n"),c=e=>e.replace(a,(e,n)=>`ZXQDOCUMENTANCHOR${n.replace(/-/g,"")}QXZ`).replace(o,(e,n,t)=>`ZXQDOCUMENTANCHOR${t.replace(/-/g,"")}QXZ`),i=(e,n)=>{const t=l.makeHtml(n?`${c(e)}\n\n${n}`:c(e)).replace(/\r\n/g,"\n");return(new DOMParser).parseFromString(t,"text/html").body.innerHTML},d=e=>{var n;let a="";for(let r=0;r<e.length;r+=1){if("\\"!==e[r]){a+=e[r];continue}let o=1;for(;"\\"===e[r+o];)o+=1;const l=null!==(n=e[r+o])&&void 0!==n?n:"",s=t.has(l),c=s?Math.floor(o/2):Math.ceil(o/2);a+="\\".repeat(c),s?(a+=l,r+=o):r+=o-1}return r(a).replace(/\r\n/g,"\n")},p=e=>e.split(/(\r?\n\r?\n)/),u=e=>/[\p{L}\p{N}]/u.test(e),f=e=>{var n,a,o,l;const s=[];for(let c=0;c<e.length;c+=1){const i=e[c],p="&"===i?null===(n=e.slice(c).match(/^&(?:#\d+|#x[\da-f]+|[a-z][\da-z]+);/i))||void 0===n?void 0:n[0]:void 0;if(p)s.push({comparable:r(p),escapeKind:"entity",raw:p}),c+=p.length-1;else{if("\\"===i){let n=1;for(;"\\"===e[c+n];)n+=1;const r=null!==(a=e[c+n])&&void 0!==a?a:"",o=t.has(r),l=n+(o?1:0),i=e.slice(c,c+l);s.push({comparable:d(i),escapeKind:o?r:"\\",raw:i}),c+=l-1;continue}if(u(i)){let n=c+1;for(;u(null!==(o=e[n])&&void 0!==o?o:"");)n+=1;const t=e.slice(c,n);s.push({comparable:t,escapeKind:"",raw:t}),c=n-1;continue}if(/\s/.test(i)){let n=c+1;for(;/\s/.test(null!==(l=e[n])&&void 0!==l?l:"");)n+=1;const t=e.slice(c,n);s.push({comparable:t,escapeKind:"",raw:t}),c=n-1;continue}s.push({comparable:i,escapeKind:i,raw:i})}}return s};exports.markdownWithoutEscapeSpelling=d,exports.preserveUnchangedMarkdownEscapesFromSource=(e,n)=>{const t=p(e),r=p(n),a=t.filter((e,n)=>n%2==0),o=r.filter((e,n)=>n%2==0),l=a.map(d),c=o.map(d),u=s(e),h=s(n),g=new Array(a.length),w=new Array(o.length),m=(e,n)=>{var t,r;return a[e]===o[n]||l[e]===c[n]&&(null!==(t=g[e])&&void 0!==t||(g[e]=i(a[e],u)),null!==(r=w[n])&&void 0!==r||(w[n]=i(o[n],h)),g[e]===w[n])},v=Array.from({length:a.length+1},()=>new Uint32Array(o.length+1));for(let e=a.length-1;e>=0;e-=1)for(let n=o.length-1;n>=0;n-=1)v[e][n]=m(e,n)?v[e+1][n+1]+1:Math.max(v[e+1][n],v[e][n+1]);const x=new Map,b=new Set,M=[];let y=0,I=0;for(;y<a.length&&I<o.length;)m(y,I)?(x.set(I,y),b.add(y),M.push({sourceIndex:y,generatedIndex:I}),y+=1,I+=1):v[y+1][I]>=v[y][I+1]?y+=1:I+=1;const E=new Map,K=[{sourceIndex:-1,generatedIndex:-1},...M,{sourceIndex:a.length,generatedIndex:o.length}];for(let e=1;e<K.length;e+=1){const n=K[e-1],t=K[e],r=t.sourceIndex-n.sourceIndex-1;if(r===t.generatedIndex-n.generatedIndex-1)for(let e=1;e<=r;e+=1)E.set(n.generatedIndex+e,n.sourceIndex+e)}for(let e=0;e<o.length;e+=1){if(x.has(e))continue;const n=a.findIndex((n,t)=>!b.has(t)&&m(t,e));-1!==n&&(x.set(e,n),b.add(n))}let A=0;return r.map((e,n)=>{if(n%2==1)return e;const t=x.get(A),r=E.get(A);return A+=1,void 0!==t?a[t]:void 0===r?e:((e,n,t)=>{const r=f(e),a=f(n),o=Array.from({length:r.length+1},()=>new Uint32Array(a.length+1));for(let e=r.length-1;e>=0;e-=1)for(let n=a.length-1;n>=0;n-=1)o[e][n]=r[e].comparable===a[n].comparable?o[e+1][n+1]+1:Math.max(o[e+1][n],o[e][n+1]);const l=new Map;let s=0,c=0;for(;s<r.length&&c<a.length;)r[s].comparable===a[c].comparable?(l.set(c,s),s+=1,c+=1):o[s+1][c]>=o[s][c+1]?s+=1:c+=1;const d=new Map;l.forEach((e,n)=>{var t;const o=r[e],l=a[n];if(o.raw===l.raw||!o.raw.includes("\\")&&!l.raw.includes("\\")&&"entity"!==o.escapeKind&&"entity"!==l.escapeKind)return;const s=l.escapeKind||o.escapeKind,c="["===s||"]"===s?"brackets":s,i=null!==(t=d.get(c))&&void 0!==t?t:new Map;i.set(n,o.raw),d.set(c,i)});let p=a.map(e=>e.raw),u=n;d.forEach(e=>{const n=[...p];e.forEach((e,t)=>{n[t]=e});const r=n.join("");i(r,t)===i(u,t)&&(p=n,u=r)});const h=new Map;return a.forEach((e,n)=>{var t;if(l.has(n)||!e.raw.includes("\\"))return;const r=["[","]"].includes(e.escapeKind)?"brackets":e.escapeKind;h.set(r,[...null!==(t=h.get(r))&&void 0!==t?t:[],n])}),h.forEach(e=>{const n=[...p];e.forEach(e=>{n[e]=a[e].comparable});const r=n.join("");i(r,t)===i(u,t)&&(p=n,u=r)}),u})(a[r],e,h)}).join("")};
|
|
2
|
-
//# sourceMappingURL=preserveMarkdownEscapes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveMarkdownEscapes.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=/<br\s*\/?>| {2,}\r?\n|\r\n|\r|\n/gi,r=e=>e.replace(/<[^>]*>/g," ").replace(/\\([*+\-=#`~[\]>_.])/g,"$1").replace(/[*_`~]+/g,"").replace(/ |\u00a0/gi," ").replace(/>/gi,">").replace(/</gi,"<").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/gi,"&").replace(/\s+/g," ").trim().toLocaleLowerCase(),t=t=>{const l=Array.from(t.matchAll(new RegExp(e.source,"gi")));return l.map((e,n)=>{var i,g,s,c;const a=null!==(i=e.index)&&void 0!==i?i:0,h=n>0?(null!==(g=l[n-1].index)&&void 0!==g?g:0)+l[n-1][0].length:0,o=null!==(c=null===(s=l[n+1])||void 0===s?void 0:s.index)&&void 0!==c?c:t.length;return{raw:e[0],left:r(t.slice(h,a).slice(-100)),right:r(t.slice(a+e[0].length,o).slice(0,100))}})},l=/[^\S\r\n]*(?:\r?\n[^\S\r\n]*){2,}/g,n=e=>Array.from(e.matchAll(new RegExp(l.source,"g"))).map(t=>{var l;const n=null!==(l=t.index)&&void 0!==l?l:0,i=e.slice(0,n),g=e.slice(n+t[0].length);return{raw:t[0],left:r(i.slice(i.lastIndexOf("\n")+1).slice(-240)),right:r(g.split(/\r?\n/,1)[0].slice(0,240))}}),i=e=>{var r;return(null!==(r=e.match(/\r?\n/g))&&void 0!==r?r:[]).length};exports.preserveLineBreaksFromSource=(r,l)=>{if(!r||!l)return l;const n=t(r),i=t(l);if(!n.length||!i.length)return l;if(n.length===i.length){let r=0;return l.replace(e,()=>n[r++].raw)}let g=0,s=0;return l.replace(e,e=>{const r=i[s++],t=n.findIndex((e,t)=>t>=g&&((e,r)=>{const t=Boolean(e.left&&r.left&&(e.left.endsWith(r.left)||r.left.endsWith(e.left))),l=Boolean(e.right&&r.right&&(e.right.startsWith(r.right)||r.right.startsWith(e.right)));if(t||l)return!0;const n=e.left&&e.left.length>=50&&r.left&&r.left.length>=50,i=e.right&&e.right.length>=50&&r.right&&r.right.length>=50;if(n){const t=e.left.slice(-30),l=r.left.slice(-30);if(t.split("").filter((e,r)=>l[r]===e).length>=15)return!0}if(i){const t=e.right.slice(0,30),l=r.right.slice(0,30);if(t.split("").filter((e,r)=>l[r]===e).length>=15)return!0}return!1})(e,r));return-1===t?e:(g=t+1,n[t].raw)})},exports.preserveUnchangedWhitespaceRunsFromSource=(e,r,t=!1)=>{if(!e||!r)return r;const g=n(e),s=n(r);if(!g.length||!s.length)return r;let c=0,a=0;return r.replace(l,e=>{const r=s[a++],l=g.findIndex((e,l)=>l>=c&&(e.left===r.left&&e.right===r.right||t&&g.length===s.length&&l===a-1)&&i(r.raw)<=i(e.raw)&&(e.raw.includes(" ")||i(r.raw)===i(e.raw)));return-1===l?e:(c=l+1,g[l].raw)})};
|
|
2
|
-
//# sourceMappingURL=preserveMarkdownLineBreaks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveMarkdownLineBreaks.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>{const n=[];let t="";return e.forEach((e,r)=>{const s=e.match(/^\s*(`{3,}|~{3,})/);if(s){const e=s[1][0];return void(t?t===e&&(t=""):t=e)}if(t)return;const o=e.match(/^(\s*)([*+-]|\d+\.)([ \t]+)(.*)$/);o&&n.push({lineIndex:r,indent:o[1],marker:o[2],spacing:o[3],content:o[4]})}),n};exports.preserveListFormattingFromSource=(n,t)=>{if(!n||!t)return t;const r=n.split("\n"),s=t.split("\n"),o=e(r),c=e(s);if(!o.length||!c.length)return t;const d=[];if(o.length===c.length)c.forEach((e,n)=>{d.push({sourceIndex:n,generatedIndex:n})});else{let e=0;c.forEach((n,t)=>{const r=o.findIndex((t,r)=>r>=e&&t.content===n.content);-1!==r&&(d.push({sourceIndex:r,generatedIndex:t}),e=r+1)})}return d.forEach(({sourceIndex:e,generatedIndex:n})=>{const t=o[e],r=c[n];/\d/.test(t.marker+r.marker)&&t.marker!==r.marker||(s[r.lineIndex]=`${t.indent}${t.marker}${t.spacing}`+r.content)}),s.join("\n")};
|
|
2
|
-
//# sourceMappingURL=preserveMarkdownListFormatting.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveMarkdownListFormatting.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./preserveMarkdownEmphasis.js"),r=require("./preserveMarkdownEscapes.js");const n=new RegExp(String.raw`<(manual|upt|updated)\b((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/\1\s*>`,"gi"),i=new RegExp(String.raw`<del\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/del\s*>[ \t\r\n]*<ins\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/ins\s*>`,"gi"),s=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t=e=>{var r,n;return null!==(n=null===(r=e.match(/\bid\s*=\s*(?:"([^"]*)"|'([^']*)')/i))||void 0===r?void 0:r.slice(1).find(Boolean))&&void 0!==n?n:""},a=n=>e.markdownWithoutEmphasisMarkers(r.markdownWithoutEscapeSpelling(n)).replace(/<(\/)?(del|ins|changed|preserved)\b[^>]*>/gi,(e,r,n)=>` ZXQ${r?"CLOSE":"OPEN"}${String(n).toUpperCase()}QXZ `).replace(/<br\s*\/?>/gi,"\n").replace(/\\\|/g,"|").replace(/<[^>]*>/g,"").replace(/ |\u00a0/gi," ").replace(/>/gi,">").replace(/</gi,"<").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/gi,"&").replace(/\s+/g," ").trim();exports.getReviewId=t,exports.preserveUnchangedReviewBlocksFromSource=(e,r)=>{const c=Array.from(e.matchAll(new RegExp(n.source,"gi")));let l=r;return c.forEach(e=>{const[,r,n,c]=e,o=t(n);if(!o)return;const p=s(o),g=new RegExp(String.raw`<${r}\b(?=(?:[^>"']|"[^"]*"|'[^']*')*\bid\s*=\s*(?:"${p}"|'${p}'))((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/${r}\s*>`,"i");l=l.replace(g,(r,n,i)=>a(c)===a(i)?e[0]:r),l=((e,r,n,i)=>{const c=t(r),l=n.search(/^\|/m);if(!c||l<0)return i;if(n.slice(l).trimEnd().split(/\r?\n/).some(e=>!e.startsWith("|")))return i;const o=s(c),p=new RegExp(String.raw`<${e}\b(?=(?:[^>"']|"[^"]*"|'[^']*')*\bid\s*=\s*(?:"${o}"|'${o}'))((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/${e}\s*>`,"i").exec(i);if(!p||void 0===p.index)return i;const g=i.slice(p.index+p[0].length).match(/^([\t \r\n]*)(\|[^\r\n]*(?:\r?\n\|[^\r\n]*)*)/);if(!g)return i;const u=/\s$/.test(p[2])?"":g[1],d=`${p[2]}${u}${g[2]}`,$=a(n)===a(d)?`<${e}${r}>${n}</${e}>`:`<${e}${r}>${d}</${e}>`,x=p[0].length+g[0].length;return i.slice(0,p.index)+$+i.slice(p.index+x)})(r,n,c,l),l=((e,r,n,c)=>{var l;const o=t(r);if(!o)return c;const p=s(o);if(new RegExp(String.raw`<(?:manual|upt)\b(?=(?:[^>"']|"[^"]*"|'[^']*')*\bid\s*=\s*(?:"${p}"|'${p}'))`,"i").test(c))return c;const g=null===(l=n.match(new RegExp(`^\\s*(${i.source})\\s*$`,"i")))||void 0===l?void 0:l[1];if(!g)return c;const u=a(g),d=Array.from(c.matchAll(new RegExp(i.source,"gi"))).find(e=>{var r;return!((e,r)=>{const n=/<(\/)?(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi;let i,s=0;for(;null!==(i=n.exec(e))&&i.index<r;)s+=i[1]?-1:1;return s>0})(c,null!==(r=e.index)&&void 0!==r?r:0)&&a(e[0])===u});if(!d||void 0===d.index)return c;const $=`<${e}${r}>${d[0]}</${e}>`;return c.slice(0,d.index)+$+c.slice(d.index+d[0].length)})(r,n,c,l)}),l};
|
|
2
|
-
//# sourceMappingURL=preserveReviewBlocks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveReviewBlocks.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical"),t=require("../plugins/ManualNode.js"),o=require("../plugins/UpdateNode.js");const n=(e,t)=>`${"updated"===e.toLowerCase()?"upt":e.toLowerCase()}:${t}`;exports.collectReviewBoundaryWhitespace=e=>{const t=new Map;return e.querySelectorAll("manual[id], upt[id], updated[id]").forEach(e=>{var o,r,i,a,d,l;const s=e.getAttribute("id");if(!s)return;const u=null===(r=null===(o=e.previousSibling)||void 0===o?void 0:o.textContent)||void 0===r?void 0:r.match(/[ \t]+$/),c=null!==(i=null==u?void 0:u[0])&&void 0!==i?i:"",p=null===(d=null===(a=e.nextSibling)||void 0===a?void 0:a.textContent)||void 0===d?void 0:d.match(/^[ \t]+/),f=null!==(l=null==p?void 0:p[0])&&void 0!==l?l:"";t.set(n(e.tagName,s),{before:c,after:f})}),t},exports.restoreReviewBoundaryWhitespace=r=>{[...e.$nodesOfType(t.ManualNode).map(e=>({tag:"manual",node:e})),...e.$nodesOfType(o.UpdateNode).map(e=>({tag:"upt",node:e}))].forEach(({tag:t,node:o})=>{const i=o.getId(),a=r.get(n(t,i));if(!a)return;const d=o.getPreviousSibling();if(e.$isTextNode(d)){const e=d.getTextContent();d.setTextContent(`${e.replace(/[ \t]*$/,"")}${a.before}`)}else a.before&&o.insertBefore(e.$createTextNode(a.before));const l=o.getNextSibling();if(e.$isTextNode(l)){const e=l.getTextContent();l.setTextContent(`${a.after}${e.replace(/^[ \t]*/,"")}`)}else a.after&&o.insertAfter(e.$createTextNode(a.after))})};
|
|
2
|
-
//# sourceMappingURL=preserveReviewBoundaryWhitespace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveReviewBoundaryWhitespace.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>{const n=[],t=[],r=/\r\n|\n|\r|\\r\\n|\\n|\\r/g;let l,s=0;for(;null!==(l=r.exec(e));)n.push(e.slice(s,l.index)),t.push(l[0]),s=l.index+l[0].length;return n.push(e.slice(s)),{lines:n,separators:t}},n=(e,n)=>{let t=0;for(let r=n-1;r>=0&&"\\"===e[r];r-=1)t+=1;return t%2==1},t=e=>e.flatMap((e,t)=>{const r=(e=>{let t=e.trim();if(!t.includes("|"))return 0;t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&!n(t,t.length-1)&&(t=t.slice(0,-1));const r=[];let l="";for(let e=0;e<t.length;e+=1)"|"!==t[e]||n(t,e)?l+=t[e]:(r.push(l.trim()),l="");return r.push(l.trim()),r.length>=2&&r.every(e=>/^:?-{3,}:?$/.test(e))?r.length:0})(e);return r?[{lineIndex:t,columnCount:r,raw:e}]:[]});exports.preserveTableDelimiterRowsFromSource=(n,r)=>{if(!n||!r)return r;const l=e(n),s=e(r),u=t(l.lines),i=t(s.lines);if(!u.length||!i.length)return r;let o=0;return i.forEach((e,n)=>{let t=u.findIndex((n,t)=>t>=o&&n.columnCount===e.columnCount);if(t<0){const r=u[n];if(!r||r.columnCount!==e.columnCount)return;t=n}s.lines[e.lineIndex]=u[t].raw,o=t+1}),(({lines:e,separators:n})=>e.map((e,t)=>{var r;return`${e}${null!==(r=n[t])&&void 0!==r?r:""}`}).join(""))(s)};
|
|
2
|
-
//# sourceMappingURL=preserveTableDelimiters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveTableDelimiters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./markdownTableSerialization.js");const r=["upt","updated","manual","ins","del","preserved","deleted","changed","mark"],t=(e,r,t=[])=>{const o=new Set(t);let n=e;for(;r.includes(n)||o.has(n);)n=`Z${n}`;return n},o=(n,l,a=Boolean(n.closest("td, th")))=>{const c=n.cloneNode(!0),s=new Map;Array.from(c.querySelectorAll(r.join(","))).forEach(e=>{if(!c.contains(e))return;const r=t(`ZXQNESTEDREVIEWTOKEN${s.size}QXZ`,c.innerHTML,s.keys());s.set(r,o(e,l,a)),e.replaceWith(c.ownerDocument.createTextNode(r))});const i=new Map;a&&c.querySelectorAll("br").forEach(e=>{const r=t(`ZXQTABLEBREAKTOKEN${i.size}QXZ`,c.innerHTML,i.keys());i.set(r,"<br>"),e.replaceWith(c.ownerDocument.createTextNode(r))});let d=l.turndown(c.innerHTML);i.forEach((e,r)=>{d=d.replace(r,e)}),s.forEach((e,r)=>{d=d.replace(r,e)}),a&&(d=e.escapeMarkdownTableCellPipes(d));const u=Array.from(n.attributes).map(e=>`${e.name}="${e.value}"`).join(" "),p=n.tagName.toLowerCase();return u?`<${p} ${u}>${d}</${p}>`:`<${p}>${d}</${p}>`};exports.replaceReviewNodesWithMarkdownPlaceholders=(e,n)=>{var l,a,c,s;const i=[],d=r.join(","),u=Array.from(e.querySelectorAll(d)).filter(e=>{var r;return!(null===(r=e.parentElement)||void 0===r?void 0:r.closest(d))}),p=null!==(s=null!==(c=null!==(a=null===(l=e.documentElement)||void 0===l?void 0:l.outerHTML)&&void 0!==a?a:e.innerHTML)&&void 0!==c?c:e.textContent)&&void 0!==s?s:"";return u.forEach(e=>{const r=t(`ZXQREVIEWTOKEN${i.length}QXZ`,p,i.map(e=>e.placeholder));i.push({html:o(e,n),placeholder:r}),e.replaceWith(e.ownerDocument.createTextNode(r))}),i},exports.restoreReviewNodePlaceholders=(e,r)=>{let t=e;for(let e=r.length-1;e>=0;e-=1){const{html:o,placeholder:n}=r[e];t=t.replace(n,o)}return t},exports.serializeReviewNodeToMarkdown=o;
|
|
2
|
-
//# sourceMappingURL=reviewNodeSerialization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviewNodeSerialization.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=(t,e)=>{const i=t.lastIndexOf("\n",e),n=t.indexOf("\n",e);return t.slice(-1===i?0:i+1,-1===n?t.length:n).trim()};exports.extractRedlineCitationRefs=(e="")=>{const i=[],n=new Set,r=/href=(["'])(.*?)\1/gi;let a;for(;null!==(a=r.exec(e));){const r=a[2]||"";r.startsWith("pdf_citation$")&&!n.has(r)&&(n.add(r),i.push({href:r,citedText:t(e,a.index)}))}return i},exports.parseRedlineCitationHref=(t="")=>{var e;const[i="",n=""]=t.split("$"),[r="",a=""]=n.split("?"),s=new URLSearchParams(a),o=s.get("citationNumber")||s.get("citation_number")||"",c=(null===(e=r.match(/^\d+/))||void 0===e?void 0:e[0])||"";return{citationType:i,localCitationId:r,citationNumber:o||c,queryParams:s}};
|
|
2
|
-
//# sourceMappingURL=href.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"href.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./href.js");const i=(e,i)=>{var n;return i&&(null===(n=(e=>(null==e?void 0:e.nodes)||e||{})(e))||void 0===n?void 0:n[i])||null},n=(e,i)=>(null==e?void 0:e.documents)||(null==i?void 0:i.documents)||{},t=(e,i)=>{var n,t,o,l,d;const a="function"==typeof(null==e?void 0:e.metadata)?e.metadata(i):(null==e?void 0:e.metadata)||(null===(n=null==e?void 0:e.identity)||void 0===n?void 0:n.metadata)||((null===(t=null==e?void 0:e.identity)||void 0===t?void 0:t.userName)||(null===(o=null==e?void 0:e.identity)||void 0===o?void 0:o.userEmailId)?{userName:(null===(l=null==e?void 0:e.identity)||void 0===l?void 0:l.userName)||"",userEmailId:(null===(d=null==e?void 0:e.identity)||void 0===d?void 0:d.userEmailId)||""}:void 0);return"string"==typeof a?a:a&&"object"==typeof a?JSON.stringify(a):"{}"},o=(e,n,t,o)=>{var l,d,a,r,u,s;const c=null===(d=null===(l=i(e,t))||void 0===l?void 0:l.evaluation_result)||void 0===d?void 0:d[o];return(null===(a=null==c?void 0:c.deviation_fix_details)||void 0===a?void 0:a.cognitive_decisioning)||(null==c?void 0:c.cognitive_decisioning)||(null===(u=null===(r=null==n?void 0:n.redlining_details)||void 0===r?void 0:r.deviation_fix_details)||void 0===u?void 0:u.cognitive_decisioning)||(null===(s=null==n?void 0:n.redlining_details)||void 0===s?void 0:s.cognitive_decisioning)||null},l=(e,n,t)=>{var o;const l=i(e,n),d=(e=>(null==e?void 0:e.content_mapping)||{})(e),a=null===(o=null==l?void 0:l.comparison_inputs)||void 0===o?void 0:o[t];return(r=a,Array.isArray(r)?r:null==r?[]:[r]).map(e=>"string"==typeof e?null==d?void 0:d[e]:e).filter(Boolean);var r},d=(e,i)=>{const n=`${(null==e?void 0:e.role)||(null==e?void 0:e.contract_role)||""}`.toLowerCase();return"base"===n||"uploaded"===n?"base":i},a=(e,i,t,o,a,r)=>{const u=n(e,i),s=(null==u?void 0:u[o])||{},c=l(e,t,o),v=c[0]||{},_=c.map(e=>(null==e?void 0:e.content)||(null==e?void 0:e.change_history)||"").filter(Boolean).join("\n\n"),m=(null==r?void 0:r.custom_metadata)||(null==r?void 0:r.customMetaData)||{},p=(null==v?void 0:v.additional_attributes)||{};return{contract_uuid:o,contract_role:d(s,a),source_type:"text",content:{text:_||(null==r?void 0:r.highlighted_text)||""},gcs_source_link:(null==s?void 0:s.source_uri)||(null==s?void 0:s.gcs_source_link)||(null==m?void 0:m.gcs_source_link)||"",pdf_start_page_number:(null==m?void 0:m.pdf_start_page_number)||(null==p?void 0:p.pdf_start_page_number)||"",pdf_end_page_number:(null==m?void 0:m.pdf_end_page_number)||(null==p?void 0:p.pdf_end_page_number)||""}},r=(e,i,t,l,r)=>{var u;const s=((e,i)=>(null==e?void 0:e.input_index_map)||(null==i?void 0:i.input_index_map)||{})(e,i),c=n(e,i),v=o(e,null,t,l),_=(null===(u=null==v?void 0:v.citations)||void 0===u?void 0:u[r])||{},m=(null==s?void 0:s[0])||Object.keys(c).find(e=>"base"===d(c[e],"compare"))||Object.keys(_)[0]||"",p=(null==s?void 0:s[1])||Object.keys(c).find(e=>e!==m)||Object.keys(_).find(e=>e!==m)||"",f={};return m&&(f.base=a(e,i,t,m,"base",null==_?void 0:_[m])),p&&(f.compare=a(e,i,t,p,"compare",null==_?void 0:_[p])),f},u=({href:i,sourceText:n="",citationSection:l,aiReasoning:d,treeData:a,docData:u,config:s})=>{var c,v,_,m;const p=e.parseRedlineCitationHref(i),f=((e,i)=>{var n,t;if(null==e?void 0:e.node_id)return e.node_id;const o=i.match(/\.\/([^?:)]+)/);return(null===(t=null===(n=null==o?void 0:o[1])||void 0===n?void 0:n.split(":"))||void 0===t?void 0:t[0])||""})(d,i),g=((e,i)=>{const n=null==e?void 0:e.deviation_id;if(null!=n&&`${n}`.trim())return`${n}`;const t=i.match(/\.\/[^?:]+:(\d+)/);return(null==t?void 0:t[1])||"0"})(d,i),h=p.citationNumber||"0",y=f?`${f}:${g}:${h}`:p.localCitationId,b=p.queryParams.get("highlight_type")||"both",x=((e,i,n,t,l,d)=>{const a=o(e,i,n,t),r=(e=>(null==e?void 0:e.toLowerCase().includes("gap"))?"gaps_in_decision":"decisioning_factors")(d);return(Array.isArray(null==a?void 0:a[r])?a[r]:[]).find(e=>e.includes(`citationNumber=${l}`)||e.includes(`citation_number=${l}`)||e.includes(`deviation_summary$${l}`)||e.includes(`pdf_citation$${l}`)||e.trim().startsWith(`${l}.`))||""})(a,d,f,g,h,l)||((e="",i)=>{const n=e.indexOf(i);if(-1===n)return e.trim();const t=e.lastIndexOf("\n",n),o=e.indexOf("\n",n);return e.slice(-1===t?0:t+1,-1===o?e.length:o).trim()})(n,i),O={href:i,localCitationId:p.localCitationId,citationNumber:h,citationId:y,citedText:x,citationSection:l,highlightType:b,aiReasoning:d,treeData:a,docData:u},R={name:(null===(c=null==s?void 0:s.identity)||void 0===c?void 0:c.name)||(null==s?void 0:s.name)||"",organizationName:(null===(v=null==s?void 0:s.identity)||void 0===v?void 0:v.organizationName)||(null==s?void 0:s.organizationName)||"",prompt:"",useAgent:{agent_name:(null===(_=null==s?void 0:s.identity)||void 0===_?void 0:_.agentName)||(null==s?void 0:s.agentName)||"",metadata:t(s,O),arguments:{citation_type:(null==s?void 0:s.citationType)||"redline_citation",is_primary_agent_request:null!==(m=null==s?void 0:s.isPrimaryAgentRequest)&&void 0!==m&&m,ui_request_body:{request_id:(null==a?void 0:a.comparison_id)||(null==a?void 0:a.msgRequestId)||"",citation_id:y,cited_text:x,highlight_type:b,sources:r(a,u,f,g,h)}}}};return{context:O,payload:(null==s?void 0:s.buildPayload)?s.buildPayload(O,R):R}},s=e=>{var i;return(null===(i=null==e?void 0:e.request)||void 0===i?void 0:i.url)||(null==e?void 0:e.requestUrl)||""},c=(e,i,n)=>{var t,o,l,d;const a="function"==typeof(null===(t=e.request)||void 0===t?void 0:t.headers)?e.request.headers(n):null===(o=e.request)||void 0===o?void 0:o.headers,r="function"==typeof e.headers?e.headers(n):e.headers;return{method:(null===(l=e.request)||void 0===l?void 0:l.method)||e.method||"POST",headers:{"content-type":"application/json",...r||{},...a||{}},credentials:(null===(d=e.request)||void 0===d?void 0:d.credentials)||e.credentials,body:JSON.stringify(i)}};exports.buildRedlineOnDemandCitationPayload=u,exports.buildRedlineOnDemandPrefetchPayloads=({texts:i,aiReasoning:n,treeData:t,docData:o,config:l})=>{const d=new Set;return i.flatMap(({text:i="",citationSection:a})=>e.extractRedlineCitationRefs(i).filter(({href:e})=>!d.has(`${a||""}:${e}`)&&(d.add(`${a||""}:${e}`),!0)).map(({href:e,citedText:d})=>u({href:e,sourceText:d||i,citationSection:a,aiReasoning:n,treeData:t,docData:o,config:l})))},exports.buildRedlineOnDemandRequestInit=c,exports.fetchRedlineOnDemandCitation=async(e,i,n)=>{const t=s(e),o=c(e,i,n);if(!t)throw new Error("Missing redline on-demand citation request URL");if(e.fetcher)return e.fetcher({requestUrl:t,init:o,payload:i,context:n});const l=await fetch(t,o),d=await l.text();let a=d;try{a=d?JSON.parse(d):null}catch(e){a=d}if(!l.ok){const e=new Error(`Redline on-demand citation request failed with ${l.status}`);throw e.response=a,e}return e.transformResponse?e.transformResponse(a,n):a},exports.getRedlineOnDemandRequestUrl=s,exports.normalizeRedlineOnDemandStrategy=e=>"prefetchOnOpen"===e||"prefetchActiveTab"===e?"prefetchOnOpen":"onExpand";
|
|
2
|
-
//# sourceMappingURL=payload.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=(e,t,r)=>e.replace(t,(e,t,g,n)=>`${t}${r(g)}${n}`);exports.convertInlineMarkdownToHtml=t=>{if(!t)return t;const r=[],g=e=>`ZXQINLINEPROTECTED${r.push(e)-1}QXZ`;let n=t.replace(/(`+)([^\n]*?)\1/g,(e,t,r)=>{return g(`<code>${n=r,n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}</code>`);var n});return n=n.replace(/\\\*/g,()=>g("*")),n=e(n,/\*{3}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)\*{3}/g,e=>`<strong><em>${e}</em></strong>`),n=e(n,/_{3}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)_{3}/g,e=>`<strong><em>${e}</em></strong>`),n=e(n,/\*{2}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)\*{2}/g,e=>`<strong>${e}</strong>`),n=e(n,/_{2}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)_{2}/g,e=>`<strong>${e}</strong>`),n=e(n,/\*([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)\*/g,e=>`<em>${e}</em>`),n.replace(/ZXQINLINEPROTECTED(\d+)QXZ/g,(e,t)=>{var g;return null!==(g=r[Number(t)])&&void 0!==g?g:""})};
|
|
2
|
-
//# sourceMappingURL=inlineMarkdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inlineMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("react-hot-toast"));const r=(t,e)=>new Promise((r,o)=>{if(null==e?void 0:e.aborted)return void o(new DOMException("Operation aborted","AbortError"));const a=setTimeout(r,t);null==e||e.addEventListener("abort",()=>{clearTimeout(a),o(new DOMException("Operation aborted","AbortError"))},{once:!0})});exports.retryWithExponentialBackoff=async function(t,o={}){const{maxAttempts:a=5,initialDelayMs:n=500,maxDelayMs:i=3e4,backoffFactor:l=2,jitter:s=!0,signal:u,shouldRetry:c=()=>!0,onRetry:f}=o;if(a<1)throw new Error("maxAttempts must be at least 1");let d;for(let o=1;o<=a;o++){null==u||u.throwIfAborted();try{return await t(o)}catch(t){d=t;if(o===a||!c(t,o))throw t;const m=Math.min(n*l**(o-1),i),p=s?Math.floor(Math.random()*m):m;e.default.error(`Request failed. Retrying attempt ${o} of ${a}.`),null==f||f(t,o,p),await r(p,u)}}throw d};
|
|
2
|
-
//# sourceMappingURL=exponential-retry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exponential-retry.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateTags.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=e=>{e.querySelectorAll("pre > code").forEach(e=>{var t;const a=e.parentElement,l=null===(t=e.className.match(/(?:^|\s)language-([^\s]+)/))||void 0===t?void 0:t[1];l&&a.setAttribute("data-language",l),a.textContent=e.textContent})},t=e=>{e.querySelectorAll("pre").forEach(t=>{t.querySelectorAll("br").forEach(e=>e.replaceWith("\n"));const a=e.createElement("code");a.textContent=t.textContent;const l=t.getAttribute("data-language");l&&(a.className=`language-${l}`),t.replaceChildren(a)})};export{t as prepareCodeBlocksForExport,e as prepareCodeBlocksForImport};
|
|
2
|
-
//# sourceMappingURL=codeBlockSerialization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codeBlockSerialization.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const t=(t,e)=>{let l=0;for(let r=e-1;r>=0&&"\\"===t[r];r-=1)l+=1;return l%2==1},e=new Set(["updated","upt","manual","deleted","changed","del","ins","preserved","mark"]),l=String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`,r=[new RegExp(String.raw`^<\/(?:manual|upt|updated)\s*>`,"i"),new RegExp(String.raw`^<invisible\b${l}>[\s\S]*?<\/invisible\s*>`,"i"),new RegExp(String.raw`^<manual\b${l}>[\s\S]*?<\/manual\s*>`,"i"),new RegExp(String.raw`^<upt\b${l}>[\s\S]*?<\/upt\s*>`,"i")],n=t=>{let e=t.trim();for(;e;){const t=r.map(t=>e.match(t)).find(Boolean);if(!t)break;e=e.slice(t[0].length).trimStart()}return""===e},i=(e,l)=>{let r="";for(let n=l+1;n<e.length;n+=1){const l=e[n];if(r)l!==r||t(e,n)||(r="");else if('"'===l||"'"===l)r=l;else if(">"===l)return n}return-1},a=l=>{var r,a;const s=l.trimEnd(),u=[];let c="",o=0,h=0,g=-1,d=-1;for(let l=0;l<s.length;l+=1){if("<"===s[l]&&/[A-Za-z/]/.test(null!==(r=s[l+1])&&void 0!==r?r:"")){const t=i(s,l);if(-1!==t){const r=s.slice(l,t+1),n=r.match(/^<\s*(\/?)\s*([A-Za-z][\w:-]*)/),i=null!==(a=null==n?void 0:n[2].toLowerCase())&&void 0!==a?a:"";e.has(i)&&("/"===(null==n?void 0:n[1])?o=Math.max(0,o-1):/\/\s*>$/.test(r)||(o+=1)),c+=r,l=t;continue}}"|"!==s[l]||0!==o||t(s,l)?c+=s[l]:(u.push(c),c="",-1===g&&(g=l),d=l,h+=1)}if(u.push(c),!h)return null;const p=s.search(/\S/),f=p>=0&&"|"===s[p],v=!f&&n(u[0]),m=d===s.length-1,S=!m&&n(u[u.length-1]);return(f||v)&&u.shift(),(m||S)&&u.pop(),{cells:u,trailingPipe:m,firstStructuralPipe:g,lastStructuralPipe:d,hasLeadingMetadata:v,hasTrailingMetadata:S}},s=t=>!!t&&t.cells.length>0&&t.cells.every(t=>/^\s*:?-{3,}:?\s*$/.test(t)),u=(t,e,l)=>{var r,n;if(l<=0)return t;const i=null!==(n=null===(r=t.match(/\s*$/))||void 0===r?void 0:r[0])&&void 0!==n?n:"";return`${t.slice(0,t.length-i.length)}${e.trailingPipe?" |".repeat(l):` | |${" |".repeat(l-1)}`}${i}`},c=(t,e,l)=>{var r,n;if(l<=0)return t;const i=null!==(n=null===(r=t.match(/\s*$/))||void 0===r?void 0:r[0])&&void 0!==n?n:"";return`${t.slice(0,t.length-i.length)}${e.trailingPipe?" --- |".repeat(l):" | ---".repeat(l)}${i}`},o=t=>{const e=new Set;let l="",r=0;return t.forEach((t,n)=>{var i;const a=t.match(/^\s{0,3}(`{3,}|~{3,})/);l?(e.add(n),a&&a[1][0]===l&&a[1].length>=r&&/^\s*$/.test(t.slice((null!==(i=a.index)&&void 0!==i?i:0)+a[0].length))&&(l="",r=0)):a&&(l=a[1][0],r=a[1].length,e.add(n))}),e},h=t=>{var e;return{separators:null!==(e=t.match(/\r\n|\n|\r/g))&&void 0!==e?e:[],lines:t.split(/\r\n|\n|\r/)}},g=(t,e)=>t.map((t,l)=>{var r;return`${t}${null!==(r=e[l])&&void 0!==r?r:""}`}).join(""),d=t=>{let e=t,l=a(e);if(!l)return t;if(l.hasLeadingMetadata){const t=e.slice(0,l.firstStructuralPipe);e=e.slice(l.firstStructuralPipe,l.firstStructuralPipe+1)+t+e.slice(l.firstStructuralPipe+1),l=a(e)}if(null==l?void 0:l.hasTrailingMetadata){const t=e.slice(l.lastStructuralPipe+1);e=e.slice(0,l.lastStructuralPipe)+t+e.slice(l.lastStructuralPipe,l.lastStructuralPipe+1)}return e},p=t=>{const{lines:e,separators:l}=h(t),r=o(e);for(let t=1;t<e.length;t+=1){if(r.has(t)||r.has(t-1))continue;const l=a(e[t]),n=a(e[t-1]);if(s(l)&&n){e[t-1]=d(e[t-1]);for(let l=t+1;l<e.length&&(e[l].trim()&&!r.has(l));l+=1){const t=a(e[l]);if(!t||s(t))break;e[l]=d(e[l])}}}return g(e,l)},f=t=>{const{lines:e,separators:l}=h(t),r=o(e);for(let t=1;t<e.length;t+=1){if(r.has(t)||r.has(t-1))continue;const l=a(e[t]),n=a(e[t-1]);if(!s(l)||!n)continue;const i=Math.max(n.cells.length,l.cells.length);let o=i;for(let l=t+1;l<e.length&&(e[l].trim()&&!r.has(l));l+=1){const t=a(e[l]);if(!t||s(t))break;let r=t.cells.length;for(;r>i&&!t.cells[r-1].trim();)r-=1;o=Math.max(o,r)}e[t-1]=u(e[t-1],n,o-n.cells.length),e[t]=c(e[t],l,o-l.cells.length)}return g(e,l)},v=e=>{var l;let r="",n=!1,i="";for(let a=0;a<e.length;a+=1){const s=e[a];n?(r+=s,i?s!==i||t(e,a)||(i=""):'"'===s||"'"===s?i=s:">"===s&&(n=!1)):"<"===s&&/[A-Za-z/!?]/.test(null!==(l=e[a+1])&&void 0!==l?l:"")?(n=!0,r+=s):r+="|"!==s||t(e,a)?s:"\\|"}return r},m=(t,e)=>{var l,r;const n=e,i=0===Array.from(null!==(r=null===(l=n.parentElement)||void 0===l?void 0:l.children)&&void 0!==r?r:[]).indexOf(n);let a=t.trim().replace(/\n{2,}/g,"<br><br>").replace(/\n/g,"<br>");return/^(?:<br>)+$/.test(a)&&(a=""),a=v(a),i?a?`| ${a} |`:"| |":a?` ${a} |`:" |"};export{f as ensureMarkdownTableColumnCounts,v as escapeMarkdownTableCellPipes,m as markdownTableCellReplacement,p as normalizeMarkdownTableBoundaryMetadataForRendering};
|
|
2
|
-
//# sourceMappingURL=markdownTableSerialization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdownTableSerialization.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{normalizeMarkdownTableBoundaryMetadataForRendering as e}from"./markdownTableSerialization.js";const t=String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`,n=new RegExp(String.raw`<updated\b(${t})>([\s\S]*?)<\/updated\s*>`,"gi"),r=new RegExp(String.raw`<upt\b(${t})>([\s\S]*?)<\/upt\s*>`,"gi"),l=new RegExp(String.raw`<(deleted|changed)\b(${t})>([\s\S]*?)<\/\1\s*>`,"gi"),i=new Set(["updated","upt","manual","deleted","changed","del","ins","preserved","mark"]),s=(e,t)=>{let n=0;for(let r=t-1;r>=0&&"\\"===e[r];r-=1)n+=1;return n%2==1},d=(e,t)=>{let n="";for(let r=t+1;r<e.length;r+=1){const t=e[r];if(n)t!==n||s(e,r)||(n="");else if('"'===t||"'"===t)n=t;else if(">"===t)return r}return-1},a=e=>{var t,n;let r="",l=0;for(let a=0;a<e.length;a+=1){if("<"===e[a]&&/[A-Za-z/]/.test(null!==(t=e[a+1])&&void 0!==t?t:"")){const t=d(e,a);if(-1!==t){const s=e.slice(a,t+1),d=s.match(/^<\s*(\/?)\s*([A-Za-z][\w:-]*)/),o=null!==(n=null==d?void 0:d[2].toLowerCase())&&void 0!==n?n:"",c=i.has(o),u="/"===(null==d?void 0:d[1]),g=/\/\s*>$/.test(s);r+=c||l>0?s.replace(/\|/g,"|"):s,c&&u?l=Math.max(0,l-1):c&&!g&&(l+=1),a=t;continue}}"|"===e[a]&&l>0?(s(e,a)&&(r=r.slice(0,-1)),r+="|"):r+=e[a]}return r},o=e=>{const t=e.trim();if(!t.includes("|"))return null;const n=[];let r="";for(let e=0;e<t.length;e+=1){const l=t[e],i=e>0&&"\\"===t[e-1];"|"!==l||i?r+=l:(n.push(r.trim()),r="")}return n.push(r.trim()),t.startsWith("|")&&n.shift(),t.endsWith("|")&&n.pop(),n},c=e=>!!(null==e?void 0:e.length)&&e.every(e=>/^:?-{3,}:?$/.test(e)),u=e=>`| ${e.join(" | ")} |`,g=e=>e.replace(r,(e,t,n)=>{if(!(e=>{const t=e.split("\n");return t.some((e,n)=>{var r;return n>0&&c(o(e))&&!!(null===(r=o(t[n-1]))||void 0===r?void 0:r.length)})})(n))return e;return`<updated${t}>${n.replace(/<del\b([^>]*)>/gi,"<deleted$1>").replace(/<\/del\s*>/gi,"</deleted>").replace(/<ins\b([^>]*)>/gi,"<changed$1>").replace(/<\/ins\s*>/gi,"</changed>")}</updated>`}),p=r=>{if(!r)return"";let i=g(r).replace(n,(e,t,n)=>{if(!n.includes("|"))return e;if(!/\bid\s*=\s*["']ai_reasoning\$/i.test(t))return n;const r=/\bdata-main\b/i.test(t)?"":" data-main",l=((e,t)=>{const n=t.match(/\bid\s*=\s*["']([^"']+)["']/i);if(!n)return e;const r=encodeURIComponent(n[1]);return e.replace(/<(deleted|changed)\b([^>]*)>/gi,(e,t,n)=>/\bdata-upt-id\s*=/i.test(n)?e:`<${t}${n} data-upt-id="${r}">`)})(n,t);return`<upt${t}${r}></upt>\n\n${l}`});return i=(e=>{const n=new RegExp(String.raw`(<deleted\b${t}>(?:(?!<\/deleted\s*>)[\s\S])*?\|(?:(?!<\/deleted\s*>)[\s\S])*?<\/deleted\s*>)\s*(<changed\b${t}>[^|]*?<\/changed\s*>)\s*\|`,"gi"),r=e.replace(n,(e,t,n)=>{var r;return`${(null!==(r=t.replace(/<\/deleted\s*>$/i,"").trimEnd().split("\n").at(-1))&&void 0!==r?r:"").trimEnd().endsWith("|")?t:t.replace(/<\/deleted\s*>$/i," |</deleted>")}\n${n}`}),i=new RegExp(String.raw`(<deleted\b${t}>(?:(?!<\/deleted\s*>)[\s\S])*?\|(?:(?!<\/deleted\s*>)[\s\S])*?<\/deleted\s*>)\s*(?=<changed\b${t}>)`,"gi"),s=r.replace(i,"$1\n\n");return s.replace(l,(e,t,n,r,l)=>{if(!r.includes("|"))return e;const i=s.slice(0,l),d=/(?:^|\n)[ \t]*$/.test(i);return r.split("\n").map((e,r)=>{if(!e)return e;let l=e;l.includes("|")&&!/^\s*\|/.test(l)&&(r>0||d)&&(l=`| ${l}`);const i=o(l);return c(i)?l:l.split(/(\|)/).map(e=>"|"!==e&&e.trim()?`<${t}${n}>${e}</${t}>`:e).join("")}).join("\n")})})(i),i=i.replace(/([([])\s+(?=<(?:deleted|changed)>)/gi,"$1"),i=a(i),i=e(i),(e=>{const t=e.split("\n");for(let e=1;e<t.length;e+=1){const n=o(t[e]);if(!c(n))continue;const r=o(t[e-1]);if(!(null==r?void 0:r.length))continue;for(;r.length>n.length;){const e=r.findIndex(e=>""===e);if(-1===e)break;r.splice(e,1)}const l=Math.max(r.length,n.length);let i=e+1,s=0;for(;i<t.length&&""!==t[i].trim();){const e=o(t[i]);if(!e)break;for(;e.length>l;){const t=e.findIndex(e=>""===e);if(-1===t)break;e.splice(t,1)}t[i]=u(e),s=Math.max(s,e.length),i+=1}const d=Math.max(r.length,n.length,s);for(;r.length<d;)r.push("");for(;n.length<d;)n.push("---");t[e-1]=u(r),t[e]=u(n)}return t.join("\n")})(i)};export{p as normalizeRedlineMarkdown,a as protectReviewTagPipesForRendering};
|
|
2
|
-
//# sourceMappingURL=normalizeRedlineMarkdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeRedlineMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=(e,n)=>{let t=0;for(let r=n-1;r>=0&&"\\"===e[r];r-=1)t+=1;return t%2==1},n=e=>/[\p{L}\p{N}]/u.test(e),t=(n,t)=>{let r="",l=0,o="",s=!1,a=0;return n.split(/(\r?\n)/).map(n=>{var i;if(/^\r?\n$/.test(n))return n;const c=s||a?null:n.match(/^\s*(`{3,}|~{3,})/);if(r)return c&&c[1][0]===r&&c[1].length>=l&&(r="",l=0),n;if(c)return r=c[1][0],l=c[1].length,n;let d="";for(let r=0;r<n.length;r+=1){const l=n[r];if(s){d+=l,o?l!==o||e(n,r)||(o=""):'"'===l||"'"===l?o=l:">"===l&&(s=!1);continue}if(!a&&"<"===l&&/[A-Za-z/!?]/.test(null!==(i=n[r+1])&&void 0!==i?i:"")){s=!0,d+=l;continue}if("`"===l&&!e(n,r)){let e=1;for(;"`"===n[r+e];)e+=1;a?a===e&&(a=0):a=e,d+=n.slice(r,r+e),r+=e-1;continue}if(a){d+=l;continue}const c=t(n,r);c?(d+=c.value,r+=c.consumedLength-1):d+=l}return d}).join("")},r=r=>t(r,(t,r)=>{var l,o;if("_"!==t[r]||e(t,r))return null;let s=1;for(;"_"===t[r+s];)s+=1;return n(null!==(l=t[r-1])&&void 0!==l?l:"")&&n(null!==(o=t[r+s])&&void 0!==o?o:"")?{consumedLength:s,value:"\\_".repeat(s)}:null}),l=e=>Array.from(e.matchAll(/[\p{L}\p{N}]+(?:(?:\\?_)+[\p{L}\p{N}]+)+/gu),e=>{var n;return{index:null!==(n=e.index)&&void 0!==n?n:0,raw:e[0],visible:e[0].replace(/\\_/g,"_")}}),o=(r,o)=>{let s=t(o,(t,r)=>{var l,o;if("\\"!==t[r]||e(t,r))return null;let s=r,a=0;for(;"\\"===t[s]&&"_"===t[s+1]&&!e(t,s);)a+=1,s+=2;return a&&n(null!==(l=t[r-1])&&void 0!==l?l:"")&&n(null!==(o=t[s])&&void 0!==o?o:"")?{consumedLength:s-r,value:"_".repeat(a)}:null});const a=l(r),i=l(s);if(!a.length||!i.length)return s;const c=Array.from({length:a.length+1},()=>Array(i.length+1).fill(0));for(let e=a.length-1;e>=0;e-=1)for(let n=i.length-1;n>=0;n-=1)c[e][n]=a[e].visible===i[n].visible?c[e+1][n+1]+1:Math.max(c[e+1][n],c[e][n+1]);const d=[];let g=0,u=0;for(;g<a.length&&u<i.length;)a[g].visible===i[u].visible?(d.push({sourceIndex:g,generatedIndex:u}),g+=1,u+=1):c[g+1][u]>=c[g][u+1]?g+=1:u+=1;return d.sort((e,n)=>i[n.generatedIndex].index-i[e.generatedIndex].index).forEach(({sourceIndex:e,generatedIndex:n})=>{const t=a[e],r=i[n];t.raw!==r.raw&&(s=s.slice(0,r.index)+t.raw+s.slice(r.index+r.raw.length))}),s},s=e=>/^(?:B|STRONG)$/.test(e.tagName)?"bold":/^(?:I|EM)$/.test(e.tagName)?"italic":"",a=e=>0===e.attributes.length,i=e=>{var n;Array.from(e.classList).filter(e=>e.startsWith("PlaygroundEditorTheme__")).forEach(n=>e.classList.remove(n)),e.classList.length||e.removeAttribute("class");const t=e;"pre-wrap"===t.style.whiteSpace&&t.style.removeProperty("white-space"),(null===(n=t.getAttribute("style"))||void 0===n?void 0:n.trim())||t.removeAttribute("style")},c=e=>{e.querySelectorAll("b, strong, i, em").forEach(i);let n=!0;for(;n;){n=!1,e.querySelectorAll("b b, b strong, strong b, strong strong, i i, i em, em i, em em").forEach(e=>{const t=e.parentElement;t&&s(t)===s(e)&&a(e)&&(e.replaceWith(...Array.from(e.childNodes)),n=!0)});[e,...Array.from(e.querySelectorAll("*"))].forEach(e=>{let t=e.firstChild;for(;t;){const e=t.nextSibling;t instanceof Element&&e instanceof Element&&s(t)&&s(t)===s(e)&&a(t)&&a(e)?(t.append(...Array.from(e.childNodes)),e.remove(),n=!0):t=e}})}},d=t=>{var r,l,o;const s=[],a=[];let i="",c=!1,d=0;for(let g=0;g<t.length;g+=1){const u=t[g];if(c){i?u!==i||e(t,g)||(i=""):'"'===u||"'"===u?i=u:">"===u&&(c=!1);continue}if(!d&&"<"===u&&/[A-Za-z/!?]/.test(null!==(r=t[g+1])&&void 0!==r?r:"")){c=!0;continue}if("`"===u&&!e(t,g)){let e=1;for(;"`"===t[g+e];)e+=1;d?d===e&&(d=0):d=e,g+=e-1;continue}if(d||"*"!==u&&"_"!==u)continue;if(e(t,g))continue;let h=1;for(;t[g+h]===u;)h+=1;const p=null!==(l=t[g-1])&&void 0!==l?l:"",m=null!==(o=t[g+h])&&void 0!==o?o:"",f="_"===u&&n(p)&&n(m),x=""!==m&&!/\s/.test(m)&&!f;let I=0,$=h;if(""!==p&&!/\s/.test(p)&&!f){let e=a.at(-1);for(;e&&e.marker===u&&$>=e.markerLength;)s.push({...e,closeIndex:g+I}),I+=e.markerLength,$-=e.markerLength,a.pop(),e=a.at(-1)}x&&$>0&&$<=3&&a.push({openIndex:g+I,marker:u,markerLength:$}),g+=h-1}return s.sort((e,n)=>e.openIndex-n.openIndex)},g=e=>{let n="";return e.split("\n").map(e=>{const t=e.match(/^\s*(`{3,}|~{3,})/);if(t){const r=t[1][0];return n?n===r&&(n=""):n=r,e}return n?e:e.split(/(`+[^`]*`+)/g).map((e,n)=>n%2==1?e:e.replace(/\*{3}([ \t]*)(\S(?:.*?\S)?)([ \t]*)\*{3}/g,(e,n,t,r)=>`${n}***${t}***${r}`)).join("")}).join("\n")},u=e=>e.replace(/(<(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>)(<del\b(?:[^>"']|"[^"]*"|'[^']*')*>)(\*{1,3}|_{1,3})([\s\S]*?)(<\/del\s*>)([ \t]*)(<ins\b(?:[^>"']|"[^"]*"|'[^']*')*>)\3([\s\S]*?)(<\/ins\s*>)(<\/(?:manual|upt)\s*>)([^\n]*?)\3/g,(e,n,t,r,l,o,s,a,i,c,d,g)=>`${r}${n}${t}${l}${o}${s}${a}${i}${c}${d}${g}${r}`),h=e=>e.replace(/(<(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<ins\b(?:[^>"']|"[^"]*"|'[^']*')*>)([\s\S]*?)(<\/ins\s*>[\s\S]*?<\/(?:manual|upt)\s*>)/gi,(e,n,t,r,l,o)=>{const s=o.lastIndexOf("\n",Math.max(0,l-1))+1,a=o.indexOf("\n",l+e.length),i=o.slice(s,l),c=o.slice(l+e.length,-1===a?o.length:a);if(!["**","__"].some(e=>i.includes(e)&&c.includes(e)))return e;return`${n}${t.replace(/(\*{2}|_{2})([ \t]+)((\*{3}|_{3})(\S(?:.*?\S)?)\4)([ \t]+)\1/g,(e,n,t,r,l,o,s)=>`${t}${r}${s}`)}${r}`}),p=e=>e.split(/(`+[^`]*`+|<(?:[^>"']|"[^"]*"|'[^']*')*>)/g).map((e,n)=>n%2==1?e:e.replace(/\*{1,3}/g,"")).join("").replace(/[ \t]*(<\/?(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>)[ \t]*/gi,"$1").replace(/\r\n/g,"\n"),m=(e,n)=>{const t=e.split(/(\r?\n\r?\n)/),r=n.split(/(\r?\n\r?\n)/);return t.length!==r.length?n:r.map((e,n)=>{if(n%2==1)return e;const r=t[n],l=p(r)===p(e),o=/<(?:manual|upt)\b/i.test(r),s=/\*{4,}/.test(e);return l&&(o||s)?r:e}).join("")},f=e=>{const n=[];let t="",r=0;return e.split("\n").forEach(e=>{const l=e.match(/^\s*(`{3,}|~{3,})/);if(l){const n=l[1][0];return t?t===n&&(t=""):t=n,void(r+=e.length+1)}if(!t){let t=0;e.split(/(`+[^`]*`+)/g).forEach((e,l)=>{l%2==0&&Array.from(e.matchAll(/\*{3}([ \t]*)(\S(?:.*?\S)?)([ \t]*)\*{3}/g)).forEach(e=>{var l;const o=r+t+(null!==(l=e.index)&&void 0!==l?l:0);n.push({openIndex:o,closeIndex:o+e[0].length-3,leadingSpace:e[1],content:e[2],trailingSpace:e[3]})}),t+=e.length})}r+=e.length+1}),n},x=e=>d(e).flatMap(e=>[{index:e.openIndex,length:e.markerLength},{index:e.closeIndex,length:e.markerLength}]).sort((e,n)=>n.index-e.index).reduce((e,n)=>e.slice(0,n.index)+e.slice(n.index+n.length),e),I=/(<(manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/\2\s*>)/gi,$=(e,n)=>{n=((e,n)=>{const t=f(e),r=f(n);if(!t.length||!r.length)return n;const l=[];if(t.length===r.length)r.forEach((e,n)=>{l.push({sourceIndex:n,generatedIndex:n})});else{let e=0;r.forEach((n,r)=>{const o=t.findIndex((t,r)=>r>=e&&t.content===n.content);-1!==o&&(l.push({sourceIndex:o,generatedIndex:r}),e=o+1)})}let o=n;return l.sort((e,n)=>r[n.generatedIndex].openIndex-r[e.generatedIndex].openIndex).forEach(({sourceIndex:e,generatedIndex:n})=>{const l=t[e],s=r[n],a=`***${l.leadingSpace}${s.content}${l.trailingSpace}***`;o=o.slice(0,s.openIndex)+a+o.slice(s.closeIndex+3)}),o})(e,n),n=((e,n)=>{const t=d(e).filter(n=>/<(?:manual|upt)\b/i.test(e.slice(n.openIndex+n.markerLength,n.closeIndex)));let r=n;return t.sort((e,n)=>n.openIndex-e.openIndex).forEach(n=>{const t=n.marker.repeat(n.markerLength),l="*".repeat(n.markerLength),o=e.slice(n.openIndex+n.markerLength,n.closeIndex),s=o.split(new RegExp(I.source,"gi")).filter((e,n)=>e&&(n%3==0||n%3==1)).map(e=>/^<(?:manual|upt)\b/i.test(e)?e:`${l}${e}${l}`).join(""),a=`${t}${o}${t}`;s&&r.includes(s)&&(r=r.replace(s,a))}),r})(e,n);const t=d(e),r=d(n),l=(e,n)=>e.slice(n.openIndex+n.markerLength,n.closeIndex).replace(/\r\n/g,"\n"),o=t.map(n=>l(e,n)),s=r.map(e=>l(n,e)),a=[],i=(e,n)=>t[e].markerLength===r[n].markerLength&&o[e]===s[n],c=Array.from({length:o.length+1},()=>Array(s.length+1).fill(0));for(let e=o.length-1;e>=0;e-=1)for(let n=s.length-1;n>=0;n-=1)c[e][n]=i(e,n)?c[e+1][n+1]+1:Math.max(c[e+1][n],c[e][n+1]);let g=0,u=0;for(;g<o.length&&u<s.length;)i(g,u)?(a.push({sourceIndex:g,generatedIndex:u}),g+=1,u+=1):c[g+1][u]>=c[g][u+1]?g+=1:u+=1;if(t.length===r.length){const e=new Set(a.map(e=>e.generatedIndex));for(let n=0;n<r.length;n+=1)e.has(n)||t[n].markerLength!==r[n].markerLength||a.push({sourceIndex:n,generatedIndex:n})}let h=n;return a.sort((e,n)=>n.generatedIndex-e.generatedIndex),a.forEach(({sourceIndex:e,generatedIndex:n})=>{const l=t[e],o=r[n],s=l.marker.repeat(l.markerLength);h=h.slice(0,o.closeIndex)+s+h.slice(o.closeIndex+o.markerLength),h=h.slice(0,o.openIndex)+s+h.slice(o.openIndex+o.markerLength)}),h};export{d as collectMarkdownEmphasisRanges,x as markdownWithoutEmphasisMarkers,g as normalizeCombinedEmphasisForRendering,h as normalizeNestedReviewEmphasisForRendering,c as normalizeRedundantInlineFormattingElements,u as normalizeReviewBoundaryEmphasisForRendering,$ as preserveEmphasisMarkersFromSource,o as preserveLiteralMidWordUnderscoresFromSource,m as preserveUnchangedEmphasisParagraphsFromSource,r as protectLiteralMidWordUnderscoresForRendering};
|
|
2
|
-
//# sourceMappingURL=preserveMarkdownEmphasis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveMarkdownEmphasis.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import e from"showdown";const n=new Set(Array.from("`*_{}[]()>#+.!~=|:-")),t=e=>e.replace(/&(?:#\d+|#x[\da-f]+|[a-z][\da-z]+);/gi,e=>{const n=document.createElement("textarea");return n.innerHTML=e,n.value}),r=/<!--\s*([a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12})\s*-->/gi,a=/<invisible\b[^>]*\bid=(["'])([a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12})\1[^>]*>\s*<\/invisible>/gi,l=new e.Converter({tables:!0,simpleLineBreaks:!0,literalMidWordUnderscores:!0}),o=e=>e.split(/\r?\n/).filter(e=>/^ {0,3}\[[^\]]+\]:\s*\S/.test(e)).join("\n"),s=e=>e.replace(r,(e,n)=>`ZXQDOCUMENTANCHOR${n.replace(/-/g,"")}QXZ`).replace(a,(e,n,t)=>`ZXQDOCUMENTANCHOR${t.replace(/-/g,"")}QXZ`),c=(e,n)=>{const t=l.makeHtml(n?`${s(e)}\n\n${n}`:s(e)).replace(/\r\n/g,"\n");return(new DOMParser).parseFromString(t,"text/html").body.innerHTML},i=e=>{var r;let a="";for(let t=0;t<e.length;t+=1){if("\\"!==e[t]){a+=e[t];continue}let l=1;for(;"\\"===e[t+l];)l+=1;const o=null!==(r=e[t+l])&&void 0!==r?r:"",s=n.has(o),c=s?Math.floor(l/2):Math.ceil(l/2);a+="\\".repeat(c),s?(a+=o,t+=l):t+=l-1}return t(a).replace(/\r\n/g,"\n")},d=e=>e.split(/(\r?\n\r?\n)/),p=e=>/[\p{L}\p{N}]/u.test(e),f=e=>{var r,a,l,o;const s=[];for(let c=0;c<e.length;c+=1){const d=e[c],f="&"===d?null===(r=e.slice(c).match(/^&(?:#\d+|#x[\da-f]+|[a-z][\da-z]+);/i))||void 0===r?void 0:r[0]:void 0;if(f)s.push({comparable:t(f),escapeKind:"entity",raw:f}),c+=f.length-1;else{if("\\"===d){let t=1;for(;"\\"===e[c+t];)t+=1;const r=null!==(a=e[c+t])&&void 0!==a?a:"",l=n.has(r),o=t+(l?1:0),d=e.slice(c,c+o);s.push({comparable:i(d),escapeKind:l?r:"\\",raw:d}),c+=o-1;continue}if(p(d)){let n=c+1;for(;p(null!==(l=e[n])&&void 0!==l?l:"");)n+=1;const t=e.slice(c,n);s.push({comparable:t,escapeKind:"",raw:t}),c=n-1;continue}if(/\s/.test(d)){let n=c+1;for(;/\s/.test(null!==(o=e[n])&&void 0!==o?o:"");)n+=1;const t=e.slice(c,n);s.push({comparable:t,escapeKind:"",raw:t}),c=n-1;continue}s.push({comparable:d,escapeKind:d,raw:d})}}return s},h=(e,n)=>{const t=d(e),r=d(n),a=t.filter((e,n)=>n%2==0),l=r.filter((e,n)=>n%2==0),s=a.map(i),p=l.map(i),h=o(e),u=o(n),g=new Array(a.length),m=new Array(l.length),w=(e,n)=>{var t,r;return a[e]===l[n]||s[e]===p[n]&&(null!==(t=g[e])&&void 0!==t||(g[e]=c(a[e],h)),null!==(r=m[n])&&void 0!==r||(m[n]=c(l[n],u)),g[e]===m[n])},v=Array.from({length:a.length+1},()=>new Uint32Array(l.length+1));for(let e=a.length-1;e>=0;e-=1)for(let n=l.length-1;n>=0;n-=1)v[e][n]=w(e,n)?v[e+1][n+1]+1:Math.max(v[e+1][n],v[e][n+1]);const x=new Map,b=new Set,M=[];let I=0,y=0;for(;I<a.length&&y<l.length;)w(I,y)?(x.set(y,I),b.add(I),M.push({sourceIndex:I,generatedIndex:y}),I+=1,y+=1):v[I+1][y]>=v[I][y+1]?I+=1:y+=1;const K=new Map,A=[{sourceIndex:-1,generatedIndex:-1},...M,{sourceIndex:a.length,generatedIndex:l.length}];for(let e=1;e<A.length;e+=1){const n=A[e-1],t=A[e],r=t.sourceIndex-n.sourceIndex-1;if(r===t.generatedIndex-n.generatedIndex-1)for(let e=1;e<=r;e+=1)K.set(n.generatedIndex+e,n.sourceIndex+e)}for(let e=0;e<l.length;e+=1){if(x.has(e))continue;const n=a.findIndex((n,t)=>!b.has(t)&&w(t,e));-1!==n&&(x.set(e,n),b.add(n))}let E=0;return r.map((e,n)=>{if(n%2==1)return e;const t=x.get(E),r=K.get(E);return E+=1,void 0!==t?a[t]:void 0===r?e:((e,n,t)=>{const r=f(e),a=f(n),l=Array.from({length:r.length+1},()=>new Uint32Array(a.length+1));for(let e=r.length-1;e>=0;e-=1)for(let n=a.length-1;n>=0;n-=1)l[e][n]=r[e].comparable===a[n].comparable?l[e+1][n+1]+1:Math.max(l[e+1][n],l[e][n+1]);const o=new Map;let s=0,i=0;for(;s<r.length&&i<a.length;)r[s].comparable===a[i].comparable?(o.set(i,s),s+=1,i+=1):l[s+1][i]>=l[s][i+1]?s+=1:i+=1;const d=new Map;o.forEach((e,n)=>{var t;const l=r[e],o=a[n];if(l.raw===o.raw||!l.raw.includes("\\")&&!o.raw.includes("\\")&&"entity"!==l.escapeKind&&"entity"!==o.escapeKind)return;const s=o.escapeKind||l.escapeKind,c="["===s||"]"===s?"brackets":s,i=null!==(t=d.get(c))&&void 0!==t?t:new Map;i.set(n,l.raw),d.set(c,i)});let p=a.map(e=>e.raw),h=n;d.forEach(e=>{const n=[...p];e.forEach((e,t)=>{n[t]=e});const r=n.join("");c(r,t)===c(h,t)&&(p=n,h=r)});const u=new Map;return a.forEach((e,n)=>{var t;if(o.has(n)||!e.raw.includes("\\"))return;const r=["[","]"].includes(e.escapeKind)?"brackets":e.escapeKind;u.set(r,[...null!==(t=u.get(r))&&void 0!==t?t:[],n])}),u.forEach(e=>{const n=[...p];e.forEach(e=>{n[e]=a[e].comparable});const r=n.join("");c(r,t)===c(h,t)&&(p=n,h=r)}),h})(a[r],e,u)}).join("")};export{i as markdownWithoutEscapeSpelling,h as preserveUnchangedMarkdownEscapesFromSource};
|
|
2
|
-
//# sourceMappingURL=preserveMarkdownEscapes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveMarkdownEscapes.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=/<br\s*\/?>| {2,}\r?\n|\r\n|\r|\n/gi,t=e=>e.replace(/<[^>]*>/g," ").replace(/\\([*+\-=#`~[\]>_.])/g,"$1").replace(/[*_`~]+/g,"").replace(/ |\u00a0/gi," ").replace(/>/gi,">").replace(/</gi,"<").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/gi,"&").replace(/\s+/g," ").trim().toLocaleLowerCase(),r=r=>{const l=Array.from(r.matchAll(new RegExp(e.source,"gi")));return l.map((e,n)=>{var i,g,c,a;const s=null!==(i=e.index)&&void 0!==i?i:0,h=n>0?(null!==(g=l[n-1].index)&&void 0!==g?g:0)+l[n-1][0].length:0,f=null!==(a=null===(c=l[n+1])||void 0===c?void 0:c.index)&&void 0!==a?a:r.length;return{raw:e[0],left:t(r.slice(h,s).slice(-100)),right:t(r.slice(s+e[0].length,f).slice(0,100))}})},l=(t,l)=>{if(!t||!l)return l;const n=r(t),i=r(l);if(!n.length||!i.length)return l;if(n.length===i.length){let t=0;return l.replace(e,()=>n[t++].raw)}let g=0,c=0;return l.replace(e,e=>{const t=i[c++],r=n.findIndex((e,r)=>r>=g&&((e,t)=>{const r=Boolean(e.left&&t.left&&(e.left.endsWith(t.left)||t.left.endsWith(e.left))),l=Boolean(e.right&&t.right&&(e.right.startsWith(t.right)||t.right.startsWith(e.right)));if(r||l)return!0;const n=e.left&&e.left.length>=50&&t.left&&t.left.length>=50,i=e.right&&e.right.length>=50&&t.right&&t.right.length>=50;if(n){const r=e.left.slice(-30),l=t.left.slice(-30);if(r.split("").filter((e,t)=>l[t]===e).length>=15)return!0}if(i){const r=e.right.slice(0,30),l=t.right.slice(0,30);if(r.split("").filter((e,t)=>l[t]===e).length>=15)return!0}return!1})(e,t));return-1===r?e:(g=r+1,n[r].raw)})},n=/[^\S\r\n]*(?:\r?\n[^\S\r\n]*){2,}/g,i=e=>Array.from(e.matchAll(new RegExp(n.source,"g"))).map(r=>{var l;const n=null!==(l=r.index)&&void 0!==l?l:0,i=e.slice(0,n),g=e.slice(n+r[0].length);return{raw:r[0],left:t(i.slice(i.lastIndexOf("\n")+1).slice(-240)),right:t(g.split(/\r?\n/,1)[0].slice(0,240))}}),g=e=>{var t;return(null!==(t=e.match(/\r?\n/g))&&void 0!==t?t:[]).length},c=(e,t,r=!1)=>{if(!e||!t)return t;const l=i(e),c=i(t);if(!l.length||!c.length)return t;let a=0,s=0;return t.replace(n,e=>{const t=c[s++],n=l.findIndex((e,n)=>n>=a&&(e.left===t.left&&e.right===t.right||r&&l.length===c.length&&n===s-1)&&g(t.raw)<=g(e.raw)&&(e.raw.includes(" ")||g(t.raw)===g(e.raw)));return-1===n?e:(a=n+1,l[n].raw)})};export{l as preserveLineBreaksFromSource,c as preserveUnchangedWhitespaceRunsFromSource};
|
|
2
|
-
//# sourceMappingURL=preserveMarkdownLineBreaks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preserveMarkdownLineBreaks.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|