@aceshooting/lyra-ui 31.0.0 → 31.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +129 -0
- package/dist/autoloader-cdn.js +1 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +12 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.js +4 -4
- package/dist/components/charts/chart/lite-chart.class.js +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +18 -8
- package/dist/components/conversation/chat-composer/chat-composer.class.js +11 -9
- package/dist/components/conversation/chat-composer/chat-composer.styles.js +1 -1
- package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +11 -3
- package/dist/components/conversation/message-feedback/message-feedback.class.js +12 -6
- package/dist/components/conversation/message-feedback/message-feedback.styles.js +1 -1
- package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +6 -3
- package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -2
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.js +2 -2
- package/dist/components/data/document-library/document-library-cursor.js +1 -0
- package/dist/components/data/document-library/document-library-types.d.ts +20 -0
- package/dist/components/data/document-library/document-library.class.d.ts +37 -26
- package/dist/components/data/document-library/document-library.class.js +20 -11
- package/dist/components/data/document-library/document-library.styles.js +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.js +1 -1
- package/dist/components/data/timeline/timeline.class.js +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +20 -12
- package/dist/components/forms/combobox/combobox.class.js +2 -2
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
- package/dist/components/layout/page/page.class.d.ts +3 -3
- package/dist/components/layout/page/page.class.js +1 -1
- package/dist/components/layout/segmented/segmented.class.d.ts +20 -7
- package/dist/components/layout/segmented/segmented.class.js +34 -24
- package/dist/components/layout/segmented/segmented.styles.js +1 -1
- package/dist/components/layout/stepper/stepper.styles.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
- package/dist/components/media/map/map-anchor-controller.js +1 -1
- package/dist/components/media/map/map-canvas-target.js +1 -0
- package/dist/components/media/map/map.class.d.ts +10 -1
- package/dist/components/media/map/map.class.js +4 -4
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +21 -9
- package/dist/components/media/sequence-playback/sequence-playback.class.js +7 -6
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
- package/dist/components/overlays/overlay/overlay.styles.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +1 -1
- package/dist/components/retrieval/graph/graph.class.js +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.d.ts +11 -0
- package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.js +1 -0
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +18 -7
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +13 -26
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +1 -1
- package/dist/components/utility/diff-view/diff-view.class.d.ts +5 -5
- package/dist/components/utility/diff-view/diff-view.class.js +1 -1
- package/dist/components/utility/icon/icon.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +2 -2
- package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.class.js +2 -2
- package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +2 -2
- package/dist/data-sources.d.ts +10 -0
- package/dist/events.d.ts +9 -4
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/default-strings/conversation.generated.js +1 -1
- package/dist/internal/default-strings/data.generated.js +1 -1
- package/dist/internal/default-strings/retrieval.generated.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/native-modal-context.js +1 -1
- package/dist/internal/overlay-manager.js +1 -1
- package/dist/internal/overlay-order.js +1 -1
- package/dist/internal/overlay-stack.js +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/runtime-diagnostics.js +1 -0
- package/dist/internal/source-cursor-controller.js +1 -0
- package/dist/internal/source-cursor-projection.js +1 -0
- package/dist/internal/source-page-scope.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/theme/theme-bootstrap.js +1 -1
- package/dist/theme/theme.js +1 -1
- package/dist/utilities/overlay-manager.d.ts +2 -0
- package/llms/components/lr-budget-meter.md +31 -0
- package/llms/components/lr-chat-composer.md +13 -2
- package/llms/components/lr-combobox.md +27 -1
- package/llms/components/lr-diff-view.md +6 -0
- package/llms/components/lr-document-library.md +90 -6
- package/llms/components/lr-graph.md +5 -0
- package/llms/components/lr-ingestion-queue.md +76 -8
- package/llms/components/lr-json-viewer.md +34 -0
- package/llms/components/lr-lite-chart.md +2 -1
- package/llms/components/lr-map.md +33 -0
- package/llms/components/lr-message-feedback.md +38 -3
- package/llms/components/lr-page.md +4 -2
- package/llms/components/lr-prompt-input.md +5 -2
- package/llms/components/lr-segmented.md +30 -10
- package/llms/components/lr-sequence-playback.md +47 -12
- package/llms/components/lr-virtual-list.md +3 -1
- package/llms/peers.md +2 -2
- package/llms/shared/events-and-types.md +61 -2
- package/llms/shared/forms-and-accessibility.md +25 -0
- package/llms/shared/imports-and-registration.md +154 -110
- package/llms/shared/testing-and-utilities.md +5 -1
- package/llms/shared.md +245 -113
- package/locales.json +1 -1
- package/package.json +8 -8
- package/registrations.json +1 -1
|
@@ -2,4 +2,4 @@ import{resolveLyraString as resolveRuntimeLyraString}from"./localization-runtime
|
|
|
2
2
|
{extendedAddress}
|
|
3
3
|
{streetAddress}
|
|
4
4
|
{locality} {region} {postalCode}
|
|
5
|
-
{country}`,contactViewerTypeHome:"Home",contactViewerTypeWork:"Work",contactViewerTypeCell:"Mobile",contactViewerTypeVoice:"Voice",contactViewerTypeFax:"Fax",contactViewerTypeInternet:"Internet",contactViewerTypePreferred:"Preferred",exportButtonLabel:"Export",generationStatusElapsedSeconds:"{seconds}s",generationStatusThroughput:"{rate} tok/s",graphDataList:"Graph data",graphSpatialControls:"Graph view and camera controls",graphView3d:"3D view",graphViewList:"List view",graphFit:"Fit graph",graphOrbitLeft:"Orbit left",graphOrbitRight:"Orbit right",graphOrbitUp:"Orbit up",graphOrbitDown:"Orbit down",graphSpatialInstructions:"Drag to orbit; Shift-drag to pan. Use arrow keys to orbit, Shift-arrow keys to pan, plus or minus to zoom, and Home to fit. Use List view to explore and activate graph items.",graphSpatialUnavailable:"The 3D drawing surface is unavailable. Graph items are available in List view.",graphCustomNodesError:"Custom 3D nodes could not be displayed. Showing standard nodes.",graphCustomNodesUnavailable:"Custom 3D nodes require the WebGL view. Showing standard nodes.",graphGlowUnavailable:"Glow requires the WebGL view.",graphSpatialPage:"Graph items: {total}. Page {page} of {pages}.",graphItemAnnouncement:"{item} ({index} of {total})",navigation:"Navigation",attachmentRetryWithContext:"Retry {label}",attachmentUploadingWithContext:"Uploading {label}",attachmentUploadingProgress:"Uploading {percent}%",attachmentUploadingIndeterminate:"Uploading…",attachmentUploadFailed:"Upload failed",attachmentUntitledFile:"Untitled file",chartTrendIncreasing:"increasing",chartTrendDecreasing:"decreasing",chartTrendFlat:"flat",chartSummary:"{label}: {count} values, range {min} to {max}, {trend} trend",chartSeriesNoData:"{label}: no data",chartSummaryWithData:"{type} chart. {summaries}.",chartSummaryEmpty:"{type} chart with no data.",chartSummarySeparator:". ",chartData:"Chart data",chartRenderUnavailable:"Chart rendering is unavailable.",chartPreparedSummary:"Summary of {validCount} valid observations ({invalidCount} invalid); {displayedCount} displayed.",chartPreparedUnavailable:"Prepared chart data is unavailable or incompatible with this chart.",chartPreparedSummaryZoom:"Zoom displays the prepared summary; indexed refinement is unavailable.",chartSpatialSummary:"Full source: {count} points, x {minX} to {maxX}, y {minY} to {maxY}. View: {matchedCount} points, x {viewMinX} to {viewMaxX}, y {viewMinY} to {viewMaxY}.",chartSpatialRadiusDomain:"Full-source radius: {min} to {max}.",chartSpatialDensityLegend:"Density includes all series; series visibility affects point overlays only.",chartSpatialPoint:"{series}: {id}, source position {sourceIndex}, {coordinates}{hidden}",chartSpatialBin:"Density region: {count} points, x {minX} to {maxX}, y {minY} to {maxY}.",chartSpatialHidden:" (series hidden)",chartDataSampled:"The chart and its generated data table show a sample of up to 1,000 records. Provide a custom data table to access all chart data.",chartPlotSampled:"The chart shows a sample of up to 1,000 records; the data table lists all data.",chartZoomUnavailable:"Zoom is unavailable, but the core chart remains available.",chartDataLabelsUnavailable:"Data labels are unavailable, but the core chart remains available.",chartStackTotalsUnavailable:"Stack totals are unavailable, but the core chart remains available.",chartAnnotationsUnavailable:"Chart annotations are unavailable, but the core chart remains available.",chart:"Chart",chartTypeLine:"Line",chartTypeBar:"Bar",chartTypeScatter:"Scatter",chartTypePie:"Pie",chartTypeDoughnut:"Doughnut",chartTypeRadar:"Radar",chartTypePolarArea:"Polar area",chartTypeBubble:"Bubble",boxPlotSeriesSummary:"{label}: {count} distributions, median range {min} to {max}, {trend} median trend",boxPlotSummaryWithData:"Box plot. {summaries}.",boxPlotSummaryEmpty:"Box plot with no data.",boxPlotData:"Box plot data",chartSeriesLabel:"Series",boxPlotMin:"Min",boxPlotQ1:"Q1",boxPlotMedian:"Median",boxPlotQ3:"Q3",boxPlotMax:"Max",boxPlot:"Box plot",histogramFrequency:"Frequency",liteChartMarkSummary:"{series}, {label}: {value} ({index} of {total})",liteChartBarLabel:"{series}, {label}: {value}",chartValueLabel:"{label}: {value}",chartValuePercentageLabel:"{label}: {value} ({percentage})",liteChartCustomMarkSummary:"{content} ({index} of {total})",composerLabel:"Message",composerPlaceholder:"Ask anything…",textareaLabel:"Text",citation:"Citation {index}",citationWithStatus:"Citation {index}, {status}",citationWithCustomLabel:"Citation {index}, {label}",comboboxOverflow:"+{n} more — refine your search",comboboxRequired:"Please select an option.",comboboxCreate:"Create {value}",comboboxLabel:"Combobox",rename:"Rename {title}",previousMonth:"Previous month",nextMonth:"Next month",chooseDate:"Choose date",date:"Date",dateInputMinMessage:"Date must be on or after {min}.",dateInputMaxMessage:"Date must be on or before {max}.",dateInputPastDisabled:"Date cannot be in the past.",dateInputFutureDisabled:"Date cannot be in the future.",dateInputInvalid:"Enter a valid date.",timeInputLabel:"Time",timeInputHour:"Hour",timeInputMinute:"Minute",timeInputSecond:"Second",timeInputDayPeriod:"Day period",timeInputEmptySegment:"Empty",timeInputOpen:"Open time picker",timeInputPopup:"Choose a time",timeInputNow:"Now",timeInputInvalid:"Enter a complete time.",timeInputMinMessage:"Time must be at or after {min}.",timeInputMaxMessage:"Time must be at or before {max}.",timeInputRangeMessage:"Time must be between {min} and {max} across midnight.",timeInputStepMessage:"Enter a time matching the required interval.",documentPreviewEmpty:"No {type} to display.",convertingDocument:"Converting document…",documentPreviewNotAvailable:"Preview not available for {label}.",documentPreviewGenericFile:"this file",documentPreviewTypeDocument:"document",documentPreviewTypeImage:"image",documentPreviewTypeEmail:"email",documentPreviewTypeCalendar:"calendar",archiveViewerEmpty:"This archive is empty.",archiveViewerFolder:"Folder",archiveViewerFile:"File",spreadsheetViewerUnavailable:"Spreadsheet preview is unavailable.",csvViewerUnavailable:"CSV preview is unavailable.",csvViewerLabel:"CSV document",spreadsheetViewerLabel:"Spreadsheet",knownDateDay:"Day",knownDateMonth:"Month",knownDateYear:"Year",documentPreviewTypeDataset:"dataset",documentPreviewTypeContact:"contact",download:"Download",exportFormatMenuLabel:"{label} format",fileInputDefaultLabel:"Drop files here or click to browse",fileInputAcceptedOne:"{count} file added.",fileInputAcceptedMany:"{count} files added.",fileInputRejectedOne:"{count} file rejected.",fileInputRejectedMany:"{count} files rejected.",fileInputFolderRejected:"Folders are not accepted here.",fileInputRejectedType:"{filename}: this file type is not accepted.",fileInputRejectedSize:"{filename}: this file is too large.",fileInputRejectedCount:"{filename}: only one file can be selected at a time.",fileInputRejectedRead:"{filename}: the file could not be read.",fileInputRejectedLimit:"{filename}: the folder contains too many entries.",fileInputRejectedMaxFiles:"{filename}: the maximum number of files has been reached.",fileInputRejectedMaxTotalSize:"{filename}: adding this file would exceed the total size limit.",elapsedMinutesSecondsTemplate:"{minutes}m {seconds}s",graphNode:"Node {label}",graphLink:"Link from {source} to {target}",graphDiagram:"Node-link diagram with {nodeCount} nodes and {linkCount} links",graphTypedNode:"{label} ({type})",graphExpandableItem:"{item}, expandable",graphNodeFocused:"Centered on {label}",graphSelectionCount:"{count} selected",graphNodesHidden:"{hidden} of {total} nodes hidden",graphCommunity:"Community {label}, {count} nodes",heatmapValueLabel:"value",heatmapMatrixCellLabel:"Row {row}, Col {col}: {value}",heatmapCalendarLabel:"Calendar heatmap of {days} days, {label} range {range}",heatmapMatrixLabel:"Heatmap of {rows} × {cols} cells, {label} range {range}",heatmapCalendarCellLabel:"{date}: {value}",heatmapNoDataValue:"no data",heatmapDefaultRowLabel:"row {n}",heatmapDefaultColLabel:"col {n}",heatmapSelectedCellLabel:"Selected: {cell}.",heatmapSelectedCount:"Selected cells: {count}.",heatmapProjectionLimit:"Only the first {count} heatmap cells are shown.",heatmapDecorationLimit:"Only the first {count} heatmap colors, legend stops, and annotations are shown.",funnelStagesLimit:"Only the first {count} stages are shown.",inputLabel:"Text",showPassword:"Show password",hidePassword:"Hide password",radioRequired:"Please select an option.",progress:"Progress",responsivePanel:"Panel",popover:"Popover",details:"Details",breadcrumb:"Breadcrumb",timeline:"Timeline",timelineClusterCount:"Show timeline events ({count})",rating:"Rating",sliderLabel:"Slider",feedbackPositive:"Good response",feedbackNegative:"Bad response",feedbackReasonsLabel:"Choose a reason",feedbackCommentLabel:"Add a comment",feedbackCommentPlaceholder:"Add more detail (optional)",feedbackSubmit:"Submit feedback",feedbackSubmitted:"Feedback submitted",colorPicker:"Color picker",mediaCardUntitledFile:"Untitled file",mediaCardOpenName:"Open {name}",mediaCardOpenImageAttachment:"Open image attachment",mediaCardOpenVideoAttachment:"Open video attachment",mediaCardOpenFileAttachment:"Open file attachment",mediaCardImageAttachment:"Image attachment",mediaCardVideoAttachment:"Video attachment",animatedImageDefaultAlt:"Animated image",mentionSuggestions:"Suggestions",mentionResultCount:{one:"{count} suggestion",other:"{count} suggestions"},mentionResultPosition:"Suggestion {current} of {total}",suggestionsLabel:"Suggested prompts",map:"Map",mapResetNorth:"Reset bearing to north",model:"Model",selectModel:"Select a model…",modelSelectNoModels:"No models",modelSelectRequired:"Please choose a model.",temperature:"Temperature",play:"Play",playbackPosition:"Playback position",playbackStepPosition:"Step {index} of {total}",videoPlayerLabel:"Video player",videoMute:"Mute",videoUnmute:"Unmute",videoVolume:"Volume",videoCaptions:"Captions",videoCaptionsOff:"Off",videoPictureInPicture:"Enter picture in picture",videoExitPictureInPicture:"Exit picture in picture",videoEnterFullscreen:"Enter fullscreen",videoExitFullscreen:"Exit fullscreen",videoPlaylistLabel:"Video playlist",videoPlaylistUntitled:"Video {position}",selectValueMissing:"Please select an option.",select:"Select",sourceListDefaultLabel:"Sources",threadListLabel:"Conversations",threadGroupPinned:"Pinned",threadGroupToday:"Today",threadGroupYesterday:"Yesterday",threadGroupPrevious7Days:"Previous 7 days",threadGroupPrevious30Days:"Previous 30 days",threadGroupArchived:"Archived",threadGroupExpand:"Expand {label}",threadGroupCollapse:"Collapse {label}",pinConversation:"Pin conversation",unpinConversation:"Unpin conversation",archiveConversation:"Archive conversation",unarchiveConversation:"Unarchive conversation",deleteConversation:"Delete conversation",searchThreads:"Search conversations",threadListMatchAnnounce:{one:"{count} conversation found",other:"{count} conversations found"},threadListEmpty:"No conversations yet",agentWorkspaceLabel:"Agent workspace",agentWorkspaceInputLimit:"{collection}: only {count} of {total} entries are retained.",agentWorkspaceConversation:"Conversation",agentWorkspaceDetails:"Run details",agentWorkspaceRun:"Agent run",agentWorkspaceTools:"Tools",agentWorkspaceRetrieval:"Retrieved context",agentWorkspaceGrounding:"Grounding",agentWorkspaceContext:"Context",agentWorkspaceEmpty:"No messages yet",ragAnswerLabel:"Grounded answer",ragAnswerCitations:"Citations",ragAnswerSources:"Sources",ragAnswerRetry:"Retry answer",evaluationDashboardLabel:"Evaluation dashboard",evaluationDashboardRunsLabel:"Evaluation runs",evaluationDashboardNoRuns:"No evaluation runs yet",approvalQueueLabel:"Tool approval queue",approvalQueueLimit:"Only the first {count} requests are shown.",approvalQueueEmpty:"No tool approvals pending",approvalQueueOpen:"Review approval for {tool}",approvalQueuePendingCount:"{count} pending approvals",approvalQueuePending:"Pending",embeddingExplorerLabel:"Embedding explorer",embeddingExplorerEmpty:"No embedding points",embeddingExplorerPoint:"{label}, embedding point {index}",embeddingExplorerPointLimit:"Showing {shown} of {total} points.",knowledgeBaseAdminLabel:"Knowledge base administration",knowledgeBaseAdminInputLimit:"{collection}: only the first {count} of {total} entries are retained.",knowledgeBaseAdminSourcesTab:"Sources",knowledgeBaseAdminIngestionTab:"Ingestion",resizeDivider:"Resize divider between panel {a} and panel {b}",trendUnchanged:"unchanged",statTrendIncreased:"increased {value}",statTrendDecreased:"decreased {value}",statTrendGood:"good",statTrendBad:"bad",statTrendAnnouncement:"{trend}, {polarity}",streamStalled:"Taking longer than usual…",streamStallAnnounce:"Connection stalled.",streamRecoverAnnounce:"Connection restored.",streamStallClearedAnnounce:"No longer stalled.",thinkingPanelLabel:"Thinking",messagePartsLabel:"Message content",messagePartError:"Part failed",messagePartRetry:"Retry this part",promptQueueLabel:"Queued prompts",promptQueueEmpty:"No prompts queued",promptQueueInputLimit:"Some queued prompts or attachments were omitted because an input limit was reached.",promptQueueAttachmentLimit:"Showing {shown} of {total} retained attachments.",promptQueueSendNow:"Send now",selectionToolbarLabel:"Selection actions",selectionAsk:"Ask",selectionQuote:"Quote",selectionCite:"Cite",promptInputLabel:"AI prompt",promptInputControls:"Prompt options",promptInputSources:"Sources",promptInputAttachments:"Attachments",mcpAppLabel:"Interactive app",mcpAppUnavailable:"This interactive app could not be loaded.",mcpAppLoading:"Loading interactive app…",taskListLabel:"Tasks",taskListCompletedOfTotal:"{completed} of {total} completed",taskListStepStartedAnnounce:"Step started: {label}",taskListStepCompletedAnnounce:"Step completed: {label}",taskListStepFailedAnnounce:"Step failed: {label}",taskListStepIncompleteAnnounce:"{label}: {status}",activityFeedLabel:"Activity",activityFeedCompletedSteps:{one:"Completed {count} step",other:"Completed {count} steps"},handoffLabel:"Agent handoff",handoffToAgent:"Transferred to {agent}",handoffFromToAgent:"Transferred from {from} to {to}",usageBadgeLabel:"Usage",usageBadgeTokensIn:"{count} in",usageBadgeTokensOut:"{count} out",usageBadgeTokensInLabel:"Input tokens",usageBadgeTokensOutLabel:"Output tokens",usageBadgeTotalTokensLabel:"Total tokens",usageBadgeCostLabel:"Cost",usageBadgeLatencyLabel:"Latency",checkpointLabel:"Checkpoint",checkpointRestore:"Restore",checkpointRestoreWithContext:"Restore conversation to {label}",checkpointRestoring:"Restoring…",checkpointConfirmPrompt:"Restore the conversation to this point?",thoughtFor:"Thought for {duration}",thinking:"Thinking…",rangeStart:"Range start",rangeEnd:"Range end",calloutAnnouncementWithContext:"{context}: {content}",closeWithContext:"Close: {snippet}",closeWithTruncatedContext:"Close: {snippet}…",toastContentIncomplete:"Notification with incomplete content",toastOverflow:"Notifications not shown: {count}.",toolApprovalHeading:"Approve {tool} call?",toolApprovalGenericTool:"tool",toolApprovalArgsLabel:"Tool call arguments (JSON)",confirmApproved:"Approved",confirmDenied:"Denied",confirmApprovedAnnounce:"Action approved.",confirmDeniedAnnounce:"Action denied.",deny:"Deny",edit:"Edit",approve:"Approve",invalidJson:"Invalid JSON.",fieldRequired:"This field is required.",fieldMustBeString:"Must be a string.",fieldMustBeNumber:"Must be a finite number.",fieldMustBeInteger:"Must be a whole number.",fieldMustBeBoolean:"Must be a boolean.",unsupportedFieldType:'Unsupported field type "{type}".',fieldMustBeOneOf:"Must be one of: {values}.",fieldMustEqual:"Must equal {value}.",schemaMustBeObject:"Schema must describe an object.",schemaPropertiesMustBeFlat:"Schema properties must be a flat object.",valueMustBeSerializable:"Value must be JSON-serializable.",valueInvalid:"The value is invalid.",matchMismatch:"The values do not match.",phoneInputLabel:"Phone",phoneInputIncomplete:"This phone number is incomplete.",otpInputIncomplete:"Enter all {total} characters.",otpInputLabel:"Verification code",numberInputIncrease:"Increase",numberInputDecrease:"Decrease",textareaCharacterCount:{one:"{count} character",other:"{count} characters"},textareaCharactersRemaining:{one:"{count} character remaining",other:"{count} characters remaining"},copyFailed:"Copy failed",colorPickerSaturationBrightness:"Saturation and brightness",colorPickerSaturationBrightnessValue:"Saturation {saturation}%, brightness {brightness}%",colorPickerHue:"Hue",colorPickerHueValue:"{hue} degrees",colorPickerOpacity:"Opacity",colorPickerOpacityValue:"{opacity}% opaque",colorPickerValueField:"Color value",colorPickerToggleFormat:"Toggle color format",colorPickerEyeDropper:"Select a color from the screen",colorPickerSwatches:"Color swatches",colorPickerSwatch:"Select {color}",colorPickerCurrentValue:"Current color: {color}",selectSelectedOverflow:"+{n} more",iconLoadError:"The icon failed to load.",iconTooLarge:"The icon file is too large to display.",iconSanitizerMissing:'This icon needs the optional "dompurify" package installed to render safely.',paginationFirstPage:"First page",paginationLastPage:"Last page",accessibleLabelSeparator:" — ",durationMilliseconds:"{value}ms",durationSeconds:"{value}s",selectTools:"Select tools",searchToolsPlaceholder:"Search tools…",useDefaultTools:"Use default tools",toolSelectCustomizeHint:"Turn off to choose individual tools.",noMatchesQuery:'No tools match "{query}".',toolSelectNoneAvailable:"No tools available.",toolSelectSummary:"{selected} of {total} tools enabled",toolCount:{one:"{count} tool",other:"{count} tools"},otherCategory:"Other",widgetFullscreenPanel:"Fullscreen panel",widgetViewGroup:"Panel view",widgetExitFullscreen:"Exit fullscreen",widgetExpandToFullscreen:"Expand to fullscreen",widgetCollapse:"Collapse panel",widgetExpand:"Expand panel",menuLabel:"Menu",pause:"Pause",kbdEscapeVisual:"Esc",kbdEscapeWord:"Escape",kbdTabWord:"Tab",kbdSpaceWord:"Space",kbdDeleteVisual:"Del",kbdDeleteWord:"Delete",kbdHomeWord:"Home",kbdEndWord:"End",kbdPageUpVisual:"PgUp",kbdPageUpWord:"Page Up",kbdPageDownVisual:"PgDn",kbdPageDownWord:"Page Down",kbdEnterWord:"Enter",kbdBackspaceWord:"Backspace",kbdArrowUpWord:"Arrow Up",kbdArrowDownWord:"Arrow Down",kbdArrowLeftWord:"Arrow Left",kbdArrowRightWord:"Arrow Right",kbdPlusWord:"Plus",kbdMinusWord:"Minus",kbdCommandWord:"Command",kbdControlVisual:"Ctrl",kbdControlWord:"Control",kbdOptionWord:"Option",kbdAltWord:"Alt",kbdShiftWord:"Shift",emailViewerLabel:"Email viewer",emailViewerMissingParser:'This viewer needs the optional "postal-mime" package installed to parse this message.',emailViewerFrom:"From",emailViewerTo:"To",emailViewerSubject:"Subject",emailViewerDate:"Date",emailViewerAttachments:"Attachments",emailViewerUnnamedAttachment:"Unnamed attachment",emailViewerNoSubject:"(no subject)",emailViewerOpenAttachment:"Open {filename}",emailViewerShowQuoted:"Show quoted text",emailViewerHideQuoted:"Hide quoted text",emailViewerGroupAddress:"{name}: {members}",calendarViewerLabel:"Calendar viewer",calendarViewerMissingParser:'This viewer needs the optional "ical.js" package installed to parse this calendar.',calendarViewerEmpty:"This calendar has no events.",calendarViewerNoSummary:"(no title)",pdfViewerLabel:"PDF document",pdfViewerMissingLibrary:'This viewer needs the optional "pdfjs-dist" package installed to render PDF files.',qrCodeMissingLibrary:'This component needs the optional "qrcode" package installed to render QR codes.',qrCodeGenerationFailed:"This value could not be encoded as a QR code.",mapMissingLibrary:'This component needs the optional "{package}" package installed to render the map.',mapStyleRequired:"Provide a map style to render the map.",mapWebglUnavailable:"This browser cannot provide the graphics support needed to render the map.",mapInitializationFailed:"The map could not be initialized.",mapLegend:"Map legend",mapScene:"Scene objects",mapSceneShow:"Show scene objects",mapSceneHide:"Hide scene objects",mapSceneEmpty:"No scene objects",mapSceneUnavailable:"Scene rendering is unavailable.",mapScenePartial:"Some scene objects are not drawn, or are drawn without their altitude.",mapSceneInvalid:"The scene update is invalid. Previously accepted objects are unchanged.",mapSceneLimit:"The scene update exceeds a limit. Previously accepted objects are unchanged.",mapScenePrevious:"Previous scene page",mapSceneNext:"Next scene page",mapScenePage:"Page {page} of {pages}",mapSceneMarker:"Marker",mapScenePath:"Path",mapSceneArc:"Arc",mapSceneModel:"Model",chartMissingLibrary:'This component needs the optional "chart.js" package installed to render charts.',boxPlotMissingLibrary:"This component needs the optional box-plot chart package installed to render box plots.",graphMissingLibrary:'This component needs the optional "d3" package installed to render the graph.',pdfViewerPageOf:"Page {page} of {total}",pdfViewerZoomIn:"Zoom in",pdfViewerZoomOut:"Zoom out",pdfViewerCurrentZoom:"{percent}%",pdfViewerPreviousPage:"Previous page",pdfViewerNextPage:"Next page",anchorJumped:"Jumped to highlighted passage.",anchorJumpedToPage:"Jumped to page {page}.",anchorNotFound:"Passage not found in this document.",highlightLayerLabel:"Highlights",highlightWithLabel:"Highlight: {label}",cellHighlightWithLabel:"Highlight: {value} — {label}",highlightOfTotal:"Highlight {index} of {total}",pageRailLabel:"Page thumbnails",pageRailPage:"Page {page}",pageRailPageHighlighted:{one:"Page {page}, {count} highlighted passage",other:"Page {page}, {count} highlighted passages"},skipToContent:"Skip to content",tourSkip:"Skip",tourDone:"Done",tourStepOf:"Step {current} of {total}",emojiPickerSearchLabel:"Search emoji",emojiPickerSearchPlaceholder:"Search emoji…",emojiPickerGridLabel:"Emoji",emojiPickerEmpty:"No emoji found",emojiPickerLoadError:"Could not load emoji.",emojiPickerPeerMissing:"Emoji are not available.",emojiPickerGroupSmileysEmotion:"Smileys & Emotion",emojiPickerGroupPeopleBody:"People & Body",emojiPickerGroupComponent:"Component",emojiPickerGroupAnimalsNature:"Animals & Nature",emojiPickerGroupFoodDrink:"Food & Drink",emojiPickerGroupTravelPlaces:"Travel & Places",emojiPickerGroupActivities:"Activities",emojiPickerGroupObjects:"Objects",emojiPickerGroupSymbols:"Symbols",emojiPickerGroupFlags:"Flags",emojiPickerGroupUnknown:"Group {group}",pushToTalkRequesting:"Requesting microphone…",pushToTalkDenied:"Microphone access denied",pushToTalkError:"Recording failed",pushToTalkUnsupported:"Recording is not supported in this browser",pushToTalkStarted:"Recording started",pushToTalkStopped:"Recording stopped",pushToTalkCancelled:"Recording cancelled",pushToTalkHold:"Hold to talk",pushToTalkStart:"Start recording",pushToTalkStop:"Stop recording",traceTree:"Trace tree",traceTreeSpanStatus:"{name} — {status}",traceTreeMetricLabel:"{label}: {value}",spanProjectionLimit:"Only the first {count} spans are shown.",agentTraceFilterLabel:"Trace span kinds",spanKindAgent:"Agent",spanKindLlm:"LLM",spanKindTool:"Tool",spanKindRetriever:"Retriever",spanKindEmbedding:"Embedding",spanKindOther:"Other",tokensIn:"Tokens in",tokensOut:"Tokens out",cost:"Cost",duration:"Duration",spanWaterfall:"Span timeline",spanStartedAtOffset:"started at +{value}",rubricSubmit:"Submit",rubricSubmitAndNext:"Submit and next",rubricSkip:"Skip",compareResponseA:"Response A",compareResponseB:"Response B",compareVoteLabel:"Vote",compareVoteBetter:"{label} is better",compareVoteTie:"Tie",compareVoteBothBad:"Both are bad",compareVoteRecorded:"Vote recorded: {label}",comparePanel:"Comparison",audioVisualizerLabel:"Voice activity: {state}",audioVisualizerIdle:"Idle",audioVisualizerListening:"Listening",audioVisualizerThinking:"Thinking",audioVisualizerSpeaking:"Speaking",treeNodeMoved:"Moved {label} to position {index} of {total}",fileTreeLabel:"Files",fileTreeDiffSummary:"+{additions} -{deletions}",gitStatusAdded:"Added",gitStatusModified:"Modified",gitStatusDeleted:"Deleted",gitStatusRenamed:"Renamed",gitStatusUntracked:"Untracked",gitStatusConflicted:"Conflicted",gitStatusIgnored:"Ignored",imageViewerLabel:"Image viewer",imageViewerFailedToLoad:"The image failed to load.",imageViewerRotate:"Rotate",imageViewerFitLabel:"Fit",imageViewerFitContain:"Fit image",imageViewerFitWidth:"Fit width",imageViewerFitActual:"Actual size",imageViewerAnnotate:"Annotate",imageViewerHighlightsLabel:"Highlighted regions",imageViewerUnlabeledHighlight:"Highlight {index}",imageViewerAnnotationHint:"Annotation mode on. Press Enter to place a region, then use arrow keys to move it, Shift plus arrow keys to resize it, Enter to save, or Escape to cancel.",imageViewerAnnotationBoxPosition:"Region at {x} percent, {y} percent, {width} by {height} percent.",imageViewerAnnotationAdded:"Region added.",imageViewerAnnotationCancelled:"Region cancelled.",transcriptFeedLabel:"Transcript",transcriptFeedEmpty:"No transcript yet",transcriptFeedInterim:"Transcribing…",commitCardLabel:"Commit",commitCardCopyHash:"Copy commit hash",commitCardDiffSummary:"+{additions} -{deletions} in {files} files",commitCardShowFiles:"Show {count} changed files",commitCardHideFiles:"Hide {count} changed files",stackTraceLabel:"Stack trace",stackTraceLimit:"Some stack-trace content was omitted because the display limit was reached.",stackTraceShowFrames:"Show {count} internal frames",stackTraceHideFrames:"Hide {count} internal frames",statusSkipped:"Skipped",testResultsLabel:"Test results",testResultsPassed:"{count} passed",testResultsFailed:"{count} failed",testResultsSkipped:"{count} skipped",testResultsRunning:"{count} running",testResultsFilterLabel:"Filter by status",testResultsCompleteAnnounce:"{passed} passed, {failed} failed, {skipped} skipped",testResultsExpandTest:"Expand {name}",testResultsCollapseTest:"Collapse {name}",envListLabel:"Environment variables",envListReveal:"Reveal {name}",envListHide:"Hide {name}",envListValueHidden:"Value hidden",envListCopy:"Copy {name}",voice:"Voice",voicePickerNoVoices:"No voices available",voicePickerRequired:"Please choose a voice.",voicePickerPreview:"Preview {name}",voicePickerStopPreview:"Stop preview",avPlayerLabel:"Audio/video player",avPlayerFailedToLoad:"The media failed to load.",avPlayerTranscript:"Transcript",avPlayerTimeline:"Seek",avPlayerPlaybackRate:"Playback speed",avPlayerRateOption:"{rate}×",avPlayerPosition:"{current} of {duration}",attachmentTriggerAudio:"Record audio",attachmentMenuAudio:"Record audio",browserFrameLabel:"Browser view",browserFrameUrlLabel:"Address",browserFrameViewOf:"Browser view of {url}",browserFrameTakeOver:"Take over",browserFrameHandBack:"Hand back",browserFrameStop:"Stop",browserFrameStatusIdle:"Idle",browserFrameStatusConnecting:"Connecting…",browserFrameStatusLive:"Live",browserFrameStatusStalled:"Stalled",browserFrameControllerAgent:"Agent",browserFrameControllerUser:"User",notebookViewerLabel:"Notebook viewer",notebookViewerInvalid:"This file is not a valid Jupyter notebook.",notebookViewerUnsupportedVersion:"Notebook format {version} is not supported.",notebookViewerTooManyCells:"This notebook has too many cells to display.",notebookViewerInPrompt:"In [{count}]",notebookViewerInPromptEmpty:"In [ ]",notebookViewerCodeCell:"Code cell {index}",notebookViewerMarkdownCell:"Markdown cell {index}",notebookViewerRawCell:"Raw cell {index}",notebookViewerErrorOutput:"Error",notebookViewerShowAllOutput:"Show all output",notebookViewerCollapseOutput:"Collapse output",notebookViewerUnrenderedOutput:"This output type cannot be displayed.",xmlViewerLabel:"XML viewer",xmlViewerParseError:"This document could not be parsed as XML.",xmlViewerTooManyNodes:"This document has too many nodes to display.",xmlViewerLimit:"Only the first {count} nodes are shown.",xmlViewerChildCount:{one:"{count} child",other:"{count} children"},xmlViewerCopyDocument:"Copy XML to clipboard",xmlViewerCopyNode:"Copy {name}",xmlViewerExpandNode:"Expand {name}",xmlViewerCollapseNode:"Collapse {name}",artifactPanelLabel:"Artifact",artifactPanelPreview:"Preview",artifactPanelCode:"Code",artifactPanelPreviousVersion:"Previous version",artifactPanelNextVersion:"Next version",artifactPanelVersionPosition:"Version {index} of {count}",artifactPanelRestore:"Restore this version",artifactPanelGenerating:"Generating…",resultFieldLabel:"{label}:",geojsonViewLabel:"Map",geojsonViewInvalid:"This file is not valid GeoJSON.",geojsonViewFeatureCount:{one:"{count} feature",other:"{count} features"},geojsonViewMissingMapLibrary:"Install the optional maplibre-gl peer to render this file on a map. Showing the raw GeoJSON instead.",mindMapLabel:"Mind map",mindMapTopicStatus:"{label}, level {level}, {count} subtopics",mindMapLeafStatus:"{label}, level {level}",mindMapExpanded:"{label} expanded",mindMapCollapsed:"{label} collapsed",mindMapNodeLimit:"Showing {shown} of {total} topics.",mindMapInputLimit:"Some topics were omitted because an input limit was reached.",entityDegree:"Connections",entityCommunity:"Community",focusInGraph:"Focus in graph",untitledEntity:"Untitled entity",untitledCommunity:"Untitled community",communityMemberCount:"{count} members",communityDrillIn:"Explore community",selectAllSources:"Select all sources",sourcePickerSelection:"{selected} of {total} selected",provenancePanelLabel:"Grounding",provenanceEntities:"Entities",provenanceRelationships:"Relationships",provenanceCommunities:"Communities",provenanceChunks:"Text chunks",provenanceEmpty:"No grounding data for this answer",chunkInspectorLabel:"Retrieved chunks",chunkScore:"Relevance {percent}%",scoreTierHigh:"High relevance",scoreTierMedium:"Medium relevance",scoreTierLow:"Low relevance",chunkInspectorEmpty:"No chunks retrieved",flowCanvasLabel:"Workflow canvas",flowCanvasLayoutLimit:"Some edge-ordering detail was omitted because the flow layout work limit was reached.",flowCanvasInputLimit:"Some nodes, edges, or node data were omitted because an input limit was reached.",flowCanvasSummary:"Workflow with {nodeCount} nodes and {edgeCount} edges",flowNode:"Node {label}",flowEdge:"Edge from {source} to {target}",flowEdgeWithLabel:"{label}, edge from {source} to {target}",flowItemAnnouncement:"{item} ({index} of {total})",dashboardGridLabel:"Dashboard grid",dashboardCellCollisionRejected:"{label} cannot be placed there because it overlaps another cell.",dashboardCellMoved:"{label} moved to column {x}, row {y}.",dashboardCellResized:"{label} resized to width {w}, height {h}.",flowEdgeList:"Workflow edges",flowNodeSelected:"{label} selected",flowNodeDeselected:"{label} deselected",flowSelectionCleared:"Selection cleared",flowNodeMoved:"Moved {label} to {x}, {y}",flowConnectStarted:"Connecting from {label}. Use arrow keys to choose a target, Enter to connect, Escape to cancel.",flowConnectTarget:"Connecting {source} to {target} ({index} of {total})",flowConnectCommitted:"Connected {source} to {target}",flowConnectCancelled:"Connection cancelled",zoomToFit:"Zoom to fit",flowLockCanvas:"Lock canvas",flowControlsLabel:"Canvas controls",flowMinimapLabel:"Workflow overview",flowMinimapSourceUnavailable:"Workflow overview unavailable.",flowMinimapViewport:"Visible area",flowMinimapInstructions:"Arrow keys pan. Plus and minus zoom. Enter or Home fits the workflow.",flowMinimapViewportChanged:"Position {x}, {y}. Zoom {zoom}.",nodePaletteLabel:"Node palette",nodePalettePlaceholder:"Search nodes…",nodePaletteEmpty:"No matching nodes.",nodePaletteDragHint:"Drag to the canvas, or press Enter to place",nodePaletteResultCount:{one:"{count} item",other:"{count} items"},pathStripLabel:"Path",pathNodeStatus:"{label}, node {position} of {total}",pathRelationStatus:"{relation}, relation",flowInputHandle:"Input {id}",flowOutputHandle:"Output {id}",flowStatusWithDuration:"{status} ({duration})",flowStatusWithDetail:"{status} — {detail}",neighborListLabel:"Relationships",neighborRowLabel:"{label}, {relation}, {direction}",neighborDirectionIn:"Incoming",neighborDirectionOut:"Outgoing",neighborDirectionBoth:"Bidirectional",neighborExpand:"Expand {label} in graph",neighborListEmpty:"No relationships",neighborSourceChoose:"Select an entity to view its neighbors.",neighborSourceError:"The neighbors could not be loaded.",neighborSourceSummary:"Showing {shown} of {total} neighbors.",neighborGroupHeader:"{relation} ({count})",flowRunStatusLabel:"Run status",flowRunSummary:"{done} of {total} steps complete",flowRunStepStatus:"{label}: {status}",flowRunStatusCount:"{status}: {count}",policySummaryLabel:"Policy decisions",policySummaryLimit:"Only the first {count} decisions are shown.",policySummaryAllowCount:"{count} allowed",policySummaryDenyCount:"{count} denied",policySummaryNeedsReviewCount:"{count} needs review",policySummaryStateAllow:"Allow",policySummaryStateDeny:"Deny",policySummaryStateNeedsReview:"Needs review",policySummaryCategoryGuardrail:"Guardrail",policySummaryCategoryPermission:"Permission",policySummaryCategoryPrivacy:"Privacy",policySummaryCategoryTool:"Tool",policySummaryDetailLabel:"More detail",evalDatasetLabel:"Evaluation examples",evalDatasetAddExample:"Add example",evalDatasetRemoveExample:"Remove example",evalDatasetImportLabel:"Import examples",evalDatasetSearchLabel:"Search examples",evalDatasetTagFilterLabel:"Filter by tag",evalDatasetEmpty:"No examples yet.",evalDatasetNoMatches:"No examples match the current filters.",evalDatasetColumnInput:"Input",evalDatasetColumnExpectedOutput:"Expected output",evalDatasetColumnTags:"Tags",queryBuilderLabel:"Query builder",queryBuilderEmpty:"No conditions yet.",queryBuilderNoFields:"No fields available.",queryBuilderAddCondition:"Add condition",queryBuilderRemoveCondition:"Remove condition {index}",queryBuilderFieldLabel:"Field",queryBuilderFieldPlaceholder:"Select field",queryBuilderOperatorLabel:"Operator",queryBuilderOperatorPlaceholder:"Select operator",queryBuilderValueLabel:"Value",queryBuilderValuePlaceholder:"Select value",queryBuilderCombinatorLabel:"Combine conditions with",queryBuilderCombinatorAnd:"All conditions (AND)",queryBuilderCombinatorOr:"Any condition (OR)",queryBuilderBooleanTrue:"True",queryBuilderBooleanFalse:"False",queryBuilderOperatorEquals:"Equals",queryBuilderOperatorNotEquals:"Does not equal",queryBuilderOperatorGreaterThan:"Greater than",queryBuilderOperatorGreaterThanOrEqual:"Greater than or equal to",queryBuilderOperatorLessThan:"Less than",queryBuilderOperatorLessThanOrEqual:"Less than or equal to",queryBuilderOperatorAfter:"After",queryBuilderOperatorOnOrAfter:"On or after",queryBuilderOperatorBefore:"Before",queryBuilderOperatorOnOrBefore:"On or before",queryBuilderOperatorContains:"Contains",queryBuilderOperatorStartsWith:"Starts with",queryBuilderOperatorEndsWith:"Ends with",queryBuilderOperatorIn:"Is any of",queryBuilderOperatorNotIn:"Is none of",queryBuilderOperatorIsEmpty:"Is empty",queryBuilderOperatorIsNotEmpty:"Is not empty",memoryPanelLabel:"Memory",memoryPanelShortTermHeading:"Short-term context",memoryPanelLongTermHeading:"Long-term memories",memoryPanelAdd:"Add to long-term memory",memoryPanelAddWithContext:'Add "{label}" to long-term memory',memoryPanelForgetAll:"Forget all",memoryPanelConfirmAddHeading:"Add this to long-term memory?",memoryPanelConfirmRemoveHeading:"Remove this item?",memoryPanelConfirmForgetHeading:"Forget all long-term memories?",memoryPanelConfirmForgetBody:"This permanently forgets all {count} long-term memories.",memoryPanelItemsLimit:"Only the first {count} memory items are shown.",graphExplorerLabel:"Knowledge graph explorer",graphExplorerAllTypesHidden:"All configured node types are hidden.",graphExplorerClearTypes:"Show all node types",graphExplorerSearchPlaceholder:"Search entities…",graphExplorerSearchResultsLabel:"Search results",graphExplorerPin:"Pin",graphExplorerUnpin:"Unpin",graphExplorerPinned:"{label} pinned",graphExplorerUnpinned:"{label} unpinned",graphExplorerPinnedHeading:"Pinned",graphExplorerFindPath:"Find path",retrievalModeVector:"Vector",retrievalModeKeyword:"Keyword",retrievalModeHybrid:"Hybrid",retrievalSearchLabel:"Retrieval search",retrievalModeLabel:"Search mode",retrievalFiltersLabel:"Active filters",groundingSummaryLabel:"Grounding summary",groundingSummaryEmpty:"No grounding assessment available",groundingSummarySupportedLabel:"Supported claims",groundingSummaryUnsupportedLabel:"Unsupported claims",groundingSummaryCoverageLabel:"Citation coverage",groundingSummaryConfidenceLabel:"Confidence",groundingSummaryWarningsHeading:"Warnings",groundingSummaryEvidenceHeading:"Evidence",groundingSummaryCitationsLimit:"Only the first {count} citations are shown.",claimEvidenceLabel:"Claim evidence",claimEvidenceEmpty:"No claim-level evidence available",claimEvidenceSupported:"Supported",claimEvidencePartiallySupported:"Partially supported",claimEvidenceUnsupported:"Unsupported",claimEvidenceContradicted:"Contradicted",claimEvidenceConfidence:"{percent} confidence",claimEvidenceClaimsLimit:"Only the first {count} claims are shown.",retrievalCompareLabel:"Retrieval comparison",retrievalCompareEmpty:"No retrieval result sets to compare",retrievalCompareInputLimit:"Some comparison sets or results were omitted because an input limit was reached.",retrievalCompareResultLimit:"Showing {shown} of {total} retained results in this set.",retrievalCompareOverlap:"Top-k overlap between {left} and {right}: {percent}",retrievalCompareRank:"Rank {rank}",retrievalCompareDenseScore:"Dense",retrievalCompareSparseScore:"Sparse",retrievalCompareRerankScore:"Rerank",retrievalCompareFinalScore:"Final",ragEvalDashboardLabel:"RAG evaluation dashboard",ragEvalDashboardEmpty:"No evaluation runs available",ragEvalDashboardInputLimit:"Only the newest {count} of {total} evaluation runs are retained.",ragEvalDashboardSlicesLimit:"Showing {count} of {total} evaluation slices.",ragEvalDashboardRuns:"Evaluation runs",ragEvalDashboardSlices:"Evaluation slices",ragEvalDashboardAllSlices:"All",ragEvalDashboardSliceUnavailable:"No evaluation runs are available for {slice}.",ragEvalDashboardRunsLimit:"Only the most recent {count} evaluation runs are shown.",promptStudioLabel:"Prompt studio",promptStudioMessages:"Prompt messages",promptStudioVariables:"Variables",promptStudioVersions:"Versions",promptStudioPreview:"Resolved preview",promptStudioPreviewLimit:"Preview unavailable: expansion limit exceeded.",promptStudioRun:"Run prompt",promptStudioSave:"Save version",promptStudioAddMessage:"Add message",promptStudioRemoveMessage:"Remove message",promptStudioMessageRole:"Message {index} role ({role})",promptStudioMessageContent:"Message {index} content ({role})",promptStudioRoleSystem:"System",promptStudioRoleUser:"User",promptStudioRoleAssistant:"Assistant",promptStudioRoleTool:"Tool",schemaViewerLabel:"Schema viewer",schemaViewerEmpty:"No schema available",schemaViewerRequired:"Required",schemaViewerCircular:"Circular schema reference",schemaViewerType:"Type: {type}",subagentPanelLabel:"Subagents",subagentPanelEmpty:"No subagent runs",subagentPanelRetry:"Retry subagent",subagentPanelCancelRun:"Cancel {name}",subagentPanelRetryRun:"Retry {name}",toolTimelineDetailsFor:"Details for {name}",toolCallBlockHeaderPending:"Waiting to use {name}",toolCallBlockHeaderRunning:"Using {name}",toolCallBlockHeaderSuccess:"Used {name}",toolCallBlockHeaderError:"Failed to use {name}",toolCallBlockHeaderDenied:"Use of {name} denied",toolCallBlockHeaderIncomplete:"Did not finish using {name}",toolCallBlockArgumentsLabel:"Arguments",toolCallBlockResultLabel:"Result",toolCallBlockErrorLabel:"Error",realtimeSessionLabel:"Realtime session",realtimeSessionDisconnected:"Disconnected",realtimeSessionConnecting:"Connecting",realtimeSessionConnected:"Connected",realtimeSessionReconnecting:"Reconnecting",realtimeSessionError:"Connection error",realtimeSessionConnect:"Connect",realtimeSessionDisconnect:"Disconnect",realtimeSessionMute:"Mute microphone",realtimeSessionUnmute:"Unmute microphone",realtimeSessionInterrupt:"Interrupt response",realtimeSessionConnectionFailed:"The realtime connection failed.",contextInspectorRedacted:"Redacted",contextInspectorTruncated:"Truncated",contextInspectorLabel:"Context inspector",contextInspectorEmpty:"No context segments",contextInspectorCopyLabel:"Copy assembled context",knowledgeBaseSyncIdle:"Idle",knowledgeBaseSyncSyncing:"Syncing",knowledgeBaseSyncPaused:"Paused",knowledgeBaseSyncSynced:"Synced",knowledgeBaseSyncError:"Error",knowledgeBaseHealthHealthy:"Healthy",knowledgeBaseHealthDegraded:"Degraded",knowledgeBaseHealthFailed:"Failed",knowledgeBaseHealthUnknown:"Unknown",knowledgeBasePermissionOwner:"Owner",knowledgeBasePermissionEditor:"Editor",knowledgeBasePermissionViewer:"Viewer",knowledgeBasePermissionRestricted:"Restricted",knowledgeBaseNeverSynced:"Never synced",knowledgeBaseSyncAction:"Sync now",knowledgeBasePauseAction:"Pause sync",knowledgeBaseDeleteAction:"Delete source",knowledgeBaseNameColumn:"Source",knowledgeBaseSyncColumn:"Sync status",knowledgeBaseHealthColumn:"Indexing health",knowledgeBasePermissionColumn:"Permission",knowledgeBaseActionsColumn:"Actions",knowledgeBaseTotalSources:"Sources",knowledgeBaseSyncedSources:"Synced",knowledgeBaseSyncingSources:"Syncing",knowledgeBaseNeedsAttention:"Needs attention",knowledgeBaseHeading:"Knowledge base",knowledgeBaseCreateSource:"Add source",knowledgeBaseEmptyHeading:"No knowledge sources yet",ingestionStageQueued:"Queued",ingestionStageUploading:"Uploading",ingestionStageExtracting:"Extracting text",ingestionStageChunking:"Chunking",ingestionStageEmbedding:"Embedding",ingestionStageIndexing:"Indexing",ingestionStageDone:"Done",ingestionStageFailed:"Failed",ingestionStageCancelled:"Cancelled",ingestionStageUnknown:"Unknown stage",ingestionQueueLabel:"Ingestion queue",ingestionQueueEmpty:"No documents queued",documentLibraryFreshnessFresh:"Fresh",documentLibraryFreshnessAging:"Aging",documentLibraryFreshnessStale:"Stale",documentLibrarySelectAll:"Select all documents",documentLibrarySelectColumn:"Select",documentLibraryTypeColumn:"Type",documentLibraryNameColumn:"Name",documentLibraryVersionColumn:"Version",documentLibraryOwnerColumn:"Owner",documentLibraryTagsColumn:"Tags",documentLibraryFreshnessColumn:"Freshness",documentLibraryUpdatedColumn:"Updated",documentLibraryLabel:"Document library",documentLibraryEmptyHeading:"No documents yet",documentLibraryNoMatchesHeading:"No matching documents",documentLibrarySearchPlaceholder:"Search documents",documentLibraryFilterByTag:"Filter by tag",documentLibraryClearSelection:"Clear selection",documentLibrarySelectedCount:"{count} selected",documentCompareNoVersion:"No version provided.",documentCompareLabel:"Document comparison",agentRunCurrentStepLabel:"Current step",graphQueryHopRangeInvalid:"Maximum hops must be at least the minimum.",graphQueryRelationshipTypeLabel:"Relationship type",graphQueryNodeTypeLabel:"Node type",graphQueryBuilderLabel:"Graph query builder",graphQueryStartLabel:"Start entity",graphQueryEndLabel:"End entity",graphQueryMinHopsLabel:"Minimum hops",graphQueryMaxHopsLabel:"Maximum hops",graphQueryDirectionLabel:"Direction",graphQueryRun:"Run query",graphQuerySavedQueriesLabel:"Saved queries",graphQuerySaveNameLabel:"Query name",graphQuerySaveButton:"Save query",graphQueryLoadWithContext:"Load {name}",filterBarReset:"Reset filters",filterBarActiveFilters:"Active filters",drilldownDocuments:"Documents",drilldownRuns:"Agent runs",drilldownEmpty:"No item selected",drilldownUntitledNode:"Untitled step",evaluationRunGroundingHeading:"Grounding",evaluationRunToolTraceHeading:"Tool trace",evaluationRunInputHeading:"Input",evaluationRunOutputHeading:"Output",evaluationRunLabel:"Evaluation run",evaluationRunProgressLabel:"Evaluation batch progress",retrievalFilterChipLabel:"{key}: {value}",retrievalSearchEmptyDescription:"Try a different search term or filters.",groundingSummaryEvidenceSpan:"Characters {start}–{end}",contextInspectorTruncatedCount:"Truncated — {count} tokens omitted",contextInspectorSegmentTokens:"{tokens} tokens",contextInspectorLimit:"Only the first {count} segments are shown.",knowledgeBaseDocumentCount:"{count} indexed",knowledgeBaseRowActionsLabel:"Actions for {name}",knowledgeBaseEmptyDescription:"Add a source to start indexing content.",ingestionChunkCount:{one:"{count} chunk",other:"{count} chunks"},ingestionItemProgressLabel:"{name} — {stage}",ingestionEmbeddedOfTotal:"{embedded} of {total} chunks embedded",ingestionAttemptCount:"Attempt {count}",ingestionRetryWithContext:"Retry {label}",ingestionCancelWithContext:"Cancel {label}",documentLibrarySelectDocument:"Select {name}",agentRunStatusAnnounce:"Status: {status}.",graphQueryDeleteWithContext:"Delete {name}",evaluationRunExampleLabel:"Example {index}",evaluationRunExampleLimit:"Only the first {count} examples are shown.",evaluationRunExampleStartedAnnounce:"{label} started",evaluationRunExampleCompletedAnnounce:"{label} completed",evaluationRunExampleFailedAnnounce:"{label} failed",evaluationRunExampleCancelledAnnounce:"{label} cancelled",evaluationRunExampleWaitingInputAnnounce:"{label} needs input",evaluationRunExampleWaitingApprovalAnnounce:"{label} needs approval",evaluationRunProgressSummary:"{completed} of {total} examples complete",evaluationRunRunningCount:"{count} running",evaluationRunFailedCount:"{count} failed",retrievalStageQueryRewrite:"Query rewrite",retrievalStageEmbed:"Embed",retrievalStageRetrieve:"Retrieve",retrievalStageRerank:"Rerank",retrievalStageFilter:"Filter",statusUnknown:"Unknown",retrievalStageKindUnknown:"Unknown stage",valueTruncated:"…",retrievalTraceEvidenceToggle:"{label} evidence",documentCompareOldVersion:"Old version",documentCompareNewVersion:"New version",agentRunStatusIdle:"Idle",agentRunStatusQueued:"Queued",agentRunStatusCollecting:"Collecting context",agentRunStatusWaitingInput:"Waiting for input",agentRunStatusWaitingApproval:"Waiting for approval",agentRunStatusDone:"Done",agentRunStatusCancelled:"Cancelled",localePickerLabel:"Language",localePickerRequired:"Please choose a language.",localePickerSearchLabel:"Search languages",localePickerEmpty:"No matching languages.",currencyPickerLabel:"Currency",countryPickerLabel:"Country",timeZonePickerLabel:"Time zone",unitPickerLabel:"Unit",flagLoadError:"Flag unavailable",moveUp:"Move up",moveDown:"Move down",reorderMovePending:"Reorder pending.",reorderMoveCancelled:"Reorder cancelled.",reorderItemMoved:"Moved to position {index} of {total}",signaturePad:"signature pad",signaturePadLabel:"Signature",signaturePadInstructions:"Draw with a pointer, or press Space to lower or lift the pen and the arrow keys to move it.",signaturePadEmpty:"No signature",signaturePadSigned:{one:"Signed, {count} stroke",other:"Signed, {count} strokes"},signaturePadPenDown:"Pen down",signaturePadPenUp:"Pen up",mentionMoreResults:{one:"{count} more suggestion",other:"{count} more suggestions"},commandPaletteResultCount:{one:"{count} command",other:"{count} commands"},dataGridRowLimit:"Only the first {count} rows are shown.",tableRowLimit:"Only the first {count} rows are shown.",treeLimit:"Only the first {count} items are shown.",treeSourceError:"Unable to load tree data.",treeSourceSummary:"{visible} visible of {total} nodes.",graphNodeLimit:"Showing {shown} of {total} nodes.",graphEdgeLimit:"Showing {shown} of {total} links.",graphExplorerSearchLimit:"Showing {shown} of {total} matches.",streamStatusIdle:"Idle",streamStatusConnecting:"Connecting",streamStatusStalled:"Connection stalled",generationStatusTokens:{one:"{count} token",other:"{count} tokens"},funnelComparisonShare:"{label}: {value}",funnelDropoffIncreased:"increased {value}",funnelDropoffDecreased:"decreased {value}",retrievalResultsSelectRowOrdinal:"Select result {index} of {total}, {label}",chunkInspectorOpenOrdinal:"Result {index} of {total}",ragAnswerEmpty:"No answer yet",retrievalTraceEmpty:"No retrieval stages",sourcePickerMatches:{one:"{count} source match",other:"{count} sources match"},provenancePanelLimit:"Only the first {count} items are shown.",commitCardFilesLimit:"Only the first {count} files are shown.",taskListLimit:"Only the first {count} tasks are shown.",evalDatasetLimit:"Only the first {count} examples are shown.",mapMarker:"Map marker",mapToggleAttribution:"Toggle attribution",mapFeedback:"Map feedback",threadListInputLimit:"Some threads were omitted because an input limit was reached.",commandPaletteInputLimit:"Some commands were omitted because an input limit was reached.",promptInputInputLimit:"Some suggestions or catalog entries were omitted because an input limit was reached.",sourceSearchUnavailable:"Search is unavailable for this data source.",sourceSelectionLoading:"Loading selected items…",sourceSelectionFailed:"Selected items could not be loaded.",documentLibrarySelectPage:"Select documents on this page",chartInputLimit:"Some chart data was omitted because an input limit was reached. Provide a smaller or pre-aggregated dataset to represent the omitted values.",histogramInputLimit:"Only the newest 10,000 samples are retained. Provide pre-binned counts to lr-chart to represent a larger distribution.",calendarInputLimit:"Showing {count} of {total} events. Provide a smaller date range to include other events.",heatmapInputLimit:"Some heatmap decorations or selected cells were omitted because an input limit was reached.",activityFeedInputLimit:"Only the newest {count} of {total} entries are retained.",catalogPickerInputLimit:"Some catalog entries were omitted because an input limit was reached.",localePickerInputLimit:"Only the first 512 locale entries are available.",emojiPickerInputLimit:"Some emoji data was omitted because an input limit was reached.",mentionInputLimit:"Only the first 10,000 mention candidates are available.",transcriptFeedInputLimit:"Only the newest {count} of {total} entries are retained.",spanWaterfallLimit:"Showing {shown} of {total} spans.",toolTimelineInputLimit:"Only the newest {count} of {total} tool calls are retained.",retrievalResultsInputLimit:"Only the first {count} of {total} retrieval results are retained.",ingestionQueueInputLimit:"Only the first {count} of {total} queue items are retained.",tagFacetLimit:"+{count} more tags",codeBlockHighlightLimit:"Long code is shown without syntax highlighting.",diffViewHighlightLimit:"Long code is shown without syntax highlighting.",engine3dLoading:"Loading the 3D view…",engine3dUnavailable:"The 3D engine could not be loaded.",engine3dUnsupported:"This browser cannot display 3D graphics.",engine3dContextLost:"The 3D view lost its graphics context.",engine3dError:"The 3D view stopped because of an error.",engine3dSoftwareRendering:"3D graphics run without hardware acceleration, so detail is reduced.",engine3dShowingBuiltin:"Showing the standard view instead.",engine3dShowingList:"Showing a list instead.",largeDataInvalid:"The data cannot be displayed because {column} is invalid.",largeDataLimit:"The data cannot be displayed because it exceeds the limit of {limit}.",mapGeolocateFindLocation:"Find my location",mapGeolocateUnavailable:"Location is unavailable",mapGeolocatePermissionDenied:"Location access was denied",mapGeolocatePositionUnavailable:"Your location could not be determined",mapGeolocateTimeout:"The location request timed out",mapGeolocateError:"Your location could not be shown",mapGeolocateOutOfBounds:"Your location is outside the map bounds",mapHashConflict:"Another map is using this URL field",mapHashInvalid:"The map URL field name is invalid",mapControlUnavailable:"A map control could not be loaded",mapGlobe:"Globe",mapTerrain:"Terrain",mapScaleFeet:"ft",mapScaleMeters:"m",mapScaleKilometers:"km",mapScaleMiles:"mi",mapScaleNauticalMiles:"nm",mapFeatureStateUnavailable:"Feature highlighting could not be updated",mapPickAtCenter:"Pick at map center",mapCancelPick:"Cancel picking",mapDrawingControls:"Drawing controls",mapDrawAtCenter:"Add vertex at map center",mapUndoDrawing:"Undo last vertex",mapCompleteDrawing:"Finish drawing",mapCancelDrawing:"Cancel drawing",mapDrawingVertices:"Vertices: {count}",mapDrawingUnavailable:"Drawing could not be updated",mapDrawingInvalidCoordinate:"Choose a valid map coordinate",mapDrawingDuplicateVertex:"Choose a different vertex",mapDrawingVertexLimit:"A drawing can contain at most {count} vertices",mapDrawingTooFewVertices:"Add at least {count} vertices before finishing",mapDrawingInvalidGeometry:"Choose vertices that form a valid simple shape",mapExportUnavailable:"Map image could not be exported",mapDrawingVertex:"Vertex {index}",mapDrawingEditInstructions:"Use arrow keys to move this vertex; hold Shift for larger steps. Page Up and Page Down select vertices. Home and End select the first and last visible vertex.",panoramaInstructions:"Use arrow keys to look around, plus and minus to zoom, and Home to reset the view.",panoramaHotspotsLabel:"Panorama hotspots",mapActivate:"Show interactive map",mapDrawingLength:"Length {value}",mapDrawingArea:"Area {value}",mapSquareMeters:"{value} m²",mapSquareKilometers:"{value} km²",chart3dLabel:"Three-dimensional chart",chart3dEmpty:"No visible chart data.",chart3dRow:"{label}, row {index} of {total}",chart3dInstructions:"Use arrow keys to move between rows, Home and End for the first and last row, and Page Up and Page Down to change pages. Press Enter or Space to select a row.",chart3dFit:"Fit chart",chart3dName:"Label",chart3dSize:"Diameter (CSS pixels)",chart3dCategory:"Category",chart3dXAxis:"X",chart3dYAxis:"Y",chart3dZAxis:"Z",modelViewerLabel:"3D model",modelViewerAlternative:"3D model preview. Download the source file for another viewer.",modelViewerInstructions:"Use arrow keys to rotate, plus or minus to zoom, and Home to fit the model.",modelViewerReady:"Model ready.",modelViewerEmpty:"This model contains no visible geometry.",modelViewerProgress:"{loaded} of {total} bytes loaded.",modelViewerInvalid:"This model could not be displayed.",modelViewerUnsupportedFormat:"This model format is not supported.",modelViewerFit:"Fit model",modelViewerRotateLeft:"Rotate left",modelViewerRotateRight:"Rotate right",modelViewerRotateUp:"Rotate up",modelViewerRotateDown:"Rotate down"};import{enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,registerLyraLocale,registerLyraLocaleDelta,resolveLocalizedParts,resolveLyraDirection,resolveLyraLocale,setLyraLocale,subscribeLyraLocale,subscribeLyraLocaleRegistry}from"./localization-runtime.js";function resolveLyraString(host,key,overrides,fallback,values){return resolveRuntimeLyraString(host,key,overrides,fallback,values,DEFAULT_STRINGS)}const LYRA_DEFAULT_STRINGS=DEFAULT_STRINGS;export{LYRA_DEFAULT_STRINGS,enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,registerLyraLocale,registerLyraLocaleDelta,resolveLocalizedParts,resolveLyraDirection,resolveLyraLocale,resolveLyraString,setLyraLocale,subscribeLyraLocale,subscribeLyraLocaleRegistry};
|
|
5
|
+
{country}`,contactViewerTypeHome:"Home",contactViewerTypeWork:"Work",contactViewerTypeCell:"Mobile",contactViewerTypeVoice:"Voice",contactViewerTypeFax:"Fax",contactViewerTypeInternet:"Internet",contactViewerTypePreferred:"Preferred",exportButtonLabel:"Export",generationStatusElapsedSeconds:"{seconds}s",generationStatusThroughput:"{rate} tok/s",graphDataList:"Graph data",graphSpatialControls:"Graph view and camera controls",graphView3d:"3D view",graphViewList:"List view",graphFit:"Fit graph",graphOrbitLeft:"Orbit left",graphOrbitRight:"Orbit right",graphOrbitUp:"Orbit up",graphOrbitDown:"Orbit down",graphSpatialInstructions:"Drag to orbit; Shift-drag to pan. Use arrow keys to orbit, Shift-arrow keys to pan, plus or minus to zoom, and Home to fit. Use List view to explore and activate graph items.",graphSpatialUnavailable:"The 3D drawing surface is unavailable. Graph items are available in List view.",graphCustomNodesError:"Custom 3D nodes could not be displayed. Showing standard nodes.",graphCustomNodesUnavailable:"Custom 3D nodes require the WebGL view. Showing standard nodes.",graphGlowUnavailable:"Glow requires the WebGL view.",graphSpatialPage:"Graph items: {total}. Page {page} of {pages}.",graphItemAnnouncement:"{item} ({index} of {total})",navigation:"Navigation",attachmentRetryWithContext:"Retry {label}",attachmentUploadingWithContext:"Uploading {label}",attachmentUploadingProgress:"Uploading {percent}%",attachmentUploadingIndeterminate:"Uploading…",attachmentUploadFailed:"Upload failed",attachmentUntitledFile:"Untitled file",chartTrendIncreasing:"increasing",chartTrendDecreasing:"decreasing",chartTrendFlat:"flat",chartSummary:"{label}: {count} values, range {min} to {max}, {trend} trend",chartSeriesNoData:"{label}: no data",chartSummaryWithData:"{type} chart. {summaries}.",chartSummaryEmpty:"{type} chart with no data.",chartSummarySeparator:". ",chartData:"Chart data",chartRenderUnavailable:"Chart rendering is unavailable.",chartPreparedSummary:"Summary of {validCount} valid observations ({invalidCount} invalid); {displayedCount} displayed.",chartPreparedUnavailable:"Prepared chart data is unavailable or incompatible with this chart.",chartPreparedSummaryZoom:"Zoom displays the prepared summary; indexed refinement is unavailable.",chartSpatialSummary:"Full source: {count} points, x {minX} to {maxX}, y {minY} to {maxY}. View: {matchedCount} points, x {viewMinX} to {viewMaxX}, y {viewMinY} to {viewMaxY}.",chartSpatialRadiusDomain:"Full-source radius: {min} to {max}.",chartSpatialDensityLegend:"Density includes all series; series visibility affects point overlays only.",chartSpatialPoint:"{series}: {id}, source position {sourceIndex}, {coordinates}{hidden}",chartSpatialBin:"Density region: {count} points, x {minX} to {maxX}, y {minY} to {maxY}.",chartSpatialHidden:" (series hidden)",chartDataSampled:"The chart and its generated data table show a sample of up to 1,000 records. Provide a custom data table to access all chart data.",chartPlotSampled:"The chart shows a sample of up to 1,000 records; the data table lists all data.",chartZoomUnavailable:"Zoom is unavailable, but the core chart remains available.",chartDataLabelsUnavailable:"Data labels are unavailable, but the core chart remains available.",chartStackTotalsUnavailable:"Stack totals are unavailable, but the core chart remains available.",chartAnnotationsUnavailable:"Chart annotations are unavailable, but the core chart remains available.",chart:"Chart",chartTypeLine:"Line",chartTypeBar:"Bar",chartTypeScatter:"Scatter",chartTypePie:"Pie",chartTypeDoughnut:"Doughnut",chartTypeRadar:"Radar",chartTypePolarArea:"Polar area",chartTypeBubble:"Bubble",boxPlotSeriesSummary:"{label}: {count} distributions, median range {min} to {max}, {trend} median trend",boxPlotSummaryWithData:"Box plot. {summaries}.",boxPlotSummaryEmpty:"Box plot with no data.",boxPlotData:"Box plot data",chartSeriesLabel:"Series",boxPlotMin:"Min",boxPlotQ1:"Q1",boxPlotMedian:"Median",boxPlotQ3:"Q3",boxPlotMax:"Max",boxPlot:"Box plot",histogramFrequency:"Frequency",liteChartMarkSummary:"{series}, {label}: {value} ({index} of {total})",liteChartBarLabel:"{series}, {label}: {value}",chartValueLabel:"{label}: {value}",chartValuePercentageLabel:"{label}: {value} ({percentage})",liteChartCustomMarkSummary:"{content} ({index} of {total})",composerLabel:"Message",composerPlaceholder:"Ask anything…",textareaLabel:"Text",citation:"Citation {index}",citationWithStatus:"Citation {index}, {status}",citationWithCustomLabel:"Citation {index}, {label}",comboboxOverflow:"+{n} more — refine your search",comboboxRequired:"Please select an option.",comboboxCreate:"Create {value}",comboboxLabel:"Combobox",rename:"Rename {title}",previousMonth:"Previous month",nextMonth:"Next month",chooseDate:"Choose date",date:"Date",dateInputMinMessage:"Date must be on or after {min}.",dateInputMaxMessage:"Date must be on or before {max}.",dateInputPastDisabled:"Date cannot be in the past.",dateInputFutureDisabled:"Date cannot be in the future.",dateInputInvalid:"Enter a valid date.",timeInputLabel:"Time",timeInputHour:"Hour",timeInputMinute:"Minute",timeInputSecond:"Second",timeInputDayPeriod:"Day period",timeInputEmptySegment:"Empty",timeInputOpen:"Open time picker",timeInputPopup:"Choose a time",timeInputNow:"Now",timeInputInvalid:"Enter a complete time.",timeInputMinMessage:"Time must be at or after {min}.",timeInputMaxMessage:"Time must be at or before {max}.",timeInputRangeMessage:"Time must be between {min} and {max} across midnight.",timeInputStepMessage:"Enter a time matching the required interval.",documentPreviewEmpty:"No {type} to display.",convertingDocument:"Converting document…",documentPreviewNotAvailable:"Preview not available for {label}.",documentPreviewGenericFile:"this file",documentPreviewTypeDocument:"document",documentPreviewTypeImage:"image",documentPreviewTypeEmail:"email",documentPreviewTypeCalendar:"calendar",archiveViewerEmpty:"This archive is empty.",archiveViewerFolder:"Folder",archiveViewerFile:"File",spreadsheetViewerUnavailable:"Spreadsheet preview is unavailable.",csvViewerUnavailable:"CSV preview is unavailable.",csvViewerLabel:"CSV document",spreadsheetViewerLabel:"Spreadsheet",knownDateDay:"Day",knownDateMonth:"Month",knownDateYear:"Year",documentPreviewTypeDataset:"dataset",documentPreviewTypeContact:"contact",download:"Download",exportFormatMenuLabel:"{label} format",fileInputDefaultLabel:"Drop files here or click to browse",fileInputAcceptedOne:"{count} file added.",fileInputAcceptedMany:"{count} files added.",fileInputRejectedOne:"{count} file rejected.",fileInputRejectedMany:"{count} files rejected.",fileInputFolderRejected:"Folders are not accepted here.",fileInputRejectedType:"{filename}: this file type is not accepted.",fileInputRejectedSize:"{filename}: this file is too large.",fileInputRejectedCount:"{filename}: only one file can be selected at a time.",fileInputRejectedRead:"{filename}: the file could not be read.",fileInputRejectedLimit:"{filename}: the folder contains too many entries.",fileInputRejectedMaxFiles:"{filename}: the maximum number of files has been reached.",fileInputRejectedMaxTotalSize:"{filename}: adding this file would exceed the total size limit.",elapsedMinutesSecondsTemplate:"{minutes}m {seconds}s",graphNode:"Node {label}",graphLink:"Link from {source} to {target}",graphDiagram:"Node-link diagram with {nodeCount} nodes and {linkCount} links",graphTypedNode:"{label} ({type})",graphExpandableItem:"{item}, expandable",graphNodeFocused:"Centered on {label}",graphSelectionCount:"{count} selected",graphNodesHidden:"{hidden} of {total} nodes hidden",graphCommunity:"Community {label}, {count} nodes",heatmapValueLabel:"value",heatmapMatrixCellLabel:"Row {row}, Col {col}: {value}",heatmapCalendarLabel:"Calendar heatmap of {days} days, {label} range {range}",heatmapMatrixLabel:"Heatmap of {rows} × {cols} cells, {label} range {range}",heatmapCalendarCellLabel:"{date}: {value}",heatmapNoDataValue:"no data",heatmapDefaultRowLabel:"row {n}",heatmapDefaultColLabel:"col {n}",heatmapSelectedCellLabel:"Selected: {cell}.",heatmapSelectedCount:"Selected cells: {count}.",heatmapProjectionLimit:"Only the first {count} heatmap cells are shown.",heatmapDecorationLimit:"Only the first {count} heatmap colors, legend stops, and annotations are shown.",funnelStagesLimit:"Only the first {count} stages are shown.",inputLabel:"Text",showPassword:"Show password",hidePassword:"Hide password",radioRequired:"Please select an option.",progress:"Progress",responsivePanel:"Panel",popover:"Popover",details:"Details",breadcrumb:"Breadcrumb",timeline:"Timeline",timelineClusterCount:"Show timeline events ({count})",rating:"Rating",sliderLabel:"Slider",feedbackPositive:"Good response",feedbackNegative:"Bad response",feedbackReasonsLabel:"Choose a reason",feedbackCommentLabel:"Add a comment",feedbackCommentPlaceholder:"Add more detail (optional)",feedbackSubmit:"Submit feedback",feedbackSubmitted:"Feedback submitted",feedbackCommentTooLong:"Use {max} characters or fewer.",feedbackSingleReasonDescription:"Choose up to one reason.",colorPicker:"Color picker",mediaCardUntitledFile:"Untitled file",mediaCardOpenName:"Open {name}",mediaCardOpenImageAttachment:"Open image attachment",mediaCardOpenVideoAttachment:"Open video attachment",mediaCardOpenFileAttachment:"Open file attachment",mediaCardImageAttachment:"Image attachment",mediaCardVideoAttachment:"Video attachment",animatedImageDefaultAlt:"Animated image",mentionSuggestions:"Suggestions",mentionResultCount:{one:"{count} suggestion",other:"{count} suggestions"},mentionResultPosition:"Suggestion {current} of {total}",suggestionsLabel:"Suggested prompts",map:"Map",mapResetNorth:"Reset bearing to north",model:"Model",selectModel:"Select a model…",modelSelectNoModels:"No models",modelSelectRequired:"Please choose a model.",temperature:"Temperature",play:"Play",playbackPosition:"Playback position",playbackStepPosition:"Step {index} of {total}",videoPlayerLabel:"Video player",videoMute:"Mute",videoUnmute:"Unmute",videoVolume:"Volume",videoCaptions:"Captions",videoCaptionsOff:"Off",videoPictureInPicture:"Enter picture in picture",videoExitPictureInPicture:"Exit picture in picture",videoEnterFullscreen:"Enter fullscreen",videoExitFullscreen:"Exit fullscreen",videoPlaylistLabel:"Video playlist",videoPlaylistUntitled:"Video {position}",selectValueMissing:"Please select an option.",select:"Select",sourceListDefaultLabel:"Sources",threadListLabel:"Conversations",threadGroupPinned:"Pinned",threadGroupToday:"Today",threadGroupYesterday:"Yesterday",threadGroupPrevious7Days:"Previous 7 days",threadGroupPrevious30Days:"Previous 30 days",threadGroupArchived:"Archived",threadGroupExpand:"Expand {label}",threadGroupCollapse:"Collapse {label}",pinConversation:"Pin conversation",unpinConversation:"Unpin conversation",archiveConversation:"Archive conversation",unarchiveConversation:"Unarchive conversation",deleteConversation:"Delete conversation",searchThreads:"Search conversations",threadListMatchAnnounce:{one:"{count} conversation found",other:"{count} conversations found"},threadListEmpty:"No conversations yet",agentWorkspaceLabel:"Agent workspace",agentWorkspaceInputLimit:"{collection}: only {count} of {total} entries are retained.",agentWorkspaceConversation:"Conversation",agentWorkspaceDetails:"Run details",agentWorkspaceRun:"Agent run",agentWorkspaceTools:"Tools",agentWorkspaceRetrieval:"Retrieved context",agentWorkspaceGrounding:"Grounding",agentWorkspaceContext:"Context",agentWorkspaceEmpty:"No messages yet",ragAnswerLabel:"Grounded answer",ragAnswerCitations:"Citations",ragAnswerSources:"Sources",ragAnswerRetry:"Retry answer",evaluationDashboardLabel:"Evaluation dashboard",evaluationDashboardRunsLabel:"Evaluation runs",evaluationDashboardNoRuns:"No evaluation runs yet",approvalQueueLabel:"Tool approval queue",approvalQueueLimit:"Only the first {count} requests are shown.",approvalQueueEmpty:"No tool approvals pending",approvalQueueOpen:"Review approval for {tool}",approvalQueuePendingCount:"{count} pending approvals",approvalQueuePending:"Pending",embeddingExplorerLabel:"Embedding explorer",embeddingExplorerEmpty:"No embedding points",embeddingExplorerPoint:"{label}, embedding point {index}",embeddingExplorerPointLimit:"Showing {shown} of {total} points.",knowledgeBaseAdminLabel:"Knowledge base administration",knowledgeBaseAdminInputLimit:"{collection}: only the first {count} of {total} entries are retained.",knowledgeBaseAdminSourcesTab:"Sources",knowledgeBaseAdminIngestionTab:"Ingestion",resizeDivider:"Resize divider between panel {a} and panel {b}",trendUnchanged:"unchanged",statTrendIncreased:"increased {value}",statTrendDecreased:"decreased {value}",statTrendGood:"good",statTrendBad:"bad",statTrendAnnouncement:"{trend}, {polarity}",streamStalled:"Taking longer than usual…",streamStallAnnounce:"Connection stalled.",streamRecoverAnnounce:"Connection restored.",streamStallClearedAnnounce:"No longer stalled.",thinkingPanelLabel:"Thinking",messagePartsLabel:"Message content",messagePartError:"Part failed",messagePartRetry:"Retry this part",promptQueueLabel:"Queued prompts",promptQueueEmpty:"No prompts queued",promptQueueInputLimit:"Some queued prompts or attachments were omitted because an input limit was reached.",promptQueueAttachmentLimit:"Showing {shown} of {total} retained attachments.",promptQueueSendNow:"Send now",selectionToolbarLabel:"Selection actions",selectionAsk:"Ask",selectionQuote:"Quote",selectionCite:"Cite",promptInputLabel:"AI prompt",promptInputControls:"Prompt options",promptInputSources:"Sources",promptInputAttachments:"Attachments",mcpAppLabel:"Interactive app",mcpAppUnavailable:"This interactive app could not be loaded.",mcpAppLoading:"Loading interactive app…",taskListLabel:"Tasks",taskListCompletedOfTotal:"{completed} of {total} completed",taskListStepStartedAnnounce:"Step started: {label}",taskListStepCompletedAnnounce:"Step completed: {label}",taskListStepFailedAnnounce:"Step failed: {label}",taskListStepIncompleteAnnounce:"{label}: {status}",activityFeedLabel:"Activity",activityFeedCompletedSteps:{one:"Completed {count} step",other:"Completed {count} steps"},handoffLabel:"Agent handoff",handoffToAgent:"Transferred to {agent}",handoffFromToAgent:"Transferred from {from} to {to}",usageBadgeLabel:"Usage",usageBadgeTokensIn:"{count} in",usageBadgeTokensOut:"{count} out",usageBadgeTokensInLabel:"Input tokens",usageBadgeTokensOutLabel:"Output tokens",usageBadgeTotalTokensLabel:"Total tokens",usageBadgeCostLabel:"Cost",usageBadgeLatencyLabel:"Latency",checkpointLabel:"Checkpoint",checkpointRestore:"Restore",checkpointRestoreWithContext:"Restore conversation to {label}",checkpointRestoring:"Restoring…",checkpointConfirmPrompt:"Restore the conversation to this point?",thoughtFor:"Thought for {duration}",thinking:"Thinking…",rangeStart:"Range start",rangeEnd:"Range end",calloutAnnouncementWithContext:"{context}: {content}",closeWithContext:"Close: {snippet}",closeWithTruncatedContext:"Close: {snippet}…",toastContentIncomplete:"Notification with incomplete content",toastOverflow:"Notifications not shown: {count}.",toolApprovalHeading:"Approve {tool} call?",toolApprovalGenericTool:"tool",toolApprovalArgsLabel:"Tool call arguments (JSON)",confirmApproved:"Approved",confirmDenied:"Denied",confirmApprovedAnnounce:"Action approved.",confirmDeniedAnnounce:"Action denied.",deny:"Deny",edit:"Edit",approve:"Approve",invalidJson:"Invalid JSON.",fieldRequired:"This field is required.",fieldMustBeString:"Must be a string.",fieldMustBeNumber:"Must be a finite number.",fieldMustBeInteger:"Must be a whole number.",fieldMustBeBoolean:"Must be a boolean.",unsupportedFieldType:'Unsupported field type "{type}".',fieldMustBeOneOf:"Must be one of: {values}.",fieldMustEqual:"Must equal {value}.",schemaMustBeObject:"Schema must describe an object.",schemaPropertiesMustBeFlat:"Schema properties must be a flat object.",valueMustBeSerializable:"Value must be JSON-serializable.",valueInvalid:"The value is invalid.",matchMismatch:"The values do not match.",phoneInputLabel:"Phone",phoneInputIncomplete:"This phone number is incomplete.",otpInputIncomplete:"Enter all {total} characters.",otpInputLabel:"Verification code",numberInputIncrease:"Increase",numberInputDecrease:"Decrease",textareaCharacterCount:{one:"{count} character",other:"{count} characters"},textareaCharactersRemaining:{one:"{count} character remaining",other:"{count} characters remaining"},copyFailed:"Copy failed",colorPickerSaturationBrightness:"Saturation and brightness",colorPickerSaturationBrightnessValue:"Saturation {saturation}%, brightness {brightness}%",colorPickerHue:"Hue",colorPickerHueValue:"{hue} degrees",colorPickerOpacity:"Opacity",colorPickerOpacityValue:"{opacity}% opaque",colorPickerValueField:"Color value",colorPickerToggleFormat:"Toggle color format",colorPickerEyeDropper:"Select a color from the screen",colorPickerSwatches:"Color swatches",colorPickerSwatch:"Select {color}",colorPickerCurrentValue:"Current color: {color}",selectSelectedOverflow:"+{n} more",iconLoadError:"The icon failed to load.",iconTooLarge:"The icon file is too large to display.",iconSanitizerMissing:'This icon needs the optional "dompurify" package installed to render safely.',paginationFirstPage:"First page",paginationLastPage:"Last page",accessibleLabelSeparator:" — ",durationMilliseconds:"{value}ms",durationSeconds:"{value}s",selectTools:"Select tools",searchToolsPlaceholder:"Search tools…",useDefaultTools:"Use default tools",toolSelectCustomizeHint:"Turn off to choose individual tools.",noMatchesQuery:'No tools match "{query}".',toolSelectNoneAvailable:"No tools available.",toolSelectSummary:"{selected} of {total} tools enabled",toolCount:{one:"{count} tool",other:"{count} tools"},otherCategory:"Other",widgetFullscreenPanel:"Fullscreen panel",widgetViewGroup:"Panel view",widgetExitFullscreen:"Exit fullscreen",widgetExpandToFullscreen:"Expand to fullscreen",widgetCollapse:"Collapse panel",widgetExpand:"Expand panel",menuLabel:"Menu",pause:"Pause",kbdEscapeVisual:"Esc",kbdEscapeWord:"Escape",kbdTabWord:"Tab",kbdSpaceWord:"Space",kbdDeleteVisual:"Del",kbdDeleteWord:"Delete",kbdHomeWord:"Home",kbdEndWord:"End",kbdPageUpVisual:"PgUp",kbdPageUpWord:"Page Up",kbdPageDownVisual:"PgDn",kbdPageDownWord:"Page Down",kbdEnterWord:"Enter",kbdBackspaceWord:"Backspace",kbdArrowUpWord:"Arrow Up",kbdArrowDownWord:"Arrow Down",kbdArrowLeftWord:"Arrow Left",kbdArrowRightWord:"Arrow Right",kbdPlusWord:"Plus",kbdMinusWord:"Minus",kbdCommandWord:"Command",kbdControlVisual:"Ctrl",kbdControlWord:"Control",kbdOptionWord:"Option",kbdAltWord:"Alt",kbdShiftWord:"Shift",emailViewerLabel:"Email viewer",emailViewerMissingParser:'This viewer needs the optional "postal-mime" package installed to parse this message.',emailViewerFrom:"From",emailViewerTo:"To",emailViewerSubject:"Subject",emailViewerDate:"Date",emailViewerAttachments:"Attachments",emailViewerUnnamedAttachment:"Unnamed attachment",emailViewerNoSubject:"(no subject)",emailViewerOpenAttachment:"Open {filename}",emailViewerShowQuoted:"Show quoted text",emailViewerHideQuoted:"Hide quoted text",emailViewerGroupAddress:"{name}: {members}",calendarViewerLabel:"Calendar viewer",calendarViewerMissingParser:'This viewer needs the optional "ical.js" package installed to parse this calendar.',calendarViewerEmpty:"This calendar has no events.",calendarViewerNoSummary:"(no title)",pdfViewerLabel:"PDF document",pdfViewerMissingLibrary:'This viewer needs the optional "pdfjs-dist" package installed to render PDF files.',qrCodeMissingLibrary:'This component needs the optional "qrcode" package installed to render QR codes.',qrCodeGenerationFailed:"This value could not be encoded as a QR code.",mapMissingLibrary:'This component needs the optional "{package}" package installed to render the map.',mapStyleRequired:"Provide a map style to render the map.",mapWebglUnavailable:"This browser cannot provide the graphics support needed to render the map.",mapInitializationFailed:"The map could not be initialized.",mapLegend:"Map legend",mapScene:"Scene objects",mapSceneShow:"Show scene objects",mapSceneHide:"Hide scene objects",mapSceneEmpty:"No scene objects",mapSceneUnavailable:"Scene rendering is unavailable.",mapScenePartial:"Some scene objects are not drawn, or are drawn without their altitude.",mapSceneInvalid:"The scene update is invalid. Previously accepted objects are unchanged.",mapSceneLimit:"The scene update exceeds a limit. Previously accepted objects are unchanged.",mapScenePrevious:"Previous scene page",mapSceneNext:"Next scene page",mapScenePage:"Page {page} of {pages}",mapSceneMarker:"Marker",mapScenePath:"Path",mapSceneArc:"Arc",mapSceneModel:"Model",chartMissingLibrary:'This component needs the optional "chart.js" package installed to render charts.',boxPlotMissingLibrary:"This component needs the optional box-plot chart package installed to render box plots.",graphMissingLibrary:'This component needs the optional "d3" package installed to render the graph.',pdfViewerPageOf:"Page {page} of {total}",pdfViewerZoomIn:"Zoom in",pdfViewerZoomOut:"Zoom out",pdfViewerCurrentZoom:"{percent}%",pdfViewerPreviousPage:"Previous page",pdfViewerNextPage:"Next page",anchorJumped:"Jumped to highlighted passage.",anchorJumpedToPage:"Jumped to page {page}.",anchorNotFound:"Passage not found in this document.",highlightLayerLabel:"Highlights",highlightWithLabel:"Highlight: {label}",cellHighlightWithLabel:"Highlight: {value} — {label}",highlightOfTotal:"Highlight {index} of {total}",pageRailLabel:"Page thumbnails",pageRailPage:"Page {page}",pageRailPageHighlighted:{one:"Page {page}, {count} highlighted passage",other:"Page {page}, {count} highlighted passages"},skipToContent:"Skip to content",tourSkip:"Skip",tourDone:"Done",tourStepOf:"Step {current} of {total}",emojiPickerSearchLabel:"Search emoji",emojiPickerSearchPlaceholder:"Search emoji…",emojiPickerGridLabel:"Emoji",emojiPickerEmpty:"No emoji found",emojiPickerLoadError:"Could not load emoji.",emojiPickerPeerMissing:"Emoji are not available.",emojiPickerGroupSmileysEmotion:"Smileys & Emotion",emojiPickerGroupPeopleBody:"People & Body",emojiPickerGroupComponent:"Component",emojiPickerGroupAnimalsNature:"Animals & Nature",emojiPickerGroupFoodDrink:"Food & Drink",emojiPickerGroupTravelPlaces:"Travel & Places",emojiPickerGroupActivities:"Activities",emojiPickerGroupObjects:"Objects",emojiPickerGroupSymbols:"Symbols",emojiPickerGroupFlags:"Flags",emojiPickerGroupUnknown:"Group {group}",pushToTalkRequesting:"Requesting microphone…",pushToTalkDenied:"Microphone access denied",pushToTalkError:"Recording failed",pushToTalkUnsupported:"Recording is not supported in this browser",pushToTalkStarted:"Recording started",pushToTalkStopped:"Recording stopped",pushToTalkCancelled:"Recording cancelled",pushToTalkHold:"Hold to talk",pushToTalkStart:"Start recording",pushToTalkStop:"Stop recording",traceTree:"Trace tree",traceTreeSpanStatus:"{name} — {status}",traceTreeMetricLabel:"{label}: {value}",spanProjectionLimit:"Only the first {count} spans are shown.",agentTraceFilterLabel:"Trace span kinds",spanKindAgent:"Agent",spanKindLlm:"LLM",spanKindTool:"Tool",spanKindRetriever:"Retriever",spanKindEmbedding:"Embedding",spanKindOther:"Other",tokensIn:"Tokens in",tokensOut:"Tokens out",cost:"Cost",duration:"Duration",spanWaterfall:"Span timeline",spanStartedAtOffset:"started at +{value}",rubricSubmit:"Submit",rubricSubmitAndNext:"Submit and next",rubricSkip:"Skip",compareResponseA:"Response A",compareResponseB:"Response B",compareVoteLabel:"Vote",compareVoteBetter:"{label} is better",compareVoteTie:"Tie",compareVoteBothBad:"Both are bad",compareVoteRecorded:"Vote recorded: {label}",comparePanel:"Comparison",audioVisualizerLabel:"Voice activity: {state}",audioVisualizerIdle:"Idle",audioVisualizerListening:"Listening",audioVisualizerThinking:"Thinking",audioVisualizerSpeaking:"Speaking",treeNodeMoved:"Moved {label} to position {index} of {total}",fileTreeLabel:"Files",fileTreeDiffSummary:"+{additions} -{deletions}",gitStatusAdded:"Added",gitStatusModified:"Modified",gitStatusDeleted:"Deleted",gitStatusRenamed:"Renamed",gitStatusUntracked:"Untracked",gitStatusConflicted:"Conflicted",gitStatusIgnored:"Ignored",imageViewerLabel:"Image viewer",imageViewerFailedToLoad:"The image failed to load.",imageViewerRotate:"Rotate",imageViewerFitLabel:"Fit",imageViewerFitContain:"Fit image",imageViewerFitWidth:"Fit width",imageViewerFitActual:"Actual size",imageViewerAnnotate:"Annotate",imageViewerHighlightsLabel:"Highlighted regions",imageViewerUnlabeledHighlight:"Highlight {index}",imageViewerAnnotationHint:"Annotation mode on. Press Enter to place a region, then use arrow keys to move it, Shift plus arrow keys to resize it, Enter to save, or Escape to cancel.",imageViewerAnnotationBoxPosition:"Region at {x} percent, {y} percent, {width} by {height} percent.",imageViewerAnnotationAdded:"Region added.",imageViewerAnnotationCancelled:"Region cancelled.",transcriptFeedLabel:"Transcript",transcriptFeedEmpty:"No transcript yet",transcriptFeedInterim:"Transcribing…",commitCardLabel:"Commit",commitCardCopyHash:"Copy commit hash",commitCardDiffSummary:"+{additions} -{deletions} in {files} files",commitCardShowFiles:"Show {count} changed files",commitCardHideFiles:"Hide {count} changed files",stackTraceLabel:"Stack trace",stackTraceLimit:"Some stack-trace content was omitted because the display limit was reached.",stackTraceShowFrames:"Show {count} internal frames",stackTraceHideFrames:"Hide {count} internal frames",statusSkipped:"Skipped",testResultsLabel:"Test results",testResultsPassed:"{count} passed",testResultsFailed:"{count} failed",testResultsSkipped:"{count} skipped",testResultsRunning:"{count} running",testResultsFilterLabel:"Filter by status",testResultsCompleteAnnounce:"{passed} passed, {failed} failed, {skipped} skipped",testResultsExpandTest:"Expand {name}",testResultsCollapseTest:"Collapse {name}",envListLabel:"Environment variables",envListReveal:"Reveal {name}",envListHide:"Hide {name}",envListValueHidden:"Value hidden",envListCopy:"Copy {name}",voice:"Voice",voicePickerNoVoices:"No voices available",voicePickerRequired:"Please choose a voice.",voicePickerPreview:"Preview {name}",voicePickerStopPreview:"Stop preview",avPlayerLabel:"Audio/video player",avPlayerFailedToLoad:"The media failed to load.",avPlayerTranscript:"Transcript",avPlayerTimeline:"Seek",avPlayerPlaybackRate:"Playback speed",avPlayerRateOption:"{rate}×",avPlayerPosition:"{current} of {duration}",attachmentTriggerAudio:"Record audio",attachmentMenuAudio:"Record audio",browserFrameLabel:"Browser view",browserFrameUrlLabel:"Address",browserFrameViewOf:"Browser view of {url}",browserFrameTakeOver:"Take over",browserFrameHandBack:"Hand back",browserFrameStop:"Stop",browserFrameStatusIdle:"Idle",browserFrameStatusConnecting:"Connecting…",browserFrameStatusLive:"Live",browserFrameStatusStalled:"Stalled",browserFrameControllerAgent:"Agent",browserFrameControllerUser:"User",notebookViewerLabel:"Notebook viewer",notebookViewerInvalid:"This file is not a valid Jupyter notebook.",notebookViewerUnsupportedVersion:"Notebook format {version} is not supported.",notebookViewerTooManyCells:"This notebook has too many cells to display.",notebookViewerInPrompt:"In [{count}]",notebookViewerInPromptEmpty:"In [ ]",notebookViewerCodeCell:"Code cell {index}",notebookViewerMarkdownCell:"Markdown cell {index}",notebookViewerRawCell:"Raw cell {index}",notebookViewerErrorOutput:"Error",notebookViewerShowAllOutput:"Show all output",notebookViewerCollapseOutput:"Collapse output",notebookViewerUnrenderedOutput:"This output type cannot be displayed.",xmlViewerLabel:"XML viewer",xmlViewerParseError:"This document could not be parsed as XML.",xmlViewerTooManyNodes:"This document has too many nodes to display.",xmlViewerLimit:"Only the first {count} nodes are shown.",xmlViewerChildCount:{one:"{count} child",other:"{count} children"},xmlViewerCopyDocument:"Copy XML to clipboard",xmlViewerCopyNode:"Copy {name}",xmlViewerExpandNode:"Expand {name}",xmlViewerCollapseNode:"Collapse {name}",artifactPanelLabel:"Artifact",artifactPanelPreview:"Preview",artifactPanelCode:"Code",artifactPanelPreviousVersion:"Previous version",artifactPanelNextVersion:"Next version",artifactPanelVersionPosition:"Version {index} of {count}",artifactPanelRestore:"Restore this version",artifactPanelGenerating:"Generating…",resultFieldLabel:"{label}:",geojsonViewLabel:"Map",geojsonViewInvalid:"This file is not valid GeoJSON.",geojsonViewFeatureCount:{one:"{count} feature",other:"{count} features"},geojsonViewMissingMapLibrary:"Install the optional maplibre-gl peer to render this file on a map. Showing the raw GeoJSON instead.",mindMapLabel:"Mind map",mindMapTopicStatus:"{label}, level {level}, {count} subtopics",mindMapLeafStatus:"{label}, level {level}",mindMapExpanded:"{label} expanded",mindMapCollapsed:"{label} collapsed",mindMapNodeLimit:"Showing {shown} of {total} topics.",mindMapInputLimit:"Some topics were omitted because an input limit was reached.",entityDegree:"Connections",entityCommunity:"Community",focusInGraph:"Focus in graph",untitledEntity:"Untitled entity",untitledCommunity:"Untitled community",communityMemberCount:"{count} members",communityDrillIn:"Explore community",selectAllSources:"Select all sources",sourcePickerSelection:"{selected} of {total} selected",provenancePanelLabel:"Grounding",provenanceEntities:"Entities",provenanceRelationships:"Relationships",provenanceCommunities:"Communities",provenanceChunks:"Text chunks",provenanceEmpty:"No grounding data for this answer",chunkInspectorLabel:"Retrieved chunks",chunkScore:"Relevance {percent}%",scoreTierHigh:"High relevance",scoreTierMedium:"Medium relevance",scoreTierLow:"Low relevance",chunkInspectorEmpty:"No chunks retrieved",flowCanvasLabel:"Workflow canvas",flowCanvasLayoutLimit:"Some edge-ordering detail was omitted because the flow layout work limit was reached.",flowCanvasInputLimit:"Some nodes, edges, or node data were omitted because an input limit was reached.",flowCanvasSummary:"Workflow with {nodeCount} nodes and {edgeCount} edges",flowNode:"Node {label}",flowEdge:"Edge from {source} to {target}",flowEdgeWithLabel:"{label}, edge from {source} to {target}",flowItemAnnouncement:"{item} ({index} of {total})",dashboardGridLabel:"Dashboard grid",dashboardCellCollisionRejected:"{label} cannot be placed there because it overlaps another cell.",dashboardCellMoved:"{label} moved to column {x}, row {y}.",dashboardCellResized:"{label} resized to width {w}, height {h}.",flowEdgeList:"Workflow edges",flowNodeSelected:"{label} selected",flowNodeDeselected:"{label} deselected",flowSelectionCleared:"Selection cleared",flowNodeMoved:"Moved {label} to {x}, {y}",flowConnectStarted:"Connecting from {label}. Use arrow keys to choose a target, Enter to connect, Escape to cancel.",flowConnectTarget:"Connecting {source} to {target} ({index} of {total})",flowConnectCommitted:"Connected {source} to {target}",flowConnectCancelled:"Connection cancelled",zoomToFit:"Zoom to fit",flowLockCanvas:"Lock canvas",flowControlsLabel:"Canvas controls",flowMinimapLabel:"Workflow overview",flowMinimapSourceUnavailable:"Workflow overview unavailable.",flowMinimapViewport:"Visible area",flowMinimapInstructions:"Arrow keys pan. Plus and minus zoom. Enter or Home fits the workflow.",flowMinimapViewportChanged:"Position {x}, {y}. Zoom {zoom}.",nodePaletteLabel:"Node palette",nodePalettePlaceholder:"Search nodes…",nodePaletteEmpty:"No matching nodes.",nodePaletteDragHint:"Drag to the canvas, or press Enter to place",nodePaletteResultCount:{one:"{count} item",other:"{count} items"},pathStripLabel:"Path",pathNodeStatus:"{label}, node {position} of {total}",pathRelationStatus:"{relation}, relation",flowInputHandle:"Input {id}",flowOutputHandle:"Output {id}",flowStatusWithDuration:"{status} ({duration})",flowStatusWithDetail:"{status} — {detail}",neighborListLabel:"Relationships",neighborRowLabel:"{label}, {relation}, {direction}",neighborDirectionIn:"Incoming",neighborDirectionOut:"Outgoing",neighborDirectionBoth:"Bidirectional",neighborExpand:"Expand {label} in graph",neighborListEmpty:"No relationships",neighborSourceChoose:"Select an entity to view its neighbors.",neighborSourceError:"The neighbors could not be loaded.",neighborSourceSummary:"Showing {shown} of {total} neighbors.",neighborGroupHeader:"{relation} ({count})",flowRunStatusLabel:"Run status",flowRunSummary:"{done} of {total} steps complete",flowRunStepStatus:"{label}: {status}",flowRunStatusCount:"{status}: {count}",policySummaryLabel:"Policy decisions",policySummaryLimit:"Only the first {count} decisions are shown.",policySummaryAllowCount:"{count} allowed",policySummaryDenyCount:"{count} denied",policySummaryNeedsReviewCount:"{count} needs review",policySummaryStateAllow:"Allow",policySummaryStateDeny:"Deny",policySummaryStateNeedsReview:"Needs review",policySummaryCategoryGuardrail:"Guardrail",policySummaryCategoryPermission:"Permission",policySummaryCategoryPrivacy:"Privacy",policySummaryCategoryTool:"Tool",policySummaryDetailLabel:"More detail",evalDatasetLabel:"Evaluation examples",evalDatasetAddExample:"Add example",evalDatasetRemoveExample:"Remove example",evalDatasetImportLabel:"Import examples",evalDatasetSearchLabel:"Search examples",evalDatasetTagFilterLabel:"Filter by tag",evalDatasetEmpty:"No examples yet.",evalDatasetNoMatches:"No examples match the current filters.",evalDatasetColumnInput:"Input",evalDatasetColumnExpectedOutput:"Expected output",evalDatasetColumnTags:"Tags",queryBuilderLabel:"Query builder",queryBuilderEmpty:"No conditions yet.",queryBuilderNoFields:"No fields available.",queryBuilderAddCondition:"Add condition",queryBuilderRemoveCondition:"Remove condition {index}",queryBuilderFieldLabel:"Field",queryBuilderFieldPlaceholder:"Select field",queryBuilderOperatorLabel:"Operator",queryBuilderOperatorPlaceholder:"Select operator",queryBuilderValueLabel:"Value",queryBuilderValuePlaceholder:"Select value",queryBuilderCombinatorLabel:"Combine conditions with",queryBuilderCombinatorAnd:"All conditions (AND)",queryBuilderCombinatorOr:"Any condition (OR)",queryBuilderBooleanTrue:"True",queryBuilderBooleanFalse:"False",queryBuilderOperatorEquals:"Equals",queryBuilderOperatorNotEquals:"Does not equal",queryBuilderOperatorGreaterThan:"Greater than",queryBuilderOperatorGreaterThanOrEqual:"Greater than or equal to",queryBuilderOperatorLessThan:"Less than",queryBuilderOperatorLessThanOrEqual:"Less than or equal to",queryBuilderOperatorAfter:"After",queryBuilderOperatorOnOrAfter:"On or after",queryBuilderOperatorBefore:"Before",queryBuilderOperatorOnOrBefore:"On or before",queryBuilderOperatorContains:"Contains",queryBuilderOperatorStartsWith:"Starts with",queryBuilderOperatorEndsWith:"Ends with",queryBuilderOperatorIn:"Is any of",queryBuilderOperatorNotIn:"Is none of",queryBuilderOperatorIsEmpty:"Is empty",queryBuilderOperatorIsNotEmpty:"Is not empty",memoryPanelLabel:"Memory",memoryPanelShortTermHeading:"Short-term context",memoryPanelLongTermHeading:"Long-term memories",memoryPanelAdd:"Add to long-term memory",memoryPanelAddWithContext:'Add "{label}" to long-term memory',memoryPanelForgetAll:"Forget all",memoryPanelConfirmAddHeading:"Add this to long-term memory?",memoryPanelConfirmRemoveHeading:"Remove this item?",memoryPanelConfirmForgetHeading:"Forget all long-term memories?",memoryPanelConfirmForgetBody:"This permanently forgets all {count} long-term memories.",memoryPanelItemsLimit:"Only the first {count} memory items are shown.",graphExplorerLabel:"Knowledge graph explorer",graphExplorerAllTypesHidden:"All configured node types are hidden.",graphExplorerClearTypes:"Show all node types",graphExplorerSearchPlaceholder:"Search entities…",graphExplorerSearchResultsLabel:"Search results",graphExplorerPin:"Pin",graphExplorerUnpin:"Unpin",graphExplorerPinned:"{label} pinned",graphExplorerUnpinned:"{label} unpinned",graphExplorerPinnedHeading:"Pinned",graphExplorerFindPath:"Find path",retrievalModeVector:"Vector",retrievalModeKeyword:"Keyword",retrievalModeHybrid:"Hybrid",retrievalSearchLabel:"Retrieval search",retrievalModeLabel:"Search mode",retrievalFiltersLabel:"Active filters",groundingSummaryLabel:"Grounding summary",groundingSummaryEmpty:"No grounding assessment available",groundingSummarySupportedLabel:"Supported claims",groundingSummaryUnsupportedLabel:"Unsupported claims",groundingSummaryCoverageLabel:"Citation coverage",groundingSummaryConfidenceLabel:"Confidence",groundingSummaryWarningsHeading:"Warnings",groundingSummaryEvidenceHeading:"Evidence",groundingSummaryCitationsLimit:"Only the first {count} citations are shown.",claimEvidenceLabel:"Claim evidence",claimEvidenceEmpty:"No claim-level evidence available",claimEvidenceSupported:"Supported",claimEvidencePartiallySupported:"Partially supported",claimEvidenceUnsupported:"Unsupported",claimEvidenceContradicted:"Contradicted",claimEvidenceConfidence:"{percent} confidence",claimEvidenceClaimsLimit:"Only the first {count} claims are shown.",retrievalCompareLabel:"Retrieval comparison",retrievalCompareEmpty:"No retrieval result sets to compare",retrievalCompareInputLimit:"Some comparison sets or results were omitted because an input limit was reached.",retrievalCompareResultLimit:"Showing {shown} of {total} retained results in this set.",retrievalCompareOverlap:"Top-k overlap between {left} and {right}: {percent}",retrievalCompareRank:"Rank {rank}",retrievalCompareDenseScore:"Dense",retrievalCompareSparseScore:"Sparse",retrievalCompareRerankScore:"Rerank",retrievalCompareFinalScore:"Final",ragEvalDashboardLabel:"RAG evaluation dashboard",ragEvalDashboardEmpty:"No evaluation runs available",ragEvalDashboardInputLimit:"Only the newest {count} of {total} evaluation runs are retained.",ragEvalDashboardSlicesLimit:"Showing {count} of {total} evaluation slices.",ragEvalDashboardRuns:"Evaluation runs",ragEvalDashboardSlices:"Evaluation slices",ragEvalDashboardAllSlices:"All",ragEvalDashboardSliceUnavailable:"No evaluation runs are available for {slice}.",ragEvalDashboardRunsLimit:"Only the most recent {count} evaluation runs are shown.",promptStudioLabel:"Prompt studio",promptStudioMessages:"Prompt messages",promptStudioVariables:"Variables",promptStudioVersions:"Versions",promptStudioPreview:"Resolved preview",promptStudioPreviewLimit:"Preview unavailable: expansion limit exceeded.",promptStudioRun:"Run prompt",promptStudioSave:"Save version",promptStudioAddMessage:"Add message",promptStudioRemoveMessage:"Remove message",promptStudioMessageRole:"Message {index} role ({role})",promptStudioMessageContent:"Message {index} content ({role})",promptStudioRoleSystem:"System",promptStudioRoleUser:"User",promptStudioRoleAssistant:"Assistant",promptStudioRoleTool:"Tool",schemaViewerLabel:"Schema viewer",schemaViewerEmpty:"No schema available",schemaViewerRequired:"Required",schemaViewerCircular:"Circular schema reference",schemaViewerType:"Type: {type}",subagentPanelLabel:"Subagents",subagentPanelEmpty:"No subagent runs",subagentPanelRetry:"Retry subagent",subagentPanelCancelRun:"Cancel {name}",subagentPanelRetryRun:"Retry {name}",toolTimelineDetailsFor:"Details for {name}",toolCallBlockHeaderPending:"Waiting to use {name}",toolCallBlockHeaderRunning:"Using {name}",toolCallBlockHeaderSuccess:"Used {name}",toolCallBlockHeaderError:"Failed to use {name}",toolCallBlockHeaderDenied:"Use of {name} denied",toolCallBlockHeaderIncomplete:"Did not finish using {name}",toolCallBlockArgumentsLabel:"Arguments",toolCallBlockResultLabel:"Result",toolCallBlockErrorLabel:"Error",realtimeSessionLabel:"Realtime session",realtimeSessionDisconnected:"Disconnected",realtimeSessionConnecting:"Connecting",realtimeSessionConnected:"Connected",realtimeSessionReconnecting:"Reconnecting",realtimeSessionError:"Connection error",realtimeSessionConnect:"Connect",realtimeSessionDisconnect:"Disconnect",realtimeSessionMute:"Mute microphone",realtimeSessionUnmute:"Unmute microphone",realtimeSessionInterrupt:"Interrupt response",realtimeSessionConnectionFailed:"The realtime connection failed.",contextInspectorRedacted:"Redacted",contextInspectorTruncated:"Truncated",contextInspectorLabel:"Context inspector",contextInspectorEmpty:"No context segments",contextInspectorCopyLabel:"Copy assembled context",knowledgeBaseSyncIdle:"Idle",knowledgeBaseSyncSyncing:"Syncing",knowledgeBaseSyncPaused:"Paused",knowledgeBaseSyncSynced:"Synced",knowledgeBaseSyncError:"Error",knowledgeBaseHealthHealthy:"Healthy",knowledgeBaseHealthDegraded:"Degraded",knowledgeBaseHealthFailed:"Failed",knowledgeBaseHealthUnknown:"Unknown",knowledgeBasePermissionOwner:"Owner",knowledgeBasePermissionEditor:"Editor",knowledgeBasePermissionViewer:"Viewer",knowledgeBasePermissionRestricted:"Restricted",knowledgeBaseNeverSynced:"Never synced",knowledgeBaseSyncAction:"Sync now",knowledgeBasePauseAction:"Pause sync",knowledgeBaseDeleteAction:"Delete source",knowledgeBaseNameColumn:"Source",knowledgeBaseSyncColumn:"Sync status",knowledgeBaseHealthColumn:"Indexing health",knowledgeBasePermissionColumn:"Permission",knowledgeBaseActionsColumn:"Actions",knowledgeBaseTotalSources:"Sources",knowledgeBaseSyncedSources:"Synced",knowledgeBaseSyncingSources:"Syncing",knowledgeBaseNeedsAttention:"Needs attention",knowledgeBaseHeading:"Knowledge base",knowledgeBaseCreateSource:"Add source",knowledgeBaseEmptyHeading:"No knowledge sources yet",ingestionStageQueued:"Queued",ingestionStageUploading:"Uploading",ingestionStageExtracting:"Extracting text",ingestionStageChunking:"Chunking",ingestionStageEmbedding:"Embedding",ingestionStageIndexing:"Indexing",ingestionStageDone:"Done",ingestionStageFailed:"Failed",ingestionStageCancelled:"Cancelled",ingestionStageUnknown:"Unknown stage",ingestionQueueLabel:"Ingestion queue",ingestionQueueEmpty:"No documents queued",ingestionActionWithContext:"{action} {label}",ingestionQueueActionLimit:"Showing {count} of {total} actions for {label}.",documentLibraryFreshnessFresh:"Fresh",documentLibraryFreshnessAging:"Aging",documentLibraryFreshnessStale:"Stale",documentLibrarySelectAll:"Select all documents",documentLibrarySelectColumn:"Select",documentLibraryTypeColumn:"Type",documentLibraryNameColumn:"Name",documentLibraryVersionColumn:"Version",documentLibraryOwnerColumn:"Owner",documentLibraryTagsColumn:"Tags",documentLibraryFreshnessColumn:"Freshness",documentLibraryUpdatedColumn:"Updated",documentLibraryLabel:"Document library",documentLibraryEmptyHeading:"No documents yet",documentLibraryNoMatchesHeading:"No matching documents",documentLibrarySearchPlaceholder:"Search documents",documentLibraryFilterByTag:"Filter by tag",documentLibraryClearSelection:"Clear selection",documentLibrarySelectedCount:"{count} selected",documentLibraryCursorNavigation:"Document batches",documentLibraryCursorRestart:"Start over",documentLibraryCursorEnd:"End of results.",documentLibraryCursorEmptyBatch:"No documents in this batch",documentLibraryCursorHistoryLimit:"Earlier batches are no longer retained. Start over to return to the beginning.",documentLibraryCursorFailed:"Unable to load this document batch.",documentCompareNoVersion:"No version provided.",documentCompareLabel:"Document comparison",agentRunCurrentStepLabel:"Current step",graphQueryHopRangeInvalid:"Maximum hops must be at least the minimum.",graphQueryRelationshipTypeLabel:"Relationship type",graphQueryNodeTypeLabel:"Node type",graphQueryBuilderLabel:"Graph query builder",graphQueryStartLabel:"Start entity",graphQueryEndLabel:"End entity",graphQueryMinHopsLabel:"Minimum hops",graphQueryMaxHopsLabel:"Maximum hops",graphQueryDirectionLabel:"Direction",graphQueryRun:"Run query",graphQuerySavedQueriesLabel:"Saved queries",graphQuerySaveNameLabel:"Query name",graphQuerySaveButton:"Save query",graphQueryLoadWithContext:"Load {name}",filterBarReset:"Reset filters",filterBarActiveFilters:"Active filters",drilldownDocuments:"Documents",drilldownRuns:"Agent runs",drilldownEmpty:"No item selected",drilldownUntitledNode:"Untitled step",evaluationRunGroundingHeading:"Grounding",evaluationRunToolTraceHeading:"Tool trace",evaluationRunInputHeading:"Input",evaluationRunOutputHeading:"Output",evaluationRunLabel:"Evaluation run",evaluationRunProgressLabel:"Evaluation batch progress",retrievalFilterChipLabel:"{key}: {value}",retrievalSearchEmptyDescription:"Try a different search term or filters.",groundingSummaryEvidenceSpan:"Characters {start}–{end}",contextInspectorTruncatedCount:"Truncated — {count} tokens omitted",contextInspectorSegmentTokens:"{tokens} tokens",contextInspectorLimit:"Only the first {count} segments are shown.",knowledgeBaseDocumentCount:"{count} indexed",knowledgeBaseRowActionsLabel:"Actions for {name}",knowledgeBaseEmptyDescription:"Add a source to start indexing content.",ingestionChunkCount:{one:"{count} chunk",other:"{count} chunks"},ingestionItemProgressLabel:"{name} — {stage}",ingestionEmbeddedOfTotal:"{embedded} of {total} chunks embedded",ingestionAttemptCount:"Attempt {count}",ingestionRetryWithContext:"Retry {label}",ingestionCancelWithContext:"Cancel {label}",documentLibrarySelectDocument:"Select {name}",agentRunStatusAnnounce:"Status: {status}.",graphQueryDeleteWithContext:"Delete {name}",evaluationRunExampleLabel:"Example {index}",evaluationRunExampleLimit:"Only the first {count} examples are shown.",evaluationRunExampleStartedAnnounce:"{label} started",evaluationRunExampleCompletedAnnounce:"{label} completed",evaluationRunExampleFailedAnnounce:"{label} failed",evaluationRunExampleCancelledAnnounce:"{label} cancelled",evaluationRunExampleWaitingInputAnnounce:"{label} needs input",evaluationRunExampleWaitingApprovalAnnounce:"{label} needs approval",evaluationRunProgressSummary:"{completed} of {total} examples complete",evaluationRunRunningCount:"{count} running",evaluationRunFailedCount:"{count} failed",retrievalStageQueryRewrite:"Query rewrite",retrievalStageEmbed:"Embed",retrievalStageRetrieve:"Retrieve",retrievalStageRerank:"Rerank",retrievalStageFilter:"Filter",statusUnknown:"Unknown",retrievalStageKindUnknown:"Unknown stage",valueTruncated:"…",retrievalTraceEvidenceToggle:"{label} evidence",documentCompareOldVersion:"Old version",documentCompareNewVersion:"New version",agentRunStatusIdle:"Idle",agentRunStatusQueued:"Queued",agentRunStatusCollecting:"Collecting context",agentRunStatusWaitingInput:"Waiting for input",agentRunStatusWaitingApproval:"Waiting for approval",agentRunStatusDone:"Done",agentRunStatusCancelled:"Cancelled",localePickerLabel:"Language",localePickerRequired:"Please choose a language.",localePickerSearchLabel:"Search languages",localePickerEmpty:"No matching languages.",currencyPickerLabel:"Currency",countryPickerLabel:"Country",timeZonePickerLabel:"Time zone",unitPickerLabel:"Unit",flagLoadError:"Flag unavailable",moveUp:"Move up",moveDown:"Move down",reorderMovePending:"Reorder pending.",reorderMoveCancelled:"Reorder cancelled.",reorderItemMoved:"Moved to position {index} of {total}",signaturePad:"signature pad",signaturePadLabel:"Signature",signaturePadInstructions:"Draw with a pointer, or press Space to lower or lift the pen and the arrow keys to move it.",signaturePadEmpty:"No signature",signaturePadSigned:{one:"Signed, {count} stroke",other:"Signed, {count} strokes"},signaturePadPenDown:"Pen down",signaturePadPenUp:"Pen up",mentionMoreResults:{one:"{count} more suggestion",other:"{count} more suggestions"},commandPaletteResultCount:{one:"{count} command",other:"{count} commands"},dataGridRowLimit:"Only the first {count} rows are shown.",tableRowLimit:"Only the first {count} rows are shown.",treeLimit:"Only the first {count} items are shown.",treeSourceError:"Unable to load tree data.",treeSourceSummary:"{visible} visible of {total} nodes.",graphNodeLimit:"Showing {shown} of {total} nodes.",graphEdgeLimit:"Showing {shown} of {total} links.",graphExplorerSearchLimit:"Showing {shown} of {total} matches.",streamStatusIdle:"Idle",streamStatusConnecting:"Connecting",streamStatusStalled:"Connection stalled",generationStatusTokens:{one:"{count} token",other:"{count} tokens"},funnelComparisonShare:"{label}: {value}",funnelDropoffIncreased:"increased {value}",funnelDropoffDecreased:"decreased {value}",retrievalResultsSelectRowOrdinal:"Select result {index} of {total}, {label}",chunkInspectorOpenOrdinal:"Result {index} of {total}",ragAnswerEmpty:"No answer yet",retrievalTraceEmpty:"No retrieval stages",sourcePickerMatches:{one:"{count} source match",other:"{count} sources match"},provenancePanelLimit:"Only the first {count} items are shown.",commitCardFilesLimit:"Only the first {count} files are shown.",taskListLimit:"Only the first {count} tasks are shown.",evalDatasetLimit:"Only the first {count} examples are shown.",mapMarker:"Map marker",mapToggleAttribution:"Toggle attribution",mapFeedback:"Map feedback",threadListInputLimit:"Some threads were omitted because an input limit was reached.",commandPaletteInputLimit:"Some commands were omitted because an input limit was reached.",promptInputInputLimit:"Some suggestions or catalog entries were omitted because an input limit was reached.",sourceSearchUnavailable:"Search is unavailable for this data source.",sourceSelectionLoading:"Loading selected items…",sourceSelectionFailed:"Selected items could not be loaded.",documentLibrarySelectPage:"Select documents on this page",chartInputLimit:"Some chart data was omitted because an input limit was reached. Provide a smaller or pre-aggregated dataset to represent the omitted values.",histogramInputLimit:"Only the newest 10,000 samples are retained. Provide pre-binned counts to lr-chart to represent a larger distribution.",calendarInputLimit:"Showing {count} of {total} events. Provide a smaller date range to include other events.",heatmapInputLimit:"Some heatmap decorations or selected cells were omitted because an input limit was reached.",activityFeedInputLimit:"Only the newest {count} of {total} entries are retained.",catalogPickerInputLimit:"Some catalog entries were omitted because an input limit was reached.",localePickerInputLimit:"Only the first 512 locale entries are available.",emojiPickerInputLimit:"Some emoji data was omitted because an input limit was reached.",mentionInputLimit:"Only the first 10,000 mention candidates are available.",transcriptFeedInputLimit:"Only the newest {count} of {total} entries are retained.",spanWaterfallLimit:"Showing {shown} of {total} spans.",toolTimelineInputLimit:"Only the newest {count} of {total} tool calls are retained.",retrievalResultsInputLimit:"Only the first {count} of {total} retrieval results are retained.",ingestionQueueInputLimit:"Only the first {count} of {total} queue items are retained.",tagFacetLimit:"+{count} more tags",codeBlockHighlightLimit:"Long code is shown without syntax highlighting.",diffViewHighlightLimit:"Long code is shown without syntax highlighting.",engine3dLoading:"Loading the 3D view…",engine3dUnavailable:"The 3D engine could not be loaded.",engine3dUnsupported:"This browser cannot display 3D graphics.",engine3dContextLost:"The 3D view lost its graphics context.",engine3dError:"The 3D view stopped because of an error.",engine3dSoftwareRendering:"3D graphics run without hardware acceleration, so detail is reduced.",engine3dShowingBuiltin:"Showing the standard view instead.",engine3dShowingList:"Showing a list instead.",largeDataInvalid:"The data cannot be displayed because {column} is invalid.",largeDataLimit:"The data cannot be displayed because it exceeds the limit of {limit}.",mapGeolocateFindLocation:"Find my location",mapGeolocateUnavailable:"Location is unavailable",mapGeolocatePermissionDenied:"Location access was denied",mapGeolocatePositionUnavailable:"Your location could not be determined",mapGeolocateTimeout:"The location request timed out",mapGeolocateError:"Your location could not be shown",mapGeolocateOutOfBounds:"Your location is outside the map bounds",mapHashConflict:"Another map is using this URL field",mapHashInvalid:"The map URL field name is invalid",mapControlUnavailable:"A map control could not be loaded",mapGlobe:"Globe",mapTerrain:"Terrain",mapScaleFeet:"ft",mapScaleMeters:"m",mapScaleKilometers:"km",mapScaleMiles:"mi",mapScaleNauticalMiles:"nm",mapFeatureStateUnavailable:"Feature highlighting could not be updated",mapPickAtCenter:"Pick at map center",mapCancelPick:"Cancel picking",mapDrawingControls:"Drawing controls",mapDrawAtCenter:"Add vertex at map center",mapUndoDrawing:"Undo last vertex",mapCompleteDrawing:"Finish drawing",mapCancelDrawing:"Cancel drawing",mapDrawingVertices:"Vertices: {count}",mapDrawingUnavailable:"Drawing could not be updated",mapDrawingInvalidCoordinate:"Choose a valid map coordinate",mapDrawingDuplicateVertex:"Choose a different vertex",mapDrawingVertexLimit:"A drawing can contain at most {count} vertices",mapDrawingTooFewVertices:"Add at least {count} vertices before finishing",mapDrawingInvalidGeometry:"Choose vertices that form a valid simple shape",mapExportUnavailable:"Map image could not be exported",mapDrawingVertex:"Vertex {index}",mapDrawingEditInstructions:"Use arrow keys to move this vertex; hold Shift for larger steps. Page Up and Page Down select vertices. Home and End select the first and last visible vertex.",panoramaInstructions:"Use arrow keys to look around, plus and minus to zoom, and Home to reset the view.",panoramaHotspotsLabel:"Panorama hotspots",mapActivate:"Show interactive map",mapDrawingLength:"Length {value}",mapDrawingArea:"Area {value}",mapSquareMeters:"{value} m²",mapSquareKilometers:"{value} km²",chart3dLabel:"Three-dimensional chart",chart3dEmpty:"No visible chart data.",chart3dRow:"{label}, row {index} of {total}",chart3dInstructions:"Use arrow keys to move between rows, Home and End for the first and last row, and Page Up and Page Down to change pages. Press Enter or Space to select a row.",chart3dFit:"Fit chart",chart3dName:"Label",chart3dSize:"Diameter (CSS pixels)",chart3dCategory:"Category",chart3dXAxis:"X",chart3dYAxis:"Y",chart3dZAxis:"Z",modelViewerLabel:"3D model",modelViewerAlternative:"3D model preview. Download the source file for another viewer.",modelViewerInstructions:"Use arrow keys to rotate, plus or minus to zoom, and Home to fit the model.",modelViewerReady:"Model ready.",modelViewerEmpty:"This model contains no visible geometry.",modelViewerProgress:"{loaded} of {total} bytes loaded.",modelViewerInvalid:"This model could not be displayed.",modelViewerUnsupportedFormat:"This model format is not supported.",modelViewerFit:"Fit model",modelViewerRotateLeft:"Rotate left",modelViewerRotateRight:"Rotate right",modelViewerRotateUp:"Rotate up",modelViewerRotateDown:"Rotate down"};import{enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,registerLyraLocale,registerLyraLocaleDelta,resolveLocalizedParts,resolveLyraDirection,resolveLyraLocale,setLyraLocale,subscribeLyraLocale,subscribeLyraLocaleRegistry}from"./localization-runtime.js";function resolveLyraString(host,key,overrides,fallback,values){return resolveRuntimeLyraString(host,key,overrides,fallback,values,DEFAULT_STRINGS)}const LYRA_DEFAULT_STRINGS=DEFAULT_STRINGS;export{LYRA_DEFAULT_STRINGS,enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,registerLyraLocale,registerLyraLocaleDelta,resolveLocalizedParts,resolveLyraDirection,resolveLyraLocale,resolveLyraString,setLyraLocale,subscribeLyraLocale,subscribeLyraLocaleRegistry};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import{LitElement}from"lit";import{property}from"lit/decorators.js";import{hostTokens}from"./host-tokens.styles.js";import{ensureLyraTokens,primeLyraTokens}from"./document-tokens.js";import{DOCUMENT_TOKEN_SCOPE_ATTRIBUTES}from"./document-tokens.generated.js";import{resolveIntlLocale}from"./intl-cache.js";import{devWarnOnce,warnThemeScopeUsage,warnUnknownAttributes}from"./dev-mode-attribute-warning.js";let deprecatedAliasSyncHook,deprecatedAliasAttributeHook;function registerDeprecatedAliasSupport(sync,attribute){deprecatedAliasSyncHook=sync,deprecatedAliasAttributeHook=attribute}const FORM_CONTROL_LABEL_FACTORY=Symbol("lr-form-control-label-factory");let formInternalsHook,externalLabelFactory;function registerFormControlLabelSupport(hook,factory){formInternalsHook=hook,factory&&(externalLabelFactory=factory)}import{observeInheritedContext,beginInheritedContextUpdate,finishInheritedContextUpdate,markInheritedContextUpdateRendered,queueInheritedDirectionChange,recordInheritedDirectionRead,recordInheritedLocaleRead}from"./inherited-context-observer.js";import{emptyLyraLocaleStrings,enableLyraLocaleCache,invalidateLyraLocaleCache,lyraLocaleCatalogVersion,peekLyraLocale,recordLyraOwnerDocumentConnection,resolveLyraDirection,resolveLyraLocaleWithHostOverride,resolveLyraStringWithLocale,resolveLyraLocale,snapshotLyraLocaleStrings,subscribeLyraLocaleForHost,trustedLyraDefaultStrings}from"./localization-runtime.js";import{trackInputModality}from"./focus-modality.js";const collectionSupportByPrototype=new WeakMap;function collectionSupportFor(host){const start=Object.getPrototypeOf(host);if(!start)return;const known=collectionSupportByPrototype.get(start);if(known!==void 0)return known??void 0;let found=null;for(let prototype=start;prototype&&prototype!==LitElement.prototype;){const constructor=Object.getOwnPropertyDescriptor(prototype,"constructor")?.value;if(typeof constructor=="function"){const support=constructor.collectionSupport;if(support){found=support;break}}prototype=Object.getPrototypeOf(prototype)}return collectionSupportByPrototype.set(start,found),found??void 0}const SEED_FIRST_RENDER_STATE=Symbol("lr-seed-first-render-state"),SLOT_PRESENCE_UNRESOLVED=Symbol("lr-slot-presence-unresolved"),REACTIVE_HOST_ATTRIBUTES=["aria-label","aria-describedby","lang","dir"],DIRECTION_HOST_ATTRIBUTES=["class","style","slot"],SCOPE_HOST_ATTRIBUTES=[...DOCUMENT_TOKEN_SCOPE_ATTRIBUTES,"class"],adoptedComponentSheets=new WeakMap;function isCrossDocumentStyleSheetRejection(error){return typeof error=="object"&&error!==null&&error.name==="NotAllowedError"}function hasOwnAutofocusAccessor(host){let prototype=Object.getPrototypeOf(host);for(;prototype&&prototype!==HTMLElement.prototype;){if(Object.getOwnPropertyDescriptor(prototype,"autofocus"))return!0;prototype=Object.getPrototypeOf(prototype)}return!1}class LyraElement extends LitElement{static{this.styles=[hostTokens]}static{this.ownedCollectionProperties=Object.freeze([])}static{this.identityCollectionProperties=Object.freeze([])}static{this.identityCollectionObjectProperties=Object.freeze([])}static{this.immutableEventDetails=Object.freeze([])}static{this.identityEventDetailProperties=Object.freeze({})}static{this.identityEventDetailCollectionItems=Object.freeze({})}static{this.defaultStrings=Object.freeze({})}static get observedAttributes(){const attributes=[...new Set([...super.observedAttributes,...REACTIVE_HOST_ATTRIBUTES,...DIRECTION_HOST_ATTRIBUTES,...SCOPE_HOST_ATTRIBUTES])];return this.collectionSupport?.installProperties(this),primeLyraTokens(),Object.hasOwn(this,"deprecatedAliases")&&this.deprecatedAliases&&!deprecatedAliasSyncHook&&devWarnOnce(`lyra-deprecated-alias-installer:${this.name}`,`${this.name} declares deprecatedAliases; call installDeprecatedAliases() in a static block.`),attributes}get strings(){return this.stringsValue}set strings(value){if(value===this.stringsSource||value===this.stringsValue)return;const previous=this.stringsValue;this.stringsSource=value,this.stringsValue=snapshotLyraLocaleStrings(value),this.requestUpdate("strings",previous)}constructor(){if(super(),this.locale="",this.stringsValue=emptyLyraLocaleStrings(),this.localeSubscriptionNeeded=!1,this.componentStylesAreInline=!1,this.constructor.formAssociated){const controller=(this.constructor[FORM_CONTROL_LABEL_FACTORY]??externalLabelFactory)?.(this);controller&&this.addController(controller)}}attachInternals(){const internals=super.attachInternals();return formInternalsHook?.(this,internals),internals}createRenderRoot(){try{return super.createRenderRoot()}catch(error){if(!isCrossDocumentStyleSheetRejection(error))throw error;const constructor=this.constructor,renderRoot=this.shadowRoot??this.attachShadow(constructor.shadowRootOptions),owner=this.ownerDocument;for(const style of constructor.elementStyles){const element=owner.createElement("style");element.textContent=style instanceof CSSStyleSheet?Array.from(style.cssRules,rule=>rule.cssText).join(`
|
|
1
|
+
import{__decorate}from"tslib";import{LitElement}from"lit";import{property}from"lit/decorators.js";import{hostTokens}from"./host-tokens.styles.js";import{ensureLyraTokens,primeLyraTokens}from"./document-tokens.js";import{DOCUMENT_TOKEN_SCOPE_ATTRIBUTES}from"./document-tokens.generated.js";import{resolveIntlLocale}from"./intl-cache.js";import{claimDocumentRuntime}from"./runtime-diagnostics.js";import{devWarnOnce,warnThemeScopeUsage,warnUnknownAttributes}from"./dev-mode-attribute-warning.js";let deprecatedAliasSyncHook,deprecatedAliasAttributeHook;function registerDeprecatedAliasSupport(sync,attribute){deprecatedAliasSyncHook=sync,deprecatedAliasAttributeHook=attribute}const FORM_CONTROL_LABEL_FACTORY=Symbol("lr-form-control-label-factory");let formInternalsHook,externalLabelFactory;function registerFormControlLabelSupport(hook,factory){formInternalsHook=hook,factory&&(externalLabelFactory=factory)}import{observeInheritedContext,beginInheritedContextUpdate,finishInheritedContextUpdate,markInheritedContextUpdateRendered,queueInheritedDirectionChange,recordInheritedDirectionRead,recordInheritedLocaleRead}from"./inherited-context-observer.js";import{emptyLyraLocaleStrings,enableLyraLocaleCache,invalidateLyraLocaleCache,lyraLocaleCatalogVersion,peekLyraLocale,recordLyraOwnerDocumentConnection,resolveLyraDirection,resolveLyraLocaleWithHostOverride,resolveLyraStringWithLocale,resolveLyraLocale,snapshotLyraLocaleStrings,subscribeLyraLocaleForHost,trustedLyraDefaultStrings}from"./localization-runtime.js";import{trackInputModality}from"./focus-modality.js";const collectionSupportByPrototype=new WeakMap;function collectionSupportFor(host){const start=Object.getPrototypeOf(host);if(!start)return;const known=collectionSupportByPrototype.get(start);if(known!==void 0)return known??void 0;let found=null;for(let prototype=start;prototype&&prototype!==LitElement.prototype;){const constructor=Object.getOwnPropertyDescriptor(prototype,"constructor")?.value;if(typeof constructor=="function"){const support=constructor.collectionSupport;if(support){found=support;break}}prototype=Object.getPrototypeOf(prototype)}return collectionSupportByPrototype.set(start,found),found??void 0}const SEED_FIRST_RENDER_STATE=Symbol("lr-seed-first-render-state"),SLOT_PRESENCE_UNRESOLVED=Symbol("lr-slot-presence-unresolved"),REACTIVE_HOST_ATTRIBUTES=["aria-label","aria-describedby","lang","dir"],DIRECTION_HOST_ATTRIBUTES=["class","style","slot"],SCOPE_HOST_ATTRIBUTES=[...DOCUMENT_TOKEN_SCOPE_ATTRIBUTES,"class"],adoptedComponentSheets=new WeakMap;function isCrossDocumentStyleSheetRejection(error){return typeof error=="object"&&error!==null&&error.name==="NotAllowedError"}function hasOwnAutofocusAccessor(host){let prototype=Object.getPrototypeOf(host);for(;prototype&&prototype!==HTMLElement.prototype;){if(Object.getOwnPropertyDescriptor(prototype,"autofocus"))return!0;prototype=Object.getPrototypeOf(prototype)}return!1}class LyraElement extends LitElement{static{this.styles=[hostTokens]}static{this.ownedCollectionProperties=Object.freeze([])}static{this.identityCollectionProperties=Object.freeze([])}static{this.identityCollectionObjectProperties=Object.freeze([])}static{this.immutableEventDetails=Object.freeze([])}static{this.identityEventDetailProperties=Object.freeze({})}static{this.identityEventDetailCollectionItems=Object.freeze({})}static{this.defaultStrings=Object.freeze({})}static get observedAttributes(){const attributes=[...new Set([...super.observedAttributes,...REACTIVE_HOST_ATTRIBUTES,...DIRECTION_HOST_ATTRIBUTES,...SCOPE_HOST_ATTRIBUTES])];return this.collectionSupport?.installProperties(this),primeLyraTokens(),Object.hasOwn(this,"deprecatedAliases")&&this.deprecatedAliases&&!deprecatedAliasSyncHook&&devWarnOnce(`lyra-deprecated-alias-installer:${this.name}`,`${this.name} declares deprecatedAliases; call installDeprecatedAliases() in a static block.`),attributes}get strings(){return this.stringsValue}set strings(value){if(value===this.stringsSource||value===this.stringsValue)return;const previous=this.stringsValue;this.stringsSource=value,this.stringsValue=snapshotLyraLocaleStrings(value),this.requestUpdate("strings",previous)}constructor(){if(super(),this.locale="",this.stringsValue=emptyLyraLocaleStrings(),this.localeSubscriptionNeeded=!1,this.componentStylesAreInline=!1,this.constructor.formAssociated){const controller=(this.constructor[FORM_CONTROL_LABEL_FACTORY]??externalLabelFactory)?.(this);controller&&this.addController(controller)}}attachInternals(){const internals=super.attachInternals();return formInternalsHook?.(this,internals),internals}createRenderRoot(){try{return super.createRenderRoot()}catch(error){if(!isCrossDocumentStyleSheetRejection(error))throw error;const constructor=this.constructor,renderRoot=this.shadowRoot??this.attachShadow(constructor.shadowRootOptions),owner=this.ownerDocument;for(const style of constructor.elementStyles){const element=owner.createElement("style");element.textContent=style instanceof CSSStyleSheet?Array.from(style.cssRules,rule=>rule.cssText).join(`
|
|
2
2
|
`):style.cssText,renderRoot.appendChild(element)}return this.componentStylesAreInline=!0,this.renderOptions.renderBefore??=renderRoot.firstChild,renderRoot}}restoreAdoptedComponentStyles(){const root=this.renderRoot,owner=this.ownerDocument,Sheet=owner?.defaultView?.CSSStyleSheet;if(!root||this.componentStylesAreInline||!Sheet||!("adoptedStyleSheets"in root))return;const originals=this.constructor.elementStyles.map(style=>"cssRules"in style?style:style.styleSheet);if(originals.some(sheet=>!sheet))return;const componentSheets=originals,retained=root.adoptedStyleSheets.filter(sheet=>!componentSheets.includes(sheet)&&!this.installedComponentSheets?.includes(sheet));try{root.adoptedStyleSheets=[...componentSheets,...retained],this.installedComponentSheets=componentSheets}catch(error){if(!isCrossDocumentStyleSheetRejection(error))throw error;let cache=adoptedComponentSheets.get(owner);cache||adoptedComponentSheets.set(owner,cache=new WeakMap);const replacements=componentSheets.map(original=>{let sheet=cache.get(original);return sheet||(sheet=new Sheet({disabled:original.disabled,media:original.media.mediaText}),sheet.replaceSync(Array.from(original.cssRules,rule=>rule.cssText).join(`
|
|
3
|
-
`)),cache.set(original,sheet)),sheet});root.adoptedStyleSheets=[...replacements,...retained],this.installedComponentSheets=replacements}}connectedCallback(){this.hydratingServerShadow??=!this.hasUpdated&&this.shadowRoot!==null,ensureLyraTokens(this),super.connectedCallback(),warnUnknownAttributes(this),warnThemeScopeUsage(this),recordLyraOwnerDocumentConnection(this),trackInputModality(this.ownerDocument),enableLyraLocaleCache(this),invalidateLyraLocaleCache(this),this.stopInheritedContextObservation?.(),this.stopInheritedContextObservation=observeInheritedContext(this),this.localeSubscriptionNeeded&&this.ensureLocaleSubscription(),this.lastLocalizedCatalogVersion!==void 0&&lyraLocaleCatalogVersion(resolveLyraLocale(this))!==this.lastLocalizedCatalogVersion&&this.requestUpdate();const deferred=this.deferredAfterUpdate;if(deferred){this.deferredAfterUpdate=void 0;for(const[key,callback]of deferred)this.scheduleAfterUpdate(callback,key)}}disconnectedCallback(){this.pendingLoadController?.abort(),this.pendingLoadController=void 0,this.lastLocalizedLocale!==void 0&&(this.lastLocalizedCatalogVersion=lyraLocaleCatalogVersion(this.lastLocalizedLocale)),this.stopLocaleSubscription?.(),this.stopLocaleSubscription=void 0,this.stopInheritedContextObservation?.(),this.stopInheritedContextObservation=void 0,invalidateLyraLocaleCache(this),super.disconnectedCallback()}adoptedCallback(){this.restoreAdoptedComponentStyles(),this.stopLocaleSubscription?.(),this.stopLocaleSubscription=void 0,invalidateLyraLocaleCache(this),this.isConnected&&this.localeSubscriptionNeeded&&this.ensureLocaleSubscription()}firstUpdated(changedProperties){super.firstUpdated(changedProperties),!(typeof Node>"u")&&this.autofocus&&(hasOwnAutofocusAccessor(this)||this.focus!==HTMLElement.prototype.focus&&this.scheduleAfterUpdate(()=>this.focus(),"lr-global-autofocus"))}requestUpdate(...args){invalidateLyraLocaleCache(this),super.requestUpdate(...args),deprecatedAliasSyncHook?.(this,args[0],args[1])}performUpdate(){beginInheritedContextUpdate(this);try{super.performUpdate()}finally{finishInheritedContextUpdate(this)}}update(changedProperties){super.update(changedProperties),markInheritedContextUpdateRendered(this)}ensureLocaleSubscription(){this.localeSubscriptionNeeded=!0,!(!this.isConnected||this.stopLocaleSubscription)&&(this.stopLocaleSubscription=subscribeLyraLocaleForHost(this))}attributeChangedCallback(name,oldValue,value){const directionHostAttribute=oldValue!==value&&DIRECTION_HOST_ATTRIBUTES.includes(name);directionHostAttribute&&queueInheritedDirectionChange(this,name==="slot"),oldValue!==value&&this.isConnected&&SCOPE_HOST_ATTRIBUTES.includes(name)&&ensureLyraTokens(this);const finishAliasWarning=oldValue!==value?deprecatedAliasAttributeHook?.(this,name):void 0;super.attributeChangedCallback(name,oldValue,value),finishAliasWarning?.(),oldValue!==value&&REACTIVE_HOST_ATTRIBUTES.includes(name)?this.requestUpdate():directionHostAttribute&&invalidateLyraLocaleCache(this)}seedFirstRenderState(seed){this.hasUpdated||this[SEED_FIRST_RENDER_STATE](seed)}[SEED_FIRST_RENDER_STATE](seed){if(typeof Node>"u")return;if(!this.hydratingServerShadow){seed();return}const pending=this.deferredFirstRenderSeeds??=new Set;pending.add(seed),!(pending.size>1)&&this.updateComplete.then(()=>{setTimeout(()=>{this.hydratingServerShadow=!1;const seeds=this.deferredFirstRenderSeeds;this.deferredFirstRenderSeeds=void 0;for(const deferred of seeds??[])deferred();this.requestUpdate()},0)},()=>{this.hydratingServerShadow=!1,this.deferredFirstRenderSeeds=void 0})}updateBrowserDerivedState(update){this[SEED_FIRST_RENDER_STATE](update)}renderSlotPresence(present){return present||this[SLOT_PRESENCE_UNRESOLVED]()}[SLOT_PRESENCE_UNRESOLVED](){return typeof Node>"u"||this.hydratingServerShadow===!0}beginAbortableLoad(){this.pendingLoadController?.abort(),this.pendingLoadController=void 0;const AbortControllerCtor=this.ownerDocument?.defaultView?.AbortController;if(AbortControllerCtor)return this.pendingLoadController=new AbortControllerCtor,this.pendingLoadController.signal}scheduleAfterUpdate(callback,key="load"){const pending=this.afterUpdateCallbacks??=new Map;pending.has(key)||(pending.set(key,callback),!(pending.size>1)&&queueMicrotask(()=>{const due=this.afterUpdateCallbacks;if(this.afterUpdateCallbacks=void 0,!due)return;if(this.isConnected){const errors=[];for(const due_callback of due.values())try{due_callback()}catch(error){errors.push(error)}if(errors.length===1)throw errors[0];if(errors.length>1)throw new AggregateError(errors,`${errors.length} after-update callbacks failed.`);return}const held=this.deferredAfterUpdate??=new Map;for(const[heldKey,heldCallback]of due)held.has(heldKey)||held.set(heldKey,heldCallback)}))}localize(key,fallback,values){let effectiveLocale;const message=resolveLyraStringWithLocale(()=>effectiveLocale??=this.effectiveMessageLocale,key,this.strings,fallback,values,trustedLyraDefaultStrings(this.constructor.defaultStrings)),locale=effectiveLocale??peekLyraLocale(this);return(effectiveLocale===void 0||this.locale)&&recordInheritedLocaleRead(this,locale),locale!==void 0&&(this.lastLocalizedLocale=locale,this.isConnected||(this.lastLocalizedCatalogVersion=lyraLocaleCatalogVersion(locale)),this.ensureLocaleSubscription()),message}get effectiveMessageLocale(){const locale=resolveLyraLocaleWithHostOverride(this,this.locale);return this.locale||(recordInheritedLocaleRead(this,locale),this.ensureLocaleSubscription()),locale}get effectiveLocale(){return resolveIntlLocale(this.effectiveMessageLocale)}get effectiveIntlLocale(){return this.effectiveLocale}get effectiveDirection(){const direction=resolveLyraDirection(this);return recordInheritedDirectionRead(this,direction),direction}addEventListener(type,listener,options){super.addEventListener(type,listener,options)}removeEventListener(type,listener,options){super.removeEventListener(type,listener,options)}emit(name,...args){const[detail,options]=args,ownerDocument=this.ownerDocument;let CustomEventCtor=ownerDocument?.defaultView?.CustomEvent;if(!CustomEventCtor&&ownerDocument)try{const candidate=ownerDocument.createEvent("CustomEvent").constructor;typeof candidate=="function"&&(CustomEventCtor=candidate)}catch{}CustomEventCtor??=globalThis.CustomEvent;const support=collectionSupportFor(this),event=new CustomEventCtor(name,{detail:detail===void 0?null:support?support.snapshotEvent(this,name,detail):detail,bubbles:!0,composed:!0,cancelable:options?.cancelable??!1});return this.dispatchEvent(event),event}}__decorate([property({reflect:!0})],LyraElement.prototype,"locale",void 0),__decorate([property({attribute:!1})],LyraElement.prototype,"strings",null);export{FORM_CONTROL_LABEL_FACTORY,LyraElement,SEED_FIRST_RENDER_STATE,SLOT_PRESENCE_UNRESOLVED,registerDeprecatedAliasSupport,registerFormControlLabelSupport};
|
|
3
|
+
`)),cache.set(original,sheet)),sheet});root.adoptedStyleSheets=[...replacements,...retained],this.installedComponentSheets=replacements}}connectedCallback(){claimDocumentRuntime(this.ownerDocument),this.hydratingServerShadow??=!this.hasUpdated&&this.shadowRoot!==null,ensureLyraTokens(this),super.connectedCallback(),warnUnknownAttributes(this),warnThemeScopeUsage(this),recordLyraOwnerDocumentConnection(this),trackInputModality(this.ownerDocument),enableLyraLocaleCache(this),invalidateLyraLocaleCache(this),this.stopInheritedContextObservation?.(),this.stopInheritedContextObservation=observeInheritedContext(this),this.localeSubscriptionNeeded&&this.ensureLocaleSubscription(),this.lastLocalizedCatalogVersion!==void 0&&lyraLocaleCatalogVersion(resolveLyraLocale(this))!==this.lastLocalizedCatalogVersion&&this.requestUpdate();const deferred=this.deferredAfterUpdate;if(deferred){this.deferredAfterUpdate=void 0;for(const[key,callback]of deferred)this.scheduleAfterUpdate(callback,key)}}disconnectedCallback(){this.pendingLoadController?.abort(),this.pendingLoadController=void 0,this.lastLocalizedLocale!==void 0&&(this.lastLocalizedCatalogVersion=lyraLocaleCatalogVersion(this.lastLocalizedLocale)),this.stopLocaleSubscription?.(),this.stopLocaleSubscription=void 0,this.stopInheritedContextObservation?.(),this.stopInheritedContextObservation=void 0,invalidateLyraLocaleCache(this),super.disconnectedCallback()}adoptedCallback(){this.restoreAdoptedComponentStyles(),this.stopLocaleSubscription?.(),this.stopLocaleSubscription=void 0,invalidateLyraLocaleCache(this),this.isConnected&&this.localeSubscriptionNeeded&&this.ensureLocaleSubscription()}firstUpdated(changedProperties){super.firstUpdated(changedProperties),!(typeof Node>"u")&&this.autofocus&&(hasOwnAutofocusAccessor(this)||this.focus!==HTMLElement.prototype.focus&&this.scheduleAfterUpdate(()=>this.focus(),"lr-global-autofocus"))}requestUpdate(...args){invalidateLyraLocaleCache(this),super.requestUpdate(...args),deprecatedAliasSyncHook?.(this,args[0],args[1])}performUpdate(){beginInheritedContextUpdate(this);try{super.performUpdate()}finally{finishInheritedContextUpdate(this)}}update(changedProperties){super.update(changedProperties),markInheritedContextUpdateRendered(this)}ensureLocaleSubscription(){this.localeSubscriptionNeeded=!0,!(!this.isConnected||this.stopLocaleSubscription)&&(this.stopLocaleSubscription=subscribeLyraLocaleForHost(this))}attributeChangedCallback(name,oldValue,value){const directionHostAttribute=oldValue!==value&&DIRECTION_HOST_ATTRIBUTES.includes(name);directionHostAttribute&&queueInheritedDirectionChange(this,name==="slot"),oldValue!==value&&this.isConnected&&SCOPE_HOST_ATTRIBUTES.includes(name)&&ensureLyraTokens(this);const finishAliasWarning=oldValue!==value?deprecatedAliasAttributeHook?.(this,name):void 0;super.attributeChangedCallback(name,oldValue,value),finishAliasWarning?.(),oldValue!==value&&REACTIVE_HOST_ATTRIBUTES.includes(name)?this.requestUpdate():directionHostAttribute&&invalidateLyraLocaleCache(this)}seedFirstRenderState(seed){this.hasUpdated||this[SEED_FIRST_RENDER_STATE](seed)}[SEED_FIRST_RENDER_STATE](seed){if(typeof Node>"u")return;if(!this.hydratingServerShadow){seed();return}const pending=this.deferredFirstRenderSeeds??=new Set;pending.add(seed),!(pending.size>1)&&this.updateComplete.then(()=>{setTimeout(()=>{this.hydratingServerShadow=!1;const seeds=this.deferredFirstRenderSeeds;this.deferredFirstRenderSeeds=void 0;for(const deferred of seeds??[])deferred();this.requestUpdate()},0)},()=>{this.hydratingServerShadow=!1,this.deferredFirstRenderSeeds=void 0})}updateBrowserDerivedState(update){this[SEED_FIRST_RENDER_STATE](update)}renderSlotPresence(present){return present||this[SLOT_PRESENCE_UNRESOLVED]()}[SLOT_PRESENCE_UNRESOLVED](){return typeof Node>"u"||this.hydratingServerShadow===!0}beginAbortableLoad(){this.pendingLoadController?.abort(),this.pendingLoadController=void 0;const AbortControllerCtor=this.ownerDocument?.defaultView?.AbortController;if(AbortControllerCtor)return this.pendingLoadController=new AbortControllerCtor,this.pendingLoadController.signal}scheduleAfterUpdate(callback,key="load"){const pending=this.afterUpdateCallbacks??=new Map;pending.has(key)||(pending.set(key,callback),!(pending.size>1)&&queueMicrotask(()=>{const due=this.afterUpdateCallbacks;if(this.afterUpdateCallbacks=void 0,!due)return;if(this.isConnected){const errors=[];for(const due_callback of due.values())try{due_callback()}catch(error){errors.push(error)}if(errors.length===1)throw errors[0];if(errors.length>1)throw new AggregateError(errors,`${errors.length} after-update callbacks failed.`);return}const held=this.deferredAfterUpdate??=new Map;for(const[heldKey,heldCallback]of due)held.has(heldKey)||held.set(heldKey,heldCallback)}))}localize(key,fallback,values){let effectiveLocale;const message=resolveLyraStringWithLocale(()=>effectiveLocale??=this.effectiveMessageLocale,key,this.strings,fallback,values,trustedLyraDefaultStrings(this.constructor.defaultStrings)),locale=effectiveLocale??peekLyraLocale(this);return(effectiveLocale===void 0||this.locale)&&recordInheritedLocaleRead(this,locale),locale!==void 0&&(this.lastLocalizedLocale=locale,this.isConnected||(this.lastLocalizedCatalogVersion=lyraLocaleCatalogVersion(locale)),this.ensureLocaleSubscription()),message}get effectiveMessageLocale(){const locale=resolveLyraLocaleWithHostOverride(this,this.locale);return this.locale||(recordInheritedLocaleRead(this,locale),this.ensureLocaleSubscription()),locale}get effectiveLocale(){return resolveIntlLocale(this.effectiveMessageLocale)}get effectiveIntlLocale(){return this.effectiveLocale}get effectiveDirection(){const direction=resolveLyraDirection(this);return recordInheritedDirectionRead(this,direction),direction}addEventListener(type,listener,options){super.addEventListener(type,listener,options)}removeEventListener(type,listener,options){super.removeEventListener(type,listener,options)}emit(name,...args){const[detail,options]=args,ownerDocument=this.ownerDocument;let CustomEventCtor=ownerDocument?.defaultView?.CustomEvent;if(!CustomEventCtor&&ownerDocument)try{const candidate=ownerDocument.createEvent("CustomEvent").constructor;typeof candidate=="function"&&(CustomEventCtor=candidate)}catch{}CustomEventCtor??=globalThis.CustomEvent;const support=collectionSupportFor(this),event=new CustomEventCtor(name,{detail:detail===void 0?null:support?support.snapshotEvent(this,name,detail):detail,bubbles:!0,composed:!0,cancelable:options?.cancelable??!1});return this.dispatchEvent(event),event}}__decorate([property({reflect:!0})],LyraElement.prototype,"locale",void 0),__decorate([property({attribute:!1})],LyraElement.prototype,"strings",null);export{FORM_CONTROL_LABEL_FACTORY,LyraElement,SEED_FIRST_RENDER_STATE,SLOT_PRESENCE_UNRESOLVED,registerDeprecatedAliasSupport,registerFormControlLabelSupport};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{composedParentElement,deepActiveElementIn}from"./active-element.js";import{tag}from"./prefix.js";const SHARED_LIVE_REGION_ATTRIBUTE=`data-${tag("live-region")}`;function isPageHelperRegion(element){return element.localName===tag("toast")||element.hasAttribute(SHARED_LIVE_REGION_ATTRIBUTE)}const contexts=new WeakMap;function registerNativeModalContext(modal,contentHost,mountTarget=contentHost){const context={contentHost,mountTarget};return contexts.set(modal,context),forgetNativeModalProbe(modal.ownerDocument),()=>{contexts.get(modal)===context&&contexts.delete(modal),forgetNativeModalProbe(modal.ownerDocument)}}const probes=new WeakMap,focusWatchedDocuments=new WeakSet;function forgetNativeModalProbe(doc){doc&&probes.delete(doc)}function forgetProbeOnFocusChange(doc){if(focusWatchedDocuments.has(doc))return;focusWatchedDocuments.add(doc);const forget=()=>{probes.delete(doc)};doc.addEventListener("focusin",forget,!0),doc.addEventListener("focusout",forget,!0)}function isNativeModal(dialog){try{return dialog.isConnected&&dialog.matches(":modal")}catch{return!1}}function getNativeModalMountTarget(modal){return contexts.get(modal)?.mountTarget??modal}function modalAncestor(element){for(let current=element;current;current=composedParentElement(current))if(current.localName==="dialog")try{if(current.matches(":modal"))return current}catch{return null}return null}function mayHaveNativeModal(doc){const roots=[doc];let budget=4096;for(;roots.length>0;){const root=roots.pop(),walker=doc.createTreeWalker(root,1);let node;for(;node=walker.nextNode();){if(--budget<0)return!0;const element=node;if(element.localName==="dialog")try{if(element.matches(":modal"))return!0}catch{return!1}element.shadowRoot&&roots.push(element.shadowRoot)}}return!1}function getActiveNativeModal(doc){if(!doc)return null;const remembered=probes.get(doc);if(remembered&&(remembered.modal===null||isNativeModal(remembered.modal)))return remembered.modal;const probe={modal:probeActiveNativeModal(doc)};return probes.set(doc,probe),forgetProbeOnFocusChange(doc),Promise.resolve().then(()=>{probes.get(doc)===probe&&probes.delete(doc)}),probe.modal}function probeActiveNativeModal(doc){const focused=modalAncestor(deepActiveElementIn(doc));if(typeof doc.elementFromPoint!="function")return focused;if(!focused&&!mayHaveNativeModal(doc))return null;const width=doc.documentElement.clientWidth,height=doc.documentElement.clientHeight,points=[[0,0],[width/2,height/2],[Math.max(0,width-1),Math.max(0,height-1)]];for(const[x,y]of points){let hit=doc.elementFromPoint(x,y);const visited=new Set;for(;hit?.shadowRoot&&!visited.has(hit);){visited.add(hit);const inner=hit.shadowRoot.elementFromPoint?.(x,y);if(!inner||inner===hit)break;hit=inner}const modal=modalAncestor(hit);if(modal)return modal}return focused}function isInNativeModalContext(source,modal){if(source===contexts.get(modal)?.contentHost)return!0;for(let current=source;current;current=composedParentElement(current))if(current===modal)return!0;return!1}export{SHARED_LIVE_REGION_ATTRIBUTE,getActiveNativeModal,getNativeModalMountTarget,isInNativeModalContext,isPageHelperRegion,registerNativeModalContext};
|
|
1
|
+
import{composedParentElement,deepActiveElementIn}from"./active-element.js";import{tag}from"./prefix.js";import{claimDocumentRuntime}from"./runtime-diagnostics.js";const SHARED_LIVE_REGION_ATTRIBUTE=`data-${tag("live-region")}`;function isPageHelperRegion(element){return element.localName===tag("toast")||element.hasAttribute(SHARED_LIVE_REGION_ATTRIBUTE)}const contexts=new WeakMap;function registerNativeModalContext(modal,contentHost,mountTarget=contentHost){claimDocumentRuntime(modal.ownerDocument);const context={contentHost,mountTarget};return contexts.set(modal,context),forgetNativeModalProbe(modal.ownerDocument),()=>{contexts.get(modal)===context&&contexts.delete(modal),forgetNativeModalProbe(modal.ownerDocument)}}const probes=new WeakMap,focusWatchedDocuments=new WeakSet;function forgetNativeModalProbe(doc){doc&&probes.delete(doc)}function forgetProbeOnFocusChange(doc){if(focusWatchedDocuments.has(doc))return;focusWatchedDocuments.add(doc);const forget=()=>{probes.delete(doc)};doc.addEventListener("focusin",forget,!0),doc.addEventListener("focusout",forget,!0)}function isNativeModal(dialog){try{return dialog.isConnected&&dialog.matches(":modal")}catch{return!1}}function getNativeModalMountTarget(modal){return contexts.get(modal)?.mountTarget??modal}function modalAncestor(element){for(let current=element;current;current=composedParentElement(current))if(current.localName==="dialog")try{if(current.matches(":modal"))return current}catch{return null}return null}function mayHaveNativeModal(doc){const roots=[doc];let budget=4096;for(;roots.length>0;){const root=roots.pop(),walker=doc.createTreeWalker(root,1);let node;for(;node=walker.nextNode();){if(--budget<0)return!0;const element=node;if(element.localName==="dialog")try{if(element.matches(":modal"))return!0}catch{return!1}element.shadowRoot&&roots.push(element.shadowRoot)}}return!1}function getActiveNativeModal(doc){if(!doc)return null;claimDocumentRuntime(doc);const remembered=probes.get(doc);if(remembered&&(remembered.modal===null||isNativeModal(remembered.modal)))return remembered.modal;const probe={modal:probeActiveNativeModal(doc)};return probes.set(doc,probe),forgetProbeOnFocusChange(doc),Promise.resolve().then(()=>{probes.get(doc)===probe&&probes.delete(doc)}),probe.modal}function probeActiveNativeModal(doc){const focused=modalAncestor(deepActiveElementIn(doc));if(typeof doc.elementFromPoint!="function")return focused;if(!focused&&!mayHaveNativeModal(doc))return null;const width=doc.documentElement.clientWidth,height=doc.documentElement.clientHeight,points=[[0,0],[width/2,height/2],[Math.max(0,width-1),Math.max(0,height-1)]];for(const[x,y]of points){let hit=doc.elementFromPoint(x,y);const visited=new Set;for(;hit?.shadowRoot&&!visited.has(hit);){visited.add(hit);const inner=hit.shadowRoot.elementFromPoint?.(x,y);if(!inner||inner===hit)break;hit=inner}const modal=modalAncestor(hit);if(modal)return modal}return focused}function isInNativeModalContext(source,modal){if(source===contexts.get(modal)?.contentHost)return!0;for(let current=source;current;current=composedParentElement(current))if(current===modal)return!0;return!1}export{SHARED_LIVE_REGION_ATTRIBUTE,getActiveNativeModal,getNativeModalMountTarget,isInNativeModalContext,isPageHelperRegion,registerNativeModalContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getActiveNativeModal,isPageHelperRegion}from"./native-modal-context.js";import{activateNonmodalOverlay}from"./nonmodal-overlay-manager.js";import{RenderedStateController}from"./rendered-state.js";import{lockScroll}from"./scroll-lock.js";import{acquireOverlayRoutingSuspension,activateOverlayStack,composedContains,observeOverlayStack}from"./overlay-stack.js";const EMPTY_STACK={entries:[]},modalStates=new WeakMap;function authoredOverlayInert(host){const state=modalStates.get(host.ownerDocument);if(!state)return host.inert;const records=state.observer?.takeRecords();return records?.length&&handleMutations(state,records),state.inerted.get(host)??host.inert}function modalStateFor(doc){const existing=modalStates.get(doc);if(existing)return existing;const state={document:doc,snapshot:EMPTY_STACK,registrations:0,externalModalSuspensions:new Set,inerted:new Map,pendingInertWrites:new Map,observedRoots:new Set,allowedParents:new Set,inertUpdateQueued:!1,started:!1};return modalStates.set(doc,state),state}function scheduleInertUpdate(state){state.inertUpdateQueued||(state.inertUpdateQueued=!0,queueMicrotask(()=>{state.inertUpdateQueued=!1,applyTopmostInert(state)}))}function pruneExternalModalSuspensions(state){let changed=!1;for(const entry of state.externalModalSuspensions)entry.root.isConnected&&entry.root.ownerDocument===state.document||(entry.active=!1,state.externalModalSuspensions.delete(entry),entry.releaseRouting(),changed=!0);return changed}function movesStackHost(state,record){for(const entry of state.snapshot.entries)for(const list of[record.addedNodes,record.removedNodes])for(const node of list)if(node.contains(entry.host))return!0;return!1}function handleMutations(state,records){const prunedExternalModal=pruneExternalModalSuspensions(state);let needsInertUpdate=prunedExternalModal;for(let index=0;index<records.length;index++){const record=records[index];if(!record)continue;if(record.type==="childList"){(state.allowedParents.has(record.target)||movesStackHost(state,record))&&(needsInertUpdate=!0);continue}if(record.attributeName==="open"){needsInertUpdate=!0;continue}const element=record.target;let nextRecord;for(let nextIndex=index+1;nextIndex<records.length;nextIndex++){const candidate=records[nextIndex];if(candidate?.type==="attributes"&&candidate.attributeName==="inert"&&candidate.target===element){nextRecord=candidate;break}}const newValue=nextRecord?nextRecord.oldValue!==null:element.hasAttribute("inert"),pending=state.pendingInertWrites.get(element);if(pending?.[0]===newValue){pending.shift(),pending.length===0&&state.pendingInertWrites.delete(element);continue}state.inerted.has(element)&&(state.inerted.set(element,newValue),needsInertUpdate=!0)}needsInertUpdate&&(prunedExternalModal?applyTopmostInert(state):scheduleInertUpdate(state)),stopModalStateIfIdle(state)}const mutationObserverOptions={attributeFilter:["inert","open"],attributeOldValue:!0,attributes:!0,childList:!0,subtree:!0};function observeMutationRoot(state,root){!state.observer||state.observedRoots.has(root)||(state.observer.observe(root===state.document?state.document.documentElement:root,mutationObserverOptions),state.observedRoots.add(root))}function startModalState(state){if(state.started)return;state.started=!0;const Observer=state.document.defaultView?.MutationObserver??MutationObserver;state.observer=new Observer(records=>handleMutations(state,records)),observeMutationRoot(state,state.document),state.unsubscribeStack=observeOverlayStack(state.document,snapshot=>{state.snapshot=snapshot,applyTopmostInert(state)})}function stopModalState(state){if(state.started){state.started=!1,state.unsubscribeStack?.(),state.unsubscribeStack=void 0;for(const[element,intended]of state.inerted)element.inert=intended;state.inerted.clear(),state.observer?.disconnect(),state.observer=void 0,state.observedRoots.clear(),state.pendingInertWrites.clear(),state.snapshot=EMPTY_STACK}}function stopModalStateIfIdle(state){state.registrations===0&&state.externalModalSuspensions.size===0&&stopModalState(state)}function retainModalState(doc){const state=modalStateFor(doc);state.registrations++,startModalState(state);let active=!0;return()=>{active&&(active=!1,state.registrations--,stopModalStateIfIdle(state))}}function setInertByManager(state,element,value){if(element.inert!==value){if(state.observer&&state.observedRoots.has(element.getRootNode())){let pending=state.pendingInertWrites.get(element);pending||(pending=[],state.pendingInertWrites.set(element,pending)),pending.push(value)}else state.pendingInertWrites.delete(element);element.inert=value}}function inertElement(state,element,desired){if(!("inert"in element)||element.localName==="dialog"&&element.matches(":modal")||isPageHelperRegion(element))return;const htmlElement=element;desired.add(htmlElement),state.inerted.has(htmlElement)||state.inerted.set(htmlElement,htmlElement.inert),setInertByManager(state,htmlElement,!0)}function pathParent(element){return element.assignedSlot??element.parentNode}function parentPathElement(parent){return parent.nodeType===Node.ELEMENT_NODE?parent:parent.host??null}function composedChildren(parent){return parent.localName==="slot"?parent.assignedElements({flatten:!0}):"children"in parent?Array.from(parent.children):[]}function isShadowRoot(node){return node.nodeType===11&&"host"in node}function addAllowedPath(allowed,host,doc){let current=host;for(;current&¤t!==doc.body&¤t!==doc.documentElement;){const parent=pathParent(current);if(!parent)break;let children=allowed.get(parent);children||(children=new Set,allowed.set(parent,children)),children.add(current),current=parentPathElement(parent)}}function modalAllowedRoot(entry,doc){const explicit=entry.modalRoot?.()??null;return explicit?.isConnected&&explicit.ownerDocument===doc?explicit:entry.host}function applyTopmostInert(state){let modalIndex=-1;for(let index=state.snapshot.entries.length-1;index>=0;index--)if(state.snapshot.entries[index]?.modal){modalIndex=index;break}const desired=new Set;if(state.allowedParents=new Set,state.externalModalSuspensions.size>0){const allowed=new Map;for(const suspension of state.externalModalSuspensions)addAllowedPath(allowed,suspension.root,state.document);inertOutsideAllowedPaths(state,allowed,desired)}else if(modalIndex!==-1){const allowed=new Map,interactiveRoots=[];for(const entry of state.snapshot.entries.slice(modalIndex)){if(!entry.host.isConnected||interactiveRoots.some(root=>composedContains(root,entry.host)))continue;const modalRoot=modalAllowedRoot(entry,state.document);addAllowedPath(allowed,modalRoot,state.document),interactiveRoots.push(modalRoot);for(const root of entry.auxiliaryRoots?.()??[])root.isConnected&&root.ownerDocument===state.document&&(addAllowedPath(allowed,root,state.document),interactiveRoots.push(root))}const nativeModal=getActiveNativeModal(state.document);nativeModal&&addAllowedPath(allowed,nativeModal,state.document),inertOutsideAllowedPaths(state,allowed,desired)}for(const[element,intended]of state.inerted)desired.has(element)||(setInertByManager(state,element,intended),state.inerted.delete(element))}function inertOutsideAllowedPaths(state,allowed,desired){for(const[parent,children]of allowed){state.allowedParents.add(parent),isShadowRoot(parent)&&observeMutationRoot(state,parent);for(const child of composedChildren(parent))children.has(child)||inertElement(state,child,desired)}}function activateOverlay(options){if(options.modal===!1&&options.trapFocus===!1&&!options.suspendWhenUnrendered&&!options.lockScroll)return activateNonmodalOverlay(options);const modal=options.modal!==!1;let releaseModalState,releaseScrollLock,renderedState,explicitlySuspended=!1;const coreHandle=activateOverlayStack({...options,initiallySuspended:options.suspendWhenUnrendered===!0,modal,trapFocus:options.trapFocus!==!1,onRegistered:doc=>{modal&&(releaseModalState=retainModalState(doc)),options.lockScroll&&(releaseScrollLock=lockScroll(doc))},onUnregistered:(_doc,deferResourceRelease)=>{const releaseModal=releaseModalState;releaseModalState=void 0;const release=releaseScrollLock;releaseScrollLock=void 0;const deferredRelease=release&&deferResourceRelease?release:void 0;return release&&!deferResourceRelease&&release(),releaseModal?.(),deferredRelease},onDeactivate:()=>renderedState?.stop()});return coreHandle.isActive()?(options.suspendWhenUnrendered&&(renderedState=new RenderedStateController(options.host,options.panel,rendered=>{if(!coreHandle.isActive())return;if(!rendered||explicitlySuspended){coreHandle.suspend();return}const wasTopmost=coreHandle.isTopmost();coreHandle.resume(),!wasTopmost&&coreHandle.isTopmost()&&queueMicrotask(()=>coreHandle.focusInitial())}),renderedState.start()),{focusInitial:()=>{renderedState?.check(),coreHandle.focusInitial()},focusAutofocus:()=>(renderedState?.check(),coreHandle.focusAutofocus()),updateRestoreFocusTo:target=>coreHandle.updateRestoreFocusTo(target),deactivate:deactivateOptions=>coreHandle.deactivate(deactivateOptions),suspend:()=>{explicitlySuspended=!0,coreHandle.suspend()},resume:()=>{explicitlySuspended=!1,!(renderedState&&!renderedState.check())&&coreHandle.resume()},isTopmost:()=>(renderedState?.check(),coreHandle.isTopmost()),isActive:()=>coreHandle.isActive(),dismissBackdrop:()=>(renderedState?.check(),coreHandle.dismissBackdrop())}):coreHandle}function suspendLyraModalsFor(externalModal){if(!externalModal.isConnected)return()=>{};const state=modalStateFor(externalModal.ownerDocument);startModalState(state);const entry={root:externalModal,active:!0,releaseRouting:()=>{},state};return state.externalModalSuspensions.add(entry),entry.releaseRouting=acquireOverlayRoutingSuspension(state.document),applyTopmostInert(state),()=>{entry.active&&(entry.active=!1,entry.state.externalModalSuspensions.delete(entry),entry.releaseRouting(),applyTopmostInert(entry.state),stopModalStateIfIdle(entry.state))}}import{collectAutofocusElements,collectFocusableElements,composedContains as composedContains2,deepActiveElement}from"./overlay-stack.js";export{activateOverlay,authoredOverlayInert,collectAutofocusElements,collectFocusableElements,composedContains2 as composedContains,deepActiveElement,suspendLyraModalsFor};
|
|
1
|
+
import{claimDocumentRuntime}from"./runtime-diagnostics.js";import{getActiveNativeModal,isPageHelperRegion}from"./native-modal-context.js";import{activateNonmodalOverlay}from"./nonmodal-overlay-manager.js";import{RenderedStateController}from"./rendered-state.js";import{lockScroll}from"./scroll-lock.js";import{acquireOverlayRoutingSuspension,activateOverlayStack,composedContains,observeOverlayStack}from"./overlay-stack.js";const EMPTY_STACK={entries:[]},modalStates=new WeakMap;function authoredOverlayInert(host){const state=modalStates.get(host.ownerDocument);if(!state)return host.inert;const records=state.observer?.takeRecords();return records?.length&&handleMutations(state,records),state.inerted.get(host)??host.inert}function modalStateFor(doc){claimDocumentRuntime(doc);const existing=modalStates.get(doc);if(existing)return existing;const state={document:doc,snapshot:EMPTY_STACK,registrations:0,externalModalSuspensions:new Set,inerted:new Map,pendingInertWrites:new Map,observedRoots:new Set,allowedParents:new Set,inertUpdateQueued:!1,started:!1};return modalStates.set(doc,state),state}function scheduleInertUpdate(state){state.inertUpdateQueued||(state.inertUpdateQueued=!0,queueMicrotask(()=>{state.inertUpdateQueued=!1,applyTopmostInert(state)}))}function pruneExternalModalSuspensions(state){let changed=!1;for(const entry of state.externalModalSuspensions)entry.root.isConnected&&entry.root.ownerDocument===state.document||(entry.active=!1,state.externalModalSuspensions.delete(entry),entry.releaseRouting(),changed=!0);return changed}function movesStackHost(state,record){for(const entry of state.snapshot.entries)for(const list of[record.addedNodes,record.removedNodes])for(const node of list)if(node.contains(entry.host))return!0;return!1}function handleMutations(state,records){const prunedExternalModal=pruneExternalModalSuspensions(state);let needsInertUpdate=prunedExternalModal;for(let index=0;index<records.length;index++){const record=records[index];if(!record)continue;if(record.type==="childList"){(state.allowedParents.has(record.target)||movesStackHost(state,record))&&(needsInertUpdate=!0);continue}if(record.attributeName==="open"){needsInertUpdate=!0;continue}const element=record.target;let nextRecord;for(let nextIndex=index+1;nextIndex<records.length;nextIndex++){const candidate=records[nextIndex];if(candidate?.type==="attributes"&&candidate.attributeName==="inert"&&candidate.target===element){nextRecord=candidate;break}}const newValue=nextRecord?nextRecord.oldValue!==null:element.hasAttribute("inert"),pending=state.pendingInertWrites.get(element);if(pending?.[0]===newValue){pending.shift(),pending.length===0&&state.pendingInertWrites.delete(element);continue}state.inerted.has(element)&&(state.inerted.set(element,newValue),needsInertUpdate=!0)}needsInertUpdate&&(prunedExternalModal?applyTopmostInert(state):scheduleInertUpdate(state)),stopModalStateIfIdle(state)}const mutationObserverOptions={attributeFilter:["inert","open"],attributeOldValue:!0,attributes:!0,childList:!0,subtree:!0};function observeMutationRoot(state,root){!state.observer||state.observedRoots.has(root)||(state.observer.observe(root===state.document?state.document.documentElement:root,mutationObserverOptions),state.observedRoots.add(root))}function startModalState(state){if(state.started)return;state.started=!0;const Observer=state.document.defaultView?.MutationObserver??MutationObserver;state.observer=new Observer(records=>handleMutations(state,records)),observeMutationRoot(state,state.document),state.unsubscribeStack=observeOverlayStack(state.document,snapshot=>{state.snapshot=snapshot,applyTopmostInert(state)})}function stopModalState(state){if(state.started){state.started=!1,state.unsubscribeStack?.(),state.unsubscribeStack=void 0;for(const[element,intended]of state.inerted)element.inert=intended;state.inerted.clear(),state.observer?.disconnect(),state.observer=void 0,state.observedRoots.clear(),state.pendingInertWrites.clear(),state.snapshot=EMPTY_STACK}}function stopModalStateIfIdle(state){state.registrations===0&&state.externalModalSuspensions.size===0&&stopModalState(state)}function retainModalState(doc){const state=modalStateFor(doc);state.registrations++,startModalState(state);let active=!0;return()=>{active&&(active=!1,state.registrations--,stopModalStateIfIdle(state))}}function setInertByManager(state,element,value){if(element.inert!==value){if(state.observer&&state.observedRoots.has(element.getRootNode())){let pending=state.pendingInertWrites.get(element);pending||(pending=[],state.pendingInertWrites.set(element,pending)),pending.push(value)}else state.pendingInertWrites.delete(element);element.inert=value}}function inertElement(state,element,desired){if(!("inert"in element)||element.localName==="dialog"&&element.matches(":modal")||isPageHelperRegion(element))return;const htmlElement=element;desired.add(htmlElement),state.inerted.has(htmlElement)||state.inerted.set(htmlElement,htmlElement.inert),setInertByManager(state,htmlElement,!0)}function pathParent(element){return element.assignedSlot??element.parentNode}function parentPathElement(parent){return parent.nodeType===Node.ELEMENT_NODE?parent:parent.host??null}function composedChildren(parent){return parent.localName==="slot"?parent.assignedElements({flatten:!0}):"children"in parent?Array.from(parent.children):[]}function isShadowRoot(node){return node.nodeType===11&&"host"in node}function addAllowedPath(allowed,host,doc){let current=host;for(;current&¤t!==doc.body&¤t!==doc.documentElement;){const parent=pathParent(current);if(!parent)break;let children=allowed.get(parent);children||(children=new Set,allowed.set(parent,children)),children.add(current),current=parentPathElement(parent)}}function modalAllowedRoot(entry,doc){const explicit=entry.modalRoot?.()??null;return explicit?.isConnected&&explicit.ownerDocument===doc?explicit:entry.host}function applyTopmostInert(state){let modalIndex=-1;for(let index=state.snapshot.entries.length-1;index>=0;index--)if(state.snapshot.entries[index]?.modal){modalIndex=index;break}const desired=new Set;if(state.allowedParents=new Set,state.externalModalSuspensions.size>0){const allowed=new Map;for(const suspension of state.externalModalSuspensions)addAllowedPath(allowed,suspension.root,state.document);inertOutsideAllowedPaths(state,allowed,desired)}else if(modalIndex!==-1){const allowed=new Map,interactiveRoots=[];for(const entry of state.snapshot.entries.slice(modalIndex)){if(!entry.host.isConnected||interactiveRoots.some(root=>composedContains(root,entry.host)))continue;const modalRoot=modalAllowedRoot(entry,state.document);addAllowedPath(allowed,modalRoot,state.document),interactiveRoots.push(modalRoot);for(const root of entry.auxiliaryRoots?.()??[])root.isConnected&&root.ownerDocument===state.document&&(addAllowedPath(allowed,root,state.document),interactiveRoots.push(root))}const nativeModal=getActiveNativeModal(state.document);nativeModal&&addAllowedPath(allowed,nativeModal,state.document),inertOutsideAllowedPaths(state,allowed,desired)}for(const[element,intended]of state.inerted)desired.has(element)||(setInertByManager(state,element,intended),state.inerted.delete(element))}function inertOutsideAllowedPaths(state,allowed,desired){for(const[parent,children]of allowed){state.allowedParents.add(parent),isShadowRoot(parent)&&observeMutationRoot(state,parent);for(const child of composedChildren(parent))children.has(child)||inertElement(state,child,desired)}}function activateOverlay(options){if(options.modal===!1&&options.trapFocus===!1&&!options.suspendWhenUnrendered&&!options.lockScroll)return activateNonmodalOverlay(options);const modal=options.modal!==!1;let releaseModalState,releaseScrollLock,renderedState,explicitlySuspended=!1;const coreHandle=activateOverlayStack({...options,initiallySuspended:options.suspendWhenUnrendered===!0,modal,trapFocus:options.trapFocus!==!1,onRegistered:doc=>{modal&&(releaseModalState=retainModalState(doc)),options.lockScroll&&(releaseScrollLock=lockScroll(doc))},onUnregistered:(_doc,deferResourceRelease)=>{const releaseModal=releaseModalState;releaseModalState=void 0;const release=releaseScrollLock;releaseScrollLock=void 0;const deferredRelease=release&&deferResourceRelease?release:void 0;return release&&!deferResourceRelease&&release(),releaseModal?.(),deferredRelease},onDeactivate:()=>renderedState?.stop()});return coreHandle.isActive()?(options.suspendWhenUnrendered&&(renderedState=new RenderedStateController(options.host,options.panel,rendered=>{if(!coreHandle.isActive())return;if(!rendered||explicitlySuspended){coreHandle.suspend();return}const wasTopmost=coreHandle.isTopmost();coreHandle.resume(),!wasTopmost&&coreHandle.isTopmost()&&queueMicrotask(()=>coreHandle.focusInitial())}),renderedState.start()),{focusInitial:()=>{renderedState?.check(),coreHandle.focusInitial()},focusAutofocus:()=>(renderedState?.check(),coreHandle.focusAutofocus()),updateRestoreFocusTo:target=>coreHandle.updateRestoreFocusTo(target),deactivate:deactivateOptions=>coreHandle.deactivate(deactivateOptions),suspend:()=>{explicitlySuspended=!0,coreHandle.suspend()},resume:()=>{explicitlySuspended=!1,!(renderedState&&!renderedState.check())&&coreHandle.resume()},isTopmost:()=>(renderedState?.check(),coreHandle.isTopmost()),isActive:()=>coreHandle.isActive(),dismissBackdrop:()=>(renderedState?.check(),coreHandle.dismissBackdrop())}):coreHandle}function suspendLyraModalsFor(externalModal){if(!externalModal.isConnected)return()=>{};const state=modalStateFor(externalModal.ownerDocument);startModalState(state);const entry={root:externalModal,active:!0,releaseRouting:()=>{},state};return state.externalModalSuspensions.add(entry),entry.releaseRouting=acquireOverlayRoutingSuspension(state.document),applyTopmostInert(state),()=>{entry.active&&(entry.active=!1,entry.state.externalModalSuspensions.delete(entry),entry.releaseRouting(),applyTopmostInert(entry.state),stopModalStateIfIdle(entry.state))}}import{collectAutofocusElements,collectFocusableElements,composedContains as composedContains2,deepActiveElement}from"./overlay-stack.js";export{activateOverlay,authoredOverlayInert,collectAutofocusElements,collectFocusableElements,composedContains2 as composedContains,deepActiveElement,suspendLyraModalsFor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const nextOrders=new WeakMap;function nextOrder(document){const order=nextOrders.get(document)??0;return nextOrders.set(document,order+1),order}function reserveOverlayOrder(document){let order=nextOrder(document);return destination=>{const reserved=destination===document?order:void 0;return order=void 0,reserved}}function takeOverlayOrder(document,reservation){return reservation?.(document)??nextOrder(document)}export{reserveOverlayOrder,takeOverlayOrder};
|
|
1
|
+
import{claimDocumentRuntime}from"./runtime-diagnostics.js";const nextOrders=new WeakMap;function nextOrder(document){const order=nextOrders.get(document)??0;return nextOrders.set(document,order+1),order}function reserveOverlayOrder(document){claimDocumentRuntime(document);let order=nextOrder(document);return destination=>{const reserved=destination===document?order:void 0;return order=void 0,reserved}}function takeOverlayOrder(document,reservation){return reservation?.(document)??nextOrder(document)}export{reserveOverlayOrder,takeOverlayOrder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getActiveNativeModal}from"./native-modal-context.js";import{takeOverlayOrder}from"./overlay-order.js";import{deepActiveElementIn}from"./active-element.js";import{composedContains,flattenedParentElement}from"./composed-tree.js";import{scheduleDeferredFocusReturn,cancelDeferredFocusReturn}from"./deferred-focus-return.js";import{collectComposedAutofocusElements,collectComposedFocusTargets,isComposedFocusAvailable}from"./focus-navigation.js";import{isHtmlElement}from"./dom-guards.js";import{leaseInlineStyleProperty}from"./style-property-lease.js";const STACK_PROPERTY="--lr-overlay-stack-index",STACK_BASE=1e3,STACK_STEP=2,states=new WeakMap,hostEntries=new WeakMap;function createInactiveOverlayHandle(){return{focusInitial:()=>{},focusAutofocus:()=>!1,updateRestoreFocusTo:()=>{},deactivate:()=>{},suspend:()=>{},resume:()=>{},isTopmost:()=>!1,isActive:()=>!1,dismissBackdrop:()=>!1}}function deepActiveElement(doc=typeof document>"u"?void 0:document){return deepActiveElementIn(doc)}function collectFocusableElements(root){return collectComposedFocusTargets(root).elements}function collectAutofocusElements(root){return collectComposedAutofocusElements(root).elements}function tryFocus(target){if(!target||!isComposedFocusAvailable(target))return!1;target.focus();const active=deepActiveElement(target.ownerDocument);return active===target||composedContains(target,active)}function focusAutofocusTarget(panel){for(const candidate of collectAutofocusElements(panel)){if(tryFocus(candidate))return!0;for(const inner of collectFocusableElements(candidate))if(tryFocus(inner))return!0}return!1}function auxiliaryRoots(entry){const panel=entry.options.panel();return[...new Set(entry.options.auxiliaryRoots?.()??[])].filter(root=>root.isConnected&&root.ownerDocument===entry.state.document&&(!panel||!composedContains(panel,root)))}function entryContainsFocus(entry,panel,active){return entry.options.auxiliaryRoots?active!==null&&isComposedFocusAvailable(active)&&[panel,...auxiliaryRoots(entry)].some(root=>composedContains(root,active)):composedContains(panel,active)}function entryTabStops(entry,panel){const roots=entry.options.auxiliaryRoots?[panel,...auxiliaryRoots(entry)]:[panel];return[...new Set(roots.flatMap(root=>collectComposedFocusTargets(root,{browserTabOrder:!0}).elements))]}function composedPath(element){const path=[];for(let current=element;current;current=flattenedParentElement(current))path.unshift(current);return path}function precedes(first,second){let index=0;for(;first[index]&&first[index]===second[index];)index+=1;return first[index]?!!(second[index]&&first[index].compareDocumentPosition(second[index])&4):!!second[index]}function focusEntry(entry,preserveCurrent=!0){const panel=entry.options.panel();if(!panel)return;const active=deepActiveElement(entry.state.document);if(preserveCurrent&&entryContainsFocus(entry,panel,active)||(entry.initialFocusDecision===void 0&&(entry.initialFocusDecision=entry.options.beforeInitialFocus?.()!==!1),!entry.initialFocusDecision)||focusAutofocusTarget(panel))return;const preferred=entry.options.preferredInitialFocus?.()??null;if(!(preferred&&composedContains(panel,preferred)&&tryFocus(preferred))){for(const target of collectFocusableElements(panel))if(tryFocus(target))return;panel.focus()}}function handleTab(state,entry,event){const panel=entry.options.panel();if(!panel)return;const focusable=entryTabStops(entry,panel);if(focusable.length===0){event.preventDefault(),panel.focus();return}const active=deepActiveElement(state.document),first=focusable[0],last=focusable[focusable.length-1],activeIndex=active?focusable.indexOf(active):-1;if(activeIndex===-1){let target;const roots=entry.options.auxiliaryRoots?[panel,...auxiliaryRoots(entry)]:[panel];if(active&&roots.some(root=>composedContains(root,active))){const activePath=composedPath(active);if(event.shiftKey)for(let index=focusable.length-1;index>=0&&!target;index-=1)precedes(composedPath(focusable[index]),activePath)&&(target=focusable[index]);else target=focusable.find(stop=>precedes(activePath,composedPath(stop)));if(target&&target.tabIndex>=0&&!entry.options.auxiliaryRoots)return}event.preventDefault(),(target??(event.shiftKey?last:first)).focus()}else if(event.shiftKey&&active===first)event.preventDefault(),last.focus();else if(!event.shiftKey&&active===last)event.preventDefault(),first.focus();else{const next=focusable[activeIndex+(event.shiftKey?-1:1)];next&&(next.tabIndex<0||auxiliaryRoots(entry).length>0)&&(event.preventDefault(),next.focus())}}function nearestTrappingEntryBelowTop(state){for(let index=state.stack.length-2;index>=0;index-=1){const entry=state.stack[index];if(entry&&entry.options.trapFocus!==!1)return entry}}function snapshotFor(state){return{entries:state.stack.map(entry=>({host:entry.options.host,order:entry.stackOrder,modal:entry.options.modal,modalRoot:entry.options.modalRoot,auxiliaryRoots:entry.options.auxiliaryRoots}))}}function notifyStackObservers(state){if(state.observers.size===0)return;const snapshot=snapshotFor(state);for(const observer of state.observers)observer(snapshot)}function startState(state){state.started||(state.started=!0,state.document.addEventListener("keydown",state.onKeyDown))}function stopState(state){state.started&&(state.started=!1,state.document.removeEventListener("keydown",state.onKeyDown))}function stopStateIfIdle(state){state.stack.length===0&&stopState(state)}function createState(doc){const state={};return state.document=doc,state.stack=[],state.routingSuspensions=new Set,state.observers=new Set,state.started=!1,state.onKeyDown=event=>{if(event.defaultPrevented||event.isComposing||event.keyCode===229||state.routingSuspensions.size>0)return;const entry=state.stack[state.stack.length-1];if(!entry||event.key!=="Escape"&&event.key!=="Tab")return;const nativeModal=getActiveNativeModal(doc),panel=entry.options.panel();if(!(nativeModal&&(!panel||!composedContains(nativeModal,panel)))){if(event.key==="Escape")event.preventDefault(),entry.options.onEscape();else if(event.key==="Tab"){if(entry.options.trapFocus!==!1){handleTab(state,entry,event);return}entry.options.onTab?.();const trapping=nearestTrappingEntryBelowTop(state),trappingPanel=trapping?.options.panel();trapping&&trappingPanel&&!event.defaultPrevented&&(!nativeModal||composedContains(nativeModal,trappingPanel))&&entryContainsFocus(trapping,trappingPanel,deepActiveElement(doc))&&handleTab(state,trapping,event)}}},states.set(doc,state),state}function stateFor(doc){return states.get(doc)??createState(doc)}function observeOverlayStack(doc,observer){const state=stateFor(doc);return state.observers.add(observer),observer(snapshotFor(state)),()=>{state.observers.delete(observer)}}function acquireOverlayRoutingSuspension(doc){const state=stateFor(doc),token=Symbol();let active=!0;return state.routingSuspensions.add(token),()=>{active&&(active=!1,state.routingSuspensions.delete(token))}}function restoreStackStyle(entry){entry.stackStyleLease?.release(),entry.stackStyleLease=void 0}function updateStackStyles(state){state.stack.forEach((entry,index)=>{const value=String(STACK_BASE+index*STACK_STEP);entry.stackStyleLease?entry.stackStyleLease.set(value):entry.stackStyleLease=leaseInlineStyleProperty(entry.options.host,STACK_PROPERTY,value)})}function registerEntry(entry,state,preserveStackOrder=!1){if(entry.registered)return;startState(state),(!preserveStackOrder||entry.state!==state)&&(entry.stackOrder=takeOverlayOrder(state.document)),entry.state=state,entry.registered=!0,entry.options.onRegistered?.(state.document);const nextIndex=state.stack.findIndex(candidate=>candidate.stackOrder>entry.stackOrder);nextIndex===-1?state.stack.push(entry):state.stack.splice(nextIndex,0,entry),updateStackStyles(state),notifyStackObservers(state)}function unregisterEntry(entry,deferResourceRelease=!1){if(!entry.registered){const hasHigherEntry=entry.state.stack.some(candidate=>candidate.stackOrder>entry.stackOrder);return entry.state.routingSuspensions.size===0&&entry.wasTopmostOnSuspend&&!hasHigherEntry}const state=entry.state,index=state.stack.indexOf(entry),wasTopmost=state.routingSuspensions.size===0&&index===state.stack.length-1;return index!==-1&&state.stack.splice(index,1),entry.registered=!1,entry.wasTopmostOnSuspend=wasTopmost,entry.deferredResourceRelease=entry.options.onUnregistered?.(state.document,deferResourceRelease),restoreStackStyle(entry),updateStackStyles(state),notifyStackObservers(state),stopStateIfIdle(state),wasTopmost}function syncEntryRegistration(entry){if(!entry.active||entry.manuallySuspended){unregisterEntry(entry);return}const state=stateFor(entry.options.host.ownerDocument);registerEntry(entry,state,entry.state===state)}function validRestoreFocusElement(value,doc){return isHtmlElement(value)&&value.ownerDocument===doc?value:null}function resolveRestoreFocusTarget(entry){const source=entry.restoreFocusTo;if(typeof source!="function")return validRestoreFocusElement(source,entry.state.document);try{return validRestoreFocusElement(source(),entry.state.document)}catch{return null}}function rebaseReturnTargets(entry){for(const candidate of entry.state.stack){if(candidate===entry||candidate.stackOrder<=entry.stackOrder)continue;const candidateTarget=typeof candidate.restoreFocusTo=="function"?null:validRestoreFocusElement(candidate.restoreFocusTo,entry.state.document);candidateTarget&&composedContains(entry.options.host,candidateTarget)&&(candidate.restoreFocusTo=entry.restoreFocusTo)}}function restoreEntryFocus(entry){if(tryFocus(resolveRestoreFocusTarget(entry)))return;const next=entry.state.stack[entry.state.stack.length-1];next&&focusEntry(next,!1)}function deactivateEntry(entry,restoreFocus,deferResourceRelease=!1){if(!entry.active)return;const host=entry.options.host;cancelDeferredFocusReturn(host);const release=deactivateActiveEntry(entry,restoreFocus,deferResourceRelease);if(restoreFocus){const pass=entry.options.deferredReturn?.();pass&&scheduleDeferredFocusReturn({...pass,host})}return release}function deactivateActiveEntry(entry,restoreFocus,deferResourceRelease){const heldFocus=panelHoldsFocus(entry);rebaseReturnTargets(entry);const wasTopmost=unregisterEntry(entry,deferResourceRelease),deferredResourceRelease=entry.deferredResourceRelease;if(entry.deferredResourceRelease=void 0,entry.active=!1,entry.manuallySuspended=!1,entry.suspendGeneration++,entry.options.onDeactivate?.(),hostEntries.get(entry.options.host)===entry&&hostEntries.delete(entry.options.host),!wasTopmost)return deferredResourceRelease;if(restoreFocus)return restoreEntryFocus(entry),deferredResourceRelease;const next=entry.state.stack[entry.state.stack.length-1];if(!next)return deferredResourceRelease;if(heldFocus)focusEntry(next);else if(next.options.trapFocus){const doc=entry.state.document,active=deepActiveElement(doc);!entry.options.host.isConnected||active&&active!==doc.body&&active!==doc.documentElement?focusEntry(next):setTimeout(()=>{next.active&&next.registered&&entry.state.stack[entry.state.stack.length-1]===next&&focusEntry(next)},0)}return deferredResourceRelease}function panelHoldsFocus(entry){const panel=entry.options.panel();return panel!==null&&entryContainsFocus(entry,panel,deepActiveElement(entry.state.document))}function activateOverlayStack(options){cancelDeferredFocusReturn(options.host);const previous=hostEntries.get(options.host),inheritedReturnTarget=previous?.active?previous.restoreFocusTo:void 0;previous?.active&&previous.handle.deactivate({restoreFocus:!1});const doc=options.host.ownerDocument;if(!doc)return createInactiveOverlayHandle();const active=deepActiveElement(doc),captured=active&&typeof active.focus=="function"?active:null,entry={};return entry.options=options,entry.restoreFocusTo=options.restoreFocusTo!==void 0?options.restoreFocusTo:inheritedReturnTarget??captured,entry.active=!0,entry.registered=!1,entry.manuallySuspended=options.initiallySuspended===!0,entry.initialFocusDecision=void 0,entry.wasTopmostOnSuspend=!1,entry.suspendGeneration=0,entry.state=stateFor(doc),entry.stackOrder=takeOverlayOrder(doc,options.orderReservation),entry.handle={focusInitial:()=>{entry.active&&entry.registered&&entry.state.routingSuspensions.size===0&&entry.state.stack[entry.state.stack.length-1]===entry&&focusEntry(entry)},focusAutofocus:()=>{if(!entry.active||!entry.registered||entry.state.routingSuspensions.size>0)return!1;const panel=entry.options.panel();if(!panel)return!1;const active2=deepActiveElement(entry.state.document);return entryContainsFocus(entry,panel,active2)?!1:focusAutofocusTarget(panel)},updateRestoreFocusTo:target=>{entry.active&&(entry.restoreFocusTo=target)},deactivate:(deactivateOptions={})=>deactivateEntry(entry,deactivateOptions.restoreFocus!==!1,deactivateOptions.deferScrollLockRelease===!0),suspend:()=>{if(!entry.active||entry.manuallySuspended)return;entry.manuallySuspended=!0,syncEntryRegistration(entry);const generation=++entry.suspendGeneration;queueMicrotask(()=>{entry.active&&!entry.registered&&entry.suspendGeneration===generation&&!entry.options.host.isConnected&&deactivateEntry(entry,!0)})},resume:()=>{!entry.active||!entry.manuallySuspended||(entry.suspendGeneration++,entry.manuallySuspended=!1,syncEntryRegistration(entry))},isTopmost:()=>entry.active&&entry.registered&&entry.state.routingSuspensions.size===0&&entry.state.stack[entry.state.stack.length-1]===entry,isActive:()=>entry.active,dismissBackdrop:()=>!entry.handle.isTopmost()||!entry.options.onBackdrop?!1:(entry.options.onBackdrop(),!0)},hostEntries.set(options.host,entry),entry.manuallySuspended||registerEntry(entry,entry.state,!0),entry.handle}export{acquireOverlayRoutingSuspension,activateOverlayStack,collectAutofocusElements,collectFocusableElements,composedContains,deepActiveElement,observeOverlayStack};
|
|
1
|
+
import{claimDocumentRuntime}from"./runtime-diagnostics.js";import{getActiveNativeModal}from"./native-modal-context.js";import{takeOverlayOrder}from"./overlay-order.js";import{deepActiveElementIn}from"./active-element.js";import{composedContains,flattenedParentElement}from"./composed-tree.js";import{scheduleDeferredFocusReturn,cancelDeferredFocusReturn}from"./deferred-focus-return.js";import{collectComposedAutofocusElements,collectComposedFocusTargets,isComposedFocusAvailable}from"./focus-navigation.js";import{isHtmlElement}from"./dom-guards.js";import{leaseInlineStyleProperty}from"./style-property-lease.js";const STACK_PROPERTY="--lr-overlay-stack-index",STACK_BASE=1e3,STACK_STEP=2,states=new WeakMap,hostEntries=new WeakMap;function createInactiveOverlayHandle(){return{focusInitial:()=>{},focusAutofocus:()=>!1,updateRestoreFocusTo:()=>{},deactivate:()=>{},suspend:()=>{},resume:()=>{},isTopmost:()=>!1,isActive:()=>!1,dismissBackdrop:()=>!1}}function deepActiveElement(doc=typeof document>"u"?void 0:document){return deepActiveElementIn(doc)}function collectFocusableElements(root){return collectComposedFocusTargets(root).elements}function collectAutofocusElements(root){return collectComposedAutofocusElements(root).elements}function tryFocus(target){if(!target||!isComposedFocusAvailable(target))return!1;target.focus();const active=deepActiveElement(target.ownerDocument);return active===target||composedContains(target,active)}function focusAutofocusTarget(panel){for(const candidate of collectAutofocusElements(panel)){if(tryFocus(candidate))return!0;for(const inner of collectFocusableElements(candidate))if(tryFocus(inner))return!0}return!1}function auxiliaryRoots(entry){const panel=entry.options.panel();return[...new Set(entry.options.auxiliaryRoots?.()??[])].filter(root=>root.isConnected&&root.ownerDocument===entry.state.document&&(!panel||!composedContains(panel,root)))}function entryContainsFocus(entry,panel,active){return entry.options.auxiliaryRoots?active!==null&&isComposedFocusAvailable(active)&&[panel,...auxiliaryRoots(entry)].some(root=>composedContains(root,active)):composedContains(panel,active)}function entryTabStops(entry,panel){const roots=entry.options.auxiliaryRoots?[panel,...auxiliaryRoots(entry)]:[panel];return[...new Set(roots.flatMap(root=>collectComposedFocusTargets(root,{browserTabOrder:!0}).elements))]}function composedPath(element){const path=[];for(let current=element;current;current=flattenedParentElement(current))path.unshift(current);return path}function precedes(first,second){let index=0;for(;first[index]&&first[index]===second[index];)index+=1;return first[index]?!!(second[index]&&first[index].compareDocumentPosition(second[index])&4):!!second[index]}function focusEntry(entry,preserveCurrent=!0){const panel=entry.options.panel();if(!panel)return;const active=deepActiveElement(entry.state.document);if(preserveCurrent&&entryContainsFocus(entry,panel,active)||(entry.initialFocusDecision===void 0&&(entry.initialFocusDecision=entry.options.beforeInitialFocus?.()!==!1),!entry.initialFocusDecision)||focusAutofocusTarget(panel))return;const preferred=entry.options.preferredInitialFocus?.()??null;if(!(preferred&&composedContains(panel,preferred)&&tryFocus(preferred))){for(const target of collectFocusableElements(panel))if(tryFocus(target))return;panel.focus()}}function handleTab(state,entry,event){const panel=entry.options.panel();if(!panel)return;const focusable=entryTabStops(entry,panel);if(focusable.length===0){event.preventDefault(),panel.focus();return}const active=deepActiveElement(state.document),first=focusable[0],last=focusable[focusable.length-1],activeIndex=active?focusable.indexOf(active):-1;if(activeIndex===-1){let target;const roots=entry.options.auxiliaryRoots?[panel,...auxiliaryRoots(entry)]:[panel];if(active&&roots.some(root=>composedContains(root,active))){const activePath=composedPath(active);if(event.shiftKey)for(let index=focusable.length-1;index>=0&&!target;index-=1)precedes(composedPath(focusable[index]),activePath)&&(target=focusable[index]);else target=focusable.find(stop=>precedes(activePath,composedPath(stop)));if(target&&target.tabIndex>=0&&!entry.options.auxiliaryRoots)return}event.preventDefault(),(target??(event.shiftKey?last:first)).focus()}else if(event.shiftKey&&active===first)event.preventDefault(),last.focus();else if(!event.shiftKey&&active===last)event.preventDefault(),first.focus();else{const next=focusable[activeIndex+(event.shiftKey?-1:1)];next&&(next.tabIndex<0||auxiliaryRoots(entry).length>0)&&(event.preventDefault(),next.focus())}}function nearestTrappingEntryBelowTop(state){for(let index=state.stack.length-2;index>=0;index-=1){const entry=state.stack[index];if(entry&&entry.options.trapFocus!==!1)return entry}}function snapshotFor(state){return{entries:state.stack.map(entry=>({host:entry.options.host,order:entry.stackOrder,modal:entry.options.modal,modalRoot:entry.options.modalRoot,auxiliaryRoots:entry.options.auxiliaryRoots}))}}function notifyStackObservers(state){if(state.observers.size===0)return;const snapshot=snapshotFor(state);for(const observer of state.observers)observer(snapshot)}function startState(state){state.started||(state.started=!0,state.document.addEventListener("keydown",state.onKeyDown))}function stopState(state){state.started&&(state.started=!1,state.document.removeEventListener("keydown",state.onKeyDown))}function stopStateIfIdle(state){state.stack.length===0&&stopState(state)}function createState(doc){const state={};return state.document=doc,state.stack=[],state.routingSuspensions=new Set,state.observers=new Set,state.started=!1,state.onKeyDown=event=>{if(event.defaultPrevented||event.isComposing||event.keyCode===229||state.routingSuspensions.size>0)return;const entry=state.stack[state.stack.length-1];if(!entry||event.key!=="Escape"&&event.key!=="Tab")return;const nativeModal=getActiveNativeModal(doc),panel=entry.options.panel();if(!(nativeModal&&(!panel||!composedContains(nativeModal,panel)))){if(event.key==="Escape")event.preventDefault(),entry.options.onEscape();else if(event.key==="Tab"){if(entry.options.trapFocus!==!1){handleTab(state,entry,event);return}entry.options.onTab?.();const trapping=nearestTrappingEntryBelowTop(state),trappingPanel=trapping?.options.panel();trapping&&trappingPanel&&!event.defaultPrevented&&(!nativeModal||composedContains(nativeModal,trappingPanel))&&entryContainsFocus(trapping,trappingPanel,deepActiveElement(doc))&&handleTab(state,trapping,event)}}},states.set(doc,state),state}function stateFor(doc){return claimDocumentRuntime(doc),states.get(doc)??createState(doc)}function observeOverlayStack(doc,observer){const state=stateFor(doc);return state.observers.add(observer),observer(snapshotFor(state)),()=>{state.observers.delete(observer)}}function acquireOverlayRoutingSuspension(doc){const state=stateFor(doc),token=Symbol();let active=!0;return state.routingSuspensions.add(token),()=>{active&&(active=!1,state.routingSuspensions.delete(token))}}function restoreStackStyle(entry){entry.stackStyleLease?.release(),entry.stackStyleLease=void 0}function updateStackStyles(state){state.stack.forEach((entry,index)=>{const value=String(STACK_BASE+index*STACK_STEP);entry.stackStyleLease?entry.stackStyleLease.set(value):entry.stackStyleLease=leaseInlineStyleProperty(entry.options.host,STACK_PROPERTY,value)})}function registerEntry(entry,state,preserveStackOrder=!1){if(entry.registered)return;startState(state),(!preserveStackOrder||entry.state!==state)&&(entry.stackOrder=takeOverlayOrder(state.document)),entry.state=state,entry.registered=!0,entry.options.onRegistered?.(state.document);const nextIndex=state.stack.findIndex(candidate=>candidate.stackOrder>entry.stackOrder);nextIndex===-1?state.stack.push(entry):state.stack.splice(nextIndex,0,entry),updateStackStyles(state),notifyStackObservers(state)}function unregisterEntry(entry,deferResourceRelease=!1){if(!entry.registered){const hasHigherEntry=entry.state.stack.some(candidate=>candidate.stackOrder>entry.stackOrder);return entry.state.routingSuspensions.size===0&&entry.wasTopmostOnSuspend&&!hasHigherEntry}const state=entry.state,index=state.stack.indexOf(entry),wasTopmost=state.routingSuspensions.size===0&&index===state.stack.length-1;return index!==-1&&state.stack.splice(index,1),entry.registered=!1,entry.wasTopmostOnSuspend=wasTopmost,entry.deferredResourceRelease=entry.options.onUnregistered?.(state.document,deferResourceRelease),restoreStackStyle(entry),updateStackStyles(state),notifyStackObservers(state),stopStateIfIdle(state),wasTopmost}function syncEntryRegistration(entry){if(!entry.active||entry.manuallySuspended){unregisterEntry(entry);return}const state=stateFor(entry.options.host.ownerDocument);registerEntry(entry,state,entry.state===state)}function validRestoreFocusElement(value,doc){return isHtmlElement(value)&&value.ownerDocument===doc?value:null}function resolveRestoreFocusTarget(entry){const source=entry.restoreFocusTo;if(typeof source!="function")return validRestoreFocusElement(source,entry.state.document);try{return validRestoreFocusElement(source(),entry.state.document)}catch{return null}}function rebaseReturnTargets(entry){for(const candidate of entry.state.stack){if(candidate===entry||candidate.stackOrder<=entry.stackOrder)continue;const candidateTarget=typeof candidate.restoreFocusTo=="function"?null:validRestoreFocusElement(candidate.restoreFocusTo,entry.state.document);candidateTarget&&composedContains(entry.options.host,candidateTarget)&&(candidate.restoreFocusTo=entry.restoreFocusTo)}}function restoreEntryFocus(entry){if(tryFocus(resolveRestoreFocusTarget(entry)))return;const next=entry.state.stack[entry.state.stack.length-1];next&&focusEntry(next,!1)}function deactivateEntry(entry,restoreFocus,deferResourceRelease=!1){if(!entry.active)return;const host=entry.options.host;cancelDeferredFocusReturn(host);const release=deactivateActiveEntry(entry,restoreFocus,deferResourceRelease);if(restoreFocus){const pass=entry.options.deferredReturn?.();pass&&scheduleDeferredFocusReturn({...pass,host})}return release}function deactivateActiveEntry(entry,restoreFocus,deferResourceRelease){const heldFocus=panelHoldsFocus(entry);rebaseReturnTargets(entry);const wasTopmost=unregisterEntry(entry,deferResourceRelease),deferredResourceRelease=entry.deferredResourceRelease;if(entry.deferredResourceRelease=void 0,entry.active=!1,entry.manuallySuspended=!1,entry.suspendGeneration++,entry.options.onDeactivate?.(),hostEntries.get(entry.options.host)===entry&&hostEntries.delete(entry.options.host),!wasTopmost)return deferredResourceRelease;if(restoreFocus)return restoreEntryFocus(entry),deferredResourceRelease;const next=entry.state.stack[entry.state.stack.length-1];if(!next)return deferredResourceRelease;if(heldFocus)focusEntry(next);else if(next.options.trapFocus){const doc=entry.state.document,active=deepActiveElement(doc);!entry.options.host.isConnected||active&&active!==doc.body&&active!==doc.documentElement?focusEntry(next):setTimeout(()=>{next.active&&next.registered&&entry.state.stack[entry.state.stack.length-1]===next&&focusEntry(next)},0)}return deferredResourceRelease}function panelHoldsFocus(entry){const panel=entry.options.panel();return panel!==null&&entryContainsFocus(entry,panel,deepActiveElement(entry.state.document))}function activateOverlayStack(options){cancelDeferredFocusReturn(options.host);const previous=hostEntries.get(options.host),inheritedReturnTarget=previous?.active?previous.restoreFocusTo:void 0;previous?.active&&previous.handle.deactivate({restoreFocus:!1});const doc=options.host.ownerDocument;if(!doc)return createInactiveOverlayHandle();const active=deepActiveElement(doc),captured=active&&typeof active.focus=="function"?active:null,entry={};return entry.options=options,entry.restoreFocusTo=options.restoreFocusTo!==void 0?options.restoreFocusTo:inheritedReturnTarget??captured,entry.active=!0,entry.registered=!1,entry.manuallySuspended=options.initiallySuspended===!0,entry.initialFocusDecision=void 0,entry.wasTopmostOnSuspend=!1,entry.suspendGeneration=0,entry.state=stateFor(doc),entry.stackOrder=takeOverlayOrder(doc,options.orderReservation),entry.handle={focusInitial:()=>{entry.active&&entry.registered&&entry.state.routingSuspensions.size===0&&entry.state.stack[entry.state.stack.length-1]===entry&&focusEntry(entry)},focusAutofocus:()=>{if(!entry.active||!entry.registered||entry.state.routingSuspensions.size>0)return!1;const panel=entry.options.panel();if(!panel)return!1;const active2=deepActiveElement(entry.state.document);return entryContainsFocus(entry,panel,active2)?!1:focusAutofocusTarget(panel)},updateRestoreFocusTo:target=>{entry.active&&(entry.restoreFocusTo=target)},deactivate:(deactivateOptions={})=>deactivateEntry(entry,deactivateOptions.restoreFocus!==!1,deactivateOptions.deferScrollLockRelease===!0),suspend:()=>{if(!entry.active||entry.manuallySuspended)return;entry.manuallySuspended=!0,syncEntryRegistration(entry);const generation=++entry.suspendGeneration;queueMicrotask(()=>{entry.active&&!entry.registered&&entry.suspendGeneration===generation&&!entry.options.host.isConnected&&deactivateEntry(entry,!0)})},resume:()=>{!entry.active||!entry.manuallySuspended||(entry.suspendGeneration++,entry.manuallySuspended=!1,syncEntryRegistration(entry))},isTopmost:()=>entry.active&&entry.registered&&entry.state.routingSuspensions.size===0&&entry.state.stack[entry.state.stack.length-1]===entry,isActive:()=>entry.active,dismissBackdrop:()=>!entry.handle.isTopmost()||!entry.options.onBackdrop?!1:(entry.options.onBackdrop(),!0)},hostEntries.set(options.host,entry),entry.manuallySuspended||registerEntry(entry,entry.state,!0),entry.handle}export{acquireOverlayRoutingSuspension,activateOverlayStack,collectAutofocusElements,collectFocusableElements,composedContains,deepActiveElement,observeOverlayStack};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const LYRA_PACKAGE_NAME="@aceshooting/lyra-ui",LYRA_PACKAGE_VERSION="31.
|
|
1
|
+
const LYRA_PACKAGE_NAME="@aceshooting/lyra-ui",LYRA_PACKAGE_VERSION="31.1.1";export{LYRA_PACKAGE_NAME,LYRA_PACKAGE_VERSION};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{LYRA_PACKAGE_NAME,LYRA_PACKAGE_VERSION}from"./package-metadata.js";const markerKey=Symbol.for("@aceshooting/lyra-ui.document-runtime-diagnostics.v1"),runtimeToken=Symbol(),claimedDocuments=new WeakSet;function warn(message){try{console.warn(message)}catch{}}function unavailable(){warn(`[lr-runtime-diagnostic-unavailable] Cannot check ${LYRA_PACKAGE_NAME} runtime copies in this document. Resolve all public imports and lazy chunks from one application package context; overlay coordination still requires one runtime.`)}function claimDocumentRuntime(document){if(!claimedDocuments.has(document)){claimedDocuments.add(document);try{const descriptor=Object.getOwnPropertyDescriptor(document,markerKey);if(!descriptor){const marker2=Object.preventExtensions(Object.defineProperties(Object.create(null),{schema:{value:1},token:{value:runtimeToken},version:{value:LYRA_PACKAGE_VERSION},warned:{value:!1,writable:!0}}));Object.defineProperty(document,markerKey,{value:marker2});return}const marker=descriptor.value;if(!("value"in descriptor)||descriptor.configurable||descriptor.writable||descriptor.enumerable||marker===null||typeof marker!="object"){unavailable();return}const schema=Object.getOwnPropertyDescriptor(marker,"schema"),token=Object.getOwnPropertyDescriptor(marker,"token"),version=Object.getOwnPropertyDescriptor(marker,"version"),warned=Object.getOwnPropertyDescriptor(marker,"warned"),immutable=field=>!!field&&"value"in field&&!field.writable&&!field.configurable;if(!immutable(schema)||schema?.value!==1||!immutable(token)||typeof token?.value!="symbol"||!immutable(version)||typeof version?.value!="string"||!/^[\dA-Za-z.+-]{1,128}$/u.test(version.value)||!warned||!("value"in warned)||typeof warned.value!="boolean"||!warned.writable||warned.configurable||Object.isExtensible(marker)){unavailable();return}if(token.value===runtimeToken||warned.value)return;Object.defineProperty(marker,"warned",{value:!0}),warn(`[lr-runtime-duplicate] Multiple ${LYRA_PACKAGE_NAME} runtime copies are active in one document (versions: ${version.value}, ${LYRA_PACKAGE_VERSION}). Overlay coordination requires one application-owned runtime. Resolve all ${LYRA_PACKAGE_NAME} public imports, including lazy chunks, from the same application package context; matching versions alone is insufficient. See the imports and registration guide.`)}catch{unavailable()}}}export{claimDocumentRuntime};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SourceRequestController,sourceRevision}from"./source-request-controller.js";import{sourcePageScope}from"./source-page-scope.js";import{cursorCurrent,cursorField,cursorList,cursorText,cursorToken}from"./source-cursor-projection.js";const HISTORY_LIMIT=32,PAGE_TEXT_LIMIT=2e6;function snapshot(status="idle",rows=[],initial=!0,historyLength=0,next=null,truncated=!1){return Object.freeze({rows:Object.freeze(rows),initial,navigation:Object.freeze({status,canGoBack:status==="ready"&&historyLength>1,canGoForward:status==="ready"&&next!==null,atEnd:status==="ready"&&next===null,historyTruncated:truncated})})}class SourceCursorController{constructor(host,options){this.host=host,this.generation=0,this.value=snapshot(),this.history=[],this.nextToken=null,this.truncated=!1,this.scheduled=!1,this.options=Object.freeze({...options}),this.connected=host.isConnected,this.authority=new SourceRequestController(host,{channels:["page"]}),host.addController(this)}get state(){return this.value}bind(input){const previous=this.binding;if(input&&previous&&input.source===previous.source&&input.revision===previous.revision&&input.scope===previous.scope&&input.epoch===previous.epoch&&input.locale===previous.locale)return;const transaction=this.clear();if(!input||transaction!==this.generation)return;const current=()=>transaction===this.generation;try{const registration=sourcePageScope(this.host),subscription=this.scopeSubscription={},unsubscribe=registration?.onInvalidate(()=>{this.scopeSubscription===subscription&&this.invalidate()});if(!current()){unsubscribe?.();return}this.unsubscribeScope=unsubscribe;const{source,revision,scope,epoch,locale}=input;if(typeof source!="object"&&typeof source!="function"||source===null||typeof locale!="string"||!Number.isSafeInteger(epoch)||epoch<0)throw new TypeError("Invalid cursor binding");if(sourceRevision(revision),typeof revision=="string"&&revision.length>8192)throw new RangeError("Cursor revision limit");if(cursorText(scope,8192).length===0)throw new TypeError("Empty cursor scope");cursorCurrent(current);const queryPage=source.query;if(cursorCurrent(current),typeof queryPage!="function")throw new TypeError("Invalid cursor query");const accepted=Object.freeze({source,revision,scope,epoch,locale,queryPage});this.authority.setSource(source,revision),current()&&(this.binding=accepted)}catch{current()&&this.publish(snapshot("error"))}}invalidate(){this.clear()}fail(){this.clear()===this.generation&&this.publish(snapshot("error"))}request(query,limit){const binding=this.binding;return!binding||!this.usable()?Promise.resolve(!1):!Number.isSafeInteger(limit)||limit<1||limit>500?(this.fail(),Promise.resolve(!1)):(this.history=[],this.nextToken=null,this.truncated=!1,this.start(Object.freeze({binding,query,limit,cursor:null,history:Object.freeze([null]),truncated:!1,initial:!0})))}next(){if(!this.value.navigation.canGoForward||!this.last||this.nextToken===null)return Promise.resolve(!1);const history=[...this.history,this.nextToken],truncated=this.truncated||history.length>HISTORY_LIMIT;return history.length>HISTORY_LIMIT&&history.shift(),this.start(Object.freeze({...this.last,cursor:this.nextToken,history:Object.freeze(history),truncated,initial:!1}))}previous(){if(!this.value.navigation.canGoBack||!this.last)return Promise.resolve(!1);const history=this.history.slice(0,-1),cursor=history[history.length-1];return cursor===void 0?Promise.resolve(!1):this.start(Object.freeze({...this.last,cursor,history:Object.freeze(history),truncated:this.truncated,initial:cursor===null&&!this.truncated}))}retry(){return this.value.navigation.status==="error"&&this.last?this.start(this.last):Promise.resolve(!1)}start(intent){if(!this.usable()||this.binding!==intent.binding)return Promise.resolve(!1);const transaction=++this.generation;if(this.notification=void 0,this.stop(),transaction!==this.generation||this.binding!==intent.binding||!this.usable())return Promise.resolve(!1);this.last=intent,this.publish(snapshot("loading",[],intent.initial,0,null,this.truncated));let settle;const done=new Promise(resolve=>{settle=resolve});return this.currentJob={intent,settle},this.schedule(),done}clear(){const transaction=++this.generation;this.binding=void 0,this.last=void 0,this.history=[],this.nextToken=null,this.truncated=!1,this.notification=void 0,this.value=snapshot();const unsubscribe=this.unsubscribeScope;return this.unsubscribeScope=void 0,this.scopeSubscription=void 0,unsubscribe?.(),this.stop(),transaction!==this.generation||(this.authority.setSource(void 0,void 0),transaction===this.generation&&this.notify()),transaction}stop(){const previous=this.currentJob;this.currentJob=void 0,previous?.settle(!1),this.authority.invalidate("page")}schedule(){this.scheduled||(this.scheduled=!0,queueMicrotask(()=>{this.scheduled=!1,this.pump()}))}pump(){if(this.running||!this.currentJob)return;const job=this.currentJob,{intent}=job,binding=this.binding;if(!binding||binding!==intent.binding||!this.usable()){this.stop();return}this.running=job;const generation=this.generation,owner=this.host.ownerDocument,lease=this.authority.begin("page",binding.locale),scope=sourcePageScope(this.host),current=()=>this.currentJob===job&&this.generation===generation&&this.binding===binding&&this.usable()&&this.host.ownerDocument===owner&&lease?.isCurrent()===!0&&(!scope||scope.isCurrent());Promise.resolve().then(async()=>{if(!lease||!current())return!1;const release=scope?await scope.acquire(binding.source,"page",lease.context.signal):void 0;if(scope&&!release)return!1;try{if(!current())return!1;const request=Object.freeze({...lease.context,scope:binding.scope,query:intent.query,cursor:intent.cursor,limit:intent.limit}),raw=await Reflect.apply(binding.queryPage,binding.source,[request]);cursorCurrent(current);const rows=cursorList(cursorField(raw,"rows",current),intent.limit,current),next=cursorToken(cursorField(raw,"nextCursor",current));if(next!==null&&intent.history.includes(next))throw new TypeError("Cursor cycle");const accepted=[],keys=new Set;let textUnits=0;for(const row of rows){const key=cursorText(cursorField(row,"key",current),65536,!0);if(keys.has(key))throw new TypeError("Duplicate cursor key");keys.add(key);const projected=this.options.normalizeRecord(key,cursorField(row,"value",current),current);if(cursorCurrent(current),!Number.isSafeInteger(projected.textUnits)||projected.textUnits<0||projected.textUnits>65536)throw new RangeError("Cursor document text limit");if(textUnits+=key.length+projected.textUnits,textUnits>PAGE_TEXT_LIMIT)throw new RangeError("Cursor page text limit");accepted.push(Object.freeze({key,value:projected.value}))}return cursorCurrent(current),this.history=intent.history,this.nextToken=next,this.truncated=intent.truncated,this.publish(snapshot("ready",accepted,intent.initial,intent.history.length,next,intent.truncated)),!0}finally{release?.()}}).then(accepted=>{job.settle(current()&&accepted)}).catch(()=>{current()&&this.publish(snapshot("error",[],intent.initial,0,null,this.truncated)),job.settle(!1)}).finally(()=>{this.currentJob===job&&(this.currentJob=void 0),this.running===job&&(this.running=void 0),this.schedule()})}usable(){return this.connected&&this.host.isConnected}publish(value){this.value=value,this.notify()}notify(){if(this.notification)return;const token={},generation=this.generation,owner=this.host.ownerDocument;this.notification=token,queueMicrotask(()=>{this.notification===token&&(this.notification=void 0,generation===this.generation&&this.usable()&&this.host.ownerDocument===owner&&this.options.onChange())})}adopted(){this.invalidate()}hostConnected(){this.connected=!0}hostDisconnected(){this.connected=!1,this.invalidate()}}export{SourceCursorController};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function cursorCurrent(current){if(!current())throw new Error("Cursor operation revoked")}function cursorField(value,key,current,required=!0){if(cursorCurrent(current),typeof value!="object"&&typeof value!="function"||value===null)throw new TypeError("Invalid cursor object");const descriptor=Object.getOwnPropertyDescriptor(value,key);if(cursorCurrent(current),!descriptor){if(required)throw new TypeError("Missing cursor field");return}if(!("value"in descriptor))throw new TypeError("Accessor cursor field");return descriptor.value}function cursorList(value,maximum,current){if(cursorCurrent(current),!Array.isArray(value))throw new TypeError("Invalid cursor collection");const length=cursorField(value,"length",current);if(typeof length!="number"||!Number.isSafeInteger(length)||length<0||length>maximum)throw new RangeError("Cursor collection limit");const result=[];for(let index=0;index<length;index++)result.push(cursorField(value,String(index),current));return result}function cursorText(value,maximum,nonblank=!1){if(typeof value!="string"||value.length>maximum||nonblank&&value.trim().length===0)throw new TypeError("Invalid cursor text");return value}function cursorToken(value){if(value===null)return null;const token=cursorText(value,8192);if(token.length===0)throw new TypeError("Empty cursor token");return token}export{cursorCurrent,cursorField,cursorList,cursorText,cursorToken};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const owners=new WeakMap,hosts=new WeakMap;function setSourcePageScope(host,owner){let scope=owners.get(owner);scope||(scope={sources:new WeakMap,waiting:new Map},owners.set(owner,scope));const previous=hosts.get(host);if(previous?.scope===scope&&scope.current===previous.ticket)return;if(previous&&previous.scope.current===previous.ticket){previous.scope.current=void 0;for(const pending of
|
|
1
|
+
const owners=new WeakMap,hosts=new WeakMap;function setSourcePageScope(host,owner){let scope=owners.get(owner);scope||(scope={sources:new WeakMap,waiting:new Map},owners.set(owner,scope));const previous=hosts.get(host);if(previous?.scope===scope&&scope.current===previous.ticket)return;const retirements=new Set,obsolete=new Set;if(previous&&previous.scope.current===previous.ticket){previous.scope.current=void 0,previous.scope.retireCurrent&&retirements.add(previous.scope.retireCurrent),previous.scope.retireCurrent=void 0;for(const pending of previous.scope.waiting.values())obsolete.add(pending)}const owned=scope,ticket={},listeners=new Set,retire=()=>{const callbacks=[...listeners];listeners.clear();for(const callback of callbacks)try{callback()}catch{}},registration={scope:owned,ticket,isCurrent:()=>owned.current===ticket,onInvalidate(listener){return registration.isCurrent()?(listeners.add(listener),()=>{listeners.delete(listener)}):(listener(),()=>{})},acquire(source,channel,signal){if(!registration.isCurrent()||signal.aborted)return Promise.resolve(void 0);channel==="page"&&(owned.pageRequested=!0);let lanes=owned.sources.get(source);lanes||(lanes=new Map,owned.sources.set(source,lanes));let slot=lanes.get(channel);slot||(slot={},lanes.set(channel,slot));const physical=channel==="page"&&owned.sharedPage?owned.sharedPage:slot;return owned.waiting.get(channel)?.cancel(),new Promise(resolve=>{let done=!1;const clear=()=>{physical.waiting===pending&&(physical.waiting=void 0),owned.waiting.get(channel)===pending&&owned.waiting.delete(channel),signal.removeEventListener("abort",cancel)},cancel=()=>{done||(done=!0,clear(),resolve(void 0))},pending={cancel,grant:()=>{if(done)return;if(!registration.isCurrent()||signal.aborted){cancel();return}if(physical.held)return;done=!0,clear();const token=physical.held={};resolve(()=>{physical.held===token&&(physical.held=void 0,physical.waiting?.grant())})}};physical.waiting=pending,owned.waiting.set(channel,pending),signal.addEventListener("abort",cancel,{once:!0}),pending.grant()})}};owned.retireCurrent&&retirements.add(owned.retireCurrent);for(const pending of owned.waiting.values())obsolete.add(pending);owned.current=ticket,owned.retireCurrent=retire,hosts.set(host,registration);for(const pending of obsolete)pending.cancel();for(const retirePrevious of retirements)retirePrevious()}function sourcePageScope(host){return hosts.get(host)}function shareSourcePageQueries(host){const registration=hosts.get(host);if(!registration?.isCurrent())throw new TypeError("A current source page scope is required");if(!registration.scope.sharedPage){if(registration.scope.pageRequested)throw new RangeError("Shared page queries require early registration");registration.scope.sharedPage={}}}export{setSourcePageScope,shareSourcePageQueries,sourcePageScope};
|