@meridianlabs/inspect-scout-viewer 0.4.21 → 0.4.38
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/README.md +2 -0
- package/package.json +47 -58
- package/lib/_commonjsHelpers-DWwsNxpa.js +0 -9
- package/lib/_commonjsHelpers-DWwsNxpa.js.map +0 -1
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js +0 -9
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js.map +0 -1
- package/lib/e2e/app-navigation.spec.d.ts +0 -1
- package/lib/e2e/fixtures/app.d.ts +0 -7
- package/lib/e2e/fixtures/handlers.d.ts +0 -2
- package/lib/e2e/fixtures/test-data.d.ts +0 -14
- package/lib/e2e/scan.spec.d.ts +0 -1
- package/lib/e2e/scans.spec.d.ts +0 -1
- package/lib/e2e/transcript.spec.d.ts +0 -1
- package/lib/e2e/transcripts.spec.d.ts +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -161737
- package/lib/index.js.map +0 -1
- package/lib/lib-CBtriEt5-CU1RYBHb.js +0 -1070
- package/lib/lib-CBtriEt5-CU1RYBHb.js.map +0 -1
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js +0 -644
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js.map +0 -1
- package/lib/src/App.d.ts +0 -6
- package/lib/src/AppErrorBoundary.d.ts +0 -15
- package/lib/src/AppRouter.d.ts +0 -6
- package/lib/src/api/api-scout-server.d.ts +0 -8
- package/lib/src/api/api-vscode.d.ts +0 -3
- package/lib/src/api/api.d.ts +0 -44
- package/lib/src/api/attachmentsHelpers.d.ts +0 -1
- package/lib/src/api/expandInputEvents.d.ts +0 -6
- package/lib/src/api/jsonrpc-fetch.d.ts +0 -20
- package/lib/src/api/jsonrpc.d.ts +0 -50
- package/lib/src/api/request.d.ts +0 -34
- package/lib/src/api/vscode-storage.d.ts +0 -3
- package/lib/src/app/components/ActivityBar.d.ts +0 -23
- package/lib/src/app/components/ActivityBarLayout.d.ts +0 -11
- package/lib/src/app/components/AddFilterButton.d.ts +0 -37
- package/lib/src/app/components/BreadCrumbs.d.ts +0 -10
- package/lib/src/app/components/Chip.d.ts +0 -12
- package/lib/src/app/components/ChipGroup.d.ts +0 -7
- package/lib/src/app/components/ColumnHeader.d.ts +0 -11
- package/lib/src/app/components/ColumnPickerButton.d.ts +0 -19
- package/lib/src/app/components/ColumnsPopover.d.ts +0 -25
- package/lib/src/app/components/EditablePath.d.ts +0 -15
- package/lib/src/app/components/EditableText.d.ts +0 -16
- package/lib/src/app/components/Error.d.ts +0 -7
- package/lib/src/app/components/Explanation.d.ts +0 -12
- package/lib/src/app/components/FilterBar.d.ts +0 -35
- package/lib/src/app/components/Footer.d.ts +0 -21
- package/lib/src/app/components/HeadingGrid.d.ts +0 -15
- package/lib/src/app/components/Identifier.d.ts +0 -7
- package/lib/src/app/components/NavButtons.d.ts +0 -12
- package/lib/src/app/components/Navbar.d.ts +0 -11
- package/lib/src/app/components/NextPreviousNav.d.ts +0 -11
- package/lib/src/app/components/Pager.d.ts +0 -9
- package/lib/src/app/components/ProjectBar.d.ts +0 -7
- package/lib/src/app/components/ScansNavbar.d.ts +0 -10
- package/lib/src/app/components/ScoreValue.d.ts +0 -10
- package/lib/src/app/components/TaskName.d.ts +0 -8
- package/lib/src/app/components/TranscriptsNavbar.d.ts +0 -11
- package/lib/src/app/components/ValidationResult.d.ts +0 -9
- package/lib/src/app/components/Value.d.ts +0 -15
- package/lib/src/app/components/columnFilter/ColumnFilterButton.d.ts +0 -6
- package/lib/src/app/components/columnFilter/ColumnFilterControl.d.ts +0 -16
- package/lib/src/app/components/columnFilter/ColumnFilterEditor.d.ts +0 -32
- package/lib/src/app/components/columnFilter/DurationInput.d.ts +0 -9
- package/lib/src/app/components/columnFilter/index.d.ts +0 -12
- package/lib/src/app/components/columnFilter/useAddFilterPopover.d.ts +0 -36
- package/lib/src/app/components/columnFilter/useColumnFilter.d.ts +0 -27
- package/lib/src/app/components/columnFilter/useColumnFilterPopover.d.ts +0 -25
- package/lib/src/app/components/columnSizing/defaultStrategy.d.ts +0 -2
- package/lib/src/app/components/columnSizing/fitContentStrategy.d.ts +0 -2
- package/lib/src/app/components/columnSizing/index.d.ts +0 -5
- package/lib/src/app/components/columnSizing/strategies.d.ts +0 -10
- package/lib/src/app/components/columnSizing/types.d.ts +0 -60
- package/lib/src/app/components/columnTypes.d.ts +0 -46
- package/lib/src/app/components/dataGrid/DataGrid.d.ts +0 -8
- package/lib/src/app/components/dataGrid/index.d.ts +0 -2
- package/lib/src/app/components/dataGrid/types.d.ts +0 -70
- package/lib/src/app/components/useBreadcrumbTruncation.d.ts +0 -12
- package/lib/src/app/components/useFilterBarHandlers.d.ts +0 -41
- package/lib/src/app/hooks/useFilterConditions.d.ts +0 -6
- package/lib/src/app/hooks/useScanFilterConditions.d.ts +0 -6
- package/lib/src/app/hooks/useScanResultSummaries.d.ts +0 -6
- package/lib/src/app/hooks/useScanRoute.d.ts +0 -8
- package/lib/src/app/hooks/useScansFilterBarProps.d.ts +0 -13
- package/lib/src/app/hooks/useSelectedScan.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanDataframe.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanResultData.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanResultInputData.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanner.d.ts +0 -2
- package/lib/src/app/hooks/useTranscriptsFilterBarProps.d.ts +0 -18
- package/lib/src/app/project/ProjectPanel.d.ts +0 -7
- package/lib/src/app/project/SettingsContent.d.ts +0 -7
- package/lib/src/app/project/components/FormFields.d.ts +0 -73
- package/lib/src/app/project/configUtils.d.ts +0 -30
- package/lib/src/app/project/hooks/useNestedConfig.d.ts +0 -28
- package/lib/src/app/runScan/ActiveScanView.d.ts +0 -6
- package/lib/src/app/runScan/DefineScannerSection.d.ts +0 -6
- package/lib/src/app/runScan/LlmScannerParams.d.ts +0 -14
- package/lib/src/app/runScan/RunScanPanel.d.ts +0 -2
- package/lib/src/app/runScan/ScannerParamsPlaceholder.d.ts +0 -6
- package/lib/src/app/scan/ScanPanel.d.ts +0 -2
- package/lib/src/app/scan/ScanPanelBody.d.ts +0 -6
- package/lib/src/app/scan/ScanPanelTitle.d.ts +0 -6
- package/lib/src/app/scan/info/ScanInfo.d.ts +0 -5
- package/lib/src/app/scan/scanners/ScannerPanel.d.ts +0 -5
- package/lib/src/app/scan/scanners/ScannerSidebar.d.ts +0 -5
- package/lib/src/app/scan/scanners/dataframe/DataframeGridApiContext.d.ts +0 -7
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeCSVButtons.d.ts +0 -11
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeClearFiltersButton.d.ts +0 -2
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeColumnsPopover.d.ts +0 -5
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeFilterColumnsButton.d.ts +0 -1
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeWrapTextButton.d.ts +0 -2
- package/lib/src/app/scan/scanners/dataframe/useOperationStatus.d.ts +0 -7
- package/lib/src/app/scan/scanners/list/ScannerResultsGroup.d.ts +0 -6
- package/lib/src/app/scan/scanners/list/ScannerResultsHeader.d.ts +0 -7
- package/lib/src/app/scan/scanners/list/ScannerResultsList.d.ts +0 -14
- package/lib/src/app/scan/scanners/list/ScannerResultsRow.d.ts +0 -9
- package/lib/src/app/scan/scanners/results/ScannerResultsBody.d.ts +0 -12
- package/lib/src/app/scan/scanners/results/ScannerResultsFilter.d.ts +0 -4
- package/lib/src/app/scan/scanners/results/ScannerResultsGroup.d.ts +0 -7
- package/lib/src/app/scan/scanners/results/ScannerResultsSearch.d.ts +0 -2
- package/lib/src/app/scan/scanners/types.d.ts +0 -1
- package/lib/src/app/scannerResult/ScannerResultHeader.d.ts +0 -9
- package/lib/src/app/scannerResult/ScannerResultNav.d.ts +0 -2
- package/lib/src/app/scannerResult/ScannerResultPanel.d.ts +0 -2
- package/lib/src/app/scannerResult/error/ErrorPanel.d.ts +0 -7
- package/lib/src/app/scannerResult/info/InfoPanel.d.ts +0 -9
- package/lib/src/app/scannerResult/metadata/MetadataPanel.d.ts +0 -7
- package/lib/src/app/scannerResult/result/ResultBody.d.ts +0 -10
- package/lib/src/app/scannerResult/result/ResultPanel.d.ts +0 -11
- package/lib/src/app/scannerResult/result/ResultSidebar.d.ts +0 -9
- package/lib/src/app/scannerResult/transcript/TranscriptPanel.d.ts +0 -10
- package/lib/src/app/scans/ScansFilterBar.d.ts +0 -7
- package/lib/src/app/scans/ScansGrid.d.ts +0 -21
- package/lib/src/app/scans/ScansPanel.d.ts +0 -2
- package/lib/src/app/scans/columnSizing/index.d.ts +0 -3
- package/lib/src/app/scans/columnSizing/useColumnSizing.d.ts +0 -33
- package/lib/src/app/scans/columns.d.ts +0 -25
- package/lib/src/app/scans/constants.d.ts +0 -35
- package/lib/src/app/server/index.d.ts +0 -6
- package/lib/src/app/server/useActiveScan.d.ts +0 -3
- package/lib/src/app/server/useActiveScans.d.ts +0 -3
- package/lib/src/app/server/useAdjacentTranscriptIds.d.ts +0 -10
- package/lib/src/app/server/useAppConfig.d.ts +0 -20
- package/lib/src/app/server/useCode.d.ts +0 -4
- package/lib/src/app/server/useHasTranscript.d.ts +0 -8
- package/lib/src/app/server/useProjectConfig.d.ts +0 -30
- package/lib/src/app/server/useScan.d.ts +0 -9
- package/lib/src/app/server/useScanDataframe.d.ts +0 -10
- package/lib/src/app/server/useScanDataframeInput.d.ts +0 -11
- package/lib/src/app/server/useScanners.d.ts +0 -3
- package/lib/src/app/server/useScans.d.ts +0 -3
- package/lib/src/app/server/useScansColumnValues.d.ts +0 -11
- package/lib/src/app/server/useScansInfinite.d.ts +0 -6
- package/lib/src/app/server/useServerTranscripts.d.ts +0 -5
- package/lib/src/app/server/useServerTranscriptsInfinite.d.ts +0 -13
- package/lib/src/app/server/useStartScan.d.ts +0 -3
- package/lib/src/app/server/useTopicInvalidation.d.ts +0 -11
- package/lib/src/app/server/useTranscript.d.ts +0 -9
- package/lib/src/app/server/useTranscriptsColumnValues.d.ts +0 -11
- package/lib/src/app/server/useValidations.d.ts +0 -83
- package/lib/src/app/timeline/components/TimelineEventsView.d.ts +0 -41
- package/lib/src/app/timeline/components/TimelineMinimap.d.ts +0 -30
- package/lib/src/app/timeline/components/TimelineOptionsPopover.d.ts +0 -10
- package/lib/src/app/timeline/components/TimelineSelector.d.ts +0 -11
- package/lib/src/app/timeline/components/TimelineSwimLanes.d.ts +0 -62
- package/lib/src/app/timeline/contentItems.d.ts +0 -29
- package/lib/src/app/timeline/hooks/useActiveTimeline.d.ts +0 -12
- package/lib/src/app/timeline/hooks/useScrubberPercent.d.ts +0 -8
- package/lib/src/app/timeline/hooks/useTimeline.d.ts +0 -46
- package/lib/src/app/timeline/hooks/useTimelineConfig.d.ts +0 -22
- package/lib/src/app/timeline/hooks/useTranscriptTimeline.d.ts +0 -37
- package/lib/src/app/timeline/syntheticNodes.d.ts +0 -7
- package/lib/src/app/timeline/testHelpers.d.ts +0 -26
- package/lib/src/app/timeline/timelineEventNodes.d.ts +0 -93
- package/lib/src/app/timeline/utils/markers.d.ts +0 -41
- package/lib/src/app/timeline/utils/swimlaneLayout.d.ts +0 -96
- package/lib/src/app/timeline/utils/swimlaneRows.d.ts +0 -62
- package/lib/src/app/timeline/utils/timeMapping.d.ts +0 -41
- package/lib/src/app/transcript/TranscriptBody.d.ts +0 -17
- package/lib/src/app/transcript/TranscriptFilterPopover.d.ts +0 -7
- package/lib/src/app/transcript/TranscriptNav.d.ts +0 -10
- package/lib/src/app/transcript/TranscriptPanel.d.ts +0 -2
- package/lib/src/app/transcript/TranscriptTitle.d.ts +0 -7
- package/lib/src/app/transcript/debugEventTree.d.ts +0 -4
- package/lib/src/app/transcript/hooks/useTranscriptColumnFilter.d.ts +0 -11
- package/lib/src/app/transcript/hooks/useTranscriptNavigation.d.ts +0 -12
- package/lib/src/app/transcript/hooks/useTranscriptTimeline.d.ts +0 -1
- package/lib/src/app/transcripts/TranscriptFilterBar.d.ts +0 -8
- package/lib/src/app/transcripts/TranscriptsGrid.d.ts +0 -21
- package/lib/src/app/transcripts/TranscriptsPanel.d.ts +0 -2
- package/lib/src/app/transcripts/columnSizing/index.d.ts +0 -3
- package/lib/src/app/transcripts/columnSizing/types.d.ts +0 -22
- package/lib/src/app/transcripts/columnSizing/useColumnSizing.d.ts +0 -34
- package/lib/src/app/transcripts/columns.d.ts +0 -37
- package/lib/src/app/transcripts/constants.d.ts +0 -35
- package/lib/src/app/types.d.ts +0 -112
- package/lib/src/app/utils/arrow.d.ts +0 -2
- package/lib/src/app/utils/arrowHelpers.d.ts +0 -4
- package/lib/src/app/utils/expandEvents.d.ts +0 -8
- package/lib/src/app/utils/messages.d.ts +0 -7
- package/lib/src/app/utils/refs.d.ts +0 -6
- package/lib/src/app/utils/results.d.ts +0 -10
- package/lib/src/app/utils/router.d.ts +0 -1
- package/lib/src/app/utils/scan.d.ts +0 -12
- package/lib/src/app/utils/transcript.d.ts +0 -29
- package/lib/src/app/utils/useScansDir.d.ts +0 -8
- package/lib/src/app/utils/useTranscriptsDir.d.ts +0 -8
- package/lib/src/app/validation/ValidationPanel.d.ts +0 -2
- package/lib/src/app/validation/components/CopyMoveCasesModal.d.ts +0 -24
- package/lib/src/app/validation/components/ValidationBulkActions.d.ts +0 -16
- package/lib/src/app/validation/components/ValidationCaseCard.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationCaseEditor.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationCaseLabelsEditor.d.ts +0 -20
- package/lib/src/app/validation/components/ValidationCasePredicateSelector.d.ts +0 -19
- package/lib/src/app/validation/components/ValidationCaseTargetEditor.d.ts +0 -13
- package/lib/src/app/validation/components/ValidationCasesList.d.ts +0 -19
- package/lib/src/app/validation/components/ValidationFilterBar.d.ts +0 -14
- package/lib/src/app/validation/components/ValidationSetSelector.d.ts +0 -21
- package/lib/src/app/validation/components/ValidationSplitSelector.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationSummary.d.ts +0 -11
- package/lib/src/app/validation/hooks/useTranscriptsByIds.d.ts +0 -13
- package/lib/src/app/validation/utils.d.ts +0 -55
- package/lib/src/components/AnsiDisplay.d.ts +0 -8
- package/lib/src/components/AsciinemaPlayer.d.ts +0 -19
- package/lib/src/components/AutocompleteInput.d.ts +0 -19
- package/lib/src/components/Card.d.ts +0 -32
- package/lib/src/components/ConfirmationDialog.d.ts +0 -15
- package/lib/src/components/CopyButton.d.ts +0 -12
- package/lib/src/components/DataframeView.d.ts +0 -17
- package/lib/src/components/DownloadScanButton.d.ts +0 -9
- package/lib/src/components/EmptyPanel.d.ts +0 -6
- package/lib/src/components/ErrorPanel.d.ts +0 -12
- package/lib/src/components/ExpandablePanel.d.ts +0 -12
- package/lib/src/components/ExtendedFindContext.d.ts +0 -7
- package/lib/src/components/ExtendedFindProvider.d.ts +0 -6
- package/lib/src/components/FindBand.d.ts +0 -6
- package/lib/src/components/HumanBaselineView.d.ts +0 -21
- package/lib/src/components/JsonPanel.d.ts +0 -11
- package/lib/src/components/LabeledValue.d.ts +0 -11
- package/lib/src/components/LightboxCarousel.d.ts +0 -14
- package/lib/src/components/LiveVirtualList.d.ts +0 -22
- package/lib/src/components/LoadingBar.d.ts +0 -6
- package/lib/src/components/MarkdownDiv.d.ts +0 -11
- package/lib/src/components/MarkdownDivWithReferences.d.ts +0 -18
- package/lib/src/components/MenuActionButton.d.ts +0 -15
- package/lib/src/components/Modal.d.ts +0 -11
- package/lib/src/components/NavPills.d.ts +0 -11
- package/lib/src/components/NoContentsPanel.d.ts +0 -7
- package/lib/src/components/NonIdealState.d.ts +0 -10
- package/lib/src/components/PopOver.d.ts +0 -23
- package/lib/src/components/Preformatted.d.ts +0 -7
- package/lib/src/components/ProgressBar.d.ts +0 -9
- package/lib/src/components/PulsingDots.d.ts +0 -10
- package/lib/src/components/SegmentedControl.d.ts +0 -14
- package/lib/src/components/SourceCodePanel.d.ts +0 -11
- package/lib/src/components/StickyScroll.d.ts +0 -18
- package/lib/src/components/TabSet.d.ts +0 -27
- package/lib/src/components/TextInput.d.ts +0 -10
- package/lib/src/components/ToolButton.d.ts +0 -10
- package/lib/src/components/ToolDropdownButton.d.ts +0 -11
- package/lib/src/components/chat/ChatMessage.d.ts +0 -13
- package/lib/src/components/chat/ChatMessageRenderer.d.ts +0 -15
- package/lib/src/components/chat/ChatMessageRow.d.ts +0 -22
- package/lib/src/components/chat/ChatView.d.ts +0 -21
- package/lib/src/components/chat/ChatViewVirtualList.d.ts +0 -30
- package/lib/src/components/chat/JsonMessageContent.d.ts +0 -7
- package/lib/src/components/chat/MessageCitations.d.ts +0 -6
- package/lib/src/components/chat/MessageContent.d.ts +0 -18
- package/lib/src/components/chat/MessageContents.d.ts +0 -15
- package/lib/src/components/chat/content-data/CompactionData.d.ts +0 -6
- package/lib/src/components/chat/content-data/ContentDataView.d.ts +0 -19
- package/lib/src/components/chat/content-data/WebSearch.d.ts +0 -4
- package/lib/src/components/chat/content-data/WebSearchResults.d.ts +0 -9
- package/lib/src/components/chat/documents/ContentDocumentView.d.ts +0 -8
- package/lib/src/components/chat/messageSearchText.d.ts +0 -5
- package/lib/src/components/chat/messages.d.ts +0 -8
- package/lib/src/components/chat/server-tools/ServerToolCall.d.ts +0 -12
- package/lib/src/components/chat/tools/ToolCallView.d.ts +0 -19
- package/lib/src/components/chat/tools/ToolInput.d.ts +0 -10
- package/lib/src/components/chat/tools/ToolOutput.d.ts +0 -11
- package/lib/src/components/chat/tools/ToolTitle.d.ts +0 -10
- package/lib/src/components/chat/tools/customToolRendering.d.ts +0 -2
- package/lib/src/components/chat/tools/tool-input/TodoWriteInput.d.ts +0 -5
- package/lib/src/components/chat/tools/tool.d.ts +0 -18
- package/lib/src/components/chat/types.d.ts +0 -8
- package/lib/src/components/content/DisplayModeContext.d.ts +0 -9
- package/lib/src/components/content/MetaDataGrid.d.ts +0 -20
- package/lib/src/components/content/RecordTree.d.ts +0 -24
- package/lib/src/components/content/RenderedContent.d.ts +0 -18
- package/lib/src/components/content/RenderedText.d.ts +0 -15
- package/lib/src/components/content/record_processors/store.d.ts +0 -2
- package/lib/src/components/content/record_processors/types.d.ts +0 -1
- package/lib/src/components/content/types.d.ts +0 -18
- package/lib/src/components/icons.d.ts +0 -151
- package/lib/src/components/prism.d.ts +0 -2
- package/lib/src/components/transcript/AgentCardView.d.ts +0 -8
- package/lib/src/components/transcript/ApprovalEventView.d.ts +0 -12
- package/lib/src/components/transcript/CompactionEventView.d.ts +0 -12
- package/lib/src/components/transcript/ErrorEventView.d.ts +0 -12
- package/lib/src/components/transcript/InfoEventView.d.ts +0 -12
- package/lib/src/components/transcript/InputEventView.d.ts +0 -12
- package/lib/src/components/transcript/LoggerEventView.d.ts +0 -12
- package/lib/src/components/transcript/ModelEventView.d.ts +0 -25
- package/lib/src/components/transcript/SampleInitEventView.d.ts +0 -12
- package/lib/src/components/transcript/SampleLimitEventView.d.ts +0 -12
- package/lib/src/components/transcript/SandboxEventView.d.ts +0 -12
- package/lib/src/components/transcript/ScoreEditEventView.d.ts +0 -12
- package/lib/src/components/transcript/ScoreEventView.d.ts +0 -12
- package/lib/src/components/transcript/SpanEventView.d.ts +0 -13
- package/lib/src/components/transcript/StepEventView.d.ts +0 -13
- package/lib/src/components/transcript/SubtaskEventView.d.ts +0 -13
- package/lib/src/components/transcript/TimelineSelectContext.d.ts +0 -7
- package/lib/src/components/transcript/ToolEventView.d.ts +0 -13
- package/lib/src/components/transcript/TranscriptView.d.ts +0 -13
- package/lib/src/components/transcript/TranscriptViewNodes.d.ts +0 -19
- package/lib/src/components/transcript/TranscriptVirtualList.d.ts +0 -31
- package/lib/src/components/transcript/TranscriptVirtualListComponent.d.ts +0 -18
- package/lib/src/components/transcript/event/EventNav.d.ts +0 -12
- package/lib/src/components/transcript/event/EventNavs.d.ts +0 -15
- package/lib/src/components/transcript/event/EventPanel.d.ts +0 -20
- package/lib/src/components/transcript/event/EventProgressPanel.d.ts +0 -6
- package/lib/src/components/transcript/event/EventRow.d.ts +0 -12
- package/lib/src/components/transcript/event/EventSection.d.ts +0 -12
- package/lib/src/components/transcript/event/EventTimingPanel.d.ts +0 -12
- package/lib/src/components/transcript/event/utils.d.ts +0 -2
- package/lib/src/components/transcript/eventSearchText.d.ts +0 -5
- package/lib/src/components/transcript/hooks/useCollapseTranscriptEvent.d.ts +0 -1
- package/lib/src/components/transcript/hooks/useEventNodes.d.ts +0 -7
- package/lib/src/components/transcript/outline/OutlineRow.d.ts +0 -19
- package/lib/src/components/transcript/outline/TranscriptOutline.d.ts +0 -22
- package/lib/src/components/transcript/outline/tree-visitors.d.ts +0 -13
- package/lib/src/components/transcript/outline/useOutlineWidth.d.ts +0 -9
- package/lib/src/components/transcript/resolveMessageToEvent.d.ts +0 -19
- package/lib/src/components/transcript/state/StateDiffView.d.ts +0 -11
- package/lib/src/components/transcript/state/StateEventRenderers.d.ts +0 -48
- package/lib/src/components/transcript/state/StateEventView.d.ts +0 -13
- package/lib/src/components/transcript/timeline.d.ts +0 -128
- package/lib/src/components/transcript/transform/fixups.d.ts +0 -291
- package/lib/src/components/transcript/transform/flatten.d.ts +0 -15
- package/lib/src/components/transcript/transform/transform.d.ts +0 -2
- package/lib/src/components/transcript/transform/treeify.d.ts +0 -3
- package/lib/src/components/transcript/transform/utils.d.ts +0 -18
- package/lib/src/components/transcript/types.d.ts +0 -28
- package/lib/src/components/usage/ModelTokenTable.d.ts +0 -8
- package/lib/src/components/usage/ModelUsagePanel.d.ts +0 -11
- package/lib/src/components/usage/TokenTable.d.ts +0 -14
- package/lib/src/components/usage/UsageCard.d.ts +0 -10
- package/lib/src/debugging/navigationDebugging.d.ts +0 -8
- package/lib/src/hooks/useDocumentTitle.d.ts +0 -26
- package/lib/src/hooks/useDropdownPosition.d.ts +0 -40
- package/lib/src/hooks/useMapAsyncData.d.ts +0 -27
- package/lib/src/hooks/usePreviousValue.d.ts +0 -25
- package/lib/src/hooks/useScrollDirection.d.ts +0 -43
- package/lib/src/hooks/useWindowMessaging.d.ts +0 -19
- package/lib/src/index.d.ts +0 -5
- package/lib/src/main.d.ts +0 -6
- package/lib/src/query/column.d.ts +0 -23
- package/lib/src/query/conditionBuilder.d.ts +0 -29
- package/lib/src/query/index.d.ts +0 -96
- package/lib/src/query/transcriptColumns.d.ts +0 -32
- package/lib/src/query/types.d.ts +0 -62
- package/lib/src/router/activities.d.ts +0 -11
- package/lib/src/router/url.d.ts +0 -76
- package/lib/src/state/hooks/useCollapsedState.d.ts +0 -1
- package/lib/src/state/hooks/useCollapsibleIds.d.ts +0 -1
- package/lib/src/state/hooks/useProperty.d.ts +0 -4
- package/lib/src/state/scrolling.d.ts +0 -27
- package/lib/src/state/store.d.ts +0 -277
- package/lib/src/state/userSettings.d.ts +0 -22
- package/lib/src/test/objectFactories.d.ts +0 -4
- package/lib/src/test/setup-msw.d.ts +0 -1
- package/lib/src/test/test-utils.d.ts +0 -2
- package/lib/src/types/api-types.d.ts +0 -97
- package/lib/src/types/generated.d.ts +0 -5031
- package/lib/src/types/json-value.d.ts +0 -12
- package/lib/src/utils/ansi.d.ts +0 -12
- package/lib/src/utils/array.d.ts +0 -1
- package/lib/src/utils/arrow.d.ts +0 -3
- package/lib/src/utils/asyncData.d.ts +0 -66
- package/lib/src/utils/asyncDataFromQuery.d.ts +0 -13
- package/lib/src/utils/base64.d.ts +0 -4
- package/lib/src/utils/base64url.d.ts +0 -38
- package/lib/src/utils/brand.d.ts +0 -70
- package/lib/src/utils/chatMessage.d.ts +0 -3
- package/lib/src/utils/date.d.ts +0 -34
- package/lib/src/utils/dom.d.ts +0 -1
- package/lib/src/utils/format.d.ts +0 -53
- package/lib/src/utils/html.d.ts +0 -5
- package/lib/src/utils/json-worker.d.ts +0 -2
- package/lib/src/utils/json.d.ts +0 -4
- package/lib/src/utils/logger.d.ts +0 -7
- package/lib/src/utils/mime.d.ts +0 -1
- package/lib/src/utils/object.d.ts +0 -1
- package/lib/src/utils/path.d.ts +0 -28
- package/lib/src/utils/python.d.ts +0 -11
- package/lib/src/utils/react-query.d.ts +0 -4
- package/lib/src/utils/react.d.ts +0 -6
- package/lib/src/utils/router.d.ts +0 -1
- package/lib/src/utils/sync.d.ts +0 -21
- package/lib/src/utils/type.d.ts +0 -15
- package/lib/src/utils/uri.d.ts +0 -19
- package/lib/src/utils/useDebouncedCallback.d.ts +0 -20
- package/lib/src/utils/vscode.d.ts +0 -20
- package/lib/styles/index.css +0 -9030
- package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js +0 -27979
- package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js.map +0 -1
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js +0 -1081
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js.map +0 -1
- package/lib/xypic-DrMJn58R-DRoJoooA.js +0 -9542
- package/lib/xypic-DrMJn58R-DRoJoooA.js.map +0 -1
|
@@ -1,644 +0,0 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.js";
|
|
2
|
-
function _mergeNamespaces(n, m) {
|
|
3
|
-
for (var i = 0; i < m.length; i++) {
|
|
4
|
-
const e = m[i];
|
|
5
|
-
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
6
|
-
for (const k in e) {
|
|
7
|
-
if (k !== "default" && !(k in n)) {
|
|
8
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
9
|
-
if (d) {
|
|
10
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: () => e[k]
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
-
}
|
|
21
|
-
var liteDOMCp0aN3bP$2 = {};
|
|
22
|
-
var hasRequiredLiteDOMCp0aN3bP;
|
|
23
|
-
function requireLiteDOMCp0aN3bP() {
|
|
24
|
-
if (hasRequiredLiteDOMCp0aN3bP) return liteDOMCp0aN3bP$2;
|
|
25
|
-
hasRequiredLiteDOMCp0aN3bP = 1;
|
|
26
|
-
(function() {
|
|
27
|
-
var e, t, n, r, i, a, o, s, c, l = { 244: function(e2, t2, n2) {
|
|
28
|
-
var r2, i2 = this && this.__extends || (r2 = function(e3, t3) {
|
|
29
|
-
return r2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) {
|
|
30
|
-
e4.__proto__ = t4;
|
|
31
|
-
} || function(e4, t4) {
|
|
32
|
-
for (var n3 in t4) Object.prototype.hasOwnProperty.call(t4, n3) && (e4[n3] = t4[n3]);
|
|
33
|
-
}, r2(e3, t3);
|
|
34
|
-
}, function(e3, t3) {
|
|
35
|
-
if (typeof t3 != `function` && t3 !== null) throw TypeError(`Class extends value ` + String(t3) + ` is not a constructor or null`);
|
|
36
|
-
function n3() {
|
|
37
|
-
this.constructor = e3;
|
|
38
|
-
}
|
|
39
|
-
r2(e3, t3), e3.prototype = t3 === null ? Object.create(t3) : (n3.prototype = t3.prototype, new n3());
|
|
40
|
-
}), a2 = this && this.__assign || function() {
|
|
41
|
-
return a2 = Object.assign || function(e3) {
|
|
42
|
-
for (var t3, n3 = 1, r3 = arguments.length; n3 < r3; n3++) for (var i3 in t3 = arguments[n3]) Object.prototype.hasOwnProperty.call(t3, i3) && (e3[i3] = t3[i3]);
|
|
43
|
-
return e3;
|
|
44
|
-
}, a2.apply(this, arguments);
|
|
45
|
-
};
|
|
46
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.NodeMixin = t2.NodeMixinOptions = void 0;
|
|
47
|
-
var o2 = n2(77);
|
|
48
|
-
t2.NodeMixinOptions = { badCSS: true, badSizes: true }, t2.NodeMixin = function(e3, n3) {
|
|
49
|
-
var r3;
|
|
50
|
-
return n3 === void 0 && (n3 = {}), n3 = (0, o2.userOptions)((0, o2.defaultOptions)({}, t2.NodeMixinOptions), n3), r3 = (function(e4) {
|
|
51
|
-
function t3() {
|
|
52
|
-
var t4 = [...arguments], n4 = e4.call(this, t4[0]) || this, r4 = n4.constructor;
|
|
53
|
-
return n4.options = (0, o2.userOptions)((0, o2.defaultOptions)({}, r4.OPTIONS), t4[1]), n4;
|
|
54
|
-
}
|
|
55
|
-
return i2(t3, e4), t3.prototype.fontSize = function(t4) {
|
|
56
|
-
return n3.badCSS ? this.options.fontSize : e4.prototype.fontSize.call(this, t4);
|
|
57
|
-
}, t3.prototype.fontFamily = function(t4) {
|
|
58
|
-
return n3.badCSS ? this.options.fontFamily : e4.prototype.fontFamily.call(this, t4);
|
|
59
|
-
}, t3.prototype.nodeSize = function(r4, i3, a3) {
|
|
60
|
-
if (i3 === void 0 && (i3 = 1), a3 === void 0 && (a3 = null), !n3.badSizes) return e4.prototype.nodeSize.call(this, r4, i3, a3);
|
|
61
|
-
var o3 = this.textContent(r4), s2 = Array.from(o3.replace(t3.cjkPattern, ``)).length;
|
|
62
|
-
return [(Array.from(o3).length - s2) * this.options.cjkCharWidth + s2 * this.options.unknownCharWidth, this.options.unknownCharHeight];
|
|
63
|
-
}, t3.prototype.nodeBBox = function(t4) {
|
|
64
|
-
return n3.badSizes ? { left: 0, right: 0, top: 0, bottom: 0 } : e4.prototype.nodeBBox.call(this, t4);
|
|
65
|
-
}, t3;
|
|
66
|
-
})(e3), r3.OPTIONS = a2(a2({}, n3.badCSS ? { fontSize: 16, fontFamily: `Times` } : {}), n3.badSizes ? { cjkCharWidth: 1, unknownCharWidth: 0.6, unknownCharHeight: 0.8 } : {}), r3.cjkPattern = new RegExp([`[`, `ᄀ-ᅟ`, `〈〉`, `⺀-〾`, `-㉇`, `㉐-䶿`, `一-꓆`, `ꥠ-ꥼ`, `가-힣`, `豈-`, `︐-︙`, `︰-﹫`, `!-⦆¢-₩`, `𛀀-𛀁`, `🈀-🉑`, `𠀀-`, `]`].join(``), `gu`), r3;
|
|
67
|
-
};
|
|
68
|
-
}, 877: function(e2, t2, n2) {
|
|
69
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.LiteDocument = void 0;
|
|
70
|
-
var r2 = n2(946);
|
|
71
|
-
t2.LiteDocument = (function() {
|
|
72
|
-
function e3() {
|
|
73
|
-
this.root = new r2.LiteElement(`html`, {}, [this.head = new r2.LiteElement(`head`), this.body = new r2.LiteElement(`body`)]), this.type = ``;
|
|
74
|
-
}
|
|
75
|
-
return Object.defineProperty(e3.prototype, `kind`, { get: function() {
|
|
76
|
-
return `#document`;
|
|
77
|
-
}, enumerable: false, configurable: true }), e3;
|
|
78
|
-
})();
|
|
79
|
-
}, 946: function(e2, t2) {
|
|
80
|
-
var n2 = this && this.__assign || function() {
|
|
81
|
-
return n2 = Object.assign || function(e3) {
|
|
82
|
-
for (var t3, n3 = 1, r3 = arguments.length; n3 < r3; n3++) for (var i3 in t3 = arguments[n3]) Object.prototype.hasOwnProperty.call(t3, i3) && (e3[i3] = t3[i3]);
|
|
83
|
-
return e3;
|
|
84
|
-
}, n2.apply(this, arguments);
|
|
85
|
-
}, r2 = this && this.__read || function(e3, t3) {
|
|
86
|
-
var n3 = typeof Symbol == `function` && e3[Symbol.iterator];
|
|
87
|
-
if (!n3) return e3;
|
|
88
|
-
var r3, i3, a3 = n3.call(e3), o2 = [];
|
|
89
|
-
try {
|
|
90
|
-
for (; (t3 === void 0 || t3-- > 0) && !(r3 = a3.next()).done; ) o2.push(r3.value);
|
|
91
|
-
} catch (e4) {
|
|
92
|
-
i3 = { error: e4 };
|
|
93
|
-
} finally {
|
|
94
|
-
try {
|
|
95
|
-
r3 && !r3.done && (n3 = a3.return) && n3.call(a3);
|
|
96
|
-
} finally {
|
|
97
|
-
if (i3) throw i3.error;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return o2;
|
|
101
|
-
}, i2 = this && this.__spreadArray || function(e3, t3, n3) {
|
|
102
|
-
if (n3 || arguments.length === 2) for (var r3, i3 = 0, a3 = t3.length; i3 < a3; i3++) !r3 && i3 in t3 || (r3 ||= Array.prototype.slice.call(t3, 0, i3), r3[i3] = t3[i3]);
|
|
103
|
-
return e3.concat(r3 || Array.prototype.slice.call(t3));
|
|
104
|
-
}, a2 = this && this.__values || function(e3) {
|
|
105
|
-
var t3 = typeof Symbol == `function` && Symbol.iterator, n3 = t3 && e3[t3], r3 = 0;
|
|
106
|
-
if (n3) return n3.call(e3);
|
|
107
|
-
if (e3 && typeof e3.length == `number`) return { next: function() {
|
|
108
|
-
return e3 && r3 >= e3.length && (e3 = void 0), { value: e3 && e3[r3++], done: !e3 };
|
|
109
|
-
} };
|
|
110
|
-
throw TypeError(t3 ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
|
|
111
|
-
};
|
|
112
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.LiteElement = void 0, t2.LiteElement = function(e3, t3, o2) {
|
|
113
|
-
var s2, c2;
|
|
114
|
-
t3 === void 0 && (t3 = {}), o2 === void 0 && (o2 = []), this.kind = e3, this.attributes = n2({}, t3), this.children = i2([], r2(o2), false);
|
|
115
|
-
try {
|
|
116
|
-
for (var l2 = a2(this.children), u2 = l2.next(); !u2.done; u2 = l2.next()) u2.value.parent = this;
|
|
117
|
-
} catch (e4) {
|
|
118
|
-
s2 = { error: e4 };
|
|
119
|
-
} finally {
|
|
120
|
-
try {
|
|
121
|
-
u2 && !u2.done && (c2 = l2.return) && c2.call(l2);
|
|
122
|
-
} finally {
|
|
123
|
-
if (s2) throw s2.error;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
this.styles = null;
|
|
127
|
-
};
|
|
128
|
-
}, 6: function(e2, t2) {
|
|
129
|
-
var n2 = this && this.__read || function(e3, t3) {
|
|
130
|
-
var n3 = typeof Symbol == `function` && e3[Symbol.iterator];
|
|
131
|
-
if (!n3) return e3;
|
|
132
|
-
var r3, i2, a2 = n3.call(e3), o2 = [];
|
|
133
|
-
try {
|
|
134
|
-
for (; (t3 === void 0 || t3-- > 0) && !(r3 = a2.next()).done; ) o2.push(r3.value);
|
|
135
|
-
} catch (e4) {
|
|
136
|
-
i2 = { error: e4 };
|
|
137
|
-
} finally {
|
|
138
|
-
try {
|
|
139
|
-
r3 && !r3.done && (n3 = a2.return) && n3.call(a2);
|
|
140
|
-
} finally {
|
|
141
|
-
if (i2) throw i2.error;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return o2;
|
|
145
|
-
}, r2 = this && this.__spreadArray || function(e3, t3, n3) {
|
|
146
|
-
if (n3 || arguments.length === 2) for (var r3, i2 = 0, a2 = t3.length; i2 < a2; i2++) !r3 && i2 in t3 || (r3 ||= Array.prototype.slice.call(t3, 0, i2), r3[i2] = t3[i2]);
|
|
147
|
-
return e3.concat(r3 || Array.prototype.slice.call(t3));
|
|
148
|
-
};
|
|
149
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.LiteList = void 0, t2.LiteList = (function() {
|
|
150
|
-
function e3(e4) {
|
|
151
|
-
this.nodes = [], this.nodes = r2([], n2(e4), false);
|
|
152
|
-
}
|
|
153
|
-
return e3.prototype.append = function(e4) {
|
|
154
|
-
this.nodes.push(e4);
|
|
155
|
-
}, e3.prototype[Symbol.iterator] = function() {
|
|
156
|
-
var e4 = 0;
|
|
157
|
-
return { next: function() {
|
|
158
|
-
return e4 === this.nodes.length ? { value: null, done: true } : { value: this.nodes[e4++], done: false };
|
|
159
|
-
} };
|
|
160
|
-
}, e3;
|
|
161
|
-
})();
|
|
162
|
-
}, 246: function(e2, t2, n2) {
|
|
163
|
-
var r2 = this && this.__createBinding || (Object.create ? function(e3, t3, n3, r3) {
|
|
164
|
-
r3 === void 0 && (r3 = n3);
|
|
165
|
-
var i3 = Object.getOwnPropertyDescriptor(t3, n3);
|
|
166
|
-
i3 && !(`get` in i3 ? !t3.__esModule : i3.writable || i3.configurable) || (i3 = { enumerable: true, get: function() {
|
|
167
|
-
return t3[n3];
|
|
168
|
-
} }), Object.defineProperty(e3, r3, i3);
|
|
169
|
-
} : function(e3, t3, n3, r3) {
|
|
170
|
-
r3 === void 0 && (r3 = n3), e3[r3] = t3[n3];
|
|
171
|
-
}), i2 = this && this.__setModuleDefault || (Object.create ? function(e3, t3) {
|
|
172
|
-
Object.defineProperty(e3, `default`, { enumerable: true, value: t3 });
|
|
173
|
-
} : function(e3, t3) {
|
|
174
|
-
e3.default = t3;
|
|
175
|
-
}), a2 = this && this.__importStar || function(e3) {
|
|
176
|
-
if (e3 && e3.__esModule) return e3;
|
|
177
|
-
var t3 = {};
|
|
178
|
-
if (e3 != null) for (var n3 in e3) n3 !== `default` && Object.prototype.hasOwnProperty.call(e3, n3) && r2(t3, e3, n3);
|
|
179
|
-
return i2(t3, e3), t3;
|
|
180
|
-
}, o2 = this && this.__read || function(e3, t3) {
|
|
181
|
-
var n3 = typeof Symbol == `function` && e3[Symbol.iterator];
|
|
182
|
-
if (!n3) return e3;
|
|
183
|
-
var r3, i3, a3 = n3.call(e3), o3 = [];
|
|
184
|
-
try {
|
|
185
|
-
for (; (t3 === void 0 || t3-- > 0) && !(r3 = a3.next()).done; ) o3.push(r3.value);
|
|
186
|
-
} catch (e4) {
|
|
187
|
-
i3 = { error: e4 };
|
|
188
|
-
} finally {
|
|
189
|
-
try {
|
|
190
|
-
r3 && !r3.done && (n3 = a3.return) && n3.call(a3);
|
|
191
|
-
} finally {
|
|
192
|
-
if (i3) throw i3.error;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return o3;
|
|
196
|
-
}, s2 = this && this.__values || function(e3) {
|
|
197
|
-
var t3 = typeof Symbol == `function` && Symbol.iterator, n3 = t3 && e3[t3], r3 = 0;
|
|
198
|
-
if (n3) return n3.call(e3);
|
|
199
|
-
if (e3 && typeof e3.length == `number`) return { next: function() {
|
|
200
|
-
return e3 && r3 >= e3.length && (e3 = void 0), { value: e3 && e3[r3++], done: !e3 };
|
|
201
|
-
} };
|
|
202
|
-
throw TypeError(t3 ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
|
|
203
|
-
};
|
|
204
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.LiteParser = t2.PATTERNS = void 0;
|
|
205
|
-
var c2, l2 = a2(n2(29)), u2 = n2(946), d2 = n2(735);
|
|
206
|
-
(function(e3) {
|
|
207
|
-
e3.TAGNAME = `[a-z][^\\s\\n>]*`, e3.ATTNAME = `[a-z][^\\s\\n>=]*`, e3.VALUE = `(?:'[^']*'|"[^"]*"|[^\\s\\n]+)`, e3.VALUESPLIT = `(?:'([^']*)'|"([^"]*)"|([^\\s\\n]+))`, e3.SPACE = `(?:\\s|\\n)+`, e3.OPTIONALSPACE = `(?:\\s|\\n)*`, e3.ATTRIBUTE = e3.ATTNAME + `(?:` + e3.OPTIONALSPACE + `=` + e3.OPTIONALSPACE + e3.VALUE + `)?`, e3.ATTRIBUTESPLIT = `(` + e3.ATTNAME + `)(?:` + e3.OPTIONALSPACE + `=` + e3.OPTIONALSPACE + e3.VALUESPLIT + `)?`, e3.TAG = `(<(?:` + e3.TAGNAME + `(?:` + e3.SPACE + e3.ATTRIBUTE + `)*` + e3.OPTIONALSPACE + `/?|/` + e3.TAGNAME + `|!--[^]*?--|![^]*?)(?:>|$))`, e3.tag = new RegExp(e3.TAG, `i`), e3.attr = new RegExp(e3.ATTRIBUTE, `i`), e3.attrsplit = new RegExp(e3.ATTRIBUTESPLIT, `i`);
|
|
208
|
-
})(c2 = t2.PATTERNS ||= {}), t2.LiteParser = (function() {
|
|
209
|
-
function e3() {
|
|
210
|
-
}
|
|
211
|
-
return e3.prototype.parseFromString = function(e4, t3, n3) {
|
|
212
|
-
n3 === void 0 && (n3 = null);
|
|
213
|
-
for (var r3 = n3.createDocument(), i3 = n3.body(r3), a3 = e4.replace(/<\?.*?\?>/g, ``).split(c2.tag); a3.length; ) {
|
|
214
|
-
var o3 = a3.shift(), s3 = a3.shift();
|
|
215
|
-
o3 && this.addText(n3, i3, o3), s3 && s3.charAt(s3.length - 1) === `>` && (s3.charAt(1) === `!` ? this.addComment(n3, i3, s3) : i3 = s3.charAt(1) === `/` ? this.closeTag(n3, i3, s3) : this.openTag(n3, i3, s3, a3));
|
|
216
|
-
}
|
|
217
|
-
return this.checkDocument(n3, r3), r3;
|
|
218
|
-
}, e3.prototype.addText = function(e4, t3, n3) {
|
|
219
|
-
return n3 = l2.translate(n3), e4.append(t3, e4.text(n3));
|
|
220
|
-
}, e3.prototype.addComment = function(e4, t3, n3) {
|
|
221
|
-
return e4.append(t3, new d2.LiteComment(n3));
|
|
222
|
-
}, e3.prototype.closeTag = function(e4, t3, n3) {
|
|
223
|
-
for (var r3 = n3.slice(2, n3.length - 1).toLowerCase(); e4.parent(t3) && e4.kind(t3) !== r3; ) t3 = e4.parent(t3);
|
|
224
|
-
return e4.parent(t3);
|
|
225
|
-
}, e3.prototype.openTag = function(e4, t3, n3, r3) {
|
|
226
|
-
var i3 = this.constructor.PCDATA, a3 = this.constructor.SELF_CLOSING, o3 = n3.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(), s3 = e4.node(o3), l3 = n3.replace(/^<.*?[\s\n>]/, ``).split(c2.attrsplit);
|
|
227
|
-
return (l3.pop().match(/>$/) || l3.length < 5) && (this.addAttributes(e4, s3, l3), e4.append(t3, s3), a3[o3] || n3.match(/\/>$/) || (i3[o3] ? this.handlePCDATA(e4, s3, o3, r3) : t3 = s3)), t3;
|
|
228
|
-
}, e3.prototype.addAttributes = function(e4, t3, n3) {
|
|
229
|
-
for (var r3 = this.constructor.CDATA_ATTR; n3.length; ) {
|
|
230
|
-
var i3 = o2(n3.splice(0, 5), 5), a3 = i3[1], s3 = i3[2], c3 = i3[3], u3 = i3[4], d3 = s3 || c3 || u3 || ``;
|
|
231
|
-
r3[a3] || (d3 = l2.translate(d3)), e4.setAttribute(t3, a3, d3);
|
|
232
|
-
}
|
|
233
|
-
}, e3.prototype.handlePCDATA = function(e4, t3, n3, r3) {
|
|
234
|
-
for (var i3 = [], a3 = `</` + n3 + `>`, o3 = ``; r3.length && o3 !== a3; ) i3.push(o3), i3.push(r3.shift()), o3 = r3.shift();
|
|
235
|
-
e4.append(t3, e4.text(i3.join(``)));
|
|
236
|
-
}, e3.prototype.checkDocument = function(e4, t3) {
|
|
237
|
-
var n3, r3, i3, a3, o3 = this.getOnlyChild(e4, e4.body(t3));
|
|
238
|
-
if (o3) {
|
|
239
|
-
try {
|
|
240
|
-
for (var c3 = s2(e4.childNodes(e4.body(t3))), l3 = c3.next(); !l3.done && (p = l3.value) !== o3; l3 = c3.next()) p instanceof d2.LiteComment && p.value.match(/^<!DOCTYPE/) && (t3.type = p.value);
|
|
241
|
-
} catch (e5) {
|
|
242
|
-
n3 = { error: e5 };
|
|
243
|
-
} finally {
|
|
244
|
-
try {
|
|
245
|
-
l3 && !l3.done && (r3 = c3.return) && r3.call(c3);
|
|
246
|
-
} finally {
|
|
247
|
-
if (n3) throw n3.error;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
switch (e4.kind(o3)) {
|
|
251
|
-
case `html`:
|
|
252
|
-
try {
|
|
253
|
-
for (var u3 = s2(o3.children), f = u3.next(); !f.done; f = u3.next()) {
|
|
254
|
-
var p = f.value;
|
|
255
|
-
switch (e4.kind(p)) {
|
|
256
|
-
case `head`:
|
|
257
|
-
t3.head = p;
|
|
258
|
-
break;
|
|
259
|
-
case `body`:
|
|
260
|
-
t3.body = p;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
} catch (e5) {
|
|
264
|
-
i3 = { error: e5 };
|
|
265
|
-
} finally {
|
|
266
|
-
try {
|
|
267
|
-
f && !f.done && (a3 = u3.return) && a3.call(u3);
|
|
268
|
-
} finally {
|
|
269
|
-
if (i3) throw i3.error;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
t3.root = o3, e4.remove(o3), e4.parent(t3.body) !== o3 && e4.append(o3, t3.body), e4.parent(t3.head) !== o3 && e4.insert(t3.head, t3.body);
|
|
273
|
-
break;
|
|
274
|
-
case `head`:
|
|
275
|
-
t3.head = e4.replace(o3, t3.head);
|
|
276
|
-
break;
|
|
277
|
-
case `body`:
|
|
278
|
-
t3.body = e4.replace(o3, t3.body);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}, e3.prototype.getOnlyChild = function(e4, t3) {
|
|
282
|
-
var n3, r3, i3 = null;
|
|
283
|
-
try {
|
|
284
|
-
for (var a3 = s2(e4.childNodes(t3)), o3 = a3.next(); !o3.done; o3 = a3.next()) {
|
|
285
|
-
var c3 = o3.value;
|
|
286
|
-
if (c3 instanceof u2.LiteElement) {
|
|
287
|
-
if (i3) return null;
|
|
288
|
-
i3 = c3;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
} catch (e5) {
|
|
292
|
-
n3 = { error: e5 };
|
|
293
|
-
} finally {
|
|
294
|
-
try {
|
|
295
|
-
o3 && !o3.done && (r3 = a3.return) && r3.call(a3);
|
|
296
|
-
} finally {
|
|
297
|
-
if (n3) throw n3.error;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
return i3;
|
|
301
|
-
}, e3.prototype.serialize = function(e4, t3, n3) {
|
|
302
|
-
var r3 = this;
|
|
303
|
-
n3 === void 0 && (n3 = false);
|
|
304
|
-
var i3 = this.constructor.SELF_CLOSING, a3 = this.constructor.CDATA_ATTR, o3 = e4.kind(t3), s3 = e4.allAttributes(t3).map((function(e5) {
|
|
305
|
-
return e5.name + `="` + (a3[e5.name] ? e5.value : r3.protectAttribute(e5.value)) + `"`;
|
|
306
|
-
})).join(` `), c3 = this.serializeInner(e4, t3, n3);
|
|
307
|
-
return `<` + o3 + (s3 ? ` ` + s3 : ``) + (n3 && !c3 || i3[o3] ? n3 ? `/>` : `>` : `>${c3}</${o3}>`);
|
|
308
|
-
}, e3.prototype.serializeInner = function(e4, t3, n3) {
|
|
309
|
-
var r3 = this;
|
|
310
|
-
return n3 === void 0 && (n3 = false), this.constructor.PCDATA.hasOwnProperty(t3.kind) ? e4.childNodes(t3).map((function(t4) {
|
|
311
|
-
return e4.value(t4);
|
|
312
|
-
})).join(``) : e4.childNodes(t3).map((function(t4) {
|
|
313
|
-
var i3 = e4.kind(t4);
|
|
314
|
-
return i3 === `#text` ? r3.protectHTML(e4.value(t4)) : i3 === `#comment` ? t4.value : r3.serialize(e4, t4, n3);
|
|
315
|
-
})).join(``);
|
|
316
|
-
}, e3.prototype.protectAttribute = function(e4) {
|
|
317
|
-
return typeof e4 != `string` && (e4 = String(e4)), e4.replace(/"/g, `"`);
|
|
318
|
-
}, e3.prototype.protectHTML = function(e4) {
|
|
319
|
-
return e4.replace(/&/g, `&`).replace(/</g, `<`).replace(/>/g, `>`);
|
|
320
|
-
}, e3.SELF_CLOSING = { area: true, base: true, br: true, col: true, command: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, menuitem: true, meta: true, param: true, source: true, track: true, wbr: true }, e3.PCDATA = { option: true, textarea: true, fieldset: true, title: true, style: true, script: true }, e3.CDATA_ATTR = { style: true, datafld: true, datasrc: true, href: true, src: true, longdesc: true, usemap: true, cite: true, datetime: true, action: true, axis: true, profile: true, content: true, scheme: true }, e3;
|
|
321
|
-
})();
|
|
322
|
-
}, 735: function(e2, t2) {
|
|
323
|
-
var n2, r2 = this && this.__extends || (n2 = function(e3, t3) {
|
|
324
|
-
return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) {
|
|
325
|
-
e4.__proto__ = t4;
|
|
326
|
-
} || function(e4, t4) {
|
|
327
|
-
for (var n3 in t4) Object.prototype.hasOwnProperty.call(t4, n3) && (e4[n3] = t4[n3]);
|
|
328
|
-
}, n2(e3, t3);
|
|
329
|
-
}, function(e3, t3) {
|
|
330
|
-
if (typeof t3 != `function` && t3 !== null) throw TypeError(`Class extends value ` + String(t3) + ` is not a constructor or null`);
|
|
331
|
-
function r3() {
|
|
332
|
-
this.constructor = e3;
|
|
333
|
-
}
|
|
334
|
-
n2(e3, t3), e3.prototype = t3 === null ? Object.create(t3) : (r3.prototype = t3.prototype, new r3());
|
|
335
|
-
});
|
|
336
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.LiteComment = t2.LiteText = void 0;
|
|
337
|
-
var i2 = (function() {
|
|
338
|
-
function e3(e4) {
|
|
339
|
-
e4 === void 0 && (e4 = ``), this.value = e4;
|
|
340
|
-
}
|
|
341
|
-
return Object.defineProperty(e3.prototype, `kind`, { get: function() {
|
|
342
|
-
return `#text`;
|
|
343
|
-
}, enumerable: false, configurable: true }), e3;
|
|
344
|
-
})();
|
|
345
|
-
t2.LiteText = i2, t2.LiteComment = (function(e3) {
|
|
346
|
-
function t3() {
|
|
347
|
-
return e3 !== null && e3.apply(this, arguments) || this;
|
|
348
|
-
}
|
|
349
|
-
return r2(t3, e3), Object.defineProperty(t3.prototype, `kind`, { get: function() {
|
|
350
|
-
return `#comment`;
|
|
351
|
-
}, enumerable: false, configurable: true }), t3;
|
|
352
|
-
})(i2);
|
|
353
|
-
}, 492: function(e2, t2, n2) {
|
|
354
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.LiteWindow = void 0;
|
|
355
|
-
var r2 = n2(946), i2 = n2(877), a2 = n2(6), o2 = n2(246);
|
|
356
|
-
t2.LiteWindow = function() {
|
|
357
|
-
this.DOMParser = o2.LiteParser, this.NodeList = a2.LiteList, this.HTMLCollection = a2.LiteList, this.HTMLElement = r2.LiteElement, this.DocumentFragment = a2.LiteList, this.Document = i2.LiteDocument, this.document = new i2.LiteDocument();
|
|
358
|
-
};
|
|
359
|
-
}, 250: function(e2, t2, n2) {
|
|
360
|
-
var r2, i2 = this && this.__extends || (r2 = function(e3, t3) {
|
|
361
|
-
return r2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) {
|
|
362
|
-
e4.__proto__ = t4;
|
|
363
|
-
} || function(e4, t4) {
|
|
364
|
-
for (var n3 in t4) Object.prototype.hasOwnProperty.call(t4, n3) && (e4[n3] = t4[n3]);
|
|
365
|
-
}, r2(e3, t3);
|
|
366
|
-
}, function(e3, t3) {
|
|
367
|
-
if (typeof t3 != `function` && t3 !== null) throw TypeError(`Class extends value ` + String(t3) + ` is not a constructor or null`);
|
|
368
|
-
function n3() {
|
|
369
|
-
this.constructor = e3;
|
|
370
|
-
}
|
|
371
|
-
r2(e3, t3), e3.prototype = t3 === null ? Object.create(t3) : (n3.prototype = t3.prototype, new n3());
|
|
372
|
-
}), a2 = this && this.__assign || function() {
|
|
373
|
-
return a2 = Object.assign || function(e3) {
|
|
374
|
-
for (var t3, n3 = 1, r3 = arguments.length; n3 < r3; n3++) for (var i3 in t3 = arguments[n3]) Object.prototype.hasOwnProperty.call(t3, i3) && (e3[i3] = t3[i3]);
|
|
375
|
-
return e3;
|
|
376
|
-
}, a2.apply(this, arguments);
|
|
377
|
-
}, o2 = this && this.__values || function(e3) {
|
|
378
|
-
var t3 = typeof Symbol == `function` && Symbol.iterator, n3 = t3 && e3[t3], r3 = 0;
|
|
379
|
-
if (n3) return n3.call(e3);
|
|
380
|
-
if (e3 && typeof e3.length == `number`) return { next: function() {
|
|
381
|
-
return e3 && r3 >= e3.length && (e3 = void 0), { value: e3 && e3[r3++], done: !e3 };
|
|
382
|
-
} };
|
|
383
|
-
throw TypeError(t3 ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
|
|
384
|
-
}, s2 = this && this.__read || function(e3, t3) {
|
|
385
|
-
var n3 = typeof Symbol == `function` && e3[Symbol.iterator];
|
|
386
|
-
if (!n3) return e3;
|
|
387
|
-
var r3, i3, a3 = n3.call(e3), o3 = [];
|
|
388
|
-
try {
|
|
389
|
-
for (; (t3 === void 0 || t3-- > 0) && !(r3 = a3.next()).done; ) o3.push(r3.value);
|
|
390
|
-
} catch (e4) {
|
|
391
|
-
i3 = { error: e4 };
|
|
392
|
-
} finally {
|
|
393
|
-
try {
|
|
394
|
-
r3 && !r3.done && (n3 = a3.return) && n3.call(a3);
|
|
395
|
-
} finally {
|
|
396
|
-
if (i3) throw i3.error;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
return o3;
|
|
400
|
-
}, c2 = this && this.__spreadArray || function(e3, t3, n3) {
|
|
401
|
-
if (n3 || arguments.length === 2) for (var r3, i3 = 0, a3 = t3.length; i3 < a3; i3++) !r3 && i3 in t3 || (r3 ||= Array.prototype.slice.call(t3, 0, i3), r3[i3] = t3[i3]);
|
|
402
|
-
return e3.concat(r3 || Array.prototype.slice.call(t3));
|
|
403
|
-
};
|
|
404
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.liteAdaptor = t2.LiteAdaptor = t2.LiteBase = void 0;
|
|
405
|
-
var l2 = n2(857), u2 = n2(244), d2 = n2(877), f = n2(946), p = n2(735), m = n2(492), h = n2(246), g = n2(878), _ = (function(e3) {
|
|
406
|
-
function t3() {
|
|
407
|
-
var t4 = e3.call(this) || this;
|
|
408
|
-
return t4.parser = new h.LiteParser(), t4.window = new m.LiteWindow(), t4;
|
|
409
|
-
}
|
|
410
|
-
return i2(t3, e3), t3.prototype.parse = function(e4, t4) {
|
|
411
|
-
return this.parser.parseFromString(e4, t4, this);
|
|
412
|
-
}, t3.prototype.create = function(e4, t4) {
|
|
413
|
-
return new f.LiteElement(e4);
|
|
414
|
-
}, t3.prototype.text = function(e4) {
|
|
415
|
-
return new p.LiteText(e4);
|
|
416
|
-
}, t3.prototype.comment = function(e4) {
|
|
417
|
-
return new p.LiteComment(e4);
|
|
418
|
-
}, t3.prototype.createDocument = function() {
|
|
419
|
-
return new d2.LiteDocument();
|
|
420
|
-
}, t3.prototype.head = function(e4) {
|
|
421
|
-
return e4.head;
|
|
422
|
-
}, t3.prototype.body = function(e4) {
|
|
423
|
-
return e4.body;
|
|
424
|
-
}, t3.prototype.root = function(e4) {
|
|
425
|
-
return e4.root;
|
|
426
|
-
}, t3.prototype.doctype = function(e4) {
|
|
427
|
-
return e4.type;
|
|
428
|
-
}, t3.prototype.tags = function(e4, t4, n3) {
|
|
429
|
-
n3 === void 0 && (n3 = null);
|
|
430
|
-
var r3 = [], i3 = [];
|
|
431
|
-
if (n3) return i3;
|
|
432
|
-
for (var a3 = e4; a3; ) {
|
|
433
|
-
var o3 = a3.kind;
|
|
434
|
-
o3 !== `#text` && o3 !== `#comment` && (a3 = a3, o3 === t4 && i3.push(a3), a3.children.length && (r3 = a3.children.concat(r3))), a3 = r3.shift();
|
|
435
|
-
}
|
|
436
|
-
return i3;
|
|
437
|
-
}, t3.prototype.elementById = function(e4, t4) {
|
|
438
|
-
for (var n3 = [], r3 = e4; r3; ) {
|
|
439
|
-
if (r3.kind !== `#text` && r3.kind !== `#comment`) {
|
|
440
|
-
if ((r3 = r3).attributes.id === t4) return r3;
|
|
441
|
-
r3.children.length && (n3 = r3.children.concat(n3));
|
|
442
|
-
}
|
|
443
|
-
r3 = n3.shift();
|
|
444
|
-
}
|
|
445
|
-
return null;
|
|
446
|
-
}, t3.prototype.elementsByClass = function(e4, t4) {
|
|
447
|
-
for (var n3 = [], r3 = [], i3 = e4; i3; ) i3.kind !== `#text` && i3.kind !== `#comment` && (((i3 = i3).attributes.class || ``).trim().split(/ +/).includes(t4) && r3.push(i3), i3.children.length && (n3 = i3.children.concat(n3))), i3 = n3.shift();
|
|
448
|
-
return r3;
|
|
449
|
-
}, t3.prototype.getElements = function(e4, t4) {
|
|
450
|
-
var n3, r3, i3 = [], a3 = this.body(t4);
|
|
451
|
-
try {
|
|
452
|
-
for (var s3 = o2(e4), c3 = s3.next(); !c3.done; c3 = s3.next()) {
|
|
453
|
-
var l3 = c3.value;
|
|
454
|
-
if (typeof l3 == `string`) if (l3.charAt(0) === `#`) {
|
|
455
|
-
var u3 = this.elementById(a3, l3.slice(1));
|
|
456
|
-
u3 && i3.push(u3);
|
|
457
|
-
} else l3.charAt(0) === `.` ? i3 = i3.concat(this.elementsByClass(a3, l3.slice(1))) : l3.match(/^[-a-z][-a-z0-9]*$/i) && (i3 = i3.concat(this.tags(a3, l3)));
|
|
458
|
-
else Array.isArray(l3) ? i3 = i3.concat(l3) : l3 instanceof this.window.NodeList || l3 instanceof this.window.HTMLCollection ? i3 = i3.concat(l3.nodes) : i3.push(l3);
|
|
459
|
-
}
|
|
460
|
-
} catch (e5) {
|
|
461
|
-
n3 = { error: e5 };
|
|
462
|
-
} finally {
|
|
463
|
-
try {
|
|
464
|
-
c3 && !c3.done && (r3 = s3.return) && r3.call(s3);
|
|
465
|
-
} finally {
|
|
466
|
-
if (n3) throw n3.error;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
return i3;
|
|
470
|
-
}, t3.prototype.contains = function(e4, t4) {
|
|
471
|
-
for (; t4 && t4 !== e4; ) t4 = this.parent(t4);
|
|
472
|
-
return !!t4;
|
|
473
|
-
}, t3.prototype.parent = function(e4) {
|
|
474
|
-
return e4.parent;
|
|
475
|
-
}, t3.prototype.childIndex = function(e4) {
|
|
476
|
-
return e4.parent ? e4.parent.children.findIndex((function(t4) {
|
|
477
|
-
return t4 === e4;
|
|
478
|
-
})) : -1;
|
|
479
|
-
}, t3.prototype.append = function(e4, t4) {
|
|
480
|
-
return t4.parent && this.remove(t4), e4.children.push(t4), t4.parent = e4, t4;
|
|
481
|
-
}, t3.prototype.insert = function(e4, t4) {
|
|
482
|
-
if (e4.parent && this.remove(e4), t4 && t4.parent) {
|
|
483
|
-
var n3 = this.childIndex(t4);
|
|
484
|
-
t4.parent.children.splice(n3, 0, e4), e4.parent = t4.parent;
|
|
485
|
-
}
|
|
486
|
-
}, t3.prototype.remove = function(e4) {
|
|
487
|
-
var t4 = this.childIndex(e4);
|
|
488
|
-
return t4 >= 0 && e4.parent.children.splice(t4, 1), e4.parent = null, e4;
|
|
489
|
-
}, t3.prototype.replace = function(e4, t4) {
|
|
490
|
-
var n3 = this.childIndex(t4);
|
|
491
|
-
return n3 >= 0 && (t4.parent.children[n3] = e4, e4.parent = t4.parent, t4.parent = null), t4;
|
|
492
|
-
}, t3.prototype.clone = function(e4) {
|
|
493
|
-
var t4 = this, n3 = new f.LiteElement(e4.kind);
|
|
494
|
-
return n3.attributes = a2({}, e4.attributes), n3.children = e4.children.map((function(e5) {
|
|
495
|
-
if (e5.kind === `#text`) return new p.LiteText(e5.value);
|
|
496
|
-
if (e5.kind === `#comment`) return new p.LiteComment(e5.value);
|
|
497
|
-
var r3 = t4.clone(e5);
|
|
498
|
-
return r3.parent = n3, r3;
|
|
499
|
-
})), n3;
|
|
500
|
-
}, t3.prototype.split = function(e4, t4) {
|
|
501
|
-
var n3 = new p.LiteText(e4.value.slice(t4));
|
|
502
|
-
return e4.value = e4.value.slice(0, t4), e4.parent.children.splice(this.childIndex(e4) + 1, 0, n3), n3.parent = e4.parent, n3;
|
|
503
|
-
}, t3.prototype.next = function(e4) {
|
|
504
|
-
var t4 = e4.parent;
|
|
505
|
-
if (!t4) return null;
|
|
506
|
-
var n3 = this.childIndex(e4) + 1;
|
|
507
|
-
return n3 >= 0 && n3 < t4.children.length ? t4.children[n3] : null;
|
|
508
|
-
}, t3.prototype.previous = function(e4) {
|
|
509
|
-
var t4 = e4.parent;
|
|
510
|
-
if (!t4) return null;
|
|
511
|
-
var n3 = this.childIndex(e4) - 1;
|
|
512
|
-
return n3 >= 0 ? t4.children[n3] : null;
|
|
513
|
-
}, t3.prototype.firstChild = function(e4) {
|
|
514
|
-
return e4.children[0];
|
|
515
|
-
}, t3.prototype.lastChild = function(e4) {
|
|
516
|
-
return e4.children[e4.children.length - 1];
|
|
517
|
-
}, t3.prototype.childNodes = function(e4) {
|
|
518
|
-
return c2([], s2(e4.children), false);
|
|
519
|
-
}, t3.prototype.childNode = function(e4, t4) {
|
|
520
|
-
return e4.children[t4];
|
|
521
|
-
}, t3.prototype.kind = function(e4) {
|
|
522
|
-
return e4.kind;
|
|
523
|
-
}, t3.prototype.value = function(e4) {
|
|
524
|
-
return e4.kind === `#text` ? e4.value : e4.kind === `#comment` ? e4.value.replace(/^<!(--)?((?:.|\n)*)\1>$/, `$2`) : ``;
|
|
525
|
-
}, t3.prototype.textContent = function(e4) {
|
|
526
|
-
var t4 = this;
|
|
527
|
-
return e4.children.reduce((function(e5, n3) {
|
|
528
|
-
return e5 + (n3.kind === `#text` ? n3.value : n3.kind === `#comment` ? `` : t4.textContent(n3));
|
|
529
|
-
}), ``);
|
|
530
|
-
}, t3.prototype.innerHTML = function(e4) {
|
|
531
|
-
return this.parser.serializeInner(this, e4);
|
|
532
|
-
}, t3.prototype.outerHTML = function(e4) {
|
|
533
|
-
return this.parser.serialize(this, e4);
|
|
534
|
-
}, t3.prototype.serializeXML = function(e4) {
|
|
535
|
-
return this.parser.serialize(this, e4, true);
|
|
536
|
-
}, t3.prototype.setAttribute = function(e4, t4, n3, r3) {
|
|
537
|
-
r3 === void 0 && (r3 = null), typeof n3 != `string` && (n3 = String(n3)), r3 && (t4 = r3.replace(/.*\//, ``) + `:` + t4.replace(/^.*:/, ``)), e4.attributes[t4] = n3, t4 === `style` && (e4.styles = null);
|
|
538
|
-
}, t3.prototype.getAttribute = function(e4, t4) {
|
|
539
|
-
return e4.attributes[t4];
|
|
540
|
-
}, t3.prototype.removeAttribute = function(e4, t4) {
|
|
541
|
-
delete e4.attributes[t4];
|
|
542
|
-
}, t3.prototype.hasAttribute = function(e4, t4) {
|
|
543
|
-
return e4.attributes.hasOwnProperty(t4);
|
|
544
|
-
}, t3.prototype.allAttributes = function(e4) {
|
|
545
|
-
var t4, n3, r3 = e4.attributes, i3 = [];
|
|
546
|
-
try {
|
|
547
|
-
for (var a3 = o2(Object.keys(r3)), s3 = a3.next(); !s3.done; s3 = a3.next()) {
|
|
548
|
-
var c3 = s3.value;
|
|
549
|
-
i3.push({ name: c3, value: r3[c3] });
|
|
550
|
-
}
|
|
551
|
-
} catch (e5) {
|
|
552
|
-
t4 = { error: e5 };
|
|
553
|
-
} finally {
|
|
554
|
-
try {
|
|
555
|
-
s3 && !s3.done && (n3 = a3.return) && n3.call(a3);
|
|
556
|
-
} finally {
|
|
557
|
-
if (t4) throw t4.error;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
return i3;
|
|
561
|
-
}, t3.prototype.addClass = function(e4, t4) {
|
|
562
|
-
var n3 = (e4.attributes.class || ``).split(/ /);
|
|
563
|
-
n3.find((function(e5) {
|
|
564
|
-
return e5 === t4;
|
|
565
|
-
})) || (n3.push(t4), e4.attributes.class = n3.join(` `));
|
|
566
|
-
}, t3.prototype.removeClass = function(e4, t4) {
|
|
567
|
-
var n3 = (e4.attributes.class || ``).split(/ /), r3 = n3.findIndex((function(e5) {
|
|
568
|
-
return e5 === t4;
|
|
569
|
-
}));
|
|
570
|
-
r3 >= 0 && (n3.splice(r3, 1), e4.attributes.class = n3.join(` `));
|
|
571
|
-
}, t3.prototype.hasClass = function(e4, t4) {
|
|
572
|
-
return !!(e4.attributes.class || ``).split(/ /).find((function(e5) {
|
|
573
|
-
return e5 === t4;
|
|
574
|
-
}));
|
|
575
|
-
}, t3.prototype.setStyle = function(e4, t4, n3) {
|
|
576
|
-
e4.styles ||= new g.Styles(this.getAttribute(e4, `style`)), e4.styles.set(t4, n3), e4.attributes.style = e4.styles.cssText;
|
|
577
|
-
}, t3.prototype.getStyle = function(e4, t4) {
|
|
578
|
-
if (!e4.styles) {
|
|
579
|
-
var n3 = this.getAttribute(e4, `style`);
|
|
580
|
-
if (!n3) return ``;
|
|
581
|
-
e4.styles = new g.Styles(n3);
|
|
582
|
-
}
|
|
583
|
-
return e4.styles.get(t4);
|
|
584
|
-
}, t3.prototype.allStyles = function(e4) {
|
|
585
|
-
return this.getAttribute(e4, `style`);
|
|
586
|
-
}, t3.prototype.insertRules = function(e4, t4) {
|
|
587
|
-
e4.children = [this.text(t4.join(`
|
|
588
|
-
|
|
589
|
-
`) + `
|
|
590
|
-
|
|
591
|
-
` + this.textContent(e4))];
|
|
592
|
-
}, t3.prototype.fontSize = function(e4) {
|
|
593
|
-
return 0;
|
|
594
|
-
}, t3.prototype.fontFamily = function(e4) {
|
|
595
|
-
return ``;
|
|
596
|
-
}, t3.prototype.nodeSize = function(e4, t4, n3) {
|
|
597
|
-
return [0, 0];
|
|
598
|
-
}, t3.prototype.nodeBBox = function(e4) {
|
|
599
|
-
return { left: 0, right: 0, top: 0, bottom: 0 };
|
|
600
|
-
}, t3;
|
|
601
|
-
})(l2.AbstractDOMAdaptor);
|
|
602
|
-
t2.LiteBase = _;
|
|
603
|
-
var v = (function(e3) {
|
|
604
|
-
function t3() {
|
|
605
|
-
return e3 !== null && e3.apply(this, arguments) || this;
|
|
606
|
-
}
|
|
607
|
-
return i2(t3, e3), t3;
|
|
608
|
-
})((0, u2.NodeMixin)(_));
|
|
609
|
-
t2.LiteAdaptor = v, t2.liteAdaptor = function(e3) {
|
|
610
|
-
return e3 === void 0 && (e3 = null), new v(null, e3);
|
|
611
|
-
};
|
|
612
|
-
}, 306: function(e2, t2) {
|
|
613
|
-
t2.q = void 0, t2.q = `3.2.2`;
|
|
614
|
-
}, 723: function(e2, t2) {
|
|
615
|
-
MathJax._.components.global.isObject, MathJax._.components.global.combineConfig, MathJax._.components.global.combineDefaults, t2.r8 = MathJax._.components.global.combineWithMathJax, MathJax._.components.global.MathJax;
|
|
616
|
-
}, 857: function(e2, t2) {
|
|
617
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.AbstractDOMAdaptor = MathJax._.core.DOMAdaptor.AbstractDOMAdaptor;
|
|
618
|
-
}, 29: function(e2, t2) {
|
|
619
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.options = MathJax._.util.Entities.options, t2.entities = MathJax._.util.Entities.entities, t2.add = MathJax._.util.Entities.add, t2.remove = MathJax._.util.Entities.remove, t2.translate = MathJax._.util.Entities.translate, t2.numeric = MathJax._.util.Entities.numeric;
|
|
620
|
-
}, 77: function(e2, t2) {
|
|
621
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.isObject = MathJax._.util.Options.isObject, t2.APPEND = MathJax._.util.Options.APPEND, t2.REMOVE = MathJax._.util.Options.REMOVE, t2.OPTIONS = MathJax._.util.Options.OPTIONS, t2.Expandable = MathJax._.util.Options.Expandable, t2.expandable = MathJax._.util.Options.expandable, t2.makeArray = MathJax._.util.Options.makeArray, t2.keys = MathJax._.util.Options.keys, t2.copy = MathJax._.util.Options.copy, t2.insert = MathJax._.util.Options.insert, t2.defaultOptions = MathJax._.util.Options.defaultOptions, t2.userOptions = MathJax._.util.Options.userOptions, t2.selectOptions = MathJax._.util.Options.selectOptions, t2.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys, t2.separateOptions = MathJax._.util.Options.separateOptions, t2.lookup = MathJax._.util.Options.lookup;
|
|
622
|
-
}, 878: function(e2, t2) {
|
|
623
|
-
Object.defineProperty(t2, `__esModule`, { value: true }), t2.Styles = MathJax._.util.Styles.Styles;
|
|
624
|
-
} }, u = {};
|
|
625
|
-
function d(e2) {
|
|
626
|
-
var t2 = u[e2];
|
|
627
|
-
if (t2 !== void 0) return t2.exports;
|
|
628
|
-
var n2 = u[e2] = { exports: {} };
|
|
629
|
-
return l[e2].call(n2.exports, n2, n2.exports, d), n2.exports;
|
|
630
|
-
}
|
|
631
|
-
e = d(723), t = d(306), n = d(250), r = d(877), i = d(946), a = d(6), o = d(246), s = d(735), c = d(492), MathJax.loader && MathJax.loader.checkVersion(`adaptors/liteDOM`, t.q, `adaptors`), (0, e.r8)({ _: { adaptors: { liteAdaptor: n, lite: { Document: r, Element: i, List: a, Parser: o, Text: s, Window: c } } } }), MathJax.startup && (MathJax.startup.registerConstructor(`liteAdaptor`, n.liteAdaptor), MathJax.startup.useAdaptor(`liteAdaptor`, true));
|
|
632
|
-
})();
|
|
633
|
-
return liteDOMCp0aN3bP$2;
|
|
634
|
-
}
|
|
635
|
-
var liteDOMCp0aN3bPExports = requireLiteDOMCp0aN3bP();
|
|
636
|
-
const liteDOMCp0aN3bP = /* @__PURE__ */ getDefaultExportFromCjs(liteDOMCp0aN3bPExports);
|
|
637
|
-
const liteDOMCp0aN3bP$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
638
|
-
__proto__: null,
|
|
639
|
-
default: liteDOMCp0aN3bP
|
|
640
|
-
}, [liteDOMCp0aN3bPExports]);
|
|
641
|
-
export {
|
|
642
|
-
liteDOMCp0aN3bP$1 as l
|
|
643
|
-
};
|
|
644
|
-
//# sourceMappingURL=liteDOM-Cp0aN3bP-DXyQNx3e.js.map
|