@einfach-excel/react-excel 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/NOTICE +9 -0
- package/README.md +218 -2
- package/dist/Spreadsheet.d.ts +8 -0
- package/dist/THIRD_PARTY_NOTICES.txt +14020 -0
- package/dist/artifact-manifest.json +46 -0
- package/dist/assets/workbook.worker-x_d_i2qm.js +6 -0
- package/dist/i18n/runtime.d.ts +5 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +10 -0
- package/dist/page/WorkbookPresentationProvider.d.ts +16 -0
- package/dist/page/WorkbookRuntimeProvider.d.ts +13 -0
- package/dist/page/WorkbookStoreProvider.d.ts +11 -0
- package/dist/style.css +2 -0
- package/dist/workbook/shell/WorkbookView.d.ts +2 -0
- package/docs/package/README.md +101 -0
- package/docs/package/host-data.md +61 -0
- package/docs/package/release.md +59 -0
- package/package.json +88 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{atom as e,createStore as t}from"@einfach/core";import{Provider as n,useAtomValue as r,useSetAtom as i,useStore as a}from"@einfach/react";import{BORDER_PRESETS as o,BORDER_STYLES as s,COMMENT_AUTHOR_MAX as c,COMMENT_BODY_MAX as l,DEFAULT_FONT_SIZE as u,DEFAULT_MAX_PROJECTION_CELLS as d,DEFAULT_NATIVE_TABLE_STYLE as f,FILL_SERIES_OPTIONS as p,FONT_SIZE_PRESETS as m,NATIVE_TABLE_STYLE_PRESETS as h,NOTE_MAX_CHARACTERS as g,NUMBER_FORMAT_DATE_PATTERNS as _,NUMBER_FORMAT_FRACTIONS as v,NUMBER_FORMAT_TIME_PATTERNS as y,WORKBOOK_RIBBON_TABS as b,acceptFormulaSuggestionAtom as x,activeCellFormatAtom as S,activeCellInputTextAtom as C,activeWorkbookSheetAtom as w,applySelectionFormatAtom as T,blurNameBoxAtom as E,borderPanelAtom as D,calculationAvailableAtom as O,calculationFeedbackAtom as k,cancelEditingAtom as ee,chooseNativeValidationItemAtom as A,clearSelectionAtom as te,colorPaletteAtom as ne,commitCellEditingAtom as re,commitNameBoxAtom as ie,conditionalFormatScopeToA1 as ae,configureAdvancedFilterAtom as oe,configureFillSeriesAtom as se,configureNativeFilterAtom as ce,configureNativeFilterValuesAtom as le,configureSelectionStatisticsAtom as ue,configureSortAtom as de,coordToA1 as fe,copySelectionStatisticAtom as pe,createCellBorderResolver as me,createSpreadsheetUi as he,customFormulaPanelAtom as ge,directionalFillFeedbackAtom as _e,dispatchEditorKeyboardInputAtom as ve,dispatchFormulaInputKeyAtom as ye,dispatchGridCellKeyboardInputAtom as be,disposeRustWorkbookRuntimeAtom as xe,dragFillHandleAtom as Se,editingCommitFeedback as Ce,editingCommitLifecycleAtom as we,editingDraftAtom as Te,editingSessionAtom as j,endPointerSelectionAtom as Ee,externalHyperlink as De,fillHandleDragAtom as Oe,fillSelectionAtom as ke,fillSeriesPanelAtom as Ae,findReplacePanelAtom as je,focusNameBoxAtom as Me,fontSizePanelAtom as Ne,formatPainterAtom as Pe,formulaArgumentsPanelAtom as Fe,formulaFunctionSignatureAtom as Ie,formulaFunctionSuggestionCursorAtom as Le,formulaFunctionSuggestionsAtom as Re,formulaReferenceActiveAtom as ze,formulaReferenceCaretAtom as Be,formulaReferenceSessionAtom as Ve,formulaViewAvailableAtom as He,formulaViewText as Ue,freezeFeedbackAtom as We,getAxisOffsetForIndex as Ge,getAxisStartIndexAtOffset as Ke,getBufferedProjectionWindow as qe,getColumnLabel as Je,getViewportColumnWidth as Ye,getViewportRangeRectangle as M,getViewportRowHeight as Xe,goToErrorMessageAtom as Ze,goToHistoryAtom as Qe,goToInputAtom as $e,goToOpenAtom as et,goToReferenceAvailableAtom as tt,goToSpecialAvailableAtom as nt,goToSpecialPanelAtom as rt,hyperlinkPanelAtom as it,initializeViewportMetricsAtom as at,insertEditingLineBreakAtom as ot,insertFunctionPanelAtom as st,mergeRangeAt as ct,minimumFillSamples as lt,multiRangeSelectionFeedbackAtom as ut,nameBoxStateAtom as dt,nativeAdvancedFilterGroupsAtom as ft,nativeCommentPanelAtom as pt,nativeConditionalFormatPanelAtom as mt,nativeConditionalFormatsAtom as ht,nativeDataValidationPanelAtom as gt,nativeDuplicatesPanelAtom as _t,nativeFilterFeedbackAtom as vt,nativeFilterPanelAtom as yt,nativeFilterRangeAtom as bt,nativeFilterRulesAtom as xt,nativeFilterTargetAtom as St,nativeFilterValuesAtom as Ct,nativeNameChangeBusyAtom as wt,nativeNameManagerAtom as Tt,nativeNameManagerOpenAtom as Et,nativeNamedRangesAtom as Dt,nativeOutlineAtom as Ot,nativeOutlineFeedbackAtom as kt,nativeOutlineLevels as At,nativeProtectionPanelAtom as jt,nativeTableFeedbackAtom as Mt,nativeTableFiltersAtom as Nt,nativeTablePanelAtom as Pt,nativeValidationConfirmationAtom as Ft,nativeValidationListAtom as It,nativeValidationTargetAtom as Lt,notePanelAtom as Rt,numberFormatPanelAtom as zt,pasteSpecialPanelAtom as Bt,pointerSessionAtom as Vt,projectedFreezeAtom as Ht,projectionSnapshotAtom as N,quickFormulaAvailableAtom as Ut,quickFormulaFeedbackAtom as Wt,rangeToA1 as Gt,readCellHyperlinkAtom as Kt,recalculateAtom as qt,refreshNativeValidationListAtom as Jt,renderActiveSignatureSlots as Yt,renderFormulaFunctionSignature as Xt,resetProjectionAtom as Zt,resizeDragAtom as Qt,revertNameBoxAtom as $t,runBorderPanelAtom as en,runColorPaletteAtom as tn,runCustomFormulaAtom as nn,runFindReplaceAtom as rn,runFontSizeAtom as an,runFormatPainterAtom as on,runFormulaArgumentsAtom as sn,runFreezeAtom as cn,runGoToReferenceAtom as ln,runGoToSpecialAtom as un,runHyperlinkAtom as dn,runInsertFunctionAtom as fn,runNativeCommentAtom as pn,runNativeConditionalFormatAtom as mn,runNativeDataValidationAtom as hn,runNativeDuplicatesPanelAtom as gn,runNativeFilterAtom as _n,runNativeNameManagerAtom as vn,runNativeOutlineAtom as yn,runNativeProtectionAtom as bn,runNativeTablePanelAtom as xn,runNativeValidationConfirmationAtom as Sn,runNoteAtom as Cn,runNumberFormatPanelAtom as wn,runPasteSpecialPanelAtom as Tn,runQuickFormulaAtom as En,runResizeDragAtom as Dn,runRustHistoryAtom as On,runSelectionMergeAtom as kn,runSelectionSizeAtom as An,runSelectionStructureAtom as jn,runSelectionVisibilityAtom as Mn,runSpillAtom as Nn,runSystemClipboardAtom as Pn,runTextColumnsPanelAtom as Fn,runTextLayoutAtom as In,runVisibleProjectionAtom as Ln,runWorkbookFileAtom as Rn,runWorkbookSheetCommandAtom as zn,rustHistoryPanelAtom as Bn,rustHistoryStateAtom as Vn,scrollToCellAtom as Hn,selectGridHeaderAtom as Un,selectWorkbookRibbonTabAtom as Wn,selectionAggregatesAtom as Gn,selectionCellCountAtom as Kn,selectionMergeFeedbackAtom as qn,selectionMutationFeedbackAtom as Jn,selectionRangesAtom as Yn,selectionRegionsAtom as Xn,selectionSizePanelAtom as Zn,selectionSnapshotAtom as Qn,selectionStatisticCopyFeedbackAtom as $n,selectionStatisticLabels as er,selectionStatisticsPreferencesAtom as tr,selectionStructureFeedbackAtom as nr,selectionVisibilityFeedbackAtom as rr,setViewportScrollAtom as ir,setViewportSizeAtom as ar,sheetTabsAtom as or,showFormulasAtom as sr,sortFeedbackAtom as cr,sortPanelAtom as lr,sortSelectionAtom as ur,spillAvailableAtom as dr,spillPanelAtom as fr,spreadsheetRuntimeAtom as pr,startCellEditingFromProjectionAtom as mr,startPointerSelectionAtom as hr,startRustWorkbookRuntimeAtom as gr,syncFormulaReferenceCaretAtom as _r,systemClipboardFeedbackAtom as vr,textColumnsPanelAtom as yr,textLayoutFeedbackAtom as br,toA1 as P,toggleFormulaViewAtom as xr,toolbarActiveSurfaceAtom as Sr,updateFormulaDraftAtom as Cr,updateNameBoxInputAtom as wr,updatePointerSelectionAtom as Tr,viewportGeometrySizesAtom as F,viewportMetricsAtom as I,workbookDocumentAtom as Er,workbookFilePanelAtom as Dr,workbookRibbonTabAtom as Or}from"@einfach-excel/spreadsheet-ui-core";import{Suspense as kr,createContext as Ar,useCallback as L,useContext as jr,useEffect as R,useId as z,useLayoutEffect as B,useMemo as Mr,useRef as V}from"react";import{I18nProvider as Nr,Trans as H,useLingui as U}from"@lingui/react";import{setupI18n as Pr}from"@lingui/core";import{Fragment as W,jsx as G,jsxs as K}from"react/jsx-runtime";import{createPortal as Fr,flushSync as Ir}from"react-dom";var Lr=JSON.parse(`{"--4TXR":["Formula cell: ",["0"]],"-2Eao6":["Reopen discussion"],"-4qQPN":["No adjacent continuous data to fill."],"-8PP0T":["Match case"],"-EEkxe":["No tables in this workbook."],"-FE29b":["No recent locations yet."],"-G6MxY":["Updating visibility…"],"-GTLn8":["Use nonempty groups and valid numbers; minimum cannot exceed maximum."],"-Htako":["Find or replace"],"-Hts3l":["Select cells to paint. Press Esc to stop."],"-LmBbZ":["Enter text to find."],"-TWu4U":["Worksheet protection"],"-Xe3y_":["General fields"],"-_TBF9":["The insertion would move a comment outside the worksheet."],"-dwSnp":["The selection or workbook changed. Close this dialog and select the range again."],"-gRqKI":["Duplicate hyperlink cell in workbook file."],"-hSAzr":["Go to duplicate row ",["0"]],"-kMZ8o":["Data bar"],"-sjcnp":["Rename failed: that column name is already in use."],"-tc1Xu":["Select one continuous column of cells."],"-y8AX3":["The workbook file has mismatched sheet canvases."],"-yOx8u":["Saving changes…"],"-ysFds":["Vertical alignment"],"-z1N4o":["Rename failed: the column could not be found."],"-zPOh6":["Paste column widths only"],"00iwhf":["Resize table"],"06d1qf":[" occupied destination cells"],"0AfV3H":["Fill was not applied. Try again."],"0BuG9d":["Show input message when selected"],"0DLxHa":["Changes the display only. The original date value stays unchanged."],"0H_eqi":["General format"],"0LXHNL":["Right border"],"0LzvWR":["Matches the whole text, ignoring case. * matches any text, ? matches one Unicode character, and ~ escapes *, ? or ~. Spaces are kept."],"0P1NKR":["This browser cannot write the clipboard. Use a secure HTTPS or localhost page."],"0TjkxD":["Paste and subtract"],"0V2yZ6":["Finish the current operation before changing a note."],"0doodQ":["Edit rule"],"0j-RGO":["Horizontal alignment"],"0lZZNh":["Sort column ",["0"]],"0nTPQw":["Delete note"],"0tKM_D":["The input was not accepted. Review the draft and submit again."],"0vk7py":["Select one continuous fill range."],"0vsn4X":["The selection changed. Close the dialog and select the target again."],"0vwAro":["Updating freeze…"],"13oyIk":["columns ",["0"],"–",["1"]],"167oUv":["Hiding headers keeps column names and clears this table’s filter."],"1BEtVC":["Repeat the marked parameters together, in order."],"1CyzJZ":["Total function"],"1DC2E3":["Records were removed, but the view could not be updated. Check the sheet before retrying."],"1FhUEz":["AVERAGE — Mean"],"1JWxXm":["Enter a finite threshold number."],"1acGm3":["Rust returned a mismatched validation confirmation result."],"1azfe2":["Disable conditional format"],"1b_WRI":["A comment thread must contain 1 to 1000 entries."],"1c2Jwi":["Highlight fill"],"1dAXgt":["Register formula"],"1kXvRz":["Banded rows"],"1mKYZW":["This result changed. Update the preview."],"1olIxt":["Date — DYM"],"1qoE0t":["Paste transposed"],"1tgCrA":["The workbook changed. Find again."],"1zHGFg":["Protection refers to a missing worksheet."],"2-gU4F":["Apply number format"],"20DDH7":["Format borders"],"21L4AA":["Show column outline level ",["0"]],"23JPFP":["Edit rule ",["0"]],"25Qdl_":["Enable rule ",["0"]],"28_CwG":["Configured field types"],"294CLW":["Reset sizes keeps cell values and formatting. It does not auto-fit text."],"2BBAbc":["List"],"2EZ1-q":["Totals function failed: enable the totals row first."],"2P4BrQ":["Functions "],"2SgRHg":["Add condition to group ",["0"]],"2UulkW":["Select whole merged cells before copying or pasting."],"2V3rX6":["The clipboard does not contain cell text."],"2Xl1IN":["Remove custom formula"],"2YfH3r":["Delete rows"],"2awTZq":["Paste formulas and number formats"],"2b8FLG":["Hide rows"],"2jjTif":["Invalid input requires an explicit Continue or Cancel choice."],"2kwC9a":["Fill number series"],"2lCz8v":["Cell value"],"2nW6By":["Row outline levels"],"2ooIbd":["Argument group ",["0"]],"2pK_MR":["Comment text cannot contain a null character."],"2u3siP":["Three arrows"],"2yAzV6":["Edit table ",["0"]],"3-wLc0":["Filter cleared. Manually hidden rows are unchanged."],"36SIHC":["Undo (Ctrl/⌘+Z)"],"384ruS":["Joins several text strings into one."],"38nohI":["Filter values"],"39cJ8L":["The cut cells overlap a named range. Change or remove that name in Name manager before moving cells between sheets. No cells were moved."],"3AURXx":["Table operation failed: the column name is invalid."],"3GQM5r":["Create table failed: the name looks like a cell reference. Choose another name."],"3GjSHx":["Open workbook"],"3Ib6FN":["Move down"],"3JICy8":["Fill linear-trend series"],"3WtHTo":["Move cells outside Excel Tables before cutting between sheets. No cells were moved."],"3_dk78":["Select the anchor cell before changing its hyperlink."],"3dioPi":["Interface language"],"3iQamk":["This input does not satisfy the cell's data validation rule."],"3nYLve":["Enter ranges inside this worksheet, separated by commas, for example A1:A10, C1:C10."],"3oiK7_":["Lower icon threshold value"],"3uQmjD":["Average"],"3vRLla":["Returns a positive square root."],"40hqlo":["The new name is the same as the current name."],"43RbWy":["Group ",["0"]," · AND"],"45DEY9":["Blocked by ",["0"],"."],"45RK77":["Fill down"],"484LKL":["Remove link"],"4AnZbD":["Worksheet filter"],"4DU3-v":["Resolve comment"],"4Gak8P":["The workbook changed. Close and reopen Data validation."],"4Hn9ir":["The matched cell is outside the current worksheet."],"4MYiOO":["Lower icon threshold type"],"4SrmA9":[["0"]," undo · ",["1"]," redo"],"4U-esm":["Native .einfach.json files only, up to 64 MiB. Not XLSX. Opening or creating a workbook replaces this view and starts a fresh Undo history."],"4_5AQh":["Edit hyperlink"],"4bZ86B":["Automatic name"],"4bsZcL":["Unprotect the target worksheets before replacing."],"4cECyK":["Highest value"],"4cTW4f":["Rename table"],"4eM0MO":[["0"]," worksheet"],"4firZq":["No statistics selected"],"4hrl8k":["Choose a table first."],"4iEJfd":["Limit new input in the selected range. Existing values are kept."],"4jvvK_":["Comment text"],"4pSxwB":["Go"],"4ra5M0":["Filling down…"],"4uX-bI":["Source: ",["0"]],"4vR1KG":["Sort selected data by its first column; select all columns that should move together"],"4x25he":["Worksheet history changed the clipboard source. Copy or cut again to paste."],"4zwcON":["Unprotect the worksheet before hiding or showing rows and columns."],"52e4Ly":["Number of items"],"55gvwH":["This edit was not confirmed — it may or may not have been saved."],"56tAzN":["List deleted."],"5E7eeF":["3 colors"],"5QVBgA":["Finding…"],"5RjJ0D":["Choose a source field number from 1 to 16384."],"5TqcTI":["Reverses the logical value of its argument."],"5UhrA-":["No matching values. Try another search."],"5UohOl":["Edit named range"],"5eV1U4":["The custom formula name is already in use."],"5gxkPZ":["Filter table"],"5jN07E":["Drag to fill. Double-click to fill down. Hold Ctrl/⌘ to copy; Escape to cancel."],"5oRu1T":["Duplicate preview pages"],"5qyw0O":["Skip blanks"],"5sJI_R":["At most"],"5zT0Ji":["Table totals"],"6-JjXR":["This address is outside the current worksheet canvas."],"6-fTif":["The selection changed. Close and reopen Series."],"6-mXJV":["Sheet list failed to load"],"61OlHU":["Ignore blank cells"],"61j71l":["Rename failed: the column name is invalid."],"62FGW_":["Field numbers refer to the source, before skipping. Unspecified fields keep text. General converts recognized numbers, booleans and unambiguous dates; formulas stay text. Date uses the chosen order; invalid dates stay text. Two-digit years: 00–29 = 2000–2029, 30–99 = 1930–1999. Skip packs remaining fields left. Changing split rules resets field types."],"6BMkc7":["Returns the smallest numeric value in the arguments."],"6CaT8a":["Painting formatting…"],"6ELX9Y":["Clear formatting"],"6EnLCz":["Spill range: ",["0"]],"6KYDeP":["Save rule"],"6KmQ8Y":["Cell ",["address"],". Click to select; Ctrl/⌘+click to open the link."],"6Ktvn1":["Open discussion"],"6Qpg1W":["Convert table to range"],"6R-fPZ":["Download workbook"],"6RS7qT":["New name"],"6Vd6ar":["Select cells by condition"],"6YUp4B":["Table operation failed: that column name is already in use."],"6YtxFj":["Name"],"6ar9wo":["Selection statistics failed."],"6ejfvr":["Download requested. Keep the file to save your work."],"6naYPx":["Matches wildcard"],"718xCo":["Error title"],"76brUi":["Could not preview this split."],"7FMdyi":["Midpoint color"],"7SsmY_":["Select one row or column with enough samples and at least one destination."],"7TlGX4":["Move worksheet"],"7Vdedt":["Replace with"],"7Yejny":["Fill right"],"7ZtCCX":["Results ",["0"],"–",["1"]," of ",["2"]],"7d6bp1":["Unprotect the worksheet before changing data validation."],"7dNL2O":["Filling right…"],"7d_FW1":["Enter a table name."],"7iutXp":["Go to special"],"7jE4WS":["Could not confirm the font size. Check the cell before retrying."],"7oTUDm":["Update the preview before removing records."],"7qxXKS":["Choose ",["0"]],"7wqKgX":["Maximum threshold type"],"8-4V8D":["Tables"],"8-YkhO":["Insert selected columns"],"83IDA4":["Select the entire merged cell before formatting."],"87mu_4":["COUNT — Numbers"],"8CAxTp":["Remove "],"8ChTcP":["Dismiss validation message"],"8DFPLM":["Overwrite "],"8EBiEB":["Table operation failed: the column could not be found."],"8Fdybh":["Keep at least one worksheet."],"8Ntmm5":["Link address"],"8PJnrn":["Enter a valid LET or LAMBDA expression."],"8Tg_JR":["Custom"],"8abv4W":["Delete “",["0"],"” and all its data? Undo is available within session history limits."],"8ow7JB":["Field types"],"8pFplU":["Original value and type"],"8rySLA":["Create name"],"8v5ISZ":["Remove condition ",["0"]],"8xss61":["Move rule ",["0"]," down"],"8xv00d":["Range ",["0"],["1"],":",["2"],["3"],". Its first row stays visible."],"92NTaO":["Preview cells"],"92XSWG":["Edit cell"],"92pmIM":["This workbook is read-only."],"95Zxe1":["Converts text to uppercase."],"9DMyk3":["The workbook changed. Reopen Tables."],"9DsaKt":["All columns are hidden. Use Hide / Unhide to restore them."],"9EFm2O":["Paste values and number formats"],"9Fl-hr":[["selectedCellCount"]," cells selected in multiple areas. Clear and formatting apply to all areas. Borders require one continuous range."],"9Ht7x7":["Returns TRUE if any argument is TRUE."],"9I2SnE":["Clipboard write is unavailable. Use the browser copy shortcut."],"9P7P0N":["Reopen the thread before replying."],"9S3wLJ":[" · Disabled"],"9WO3wH":["Sort order ",["0"]],"9XO9_9":["Apply an integer size from 1 to 512 pixels to the selected cells."],"9_h-Y4":["Allow trailing minus (123- becomes -123)"],"9bCtf-":["The clipboard text has unmatched quotes. Nothing was pasted."],"9bamiZ":["Delimiters"],"9biXff":["Enter a non-empty column name or press Escape."],"9coJct":[["0"]," of ",["1"]," · ",["2"],"!",["3"]],"9eQzdR":["Formatting applied. Select another range; Esc to stop."],"9hYxj3":["Parameters, separated by commas"],"9hlJ3Q":["Size (px)"],"9oDhvO":["Math & statistics"],"9q0OPd":["Custom color picker"],"9uI_rE":["Undo"],"A-5jhW":["Thousands format"],"A1taO8":["Search"],"A1yhyK":["Add OR group"],"A4NYmf":["Create formula draft"],"A4XwbS":["Rename column"],"A7kETi":["Hide values"],"A8SR9V":["2-color scale"],"ABs-Wx":["Wrap text"],"ACyvJN":["The selection changed. Choose Merge again."],"ADCve-":["Add condition"],"ADtaE6":["Older operations were dropped to keep history within its memory limit."],"AHOl4W":["Function name"],"AInHa-":["Displayed values"],"AJzRee":["Apostrophe (')"],"AKf6v0":["Enter increasing positive character positions, for example 2, 5."],"AKq9zo":["Apply split"],"AN35sL":["Number format preview"],"AOLIUl":["Linked content"],"APMjZV":["Replaced ",["occurrences"]," occurrence(s) in ",["cells"]," cell(s). Find next to continue."],"ASnGmQ":["New comment"],"AV6Y10":["Enter a valid threshold formula."],"AWOSPo":["Zoom in"],"AXGKFs":["Paste options"],"AXoRX8":["Previous sheet"],"AcHaNt":["Use wildcards"],"AdV10P":["The active cell is not inside a table. Select a cell within a table to toggle its totals row."],"AeRqCl":["Applies to this workbook session. Reloading restores all six summaries."],"AfGIu2":["Name manager"],"AgLpDJ":["Dismiss layout error"],"AgpQe_":["Table operation failed: a custom formula is still running. Try again."],"Alp6dg":["Add table row"],"An12YD":["Constants"],"Aovm5Q":["Filtering…"],"ApqPN5":["Text comparison"],"As7Osr":["Date & time"],"AtooT1":["Workbook title must contain 1–256 characters."],"AuSIB3":["Formula functions"],"AunQP1":["Sort status"],"AxQiPW":["Sum"],"B-aFC9":["Pasting…"],"B34wYQ":["Replace formula"],"B7K4tv":["Select cells to calculate"],"BAOW-8":["Conditional formatting"],"BDuOuJ":["Too many custom formulas."],"BFEFZF":["Totals use SUBTOTAL and exclude filtered and manually hidden rows."],"BHfXY4":[" Conditions in each group must all match. Any group may match. After editing values, use Reapply filter."],"BIPC53":["Unprotect the worksheets before changing tables."],"BJid06":["Table range"],"BNT7SL":["Comment history"],"BU_dbm":["The search worksheet no longer exists."],"BW1hpN":["Selection statistics settings"],"BZ9DPB":["Retry values"],"BhOzmp":["Waiting for the table list…"],"BiJHCQ":["Wait for the Rust worksheet to finish loading."],"BjAJOY":["Go to formula cell"],"Bv5a9_":["Selection statistics"],"BvttON":["Selected: ",["selectedCellCount"]],"BwAJqT":["Hide values for condition ",["0"]],"ByhloL":["A comment thread cannot exceed 1000 entries."],"BzfzPK":["Items"],"C0wXVT":["Within"],"C8kSkE":[["0"]," filter conditions"],"CCkP4c":["Returns display text; does not create a clickable link."],"CCljia":["Cell comments"],"CG69YW":["Enter a defined name or a valid A1 or R1C1 reference, optionally prefixed by a worksheet name."],"CGJPDg":["Single quote (')"],"CHhGMU":["Standard colors"],"CI_GQy":["Skip field"],"CK1KXz":["Max"],"CLtx7m":["Duplicate / unique values"],"CQ0uIF":["Paste skipping blanks"],"CTe2Gc":["Not equal to"],"CUOf5i":["Fill right (Ctrl/⌘+R)"],"CW11B-":["Minimum"],"C_K0Ja":["Up to 8 groups and 32 conditions; each group can contain up to 8 conditions."],"CbUVmB":["Go to ",["address"],", match ",["0"]],"CgYU7p":["Bottom border"],"CgeaO0":["Filter condition ",["0"]],"CgohER":["Rule type"],"Cko536":["Descending"],"CoziCm":["Percent format"],"Cqcd62":["Zoom 100 percent"],"CtroLx":["Show table headers"],"D-20RG":["Show table totals"],"D-jkjv":["Copy as Markdown"],"DB-3zd":["Rename failed: the table could not be found."],"DB8zMK":["Apply"],"DBn_rU":["Paste would extend beyond the sheet. Choose another cell."],"DCz3x6":["Number sequence"],"DHhJ7s":["Previous"],"DHn9h5":["Create table failed: the target sheet could not be found."],"DLU2oN":["Editing protection prevents accidental changes. It does not encrypt the workbook or keep its contents confidential."],"DPfwMq":["Done"],"DThqd8":["Left border"],"DZV1P-":["Unprotect the worksheet before changing its filter."],"DaB2qN":["Display name cannot contain control characters."],"DdiXJt":["Standard deviation"],"Dhw0Mo":["To replace a formula, choose Formulas / raw values. Calculated results are not overwritten."],"DiY0xN":["Fill date series"],"DnJVJ2":["Freeze at active cell"],"Dnn2XG":["Automatic"],"DoWJih":["Decimal separator"],"Duy-1C":["Source sample count"],"DvdI9b":["Select page"],"DwIi5W":["Automatic thresholds use the full numeric range. Advanced threshold fields override the default endpoints."],"DyPbHH":[["0"]," — double-click or F2 to rename"],"DzUAQh":["Returns one value if the condition is true and another otherwise."],"E0pRq5":["All contents and formatting"],"E24Kfn":["Unsupported rule (not editable yet)"],"E2Y17F":["Other delimiter characters"],"E3-u01":["Filter (",["0"],")"],"E3Ffuz":["Spilled arrays cannot be entered inside a table. Use a single-value formula or press Escape."],"E4mitS":["Ungroup"],"E6OQlW":["This worksheet is protected."],"ECiFDS":["Use YYYY-MM-DD."],"ECq8zV":["Increase indent"],"EKZQ5Y":["The table changed. Close and reopen Filter."],"ENWIgr":["Values only"],"EdQY6l":["None"],"EhptVN":["Updating rows and columns…"],"EiC2i7":["Linear trend"],"ElWC92":["Edit conditional format"],"EnPnwM":["Paste formulas only"],"Eu18n4":[["0"]," functions available in this build. Insert a draft, then enter arguments in the formula bar."],"Evm31h":["Name box"],"ExvY_b":["Rust returned a mismatched hyperlink result."],"EzOCXe":["The workbook changed. Submit the operation again."],"EzQ4N6":["Remove formula"],"F18WP3":["Parameters"],"F1MSTQ":["Paste values and formatting"],"F3O9gl":["Edit table"],"F3u9-K":["Custom list is limited to 16384 characters."],"F7Ws55":["Could not confirm the layout change. Check the cell before retrying."],"F7nFgA":["Implementation limits"],"FBIuPX":["Clear selection"],"FBVro3":["Highlight values"],"FG5Dyz":["Transpose"],"FG7Jjn":["Reading worksheet protection…"],"FIxh24":["Insert function"],"FM4f_9":["Choose one continuous range."],"FO3oYr":["Row and column size"],"FZg3wM":["Operation"],"FZmScW":["Select one rectangular range to allow editing."],"Few87o":["Custom formula definitions cannot contain a recursive call cycle."],"FjkaiT":["Zoom out"],"FmdZUH":["Comment text is missing."],"FsbChj":["Workbook commands"],"FuYWBY":["Items, one per line"],"FynPmb":["Enter a whole number from ",["min"]," to ",["max"]," pixels."],"G1X9rt":["Rust worksheet protection is unavailable."],"G7He-e":["Example: DOUBLE with parameter amount and expression =amount*2. Pass cells and ranges as arguments. Every parameter is required."],"GEPL7V":["Choose a non-empty workbook file no larger than 64 MiB."],"GLTWC4":["Invalid protection change."],"GSrs0x":["That edit was not saved."],"Gbh8_x":["Note text cannot contain a null character."],"Gcj4TO":["Find a match before replacing it."],"Gd5rfz":["This match is in a hidden row or column. Unhide it to view the cell."],"Gi0VDy":["Header row"],"GimQzY":["Workbook"],"GkN4HP":["Hide selected columns"],"GmYzlR":["Rust comment editing is unavailable."],"Gmfq1z":["Select the anchor cell before changing its note."],"GnOQke":["The workbook changed. Close and reopen Filter."],"GnOb9s":["Select cells on one worksheet before changing them."],"GnPYFb":["Top ",["count"]," items"],"GvJsKx":["Apply paste"],"GyNlUh":["Show totals row"],"H1Eshp":[" Both dates are included."],"H2zn3t":["Replacing…"],"H36Q1N":["Inside borders"],"H3oH0g":["Redo"],"H4W5m7":["No matching functions. Change the search or category."],"H59Tdt":["Unmerge cells"],"H5X-EM":["Edit note"],"H6isXc":["Minimum ",["0"]],"H7MEr_":["Complete every required parameter in each repeated group."],"H8-89c":["Fill text-number series"],"H8IKGs":["Filter value ",["0"]],"H9DxgL":["Case sensitive"],"HEWf7O":["Enter a column name."],"HIJIcs":["Pass cell and range references as custom formula arguments."],"HKH-W-":["Data"],"HKa6n2":["The selection or workbook changed. Close this dialog and select the target again."],"HLFNTW":["Set row height"],"HLIZFs":["Does not contain"],"HNtOdD":["Merge cells"],"HS9Qjo":["The selection changed. Close and reopen Sort."],"HSI88F":["Delete table"],"HUbHYh":["This value does not meet the cell’s data validation rule. Change it or press Escape."],"HnGV58":["Invalid comment display name."],"Ho2H4v":["Edit the table cell text before changing its hyperlink."],"HorBVl":["The workbook changed. Find all again before choosing a result."],"HptUxX":["Number"],"HuA3RU":["Tab"],"HvVYeo":["The selected range must fit whole copies of the clipboard. Nothing was pasted."],"HzVv6g":["Paste"],"I7Pxc_":["Selection changed. Start Format painter again."],"I8xghs":["Collapse all row groups"],"IAhOTS":["Choose the summaries shown below. Click a value to copy its full precision."],"IBUUvF":["Blanks"],"IBsjha":["Denominator"],"IIMI40":["Choose one of the supported date formats."],"IJuINm":["Hide / Unhide"],"IJyMMV":["Apply filter"],"IOKN7k":["Choose a supported border position and line style."],"IQiVXD":["Format selection"],"IXuDer":["Move rule ",["0"]," up"],"Iht8BB":["Paste (Ctrl/⌘+V)"],"IiXo9O":["Line style"],"IiaofB":["Format painter: click once, double-click to keep painting. Esc to stop."],"ImQQer":["Resolved this discussion"],"ImeidD":["Clear the filter before cutting this range. No cells were moved."],"IqKCNQ":["Row"],"IrT6uD":["rows ",["0"],"–",["1"]],"IsDqQo":["Delete named range"],"Iz3e-u":["Unhide rows and columns"],"J0WP18":["No named ranges yet. Create one below."],"J2eKUI":["File"],"J4EeYq":["Replaces characters; does not translate between languages."],"J86eXk":["Clipboard permission was denied. Use Ctrl/⌘+V in the grid."],"J9UMdu":["Unprotect the worksheet before changing row or column sizes."],"JBq1UX":["Settings start from the active cell. Apply changes only the number format of the selection."],"JCVQI2":["Positive bar color"],"JH6mku":["Filter group ",["0"]],"JL5iJ3":["Formula arguments"],"JXaffl":["Greater than"],"JY5Oyv":["Database"],"JeiwaE":["Clear data validation"],"JhfSIU":["Counts the cells in a range that meet a given criterion."],"Joyh2I":["Use at most 8192 characters in a custom formula expression."],"JqGP8-":["Choose at most 1,000 values, or use a text or number condition."],"JsRejQ":["Custom sort"],"JwqAmu":["Thick"],"K5i09q":["Resize ",["axisLabel"]," ",["label"]],"K7PUBD":[["tabLabel"]," tools"],"K7tIrx":["Category"],"KFipWg":["Filter column ",["0"]],"KG5a1r":["Apply font size"],"KHlP9Q":["Paste special requires Copy, not Cut. The cut cells are unchanged."],"KICE7O":["The editable range no longer exists."],"KKI6Zv":["Nonbreaking space"],"KMKN_6":["Copy conditional format"],"KN2oP5":["Only the upper-left cell's content will remain. Other cell contents will be deleted. Undo can restore them."],"KPr6ld":["Ignore case"],"KX3yaT":["Formulas / raw values"],"KYJejj":["Copy as plain text"],"KYQPT5":["This table already has a column with that name. Choose a different column name."],"KdztGt":["Create table failed: that name is already in use."],"KfRQ6E":["Unprotect the worksheet before merging cells."],"KgjGE2":["1 = one day. [h] shows total hours; other styles repeat every 24 hours."],"KiJn9B":["Note"],"KmFagX":["Enter a name."],"KmydK6":["Bold"],"KrqHL4":["Date — YDM"],"Kth-Rn":["Plain text, up to ",["NOTE_MAX_CHARACTERS"]," characters. Use Delete note to remove it."],"KujtjC":["Find"],"Kvc9v7":["Empty cells "],"Ky8-OT":["Select one continuous range before using Go to special."],"L8fEEm":["Group"],"L9yzu_":["Expand all column groups"],"LDLYwZ":["Locating cells…"],"LEDZLl":["Freeze first column"],"LJyVUg":["A list with this name already exists."],"LL5U4o":["Configure editable ranges before protecting the worksheet. Cells inside those ranges remain editable; worksheet settings stay locked."],"LLAa_9":["Optional"],"LMBjM5":["Input rules only; Text and Date fields are unchanged. Thousands groups must contain three digits. Invalid numbers keep their original text. Change options, then update the preview."],"LPgOxe":[["category"],". Argument help is not available yet."],"LQaAcb":["The copied worksheet was deleted. Copy cells again before pasting."],"LYjoLq":["Preparing download…"],"LYywWc":["Set table total function"],"LaRaTD":["Extending series…"],"LdS4Tj":["Use a positive whole-number denominator, at most 4294967295."],"LeMEjl":["Workbook tables"],"LglynE":["Choose a value from the validation list"],"LhMjLm":["Time"],"Lhd0oQ":["Date format"],"Li0Wel":["Use commas between ranges. Write the formula for the first range’s top-left cell. Use $ to lock a row or column."],"LkMoxw":["Compares calculated values across all applied ranges, ignoring text case. Blank cells, empty text and errors are skipped; numbers and text are different."],"Llc5yd":["Font size (pixels)"],"LmH6kB":["All rows are hidden. Use Hide / Unhide to restore them."],"LmLruJ":["Go to"],"Lt4H14":["Thousands separator"],"LtPJFw":["Select value ",["label"]],"Lvwi-8":["Create table failed: this workbook already has the maximum number of tables."],"LwK6r0":["Input title"],"M-xaaN":["Rust returned a mismatched note result."],"M7j_hP":["Expand all row groups"],"MCdyqs":["Expand group"],"MEyqnp":["Choose a column and a total function."],"MFf8vj":["Format painter status"],"MJKChL":["Merging…"],"MKKvTP":["Call only built-in functions or registered custom formulas in custom formula expressions."],"MOmObo":["Double"],"MOuGRm":["Saving conditional formatting…"],"MQlCsM":["Finish the current edit or history operation first."],"MRB7nI":["Direction"],"MVmg5N":["Reply text"],"MVxpbf":["Find and replace"],"MYt4fi":["Filled down."],"M_rUVV":["Enter comment text."],"MaFhfZ":["No fill"],"MapzEo":["Text color"],"Mbrxio":["Next sheet"],"MfotVq":["Choose at least one delimiter."],"MnhpMi":["New column name"],"Mo5eDU":["Reapply ",["table"]," filter"],"MrPdmn":["Enter a color as #RRGGBB, for example #c00000."],"Mu7B08":["Choose one contiguous selection before opening Find."],"MwT8v8":["Automatic text color"],"Mzfo3I":["Ungroup selected columns"],"N2C89m":["Reference"],"N48V6M":["Panes frozen"],"N6j2JH":["Edit ",["0"]],"N78_jS":["Returns the remainder after a number is divided by a divisor."],"N9EQQo":["Custom lists"],"NCEnve":["Use only declared parameters and local LET or LAMBDA names in custom formula expressions."],"NCzNnx":["Sort ascending"],"NELivG":["Hide selected rows"],"NICPwA":["Does not match wildcard"],"NN-ecT":["Finish editing the cell before applying a format."],"NSU8Gn":["Expand ",["label"],", level ",["0"]],"NTocMg":["Numerical count"],"NcUUHs":["Delete rule ",["0"]],"NcqUHv":["Copied ",["rows"]," × ",["cols"]," cells as ",["format"],"."],"Np3tAH":["Remove hyperlink"],"NrRev1":["Returns the arithmetic mean of its arguments."],"NsYAid":["Dashed"],"NzAXiU":["Clear validation"],"O6H89R":["Resolved"],"O7s7Kp":["Table operation failed: the table could not be found."],"O8tK4v":["Add rule"],"OM5ei0":["Choose a valid three-icon set and thresholds."],"OPD48B":["Filters the worksheet’s used rows, not just the selection. Row 1 stays visible."],"ORSbFT":["Copy as"],"OT1VRc":["For example $, €, ¥ or USD. Leave blank for no symbol."],"OTXgpc":["Enter 2–512 non-empty, unique list items."],"OcjuW_":["Quick formula"],"OjbUGq":["Replace current"],"On1IAr":["The workbook changed. Reopen the comment editor."],"OoCFeS":["Decrease indent"],"OquBS5":["Reset selected sizes"],"OuHJVE":["Filter was not applied. Try again."],"OwTfmu":[["0"]," search matches"],"P147pt":["Enter a name or cell address."],"P565an":["Hyperlink (Ctrl/⌘+K)"],"P6pmwo":["Submitting input…"],"P9PxcE":["Column widths cannot be combined with arithmetic, transpose or skip blanks."],"PAMA6C":["Cut (Ctrl/⌘+X)"],"PApEJe":["Custom…"],"PCjiXA":["Values (one per line)"],"PD_gZm":["Go to table ",["0"]],"PHvESz":["Insert selected rows"],"PJRNfn":["The comment cell is outside the worksheet."],"PQwyxE":["Copying statistic…"],"PXqLeb":["Applying number format…"],"PYoFZ7":["Clear contents"],"PaQ3df":["Enable"],"PcjMoT":["Unprotect the worksheet before filling cells."],"Pd6fQq":["Fill custom-list series"],"Phf9sK":["Custom formula"],"PovFhj":["Use valid local LET or LAMBDA parameter names."],"PpUl-j":["Fill weekday-name series"],"Ps49-9":["Confirm overwriting the occupied destination cells before applying."],"PtxJcF":["Threshold percentages must be between 0 and 100."],"PxNXDN":["Percentile"],"Q2lUR2":["Currency"],"Q2mGA7":["Clear filter"],"Q6QJvF":["Add level"],"Q7BPyr":["row"],"QD3zaT":["Unique values"],"QEhj9Y":["Entire workbook"],"QKU5be":["Highlight values with conditions, color scales or data bars. Higher rules win when colors overlap."],"QUDIug":["Enter note text. Use Delete note to remove an existing note."],"QUGnOi":["Duplicate note cell in workbook file."],"QUuzW2":["Less than or equal to"],"QgfCMt":["Sorted ",["rows"]," rows."],"Qj0AKs":["The active workbook sheet is unavailable."],"QlHuSE":["Filled right."],"Qotkzv":["Count numbers"],"QyKpyM":["Move sheet right"],"QyioBP":["Move up"],"R1TRHo":["The note cell is outside the worksheet."],"R1l97J":["Scale colors"],"R4NdeX":["(Whitespace: ",["0"],")"],"R8aB59":["Close history"],"R9Khdg":["Auto"],"RA4XsM":["Saved lists"],"RAH-fp":["These cells have already been moved. Copy or cut again to paste."],"RAnflB":["Bottom ",["count"]," items"],"RG08QT":["Returns the absolute value of a number."],"RGjFMI":["Thin"],"RGku3P":["No matching cells found. Choose another condition or range."],"RIBT3P":["The comment thread no longer exists."],"RIXJ69":["Canvas worksheet cells"],"RJr4Pz":["Validation warning"],"RKsf5g":["Update the preview before applying."],"RMPln-":["Search result pages"],"RQ7sH8":["Match entire cell"],"Raj8MX":["Paste content"],"RkvXKu":["Search selection must start at the first match."],"Rl9_jm":["Previous filter values page"],"RmbPoE":["Totals row"],"RodNt2":["At least 2 numbered labels, such as Item001, Item003. Matching padding is preserved."],"Rr55-E":["Sample shortened: up to 20 rows, 12 columns and 120 characters per field. Apply processes all source rows."],"RtKKbA":["Last"],"Ru1fnl":["Statistic copy status"],"RvOVou":["This named range no longer refers to an available worksheet range."],"RxZ9HJ":["Saving comment…"],"S05wWG":["Custom color"],"S1g3Ds":["Middle"],"S8Yqbl":["Insert"],"S9AiiV":["The hyperlink worksheet no longer exists."],"SGf-n6":["Finding formula range…"],"SIr9dK":["Loading Rust/WASM workbook…"],"SPb5SQ":["Add conditional format"],"SUKJAe":["This cell is not part of a spilled array."],"SUXBxp":["Engineering"],"SV5DGP":["Invalid comment thread status."],"SV_AuA":["Workbook failed to open"],"SXGeQ1":["Three flags"],"SYFEkU":["Select one continuous range to name."],"Sb2gYF":["New list"],"Sla4dA":["Decimal"],"Slf_tF":["Applying color…"],"SlzWuE":["(Empty)"],"SrVzRe":["Percent"],"Su_lDy":["Formulas"],"T4Sbho":["Keep text (existing format)"],"T98Rxz":["Loading validation…"],"T9pSh5":["Opening workbook…"],"TBhrFT":["Validation information"],"TCXvxM":[" of "],"TDwBWE":["Worksheet structure changes are disabled."],"TGNnR3":["Unprotect the worksheet before sorting cells."],"TKoOLT":["Inside horizontal"],"TMLAx2":["Required"],"TSAWjn":["Text qualifier"],"TTzfXy":["column"],"TXf9YD":["(Blanks)"],"T_txGc":["Inside vertical"],"Tp1Gud":[" duplicate records (one undo restores them)"],"TuM2Yu":["Fill"],"U78DYJ":["New named range"],"UEEaA4":["Remove duplicates"],"UG5Fr4":["Rounds a number to a specified number of digits."],"UHJDnz":["Duplicate samples"],"UNSVie":["Percent uses the minimum-to-maximum span; percentile uses the sorted numeric values. Threshold formulas use the first range’s top-left cell."],"UPgfIN":["At least"],"UQmovj":["Wait for the selected sheet to load."],"USf30b":["SUM — Total"],"UTPdoU":["Continue editing in the formula bar"],"UU50bX":["At least 3 numeric samples. Rust fits a least-squares line using all samples."],"UUy_zE":["Paste and add"],"UWvGHX":["Finish editing the cell first."],"UXsrhQ":["The workbook changed. Reopen worksheet protection."],"UYUgdb":["Order"],"UYUo0N":["Rename failed: that name is already in use."],"UbUZ_0":["Applying borders…"],"UeOiKl":["Invalid input"],"UlKSMd":["Left"],"UnQEKA":["Format cells"],"Uq5ARj":["Selected filter values"],"UwUnP2":[["0"]," data rows compared; ",["1"]," filtered-out rows unchanged."],"UyFS6j":["Show row outline level ",["0"]],"Uz_n3x":["Invalid comment thread history."],"V-IYE1":["Loading values…"],"V-pw1j":["Table name"],"V1JoG1":["Date sequence"],"V2jZJh":["Removes extra spaces from a text string."],"V2wP5o":["The workbook changed. Reopen the hyperlink editor."],"V5H54_":["Split preview"],"V5tMvA":["Convert to range"],"V8GuqL":["Use a clock time from 00:00 to 23:59:59."],"VC-lcC":["List saved."],"VCRyWf":["Hide totals row"],"VCVsUc":["Apply to the selected cells. Other borders and formatting stay unchanged."],"VCfLFG":["Ends with"],"VCwVZr":["Select one continuous sort range."],"VGFJ_s":["Column outline"],"VHZ5Jr":["Wait for the worksheet to finish loading."],"VK1HG0":["Calculating selection…"],"VK1oRU":["This is not a valid .einfach.json workbook file."],"VMVP0A":["Table ",["table"]," filter cleared. Manually hidden rows are unchanged."],"VSOLir":["Automatic icon thresholds are 33% and 67% of the full numeric range. Equal values enter the higher band."],"VTRXqB":["Center"],"VWg339":["Go to first occurrence row ",["0"]," for duplicate row ",["1"]],"VbyRUy":["Comments"],"ViBWCP":["Create table failed: the selection overlaps an existing table."],"VlSVIO":["The selection changed. Refresh spill details for the current cell."],"VmkjGB":["Green"],"VpExZs":["Hex color"],"Vqa2As":["Editable ranges"],"VrpcdZ":["Choose a valid table style."],"VvVbTm":["Sheet name cannot be empty"],"VwSEfZ":["Selection change error"],"VzxHsg":["Choose valid filter conditions in nonempty groups, or up to eight different columns."],"W7eIkx":["Create named range"],"W8w3gJ":["Formulas only"],"WBsWx5":["Paste and divide"],"WFeJs8":["Saving custom formula…"],"WFjFmc":["Size: ",["0"]," × ",["1"]," (rows × columns)"],"WLTAm_":["Text length"],"WSMWJA":["Choose a table column."],"WWtkCK":["Select spill range"],"WWy8TN":["Top"],"WZ76uH":["Rename worksheet"],"Wc0f4I":["Select a source column first."],"WdgdFu":["Find next"],"Weq9zb":["General"],"WhOsNE":["Strikethrough"],"Wnlkt7":["Unsupported: ",["0"]],"Wt1Dfg":["New sheet"],"WtgDbl":["Column"],"X-6oBB":["Filter values page"],"X-PXwn":["Choose cell value"],"X35TPs":["paste…"],"X74D7p":["Includes hidden cells. Merged cells are selected as a whole."],"X9Nd2r":["Unmerge the source and destination before moving cells between sheets. No cells were moved."],"XEFP6t":["Enter a destination cell such as C1."],"XKCkjM":["Hide table headers"],"XLiS1x":["Finish the current operation before changing a custom formula."],"XQVk7A":["Select at least two data rows. Include all columns to move together."],"XYGpzK":["Refers to"],"XeQrW0":["Custom formulas do not support comparison operators."],"XhOOr1":["Validation input message"],"XjTvlf":["Loading visible cells…"],"Xm6e-S":["Expected an icon-set rule."],"Xo29SJ":["Resize column"],"XoPzXO":["Row outline"],"Xq5Ea-":["Restore defaults"],"XtFNg_":["Between"],"XtGDRG":["Register custom formula"],"Xu1LOY":["Divide"],"XyQQXt":["Choose values to show. Other column filters still apply."],"Y02qkr":["Search functions"],"Y11i1u":["Values and number formats"],"Y1zVYo":["This cell already has a comment thread."],"Y4RFb3":["Hide columns"],"Y9bkTR":["No editable ranges."],"YF_Hu1":["Set data validation"],"YIMZfF":["Selection changed. Paste again."],"YK4ZnP":["Whole number"],"YMZBxa":["Function"],"YRSvYF":["Minimum threshold value"],"YRkrMC":["Validation titles allow 32 characters and messages allow 255 characters."],"YSL2bn":["Insert rows"],"YUTvL2":["Redo (Ctrl/⌘+Shift+Z or Ctrl+Y)"],"YZfyZO":["Saving worksheet protection…"],"YbmUSS":["Display name cannot exceed 100 characters."],"YcYwO9":["Find what"],"YdDilE":["Open link in a new tab"],"YdQd_4":["Scientific"],"YgYFFL":["Enable conditional format"],"Yq71j6":["Fill arguments"],"YqlV6y":["The view changed. Reopen worksheet protection."],"YvscKL":["Color ",["color"]],"YxJd_p":["Sort selected range"],"YyXtnN":["Underline"],"YzBiZq":["Saving table changes…"],"Z1QgjU":["This clipboard range is too large. Select a smaller range."],"Z2zILs":["Group / Outline"],"Z4H86n":["Currency format"],"Z54TLH":["Upper icon threshold type"],"Z6c0s9":["Choose a supported category."],"ZA9ELE":["This validation formula cannot be translated across the range."],"ZAVklK":["Or"],"ZGLMJR":["Apply total"],"ZNslas":["All search results"],"ZOQAXb":["Rust hyperlink editing is unavailable."],"ZPLS0d":["The new column name is the same as the current name."],"ZWB-hA":["Text numbering"],"ZaMIQW":["Cut between sheets is not supported yet."],"ZdDnyu":["The worksheet changed. Refresh spill details before navigating."],"ZfSbdG":["The table change was not applied."],"ZjZR8L":["Insert note"],"Zk2iCH":["Saved formula"],"ZlKlVa":["No recorded operations yet."],"Zm7_S_":["Disable rule ",["0"]],"Zmr-Uf":["Replace custom formula"],"Zn5crm":["Blue"],"Znyeto":["Auto sum (review in formula bar)"],"Zrm1Q5":["The selection changed. Close the palette and select the target again."],"ZskO8V":["cut…"],"ZuKd0O":["Your workbook is in memory. Download a file to keep your changes."],"Zuk-59":["Clipboard read is unavailable. Use the browser paste shortcut."],"ZzrsKL":["One of these values"],"_09ZtW":["Clipboard permission was denied. Allow clipboard access and try again."],"_2HyaM":[["0"]," rows"],"_44cFv":["Searches literal text, including offscreen cells. "],"_4nr6k":["Replacements can be undone together."],"_5mghO":["Contains"],"_5uCWz":["Values must be below the minimum or above the maximum. Both boundaries are excluded."],"_7cr0t":["Drag to resize ",["axisLabel"],"; double-click or Enter to auto-fit; arrow keys adjust by 10 px"],"_8P7TX":["The view changed. Reopen Tables."],"_C4X2q":["Top border"],"_HgF9q":["Sort by"],"_Kdu2_":["Invalid comment line endings."],"_LiheW":["Maximum threshold value"],"_aept4":["Post reply"],"_d9R2O":["Upper icon threshold value"],"_dqduX":["Next page"],"_ic6mc":["The hyperlink cell is outside the worksheet."],"_mqxGf":[["0"]," source fields. "],"_q2vC3":["Use a formula name beginning with a letter or underscore, without cell references."],"_roQKz":["Percentage"],"_rpaNi":["Duplicate records to remove"],"_sZgWl":["Greater than or equal to"],"_th6uC":["Saving sizes…"],"_x9y9y":["Rust custom formula editing is unavailable."],"_xrkTU":["2 colors"],"_z-cgv":["Enter a cell or range on the selected worksheet, for example A1:A100."],"_z1FM_":["Add argument group"],"a1LXia":["Sheet / cell"],"a2DHYV":["New typing and external paste stay as text, including leading zeros and formulas. Existing values and formulas are not converted."],"a7Ccx8":["The workbook changed. Reopen the name editor."],"a89u9S":["Undone"],"a8dPbP":["Delete worksheet"],"a96JJ9":["Enter Excel expressions: \\"text\\" for text, A1:A3 for ranges, or 'Sheet name'!A1 for another sheet. Nested functions and array constants are allowed."],"aA7VI7":["Paste special"],"aGFtVK":["Continue with this input?"],"aHKcKc":["Previous page"],"aHnxms":["The hyperlink display text is too long or invalid."],"aHtZRs":["Select constants, formulas or blanks"],"aJlCCf":["No rules yet."],"aOUbsP":["The selection or workbook changed. Close this dialog and select the source again."],"aQST8Z":["Financial"],"aTGxbY":["Selection area limit reached. Keep the current selection or start a new selection."],"aTHRg7":["Text rotation"],"aUmtyJ":["Workbook recalculated (",["count"]," formulas)."],"aVNbN8":["Filter conditions"],"aWAan2":["Preview · ",["0"]],"a_oQVj":["Increase font size"],"aaTj9f":["Comma"],"agPptk":["Medium"],"aj9DWs":["This worksheet is open for editing."],"ajomFP":["Table ",["table"],". ",["rows"]," rows filtered out in this worksheet."],"alQkIW":["Select one continuous filter range, including its header."],"alrHm_":["Duplicate worksheet protection configuration."],"am8VAJ":["Entire worksheet canvas"],"aop_8l":["Month names"],"atNeRW":["Remove records"],"awcQnW":["Rust/WASM ready"],"axnOH5":["Three traffic lights"],"ay8rvx":["Fixed width"],"ayCqyB":["Midpoint threshold value"],"b-BzJy":["Add worksheet"],"b0TGMy":["The note worksheet no longer exists."],"b0rV_w":["Show formulas"],"b1lqfz":["The paste would hide cell content. Unmerge the destination or change the selection first."],"b2IO7F":["Delete columns"],"b41biH":["The workbook did not return an HTML table."],"b9vOOf":["Borders"],"bAG4xT":["First page"],"bBorvS":["The view changed. Try again after the worksheet finishes loading."],"bFVQjR":["All conditions in a group must match. Any group can show a row."],"bGRuWg":["Clear all search matches"],"bHKHqz":["All borders"],"bIuTzq":["Applying layout…"],"bJ_Jbl":["Copied ",["label"],"."],"bR2sEm":["Number format"],"bYL9MP":["Insert / Delete"],"b_kzkz":["Banded columns"],"bbuPq4":["Converts text to lowercase."],"bc3Ku9":["Unhide all rows and columns"],"bkYmSY":["Paste values only"],"br094C":["Next filter values page"],"buxf17":["Formulas and number formats"],"bvQ46H":["Decrease decimal places"],"bysG12":["Current worksheet"],"c5MaVU":["Saving note…"],"c78pX9":["Rust returned incomplete search matches. The selection was not changed."],"c7xa56":["This rule type cannot be edited here yet."],"cCd8Bs":["Cut"],"cD_FG_":["Minimum threshold type"],"cGGtIm":["Go to (Ctrl/⌘+G or F5)"],"cMiGgC":["Returns image metadata as text; does not display an image."],"cO8VkA":["The workbook changed. Reopen the note editor."],"cO9-2L":["Disable"],"cQg7j8":["This worksheet is protected. Unprotect it before changing locked cells."],"cUSA-Z":["Rank by"],"cVmrzX":["Rust returned a mismatched custom formula result."],"cWjIjS":["For example, XLOOKUP"],"cbqNXN":["Duplicate values"],"ccMx26":["Looks up a value in the first column of a range and returns a value from a column in the same row."],"cnGeoo":["Delete"],"cnbhg_":["Not between"],"cvJgQp":["Select blocking cell"],"czHnB-":["Finish the current operation before changing comments."],"d5Vvvt":["Invalid note text."],"d6YWmx":["Could not confirm the borders. Check the cells before retrying."],"d6ynQ7":["Sort descending"],"d8wc1_":["Sample values"],"dEgA5A":["Cancel"],"dIbM9L":["Function arguments"],"dOapBJ":["Rust returned an invalid custom formula directory."],"dQI-bM":["Up to 1 digit"],"dTFX4-":["Copy (Ctrl/⌘+C)"],"dU4D-1":["Clipboard status"],"dUoO9H":["Select an editable range and wait for the worksheet to finish loading."],"dVXmWP":["Validation formula"],"dWPDm3":["Selected range"],"dWfvwH":["The formula bar opens next. Press Enter to save or Escape to cancel."],"dXUfAm":["Use at most 64 custom formula parameters."],"dXXJVW":["Currency symbol"],"dYU8W5":["Format range"],"dbSixe":["Enter the comparison value."],"dev9M3":["Increase decimal places"],"dg6C0C":["Finish editing the cell before applying borders."],"dipmRq":["Table ",["0"],". Only its data rows are checked; headers and totals are excluded."],"dnjvPb":["Counts the number of cells that contain numbers."],"drUX1_":["Lowest value"],"dzHGCX":["Sheet name"],"e42Ehe":["Changes apply immediately and can be undone."],"e49igR":["Applies to rows ",["0"],"–",["1"]," and columns ",["2"],"–",["3"],". Sizes are in pixels."],"e4_f6h":["Color hex"],"e9OR_8":["Finish the current operation before navigating."],"eEvGys":["Treat consecutive delimiters as one"],"eFQPz8":["The selection or worksheet changed. Try locating cells again."],"eJdVkr":["Up to 3 digits"],"eKJQi9":["Highlight text"],"eKqydA":["The custom formula name conflicts with a built-in function."],"ePK91l":["Edit"],"eTUF28":["Min"],"eTvZsC":["Field "],"eUhuIV":["Note text"],"eVIg7Y":["Low\\nMedium\\nHigh"],"eVP4Au":["Enter a validation formula."],"eVpqq3":["Spill details"],"eWzFsQ":["Custom content"],"eZlhyL":["Enter a workbook display name."],"ehx29F":["First row is a header"],"eiHuBO":["Removing duplicates…"],"ejTruI":["Define a formula once, then call it in any sheet."],"ektDHt":["The table filter was not applied."],"eobJUT":["Name a cell or range to use it in formulas. Names are available throughout this workbook."],"eqSg9V":["Table style"],"euc6Ns":["Duplicate"],"euwLEQ":["Rename sheet"],"exUSTl":["Delete selected rows"],"f1v43E":["Sort was not applied. Try again."],"f3OMYV":["Clear ",["table"]," filter"],"f69-Xr":["Updating selection…"],"f6Hub0":["Sort"],"f9NNT9":["The view changed. Reopen the name editor."],"f9yJNM":["Equals"],"fBx6gk":["Saving hyperlink…"],"fGdAh8":["Worksheet rules"],"fJsCEU":["Rename failed: the table name is invalid."],"fJyysq":["Text to columns"],"fZ-9r2":["The split was applied, but the view could not be updated. Check the sheet before retrying."],"f_vAyF":["Clear column ",["0"]," filter"],"fcXw50":["The source or destination includes locked cells."],"fkLtw5":["Comma (,)"],"fnv1e5":["Already in order."],"fol3l1":["Choose values for condition ",["0"]],"fqSfXY":["Replace"],"fvImQM":[["0"]," selected"],"fxOhsR":["The named range no longer exists."],"g0pd6N":[["table"]," filter",["0"]],"g0yqtr":["Delete name"],"g5jZuG":["Ungroup selected rows"],"g6JIn3":["The cut cells changed. Cut the range again before pasting."],"g7JDZI":["Choose values…"],"g8ePbe":["Enter a custom formula name and expression."],"g9qIf-":["Discussion for cell ",["address"]],"gAlmKU":["Enter a whole-number font size from 1 to 512 pixels."],"gF0RZf":["Use at most 16 characters for the currency symbol, without control characters."],"gFUMrH":["The workbook changed. Paste again."],"gHTMlT":["Search text is too long."],"gHZqDi":["All search matches exceed the 1,000-value or 1 MiB selection budget. Narrow the search."],"gIFQyx":["Select a header and at least one data row for the filter range."],"gQi2u8":["References are relative to the top left cell of Applies to. The formula must return TRUE."],"gUPL38":["Cell editor"],"gUjkl_":["Down"],"gVnFp9":["Unprotect the worksheets before inserting or deleting rows and columns."],"gXMWc_":["Empty cell position"],"gXQX4x":["Deleting…"],"gXsSRS":["Hidden rows and columns stay hidden. No cells are changed."],"gY57pY":["Fixed: ",["0"]],"gfe9mz":["Merge and center"],"giznB_":["Original selection"],"gmAH_b":["Sorting…"],"gnZwjk":["Advanced number parsing"],"gqiG6R":["Invalid comment projection request."],"grrnD3":["This recent location is no longer available."],"gwvmXR":["Merged cells cannot be pasted inside an Excel Table."],"h0RwIK":["Delete worksheet?"],"h1kB6t":["Choose nonempty groups with valid filter conditions."],"h2sgft":["Cell has a note"],"h6KHUh":[" Both times are included."],"h7peZQ":["Allow"],"h9umhu":["The table name looks like a cell reference. Choose another name."],"hA0JZ4":["The workbook changed. Try locating cells again."],"hFUhUx":["Output: ",["0"],":",["1"]],"hFthoo":["Examples"],"hKXqS3":["Fill month-name series"],"hNjsIA":["Select all cells"],"hTA6GE":["Sequence type"],"hTB_7t":["Create a named table from a range, or manage tables on this worksheet."],"hXwYa1":["Choose a table to resize."],"hXzOVo":["Next"],"hYkWhN":["Rename failed: that name is reserved by a built-in function."],"haJ2Hb":["Less than"],"he3ygx":["Copy"],"hgQ0WV":["Lists stay in this workbook session only. Save list stores a preset; Apply series changes cells. Unsaved edits do not change the saved list."],"hgaBQm":["Invalid note projection request."],"hjkLzt":["Base display text"],"hmCmxb":["Enter a valid http:// or https:// address."],"hsu5-o":["The editable range is outside the worksheet."],"hxXfm5":[" Every condition must match. After editing values, use Reapply filter."],"hxm0Tq":["Note for cell ",["address"]],"hxmq2l":["Drag to fill"],"hzltLX":["Rust returned a mismatched comment result."],"i3Z-_Z":["Out of range"],"iFGXi_":["Look in"],"iFWhlD":["Enter a valid formula expression."],"iNpz8V":["Plain text. Times use this device's local clock."],"iORKAp":["Number format category"],"iPFOEw":["Reopen comment"],"iR5h1B":["Total column"],"iUejpH":["Totals function failed: that aggregate is not recognized."],"i_Xzwl":["Trim and ignore case"],"ibJT_S":["Remove editable range ",["address"]],"igsf5M":["Allow editing in selection"],"iqC2n0":["A defined name, A1, B2:D10, R12C3, R[2]C[-1], or 'Sales Orders'!B2. Hidden rows and columns stay hidden."],"isTFAZ":["No comments yet. Start a discussion about this cell."],"isWWs_":["A worksheet supports at most 256 editable ranges."],"itcYmR":["Find all"],"izlhQX":["Top ",["count"],"%"],"j1PbXM":["Copy rule ",["0"]],"j2s8J7":["Copy as HTML table"],"j4W7WC":["Duplicate comment cell in workbook file."],"j8SH4s":["New unsaved list"],"j8idG0":["Remove group ",["0"]],"jJYvgv":["Use Ctrl/⌘+V in the grid to paste from the clipboard."],"jLlC2y":["Clipboard access is unavailable."],"jNqLnz":["English short/full names or Chinese names. One source sample advances by one; more samples infer the cyclic step."],"jONM9I":["In memory"],"jPwUrQ":["Matches literal text, ignoring case. Spaces are kept; * and ? are ordinary characters."],"jQ5Pj5":["Choose at least one comparison column."],"jT3euW":["Fraction"],"jZct80":["Custom list items"],"jcJpsw":["Finish the wildcard escape with *, ? or ~."],"je-GuB":["Number range"],"jezaqq":["The table no longer refers to an available worksheet range."],"jfJuPj":["Sums the cells in a range that meet a given criterion."],"jgsMfy":["Select a table to go to its range. Use Tables to change its name or columns."],"jhRrQD":["Create table needs a selection with a header row and at least one data row."],"jlWBtl":["Invalid custom formula action."],"jmyfzI":["Data validation"],"jpctdh":["View"],"jqvnN9":[["rows"]," × ",["cols"]," cells ready to move. Paste to finish."],"juO0Dc":["Press Search to load matching values."],"jvaBh-":["Custom sort…"],"kAD6nO":["Unprotect the affected worksheet before undoing or redoing."],"kCwoAp":["Changing display text replaces the cell content with text. Leave it unchanged to keep its value or formula."],"kDK8aC":["Could not capture formatting: ",["detail"]],"kGMCQm":["Date — DMY"],"kN1kfu":["Freeze panes"],"kO8cEc":["Custom list"],"kPZK7E":["The custom formula changed outside history."],"kSq3rj":["Enter a six-digit color such as #1a73e8."],"kV58g3":["Choose custom border color"],"kVXU2u":["Protect worksheet"],"kaSSc_":["Then by (",["0"],")"],"kcnNJt":["* = any text, ? = one character, ~ escapes *, ? or ~. "],"kdhqMB":["Decimal places"],"knie_b":["Minimum color"],"koGlgj":["Set column width"],"kqmDKG":["Statistics unavailable"],"krby4S":["Input message"],"kyMIqv":["Midpoint threshold type"],"l-h5Xs":["Rust returned invalid worksheet protection."],"l0y6n4":["Icon set"],"l1MCBK":["No tables yet. Choose a range below."],"l1RZGM":["Lookup & reference"],"l3VRjN":["Apply series"],"l89DdM":["Merging cells…"],"l9NaWn":["Weekday names"],"lCF0wC":["Refresh"],"lGESva":[["0"]," duplicate records; ",["1"]," unique records remain."],"lHv58R":["Show icon only"],"lIktZ3":["Applying split…"],"lMqlrb":["Pasted cells."],"lOyimt":["Workbook files"],"lVo2Hj":["Enter a whole number of decimal places from 0 to 15."],"lYT7pQ":["Delete list"],"lavjOK":["Choose one of the supported time formats."],"lc2S5r":["Table operation failed."],"lgBND6":["Workbook display name"],"lm5BjK":["Select one continuous range to merge cells."],"lmPMjA":["Returns the largest numeric value in the arguments."],"lmxbP9":["This cell type cannot be used in paste arithmetic."],"lpxWKi":["Formula"],"lw9h7q":["Resize row"],"lxtrds":["First column emphasis"],"m-OZHQ":["This statistic has no finite value to copy."],"m0QAp0":["More paste options"],"m16xKo":["Add"],"m2w_cf":["Column names"],"m3gazo":["Capturing formatting…"],"mBR-Se":["Outside borders"],"mEHz0j":["Enter every required argument."],"mIFfLs":["Recent locations"],"mOFgdC":["Maximum"],"mPPkxU":["This function takes no arguments."],"mRbPqB":["Update the preview to apply your changes."],"mRbz9t":["Create a blank workbook and replace the current workbook? Download first to keep unsaved changes."],"mS4yDu":["This spill target is outside the current worksheet canvas."],"mSnrhP":["Reverse icon order"],"mWNPPQ":["Custom font size"],"mX_isJ":["Vertical"],"mYGY3B":["Date"],"mYROba":["Could not update the hyperlink display text."],"mZnrg-":["Move sheet left"],"mh5Ywn":["Changes apply immediately. Manual cell, row and column formatting stays in place."],"moiqMa":["Format table"],"mp5Az0":["Invalid custom formula projection request."],"mujEVU":["New table"],"mwtcGl":["Close comments"],"mzg0pt":["Combine options for this paste. Ordinary Paste stays unchanged."],"n-kY0b":["Loading note…"],"n8796O":["Select the anchor cell before changing its comments."],"n9nSNJ":["Time format"],"nEhxD1":["Maximum color"],"nFrAsL":["Insert draft"],"nGRMma":["Remove conditional format"],"nIkxny":["copy…"],"nJUON5":["A pasted value does not meet its cell’s data validation rule. Nothing was pasted."],"nLxKSL":["Compare by"],"nMKyui":["Dot (.)"],"nOPbWJ":["Right"],"nQO7BF":["Save note"],"nSgEqx":["Loading preview…"],"nSkB8g":["Information"],"nUvneV":["No matches found."],"nVyzS0":["Reading spill details…"],"nX8FNG":["Collapse ",["label"],", level ",["0"]],"nYD_Cq":["Ascending"],"nZsuDO":["New formula"],"nc9GHM":["Changes whole columns only. Cell contents, styles and row heights stay unchanged."],"ne8B8T":["Add data row"],"nf0r3g":["Create table failed: the table name is invalid."],"nhlurn":["Rank direction"],"nl87fQ":["Choose a named range to delete."],"nvOImr":["Date — YMD"],"nxH2SU":["Could not confirm the number format. Check the cells before retrying."],"o1F7G8":["Column "],"o24sy3":["Active cell value"],"o5OmFm":["Bottom ",["count"],"%"],"o6USeU":["Workbook files must be 64 MiB or smaller."],"o7J4JM":["Filter"],"oJeSXO":["Could not confirm the split. Check the sheet before retrying."],"oKclF5":["Select all search matches"],"oMNtqO":["Date — MDY"],"oMp0l7":["Showing ",["0"],"–",["1"]," of ",["2"]," duplicate records"],"oXDjoV":["Date — MYD"],"oXmBnV":["Font family"],"o_S4BG":["Border color"],"odah-k":["Open this file and replace the current workbook? Download first to keep unsaved changes."],"oh9cEE":["Update preview"],"oisjJ1":["Unprotect worksheet"],"ojeUOq":["Returns the number of characters in a text string."],"omWsMB":["Selected ",["cells"]," cells in ",["areas"]," areas. Searched ",["range"],"."],"ooB4kZ":["Close color palette"],"ovBPCi":["Default"],"owOdhN":["Break positions"],"ox7t_r":["Border color ",["color"]],"oxYuXt":["Delimited"],"p0Iq25":["Insert link"],"p1hcK1":["Decrease font size"],"p8Tdwt":["Invalid hyperlink projection request."],"p98xmP":["Applies to"],"pBbOIk":["First occurrence"],"pC_Rp1":["Compares native base display text across all applied ranges, ignoring text case. Number formats are included; conditional formatting is excluded. Blank cells, empty text and errors are skipped."],"pE2vYC":["Each page shows up to 20 duplicate rows, 12 columns and 120 characters per field. Removal processes the full selected range."],"pF-vCW":["The worksheet no longer exists."],"pHgLQr":["Multi-line values stay intact. Use Choose values to change them."],"pMkWca":["Adds all the numbers in a range of cells."],"pOE8Vh":["Space"],"pQqW2g":["Resolve discussion"],"pSpoKs":["Formatting exceeds 100,000 addressed cells. Choose a smaller selection."],"pUEA3T":["Invalid comment timestamp."],"p_78dY":["Position"],"pcxy7h":["A formula refers to a larger range. Moving part of that range is not supported yet."],"pfKLo-":["Equal to"],"piRcOa":["Enter both minimum and maximum."],"ppsBc0":["Group selected rows"],"ppxHxA":["Finish the current operation before changing a hyperlink."],"pqULT-":["Multiply"],"pvOvWS":["Paste and expand table"],"pzNy11":["The fill source selection changed. Drag again."],"pzutoc":["Italic"],"q3il6U":["Font size"],"q5g1ph":["Select column ",["label"]],"qABLyn":[" · Stop if true"],"qE1wQc":["This selection has no unfiltered rows to copy."],"qGNf9H":["Filter conditions…"],"qHskmN":["The workbook is busy. Try again when it is ready."],"qNUKgA":["Copy ",["label"]],"qRSDH_":["Icon style"],"qS5__Q":["Gray"],"qUsbzg":["Border settings"],"qVyNMm":["And"],"q_YJ1c":["The workbook file has no sheet canvases."],"qfC6ZH":["The workbook is unavailable."],"qjcuv8":["Worksheet recalculated (",["count"]," formulas)."],"qkNawh":["Choose at most 1,000 values within 1 MiB, or narrow the search."],"qp_pPt":["Insert hyperlink"],"qrXszS":["Remove group"],"quK02K":["Auto sum"],"qxdN8v":["Comparison columns"],"qzwvx5":["You can save at most 32 custom lists per workbook session."],"r2PL7g":["Unfreeze panes"],"r44k1H":["Negative bar color"],"r4TB0d":["Split one source column. Fields keep text unless you select a different type. Empty fields clear destination cells. Hidden rows are included."],"r6y-jM":["Warning"],"rDnCdZ":["Matching rows"],"rE2nAF":["Rust returned an invalid comment thread."],"rI0Jne":["Cell edits, formatting, clearing, paste, cut moves, row/column sizes and worksheets. Up to 50 steps in this session."],"rVGc3H":["Values and formatting"],"rWi7Ty":["Enter a list name of 1–64 characters."],"rdtCNx":["Fill series"],"rerNas":["Workbook names"],"rfw87a":["An array result cannot be cut independently."],"rgdOvb":["Rust returned a mismatched protection result."],"riTRt9":["Insert or delete rows and columns"],"rrl4Qp":["Semicolon"],"ruCp-9":["Loading custom formulas…"],"s9dV9G":["Note text cannot exceed 32767 characters."],"sBBaEx":["Text condition"],"sCspXw":["Unhide this row or column before locating the record."],"sD2PM8":["Reply to comment"],"sFhUij":["Could not preview duplicate records."],"sLPyYh":["Top / bottom"],"sQoaQp":["Returns TRUE if all arguments are TRUE."],"sR1BeQ":["Delete failed: the table could not be found."],"scPBeJ":["Apply sort"],"sfkwPx":["Select row ",["label"]],"shCLkz":["Clear formats"],"sizqSm":["Custom formulas must be restored into a fresh workbook."],"snXACP":["Comment text cannot exceed 32767 characters."],"sra8tB":["Insert columns"],"ssHjkW":["Invalid protection projection request."],"ssPgEV":["Updating outline…"],"strO81":["Save list"],"svN3--":["Collapse group"],"syyeb9":["First"],"szUECB":["The clipboard contains an invalid formula. Nothing was pasted."],"t0ZIPp":["Subtract"],"t0r_cI":["Copied ",["rows"]," × ",["cols"]," cells."],"t25i1d":["Move sort level ",["0"]," down"],"t9X8Jk":["Preview unavailable. Change a setting to try again."],"tGdqgz":["The table no longer exists."],"tLNhV1":["Show rows where"],"tP5eau":["Collapse all column groups"],"tXkhj_":["Start"],"tYqKzq":["Date style"],"t_YqKh":["Remove"],"tfDRzk":["Save"],"tlsEba":["Show outline level"],"toz93w":["Compare displayed values and keep the first record. Only cells inside the selected range move. Filtered-out rows stay in place; manually hidden rows are included."],"tvyeCU":[["rows"]," rows filtered out."],"tzHS6m":["Paste formatting only"],"u1P2XM":["Rename failed: the name looks like a cell reference. Choose another name."],"u4oHnx":["Row and column visibility"],"u5Pn6t":["Select samples and destinations in one row or column. Keep the first samples; extend their pattern into the remaining cells, including hidden cells."],"uAFbrK":["Matching text"],"uCjbh3":["Find and replace (Ctrl/⌘+F)"],"uEWvbF":["A name stored in this workbook, not an authenticated identity. Up to ",["COMMENT_AUTHOR_MAX"]," characters."],"uHD9TE":["Unhide selected rows and columns"],"uIXWHE":["When this rule matches, skip all lower rules for that cell."],"uVMHzf":["Include a source row or column and at least one destination."],"uWMwGl":["Range: ",["0"]],"uYkSuw":["The worksheet changed. Close and reopen Filter."],"ubIKLk":["The first row becomes the header. Blank or duplicate headers receive unique names."],"udbJOQ":["Exact text"],"uhz8U_":["Filter status"],"uqHlC3":["The worksheet dimensions changed outside history."],"usWbHt":["Remove sort level ",["0"]],"usbGDQ":["Resize keeps the header row fixed. Include the totals row when shown. Convert to range keeps your data and formatting."],"uxLDG2":["Unprotect the worksheet before pasting column widths."],"uxonbb":["Split after these character positions, for example 2, 5. Unicode code points count as one."],"uzUlwe":["One item per line (2–512 unique items). One source sample follows the list; more samples infer a cyclic step."],"v1HxXA":["Paste cannot overwrite an array result."],"v6M8gE":["Enter a range inside the selected worksheet, for example A1:A100."],"vADP4K":["Number format settings"],"vBxmv9":["Custom formula parameters must be unique."],"vCS6V9":["Unsupported workbook file. Choose an .einfach.json file exported by this app."],"vFTBYQ":["Search filter values"],"vJ38Ph":["The target cells are locked on a protected sheet."],"vJBsua":["Source field number"],"vKwYeC":["Hide table totals"],"vLMZdC":["Loading comments…"],"vOmCXz":["The comment worksheet no longer exists."],"vOmz96":["Split mode"],"vSjOej":["Reorder conditional formats"],"vSmnZm":["Recent operations"],"vT-CRx":["Reapply filter"],"vXTvG8":["Variance"],"vYm8sP":["The selected sheet is no longer available"],"vZh_GQ":["Formula expression"],"vZmm0f":["Create table failed: that name is reserved by a built-in function."],"v_70lO":[["0"]," cells"],"vaov4x":["Add a totals row below the table. Existing cells are never overwritten."],"vbdECu":["Apply borders"],"vcoUxC":["Another mutation is in progress."],"vi233w":["Recalculate"],"vi8wbc":["Paste and multiply"],"viJSRT":["Last page"],"viRbh6":["Could not confirm the color change. Check the cell before retrying."],"vizqEA":["Row height"],"vkVzyy":["Color scale"],"vriSrj":["One date advances by a day. Two or more dates infer day, week or month steps; month ends stay at month end."],"vrkvoX":["Series…"],"vu1f-F":[["detail"]," Current workbook kept."],"vvz4cN":["Unprotect the worksheet before changing conditional formatting."],"vwdDL3":["Formatting only"],"vxZiRd":["Style preset"],"w0fzJB":["Move sort level ",["0"]," up"],"w1BZpO":["Enter a formula of at most 8192 bytes with a valid range anchor."],"w5m-ye":["Last column emphasis"],"wBMjJ2":["Count"],"wDSXeX":["This clipboard has no workbook formatting. Copy cells in this workbook first."],"wG2Sa9":["Trim whitespace"],"wJeoYz":["Workbook sheets"],"wMHvYH":["Value"],"wNbipR":["Create table"],"wRbth3":["Fill down (Ctrl/⌘+D)"],"wRhcPw":["Double quote (\\")"],"wSXm5S":["Unique"],"wU4VnX":["Applying font size…"],"w_uqf-":["Narrow nonbreaking space"],"wcGDMa":["Fixed: ",["value"]],"wgNoIs":["Select all"],"wnTaAw":["First row contains headers"],"wo2Eei":["Totals row failed: the row below the table is occupied. Clear it and try again."],"woFAQS":["Worksheet tables"],"woq8J0":["The insertion would move a note outside the worksheet."],"wpT1VN":["Condition"],"wrok4H":["Fill color"],"wrsYRH":["Worksheet"],"ws21Un":["Enter a valid validation formula."],"wzo8rz":["Saving validation…"],"x-6LjX":["Formatting applied."],"x5ECoP":["Maximum ",["0"]],"xCOeHz":["Current sheet"],"xDE6Uf":["The rule no longer exists."],"xEjvkZ":["Only the selected rectangle moves. Filtered rows stay in place; manually hidden rows participate. Levels are applied from top to bottom."],"xGBpPe":["Freeze top row"],"xGVfLh":["Continue"],"xIDcol":["Validation messages cannot contain a null character."],"xIfKEA":["All categories"],"xOJFdh":["The original range was deleted. Enter a new range to repair this name."],"xOeI33":["Delete sheet"],"xRbHOT":["No custom formulas yet."],"xSKM_n":["The workbook changed. Reopen the custom formula editor."],"xUFaGr":["Outline groups"],"xVOlTJ":["Rust note editing is unavailable."],"xeiujy":["Text"],"xf_klh":["Find all before choosing a result."],"xgL40b":["Reopened this discussion"],"xi4nE2":["Error message"],"xkjHnr":["Group selected columns"],"xlq_V1":["Logical"],"xqYmay":["Destination cell"],"xr-IDS":["No borders"],"xtIjJL":["Custom formulas"],"xwftZJ":["Repeating group"],"y3aU20":["Save changes"],"y5Izej":["Update the preview to review your changes."],"y8VGPa":["Error alert"],"yAU_1D":["Up to 2 digits"],"yBF5J5":["New rule"],"yCbhA6":["3-color scale"],"yLQWOb":["Could not confirm removal. Check the sheet before retrying."],"yOngy-":["Use thousands separator"],"yR_wYS":["Unprotect the worksheets before changing workbook names."],"ySL-Jo":["Hyperlink"],"yXa-3j":["Rename a column here or edit its header cell. Formulas update with the name."],"yYR6za":["Display text"],"yYxB17":["Clear all"],"y_LCBu":["New blank workbook"],"ycqaQU":["Fill selected range"],"ydd6Gh":[["table"]," filter conditions…"],"ygCKqB":["Stop"],"ygUw8s":["Replace all"],"ylbHdw":["The workbook or worksheet changed. Close and reopen Conditional formatting."],"ywfxn9":["Search values"],"yxnt3y":["Fill status"],"yyJNmx":["Enter one range inside this worksheet, for example A1:C10."],"yz7wBu":["Close"],"z5BgQK":["The selected range cannot be changed."],"z6G8xA":["At least 2 numbers with a constant non-zero difference, including decimals."],"z7hrVQ":["No blocking cell can be identified. Check worksheet limits or the array size."],"z7wnu4":["Column widths only"],"z85GiQ":["Arrays"],"zBLASl":["Lambda"],"zBn89v":["Copy the first selected row down or the first selected column right"],"zJoyX1":["Column width"],"zK2Sra":["Use different columns and valid numbers; minimum cannot exceed maximum."],"zKfJY_":["Recalculating…"],"zKivET":["Dotted"],"zOth7_":["Duplicate custom formula in workbook file."],"zQX5Dj":["List name"],"zRxU0c":["Format painter"],"zSyrS8":["Use nonempty groups with valid filter conditions."],"zTJjcX":["Delete selected columns"],"zWoRqM":["Spill details are out of date. Refresh to try again."],"zXgopL":["Field type"],"zYv2fW":["Merge these cells?"],"z_ykwV":["Rename table column"],"zbp0MB":["Begins with"],"zfvhB0":["The workbook file has an invalid sheet canvas."],"zhQBLN":["Filter selected range (first row is header)"],"zlaIZ9":["Stop if true"],"zmLUNP":["Merge / Unmerge"],"znOI0s":["Multi-area selection"],"zs4_0a":["Compare column ",["0"]],"zsiX7I":["Bottom"],"ztfoOA":["Cell has comments"],"zxe04A":["Choose a table to convert."],"zyDxYM":["Paste arithmetic needs cell contents, not formatting only."]}`),Rr=JSON.parse(`{"--4TXR":["公式单元格:",["0"]],"-2Eao6":["重新打开讨论"],"-4qQPN":["相邻列没有可向下延续的连续数据。"],"-8PP0T":["区分大小写"],"-EEkxe":["此工作簿中没有表格。"],"-FE29b":["尚无最近定位记录。"],"-G6MxY":["正在更新行列显隐…"],"-GTLn8":["请使用非空组和有效数字;最小值不能大于最大值。"],"-Htako":["查找或替换"],"-Hts3l":["请选择要应用格式的单元格,按 Esc 退出。"],"-LmBbZ":["请输入查找内容。"],"-TWu4U":["工作表保护"],"-Xe3y_":["常规字段"],"-_TBF9":["此插入操作会将批注移出工作表。"],"-dwSnp":["选区或工作簿已更改,请关闭弹窗并重新选择区域。"],"-gRqKI":["工作簿文件中存在重复的超链接单元格。"],"-hSAzr":["定位到重复记录第 ",["0"]," 行"],"-kMZ8o":["数据条"],"-sjcnp":["重命名失败:该列名已被使用。"],"-tc1Xu":["请选择同一列中的连续单元格。"],"-y8AX3":["工作簿文件中的工作表数据不匹配。"],"-yOx8u":["正在保存更改…"],"-ysFds":["垂直对齐"],"-z1N4o":["重命名失败:找不到列。"],"-zPOh6":["仅粘贴列宽"],"00iwhf":["调整表格范围"],"06d1qf":["个已有内容的目标单元格"],"0AfV3H":["填充未生效,请重试。"],"0BuG9d":["选中时显示输入提示"],"0DLxHa":["只改变显示方式,原始日期值保持不变。"],"0H_eqi":["常规格式"],"0LXHNL":["右框线"],"0LzvWR":["匹配完整文本,不区分大小写。* 匹配任意文本,? 匹配一个 Unicode 字符,~ 用于转义 *、? 或 ~。保留空格。"],"0P1NKR":["此浏览器无法写入剪贴板,请使用安全的 HTTPS 或 localhost 页面。"],"0TjkxD":["粘贴并相减"],"0V2yZ6":["请先完成当前操作,再更改备注。"],"0doodQ":["编辑规则"],"0j-RGO":["水平对齐"],"0lZZNh":["排序列 ",["0"]],"0nTPQw":["删除备注"],"0tKM_D":["输入未被接受,请检查草稿后重新提交。"],"0vk7py":["请选择一个连续的填充区域。"],"0vsn4X":["选区已更改,请关闭弹窗并重新选择目标。"],"0vwAro":["正在更新冻结窗格…"],"13oyIk":["第 ",["0"],"–",["1"]," 列"],"167oUv":["隐藏表头会保留列名,并清除此表格的筛选。"],"1BEtVC":["按顺序一起重复标记的参数。"],"1CyzJZ":["汇总函数"],"1DC2E3":["记录已删除,但视图更新失败。请检查工作表后再重试。"],"1FhUEz":["AVERAGE — 平均值"],"1JWxXm":["请输入有限的阈值数值。"],"1acGm3":["原生引擎返回的验证确认结果不匹配。"],"1azfe2":["禁用条件格式"],"1b_WRI":["一个批注线程必须包含1至1000条记录。"],"1c2Jwi":["突出显示填充色"],"1dAXgt":["注册公式"],"1kXvRz":["隔行底色"],"1mKYZW":["此结果已更改,请更新预览。"],"1olIxt":["日期 — 日年月"],"1qoE0t":["转置粘贴"],"1tgCrA":["工作簿已更改,请重新查找。"],"1zHGFg":["保护配置引用了不存在的工作表。"],"2-gU4F":["应用数字格式"],"20DDH7":["设置边框格式"],"21L4AA":["显示第 ",["0"]," 级列分组"],"23JPFP":["编辑规则 ",["0"]],"25Qdl_":["启用规则 ",["0"]],"28_CwG":["已配置的字段类型"],"294CLW":["重置尺寸会保留单元格值和格式,不会根据文本自动调整。"],"2BBAbc":["列表"],"2EZ1-q":["汇总函数操作失败:请先启用汇总行。"],"2P4BrQ":["函数"],"2SgRHg":["为第 ",["0"]," 组添加条件"],"2UulkW":["复制或粘贴前,请选中完整的合并单元格。"],"2V3rX6":["剪贴板中没有单元格文本。"],"2Xl1IN":["移除自定义公式"],"2YfH3r":["删除行"],"2awTZq":["粘贴公式和数字格式"],"2b8FLG":["隐藏行"],"2jjTif":["无效输入需要明确选择继续或取消。"],"2kwC9a":["填充等差数列"],"2lCz8v":["单元格值"],"2nW6By":["行分组级别"],"2ooIbd":["参数组 ",["0"]],"2pK_MR":["批注内容不能包含空字符。"],"2u3siP":["三箭头"],"2yAzV6":["编辑表格 ",["0"]],"3-wLc0":["已清除筛选,手动隐藏的行保持不变。"],"36SIHC":["撤销 (Ctrl/⌘+Z)"],"384ruS":["将多个文本字符串连接为一个。"],"38nohI":["筛选值"],"39cJ8L":["剪切区域与命名范围重叠。请先在名称管理器中修改或删除该名称,再跨表移动单元格。未移动任何单元格。"],"3AURXx":["表格操作失败:列名无效。"],"3GQM5r":["创建表格失败:名称类似单元格引用,请使用其他名称。"],"3GjSHx":["打开工作簿"],"3Ib6FN":["下移"],"3JICy8":["填充线性趋势"],"3WtHTo":["请先将单元格移出 Excel 表格,再跨表剪切。未移动任何单元格。"],"3_dk78":["请先选中主单元格,再修改其超链接。"],"3dioPi":["界面语言"],"3iQamk":["此输入不符合单元格的数据验证规则。"],"3nYLve":["请输入此工作表内的区域,多个区域用逗号分隔,例如 A1:A10, C1:C10。"],"3oiK7_":["图标下限阈值数值"],"3uQmjD":["平均值"],"3vRLla":["返回正平方根。"],"40hqlo":["新名称与当前名称相同。"],"43RbWy":["第 ",["0"]," 组 · 且"],"45DEY9":["被 ",["0"]," 阻挡。"],"45RK77":["向下填充"],"484LKL":["移除链接"],"4AnZbD":["工作表筛选"],"4DU3-v":["解决批注"],"4Gak8P":["工作簿已更改,请关闭并重新打开数据验证。"],"4Hn9ir":["匹配单元格超出了当前工作表范围。"],"4MYiOO":["图标下限阈值类型"],"4SrmA9":[["0"]," 次可撤销 · ",["1"]," 次可重做"],"4U-esm":["仅支持原生 .einfach.json 文件,最大 64 MiB,不支持 XLSX。打开或新建工作簿会替换当前视图,并重新开始撤销历史。"],"4_5AQh":["编辑超链接"],"4bZ86B":["自动命名"],"4bsZcL":["替换前,请先取消目标工作表保护。"],"4cECyK":["最高值"],"4cTW4f":["重命名表格"],"4eM0MO":[["0"]," 工作表"],"4firZq":["未选择统计项"],"4hrl8k":["请先选择表格。"],"4iEJfd":["限制选区内的新输入,保留已有值。"],"4jvvK_":["批注内容"],"4pSxwB":["定位"],"4ra5M0":["正在向下填充…"],"4uX-bI":["源区域:",["0"]],"4vR1KG":["按选区首列排序;请选中所有需要一起移动的列"],"4x25he":["工作表历史操作改变了剪贴板来源,请重新复制或剪切后再粘贴。"],"4zwcON":["隐藏或显示行列前,请先取消工作表保护。"],"52e4Ly":["项数"],"55gvwH":["无法确认此次编辑是否已保存,请检查单元格后再操作。"],"56tAzN":["列表已删除。"],"5E7eeF":["三色"],"5QVBgA":["正在查找…"],"5RjJ0D":["请选择 1–16384 之间的源字段编号。"],"5TqcTI":["返回参数逻辑值的相反值。"],"5UhrA-":["没有匹配的值,请修改搜索内容。"],"5UohOl":["编辑命名区域"],"5eV1U4":["自定义公式名称已被使用。"],"5gxkPZ":["筛选表格"],"5jN07E":["拖动填充,双击向下填充。按住 Ctrl/⌘ 复制;Escape 取消。"],"5oRu1T":["重复记录预览分页"],"5qyw0O":["跳过空白单元格"],"5sJI_R":["小于或等于"],"5zT0Ji":["表格汇总"],"6-JjXR":["此地址超出了当前工作表范围。"],"6-fTif":["选区已更改,请关闭并重新打开序列设置。"],"6-mXJV":["工作表列表加载失败。"],"61OlHU":["忽略空白单元格"],"61j71l":["重命名失败:列名无效。"],"62FGW_":["字段编号以跳过前的源字段为准。未指定的字段保留文本。“常规”转换可识别的数字、布尔值和明确的日期,公式保留为文本。日期按所选顺序解析,无效日期保留文本。两位年份:00–29 表示 2000–2029,30–99 表示 1930–1999。跳过字段后,其余字段向左排列。修改分列规则会重置字段类型。"],"6BMkc7":["返回参数中的最小数值。"],"6CaT8a":["正在应用格式…"],"6ELX9Y":["清除格式"],"6EnLCz":["溢出区域:",["0"]],"6KYDeP":["保存规则"],"6KmQ8Y":["单元格 ",["address"],"。单击选中;按住 Ctrl/⌘ 单击打开链接。"],"6Ktvn1":["讨论中"],"6Qpg1W":["转换表格为普通区域"],"6R-fPZ":["下载工作簿"],"6RS7qT":["新名称"],"6Vd6ar":["按条件选择单元格"],"6YUp4B":["表格操作失败:该列名已被使用。"],"6YtxFj":["名称"],"6ar9wo":["选区统计失败。"],"6ejfvr":["已请求下载,请保留文件以保存工作。"],"6naYPx":["匹配通配符"],"718xCo":["错误标题"],"76brUi":["无法预览此次分列。"],"7FMdyi":["中间值颜色"],"7SsmY_":["请选择同一行或列,包含足够的样本和至少一个目标单元格。"],"7TlGX4":["移动工作表"],"7Vdedt":["替换为"],"7Yejny":["向右填充"],"7ZtCCX":["第 ",["0"],"–",["1"]," 项结果,共 ",["2"]," 项"],"7d6bp1":["修改数据验证前,请先取消工作表保护。"],"7dNL2O":["正在向右填充…"],"7d_FW1":["请输入表格名称。"],"7iutXp":["定位条件"],"7jE4WS":["无法确认字号更改,请检查单元格后再重试。"],"7oTUDm":["删除记录前,请先更新预览。"],"7qxXKS":["选择",["0"]],"7wqKgX":["最大阈值类型"],"8-4V8D":["表格"],"8-YkhO":["插入选中的列"],"83IDA4":["设置格式前,请选中完整的合并单元格。"],"87mu_4":["COUNT — 数值计数"],"8CAxTp":["删除"],"8ChTcP":["关闭验证提示"],"8DFPLM":["覆盖"],"8EBiEB":["表格操作失败:找不到列。"],"8Fdybh":["请至少保留一张工作表。"],"8Ntmm5":["链接地址"],"8PJnrn":["请输入有效的 LET 或 LAMBDA 表达式。"],"8Tg_JR":["自定义"],"8abv4W":["删除“",["0"],"”及其全部数据?在当前会话的历史记录保留范围内可以撤销。"],"8ow7JB":["字段类型"],"8pFplU":["原始值和类型"],"8rySLA":["创建名称"],"8v5ISZ":["移除条件 ",["0"]],"8xss61":["下移规则 ",["0"]],"8xv00d":["范围 ",["0"],["1"],":",["2"],["3"],"。首行保持可见。"],"92NTaO":["预览单元格"],"92XSWG":["编辑单元格"],"92pmIM":["此工作簿为只读。"],"95Zxe1":["将文本转换为大写。"],"9DMyk3":["工作簿已更改,请重新打开表格设置。"],"9DsaKt":["所有列已隐藏,请使用“隐藏 / 取消隐藏”恢复。"],"9EFm2O":["粘贴值和数字格式"],"9Fl-hr":["已在多个区域选中 ",["selectedCellCount"]," 个单元格。清除和格式操作应用于所有区域;边框操作仅支持单个连续区域。"],"9Ht7x7":["任意参数为 TRUE 时返回 TRUE。"],"9I2SnE":["无法写入剪贴板,请使用浏览器复制快捷键。"],"9P7P0N":["请先重新打开讨论再回复。"],"9S3wLJ":[" · 已禁用"],"9WO3wH":["排序顺序 ",["0"]],"9XO9_9":["为选中的单元格设置 1 到 512 像素的整数字号。"],"9_h-Y4":["允许末尾负号(123- 转为 -123)"],"9bCtf-":["剪贴板文本的引号不匹配,未粘贴任何内容。"],"9bamiZ":["分隔符"],"9biXff":["请输入非空列名,或按 Escape 取消。"],"9coJct":["第 ",["0"]," 项,共 ",["1"]," 项 · ",["2"],"!",["3"]],"9eQzdR":["格式已应用。可继续选择其他区域,按 Esc 退出。"],"9hYxj3":["参数,以逗号分隔"],"9hlJ3Q":["字号(像素)"],"9oDhvO":["数学与统计"],"9q0OPd":["自定义取色器"],"9uI_rE":["撤销"],"A-5jhW":["千位分隔格式"],"A1taO8":["搜索"],"A1yhyK":["添加或组"],"A4NYmf":["生成公式草稿"],"A4XwbS":["重命名列"],"A7kETi":["收起值列表"],"A8SR9V":["双色色阶"],"ABs-Wx":["自动换行"],"ACyvJN":["选区已更改,请重新选择合并。"],"ADCve-":["添加条件"],"ADtaE6":["为控制历史记录的内存占用,已移除较早的操作。"],"AHOl4W":["函数名称"],"AInHa-":["显示值"],"AJzRee":["单引号(')"],"AKf6v0":["请输入递增的正整数字符位置,例如 2、5。"],"AKq9zo":["应用分列"],"AN35sL":["数字格式预览"],"AOLIUl":["链接内容"],"APMjZV":["已在 ",["cells"]," 个单元格中替换 ",["occurrences"]," 处内容。可继续查找下一个。"],"ASnGmQ":["新建批注"],"AV6Y10":["请输入有效的阈值公式。"],"AWOSPo":["放大"],"AXGKFs":["粘贴选项"],"AXoRX8":["上一张工作表"],"AcHaNt":["使用通配符"],"AdV10P":["活动单元格不在表格中,请选择表格内的单元格后再切换汇总行。"],"AeRqCl":["仅在当前工作簿会话中生效。刷新后恢复全部六项统计。"],"AfGIu2":["名称管理器"],"AgLpDJ":["关闭布局错误提示"],"AgpQe_":["表格操作失败:自定义公式仍在运行,请稍后重试。"],"Alp6dg":["添加表格行"],"An12YD":["常量"],"Aovm5Q":["正在筛选…"],"ApqPN5":["文本比较"],"As7Osr":["日期与时间"],"AtooT1":["工作簿标题长度必须为 1–256 个字符。"],"AuSIB3":["公式函数"],"AunQP1":["排序状态"],"AxQiPW":["求和"],"B-aFC9":["正在粘贴…"],"B34wYQ":["替换公式"],"B7K4tv":["选择单元格以计算统计结果"],"BAOW-8":["条件格式"],"BDuOuJ":["自定义公式数量超过上限。"],"BFEFZF":["汇总使用 SUBTOTAL,排除筛除和手动隐藏的行。"],"BHfXY4":[" 每组内的条件必须全部匹配,满足任一组即可。编辑数值后,请重新应用筛选。"],"BIPC53":["修改表格前,请先取消工作表保护。"],"BJid06":["表格范围"],"BNT7SL":["批注历史"],"BU_dbm":["查找的工作表已不存在。"],"BW1hpN":["选区统计设置"],"BZ9DPB":["重新加载值"],"BhOzmp":["正在等待表格列表…"],"BiJHCQ":["请等待工作表加载完成。"],"BjAJOY":["定位到公式单元格"],"Bv5a9_":["选区统计"],"BvttON":["已选中:",["selectedCellCount"]],"BwAJqT":["收起条件 ",["0"]," 的值列表"],"ByhloL":["一个批注线程不能超过1000条记录。"],"BzfzPK":["项数"],"C0wXVT":["范围"],"C8kSkE":[["0"]," 筛选条件"],"CCkP4c":["返回显示文本,不创建可点击链接。"],"CCljia":["单元格批注"],"CG69YW":["请输入已定义的名称或有效的 A1、R1C1 引用,也可在前面加上工作表名称。"],"CGJPDg":["单引号(')"],"CHhGMU":["标准颜色"],"CI_GQy":["跳过字段"],"CK1KXz":["最大值"],"CLtx7m":["重复值 / 唯一值"],"CQ0uIF":["粘贴时跳过空白"],"CTe2Gc":["不等于"],"CUOf5i":["向右填充(Ctrl/⌘+R)"],"CW11B-":["最小值"],"C_K0Ja":["最多 8 组、共 32 个条件;每组最多 8 个条件。"],"CbUVmB":["定位到 ",["address"],",第 ",["0"]," 个匹配项"],"CgYU7p":["下框线"],"CgeaO0":["筛选条件 ",["0"]],"CgohER":["规则类型"],"Cko536":["降序"],"CoziCm":["百分比格式"],"Cqcd62":["缩放 100%"],"CtroLx":["显示表头"],"D-20RG":["显示表格汇总行"],"D-jkjv":["复制为 Markdown"],"DB-3zd":["重命名失败:找不到表格。"],"DB8zMK":["应用"],"DBn_rU":["粘贴内容将超出工作表边界,请选择其他单元格。"],"DCz3x6":["等差数列"],"DHhJ7s":["上一项"],"DHn9h5":["创建表格失败:找不到目标工作表。"],"DLU2oN":["编辑保护用于防止意外修改。它不加密工作簿,也不保证内容保密。"],"DPfwMq":["完成"],"DThqd8":["左框线"],"DZV1P-":["修改筛选前,请先取消工作表保护。"],"DaB2qN":["显示名不能包含控制字符。"],"DdiXJt":["标准差"],"Dhw0Mo":["要替换公式,请选择“公式 / 原始值”。不会覆盖计算结果。"],"DiY0xN":["填充日期序列"],"DnJVJ2":["在活动单元格处冻结"],"Dnn2XG":["自动"],"DoWJih":["小数分隔符"],"Duy-1C":["源样本数量"],"DvdI9b":["选择当前页"],"DwIi5W":["自动阈值使用完整数值范围,高级阈值字段会覆盖默认端点。"],"DyPbHH":[["0"]," — 双击或按 F2 重命名"],"DzUAQh":["条件为真时返回一个值,否则返回另一个值。"],"E0pRq5":["所有内容和格式"],"E24Kfn":["不支持的规则(暂不可编辑)"],"E2Y17F":["其他分隔字符"],"E3-u01":["筛选(",["0"],")"],"E3Ffuz":["表格内不能输入溢出数组。请使用单值公式,或按 Escape 取消。"],"E4mitS":["取消分组"],"E6OQlW":["此工作表已受保护。"],"ECiFDS":["请使用 YYYY-MM-DD 格式。"],"ECq8zV":["增加缩进"],"EKZQ5Y":["表格已更改,请关闭并重新打开筛选。"],"ENWIgr":["仅值"],"EdQY6l":["无"],"EhptVN":["正在更新行列…"],"EiC2i7":["线性趋势"],"ElWC92":["编辑条件格式"],"EnPnwM":["仅粘贴公式"],"Eu18n4":["当前版本提供 ",["0"]," 个函数。插入公式草稿后,请在公式栏输入参数。"],"Evm31h":["名称框"],"ExvY_b":["Rust 返回的超链接结果与当前操作不匹配。"],"EzOCXe":["工作簿已更改,请重新提交操作。"],"EzQ4N6":["移除公式"],"F18WP3":["参数"],"F1MSTQ":["粘贴值和格式"],"F3O9gl":["编辑表格"],"F3u9-K":["自定义列表最多包含 16384 个字符。"],"F7Ws55":["无法确认布局更改,请检查单元格后再重试。"],"F7nFgA":["实现限制"],"FBIuPX":["清除选择"],"FBVro3":["突出显示值"],"FG5Dyz":["转置"],"FG7Jjn":["正在读取工作表保护…"],"FIxh24":["插入函数"],"FM4f_9":["请选择一个连续区域。"],"FO3oYr":["行高和列宽"],"FZg3wM":["运算"],"FZmScW":["请选择一个矩形区域以允许编辑。"],"Few87o":["自定义公式定义不能包含递归调用环。"],"FjkaiT":["缩小"],"FmdZUH":["缺少批注内容。"],"FsbChj":["工作簿命令"],"FuYWBY":["列表项,每行一项"],"FynPmb":["请输入 ",["min"],"–",["max"]," 像素之间的整数。"],"G1X9rt":["原生工作表保护不可用。"],"G7He-e":["示例:DOUBLE,参数为 amount,表达式为 =amount*2。请将单元格和区域作为实参传入。每个参数均为必填。"],"GEPL7V":["请选择非空且不大于 64 MiB 的工作簿文件。"],"GLTWC4":["保护更改无效。"],"GSrs0x":["此次编辑未保存。"],"Gbh8_x":["备注内容不能包含空字符。"],"Gcj4TO":["请先找到匹配项再替换。"],"Gd5rfz":["匹配项位于隐藏行或列中,请取消隐藏后查看。"],"Gi0VDy":["表头行"],"GimQzY":["工作簿"],"GkN4HP":["隐藏选中列"],"GmYzlR":["原生批注编辑不可用。"],"Gmfq1z":["请先选择合并区域的锚点单元格,再更改备注。"],"GnOQke":["工作簿已更改,请关闭并重新打开筛选。"],"GnOb9s":["请先在同一工作表中选择单元格再修改。"],"GnPYFb":["最大的 ",["count"]," 项"],"GvJsKx":["粘贴"],"GyNlUh":["显示汇总行"],"H1Eshp":["包含起止日期。"],"H2zn3t":["正在替换…"],"H36Q1N":["内部框线"],"H3oH0g":["重做"],"H4W5m7":["没有匹配的函数,请修改搜索内容或类别。"],"H59Tdt":["取消合并单元格"],"H5X-EM":["编辑备注"],"H6isXc":["最小值 ",["0"]],"H7MEr_":["请补齐每个重复组内的必填参数。"],"H8-89c":["填充文本编号"],"H8IKGs":["筛选值 ",["0"]],"H9DxgL":["区分大小写"],"HEWf7O":["请输入列名。"],"HIJIcs":["请将单元格和区域引用作为自定义公式实参传入。"],"HKH-W-":["数据"],"HKa6n2":["选区或工作簿已更改,请关闭弹窗并重新选择目标。"],"HLFNTW":["设置行高"],"HLIZFs":["不包含"],"HNtOdD":["合并单元格"],"HS9Qjo":["选区已更改,请关闭并重新打开排序。"],"HSI88F":["删除表格"],"HUbHYh":["此值不符合该单元格的数据验证规则。请修改,或按 Escape 取消。"],"HnGV58":["批注显示名无效。"],"Ho2H4v":["请先编辑表格单元格的文字,再修改其超链接。"],"HorBVl":["工作簿已更改,请重新查找全部后再选择结果。"],"HptUxX":["数字"],"HuA3RU":["制表符"],"HvVYeo":["选区尺寸必须能完整容纳剪贴板内容,未粘贴任何内容。"],"HzVv6g":["粘贴"],"I7Pxc_":["选区已更改,请重新启用格式刷。"],"I8xghs":["折叠所有行分组"],"IAhOTS":["选择底部显示的统计项。点击数值可复制完整精度的结果。"],"IBUUvF":["空白单元格"],"IBsjha":["分母"],"IIMI40":["请选择支持的日期格式。"],"IJuINm":["隐藏/取消隐藏"],"IJyMMV":["应用筛选"],"IOKN7k":["请选择支持的边框位置和线条样式。"],"IQiVXD":["设置选区格式"],"IXuDer":["上移规则 ",["0"]],"Iht8BB":["粘贴 (Ctrl/⌘+V)"],"IiXo9O":["线条样式"],"IiaofB":["格式刷:单击使用一次,双击连续使用,按 Esc 退出。"],"ImQQer":["已解决此讨论"],"ImeidD":["请先清除筛选再剪切此区域,未移动任何单元格。"],"IqKCNQ":["行"],"IrT6uD":["第 ",["0"],"–",["1"]," 行"],"IsDqQo":["删除命名区域"],"Iz3e-u":["取消隐藏行列"],"J0WP18":["尚无命名区域,可在下方创建。"],"J2eKUI":["文件"],"J4EeYq":["替换字符,不进行语言翻译。"],"J86eXk":["剪贴板权限被拒绝,请在网格中使用 Ctrl/⌘+V。"],"J9UMdu":["修改行高或列宽前,请先取消工作表保护。"],"JBq1UX":["设置以活动单元格为初始值,应用时仅修改选区的数字格式。"],"JCVQI2":["正值数据条颜色"],"JH6mku":["筛选组 ",["0"]],"JL5iJ3":["公式参数"],"JXaffl":["大于"],"JY5Oyv":["数据库"],"JeiwaE":["清除数据验证"],"JhfSIU":["统计区域内满足指定条件的单元格数量。"],"Joyh2I":["自定义公式表达式不能超过8192个字符。"],"JqGP8-":["最多选择 1,000 个值,或改用文本、数字条件。"],"JsRejQ":["自定义排序"],"JwqAmu":["粗线"],"K5i09q":["调整",["axisLabel"]," ",["label"]," 的尺寸"],"K7PUBD":[["tabLabel"],"工具"],"K7tIrx":["类别"],"KFipWg":["筛选列 ",["0"]],"KG5a1r":["应用字号"],"KHlP9Q":["选择性粘贴仅支持复制,不支持剪切。剪切的单元格保持不变。"],"KICE7O":["此允许编辑范围已不存在。"],"KKI6Zv":["不换行空格"],"KMKN_6":["复制条件格式"],"KN2oP5":["只保留左上角单元格的内容,其他单元格内容将被删除,可以撤销恢复。"],"KPr6ld":["忽略大小写"],"KX3yaT":["公式 / 原始值"],"KYJejj":["复制为纯文本"],"KYQPT5":["此表格已有同名列,请使用其他列名。"],"KdztGt":["创建表格失败:该名称已被使用。"],"KfRQ6E":["合并单元格前,请先取消工作表保护。"],"KgjGE2":["1 表示一天。[h] 显示累计小时数;其他格式每 24 小时循环。"],"KiJn9B":["备注"],"KmFagX":["请输入名称。"],"KmydK6":["粗体"],"KrqHL4":["日期 — 年日月"],"Kth-Rn":["纯文本,最多 ",["NOTE_MAX_CHARACTERS"]," 个字符。请使用“删除备注”移除。"],"KujtjC":["查找"],"Kvc9v7":["空白单元格"],"Ky8-OT":["使用“定位条件”前,请先选择一个连续区域。"],"L8fEEm":["分组"],"L9yzu_":["展开所有列分组"],"LDLYwZ":["正在定位单元格…"],"LEDZLl":["冻结首列"],"LJyVUg":["已存在同名列表。"],"LL5U4o":["请先设置可编辑区域,再保护工作表。这些区域内的单元格仍可编辑,工作表设置保持锁定。"],"LLAa_9":["可选"],"LMBjM5":["仅影响输入解析规则;文本和日期字段不变。千位分组必须为三位数字。无效数字保留原始文本。更改选项后,请更新预览。"],"LPgOxe":[["category"],"。暂未提供参数说明。"],"LQaAcb":["复制来源工作表已删除,请重新复制后再粘贴。"],"LYjoLq":["正在准备下载…"],"LYywWc":["设置表格汇总函数"],"LaRaTD":["正在扩展序列…"],"LdS4Tj":["分母必须为正整数,最大为 4294967295。"],"LeMEjl":["工作簿表格"],"LglynE":["从验证列表中选择一个值"],"LhMjLm":["时间"],"Lhd0oQ":["日期格式"],"Li0Wel":["多个区域用逗号分隔。以第一个区域的左上角单元格为基准编写公式,使用 $ 锁定行或列。"],"LkMoxw":["比较所有应用范围中的计算值,不区分大小写。跳过空白单元格、空文本和错误;数字与文本视为不同值。"],"Llc5yd":["字号(像素)"],"LmH6kB":["所有行已隐藏,请使用“隐藏 / 取消隐藏”恢复。"],"LmLruJ":["定位"],"Lt4H14":["千位分隔符"],"LtPJFw":["选择值 ",["label"]],"Lvwi-8":["创建表格失败:此工作簿的表格数量已达上限。"],"LwK6r0":["输入提示标题"],"M-xaaN":["原生备注结果与请求不匹配。"],"M7j_hP":["展开所有行分组"],"MCdyqs":["展开分组"],"MEyqnp":["请选择列和汇总函数。"],"MFf8vj":["格式刷状态"],"MJKChL":["正在合并…"],"MKKvTP":["自定义公式表达式只能调用内置函数或已注册的自定义公式。"],"MOmObo":["双线"],"MOuGRm":["正在保存条件格式…"],"MQlCsM":["请先完成当前编辑或历史操作。"],"MRB7nI":["方向"],"MVmg5N":["回复内容"],"MVxpbf":["查找和替换"],"MYt4fi":["已向下填充。"],"M_rUVV":["请输入批注内容。"],"MaFhfZ":["无填充颜色"],"MapzEo":["字体颜色"],"Mbrxio":["下一张工作表"],"MfotVq":["请至少选择一个分隔符。"],"MnhpMi":["新列名"],"Mo5eDU":["重新应用 ",["table"]," 筛选"],"MrPdmn":["请输入 #RRGGBB 格式的颜色,例如 #c00000。"],"Mu7B08":["打开查找前,请先选择一个连续区域。"],"MwT8v8":["自动字体颜色"],"Mzfo3I":["取消选中列分组"],"N2C89m":["引用"],"N48V6M":["窗格已冻结"],"N6j2JH":["编辑 ",["0"]],"N78_jS":["返回数字除以除数后的余数。"],"N9EQQo":["自定义列表"],"NCEnve":["自定义公式表达式只能使用已声明的参数及 LET 或 LAMBDA 局部名称。"],"NCzNnx":["升序排序"],"NELivG":["隐藏选中行"],"NICPwA":["不匹配通配符"],"NN-ecT":["应用格式前,请先完成单元格编辑。"],"NSU8Gn":["展开",["label"],",第 ",["0"]," 级"],"NTocMg":["数值计数"],"NcUUHs":["删除规则 ",["0"]],"NcqUHv":["已将 ",["rows"]," × ",["cols"]," 个单元格复制为 ",["format"],"。"],"Np3tAH":["移除超链接"],"NrRev1":["返回所有参数的算术平均值。"],"NsYAid":["虚线"],"NzAXiU":["清除数据验证"],"O6H89R":["已解决"],"O7s7Kp":["表格操作失败:找不到表格。"],"O8tK4v":["添加规则"],"OM5ei0":["请选择有效的三档图标集和阈值。"],"OPD48B":["筛选工作表中已使用的行,而非仅筛选选区。第 1 行保持可见。"],"ORSbFT":["复制为"],"OT1VRc":["例如 $、€、¥ 或 USD。留空表示不使用符号。"],"OTXgpc":["请输入 2–512 个非空且不重复的列表项。"],"OcjuW_":["快捷公式"],"OjbUGq":["替换当前项"],"On1IAr":["工作簿已更改,请重新打开批注编辑器。"],"OoCFeS":["减少缩进"],"OquBS5":["重置选中行列尺寸"],"OuHJVE":["筛选未生效,请重试。"],"OwTfmu":[["0"]," 个搜索匹配项"],"P147pt":["请输入名称或单元格地址。"],"P565an":["超链接(Ctrl/⌘+K)"],"P6pmwo":["正在提交输入…"],"P9PxcE":["粘贴列宽不能与运算、转置或跳过空白组合使用。"],"PAMA6C":["剪切 (Ctrl/⌘+X)"],"PApEJe":["自定义…"],"PCjiXA":["值(每行一个)"],"PD_gZm":["定位到表格 ",["0"]],"PHvESz":["插入选中的行"],"PJRNfn":["批注单元格超出工作表范围。"],"PQwyxE":["正在复制统计值…"],"PXqLeb":["正在应用数字格式…"],"PYoFZ7":["清除内容"],"PaQ3df":["启用"],"PcjMoT":["填充单元格前,请先取消工作表保护。"],"Pd6fQq":["填充自定义列表"],"Phf9sK":["自定义公式"],"PovFhj":["请使用有效的 LET 或 LAMBDA 局部参数名称。"],"PpUl-j":["填充星期名称"],"Ps49-9":["应用前,请确认覆盖目标区域中已有内容的单元格。"],"PtxJcF":["阈值百分比必须介于0到100之间。"],"PxNXDN":["百分位"],"Q2lUR2":["货币"],"Q2mGA7":["清除筛选"],"Q6QJvF":["添加排序级别"],"Q7BPyr":["行"],"QD3zaT":["唯一值"],"QEhj9Y":["整个工作簿"],"QKU5be":["通过条件、色阶或数据条突出显示数值。颜色冲突时,上方规则优先。"],"QUDIug":["请输入备注内容。要移除已有备注,请使用“删除备注”。"],"QUGnOi":["工作簿文件包含重复的备注单元格。"],"QUuzW2":["小于或等于"],"QgfCMt":["已排序 ",["rows"]," 行。"],"Qj0AKs":["当前活动工作表不可用。"],"QlHuSE":["已向右填充。"],"Qotkzv":["数值计数"],"QyKpyM":["向右移动工作表"],"QyioBP":["上移"],"R1TRHo":["备注单元格超出工作表范围。"],"R1l97J":["色阶颜色"],"R4NdeX":["(空白字符:",["0"],")"],"R8aB59":["关闭历史记录"],"R9Khdg":["自动"],"RA4XsM":["已保存列表"],"RAH-fp":["这些单元格已移动,请重新复制或剪切后再粘贴。"],"RAnflB":["最小的 ",["count"]," 项"],"RG08QT":["返回数字的绝对值。"],"RGjFMI":["细线"],"RGku3P":["未找到匹配单元格,请选择其他条件或区域。"],"RIBT3P":["此批注线程已不存在。"],"RIXJ69":["画布工作表单元格"],"RJr4Pz":["数据验证警告"],"RKsf5g":["应用前,请先更新预览。"],"RMPln-":["搜索结果分页"],"RQ7sH8":["匹配整个单元格"],"Raj8MX":["粘贴内容"],"RkvXKu":["搜索选择必须从首个匹配项开始。"],"Rl9_jm":["上一页筛选值"],"RmbPoE":["汇总行"],"RodNt2":["至少需要两个带编号的文本,例如 Item001、Item003。保留原有的补零格式。"],"Rr55-E":["样本已截断:最多显示 20 行、12 列,每个字段最多 120 个字符。应用时处理全部源数据行。"],"RtKKbA":["最后"],"Ru1fnl":["统计值复制状态"],"RvOVou":["此命名区域已不再引用有效的工作表区域。"],"RxZ9HJ":["正在保存批注…"],"S05wWG":["自定义颜色"],"S1g3Ds":["垂直居中"],"S8Yqbl":["插入"],"S9AiiV":["超链接所在的工作表已不存在。"],"SGf-n6":["正在查找公式范围…"],"SIr9dK":["正在加载 Rust/WASM 工作簿…"],"SPb5SQ":["添加条件格式"],"SUKJAe":["此单元格不属于溢出数组。"],"SUXBxp":["工程"],"SV5DGP":["批注状态无效。"],"SV_AuA":["无法打开工作簿"],"SXGeQ1":["三旗帜"],"SYFEkU":["请先选择一个连续区域再命名。"],"Sb2gYF":["新建列表"],"Sla4dA":["小数"],"Slf_tF":["正在应用颜色…"],"SlzWuE":["(空)"],"SrVzRe":["百分比"],"Su_lDy":["公式"],"T4Sbho":["保留文本(现有格式)"],"T98Rxz":["正在加载验证…"],"T9pSh5":["正在打开工作簿…"],"TBhrFT":["数据验证信息"],"TCXvxM":[" / "],"TDwBWE":["已禁用工作表结构修改。"],"TGNnR3":["排序前,请先取消工作表保护。"],"TKoOLT":["内部横框线"],"TMLAx2":["必填"],"TSAWjn":["文本限定符"],"TTzfXy":["列"],"TXf9YD":["(空白)"],"T_txGc":["内部竖框线"],"Tp1Gud":["条重复记录(一次撤销即可恢复)"],"TuM2Yu":["填充"],"U78DYJ":["新建命名区域"],"UEEaA4":["删除重复项"],"UG5Fr4":["将数字四舍五入到指定小数位数。"],"UHJDnz":["重复记录样本"],"UNSVie":["百分比使用最小值到最大值的跨度;百分位使用排序后的数值。阈值公式以第一个区域的左上角单元格为上下文。"],"UPgfIN":["大于或等于"],"UQmovj":["请等待所选工作表加载完成。"],"USf30b":["SUM — 求和"],"UTPdoU":["在公式栏继续编辑"],"UU50bX":["至少需要三个数字样本。Rust 使用全部样本进行最小二乘线性拟合。"],"UUy_zE":["粘贴并相加"],"UWvGHX":["请先完成单元格编辑。"],"UXsrhQ":["工作簿已更改,请重新打开工作表保护。"],"UYUgdb":["顺序"],"UYUo0N":["重命名失败:该名称已被使用。"],"UbUZ_0":["正在应用边框…"],"UeOiKl":["无效输入"],"UlKSMd":["左对齐"],"UnQEKA":["设置单元格格式"],"Uq5ARj":["已选筛选值"],"UwUnP2":["已比较 ",["0"]," 行数据;",["1"]," 行被筛除的数据保持不变。"],"UyFS6j":["显示第 ",["0"]," 级行分组"],"Uz_n3x":["批注历史无效。"],"V-IYE1":["正在加载值…"],"V-pw1j":["表格名称"],"V1JoG1":["日期序列"],"V2jZJh":["删除文本字符串中的多余空格。"],"V2wP5o":["工作簿已更改,请重新打开超链接编辑器。"],"V5H54_":["分列预览"],"V5tMvA":["转换为普通区域"],"V8GuqL":["请输入 00:00 至 23:59:59 之间的时间。"],"VC-lcC":["列表已保存。"],"VCRyWf":["隐藏汇总行"],"VCVsUc":["应用于选中的单元格。其他边框和格式保持不变。"],"VCfLFG":["结尾是"],"VCwVZr":["请选择一个连续的排序区域。"],"VGFJ_s":["列分组"],"VHZ5Jr":["请等待工作表加载完成。"],"VK1HG0":["正在计算选区…"],"VK1oRU":["这不是有效的 .einfach.json 工作簿文件。"],"VMVP0A":["已清除表格 ",["table"]," 的筛选,手动隐藏的行保持不变。"],"VSOLir":["自动图标阈值为完整数值范围的33%和67%。等于阈值的数值归入较高档。"],"VTRXqB":["居中"],"VWg339":["定位到第 ",["1"]," 行重复记录的首次出现位置:第 ",["0"]," 行"],"VbyRUy":["批注"],"ViBWCP":["创建表格失败:选区与已有表格重叠。"],"VlSVIO":["选区已更改,请刷新当前单元格的溢出详情。"],"VmkjGB":["绿色"],"VpExZs":["十六进制颜色"],"Vqa2As":["可编辑区域"],"VrpcdZ":["请选择有效的表格样式。"],"VvVbTm":["工作表名称不能为空。"],"VwSEfZ":["选区修改错误"],"VzxHsg":["请在非空组中设置有效筛选条件,或选择最多八个不同列。"],"W7eIkx":["创建命名区域"],"W8w3gJ":["仅公式"],"WBsWx5":["粘贴并相除"],"WFeJs8":["正在保存自定义公式…"],"WFjFmc":["大小:",["0"]," × ",["1"],"(行 × 列)"],"WLTAm_":["文本长度"],"WSMWJA":["请选择一个表格列。"],"WWtkCK":["选中溢出区域"],"WWy8TN":["顶部"],"WZ76uH":["重命名工作表"],"Wc0f4I":["请先选择源列。"],"WdgdFu":["查找下一个"],"Weq9zb":["常规"],"WhOsNE":["删除线"],"Wnlkt7":["不支持:",["0"]],"Wt1Dfg":["新建工作表"],"WtgDbl":["列"],"X-6oBB":["筛选值分页"],"X-PXwn":["选择单元格值"],"X35TPs":["正在粘贴…"],"X74D7p":["包含隐藏单元格,合并单元格按整体选中。"],"X9Nd2r":["跨表移动前,请取消源区域和目标区域的合并。未移动任何单元格。"],"XEFP6t":["请输入目标单元格,例如 C1。"],"XKCkjM":["隐藏表头"],"XLiS1x":["请完成当前操作后再修改自定义公式。"],"XQVk7A":["请至少选择两行数据,并包含所有需要一起移动的列。"],"XYGpzK":["引用位置"],"XeQrW0":["自定义公式不支持比较运算条件。"],"XhOOr1":["数据验证输入提示"],"XjTvlf":["正在加载可见单元格…"],"Xm6e-S":["此处需要图标集规则。"],"Xo29SJ":["调整列宽"],"XoPzXO":["行分组"],"Xq5Ea-":["恢复默认"],"XtFNg_":["介于"],"XtGDRG":["注册自定义公式"],"Xu1LOY":["除"],"XyQQXt":["选择要显示的值。其他列的筛选条件仍然生效。"],"Y02qkr":["搜索函数"],"Y11i1u":["值和数字格式"],"Y1zVYo":["此单元格已有批注线程。"],"Y4RFb3":["隐藏列"],"Y9bkTR":["尚无可编辑区域。"],"YF_Hu1":["设置数据验证"],"YIMZfF":["选区已更改,请重新粘贴。"],"YK4ZnP":["整数"],"YMZBxa":["函数"],"YRSvYF":["最小阈值数值"],"YRkrMC":["验证标题最多 32 个字符,正文最多 255 个字符。"],"YSL2bn":["插入行"],"YUTvL2":["重做 (Ctrl/⌘+Shift+Z 或 Ctrl+Y)"],"YZfyZO":["正在保存工作表保护…"],"YbmUSS":["显示名不能超过100个字符。"],"YcYwO9":["查找内容"],"YdDilE":["在新标签页打开链接"],"YdQd_4":["科学记数"],"YgYFFL":["启用条件格式"],"Yq71j6":["填写参数"],"YqlV6y":["视图已更改,请重新打开工作表保护。"],"YvscKL":["颜色 ",["color"]],"YxJd_p":["排序选区"],"YyXtnN":["下划线"],"YzBiZq":["正在保存表格更改…"],"Z1QgjU":["剪贴板区域过大,请选择更小的区域。"],"Z2zILs":["分组 / 大纲"],"Z4H86n":["货币格式"],"Z54TLH":["图标上限阈值类型"],"Z6c0s9":["请选择支持的类别。"],"ZA9ELE":["无法在此区域平移该验证公式。"],"ZAVklK":["或"],"ZGLMJR":["应用汇总"],"ZNslas":["全部搜索结果"],"ZOQAXb":["Rust 超链接编辑功能不可用。"],"ZPLS0d":["新列名与当前列名相同。"],"ZWB-hA":["文本编号"],"ZaMIQW":["暂不支持跨工作表剪切。"],"ZdDnyu":["工作表已更改,请刷新溢出详情后再定位。"],"ZfSbdG":["表格更改未生效。"],"ZjZR8L":["新增备注"],"Zk2iCH":["已保存的公式"],"ZlKlVa":["暂无操作记录。"],"Zm7_S_":["禁用规则 ",["0"]],"Zmr-Uf":["替换自定义公式"],"Zn5crm":["蓝色"],"Znyeto":["自动求和(在公式栏中确认)"],"Zrm1Q5":["选区已更改,请关闭调色板并重新选择目标。"],"ZskO8V":["正在剪切…"],"ZuKd0O":["工作簿保存在内存中,请下载文件以保留更改。"],"Zuk-59":["无法读取剪贴板,请使用浏览器粘贴快捷键。"],"ZzrsKL":["属于这些值"],"_09ZtW":["剪贴板权限被拒绝,请允许访问剪贴板后重试。"],"_2HyaM":[["0"]," 行"],"_44cFv":["按字面文本搜索,包含屏幕外的单元格。"],"_4nr6k":["所有替换可以一次撤销。"],"_5mghO":["包含"],"_5uCWz":["值必须小于最小值或大于最大值,不包含边界值。"],"_7cr0t":["拖动调整",["axisLabel"],"尺寸;双击或按 Enter 自动适应;方向键每次调整 10 像素"],"_8P7TX":["视图已更改,请重新打开表格设置。"],"_C4X2q":["上框线"],"_HgF9q":["主要关键字"],"_Kdu2_":["批注换行符无效。"],"_LiheW":["最大阈值数值"],"_aept4":["发表回复"],"_d9R2O":["图标上限阈值数值"],"_dqduX":["下一页"],"_ic6mc":["超链接单元格超出了工作表范围。"],"_mqxGf":["共 ",["0"]," 个源字段。"],"_q2vC3":["公式名称须以字母或下划线开头,且不能是单元格地址。"],"_roQKz":["百分比"],"_rpaNi":["待删除的重复记录"],"_sZgWl":["大于或等于"],"_th6uC":["正在保存尺寸…"],"_x9y9y":["Rust 自定义公式编辑暂不可用。"],"_xrkTU":["双色"],"_z-cgv":["输入所选工作表中的单元格或区域,例如 A1:A100。"],"_z1FM_":["添加参数组"],"a1LXia":["工作表 / 单元格"],"a2DHYV":["新输入和外部粘贴均保留为文本,包括前导零和公式。不会转换已有值和公式。"],"a7Ccx8":["工作簿已更改,请重新打开名称编辑器。"],"a89u9S":["已撤销"],"a8dPbP":["删除工作表"],"a96JJ9":["输入 Excel 表达式:文本使用 \\"文本\\",区域使用 A1:A3,跨表引用使用 '工作表名称'!A1。可使用嵌套函数和数组常量。"],"aA7VI7":["选择性粘贴"],"aGFtVK":["是否继续使用此输入?"],"aHKcKc":["上一页"],"aHnxms":["超链接显示文字过长或包含无效字符。"],"aHtZRs":["选择常量、公式或空白单元格"],"aJlCCf":["尚无规则。"],"aOUbsP":["选区或工作簿已更改,请关闭弹窗并重新选择源区域。"],"aQST8Z":["财务"],"aTGxbY":["选区数量已达上限。请保留当前选区,或重新开始选择。"],"aTHRg7":["文字旋转"],"aUmtyJ":["已重新计算工作簿(",["count"]," 个公式)。"],"aVNbN8":["筛选条件"],"aWAan2":["预览 · ",["0"]],"a_oQVj":["增大字号"],"aaTj9f":["逗号"],"agPptk":["中等"],"aj9DWs":["此工作表可自由编辑。"],"ajomFP":["表格 ",["table"],",此工作表已筛除 ",["rows"]," 行。"],"alQkIW":["请选择一个包含表头的连续筛选区域。"],"alrHm_":["工作表保护配置重复。"],"am8VAJ":["整个工作表"],"aop_8l":["月份名称"],"atNeRW":["删除记录"],"awcQnW":["Rust/WASM 已就绪"],"axnOH5":["三交通灯"],"ay8rvx":["固定宽度"],"ayCqyB":["中点阈值数值"],"b-BzJy":["添加工作表"],"b0TGMy":["备注所在的工作表已不存在。"],"b0rV_w":["显示公式"],"b1lqfz":["此次粘贴会隐藏单元格内容,请先取消目标区域的合并,或修改选区。"],"b2IO7F":["删除列"],"b41biH":["工作簿未返回 HTML 表格。"],"b9vOOf":["边框"],"bAG4xT":["首页"],"bBorvS":["视图已更改,请等待工作表加载完成后重试。"],"bFVQjR":["组内条件全部满足时匹配,任意一组匹配即可显示该行。"],"bGRuWg":["取消所有搜索匹配项"],"bHKHqz":["所有框线"],"bIuTzq":["正在应用布局…"],"bJ_Jbl":["已复制",["label"],"。"],"bR2sEm":["数字格式"],"bYL9MP":["插入 / 删除"],"b_kzkz":["隔列底色"],"bbuPq4":["将文本转换为小写。"],"bc3Ku9":["取消隐藏所有行列"],"bkYmSY":["仅粘贴值"],"br094C":["下一页筛选值"],"buxf17":["公式和数字格式"],"bvQ46H":["减少小数位数"],"bysG12":["当前工作表"],"c5MaVU":["正在保存备注…"],"c78pX9":["原生引擎返回的搜索匹配项不完整,选择未改变。"],"c7xa56":["暂不支持在此编辑这种规则。"],"cCd8Bs":["剪切"],"cD_FG_":["最小阈值类型"],"cGGtIm":["定位(Ctrl/⌘+G 或 F5)"],"cMiGgC":["以文本形式返回图片元数据,不显示图片。"],"cO8VkA":["工作簿已更改,请重新打开备注编辑器。"],"cO9-2L":["禁用"],"cQg7j8":["此工作表已受保护,请先取消保护再更改锁定单元格。"],"cUSA-Z":["排名依据"],"cVmrzX":["Rust 返回的自定义公式结果不匹配。"],"cWjIjS":["例如 XLOOKUP"],"cbqNXN":["重复值"],"ccMx26":["在区域首列查找值,并返回同一行中指定列的值。"],"cnGeoo":["删除"],"cnbhg_":["不介于"],"cvJgQp":["选中阻挡单元格"],"czHnB-":["请先完成当前操作再修改批注。"],"d5Vvvt":["备注内容无效。"],"d6YWmx":["无法确认边框更改,请检查单元格后再重试。"],"d6ynQ7":["降序排序"],"d8wc1_":["样本值"],"dEgA5A":["取消"],"dIbM9L":["函数参数"],"dOapBJ":["Rust 返回的自定义公式目录无效。"],"dQI-bM":["最多一位数"],"dTFX4-":["复制 (Ctrl/⌘+C)"],"dU4D-1":["剪贴板状态"],"dUoO9H":["请选择可编辑区域,并等待工作表加载完成。"],"dVXmWP":["验证公式"],"dWPDm3":["所选区域"],"dWfvwH":["接下来会打开公式栏。按 Enter 保存,或按 Escape 取消。"],"dXUfAm":["自定义公式最多支持64个参数。"],"dXXJVW":["货币符号"],"dYU8W5":["设置区域格式"],"dbSixe":["请输入比较值。"],"dev9M3":["增加小数位数"],"dg6C0C":["应用边框前,请先完成单元格编辑。"],"dipmRq":["表格 ",["0"],"。仅检查数据行,不包含表头和汇总行。"],"dnjvPb":["统计包含数字的单元格数量。"],"drUX1_":["最低值"],"dzHGCX":["工作表名称"],"e42Ehe":["更改立即生效,可以撤销。"],"e49igR":["应用于第 ",["0"],"–",["1"]," 行、第 ",["2"],"–",["3"]," 列。尺寸单位为像素。"],"e4_f6h":["十六进制颜色"],"e9OR_8":["请先完成当前操作,再跳转。"],"eEvGys":["将连续分隔符视为一个"],"eFQPz8":["选区或工作表已更改,请重新定位。"],"eJdVkr":["最多三位数"],"eKJQi9":["突出显示文字色"],"eKqydA":["自定义公式名称与内置函数冲突。"],"ePK91l":["编辑"],"eTUF28":["最小值"],"eTvZsC":["字段"],"eUhuIV":["备注内容"],"eVIg7Y":["低\\n中\\n高"],"eVP4Au":["请输入验证公式。"],"eVpqq3":["溢出详情"],"eWzFsQ":["自定义内容"],"eZlhyL":["请输入工作簿内显示名。"],"ehx29F":["首行为表头"],"eiHuBO":["正在删除重复项…"],"ejTruI":["定义一次公式,即可在任意工作表中调用。"],"ektDHt":["表格筛选未生效。"],"eobJUT":["为单元格或区域命名,以便在公式中引用。名称在整个工作簿内可用。"],"eqSg9V":["表格样式"],"euc6Ns":["重复值"],"euwLEQ":["重命名工作表"],"exUSTl":["删除选中的行"],"f1v43E":["排序未生效,请重试。"],"f3OMYV":["清除 ",["table"]," 筛选"],"f69-Xr":["正在更新选区…"],"f6Hub0":["排序"],"f9NNT9":["视图已更改,请重新打开名称编辑器。"],"f9yJNM":["等于"],"fBx6gk":["正在保存超链接…"],"fGdAh8":["工作表规则"],"fJsCEU":["重命名失败:表格名称无效。"],"fJyysq":["文本分列"],"fZ-9r2":["分列已应用,但视图更新失败。请检查工作表后再重试。"],"f_vAyF":["清除 ",["0"]," 列筛选"],"fcXw50":["来源或目标区域包含锁定单元格。"],"fkLtw5":["逗号(,)"],"fnv1e5":["数据已按此顺序排列。"],"fol3l1":["选择条件 ",["0"]," 的值"],"fqSfXY":["替换"],"fvImQM":["已选择 ",["0"]," 项"],"fxOhsR":["此命名区域已不存在。"],"g0pd6N":[["table"]," 筛选",["0"]],"g0yqtr":["删除名称"],"g5jZuG":["取消选中行分组"],"g6JIn3":["剪切来源单元格已更改,请重新剪切后再粘贴。"],"g7JDZI":["选择值…"],"g8ePbe":["请输入自定义公式名称和表达式。"],"g9qIf-":["单元格 ",["address"]," 的讨论"],"gAlmKU":["请输入 1–512 像素之间的整数字号。"],"gF0RZf":["货币符号最多 16 个字符,不能包含控制字符。"],"gFUMrH":["工作簿已更改,请重新粘贴。"],"gHTMlT":["查找文本过长。"],"gHZqDi":["搜索匹配项超出 1,000 个值或 1 MiB 的选择预算,请缩小搜索范围。"],"gIFQyx":["筛选区域需包含表头和至少一行数据。"],"gQi2u8":["引用以应用区域左上角为基准。公式必须返回 TRUE。"],"gUPL38":["单元格编辑器"],"gUjkl_":["向下"],"gVnFp9":["插入或删除行列前,请先取消工作表保护。"],"gXMWc_":["空白单元格位置"],"gXQX4x":["正在删除…"],"gXsSRS":["隐藏的行列保持隐藏,不会修改任何单元格。"],"gY57pY":["固定:",["0"]],"gfe9mz":["合并后居中"],"giznB_":["原始选区"],"gmAH_b":["正在排序…"],"gnZwjk":["高级数字解析"],"gqiG6R":["批注投影请求无效。"],"grrnD3":["此最近定位位置已不可用。"],"gwvmXR":["不能将合并单元格粘贴到表格内。"],"h0RwIK":["删除工作表?"],"h1kB6t":["请选择含有效筛选条件的非空组。"],"h2sgft":["单元格有备注"],"h6KHUh":["包含起止时间。"],"h7peZQ":["允许"],"h9umhu":["表格名称类似单元格引用,请使用其他名称。"],"hA0JZ4":["工作簿已更改,请重新定位。"],"hFUhUx":["输出:",["0"],":",["1"]],"hFthoo":["示例"],"hKXqS3":["填充月份名称"],"hNjsIA":["选中所有单元格"],"hTA6GE":["序列类型"],"hTB_7t":["从选区创建命名表格,或管理当前工作表中的表格。"],"hXwYa1":["请选择要调整范围的表格。"],"hXzOVo":["下一项"],"hYkWhN":["重命名失败:该名称为内置函数保留名称。"],"haJ2Hb":["小于"],"he3ygx":["复制"],"hgQ0WV":["列表仅保留在当前工作簿会话中。“保存列表”保存填充预设,“应用序列”才修改单元格。未保存的编辑不会改变已有列表。"],"hgaBQm":["备注投影请求无效。"],"hjkLzt":["基础显示文本"],"hmCmxb":["请输入有效的 http:// 或 https:// 地址。"],"hsu5-o":["允许编辑范围超出工作表。"],"hxXfm5":["所有条件必须同时满足。修改数据后,请重新应用筛选。"],"hxm0Tq":["单元格 ",["address"]," 的备注"],"hxmq2l":["拖动填充"],"hzltLX":["原生引擎返回的批注结果不匹配。"],"i3Z-_Z":["超出范围"],"iFGXi_":["查找范围"],"iFWhlD":["请输入有效的公式表达式。"],"iNpz8V":["仅纯文本,时间使用此设备的本机时钟。"],"iORKAp":["数字格式类别"],"iPFOEw":["重新打开批注"],"iR5h1B":["汇总列"],"iUejpH":["汇总函数操作失败:无法识别此汇总类型。"],"i_Xzwl":["去除首尾空白并忽略大小写"],"ibJT_S":["删除可编辑区域 ",["address"]],"igsf5M":["允许编辑选区"],"iqC2n0":["可输入已定义的名称、A1、B2:D10、R12C3、R[2]C[-1] 或 'Sales Orders'!B2。隐藏的行列仍保持隐藏。"],"isTFAZ":["暂无批注。开始讨论这个单元格。"],"isWWs_":["每个工作表最多支持 256 个允许编辑范围。"],"itcYmR":["查找全部"],"izlhQX":["最大的 ",["count"],"%"],"j1PbXM":["复制规则 ",["0"]],"j2s8J7":["复制为 HTML 表格"],"j4W7WC":["工作簿文件中有重复的批注单元格。"],"j8SH4s":["新建未保存列表"],"j8idG0":["移除第 ",["0"]," 组"],"jJYvgv":["请在网格中使用 Ctrl/⌘+V 从剪贴板粘贴。"],"jLlC2y":["无法访问剪贴板。"],"jNqLnz":["支持英文缩写、英文全称或中文名称。单个样本按步长 1 递增;多个样本用于推断循环步长。"],"jONM9I":["保存在内存中"],"jPwUrQ":["按字面文本匹配,不区分大小写。保留空格;* 和 ? 作为普通字符处理。"],"jQ5Pj5":["请至少选择一个比较列。"],"jT3euW":["分数"],"jZct80":["自定义列表项"],"jcJpsw":["请使用 *、? 或 ~ 补全通配符转义。"],"je-GuB":["数值范围"],"jezaqq":["此表格已不再引用有效的工作表区域。"],"jfJuPj":["对区域内满足指定条件的单元格求和。"],"jgsMfy":["选择表格以定位到其范围。通过“表格”修改名称或列。"],"jhRrQD":["创建表格的选区需包含表头和至少一行数据。"],"jlWBtl":["自定义公式操作无效。"],"jmyfzI":["数据验证"],"jpctdh":["视图"],"jqvnN9":[["rows"]," × ",["cols"]," 个单元格已准备移动,请粘贴以完成。"],"juO0Dc":["点击“搜索”加载匹配的值。"],"jvaBh-":["自定义排序…"],"kAD6nO":["撤销或重做前,请先取消相关工作表保护。"],"kCwoAp":["修改显示文字会将单元格内容替换为文本。保持不变则保留原值或公式。"],"kDK8aC":["无法读取格式:",["detail"]],"kGMCQm":["日期 — 日月年"],"kN1kfu":["冻结窗格"],"kO8cEc":["自定义列表"],"kPZK7E":["自定义公式已在历史记录之外被更改。"],"kSq3rj":["请输入六位十六进制颜色,例如 #1a73e8。"],"kV58g3":["选择自定义边框颜色"],"kVXU2u":["保护工作表"],"kaSSc_":["次要关键字(",["0"],")"],"kcnNJt":["* 表示任意文本,? 表示单个字符,~ 用于转义 *、? 或 ~。"],"kdhqMB":["小数位数"],"knie_b":["最小值颜色"],"koGlgj":["设置列宽"],"kqmDKG":["统计暂不可用"],"krby4S":["输入提示内容"],"kyMIqv":["中点阈值类型"],"l-h5Xs":["原生引擎返回的工作表保护配置无效。"],"l0y6n4":["图标集"],"l1MCBK":["尚无表格,请在下方选择区域。"],"l1RZGM":["查找与引用"],"l3VRjN":["填充序列"],"l89DdM":["正在合并单元格…"],"l9NaWn":["星期名称"],"lCF0wC":["刷新"],"lGESva":["共 ",["0"]," 条重复记录;保留 ",["1"]," 条唯一记录。"],"lHv58R":["仅显示图标"],"lIktZ3":["正在分列…"],"lMqlrb":["已粘贴单元格。"],"lOyimt":["工作簿文件"],"lVo2Hj":["请输入 0–15 之间的整数小数位数。"],"lYT7pQ":["删除列表"],"lavjOK":["请选择支持的时间格式。"],"lc2S5r":["表格操作失败。"],"lgBND6":["工作簿内显示名"],"lm5BjK":["请先选择一个连续区域再合并单元格。"],"lmPMjA":["返回参数中的最大数值。"],"lmxbP9":["此单元格类型不支持粘贴运算。"],"lpxWKi":["公式"],"lw9h7q":["调整行高"],"lxtrds":["突出首列"],"m-OZHQ":["此统计项没有可复制的有限数值。"],"m0QAp0":["更多粘贴选项"],"m16xKo":["加"],"m2w_cf":["列名"],"m3gazo":["正在读取格式…"],"mBR-Se":["外侧框线"],"mEHz0j":["请填写所有必填参数。"],"mIFfLs":["最近定位"],"mOFgdC":["最大值"],"mPPkxU":["此函数不需要参数。"],"mRbPqB":["请更新预览后应用更改。"],"mRbz9t":["新建空白工作簿并替换当前工作簿?请先下载以保留未保存的更改。"],"mS4yDu":["此溢出目标超出了当前工作表范围。"],"mSnrhP":["反转图标顺序"],"mWNPPQ":["自定义字号"],"mX_isJ":["竖排"],"mYGY3B":["日期"],"mYROba":["无法更新超链接显示文字。"],"mZnrg-":["向左移动工作表"],"mh5Ywn":["更改立即生效。保留手动设置的单元格、行和列格式。"],"moiqMa":["设置表格格式"],"mp5Az0":["自定义公式投影请求无效。"],"mujEVU":["新建表格"],"mwtcGl":["关闭批注"],"mzg0pt":["组合本次粘贴的选项,不影响普通粘贴。"],"n-kY0b":["正在加载备注…"],"n8796O":["请先选择合并区域的起始单元格再修改批注。"],"n9nSNJ":["时间格式"],"nEhxD1":["最大值颜色"],"nFrAsL":["插入公式草稿"],"nGRMma":["删除条件格式"],"nIkxny":["正在复制…"],"nJUON5":["粘贴值不符合目标单元格的数据验证规则,未粘贴任何内容。"],"nLxKSL":["比较依据"],"nMKyui":["点(.)"],"nOPbWJ":["右对齐"],"nQO7BF":["保存备注"],"nSgEqx":["正在加载预览…"],"nSkB8g":["信息"],"nUvneV":["未找到匹配项。"],"nVyzS0":["正在读取溢出详情…"],"nX8FNG":["折叠",["label"],",第 ",["0"]," 级"],"nYD_Cq":["升序"],"nZsuDO":["新公式"],"nc9GHM":["仅修改整列。单元格内容、样式和行高保持不变。"],"ne8B8T":["添加数据行"],"nf0r3g":["创建表格失败:表格名称无效。"],"nhlurn":["排名方向"],"nl87fQ":["请选择要删除的命名区域。"],"nvOImr":["日期 — 年月日"],"nxH2SU":["无法确认数字格式更改,请检查单元格后再重试。"],"o1F7G8":["列"],"o24sy3":["活动单元格内容"],"o5OmFm":["最小的 ",["count"],"%"],"o6USeU":["工作簿文件不能大于 64 MiB。"],"o7J4JM":["筛选"],"oJeSXO":["无法确认分列结果,请检查工作表后再重试。"],"oKclF5":["全选搜索匹配项"],"oMNtqO":["日期 — 月日年"],"oMp0l7":["显示第 ",["0"],"–",["1"]," 条,共 ",["2"]," 条重复记录"],"oXDjoV":["日期 — 月年日"],"oXmBnV":["字体"],"o_S4BG":["边框颜色"],"odah-k":["打开此文件并替换当前工作簿?请先下载以保留未保存的更改。"],"oh9cEE":["更新预览"],"oisjJ1":["取消工作表保护"],"ojeUOq":["返回文本字符串的字符数。"],"omWsMB":["已选中 ",["areas"]," 个区域中的 ",["cells"]," 个单元格,搜索范围为 ",["range"],"。"],"ooB4kZ":["关闭调色板"],"ovBPCi":["默认"],"owOdhN":["分隔位置"],"ox7t_r":["边框颜色 ",["color"]],"oxYuXt":["分隔符"],"p0Iq25":["插入链接"],"p1hcK1":["减小字号"],"p8Tdwt":["超链接的可见区域请求无效。"],"p98xmP":["应用范围"],"pBbOIk":["首次出现位置"],"pC_Rp1":["比较所有应用范围中的原生基础显示文本,不区分大小写。包含数字格式,不含条件格式。跳过空白单元格、空文本和错误。"],"pE2vYC":["每页最多显示 20 行重复记录、12 列,每个字段最多 120 个字符。删除操作处理整个选区。"],"pF-vCW":["工作表已不存在。"],"pHgLQr":["多行文本保持完整。请通过“选择值”修改。"],"pMkWca":["计算单元格区域内所有数字之和。"],"pOE8Vh":["空格"],"pQqW2g":["解决讨论"],"pSpoKs":["格式设置范围超过 100,000 个单元格,请缩小选区。"],"pUEA3T":["批注时间无效。"],"p_78dY":["位置"],"pcxy7h":["公式引用了更大的区域,暂不支持仅移动该区域的一部分。"],"pfKLo-":["等于"],"piRcOa":["请输入最小值和最大值。"],"ppsBc0":["将选中行分组"],"ppxHxA":["请先完成当前操作,再修改超链接。"],"pqULT-":["乘"],"pvOvWS":["粘贴并扩展表格"],"pzNy11":["填充来源选区已更改,请重新拖动。"],"pzutoc":["斜体"],"q3il6U":["字号"],"q5g1ph":["选择列 ",["label"]],"qABLyn":[" · 为真则停止"],"qE1wQc":["选区中没有可复制的未筛除行。"],"qGNf9H":["筛选条件…"],"qHskmN":["工作簿正忙,请在就绪后重试。"],"qNUKgA":["复制",["label"]],"qRSDH_":["图标样式"],"qS5__Q":["灰色"],"qUsbzg":["边框设置"],"qVyNMm":["并且"],"q_YJ1c":["工作簿文件中没有工作表。"],"qfC6ZH":["工作簿不可用。"],"qjcuv8":["已重新计算工作表(",["count"]," 个公式)。"],"qkNawh":["最多选择 1,000 个值且不超过 1 MiB,或缩小搜索范围。"],"qp_pPt":["插入超链接"],"qrXszS":["移除组"],"quK02K":["自动求和"],"qxdN8v":["比较列"],"qzwvx5":["每个工作簿会话最多保存 32 个自定义列表。"],"r2PL7g":["取消冻结窗格"],"r44k1H":["负值数据条颜色"],"r4TB0d":["拆分一个源列。除非选择其他类型,字段均保留文本。空字段会清空目标单元格。包含隐藏行。"],"r6y-jM":["警告"],"rDnCdZ":["匹配行数"],"rE2nAF":["原生引擎返回的批注线程无效。"],"rI0Jne":["记录单元格编辑、格式、清除、粘贴、剪切移动、行列尺寸和工作表操作。本次会话最多保留 50 步。"],"rVGc3H":["值和格式"],"rWi7Ty":["请输入 1–64 个字符的列表名称。"],"rdtCNx":["填充序列"],"rerNas":["工作簿名称"],"rfw87a":["不能单独剪切数组结果。"],"rgdOvb":["原生引擎返回的保护结果不匹配。"],"riTRt9":["插入或删除行列"],"rrl4Qp":["分号"],"ruCp-9":["正在加载自定义公式…"],"s9dV9G":["备注内容不能超过 32767 个字符。"],"sBBaEx":["文本条件"],"sCspXw":["定位记录前,请先取消隐藏该行或列。"],"sD2PM8":["回复批注"],"sFhUij":["无法预览重复记录。"],"sLPyYh":["最大 / 最小值"],"sQoaQp":["所有参数均为 TRUE 时返回 TRUE。"],"sR1BeQ":["删除失败:找不到表格。"],"scPBeJ":["应用排序"],"sfkwPx":["选择行 ",["label"]],"shCLkz":["清除格式"],"sizqSm":["自定义公式必须恢复到新工作簿中。"],"snXACP":["批注内容不能超过32767个字符。"],"sra8tB":["插入列"],"ssHjkW":["保护投影请求无效。"],"ssPgEV":["正在更新分组…"],"strO81":["保存列表"],"svN3--":["折叠分组"],"syyeb9":["最前"],"szUECB":["剪贴板包含无效公式,未粘贴任何内容。"],"t0ZIPp":["减"],"t0r_cI":["已复制 ",["rows"]," × ",["cols"]," 个单元格。"],"t25i1d":["下移排序级别 ",["0"]],"t9X8Jk":["预览不可用,请修改设置后重试。"],"tGdqgz":["此表格已不存在。"],"tLNhV1":["显示满足以下条件的行"],"tP5eau":["折叠所有列分组"],"tXkhj_":["开始"],"tYqKzq":["日期格式"],"t_YqKh":["移除"],"tfDRzk":["保存"],"tlsEba":["显示分组级别"],"toz93w":["比较显示值并保留第一条记录。仅移动选区内的单元格。筛除的行保持原位;手动隐藏的行参与处理。"],"tvyeCU":["已筛除 ",["rows"]," 行。"],"tzHS6m":["仅粘贴格式"],"u1P2XM":["重命名失败:名称类似单元格引用,请使用其他名称。"],"u4oHnx":["行列显隐"],"u5Pn6t":["在同一行或列中选择样本和目标。保留开头的样本,将其规律扩展到剩余单元格,包含隐藏单元格。"],"uAFbrK":["匹配文本"],"uCjbh3":["查找和替换(Ctrl/⌘+F)"],"uEWvbF":["此名称保存在工作簿中,并非已认证身份,最多 ",["COMMENT_AUTHOR_MAX"]," 个字符。"],"uHD9TE":["取消隐藏选中行列"],"uIXWHE":["此规则匹配时,跳过该单元格的所有下方规则。"],"uVMHzf":["请选择来源行或列,并至少包含一个目标单元格。"],"uWMwGl":["范围:",["0"]],"uYkSuw":["工作表已更改,请关闭并重新打开筛选。"],"ubIKLk":["首行作为表头。空白或重复的表头会自动分配唯一名称。"],"udbJOQ":["精确文本"],"uhz8U_":["筛选状态"],"uqHlC3":["工作表尺寸已在历史记录之外更改。"],"usWbHt":["移除排序级别 ",["0"]],"usbGDQ":["调整范围时,表头行位置保持不变。如有汇总行,请将其包含在内。转换为普通区域会保留数据和格式。"],"uxLDG2":["粘贴列宽前,请先取消工作表保护。"],"uxonbb":["在这些字符位置后分列,例如 2、5。每个 Unicode 码点计为一个字符。"],"uzUlwe":["每行一项(2–512 个不重复项)。单个样本按列表顺序递增;多个样本用于推断循环步长。"],"v1HxXA":["粘贴不能覆盖数组结果。"],"v6M8gE":["请输入所选工作表内的区域,例如 A1:A100。"],"vADP4K":["数字格式设置"],"vBxmv9":["自定义公式参数名称不可重复。"],"vCS6V9":["不支持此工作簿文件,请选择由本应用导出的 .einfach.json 文件。"],"vFTBYQ":["搜索筛选值"],"vJ38Ph":["目标单元格已被工作表保护锁定。"],"vJBsua":["源字段编号"],"vKwYeC":["隐藏表格汇总行"],"vLMZdC":["正在加载批注…"],"vOmCXz":["批注所在工作表已不存在。"],"vOmz96":["分列方式"],"vSjOej":["调整条件格式顺序"],"vSmnZm":["最近操作"],"vT-CRx":["重新应用筛选"],"vXTvG8":["方差"],"vYm8sP":["所选工作表已不可用。"],"vZh_GQ":["公式表达式"],"vZmm0f":["创建表格失败:该名称为内置函数保留名称。"],"v_70lO":[["0"]," 单元格"],"vaov4x":["在表格下方添加汇总行,不会覆盖已有单元格。"],"vbdECu":["应用边框"],"vcoUxC":["另一项更改正在进行,请稍后重试。"],"vi233w":["重新计算"],"vi8wbc":["粘贴并相乘"],"viJSRT":["末页"],"viRbh6":["无法确认颜色更改,请检查单元格后再重试。"],"vizqEA":["行高"],"vkVzyy":["色阶"],"vriSrj":["单个日期按天递增。两个或更多日期用于推断天、周或月步长;月末日期保持在月末。"],"vrkvoX":["序列…"],"vu1f-F":[["detail"]," 当前工作簿已保留。"],"vvz4cN":["修改条件格式前,请先取消工作表保护。"],"vwdDL3":["仅格式"],"vxZiRd":["预设样式"],"w0fzJB":["上移排序级别 ",["0"]],"w1BZpO":["请输入不超过 8192 字节且锚点有效的公式。"],"w5m-ye":["突出末列"],"wBMjJ2":["计数"],"wDSXeX":["剪贴板中没有工作簿格式,请先复制此工作簿中的单元格。"],"wG2Sa9":["去除首尾空白"],"wJeoYz":["工作簿工作表"],"wMHvYH":["值"],"wNbipR":["创建表格"],"wRbth3":["向下填充(Ctrl/⌘+D)"],"wRhcPw":["双引号(\\")"],"wSXm5S":["唯一值"],"wU4VnX":["正在应用字号…"],"w_uqf-":["窄不换行空格"],"wcGDMa":["固定:",["value"]],"wgNoIs":["全选"],"wnTaAw":["首行包含表头"],"wo2Eei":["汇总行操作失败:表格下方的行已有内容,请清空后重试。"],"woFAQS":["工作表表格"],"woq8J0":["插入操作会将备注移出工作表。"],"wpT1VN":["条件"],"wrok4H":["填充颜色"],"wrsYRH":["工作表"],"ws21Un":["请输入有效的验证公式。"],"wzo8rz":["正在保存验证…"],"x-6LjX":["格式已应用。"],"x5ECoP":["最大值 ",["0"]],"xCOeHz":["当前工作表"],"xDE6Uf":["此规则已不存在。"],"xEjvkZ":["仅移动选中的矩形区域。筛除的行保持原位,手动隐藏的行参与排序。排序级别从上到下依次应用。"],"xGBpPe":["冻结首行"],"xGVfLh":["继续"],"xIDcol":["验证提示不能包含空字符。"],"xIfKEA":["所有类别"],"xOJFdh":["原引用区域已删除,请输入新区域以修复此名称。"],"xOeI33":["删除工作表"],"xRbHOT":["还没有自定义公式。"],"xSKM_n":["工作簿已更改,请重新打开自定义公式编辑器。"],"xUFaGr":["大纲分组"],"xVOlTJ":["原生备注编辑暂不可用。"],"xeiujy":["文本"],"xf_klh":["请先执行“查找全部”再选择结果。"],"xgL40b":["已重新打开此讨论"],"xi4nE2":["错误内容"],"xkjHnr":["将选中列分组"],"xlq_V1":["逻辑"],"xqYmay":["目标单元格"],"xr-IDS":["无框线"],"xtIjJL":["自定义公式"],"xwftZJ":["重复组"],"y3aU20":["保存更改"],"y5Izej":["请更新预览以查看更改。"],"y8VGPa":["错误提示"],"yAU_1D":["最多两位数"],"yBF5J5":["新建规则"],"yCbhA6":["三色色阶"],"yLQWOb":["无法确认删除结果,请检查工作表后再重试。"],"yOngy-":["使用千位分隔符"],"yR_wYS":["修改工作簿名称前,请先取消工作表保护。"],"ySL-Jo":["超链接"],"yXa-3j":["在此重命名列,或编辑其表头单元格。公式会随名称更新。"],"yYR6za":["显示文字"],"yYxB17":["全部清除"],"y_LCBu":["新建空白工作簿"],"ycqaQU":["填充选区"],"ydd6Gh":[["table"]," 筛选条件…"],"ygCKqB":["停止"],"ygUw8s":["替换全部"],"ylbHdw":["工作簿或工作表已更改,请关闭并重新打开条件格式。"],"ywfxn9":["搜索值"],"yxnt3y":["填充状态"],"yyJNmx":["请输入此工作表内的单个区域,例如 A1:C10。"],"yz7wBu":["关闭"],"z5BgQK":["无法修改所选区域。"],"z6G8xA":["至少需要两个差值固定且非零的数字,支持小数。"],"z7hrVQ":["未找到具体的阻挡单元格,请检查工作表边界或数组大小。"],"z7wnu4":["仅列宽"],"z85GiQ":["数组"],"zBLASl":["Lambda 函数"],"zBn89v":["将选区首行向下复制,或将选区首列向右复制"],"zJoyX1":["列宽"],"zK2Sra":["请选择不同的列并输入有效数字;最小值不能大于最大值。"],"zKfJY_":["正在重新计算…"],"zKivET":["点线"],"zOth7_":["工作簿文件含有重复的自定义公式。"],"zQX5Dj":["列表名称"],"zRxU0c":["格式刷"],"zSyrS8":["请使用含有效筛选条件的非空组。"],"zTJjcX":["删除选中的列"],"zWoRqM":["溢出详情已过期,请刷新后重试。"],"zXgopL":["字段类型"],"zYv2fW":["合并这些单元格?"],"z_ykwV":["重命名表格列"],"zbp0MB":["开头是"],"zfvhB0":["工作簿文件中的工作表数据无效。"],"zhQBLN":["筛选选区(首行为表头)"],"zlaIZ9":["为真则停止"],"zmLUNP":["合并 / 取消合并"],"znOI0s":["多区域选区"],"zs4_0a":["比较第 ",["0"]," 列"],"zsiX7I":["底部"],"ztfoOA":["单元格有批注"],"zxe04A":["请选择要转换的表格。"],"zyDxYM":["粘贴运算需要单元格内容,不能仅粘贴格式。"]}`);function zr(e){let t=e?.toLowerCase().split(/[-_]/)[0];return t===`en`||t===`zh`?t:void 0}function Br(e=`en`){return Pr({locale:e,messages:{en:Lr,zh:Rr}})}var Vr=Ar({controlledLocale:!1,renderer:`dom`});function Hr({children:e,locale:t,i18n:n,renderer:r=`dom`}){let i=Mr(()=>Br(),[]),a=n??i;B(()=>{t!==void 0&&a.locale!==t&&a.activate(t)},[a,t]);let o=Mr(()=>({controlledLocale:t!==void 0,renderer:r}),[t,r]);return/* @__PURE__ */ G(Vr.Provider,{value:o,children:/* @__PURE__ */ G(Nr,{i18n:a,children:e})})}var Ur={"Enter note text. Use Delete note to remove an existing note.":{id:`QUDIug`},"Note text cannot contain a null character.":{id:`Gbh8_x`},"Note text cannot exceed 32767 characters.":{id:`s9dV9G`},"The note cell is outside the worksheet.":{id:`R1TRHo`},"The note worksheet no longer exists.":{id:`b0TGMy`},"The workbook changed. Reopen the note editor.":{id:`cO8VkA`},"Finish the current operation before changing a note.":{id:`0V2yZ6`},"Rust note editing is unavailable.":{id:`xVOlTJ`},"Rust returned a mismatched note result.":{id:`M-xaaN`},"Invalid note projection request.":{id:`hgaBQm`},"Invalid note text.":{id:`d5Vvvt`},"Select the anchor cell before changing its note.":{id:`Gmfq1z`},"The insertion would move a note outside the worksheet.":{id:`woq8J0`},"Duplicate note cell in workbook file.":{id:`QUGnOi`},"This worksheet is protected. Unprotect it before changing locked cells.":{id:`cQg7j8`},"The workbook changed. Reopen worksheet protection.":{id:`UXsrhQ`},"The view changed. Reopen worksheet protection.":{id:`YqlV6y`},"Rust worksheet protection is unavailable.":{id:`G1X9rt`},"Rust returned invalid worksheet protection.":{id:`l-h5Xs`},"Rust returned a mismatched protection result.":{id:`rgdOvb`},"The editable range is outside the worksheet.":{id:`hsu5-o`},"The editable range no longer exists.":{id:`KICE7O`},"A worksheet supports at most 256 editable ranges.":{id:`isWWs_`},"Invalid protection change.":{id:`GLTWC4`},"Invalid protection projection request.":{id:`ssHjkW`},"Protection refers to a missing worksheet.":{id:`1zHGFg`},"Duplicate worksheet protection configuration.":{id:`alrHm_`},"The worksheet dimensions changed outside history.":{id:`uqHlC3`},"The worksheet no longer exists.":{id:`pF-vCW`},"Enter a finite threshold number.":{id:`1JWxXm`},"Threshold percentages must be between 0 and 100.":{id:`PtxJcF`},"Enter a valid threshold formula.":{id:`AV6Y10`},"Choose a valid three-icon set and thresholds.":{id:`OM5ei0`},"Expected an icon-set rule.":{id:`Xm6e-S`},"Register custom formula":{id:`XtGDRG`},"Replace custom formula":{id:`Zmr-Uf`},"Remove custom formula":{id:`2Xl1IN`},"Enter a custom formula name and expression.":{id:`g8ePbe`},"The workbook changed. Reopen the custom formula editor.":{id:`xSKM_n`},"Finish the current operation before changing a custom formula.":{id:`XLiS1x`},"Rust returned a mismatched custom formula result.":{id:`cVmrzX`},"Rust returned an invalid custom formula directory.":{id:`dOapBJ`},"Rust custom formula editing is unavailable.":{id:`_x9y9y`},"Invalid custom formula projection request.":{id:`mp5Az0`},"Invalid custom formula action.":{id:`jlWBtl`},"Use a formula name beginning with a letter or underscore, without cell references.":{id:`_q2vC3`},"The custom formula name conflicts with a built-in function.":{id:`eKqydA`},"Use at most 64 custom formula parameters.":{id:`dXUfAm`},"Custom formula parameters must be unique.":{id:`vBxmv9`},"Use at most 8192 characters in a custom formula expression.":{id:`Joyh2I`},"Enter a valid formula expression.":{id:`iFWhlD`},"Pass cell and range references as custom formula arguments.":{id:`HIJIcs`},"Enter a valid LET or LAMBDA expression.":{id:`8PJnrn`},"Use valid local LET or LAMBDA parameter names.":{id:`PovFhj`},"Use only declared parameters and local LET or LAMBDA names in custom formula expressions.":{id:`NCEnve`},"Call only built-in functions or registered custom formulas in custom formula expressions.":{id:`MKKvTP`},"Custom formula definitions cannot contain a recursive call cycle.":{id:`Few87o`},"The custom formula name is already in use.":{id:`5eV1U4`},"Too many custom formulas.":{id:`BDuOuJ`},"Duplicate custom formula in workbook file.":{id:`zOth7_`},"Custom formulas must be restored into a fresh workbook.":{id:`sizqSm`},"The custom formula changed outside history.":{id:`kPZK7E`},"Enter a validation formula.":{id:`eVP4Au`},"Enter a valid validation formula.":{id:`ws21Un`},"Validation messages cannot contain a null character.":{id:`xIDcol`},"Validation titles allow 32 characters and messages allow 255 characters.":{id:`YRkrMC`},"Enter a formula of at most 8192 bytes with a valid range anchor.":{id:`w1BZpO`},"This validation formula cannot be translated across the range.":{id:`ZA9ELE`},"Custom formulas do not support comparison operators.":{id:`XeQrW0`},"The workbook changed. Submit the operation again.":{id:`EzOCXe`},"The input was not accepted. Review the draft and submit again.":{id:`0tKM_D`},"Rust returned a mismatched validation confirmation result.":{id:`1acGm3`},"New comment":{id:`ASnGmQ`},"Reply to comment":{id:`sD2PM8`},"Resolve comment":{id:`4DU3-v`},"Reopen comment":{id:`iPFOEw`},"Enter a workbook display name.":{id:`eZlhyL`},"Display name cannot exceed 100 characters.":{id:`YbmUSS`},"Display name cannot contain control characters.":{id:`DaB2qN`},"Enter comment text.":{id:`M_rUVV`},"Comment text cannot contain a null character.":{id:`2pK_MR`},"Comment text cannot exceed 32767 characters.":{id:`snXACP`},"A comment thread must contain 1 to 1000 entries.":{id:`1b_WRI`},"A comment thread cannot exceed 1000 entries.":{id:`ByhloL`},"Invalid comment display name.":{id:`HnGV58`},"Invalid comment timestamp.":{id:`pUEA3T`},"Comment text is missing.":{id:`FmdZUH`},"Invalid comment line endings.":{id:`_Kdu2_`},"Invalid comment thread history.":{id:`Uz_n3x`},"Invalid comment thread status.":{id:`SV5DGP`},"The comment cell is outside the worksheet.":{id:`PJRNfn`},"The comment worksheet no longer exists.":{id:`vOmCXz`},"Select the anchor cell before changing its comments.":{id:`n8796O`},"This cell already has a comment thread.":{id:`Y1zVYo`},"The comment thread no longer exists.":{id:`RIBT3P`},"Reopen the thread before replying.":{id:`9P7P0N`},"The insertion would move a comment outside the worksheet.":{id:`-_TBF9`},"Duplicate comment cell in workbook file.":{id:`j4W7WC`},"The workbook changed. Reopen the comment editor.":{id:`On1IAr`},"Finish the current operation before changing comments.":{id:`czHnB-`},"Rust comment editing is unavailable.":{id:`GmYzlR`},"Rust returned an invalid comment thread.":{id:`rE2nAF`},"Invalid comment projection request.":{id:`gqiG6R`},"Rust returned a mismatched comment result.":{id:`hzltLX`}},Wr={"The cut cells overlap a named range. Change or remove that name in Name manager before moving cells between sheets. No cells were moved.":{id:`39cJ8L`},"Use nonempty groups and valid numbers; minimum cannot exceed maximum.":{id:`-GTLn8`},"Choose valid filter conditions in nonempty groups, or up to eight different columns.":{id:`VzxHsg`},"Choose at most 1,000 values within 1 MiB, or narrow the search.":{id:`qkNawh`},"All search matches exceed the 1,000-value or 1 MiB selection budget. Narrow the search.":{id:`gHZqDi`},"Rust returned incomplete search matches. The selection was not changed.":{id:`c78pX9`},"Search selection must start at the first match.":{id:`RkvXKu`},"Use nonempty groups with valid filter conditions.":{id:`zSyrS8`},"Choose nonempty groups with valid filter conditions.":{id:`h1kB6t`},"Enter every required argument.":{id:`mEHz0j`},"Complete every required parameter in each repeated group.":{id:`H7MEr_`},"Finish the wildcard escape with *, ? or ~.":{id:`jcJpsw`},"Selection area limit reached. Keep the current selection or start a new selection.":{id:`aTGxbY`},"Unmerge the source and destination before moving cells between sheets. No cells were moved.":{id:`X9Nd2r`},"Move cells outside Excel Tables before cutting between sheets. No cells were moved.":{id:`3WtHTo`}},Gr={...Ur,...Wr,HOST_READ_ONLY:{id:`92pmIM`},HOST_BUSY:{id:`qHskmN`},HOST_STRUCTURE_DISABLED:{id:`TDwBWE`},"Enter a valid http:// or https:// address.":{id:`hmCmxb`},"Select the anchor cell before changing its hyperlink.":{id:`3_dk78`},"The hyperlink display text is too long or invalid.":{id:`aHnxms`},"Edit the table cell text before changing its hyperlink.":{id:`Ho2H4v`},"Could not update the hyperlink display text.":{id:`mYROba`},"The hyperlink cell is outside the worksheet.":{id:`_ic6mc`},"Finish the current operation before changing a hyperlink.":{id:`ppxHxA`},"The workbook changed. Reopen the hyperlink editor.":{id:`V2wP5o`},"Rust returned a mismatched hyperlink result.":{id:`ExvY_b`},"Invalid hyperlink projection request.":{id:`p8Tdwt`},"Rust hyperlink editing is unavailable.":{id:`ZOQAXb`},"Duplicate hyperlink cell in workbook file.":{id:`-gRqKI`},"The hyperlink worksheet no longer exists.":{id:`S9AiiV`},"Insert hyperlink":{id:`qp_pPt`},"Edit hyperlink":{id:`4_5AQh`},"Remove hyperlink":{id:`Np3tAH`},"Older operations were dropped to keep history within its memory limit.":{id:`ADtaE6`},"The workbook did not return an HTML table.":{id:`b41biH`},"This browser cannot write the clipboard. Use a secure HTTPS or localhost page.":{id:`0P1NKR`},"Clipboard permission was denied. Allow clipboard access and try again.":{id:`_09ZtW`},"Use Ctrl/⌘+V in the grid to paste from the clipboard.":{id:`jJYvgv`},"The clipboard does not contain cell text.":{id:`2V3rX6`},"Clipboard permission was denied. Use Ctrl/⌘+V in the grid.":{id:`J86eXk`},"Create named range":{id:`W7eIkx`},"Edit named range":{id:`5UohOl`},"Delete named range":{id:`IsDqQo`},"This value does not meet the cell’s data validation rule. Change it or press Escape.":{id:`HUbHYh`},"This table already has a column with that name. Choose a different column name.":{id:`KYQPT5`},"Enter a non-empty column name or press Escape.":{id:`9biXff`},"Spilled arrays cannot be entered inside a table. Use a single-value formula or press Escape.":{id:`E3Ffuz`},"That edit was not saved.":{id:`GSrs0x`},"This edit was not confirmed — it may or may not have been saved.":{id:`55gvwH`},"A pasted value does not meet its cell’s data validation rule. Nothing was pasted.":{id:`nJUON5`},"Select whole merged cells before copying or pasting.":{id:`2UulkW`},"The paste would hide cell content. Unmerge the destination or change the selection first.":{id:`b1lqfz`},"Merged cells cannot be pasted inside an Excel Table.":{id:`gwvmXR`},"The copied worksheet was deleted. Copy cells again before pasting.":{id:`LQaAcb`},"The selected range must fit whole copies of the clipboard. Nothing was pasted.":{id:`HvVYeo`},"Paste special requires Copy, not Cut. The cut cells are unchanged.":{id:`KHlP9Q`},"Clear the filter before cutting this range. No cells were moved.":{id:`ImeidD`},"This selection has no unfiltered rows to copy.":{id:`qE1wQc`},"This clipboard has no workbook formatting. Copy cells in this workbook first.":{id:`wDSXeX`},"Paste would extend beyond the sheet. Choose another cell.":{id:`DBn_rU`},"This clipboard range is too large. Select a smaller range.":{id:`Z1QgjU`},"The cut cells changed. Cut the range again before pasting.":{id:`g6JIn3`},"An array result cannot be cut independently.":{id:`rfw87a`},"Paste cannot overwrite an array result.":{id:`v1HxXA`},"A formula refers to a larger range. Moving part of that range is not supported yet.":{id:`pcxy7h`},"Cut between sheets is not supported yet.":{id:`ZaMIQW`},"The source or destination includes locked cells.":{id:`fcXw50`},"These cells have already been moved. Copy or cut again to paste.":{id:`RAH-fp`},"Worksheet history changed the clipboard source. Copy or cut again to paste.":{id:`4x25he`},"The clipboard contains an invalid formula. Nothing was pasted.":{id:`szUECB`},"The clipboard text has unmatched quotes. Nothing was pasted.":{id:`9bCtf-`},"Paste arithmetic needs cell contents, not formatting only.":{id:`zyDxYM`},"This cell type cannot be used in paste arithmetic.":{id:`lmxbP9`},"Column widths cannot be combined with arithmetic, transpose or skip blanks.":{id:`P9PxcE`},"Unprotect the worksheet before pasting column widths.":{id:`uxLDG2`},"Selection changed. Paste again.":{id:`YIMZfF`},"Wait for the selected sheet to load.":{id:`UQmovj`},"The workbook is unavailable.":{id:`qfC6ZH`},"The workbook changed. Paste again.":{id:`gFUMrH`},"Pasted cells.":{id:`lMqlrb`},"copy…":{id:`nIkxny`},"cut…":{id:`ZskO8V`},"paste…":{id:`X35TPs`},"Clipboard access is unavailable.":{id:`jLlC2y`},"Clipboard read is unavailable. Use the browser paste shortcut.":{id:`Zuk-59`},"Clipboard write is unavailable. Use the browser copy shortcut.":{id:`9I2SnE`},"Enter a name or cell address.":{id:`P147pt`},"This named range no longer refers to an available worksheet range.":{id:`RvOVou`},"This address is outside the current worksheet canvas.":{id:`6-JjXR`},"Select one continuous range to name.":{id:`SYFEkU`},"Wait for the Rust worksheet to finish loading.":{id:`BiJHCQ`},"The view changed. Try again after the worksheet finishes loading.":{id:`bBorvS`},"Enter a name.":{id:`KmFagX`},"Choose a named range to delete.":{id:`nl87fQ`},"Enter a range inside the selected worksheet, for example A1:A100.":{id:`v6M8gE`},"The named range no longer exists.":{id:`fxOhsR`},"The workbook changed. Reopen the name editor.":{id:`a7Ccx8`},"The view changed. Reopen the name editor.":{id:`f9NNT9`},"Unprotect the worksheets before changing workbook names.":{id:`yR_wYS`},"Enter a defined name or a valid A1 or R1C1 reference, optionally prefixed by a worksheet name.":{id:`CG69YW`},"This recent location is no longer available.":{id:`grrnD3`},"Select one continuous range before using Go to special.":{id:`Ky8-OT`},"The selection or worksheet changed. Try locating cells again.":{id:`eFQPz8`},"The workbook changed. Try locating cells again.":{id:`hA0JZ4`},"No matching cells found. Choose another condition or range.":{id:`RGku3P`},"Entire worksheet canvas":{id:`am8VAJ`},"Selected range":{id:`dWPDm3`},"Spill details are out of date. Refresh to try again.":{id:`zWoRqM`},"This spill target is outside the current worksheet canvas.":{id:`mS4yDu`},"The selection changed. Refresh spill details for the current cell.":{id:`VlSVIO`},"Search text is too long.":{id:`gHTMlT`},"Enter text to find.":{id:`-LmBbZ`},"No matches found.":{id:`nUvneV`},"Find a match before replacing it.":{id:`Gcj4TO`},"Find all before choosing a result.":{id:`xf_klh`},"Choose one contiguous selection before opening Find.":{id:`Mu7B08`},"The workbook changed. Find again.":{id:`1tgCrA`},"The workbook changed. Find all again before choosing a result.":{id:`HorBVl`},"The search worksheet no longer exists.":{id:`BU_dbm`},"The matched cell is outside the current worksheet.":{id:`4Hn9ir`},"This match is in a hidden row or column. Unhide it to view the cell.":{id:`Gd5rfz`},"Finish the current operation before navigating.":{id:`e9OR_8`},"Unprotect the target worksheets before replacing.":{id:`4bsZcL`},"Finish editing the cell first.":{id:`UWvGHX`},"Finish editing the cell before applying borders.":{id:`dg6C0C`},"Finish editing the cell before applying a format.":{id:`NN-ecT`},"Choose a supported border position and line style.":{id:`IOKN7k`},"Enter a color as #RRGGBB, for example #c00000.":{id:`MrPdmn`},"Select an editable range and wait for the worksheet to finish loading.":{id:`dUoO9H`},"Could not confirm the borders. Check the cells before retrying.":{id:`d6YWmx`},"The selection changed. Close the palette and select the target again.":{id:`Zrm1Q5`},"Enter a six-digit color such as #1a73e8.":{id:`kSq3rj`},"Could not confirm the color change. Check the cell before retrying.":{id:`viRbh6`},"The selection changed. Close the dialog and select the target again.":{id:`0vsn4X`},"Enter a whole-number font size from 1 to 512 pixels.":{id:`gAlmKU`},"Could not confirm the font size. Check the cell before retrying.":{id:`7jE4WS`},"Preview unavailable. Change a setting to try again.":{id:`t9X8Jk`},"Enter a whole number of decimal places from 0 to 15.":{id:`lVo2Hj`},"Choose a supported category.":{id:`Z6c0s9`},"Use at most 16 characters for the currency symbol, without control characters.":{id:`gF0RZf`},"Use a positive whole-number denominator, at most 4294967295.":{id:`LdS4Tj`},"Choose one of the supported time formats.":{id:`lavjOK`},"Choose one of the supported date formats.":{id:`IIMI40`},"Could not confirm the number format. Check the cells before retrying.":{id:`nxH2SU`},"Could not confirm the layout change. Check the cell before retrying.":{id:`F7Ws55`},"Select one continuous range to merge cells.":{id:`lm5BjK`},"Unprotect the worksheet before merging cells.":{id:`KfRQ6E`},"The selection changed. Choose Merge again.":{id:`ACyvJN`},"Select cells on one worksheet before changing them.":{id:`GnOb9s`},"Unprotect the worksheet before changing row or column sizes.":{id:`J9UMdu`},"Unprotect the worksheets before inserting or deleting rows and columns.":{id:`gVnFp9`},"Unprotect the worksheet before hiding or showing rows and columns.":{id:`4zwcON`},"Select one continuous fill range.":{id:`0vk7py`},"The fill source selection changed. Drag again.":{id:`pzNy11`},"Include a source row or column and at least one destination.":{id:`uVMHzf`},"Unprotect the worksheet before filling cells.":{id:`PcjMoT`},"No adjacent continuous data to fill.":{id:`-4qQPN`},"The selected range cannot be changed.":{id:`z5BgQK`},"The selection changed. Close and reopen Series.":{id:`6-fTif`},"Select one row or column with enough samples and at least one destination.":{id:`7SsmY_`},"Custom list is limited to 16384 characters.":{id:`F3u9-K`},"Enter a list name of 1–64 characters.":{id:`rWi7Ty`},"A list with this name already exists.":{id:`LJyVUg`},"Enter 2–512 non-empty, unique list items.":{id:`OTXgpc`},"You can save at most 32 custom lists per workbook session.":{id:`qzwvx5`},"List saved.":{id:`VC-lcC`},"List deleted.":{id:`56tAzN`},"Fill was not applied. Try again.":{id:`0AfV3H`},"Number sequence":{id:`DCz3x6`},"Date sequence":{id:`V1JoG1`},"Month names":{id:`aop_8l`},"Weekday names":{id:`l9NaWn`},"Custom list":{id:`kO8cEc`},"Text numbering":{id:`ZWB-hA`},"Linear trend":{id:`EiC2i7`},"Select one continuous sort range.":{id:`VCwVZr`},"Select at least two data rows. Include all columns to move together.":{id:`XQVk7A`},"Unprotect the worksheet before sorting cells.":{id:`TGNnR3`},"Already in order.":{id:`fnv1e5`},"Sorting…":{id:`gmAH_b`},"The selection changed. Close and reopen Sort.":{id:`HS9Qjo`},"Sort was not applied. Try again.":{id:`f1v43E`},"Select one continuous filter range, including its header.":{id:`alQkIW`},"Select a header and at least one data row for the filter range.":{id:`gIFQyx`},"Unprotect the worksheet before changing its filter.":{id:`DZV1P-`},"Filtering…":{id:`Aovm5Q`},"Filter was not applied. Try again.":{id:`OuHJVE`},"The table filter was not applied.":{id:`ektDHt`},"The table changed. Close and reopen Filter.":{id:`EKZQ5Y`},"The workbook changed. Close and reopen Filter.":{id:`GnOQke`},"The worksheet changed. Close and reopen Filter.":{id:`uYkSuw`},"Choose at most 1,000 values, or use a text or number condition.":{id:`JqGP8-`},"Use different columns and valid numbers; minimum cannot exceed maximum.":{id:`zK2Sra`},"Choose one continuous range.":{id:`FM4f_9`},"The workbook or worksheet changed. Close and reopen Conditional formatting.":{id:`ylbHdw`},"This rule type cannot be edited here yet.":{id:`c7xa56`},"Finish the current edit or history operation first.":{id:`MQlCsM`},"Unprotect the worksheet before changing conditional formatting.":{id:`vvz4cN`},"Wait for the worksheet to finish loading.":{id:`VHZ5Jr`},"The rule no longer exists.":{id:`xDE6Uf`},"Enter ranges inside this worksheet, separated by commas, for example A1:A10, C1:C10.":{id:`3nYLve`},"The workbook changed. Close and reopen Data validation.":{id:`4Gak8P`},"Unprotect the worksheet before changing data validation.":{id:`7d6bp1`},"Enter both minimum and maximum.":{id:`piRcOa`},"Enter the comparison value.":{id:`dbSixe`},"The target cells are locked on a protected sheet.":{id:`vJ38Ph`},"Select a source column first.":{id:`Wc0f4I`},"Select one continuous column of cells.":{id:`-tc1Xu`},"Enter a destination cell such as C1.":{id:`XEFP6t`},"Enter increasing positive character positions, for example 2, 5.":{id:`AKf6v0`},"Choose at least one delimiter.":{id:`MfotVq`},"The selection or workbook changed. Close this dialog and select the source again.":{id:`aOUbsP`},"Choose a source field number from 1 to 16384.":{id:`5RjJ0D`},"Could not preview this split.":{id:`76brUi`},"Update the preview before applying.":{id:`RKsf5g`},"Confirm overwriting the occupied destination cells before applying.":{id:`Ps49-9`},"The split was applied, but the view could not be updated. Check the sheet before retrying.":{id:`fZ-9r2`},"Could not confirm the split. Check the sheet before retrying.":{id:`oJeSXO`},"The selection or workbook changed. Close this dialog and select the target again.":{id:`HKa6n2`},"The selection or workbook changed. Close this dialog and select the range again.":{id:`-dwSnp`},"Choose at least one comparison column.":{id:`jQ5Pj5`},"Could not preview duplicate records.":{id:`sFhUij`},"Update the preview before removing records.":{id:`7oTUDm`},"Records were removed, but the view could not be updated. Check the sheet before retrying.":{id:`1DC2E3`},"Could not confirm removal. Check the sheet before retrying.":{id:`yLQWOb`},"This result changed. Update the preview.":{id:`1mKYZW`},"Unhide this row or column before locating the record.":{id:`sCspXw`},"The view changed. Reopen Tables.":{id:`_8P7TX`},"The workbook changed. Reopen Tables.":{id:`9DMyk3`},"The table no longer exists.":{id:`tGdqgz`},"Choose a table column.":{id:`WSMWJA`},"Choose a table first.":{id:`4hrl8k`},"Choose a valid table style.":{id:`VrpcdZ`},"Enter a column name.":{id:`HEWf7O`},"Choose a column and a total function.":{id:`MEyqnp`},"Choose a table to convert.":{id:`zxe04A`},"Enter a table name.":{id:`7d_FW1`},"Enter one range inside this worksheet, for example A1:C10.":{id:`yyJNmx`},"Choose a table to resize.":{id:`hXwYa1`},"The table change was not applied.":{id:`ZfSbdG`},"The table no longer refers to an available worksheet range.":{id:`jezaqq`},"Create table needs a selection with a header row and at least one data row.":{id:`jhRrQD`},"The active cell is not inside a table. Select a cell within a table to toggle its totals row.":{id:`AdV10P`},"The table name looks like a cell reference. Choose another name.":{id:`h9umhu`},"The new name is the same as the current name.":{id:`40hqlo`},"The new column name is the same as the current name.":{id:`ZPLS0d`},"Create table failed: this workbook already has the maximum number of tables.":{id:`Lvwi-8`},"Create table failed: the table name is invalid.":{id:`nf0r3g`},"Create table failed: that name is reserved by a built-in function.":{id:`vZmm0f`},"Create table failed: the name looks like a cell reference. Choose another name.":{id:`3GQM5r`},"Create table failed: that name is already in use.":{id:`KdztGt`},"Create table failed: the selection overlaps an existing table.":{id:`ViBWCP`},"Create table failed: the target sheet could not be found.":{id:`DHn9h5`},"Table operation failed: the table could not be found.":{id:`O7s7Kp`},"Table operation failed: the column could not be found.":{id:`8EBiEB`},"Table operation failed: that column name is already in use.":{id:`6YUp4B`},"Table operation failed: the column name is invalid.":{id:`3AURXx`},"Table operation failed: a custom formula is still running. Try again.":{id:`AgpQe_`},"Totals row failed: the row below the table is occupied. Clear it and try again.":{id:`wo2Eei`},"Totals function failed: enable the totals row first.":{id:`2EZ1-q`},"Totals function failed: that aggregate is not recognized.":{id:`iUejpH`},"Rename failed: the table name is invalid.":{id:`fJsCEU`},"Rename failed: that name is reserved by a built-in function.":{id:`hYkWhN`},"Rename failed: the name looks like a cell reference. Choose another name.":{id:`u1P2XM`},"Rename failed: that name is already in use.":{id:`UYUo0N`},"Rename failed: the table could not be found.":{id:`DB-3zd`},"Rename failed: the column could not be found.":{id:`-z1N4o`},"Rename failed: that column name is already in use.":{id:`-sjcnp`},"Rename failed: the column name is invalid.":{id:`61j71l`},"Delete failed: the table could not be found.":{id:`sR1BeQ`},"Table operation failed.":{id:`lc2S5r`},"Unprotect the worksheets before changing tables.":{id:`BIPC53`},"Preparing download…":{id:`LYjoLq`},"Opening workbook…":{id:`T9pSh5`},"Download requested. Keep the file to save your work.":{id:`6ejfvr`},"Choose a non-empty workbook file no larger than 64 MiB.":{id:`GEPL7V`},"This is not a valid .einfach.json workbook file.":{id:`VK1oRU`},"Unsupported workbook file. Choose an .einfach.json file exported by this app.":{id:`vCS6V9`},"Workbook files must be 64 MiB or smaller.":{id:`o6USeU`},"The workbook file has no sheet canvases.":{id:`q_YJ1c`},"The workbook file has mismatched sheet canvases.":{id:`-y8AX3`},"The workbook file has an invalid sheet canvas.":{id:`zfvhB0`},"Workbook title must contain 1–256 characters.":{id:`AtooT1`},"Sheet name cannot be empty":{id:`VvVbTm`},"Keep at least one worksheet.":{id:`8Fdybh`},"The selected sheet is no longer available":{id:`vYm8sP`},"Sheet list failed to load":{id:`6-mXJV`},"Unprotect the affected worksheet before undoing or redoing.":{id:`kAD6nO`},"Copying statistic…":{id:`PQwyxE`},"This statistic has no finite value to copy.":{id:`m-OZHQ`},"Selection statistics failed.":{id:`6ar9wo`},Count:{id:`wBMjJ2`},"Numerical count":{id:`NTocMg`},Sum:{id:`AxQiPW`},Average:{id:`3uQmjD`},Min:{id:`eTUF28`},Max:{id:`CK1KXz`},"Adds all the numbers in a range of cells.":{id:`pMkWca`},"Returns the arithmetic mean of its arguments.":{id:`NrRev1`},"Counts the number of cells that contain numbers.":{id:`dnjvPb`},"Returns the smallest numeric value in the arguments.":{id:`6BMkc7`},"Returns the largest numeric value in the arguments.":{id:`lmPMjA`},"Returns one value if the condition is true and another otherwise.":{id:`DzUAQh`},"Sums the cells in a range that meet a given criterion.":{id:`jfJuPj`},"Counts the cells in a range that meet a given criterion.":{id:`JhfSIU`},"Returns the absolute value of a number.":{id:`RG08QT`},"Rounds a number to a specified number of digits.":{id:`UG5Fr4`},"Joins several text strings into one.":{id:`384ruS`},"Returns TRUE if all arguments are TRUE.":{id:`sQoaQp`},"Returns TRUE if any argument is TRUE.":{id:`9Ht7x7`},"Reverses the logical value of its argument.":{id:`5TqcTI`},"Returns the number of characters in a text string.":{id:`ojeUOq`},"Converts text to lowercase.":{id:`bbuPq4`},"Converts text to uppercase.":{id:`95Zxe1`},"Removes extra spaces from a text string.":{id:`V2jZJh`},"Returns a positive square root.":{id:`3vRLla`},"Returns the remainder after a number is divided by a divisor.":{id:`N78_jS`},"Looks up a value in the first column of a range and returns a value from a column in the same row.":{id:`ccMx26`},"Math & statistics":{id:`9oDhvO`},Custom:{id:`8Tg_JR`},"Linked content":{id:`AOLIUl`},Logical:{id:`xlq_V1`},"Lookup & reference":{id:`l1RZGM`},"Date & time":{id:`As7Osr`},Information:{id:`nSkB8g`},Financial:{id:`aQST8Z`},Database:{id:`JY5Oyv`},Engineering:{id:`SUXBxp`},Arrays:{id:`z85GiQ`},Lambda:{id:`zBLASl`},Text:{id:`xeiujy`},"Returns image metadata as text; does not display an image.":{id:`cMiGgC`},"Returns display text; does not create a clickable link.":{id:`CCkP4c`},"Replaces characters; does not translate between languages.":{id:`J4EeYq`},"Capturing formatting…":{id:`m3gazo`},"Selection changed. Start Format painter again.":{id:`I7Pxc_`},"Select cells to paint. Press Esc to stop.":{id:`-Hts3l`},"Painting formatting…":{id:`6CaT8a`},"Formatting applied.":{id:`x-6LjX`},"Formatting applied. Select another range; Esc to stop.":{id:`9eQzdR`},"Edit cell":{id:`92XSWG`},"Format selection":{id:`IQiVXD`},"Format cells":{id:`UnQEKA`},"Format range":{id:`dYU8W5`},"Clear contents":{id:`PYoFZ7`},"Clear formatting":{id:`6ELX9Y`},"Clear all":{id:`yYxB17`},Paste:{id:`HzVv6g`},Cut:{id:`cCd8Bs`},Replace:{id:`fqSfXY`},"Remove duplicates":{id:`UEEaA4`},Sort:{id:`f6Hub0`},Filter:{id:`o7J4JM`},"Merge cells":{id:`HNtOdD`},"Unmerge cells":{id:`H59Tdt`},"Create table":{id:`wNbipR`},"Rename table":{id:`4cTW4f`},"Rename table column":{id:`z_ykwV`},"Delete table":{id:`HSI88F`},"Resize table":{id:`00iwhf`},"Table style":{id:`eqSg9V`},"Table totals":{id:`5zT0Ji`},"Add worksheet":{id:`b-BzJy`},"Rename worksheet":{id:`WZ76uH`},"Delete worksheet":{id:`a8dPbP`},"Move worksheet":{id:`7TlGX4`},"Data validation":{id:`jmyfzI`},"Conditional formatting":{id:`BAOW-8`},"Text to columns":{id:`fJyysq`},"Another mutation is in progress.":{id:`vcoUxC`},"Select the entire merged cell before formatting.":{id:`83IDA4`},"Formatting exceeds 100,000 addressed cells. Choose a smaller selection.":{id:`pSpoKs`},"Unfreeze panes":{id:`r2PL7g`},"Freeze panes":{id:`kN1kfu`},"Clear data validation":{id:`JeiwaE`},"Set data validation":{id:`YF_Hu1`},"Hide rows":{id:`2b8FLG`},"Hide columns":{id:`Y4RFb3`},"Unhide rows and columns":{id:`Iz3e-u`},"Copy conditional format":{id:`KMKN_6`},"Enable conditional format":{id:`YgYFFL`},"Disable conditional format":{id:`1azfe2`},"Reorder conditional formats":{id:`vSjOej`},"Edit conditional format":{id:`ElWC92`},"Add conditional format":{id:`SPb5SQ`},"Remove conditional format":{id:`nGRMma`},"Filter table":{id:`5gxkPZ`},"Add table row":{id:`Alp6dg`},"Paste and expand table":{id:`pvOvWS`},"Show table headers":{id:`CtroLx`},"Hide table headers":{id:`XKCkjM`},"Format table":{id:`moiqMa`},"Show table totals":{id:`D-20RG`},"Hide table totals":{id:`vKwYeC`},"Set table total function":{id:`LYywWc`},"Convert table to range":{id:`6Qpg1W`},"Merge and center":{id:`gfe9mz`},Group:{id:`L8fEEm`},Ungroup:{id:`E4mitS`},"Collapse group":{id:`svN3--`},"Expand group":{id:`MCdyqs`},"Show outline level":{id:`tlsEba`},"Insert rows":{id:`YSL2bn`},"Delete rows":{id:`2YfH3r`},"Insert columns":{id:`sra8tB`},"Delete columns":{id:`b2IO7F`},"Clear formats":{id:`shCLkz`},"Format borders":{id:`20DDH7`},"Fill down":{id:`45RK77`},"Fill right":{id:`7Yejny`},"Fill number series":{id:`2kwC9a`},"Fill date series":{id:`DiY0xN`},"Fill month-name series":{id:`hKXqS3`},"Fill weekday-name series":{id:`PpUl-j`},"Fill custom-list series":{id:`Pd6fQq`},"Fill text-number series":{id:`H8-89c`},"Fill linear-trend series":{id:`3JICy8`},"Resize row":{id:`lw9h7q`},"Resize column":{id:`Xo29SJ`},"Filter cleared. Manually hidden rows are unchanged.":{id:`3-wLc0`}};function q(e,t){if(!t)return``;let n=Object.hasOwn(Gr,t)?Gr[t]:void 0;if(n)return e._(n);let r=/^Copied (\d+) × (\d+) cells(?: as (text|markdown|html))?\.$/.exec(t);if(r){let[,t,n,i]=r;return i?e._({id:`NcqUHv`,values:{rows:t,cols:n,format:i}}):e._({id:`t0r_cI`,values:{rows:t,cols:n}})}if(r=/^(\d+) × (\d+) cells ready to move\. Paste to finish\.$/.exec(t),r){let[,t,n]=r;return e._({id:`jqvnN9`,values:{rows:t,cols:n}})}if(r=/^Sorted (\d+) rows\.$/.exec(t),r){let t=r[1];return e._({id:`QgfCMt`,values:{rows:t}})}if(r=/^(\d+) rows filtered out\.$/.exec(t),r){let t=r[1];return e._({id:`tvyeCU`,values:{rows:t}})}if(r=/^Table (.+)\. (\d+) rows filtered out in this worksheet\.$/.exec(t),r){let[,t,n]=r;return e._({id:`ajomFP`,values:{table:t,rows:n}})}if(r=/^Table (.+) filter cleared\. Manually hidden rows are unchanged\.$/.exec(t),r){let t=r[1];return e._({id:`VMVP0A`,values:{table:t}})}if(r=/^Replaced (\d+) occurrence\(s\) in (\d+) cell\(s\)\. Find next to continue\.$/.exec(t),r){let[,t,n]=r;return e._({id:`APMjZV`,values:{occurrences:t,cells:n}})}if(r=/^(Worksheet|Workbook) recalculated \((\d+) formulas\)\.$/.exec(t),r){let t=r[2];return r[1]===`Worksheet`?e._({id:`qjcuv8`,values:{count:t}}):e._({id:`aUmtyJ`,values:{count:t}})}if(r=/^Copied (Count|Numerical count|Sum|Average|Min|Max)\.$/.exec(t),r){let t=q(e,r[1]);return e._({id:`bJ_Jbl`,values:{label:t}})}if(r=/^(Filling|Filled) (down|right)(…|\.)$/.exec(t),r)return r[1]===`Filling`?r[2]===`down`?e._({id:`4ra5M0`}):e._({id:`7dNL2O`}):r[2]===`down`?e._({id:`MYt4fi`}):e._({id:`QlHuSE`});if(r=/^Enter a whole number from (\d+) to (\d+) pixels\.$/.exec(t),r){let[,t,n]=r;return e._({id:`FynPmb`,values:{min:t,max:n}})}if(r=/^Selected (\d+) cells in (\d+) areas\. Searched (.+)\.$/.exec(t),r){let[,t,n,i]=r;return e._({id:`omWsMB`,values:{cells:t,areas:n,range:i}})}if(r=/^(.+)\. Argument help is not available yet\.$/.exec(t),r){let t=q(e,r[1]);return e._({id:`LPgOxe`,values:{category:t}})}if(t.endsWith(` Current workbook kept.`)){let n=q(e,t.slice(0,-23));return e._({id:`vu1f-F`,values:{detail:n}})}if(t.startsWith(`Could not capture formatting: `)){let n=q(e,t.slice(30));return e._({id:`kDK8aC`,values:{detail:n}})}return t}function Kr(){return new Worker(new URL(
|
|
2
|
+
/* @vite-ignore */
|
|
3
|
+
new URL(`assets/workbook.worker-x_d_i2qm.js`,import.meta.url).href,``+import.meta.url),{type:`module`})}function qr({children:e,definition:t,workerFactory:n=Kr}){let{i18n:a,_:o}=U(),s=r(pr),c=i(gr),l=i(xe);return R(()=>(c({definition:t,workerFactory:n}),()=>l()),[t,l,c,n]),s.status===`loading`?/* @__PURE__ */ G(`div`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`SIr9dK`})}):s.status===`error`?/* @__PURE__ */ K(`section`,{role:`alert`,children:[/* @__PURE__ */ G(`h1`,{children:/* @__PURE__ */ G(H,{id:`SV_AuA`})}),/* @__PURE__ */ G(`p`,{children:q(a,s.message)})]}):e}function Jr({children:e,definition:r,store:i,workerFactory:a,...o}){let s=Mr(()=>i??t(),[i]);return/* @__PURE__ */ G(Hr,{...o,children:/* @__PURE__ */ G(n,{store:s,children:/* @__PURE__ */ G(qr,{definition:r,workerFactory:a,children:e})})})}function Yr(e,t){let n=z(),a=r(Ve),o=r(Be),s=r(Te),c=i(_r),l=r(Re),u=r(Le),d=r(j),f=r(Ie),p=d.status===`drafting`&&t===`formula-bar`==(d.source?.source===`formula-bar`),m=i(ye);return B(()=>{let t=e.current;t&&document.activeElement===t&&a?.tokenRange&&o>=0&&t.setSelectionRange(o,o)},[e,a?.tokenRange,o,s]),{listId:n,activeOption:p&&l[u]?`${n}-${u}`:void 0,signatureId:p&&!l.length&&f?`${n}-signature`:void 0,onSelect:()=>{let t=e.current;t&&document.activeElement===t&&c(t.selectionStart)},onFormulaKey:e=>{let t=e.currentTarget,n={handled:!1};return Ir(()=>{n=m({key:e.key,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,isComposing:e.nativeEvent.isComposing||e.keyCode===229,start:t.selectionStart,end:t.selectionEnd})}),n.handled&&(e.preventDefault(),n.caret!==void 0&&t.setSelectionRange(n.caret,n.caret)),n.handled}}}function Xr({spec:e,activeArgIndex:t=-1,compact:n=!1}){let{i18n:r,_:i}=U(),a=r.locale.toLowerCase().startsWith(`zh`),o=Yt({spec:e,activeArgIndex:t}),s=a&&e.summaryZh?e.summaryZh:q(r,e.summary),c=e.args[t],l=e.signatureAvailable===!1?`${e.name}(…)`:Xt(e),u=e=>a&&e.descriptionZh?e.descriptionZh:e.description;return/* @__PURE__ */ K(`section`,{className:`formula-parameter-help${n?` is-compact`:``}`,"data-formula-help":e.name,children:[/* @__PURE__ */ G(`code`,{className:`formula-help-signature`,"data-formula-help-signature":!0,children:t<0?l:/* @__PURE__ */ K(W,{children:[e.name,`(`,o.map((e,t)=>/* @__PURE__ */ K(`span`,{children:[t>0&&`, `,e.active?/* @__PURE__ */ G(`strong`,{children:e.text}):e.text]},t)),`)`]})}),/* @__PURE__ */ G(`p`,{className:`formula-help-summary`,children:s}),n&&c&&u(c)&&/* @__PURE__ */ K(`p`,{className:`formula-help-active`,"data-formula-active-argument":!0,children:[/* @__PURE__ */ G(`code`,{children:c.name}),`: `,u(c)]}),!n&&e.args.some(e=>e.description)&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`h3`,{children:/* @__PURE__ */ G(H,{id:`F18WP3`})}),e.repeat&&/* @__PURE__ */ G(`p`,{className:`formula-help-group`,children:/* @__PURE__ */ G(H,{id:`1BEtVC`})}),/* @__PURE__ */ G(`dl`,{className:`formula-help-parameters`,children:e.args.map((e,t)=>/* @__PURE__ */ K(`div`,{"data-parameter":e.name,children:[/* @__PURE__ */ K(`dt`,{children:[/* @__PURE__ */ G(`code`,{children:e.name}),` `,/* @__PURE__ */ K(`span`,{className:`formula-help-qualifier`,children:[e.optional?/* @__PURE__ */ G(H,{id:`LLAa_9`}):/* @__PURE__ */ G(H,{id:`TMLAx2`}),e.repeats&&/* @__PURE__ */ K(W,{children:[` · `,/* @__PURE__ */ G(H,{id:`xwftZJ`})]})]})]}),/* @__PURE__ */ G(`dd`,{children:u(e)})]},t))})]}),e.examples&&e.examples.length>0&&/* @__PURE__ */ K(`div`,{className:`formula-help-examples`,children:[/* @__PURE__ */ G(`h3`,{children:/* @__PURE__ */ G(H,{id:`hFthoo`})}),e.examples.map(e=>/* @__PURE__ */ G(`code`,{children:e},e))]}),e.limitations&&e.limitations.length>0&&/* @__PURE__ */ K(`div`,{className:`formula-help-limitations`,children:[/* @__PURE__ */ G(`h3`,{children:/* @__PURE__ */ G(H,{id:`F7nFgA`})}),/* @__PURE__ */ G(`ul`,{children:e.limitations.map(e=>/* @__PURE__ */ G(`li`,{children:a?e.zh:e.en},e.en))})]})]})}function Zr({inputRef:e,id:t,source:n}){let{i18n:a,_:o}=U(),s=r(j),c=r(we),l=r(Re),u=r(Le),d=r(Ie),f=i(x),p=V(null),m=Mr(()=>{let e=document.createElement(`div`);return e.style.display=`contents`,e},[]),h=s.status===`drafting`&&n===`formula-bar`==(s.source?.source===`formula-bar`)&&(l.length>0||d!==null);if(B(()=>{if(!h)return;let t=e.current?.closest(`.einfach-spreadsheet`);if(!t)return;t.append(m);let n=()=>{let n=e.current,r=p.current;if(!n||!r)return;let i=n.getBoundingClientRect(),a=t.getBoundingClientRect();r.style.visibility=i.bottom<=a.top||i.top>=a.bottom||i.right<=a.left||i.left>=a.right?`hidden`:`visible`,r.style.left=`${Math.max(8,Math.min(i.left-a.left,a.width-r.offsetWidth-8))}px`;let o=n.closest(`[data-cell-editor]`)?.querySelector(`[role="alert"]`),s=Math.max(i.bottom,o?.getBoundingClientRect().bottom??0)-a.top+4;r.style.top=`${Math.max(8,s+r.offsetHeight<=a.height-8?s:i.top-a.top-r.offsetHeight-4)}px`};n();let r=p.current?.querySelector(`.formula-function-list`),i=r?.querySelector(`[aria-selected="true"]`);if(r&&i){let e=r.getBoundingClientRect(),t=i.getBoundingClientRect();t.top<e.top?r.scrollTop+=t.top-e.top:t.bottom>e.bottom&&(r.scrollTop+=t.bottom-e.bottom)}let a=typeof ResizeObserver>`u`?null:new ResizeObserver(n);return a?.observe(t),window.addEventListener(`resize`,n),window.addEventListener(`scroll`,n,!0),()=>{a?.disconnect(),window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,n,!0),m.remove()}},[h,e,l,d,u,c,m]),!h)return null;let g=t=>{let n=null;Ir(()=>{n=f(t)}),n!==null&&(e.current?.focus({preventScroll:!0}),e.current?.setSelectionRange(n,n))};return Fr(/* @__PURE__ */ G(`div`,{className:`formula-assist${l.length>0?``:` formula-assist-signature`}`,ref:p,onPointerDown:e=>e.stopPropagation(),onMouseDown:e=>e.preventDefault(),children:l.length>0?/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`div`,{className:`formula-assist-heading`,children:[/* @__PURE__ */ G(H,{id:`2P4BrQ`}),/* @__PURE__ */ G(`span`,{children:`↑ ↓ · Tab / Enter`})]}),/* @__PURE__ */ G(`div`,{id:t,role:`listbox`,"aria-label":o({id:`AuSIB3`}),className:`formula-function-list`,children:l.map(({spec:e},n)=>/* @__PURE__ */ K(`button`,{id:`${t}-${n}`,type:`button`,role:`option`,tabIndex:-1,"aria-selected":n===u,"aria-label":`${e.name} ${q(a,a.locale.startsWith(`zh`)?e.summaryZh??e.summary:e.summary)}`,title:q(a,a.locale.startsWith(`zh`)?e.summaryZh??e.summary:e.summary),onClick:()=>g(e.name),children:[/* @__PURE__ */ G(`code`,{children:e.name}),/* @__PURE__ */ G(`span`,{children:q(a,a.locale.startsWith(`zh`)?e.summaryZh??e.summary:e.summary)})]},e.name))})]}):d&&/* @__PURE__ */ G(`div`,{id:`${t}-signature`,"aria-label":o({id:`JL5iJ3`}),role:`status`,className:`formula-signature`,children:/* @__PURE__ */ G(Xr,{spec:d.spec,activeArgIndex:d.activeArgIndex,compact:!0})})}),m)}function Qr({col:e,table:t}){let n=r(xt),a=r(Nt),o=t?a.find(e=>e.table===t)?.rules??[]:n,s=r(vt).busy,c=r(j).source!==null,l=i(ce),u=o.some(t=>t.colIndex===e);return/* @__PURE__ */ G(`button`,{type:`button`,className:`cell-filter-button`,"data-filtered":u,"aria-label":`Filter ${t?`${t} `:``}column ${Je(e)}`,"aria-haspopup":`dialog`,title:u?`Edit column filter`:`Filter this column`,disabled:s||c,onPointerDown:e=>e.stopPropagation(),onDoubleClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),onClick:n=>{n.stopPropagation(),l({type:`open-column`,col:e,...t?{table:t}:{}})},children:/* @__PURE__ */ G(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`12`,height:`12`,children:/* @__PURE__ */ G(`path`,{d:u?`M2 3h12L9 8v5l-2-1V8z`:`M4 6l4 4 4-4z`,fill:`currentColor`})})})}function $r({bar:e}){return e?/* @__PURE__ */ K(`span`,{"aria-hidden":`true`,className:`cell-data-bar`,"data-data-bar":`true`,children:[/* @__PURE__ */ G(`span`,{className:`cell-data-bar-fill`,style:{left:`${e.left}%`,width:`${e.width}%`,backgroundColor:e.color}}),e.axis!==void 0&&/* @__PURE__ */ G(`span`,{className:`cell-data-bar-axis`,style:{left:`${e.axis}%`}})]}):null}function ei({url:e,color:t,children:n}){let r=De(e);return r?/* @__PURE__ */ G(`a`,{href:r,target:`_blank`,rel:`noopener noreferrer`,tabIndex:-1,title:r,"data-cell-hyperlink":`true`,style:{color:t??`var(--primary, #315cda)`,textDecoration:`underline`},onClick:e=>e.preventDefault(),children:n}):/* @__PURE__ */ G(W,{children:n})}var ti={note:`Cell has a note`,comment:`Cell has comments`};function ni({cell:e,labels:t=ti}){let n=e?.conditionalIcon,r=n&&[`#c93639`,`#b57900`,`#21834a`][n.index];return/* @__PURE__ */ K(W,{children:[n&&/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,className:`cell-conditional-icon`,"data-conditional-icon":`true`,"data-icon-set":n.set,"data-icon-index":n.index,style:{color:r},children:n.set===`three-arrows`?[`↓`,`→`,`↑`][n.index]:n.set===`three-traffic-lights`?`●`:`⚑`}),e?.noteIndicator&&/* @__PURE__ */ G(`span`,{role:`img`,"aria-label":t.note,className:`cell-note-indicator`,"data-cell-note":`true`}),(e?.commentIndicator||e?.commentThreadId)&&/* @__PURE__ */ G(`span`,{role:`img`,"aria-label":t.comment,className:`cell-comment-indicator`,"data-cell-comment":`true`,"data-comment-thread-id":e.commentThreadId})]})}function ri({window:e,ranges:t,rowHeights:n,columnWidths:r,reference:i}){return/* @__PURE__ */ G(W,{children:t.map((t,a)=>{let o={rowStart:Math.max(e.rowStart,t.rowStart),rowEnd:Math.min(e.rowEnd,t.rowEnd),colStart:Math.max(e.colStart,t.colStart),colEnd:Math.min(e.colEnd,t.colEnd)};if(o.rowStart>o.rowEnd||o.colStart>o.colEnd)return null;let s=ii(r,o.colStart-e.colStart,o.colEnd-e.colStart+1,120),c=ii(n,o.rowStart-e.rowStart,o.rowEnd-e.rowStart+1,28);if(s<=0||c<=0)return null;let l={"--selection-left":`${ii(r,0,o.colStart-e.colStart,120)}px`,"--selection-top":`${ii(n,0,o.rowStart-e.rowStart,28)}px`,"--selection-width":`${s}px`,"--selection-height":`${c}px`},u=[`selection-outline`,i&&`formula-reference-outline`,o.rowStart===t.rowStart&&`selection-outline-top`,o.rowEnd===t.rowEnd&&`selection-outline-bottom`,o.colStart===t.colStart&&`selection-outline-left`,o.colEnd===t.colEnd&&`selection-outline-right`].filter(Boolean).join(` `);return/* @__PURE__ */ G(`div`,{"aria-hidden":`true`,className:u,style:l},a)})})}function ii(e,t,n,r){let i=0;for(let a=t;a<n;a++)i+=e?.[a]??r;return i}var ai=/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,oi=/^[A-Za-z0-9, "'\-]+$/,si=/* @__PURE__ */ new Set([`aqua`,`black`,`blue`,`cyan`,`fuchsia`,`gray`,`green`,`grey`,`lime`,`magenta`,`maroon`,`navy`,`olive`,`orange`,`purple`,`red`,`silver`,`teal`,`transparent`,`white`,`yellow`]);function ci(e){let t=e?.trim();if(!t)return;if(ai.test(t)||si.has(t.toLowerCase()))return t;let n=/^rgba?\(\s*([^)]*)\)$/i.exec(t)?.[1]?.split(`,`).map(e=>e.trim()),r=t.toLowerCase().startsWith(`rgba`);if(n&&n.length===(r?4:3)&&n.slice(0,3).every(e=>/^\d{1,3}$/.test(e))&&n.slice(0,3).every(e=>Number(e)<=255))return r?/^(?:0|1|0?\.\d+|1\.0+)$/.test(n[3]??``)?t:void 0:t}function li(e,t,n){if(!n||n.style===`none`)return;let r,i;switch(n.style){case`thin`:r=`solid`,i=`1px`;break;case`medium`:r=`solid`,i=`2px`;break;case`thick`:r=`solid`,i=`3px`;break;case`dashed`:case`dotted`:r=n.style,i=`1px`;break;case`double`:r=`double`,i=`3px`;break;default:return}let a=ci(n.color);switch(t){case`top`:e.borderTopStyle=r,i&&(e.borderTopWidth=i),a&&(e.borderTopColor=a);break;case`right`:e.borderRightStyle=r,i&&(e.borderRightWidth=i),a&&(e.borderRightColor=a);break;case`bottom`:e.borderBottomStyle=r,i&&(e.borderBottomWidth=i),a&&(e.borderBottomColor=a);break;case`left`:e.borderLeftStyle=r,i&&(e.borderLeftWidth=i),a&&(e.borderLeftColor=a)}}function ui(e,t){let n={};if(t&&(n.textAlign=t===`number`?`right`:t===`boolean`||t===`error`?`center`:`left`),!e)return t?n:void 0;let r=ci(e.fgColor),i=ci(e.bgColor),a=e.fontFamily?.trim(),o=e.fontSize,s=[e.underline&&`underline`,e.strikethrough&&`line-through`].filter(Boolean);switch(e.bold&&(n.fontWeight=`bold`),e.italic&&(n.fontStyle=`italic`),s.length&&(n.textDecoration=s.join(` `)),r&&(n.color=r),i&&(n.backgroundColor=i),a&&oi.test(a)&&(n.fontFamily=a),typeof o==`number`&&Number.isFinite(o)&&o>0&&o<=512&&(n.fontSize=`${o}px`),e.align){case`left`:case`center`:case`right`:case`justify`:n.textAlign=e.align;break;case`fill`:n.textAlign=`left`;break;case`distributed`:n.textAlign=`justify`,n.textAlignLast=`justify`}switch(e.verticalAlign){case`top`:case`bottom`:n.verticalAlign=e.verticalAlign;break;case`center`:n.verticalAlign=`middle`}typeof e.indent==`number`&&Number.isFinite(e.indent)&&e.indent>0&&(n.paddingLeft=`${Math.min(e.indent,250)*8}px`),li(n,`top`,e.borders?.top),li(n,`right`,e.borders?.right),li(n,`bottom`,e.borders?.bottom),li(n,`left`,e.borders?.left);let c=e.overflow??(e.wrap?`wrap`:void 0);return c===`wrap`?(n.overflowWrap=`anywhere`,n.whiteSpace=`pre-wrap`,n.wordBreak=`break-word`):c===`clip`||c===`ellipsis`?(n.overflow=`hidden`,n.textOverflow=`ellipsis`,n.whiteSpace=`nowrap`):c===`overflow`&&(n.overflow=`visible`,n.whiteSpace=`nowrap`),n}function di(e){if(e?.rotation===`vertical`)return{display:`inline-block`,textOrientation:`upright`,writingMode:`vertical-rl`};if(typeof e?.rotation==`number`&&Number.isFinite(e.rotation)&&e.rotation>=-90&&e.rotation<=90&&e.rotation!==0)return{display:`inline-block`,transform:`rotate(${e.rotation}deg)`,transformOrigin:`center center`}}function fi(e){let t=me(e);return(...e)=>{let{borders:n,suppressTop:r,suppressLeft:i}=t(...e);return{...ui({borders:n}),...r?{borderTopWidth:`0px`}:{},...i?{borderLeftWidth:`0px`}:{}}}}function pi(e,t,n){return e!==void 0&&t>=e.rowStart&&t<=e.rowEnd&&n>=e.colStart&&n<=e.colEnd}function mi({window:e,cells:t,mergedRanges:n,selected:i,rowHeights:a,columnWidths:o,metadataLabels:s}){let c=r(bt),l=r(Nt),u=r(Ve),d=r(N).result,f=r(I),p=r(sr),m=r(Yn),h=u?.pickAnchor&&u.pickFocus?{rowStart:Math.min(u.pickAnchor.row,u.pickFocus.row),rowEnd:Math.max(u.pickAnchor.row,u.pickFocus.row),colStart:Math.min(u.pickAnchor.col,u.pickFocus.col),colEnd:Math.max(u.pickAnchor.col,u.pickFocus.col)}:void 0,g=h?[h]:i?[i]:m,_=new Map(t.map(e=>[`${e.row}:${e.col}`,e])),v=fi({cells:t,window:e,rowHeights:a,columnWidths:o,projection:d?.kind===`visible-window`?d:void 0,scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}),y=[];for(let t=e.rowStart;t<=e.rowEnd;t+=1){if(a?.[t-e.rowStart]===0)continue;let r=[],i=l.filter(e=>e.range.rowStart===t);for(let l=e.colStart;l<=e.colEnd;l+=1){if(o?.[l-e.colStart]===0)continue;let u=_.get(`${t}:${l}`),d=ct(n??[],{row:t,col:l})!==void 0,f=g.some(e=>pi(e,t,l)),m=di(u?.format),h={...ui(u?.format?{...u.format,borders:void 0}:void 0,u?.valueKind),...v(t,l,u?.format)},y=a?.[t-e.rowStart]??28,b=Number.parseFloat(String(h.borderTopWidth??(h.borderTopStyle?3:0))),x=Number.parseFloat(String(h.borderBottomWidth??1)),S=Ue(u,p),C=i.find(({range:e})=>l>=e.colStart&&l<=e.colEnd)?.table,w=!d&&(C!==void 0||t===c?.rowStart&&l>=c.colStart&&l<=c.colEnd);r.push(/* @__PURE__ */ K(`td`,{className:`cell cell-metadata-host${f?` cell-selected`:``}${w?` cell-filter-header`:``}${u?.dataBar&&!d?` cell-data-bar-host`:``}`,"data-cell":`${t}:${l}`,title:p?u?.formula:void 0,"aria-hidden":d||void 0,"data-selected":f?`true`:void 0,style:h,children:[!d&&/* @__PURE__ */ G($r,{bar:u?.dataBar}),!d&&/* @__PURE__ */ G(ni,{cell:u,labels:s}),/* @__PURE__ */ G(`span`,{className:`cell-content`,"data-conditional-icon-value":!d&&u?.conditionalIcon?u.conditionalIcon.showValue?`visible`:`hidden`:void 0,style:{maxHeight:Math.max(0,y-6-b-x),visibility:d?`hidden`:void 0},children:/* @__PURE__ */ G(ei,{url:p?void 0:u?.hyperlink,color:u?.format?.fgColor,children:m?/* @__PURE__ */ G(`span`,{className:`cell-rotated-text`,style:m,children:S}):S})}),w&&/* @__PURE__ */ G(Qr,{col:l,table:C})]},l))}y.push(/* @__PURE__ */ G(`tr`,{style:{height:a?.[t-e.rowStart]},children:r},t))}return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`table`,{className:`spreadsheet-grid`,children:[o&&/* @__PURE__ */ G(`colgroup`,{children:o.filter(e=>e>0).map((e,t)=>/* @__PURE__ */ G(`col`,{style:{width:e}},t))}),/* @__PURE__ */ G(`tbody`,{children:y})]}),/* @__PURE__ */ G(ri,{window:e,ranges:g,rowHeights:a,columnWidths:o,reference:!!h})]})}function hi({range:e,window:t}){let n=r(N).result,i=r(I),a=r(F);if(n?.kind!==`visible-window`||n.sheetId!==i.sheetId)return null;let o=n.frozen?.regions.find(e=>e.window===t),s=fi({cells:o?.cells??n.cells,window:t,projection:n,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft,isCellVisible:(e,t)=>{let r=M(i,a,{rowStart:e,rowEnd:e,colStart:t,colEnd:t}),o=e<(n.freeze?.rows??0),s=t<(n.freeze?.cols??0),c=o?0:i.scrollTop+(n.frozen?.height??0),l=s?0:i.scrollLeft+(n.frozen?.width??0);return r.height>0&&r.width>0&&r.top+r.height>c&&r.left+r.width>l},rowHeights:Array.from({length:t.rowEnd-t.rowStart+1},(e,r)=>Xe(a,n.sheetId,t.rowStart+r,i.rowHeight)),columnWidths:Array.from({length:t.colEnd-t.colStart+1},(e,r)=>Ye(a,n.sheetId,t.colStart+r,i.colWidth))}),c=M(i,a,e),l=M(i,a,t),u=[];for(let n of[`Top`,`Right`,`Bottom`,`Left`]){let r=n===`Top`||n===`Bottom`,o=n===`Top`?e.rowStart:n===`Bottom`?e.rowEnd:n===`Left`?e.colStart:e.colEnd;if(r?o<t.rowStart||o>t.rowEnd:o<t.colStart||o>t.colEnd){let e=n===`Top`?c.top:n===`Bottom`?c.top+c.height:n===`Left`?c.left:c.left+c.width,t=r?l.top:l.left,i=t+(r?l.height:l.width);if(e<t||e>i)continue}let d=r?Math.max(e.colStart,t.colStart):Math.max(e.rowStart,t.rowStart),f=r?Math.min(e.colEnd,t.colEnd):Math.min(e.rowEnd,t.rowEnd);for(let e=d;e<=f;e++){let t=r?o:e,l=r?e:o,d=M(i,a,{rowStart:t,rowEnd:t,colStart:l,colEnd:l});if(r?d.width===0:d.height===0)continue;let f=s(t,l),p=Number.parseFloat(String(f[`border${n}Width`]??1)),m={position:`absolute`,pointerEvents:`none`,boxSizing:`border-box`,top:d.top-c.top-(n===`Bottom`&&!d.height?p:0),left:d.left-c.left-(n===`Right`&&!d.width?p:0),width:d.width||p,height:d.height||p,[`border${n}Style`]:f[`border${n}Style`]??`solid`,[`border${n}Color`]:f[`border${n}Color`]??`var(--gridline)`,[`border${n}Width`]:f[`border${n}Width`]??`1px`};u.push(/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,"data-merged-border":n.toLowerCase(),"data-border-cell":`${t}:${l}`,style:m},`${n}:${e}`))}}return/* @__PURE__ */ G(W,{children:u})}function gi({window:e,anchors:t,metadataLabels:n}={}){let i=r(N),a=r(Yn),o=r(F),s=r(I),c=r(sr),l=i.result;if(l?.kind!==`visible-window`||l.sheetId!==s.sheetId)return null;let u=M(s,o,e??l.window);return/* @__PURE__ */ G(`div`,{className:`merged-cell-layer`,children:(t??l.mergeAnchors)?.map(t=>{let r=t.mergedSpan,i={rowStart:t.row,colStart:t.col,rowEnd:t.row+r.rows-1,colEnd:t.col+r.cols-1},d=M(s,o,i);if(d.width===0||d.height===0)return null;let f=a.some(e=>e.rowStart<=i.rowStart&&e.rowEnd>=i.rowEnd&&e.colStart<=i.colStart&&e.colEnd>=i.colEnd);return/* @__PURE__ */ K(`div`,{role:`gridcell`,"aria-rowspan":r.rows,"aria-colspan":r.cols,"data-cell":`${t.row}:${t.col}`,"data-merged-cell":`true`,title:c?t.formula:void 0,"aria-selected":f,className:`cell merged-cell cell-metadata-host${t.dataBar?` cell-data-bar-host`:``}`,style:{...ui({...t.format,borders:void 0},t.valueKind),border:0,top:d.top-u.top,left:d.left-u.left,width:d.width,height:d.height,justifyContent:t.format?.verticalAlign===`top`?`flex-start`:t.format?.verticalAlign===`center`?`center`:`flex-end`},children:[/* @__PURE__ */ G(hi,{range:i,window:e??l.window}),/* @__PURE__ */ G($r,{bar:t.dataBar}),/* @__PURE__ */ G(ni,{cell:t,labels:n}),/* @__PURE__ */ G(`span`,{className:`cell-content`,"data-conditional-icon-value":t.conditionalIcon?t.conditionalIcon.showValue?`visible`:`hidden`:void 0,children:/* @__PURE__ */ G(`span`,{style:di(t.format),children:/* @__PURE__ */ G(ei,{url:c?void 0:t.hyperlink,color:t.format?.fgColor,children:Ue(t,c)})})})]},`${t.row}:${t.col}`)})})}var J=28,Y=120;function _i(e,t,n){return{...n===void 0?{}:{sheetId:n},scrollTop:0,scrollLeft:0,viewportHeight:32*J,viewportWidth:Math.min(t,8)*Y,rowHeight:J,colWidth:Y,rowCount:e,colCount:t,overscanRows:0,overscanCols:0}}function vi(e){return Math.max(0,e-J)}function yi(e){return Math.max(0,e-46)}function bi(e){let t=i(ar),n=r(w)?.id;B(()=>{let n=e.current;if(n===null)return;let r=(e=!0)=>{let r=vi(n.clientHeight),i=yi(n.clientWidth);r<=0||i<=0||t({viewportHeight:r,viewportWidth:i,preserveEdges:e})};if(r(!1),typeof ResizeObserver>`u`)return;let i=new ResizeObserver(()=>r());return i.observe(n),()=>i.disconnect()},[e,t,n])}function xi(e){return e.kind===`cell`?e.coord:e.kind===`range`?{row:e.range.rowStart,col:e.range.colStart}:e.kind===`named-range`?e.coord??(e.range?{row:e.range.rowStart,col:e.range.colStart}:null):null}function Si(){let{i18n:e,_:t}=U(),n=r(dt),a=r(wt),o=z(),s=i(Me),c=i(wr),l=i(ie),u=i($t),d=i(E),f=i(Hn),p=V(null),m=V(),h=V(),g=n.focused||n.error?n.input:n.display,_=e=>{let t=xi(e);if(t===null)return;let n=p.current?.closest(`.workbook`)?.querySelector(`.sheet-scroll`),r=vi(n?.clientHeight??0),i=yi(n?.clientWidth??0);f({coord:t,rowAlign:`nearest`,colAlign:`nearest`,range:e.kind===`range`||e.kind===`named-range`?e.range:void 0,viewport:r>0&&i>0?{viewportHeight:r,viewportWidth:i}:void 0})},v=(e,t)=>{let n=l({input:e,sessionId:t});return n instanceof Promise||_(n),n},y=()=>{p.current?.closest(`.workbook`)?.querySelector(`[data-workbook-grid="true"]`)?.focus({preventScroll:!0})},b=(e,t)=>{h.current=t,e.blur(),y()};return/* @__PURE__ */ K(`span`,{className:`name-box-control`,children:[/* @__PURE__ */ G(`input`,{ref:p,"aria-invalid":n.error||void 0,"aria-label":t({id:`Evm31h`}),"aria-describedby":n.error?o:void 0,"aria-busy":a||void 0,readOnly:a,autoComplete:`off`,className:n.error?`name-box name-box-error`:`name-box`,"data-mode":n.mode,onBlur:e=>{let t=m.current;t!==void 0&&(h.current===t?h.current=void 0:e.currentTarget.value.trim().length===0||e.currentTarget.value===n.lastCommitted?u({sessionId:t}):!a&&n.mode!==`committing`&&!n.error&&v(e.currentTarget.value,t),d({sessionId:t}),m.current=void 0)},onFocus:e=>{Ir(()=>{m.current=s()}),h.current=void 0,e.currentTarget.select()},onInput:e=>{let t=m.current;t!==void 0&&c({input:e.currentTarget.value,sessionId:t})},onKeyDown:e=>{let t=m.current;if(t!==void 0){if(e.stopPropagation(),e.key===`Enter`){if(a||e.nativeEvent.isComposing||e.keyCode===229)return;e.preventDefault();let n=e.currentTarget,r=v(n.value,t);r instanceof Promise?r.then(e=>{e.kind!==`invalid`&&m.current===t&&document.activeElement===n&&b(n,t)}):r.kind!==`invalid`&&b(n,t)}else e.key===`Escape`&&(e.preventDefault(),u({sessionId:t}),b(e.currentTarget,t))}},spellCheck:!1,value:g}),n.errorMessage&&/* @__PURE__ */ G(`span`,{id:o,role:`alert`,className:`name-box-feedback`,children:q(e,n.errorMessage)})]})}function Ci(){let{i18n:e,_:t}=U(),n=z(),a=z(),o=r(Qn),s=r(C),c=r(j),l=r(Te),u=r(we),d=i(mr),f=i(Te),p=i(Cr),m=V(null),h=Yr(m,`formula-bar`),g=i(ot),_=i(re),v=i(ee),y=o.activeCell,b=o.selection.sheetId,x=c.source!==null,S=x?l:s??``,w=u.status===`pending`||u.status===`outcome-unknown`,T=x&&c.source?.source===`formula-bar`?Ce(u):null,E=()=>{w||!x&&s===void 0||(x?f({draft:l,source:`formula-bar`}):d({sheetId:b,cell:{row:y.row,col:y.col},source:`formula-bar`}))},D=e=>{(x||d({sheetId:b,cell:{row:y.row,col:y.col},source:`formula-bar`}))&&p({draft:e.currentTarget.value,source:`formula-bar`,caret:e.currentTarget.selectionStart})},O=c.source?.source;B(()=>{O===`formula-bar`&&m.current?.focus({preventScroll:!0})},[O]);let k=e=>{x&&!w&&(e.relatedTarget?.closest(`[data-cell-editor]`)||_())},A=()=>{m.current?.closest(`.workbook`)?.querySelector(`[data-workbook-grid="true"]`)?.focus({preventScroll:!0})},te=async()=>{let e=m.current,t=await _();!e?.isConnected||document.activeElement!==document.body&&document.activeElement!==e||(t===`completed`?A():(t===`rejected`||t===`blocked`)&&e.focus({preventScroll:!0}))};return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`div`,{className:`formula-bar`,children:[/* @__PURE__ */ G(Si,{}),/* @__PURE__ */ G(`span`,{className:`formula-divider`,"aria-hidden":`true`}),/* @__PURE__ */ G(`span`,{className:`insert-function`,"aria-hidden":`true`,children:`fx`}),/* @__PURE__ */ G(`textarea`,{ref:m,"aria-label":t({id:`o24sy3`}),"aria-autocomplete":`list`,"aria-controls":h.activeOption?h.listId:void 0,"aria-activedescendant":h.activeOption,"aria-invalid":T?!0:void 0,"aria-describedby":T?a:h.signatureId,autoComplete:`off`,className:`formula-value`,"data-formula-input":`true`,disabled:w||!x&&s===void 0,id:n,name:`formula-input`,onBlur:k,onFocus:E,onInput:D,onKeyDown:e=>{if(e.stopPropagation(),!(e.nativeEvent.isComposing||e.keyCode===229)&&!h.onFormulaKey(e)){if(e.key===`Enter`&&e.altKey){e.preventDefault();let t=e.currentTarget,n=null;Ir(()=>{n=g({start:t.selectionStart,end:t.selectionEnd})}),n!==null&&t.setSelectionRange(n,n)}else if(e.key===`Escape`){e.preventDefault();let t=!1;Ir(()=>{t=v()===!0}),t&&A()}else e.key===`Enter`&&(e.preventDefault(),w||te())}},onSelect:h.onSelect,onMouseDown:E,spellCheck:!1,rows:Math.min(4,S.split(`
|
|
4
|
+
`).length),value:S})]}),/* @__PURE__ */ G(Zr,{inputRef:m,id:h.listId,source:`formula-bar`}),T&&/* @__PURE__ */ G(`p`,{className:`formula-edit-feedback`,id:a,role:`alert`,children:q(e,T.message)})]})}function X(e){if(e.key!==`Tab`)return;let t=e.currentTarget.querySelectorAll(`button:not(:disabled):not([tabindex="-1"]), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), a[href]:not([tabindex="-1"])`),n=t[0],r=t[t.length-1];(e.shiftKey?e.target!==n:e.target!==r)||(e.preventDefault(),(e.shiftKey?r:n)?.focus())}function wi(){let{i18n:e,_:t}=U(),n=z(),a=z(),o=r(or),s=i(zn),c=V(null),l=o.deleteConfirmation,u=o.mutation!==null;return R(()=>{let e=c.current;if(!e||!l)return;let t=e.ownerDocument.activeElement;return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t instanceof HTMLElement&&t.isConnected&&t.focus({preventScroll:!0})}},[l]),l?/* @__PURE__ */ K(`dialog`,{ref:c,className:`sheet-delete-dialog`,role:`alertdialog`,"aria-labelledby":n,"aria-describedby":a,onKeyDown:X,onCancel:e=>{e.preventDefault(),u||s({operation:`cancel-delete`})},children:[/* @__PURE__ */ G(`h2`,{id:n,children:/* @__PURE__ */ G(H,{id:`h0RwIK`})}),/* @__PURE__ */ G(`p`,{id:a,children:/* @__PURE__ */ G(H,{id:`8abv4W`,values:{0:l.sheetName}})}),o.error&&/* @__PURE__ */ G(`p`,{className:`sheet-command-error`,role:`alert`,children:q(e,o.error)}),/* @__PURE__ */ K(`div`,{className:`sheet-delete-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:u,onClick:()=>void s({operation:`cancel-delete`}),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:u,className:`sheet-delete-confirm`,onClick:()=>void s({operation:`delete`}),children:t(u?{id:`gXQX4x`}:{id:`a8dPbP`})})]})]}):null}function Ti(){let{i18n:e,_:t}=U(),n=z(),a=r(Er),o=r(w),s=r(or),c=r(vr),l=r(Bn),u=r(j),d=r(we),f=r(ze),p=i(zn),m=V(null),h=V(null),g=s.mutation!==null||c.busy||l.busy||d.status===`pending`||d.status===`outcome-unknown`,_=g||f||u.source!==null&&u.source.sheetId!==o?.id,v=a.sheets.findIndex(e=>e.id===o?.id);return R(()=>{m.current?.focus(),m.current?.select()},[s.rename?.sheetId]),R(()=>{let e=h.current,t=e?.querySelector(`[aria-selected="true"]`);if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.left<n.left?e.scrollLeft+=r.left-n.left:r.right>n.right&&(e.scrollLeft+=r.right-n.right)},[o?.id,o?.name,o?.index]),/* @__PURE__ */ K(`div`,{className:`workbook-sheet-controls`,children:[/* @__PURE__ */ K(`div`,{className:`sheet-tabs`,children:[/* @__PURE__ */ G(`button`,{className:`sheet-nav`,type:`button`,"aria-label":t({id:`AXoRX8`}),disabled:g||v<=0,onPointerDown:e=>e.preventDefault(),onClick:()=>void p({operation:`switch`,sheetId:a.sheets[v-1].id}),children:`‹`}),/* @__PURE__ */ G(`button`,{className:`sheet-nav`,type:`button`,"aria-label":t({id:`Mbrxio`}),disabled:g||v>=a.sheets.length-1,onPointerDown:e=>e.preventDefault(),onClick:()=>void p({operation:`switch`,sheetId:a.sheets[v+1].id}),children:`›`}),/* @__PURE__ */ G(`button`,{className:`add-sheet`,type:`button`,"aria-label":t({id:`Wt1Dfg`}),title:t({id:`Wt1Dfg`}),disabled:_,onPointerDown:e=>e.preventDefault(),onClick:()=>void p({operation:`add`}),children:`+`}),/* @__PURE__ */ G(`div`,{className:`sheet-tab-list`,role:`tablist`,"aria-label":t({id:`wJeoYz`}),ref:h,children:a.sheets.map(e=>/* @__PURE__ */ K(`button`,{className:e.id===o?.id?`sheet-tab active`:`sheet-tab`,type:`button`,role:`tab`,"aria-selected":e.id===o?.id,title:t({id:`DyPbHH`,values:{0:e.name}}),disabled:g,onPointerDown:e=>e.preventDefault(),onClick:()=>void p({operation:`switch`,sheetId:e.id}),onDoubleClick:()=>void p({operation:`begin-rename`,sheetId:e.id}),onKeyDown:t=>{t.key===`F2`&&(t.preventDefault(),p({operation:`begin-rename`,sheetId:e.id}))},children:[/* @__PURE__ */ G(`span`,{"aria-hidden":`true`}),e.name]},e.id))}),/* @__PURE__ */ G(`button`,{className:`rename-sheet`,type:`button`,"aria-label":t({id:`euwLEQ`}),title:t({id:`euwLEQ`}),disabled:_||!o,onPointerDown:e=>e.preventDefault(),onClick:()=>o&&void p({operation:`begin-rename`,sheetId:o.id}),children:`✎`}),/* @__PURE__ */ G(`button`,{className:`sheet-action`,type:`button`,"aria-label":t({id:`mZnrg-`}),title:t({id:`mZnrg-`}),disabled:_||v<=0,onPointerDown:e=>e.preventDefault(),onClick:()=>void p({operation:`move-left`}),children:`⇤`}),/* @__PURE__ */ G(`button`,{className:`sheet-action`,type:`button`,"aria-label":t({id:`QyKpyM`}),title:t({id:`QyKpyM`}),disabled:_||v>=a.sheets.length-1,onPointerDown:e=>e.preventDefault(),onClick:()=>void p({operation:`move-right`}),children:`⇥`}),/* @__PURE__ */ G(`button`,{className:`sheet-action`,type:`button`,"aria-label":t({id:`xOeI33`}),title:t({id:`xOeI33`}),disabled:_||a.sheets.length<=1,onPointerDown:e=>e.preventDefault(),onClick:()=>void p({operation:`request-delete`}),children:`×`})]}),s.rename&&/* @__PURE__ */ K(`form`,{className:`sheet-rename`,onSubmit:e=>{e.preventDefault(),p({operation:`rename`})},children:[/* @__PURE__ */ G(`input`,{ref:m,"aria-label":t({id:`dzHGCX`}),value:s.rename.draftName,"aria-invalid":!!s.error,"aria-describedby":s.error?n:void 0,disabled:g,onChange:e=>void p({operation:`change-name`,name:e.currentTarget.value}),onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),p({operation:`cancel-rename`}))}}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:g,children:/* @__PURE__ */ G(H,{id:`tfDRzk`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:g,onClick:()=>void p({operation:`cancel-rename`}),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})})]}),s.error&&!s.deleteConfirmation&&/* @__PURE__ */ G(`p`,{id:n,"data-sheet-command-error":!0,className:`sheet-command-error`,role:`alert`,children:q(e,s.error)}),/* @__PURE__ */ G(wi,{})]})}function Ei(e){return e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`"`,`"`)}function Di(e){return/data-einfach-clipboard=["']([a-f0-9-]{36})["']/i.exec(e)?.[1]}function Oi(e){return ji({"text/plain":e.then(({text:e})=>new Blob([e],{type:`text/plain`})),"text/html":e.then(({text:e,token:t})=>new Blob([`<pre data-einfach-clipboard="${Ei(t)}">${Ei(e)}</pre>`],{type:`text/html`}))})}function ki(e,t){return ji({"text/plain":t.then(({text:e})=>new Blob([e],{type:`text/plain`})),...e===`html`?{"text/html":t.then(({html:e})=>{if(e===void 0)throw Error(`The workbook did not return an HTML table.`);return new Blob([e],{type:`text/html`})})}:{}})}function Ai(e){return ji({"text/plain":e.then(e=>new Blob([e],{type:`text/plain`}))})}async function ji(e){let t=Object.values(e);try{if(!navigator.clipboard?.write||typeof ClipboardItem>`u`)throw Error(`This browser cannot write the clipboard. Use a secure HTTPS or localhost page.`);await Promise.all([navigator.clipboard.write([new ClipboardItem(e)]),...t])}catch(e){throw await Promise.allSettled(t),e instanceof DOMException&&e.name===`NotAllowedError`?Error(`Clipboard permission was denied. Allow clipboard access and try again.`):e}}async function Mi(){if(!navigator.clipboard?.read)throw Error(`Use Ctrl/⌘+V in the grid to paste from the clipboard.`);try{let e=await navigator.clipboard.read();for(let t of e)if(t.types.includes(`text/plain`))return{text:await(await t.getType(`text/plain`)).text(),token:Di(t.types.includes(`text/html`)?await(await t.getType(`text/html`)).text():``)};throw Error(`The clipboard does not contain cell text.`)}catch(e){throw e instanceof DOMException&&e.name===`NotAllowedError`?Error(`Clipboard permission was denied. Use Ctrl/⌘+V in the grid.`):e}}function Ni(){let{i18n:e,_:t}=U(),{open:n,visible:a}=r(tr),o=i(ue),s=V(null),c=V(null),l=z();return R(()=>{if(!n)return;let e=s.current,t=c.current;return e?.showModal?e.showModal():e?.setAttribute(`open`,``),()=>{e?.close?.(),t?.focus({preventScroll:!0})}},[n]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:c,type:`button`,className:`statistics-settings-button`,"aria-label":t({id:`BW1hpN`}),title:t({id:`BW1hpN`}),"aria-haspopup":`dialog`,onClick:()=>o(`open`),children:`⋯`}),n&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`statistics-settings`,"aria-labelledby":l,onKeyDown:X,onCancel:e=>{e.preventDefault(),o(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:l,children:/* @__PURE__ */ G(H,{id:`Bv5a9_`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`IAhOTS`})}),Object.keys(er).map(t=>/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:a.includes(t),onChange:e=>o({statistic:t,visible:e.currentTarget.checked})}),q(e,er[t])]},t)),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`AeRqCl`})}),/* @__PURE__ */ K(`div`,{className:`statistics-settings-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>o(`reset`),children:/* @__PURE__ */ G(H,{id:`Xq5Ea-`})}),/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>o(`close`),children:/* @__PURE__ */ G(H,{id:`DPfwMq`})})]})]})]})}var Pi=e=>e.toLocaleString(void 0,{maximumSignificantDigits:12,notation:Math.abs(e)>=0xe8d4a51000||e!==0&&Math.abs(e)<1e-6?`scientific`:`standard`});function Fi(){let{i18n:e,_:t}=U(),n=r(Gn),{visible:a}=r(tr),{busy:o}=r($n),s=i(pe);return n.status===`idle`?/* @__PURE__ */ G(`span`,{children:/* @__PURE__ */ G(H,{id:`B7K4tv`})}):n.status===`error`?/* @__PURE__ */ G(`span`,{className:`selection-statistics-error`,title:q(e,n.message),children:/* @__PURE__ */ G(H,{id:`kqmDKG`})}):a.map(r=>{let i=n.numbers[r],a=q(e,er[r]),c=i===null?r===`sum`&&n.numbers.numericCount>0?t({id:`i3Z-_Z`}):`—`:Pi(i);return/* @__PURE__ */ K(`button`,{type:`button`,className:`selection-statistic`,"aria-label":t({id:`qNUKgA`,values:{label:a}}),title:i===null?void 0:String(i),disabled:o||i===null,onClick:()=>void s({statistic:r,value:i,write:Ai}),children:[a,`: `,c]},r)})}function Ii(){let{i18n:e,_:t}=U(),{visible:n}=r(tr),i=r($n);return/* @__PURE__ */ K(`div`,{className:`selection-status`,children:[/* @__PURE__ */ G(`div`,{className:`selection-statistics`,role:`status`,"aria-label":t({id:`Bv5a9_`}),"aria-atomic":`true`,children:n.length===0?/* @__PURE__ */ G(`span`,{children:/* @__PURE__ */ G(H,{id:`4firZq`})}):/* @__PURE__ */ G(kr,{fallback:/* @__PURE__ */ G(`span`,{children:/* @__PURE__ */ G(H,{id:`VK1HG0`})}),children:/* @__PURE__ */ G(Fi,{})})}),/* @__PURE__ */ G(Ni,{}),i.message&&/* @__PURE__ */ G(`span`,{className:`statistic-copy-feedback`,role:i.error?`alert`:`status`,"aria-label":t({id:`Ru1fnl`}),children:q(e,i.message)})]})}function Li(){let{i18n:e,_:t}=U(),n=r(w),i=r(Kn),a=r(Xn).length>1,o=r(vr),s=r(Pe).mode!==`idle`,c=r(Jn),l=r(ut);return/* @__PURE__ */ K(`footer`,{className:`workbook-footer`,children:[l&&/* @__PURE__ */ G(`div`,{className:`selection-limit-note sheet-command-error`,role:`alert`,"aria-label":t({id:`VwSEfZ`}),children:q(e,l)}),c.error&&/* @__PURE__ */ G(`div`,{className:`selection-limit-note sheet-command-error`,role:`alert`,"aria-label":t({id:`VwSEfZ`}),children:q(e,c.error)}),c.busy&&/* @__PURE__ */ G(`span`,{className:`visually-hidden`,role:`status`,children:/* @__PURE__ */ G(H,{id:`f69-Xr`})}),a&&/* @__PURE__ */ G(`div`,{className:`selection-limit-note`,role:`status`,"aria-label":t({id:`znOI0s`}),children:/* @__PURE__ */ G(H,{id:`9Fl-hr`,values:{selectedCellCount:i}})}),/* @__PURE__ */ G(Ti,{}),/* @__PURE__ */ K(`div`,{className:`status-items`,children:[o.message&&!s&&/* @__PURE__ */ G(`div`,{className:`clipboard-feedback`,role:o.error?`alert`:`status`,"aria-label":t({id:`dU4D-1`}),"data-error":o.error,title:q(e,o.message),children:q(e,o.message)}),n===null?null:/* @__PURE__ */ G(`span`,{className:`record-status`,children:/* @__PURE__ */ G(H,{id:`_2HyaM`,values:{0:n.rowCount}})}),/* @__PURE__ */ G(`span`,{children:/* @__PURE__ */ G(H,{id:`BvttON`,values:{selectedCellCount:i}})}),/* @__PURE__ */ G(Ii,{}),/* @__PURE__ */ K(`div`,{className:`zoom-control`,"aria-label":t({id:`Cqcd62`}),children:[/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":t({id:`FjkaiT`}),children:`−`}),/* @__PURE__ */ G(`span`,{className:`zoom-track`,"aria-hidden":`true`,children:/* @__PURE__ */ G(`span`,{})}),/* @__PURE__ */ G(`span`,{children:`100%`}),/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":t({id:`AWOSPo`}),children:`+`})]})]})]})}function Ri(){let{i18n:e,_:t}=U(),n=z(),a=r(Dr),o=i(Rn),s=V(null),c=V(null);return R(()=>{let e=s.current;e&&(a.open?e.showModal?e.showModal():e.setAttribute(`open`,``):e.open&&(e.close?e.close():e.removeAttribute(`open`),c.current?.focus()))},[a.open]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{type:`button`,className:`workbook-file-trigger`,ref:c,disabled:a.disabled,onClick:()=>void o({action:`show`}),children:/* @__PURE__ */ G(H,{id:`J2eKUI`})}),/* @__PURE__ */ K(`dialog`,{ref:s,className:`workbook-file-dialog`,"aria-labelledby":n,onKeyDown:X,onCancel:e=>{e.preventDefault(),o({action:`close`})},children:[/* @__PURE__ */ G(`h2`,{id:n,children:/* @__PURE__ */ G(H,{id:`lOyimt`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`ZuKd0O`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.busy,onClick:()=>void o({action:`download`,write:async({text:e,filename:t})=>{let n=URL.createObjectURL(new Blob([e],{type:`application/json`})),r=document.createElement(`a`);r.href=n,r.download=t,document.body.append(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)}}),children:/* @__PURE__ */ G(H,{id:`6R-fPZ`})}),/* @__PURE__ */ K(`label`,{className:`workbook-file-picker`,children:[/* @__PURE__ */ G(H,{id:`3GjSHx`}),/* @__PURE__ */ G(`input`,{type:`file`,accept:`.json,application/json`,disabled:a.busy,onChange:e=>{let n=e.currentTarget.files?.[0];if(e.currentTarget.value=``,!n)return;let r=window.confirm(t({id:`odah-k`}));o({action:`open`,confirmed:r,size:n.size,read:()=>n.text()})}})]}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.busy,onClick:()=>void o({action:`new`,confirmed:window.confirm(t({id:`mRbz9t`}))}),children:/* @__PURE__ */ G(H,{id:`y_LCBu`})}),/* @__PURE__ */ G(`p`,{className:`workbook-file-hint`,children:/* @__PURE__ */ G(H,{id:`4U-esm`})}),a.message&&/* @__PURE__ */ G(`p`,{role:a.error?`alert`:`status`,children:q(e,a.message)}),/* @__PURE__ */ G(`button`,{type:`button`,className:`workbook-file-close`,disabled:a.busy,onClick:()=>void o({action:`close`}),children:/* @__PURE__ */ G(H,{id:`yz7wBu`})})]})]})}function zi(){let{i18n:e,_:t}=U(),{controlledLocale:n}=jr(Vr);return/* @__PURE__ */ K(`select`,{className:`language-select`,"aria-label":t({id:`3dioPi`}),value:e.locale,disabled:n,onChange:t=>{let n=zr(t.currentTarget.value);n&&e.activate(n)},children:[![`en`,`zh`].includes(e.locale)&&/* @__PURE__ */ G(`option`,{value:e.locale,children:e.locale}),/* @__PURE__ */ G(`option`,{value:`en`,lang:`en`,children:`English`}),/* @__PURE__ */ G(`option`,{value:`zh`,lang:`zh`,children:`中文`})]})}function Bi(){let{_:e}=U(),t=r(Er),n=r(w);return/* @__PURE__ */ K(`header`,{className:`workbook-header`,children:[/* @__PURE__ */ K(`div`,{className:`univer-mark`,"aria-hidden":`true`,children:[/* @__PURE__ */ G(`span`,{}),/* @__PURE__ */ G(`span`,{}),/* @__PURE__ */ G(`span`,{}),/* @__PURE__ */ G(`span`,{})]}),/* @__PURE__ */ K(`div`,{className:`workbook-identity`,children:[/* @__PURE__ */ G(`div`,{className:`workbook-name`,children:t.title}),/* @__PURE__ */ G(`div`,{className:`workbook-subtitle`,children:n?.name??e({id:`GimQzY`})})]}),/* @__PURE__ */ G(`div`,{className:`header-spacer`}),/* @__PURE__ */ G(`span`,{className:`save-state`,children:/* @__PURE__ */ G(H,{id:`jONM9I`})}),n===null?null:/* @__PURE__ */ G(`span`,{className:`row-count-badge`,children:/* @__PURE__ */ G(H,{id:`_2HyaM`,values:{0:n.rowCount}})}),/* @__PURE__ */ G(zi,{}),/* @__PURE__ */ G(Ri,{})]})}function Vi(){let{i18n:e,_:t}=U(),n=[[`all`,t({id:`E0pRq5`})],[`values`,t({id:`ENWIgr`})],[`formats`,t({id:`vwdDL3`})],[`values-formats`,t({id:`rVGc3H`})],[`formulas`,t({id:`W8w3gJ`})],[`formulas-number-formats`,t({id:`buxf17`})],[`values-number-formats`,t({id:`Y11i1u`})],[`column-widths`,t({id:`z7wnu4`})]],a=[[`none`,t({id:`EdQY6l`})],[`add`,t({id:`m16xKo`})],[`subtract`,t({id:`t0ZIPp`})],[`multiply`,t({id:`pqULT-`})],[`divide`,t({id:`Xu1LOY`})]],o=r(Bt),s=r(j).source!==null,c=i(Tn),l=V(null),u=V(null),d=z(),f=o.target;R(()=>{let e=l.current;if(!e||!f)return;let t=u.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[f]);let p=o.mode===`column-widths`;return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:u,className:`tool-button`,type:`button`,"aria-label":t({id:`aA7VI7`}),title:t({id:`aA7VI7`}),disabled:s||o.busy,onClick:()=>void c(`open`),children:`⋯`}),f&&/* @__PURE__ */ K(`dialog`,{ref:l,className:`paste-special-dialog`,"aria-labelledby":`${d}-title`,"aria-describedby":`${d}-hint`,onKeyDown:X,onCancel:e=>{e.preventDefault(),c(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${d}-title`,children:/* @__PURE__ */ G(H,{id:`aA7VI7`})}),/* @__PURE__ */ G(`p`,{id:`${d}-hint`,children:/* @__PURE__ */ G(H,{id:`mzg0pt`})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),c({action:`apply`,read:Mi})},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${d}-mode`,children:/* @__PURE__ */ G(H,{id:`Raj8MX`})}),/* @__PURE__ */ G(`select`,{id:`${d}-mode`,value:o.mode,disabled:o.busy,onChange:e=>{let t=n.find(([t])=>t===e.currentTarget.value);t&&c({field:`mode`,value:t[0]})},children:n.map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))}),/* @__PURE__ */ G(`label`,{htmlFor:`${d}-arithmetic`,children:/* @__PURE__ */ G(H,{id:`FZg3wM`})}),/* @__PURE__ */ G(`select`,{id:`${d}-arithmetic`,value:o.arithmetic,disabled:o.busy||p||o.mode===`formats`,onChange:e=>{let t=a.find(([t])=>t===e.currentTarget.value);t&&c({field:`arithmetic`,value:t[0]})},children:a.map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))}),/* @__PURE__ */ G(`div`,{className:`paste-special-checks`,children:[`transpose`,`skipBlanks`].map(e=>/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:o[e],disabled:o.busy||p,onChange:t=>void c({field:e,value:t.currentTarget.checked})}),t(e===`transpose`?{id:`FG5Dyz`}:{id:`5qyw0O`})]},e))}),p&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`nc9GHM`})}),o.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`paste-special-error`,children:q(e,o.error)}),o.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`B-aFC9`})}),/* @__PURE__ */ K(`div`,{className:`paste-special-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:o.busy,onClick:()=>void c(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:o.busy,children:/* @__PURE__ */ G(H,{id:`GvJsKx`})})]})]})]})]})}var Hi=[{value:`text`,label:{id:`KYJejj`}},{value:`markdown`,label:{id:`D-jkjv`}},{value:`html`,label:{id:`j2s8J7`}}],Ui=[{value:`add`,label:{id:`UUy_zE`},paste:{arithmetic:`add`}},{value:`subtract`,label:{id:`0TjkxD`},paste:{arithmetic:`subtract`}},{value:`multiply`,label:{id:`vi8wbc`},paste:{arithmetic:`multiply`}},{value:`divide`,label:{id:`WBsWx5`},paste:{arithmetic:`divide`}},{value:`column-widths`,label:{id:`-zPOh6`},paste:{mode:`column-widths`}},{value:`transpose`,label:{id:`1qoE0t`},paste:{transpose:!0}},{value:`skip-blanks`,label:{id:`CQ0uIF`},paste:{skipBlanks:!0}},{value:`values-formats`,label:{id:`F1MSTQ`},paste:{mode:`values-formats`}},{value:`formulas`,label:{id:`EnPnwM`},paste:{mode:`formulas`}},{value:`formulas-number-formats`,label:{id:`2awTZq`},paste:{mode:`formulas-number-formats`}},{value:`values-number-formats`,label:{id:`9EFm2O`},paste:{mode:`values-number-formats`}}];function Wi(){let{i18n:e,_:t}=U(),n=i(Pn),a=r(vr),o=r(j).source!==null;return/* @__PURE__ */ K(W,{children:[[`paste`,`cut`,`copy`].map(e=>/* @__PURE__ */ G(`button`,{className:`tool-button`,type:`button`,"aria-label":{paste:t({id:`HzVv6g`}),cut:t({id:`cCd8Bs`}),copy:t({id:`he3ygx`})}[e],title:{paste:t({id:`Iht8BB`}),cut:t({id:`PAMA6C`}),copy:t({id:`dTFX4-`})}[e],disabled:a.busy||o,onPointerDown:e=>e.preventDefault(),onClick:()=>void n(e===`paste`?{operation:e,read:Mi}:{operation:e,write:Oi}),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:{paste:`▣`,cut:`✂`,copy:`▤`}[e]})},e)),[`values`,`formats`].map(e=>/* @__PURE__ */ G(`button`,{className:`tool-button`,type:`button`,"aria-label":t(e===`values`?{id:`bkYmSY`}:{id:`tzHS6m`}),title:t(e===`values`?{id:`bkYmSY`}:{id:`tzHS6m`}),disabled:a.busy||o,onPointerDown:e=>e.preventDefault(),onClick:()=>void n({operation:`paste`,mode:e,read:Mi}),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:e===`values`?`123`:`A▧`})},e)),/* @__PURE__ */ K(`select`,{className:`tool-select paste-options-select`,"aria-label":t({id:`m0QAp0`}),title:t({id:`m0QAp0`}),defaultValue:``,disabled:a.busy||o,onChange:e=>{let t=Ui.find(({value:t})=>t===e.currentTarget.value);e.currentTarget.value=``,t&&n({...t.paste,operation:`paste`,read:Mi})},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`AXGKFs`})}),Ui.map(({value:t,label:n})=>/* @__PURE__ */ G(`option`,{value:t,children:e._(n)},t))]}),/* @__PURE__ */ G(Vi,{}),/* @__PURE__ */ K(`select`,{className:`tool-select copy-as-select`,"aria-label":t({id:`ORSbFT`}),title:t({id:`ORSbFT`}),defaultValue:``,disabled:a.busy||o,onChange:e=>{let t=Hi.find(({value:t})=>t===e.currentTarget.value)?.value;e.currentTarget.value=``,t&&n({operation:`copy-as`,format:t,write:e=>ki(t,e)})},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`ORSbFT`})}),Hi.map(({value:t,label:n})=>/* @__PURE__ */ G(`option`,{value:t,children:e._(n)},t))]})]})}var Gi=[[`contents`,{id:`PYoFZ7`},`⌫`],[`formats`,{id:`6ELX9Y`},`A×`],[`all`,{id:`yYxB17`},`×`]];function Ki(){let{i18n:e,_:t}=U(),n=i(te),a=r(Jn).busy,o=r(j).source!==null;return/* @__PURE__ */ G(W,{children:Gi.map(([t,r,i])=>/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button`,"aria-label":e._(r),title:e._(r),disabled:o||a,onClick:()=>void n(t),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:i})},t))})}function qi(){let{i18n:e,_:t}=U(),n=r(Pe),a=i(on),o=r(j).source!==null;return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button`,"aria-label":t({id:`zRxU0c`}),title:t({id:`IiaofB`}),"aria-pressed":n.mode!==`idle`,"aria-busy":n.busy,"data-painter-mode":n.mode,disabled:o,onPointerDown:e=>e.preventDefault(),onClick:e=>{e.detail<2&&a(n.mode===`idle`?`arm`:`exit`)},onDoubleClick:()=>void a(`sticky`),children:/* @__PURE__ */ K(`svg`,{"aria-hidden":`true`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[/* @__PURE__ */ G(`rect`,{x:`2`,y:`2`,width:`9`,height:`4`,rx:`1`}),/* @__PURE__ */ G(`path`,{d:`M11 4h2v5H7v4`}),/* @__PURE__ */ G(`rect`,{x:`6`,y:`11`,width:`2`,height:`3`,rx:`.5`})]})}),n.message&&/* @__PURE__ */ G(`span`,{className:`fill-feedback`,"aria-label":t({id:`MFf8vj`}),role:n.error?`alert`:`status`,children:q(e,n.message)})]})}function Ji(){let{i18n:e,_:t}=U(),n=r(Zn),a=r(j).source!==null,o=i(An),s=V(null),c=V(null),l=z(),u=n.target;return R(()=>{let e=s.current;if(!e||!u)return;let t=c.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[u]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:c,className:`tool-button`,"aria-label":t({id:`FO3oYr`}),title:t({id:`FO3oYr`}),disabled:a||n.busy,type:`button`,onClick:()=>void o(`open`),children:`↔`}),!u&&n.error&&/* @__PURE__ */ G(`span`,{role:`alert`,className:`size-error`,children:q(e,n.error)}),!u&&n.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`_th6uC`})}),u&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`selection-size-dialog`,"aria-labelledby":`${l}-title`,"aria-describedby":`${l}-description`,onKeyDown:X,onCancel:e=>{e.preventDefault(),o(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${l}-title`,children:/* @__PURE__ */ G(H,{id:`FO3oYr`})}),/* @__PURE__ */ G(`p`,{id:`${l}-description`,children:/* @__PURE__ */ G(H,{id:`e49igR`,values:{0:u.range.rowStart+1,1:u.range.rowEnd+1,2:u.range.colStart+1,3:u.range.colEnd+1}})}),[`height`,`width`].map(e=>/* @__PURE__ */ K(`form`,{onSubmit:t=>{t.preventDefault(),o(e===`height`?`row`:`column`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-${e}`,children:t(e===`height`?{id:`vizqEA`}:{id:`zJoyX1`})}),/* @__PURE__ */ G(`input`,{id:`${l}-${e}`,type:`number`,step:`1`,min:e===`height`?16:40,max:e===`height`?512:1024,required:!0,disabled:n.busy,value:n[e],onChange:t=>void o({field:e,value:t.currentTarget.value})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy,children:t(e===`height`?{id:`HLFNTW`}:{id:`koGlgj`})})]},e)),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`size-error`,children:q(e,n.error)}),/* @__PURE__ */ K(`div`,{className:`size-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void o(`reset`),children:/* @__PURE__ */ G(H,{id:`OquBS5`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void o(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})})]}),/* @__PURE__ */ G(`p`,{className:`size-hint`,children:/* @__PURE__ */ G(H,{id:`294CLW`})}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`_th6uC`})})]})]})}function Yi(){let{i18n:e,_:t}=U(),n=r(Vn),a=r(Bn),o=r(j).source!==null,s=r(Er),c=i(On),l=V(null),u=V(null),d=z();return R(()=>{let e=l.current,t=u.current;if(e&&a.open)return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[a.open]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{className:`tool-button`,type:`button`,"aria-label":t({id:`9uI_rE`}),title:t({id:`36SIHC`}),disabled:o||a.busy||n.undoCount===0,onClick:()=>void c(`undo`),children:`↶`}),/* @__PURE__ */ G(`button`,{className:`tool-button`,type:`button`,"aria-label":t({id:`H3oH0g`}),title:t({id:`YUTvL2`}),disabled:o||a.busy||n.redoCount===0,onClick:()=>void c(`redo`),children:`↷`}),/* @__PURE__ */ G(`button`,{ref:u,className:`tool-button`,type:`button`,"aria-label":t({id:`vSmnZm`}),title:t({id:`vSmnZm`}),onClick:()=>void c(`open`),children:`◷`}),a.error&&!a.open&&/* @__PURE__ */ G(`span`,{className:`history-error`,role:`alert`,children:q(e,a.error)}),a.open&&/* @__PURE__ */ K(`dialog`,{ref:l,className:`history-dialog`,"aria-labelledby":`${d}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),c(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${d}-title`,children:/* @__PURE__ */ G(H,{id:`vSmnZm`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`4SrmA9`,values:{0:n.undoCount,1:n.redoCount}})}),/* @__PURE__ */ G(`p`,{className:`history-hint`,children:/* @__PURE__ */ G(H,{id:`rI0Jne`})}),n.notice&&/* @__PURE__ */ G(`p`,{role:`status`,className:`history-hint`,children:q(e,n.notice)}),n.entries.length===0?/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`ZlKlVa`})}):/* @__PURE__ */ G(`ol`,{children:n.entries.map((r,i)=>/* @__PURE__ */ K(`li`,{className:i<n.undoCount?``:`history-undone`,children:[/* @__PURE__ */ G(`span`,{children:q(e,r.label)}),/* @__PURE__ */ K(`small`,{children:[s.sheets.find(e=>r.sheetKey?e.key===r.sheetKey:e.index===r.sheetIndex)?.name??r.sheetName,r.sheetChange?` · ${t({id:`wrsYRH`})}`:` · ${P(r.range.rowStart,r.range.colStart)}:${P(r.range.rowEnd,r.range.colEnd)}`,i>=n.undoCount?` · ${t({id:`a89u9S`})}`:``]})]},i))}),a.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`history-error`,children:q(e,a.error)}),/* @__PURE__ */ G(`button`,{className:`history-close`,type:`button`,disabled:a.busy,onClick:()=>void c(`close`),children:/* @__PURE__ */ G(H,{id:`R8aB59`})})]})]})}var Xi=[[`hide-rows`,{id:`NELivG`}],[`hide-columns`,{id:`GkN4HP`}],[`unhide`,{id:`uHD9TE`}],[`unhide-all`,{id:`bc3Ku9`}]];function Zi(){let{i18n:e,_:t}=U(),n=i(Mn),a=r(rr),o=r(j).source!==null;return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{className:`tool-select paste-options-select`,"aria-label":t({id:`u4oHnx`}),value:``,disabled:o||a.busy,onChange:e=>{let t=Xi.find(([t])=>t===e.currentTarget.value);t&&n(t[0])},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`IJuINm`})}),Xi.map(([t,n])=>/* @__PURE__ */ G(`option`,{value:t,children:e._(n)},t))]}),a.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`-G6MxY`})}),a.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,a.error)})]})}function Qi(){let{i18n:e,_:t}=U(),n=[[`group-rows`,t({id:`ppsBc0`}),`row`,`group`],[`group-columns`,t({id:`xkjHnr`}),`column`,`group`],[`ungroup-rows`,t({id:`g5jZuG`}),`row`,`ungroup`],[`ungroup-columns`,t({id:`Mzfo3I`}),`column`,`ungroup`],[`collapse-rows`,t({id:`I8xghs`}),`row`,`collapse`],[`expand-rows`,t({id:`M7j_hP`}),`row`,`expand`],[`collapse-columns`,t({id:`tP5eau`}),`column`,`collapse`],[`expand-columns`,t({id:`L9yzu_`}),`column`,`expand`]],a=i(yn),o=r(kt),s=r(j).source!==null,c=r(N);return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{"aria-label":t({id:`xUFaGr`}),className:`tool-select paste-options-select`,value:``,disabled:s||o.busy||c.status!==`ready`,onChange:e=>{let t=n.find(([t])=>t===e.currentTarget.value);if(!t)return;let[,,r,i]=t;a({axis:r,action:i===`collapse`||i===`expand`?{kind:`show-level`,level:i===`collapse`?1:9}:{kind:i}})},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`Z2zILs`})}),n.map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))]}),o.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`ssPgEV`})}),o.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,o.error)})]})}function $i(){let{i18n:e,_:t}=U(),n=i(ke),a=r(_e),o=r(j).source!==null;return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{className:`tool-select paste-options-select`,"aria-label":t({id:`ycqaQU`}),title:t({id:`zBn89v`}),value:``,disabled:o||a.busy,onChange:e=>{let t=e.currentTarget.value;(t===`down`||t===`right`)&&n(t)},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`TuM2Yu`})}),/* @__PURE__ */ G(`option`,{value:`down`,children:/* @__PURE__ */ G(H,{id:`wRbth3`})}),/* @__PURE__ */ G(`option`,{value:`right`,children:/* @__PURE__ */ G(H,{id:`CUOf5i`})})]}),(a.message||a.error)&&/* @__PURE__ */ G(`span`,{className:`fill-feedback`,"aria-label":t({id:`yxnt3y`}),role:a.error?`alert`:`status`,children:q(e,a.error||a.message)})]})}function ea(){let{_:e}=U(),t=r(Ae),n=r(_e).busy,a=i(se),o=z();return/* @__PURE__ */ K(`fieldset`,{className:`custom-fill-lists`,disabled:n,children:[/* @__PURE__ */ G(`legend`,{children:/* @__PURE__ */ G(H,{id:`N9EQQo`})}),/* @__PURE__ */ G(`label`,{htmlFor:`${o}-saved`,children:/* @__PURE__ */ G(H,{id:`RA4XsM`})}),/* @__PURE__ */ K(`select`,{id:`${o}-saved`,value:t.selectedList??``,onChange:e=>void a({field:`selectedList`,value:e.currentTarget.value}),children:[/* @__PURE__ */ G(`option`,{value:``,children:/* @__PURE__ */ G(H,{id:`j8SH4s`})}),t.lists.map((e,t)=>/* @__PURE__ */ G(`option`,{value:t,children:e.name},t))]}),/* @__PURE__ */ G(`label`,{htmlFor:`${o}-name`,children:/* @__PURE__ */ G(H,{id:`zQX5Dj`})}),/* @__PURE__ */ G(`input`,{id:`${o}-name`,maxLength:64,value:t.listName,onChange:e=>void a({field:`listName`,value:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${o}-items`,children:/* @__PURE__ */ G(H,{id:`jZct80`})}),/* @__PURE__ */ G(`textarea`,{id:`${o}-items`,rows:4,maxLength:16384,required:!0,value:t.listText,placeholder:e({id:`eVIg7Y`}),onChange:e=>void a({field:`listText`,value:e.currentTarget.value})}),/* @__PURE__ */ K(`div`,{className:`custom-list-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>void a(`new-list`),children:/* @__PURE__ */ G(H,{id:`Sb2gYF`})}),/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>void a(`save-list`),children:/* @__PURE__ */ G(H,{id:`strO81`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:t.selectedList===null,onClick:()=>void a(`delete-list`),children:/* @__PURE__ */ G(H,{id:`lYT7pQ`})})]}),/* @__PURE__ */ G(`p`,{className:`size-hint`,children:/* @__PURE__ */ G(H,{id:`hgQ0WV`})})]})}function ta(){let{i18n:e,_:t}=U(),n=r(Ae),a=r(_e),o=r(j).source!==null,s=i(se),c=V(null),l=V(null),u=z(),d=n.target;return R(()=>{let e=c.current;if(!e||!d)return;let t=l.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[d]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:l,type:`button`,className:`tool-select`,"aria-label":t({id:`rdtCNx`}),disabled:o||a.busy,onClick:()=>void s(`open`),children:/* @__PURE__ */ G(H,{id:`vrkvoX`})}),d&&/* @__PURE__ */ K(`dialog`,{ref:c,className:`selection-size-dialog fill-series-dialog`,"aria-labelledby":`${u}-title`,"aria-describedby":`${u}-help`,onKeyDown:X,onCancel:e=>{e.preventDefault(),s(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${u}-title`,children:/* @__PURE__ */ G(H,{id:`rdtCNx`})}),/* @__PURE__ */ G(`p`,{id:`${u}-help`,children:/* @__PURE__ */ G(H,{id:`u5Pn6t`})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),s(`apply`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${u}-kind`,children:/* @__PURE__ */ G(H,{id:`hTA6GE`})}),/* @__PURE__ */ G(`select`,{id:`${u}-kind`,value:n.kind,disabled:a.busy,onChange:e=>{let t=p.find(t=>t.kind===e.currentTarget.value)?.kind;t&&s({field:`kind`,value:t})},children:p.map(({kind:t,label:n})=>/* @__PURE__ */ G(`option`,{value:t,children:q(e,n)},t))}),/* @__PURE__ */ G(`label`,{htmlFor:`${u}-direction`,children:/* @__PURE__ */ G(H,{id:`MRB7nI`})}),/* @__PURE__ */ K(`select`,{id:`${u}-direction`,value:n.direction,disabled:a.busy,onChange:e=>{let t=e.currentTarget.value;(t===`down`||t===`right`)&&s({field:`direction`,value:t})},children:[/* @__PURE__ */ G(`option`,{value:`down`,children:/* @__PURE__ */ G(H,{id:`gUjkl_`})}),/* @__PURE__ */ G(`option`,{value:`right`,children:/* @__PURE__ */ G(H,{id:`nOPbWJ`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${u}-count`,children:/* @__PURE__ */ G(H,{id:`Duy-1C`})}),/* @__PURE__ */ G(`input`,{id:`${u}-count`,type:`number`,min:lt(n.kind),step:`1`,required:!0,value:n.sourceCount,disabled:a.busy,onChange:e=>void s({field:`sourceCount`,value:e.currentTarget.value})}),n.kind===`custom-list`&&/* @__PURE__ */ G(ea,{}),/* @__PURE__ */ G(`p`,{className:`size-hint`,children:n.kind===`date`?t({id:`vriSrj`}):lt(n.kind)===1?n.kind===`custom-list`?t({id:`uzUlwe`}):t({id:`jNqLnz`}):n.kind===`linear-trend`?t({id:`UU50bX`}):n.kind===`text-number`?t({id:`RodNt2`}):t({id:`z6G8xA`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`size-error`,children:q(e,n.error)}),n.notice&&/* @__PURE__ */ G(`p`,{role:`status`,children:q(e,n.notice)}),a.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`LaRaTD`})}),/* @__PURE__ */ K(`div`,{className:`size-actions`,children:[/* @__PURE__ */ G(`button`,{type:`submit`,disabled:a.busy,children:/* @__PURE__ */ G(H,{id:`l3VRjN`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.busy,onClick:()=>void s(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})})]})]})]})]})}function na(){let{i18n:e,_:t}=U(),n=r(lr),a=r(cr),o=r(j).source!==null,s=i(ur),c=i(de),l=V(null),u=V(null),d=z(),f=n.target;R(()=>{let e=l.current;if(!e||!f)return;let t=u.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[f]);let p=f?Array.from({length:f.range.colEnd-f.range.colStart+1},(e,t)=>f.range.colStart+t):[];return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{ref:u,className:`tool-select`,"aria-label":t({id:`YxJd_p`}),value:``,disabled:o||a.busy,title:t({id:`4vR1KG`}),onChange:e=>{let t=e.currentTarget.value;(t===`asc`||t===`desc`)&&s(t),t===`custom`&&c(`open`)},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`f6Hub0`})}),/* @__PURE__ */ G(`option`,{value:`asc`,children:/* @__PURE__ */ G(H,{id:`NCzNnx`})}),/* @__PURE__ */ G(`option`,{value:`desc`,children:/* @__PURE__ */ G(H,{id:`d6ynQ7`})}),/* @__PURE__ */ G(`option`,{value:`custom`,children:/* @__PURE__ */ G(H,{id:`jvaBh-`})})]}),(a.error||a.message)&&/* @__PURE__ */ G(`span`,{className:`fill-feedback`,"aria-label":t({id:`AunQP1`}),role:a.error?`alert`:`status`,children:q(e,a.error||a.message)}),f&&/* @__PURE__ */ K(`dialog`,{ref:l,className:`selection-size-dialog sort-dialog`,"aria-labelledby":`${d}-title`,"aria-describedby":`${d}-help`,onKeyDown:X,onCancel:e=>{e.preventDefault(),c(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${d}-title`,children:/* @__PURE__ */ G(H,{id:`JsRejQ`})}),/* @__PURE__ */ G(`p`,{id:`${d}-help`,children:/* @__PURE__ */ G(H,{id:`xEjvkZ`})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),c(`apply`)},children:[/* @__PURE__ */ K(`label`,{className:`sort-header`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:n.hasHeader,disabled:a.busy,onChange:e=>void c({type:`header`,value:e.currentTarget.checked})}),/* @__PURE__ */ G(H,{id:`ehx29F`})]}),/* @__PURE__ */ K(`div`,{className:`sort-options`,children:[/* @__PURE__ */ K(`label`,{className:`sort-header`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:n.caseSensitive,disabled:a.busy,onChange:e=>void c({type:`case-sensitive`,value:e.currentTarget.checked})}),/* @__PURE__ */ G(H,{id:`H9DxgL`})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`Kvc9v7`}),/* @__PURE__ */ K(`select`,{"aria-label":t({id:`gXMWc_`}),disabled:a.busy,value:n.emptyFirst?`first`:`last`,onChange:e=>void c({type:`empty-first`,value:e.currentTarget.value===`first`}),children:[/* @__PURE__ */ G(`option`,{value:`last`,children:/* @__PURE__ */ G(H,{id:`RtKKbA`})}),/* @__PURE__ */ G(`option`,{value:`first`,children:/* @__PURE__ */ G(H,{id:`syyeb9`})})]})]})]}),n.keys.map((e,r)=>/* @__PURE__ */ K(`fieldset`,{disabled:a.busy,children:[/* @__PURE__ */ G(`legend`,{children:t(r===0?{id:`_HgF9q`}:{id:`kaSSc_`,values:{0:r+1}})}),/* @__PURE__ */ G(`label`,{htmlFor:`${d}-column-${r}`,children:/* @__PURE__ */ G(H,{id:`WtgDbl`})}),/* @__PURE__ */ G(`select`,{id:`${d}-column-${r}`,value:e.col,"aria-label":t({id:`0lZZNh`,values:{0:r+1}}),onChange:t=>void c({type:`key`,index:r,key:{...e,col:Number(t.currentTarget.value)}}),children:p.map(e=>/* @__PURE__ */ G(`option`,{value:e,disabled:n.keys.some((t,n)=>n!==r&&t.col===e),children:Je(e)},e))}),/* @__PURE__ */ G(`label`,{htmlFor:`${d}-order-${r}`,children:/* @__PURE__ */ G(H,{id:`UYUgdb`})}),/* @__PURE__ */ K(`select`,{id:`${d}-order-${r}`,"aria-label":t({id:`9WO3wH`,values:{0:r+1}}),value:e.direction,onChange:t=>{let n=t.currentTarget.value;(n===`asc`||n===`desc`)&&c({type:`key`,index:r,key:{...e,direction:n}})},children:[/* @__PURE__ */ G(`option`,{value:`asc`,children:/* @__PURE__ */ G(H,{id:`nYD_Cq`})}),/* @__PURE__ */ G(`option`,{value:`desc`,children:/* @__PURE__ */ G(H,{id:`Cko536`})})]}),/* @__PURE__ */ K(`div`,{className:`sort-level-actions`,children:[[`up`,`down`].map(e=>/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":t(e===`up`?{id:`w0fzJB`,values:{0:r+1}}:{id:`t25i1d`,values:{0:r+1}}),disabled:e===`up`?r===0:r===n.keys.length-1,onClick:async()=>{if(await c({type:`move`,index:r,direction:e})){let t=r+(e===`up`?-1:1);l.current?.querySelector(`[id="${d}-column-${t}"]`)?.focus()}},children:t(e===`up`?{id:`QyioBP`}:{id:`3Ib6FN`})},e)),/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":t({id:`usWbHt`,values:{0:r+1}}),disabled:n.keys.length===1,onClick:()=>void c({type:`remove`,index:r}),children:/* @__PURE__ */ G(H,{id:`t_YqKh`})})]})]},r)),/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.busy||n.keys.length>=Math.min(8,p.length),onClick:()=>void c(`add`),children:/* @__PURE__ */ G(H,{id:`Q6QJvF`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`size-error`,children:q(e,n.error)}),/* @__PURE__ */ K(`div`,{className:`size-actions`,children:[/* @__PURE__ */ G(`button`,{type:`submit`,disabled:a.busy,children:/* @__PURE__ */ G(H,{id:`scPBeJ`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.busy,onClick:()=>void c(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})})]})]})]})]})}function ra(){let e=r(Ct),t=i(le);return e?.page?/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:e.busy||!e.page.total,onClick:()=>void t(`select-search`),children:/* @__PURE__ */ G(H,{id:`oKclF5`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:e.busy||!e.page.total||!e.selected.length,onClick:()=>void t(`clear-search`),children:/* @__PURE__ */ G(H,{id:`bGRuWg`})}),/* @__PURE__ */ G(`span`,{className:`size-hint`,children:/* @__PURE__ */ G(H,{id:`OwTfmu`,values:{0:e.page.total}})})]}):null}function ia({index:e}){let{i18n:t,_:n}=U(),a=r(Ct),o=i(le),s=z(),c=a?.index===e,l=c?a.page:void 0;return/* @__PURE__ */ K(`div`,{className:`filter-values`,children:[/* @__PURE__ */ G(`button`,{type:`button`,"aria-expanded":c,"aria-controls":s,"aria-label":n(c?{id:`BwAJqT`,values:{0:e+1}}:{id:`fol3l1`,values:{0:e+1}}),onClick:()=>void o(c?`close`:{type:`open`,index:e}),children:n(c?{id:`A7kETi`}:{id:`g7JDZI`})}),c&&/* @__PURE__ */ K(`section`,{id:s,"aria-label":n({id:`38nohI`}),"aria-busy":a.busy,children:[/* @__PURE__ */ G(`p`,{className:`size-hint`,children:/* @__PURE__ */ G(H,{id:`XyQQXt`})}),/* @__PURE__ */ K(`div`,{className:`filter-values-search`,children:[/* @__PURE__ */ G(`input`,{type:`search`,"aria-label":n({id:`vFTBYQ`}),placeholder:n({id:`ywfxn9`}),maxLength:32767,value:a.search,onChange:e=>void o({type:`search-text`,value:e.currentTarget.value}),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),o(`search`))}}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.busy,onClick:()=>void o(`search`),children:/* @__PURE__ */ G(H,{id:`A1taO8`})})]}),a.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`V-IYE1`})}),a.error&&/* @__PURE__ */ K(`div`,{role:`alert`,className:`size-error`,children:[/* @__PURE__ */ G(`p`,{children:q(t,a.error)}),!l&&/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>void o(`retry`),children:/* @__PURE__ */ G(H,{id:`BZ9DPB`})})]}),!a.busy&&!a.error&&!l&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`juO0Dc`})}),l&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`div`,{className:`filter-values-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:!l.values.length,onClick:()=>void o(`select-page`),children:/* @__PURE__ */ G(H,{id:`DvdI9b`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:!a.selected.length,onClick:()=>void o(`clear-selection`),children:/* @__PURE__ */ G(H,{id:`FBIuPX`})}),/* @__PURE__ */ G(`span`,{"aria-label":n({id:`Uq5ARj`}),children:/* @__PURE__ */ G(H,{id:`fvImQM`,values:{0:a.selected.length}})}),/* @__PURE__ */ G(ra,{})]}),l.values.length?/* @__PURE__ */ G(`div`,{className:`filter-values-list`,children:l.values.map(e=>{let t=e.value===``?n({id:`TXf9YD`}):e.value.trim()===``?n({id:`R4NdeX`,values:{0:e.value.length}}):e.value;return/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,"aria-label":n({id:`LtPJFw`,values:{label:t}}),checked:a.selected.includes(e.value),onChange:()=>void o({type:`toggle`,value:e.value})}),/* @__PURE__ */ G(`span`,{className:`filter-values-label`,children:t}),/* @__PURE__ */ G(`span`,{className:`filter-values-count`,title:n({id:`rDnCdZ`}),children:e.count})]},e.value)})}):/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`5UhrA-`})}),/* @__PURE__ */ K(`div`,{className:`filter-values-pages`,children:[/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":n({id:`Rl9_jm`}),disabled:l.offset===0,onClick:()=>void o(`previous`),children:/* @__PURE__ */ G(H,{id:`DHhJ7s`})}),/* @__PURE__ */ K(`span`,{role:`status`,"aria-label":n({id:`X-6oBB`}),children:[l.values.length?l.offset+1:0,`–`,l.offset+l.values.length,n({id:`TCXvxM`}),l.total]}),/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":n({id:`br094C`}),disabled:l.offset+l.values.length>=l.total,onClick:()=>void o(`next`),children:/* @__PURE__ */ G(H,{id:`hXzOVo`})})]})]})]})]})}function aa({indices:e,grouped:t=!1}={}){let{_:n}=U(),a=r(w),o=r(yt),s=r(vt),c=i(ce),l=z(),u=o.range?.colStart??0,d=o.range?.colEnd??(a?.colCount??1)-1;return/* @__PURE__ */ G(W,{children:o.conditions.map((r,i)=>(!e||e.includes(i))&&/* @__PURE__ */ K(`fieldset`,{disabled:s.busy,children:[/* @__PURE__ */ G(`legend`,{children:i===(e?.[0]??0)?n({id:`tLNhV1`}):n({id:`qVyNMm`})}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-col-${i}`,children:/* @__PURE__ */ G(H,{id:`WtgDbl`})}),/* @__PURE__ */ G(`select`,{id:`${l}-col-${i}`,"aria-label":n({id:`KFipWg`,values:{0:i+1}}),value:r.col,disabled:o.column!==void 0,onChange:e=>void c({type:`change`,index:i,patch:{col:Number(e.currentTarget.value)}}),children:Array.from({length:d-u+1},(e,t)=>u+t).map(e=>/* @__PURE__ */ G(`option`,{value:e,disabled:!t&&o.conditions.some((t,n)=>n!==i&&t.col===e),children:Je(e)},e))}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-kind-${i}`,children:/* @__PURE__ */ G(H,{id:`wpT1VN`})}),/* @__PURE__ */ K(`select`,{id:`${l}-kind-${i}`,"aria-label":n({id:`CgeaO0`,values:{0:i+1}}),value:r.kind,onChange:e=>void c({type:`change`,index:i,patch:{kind:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`equals`,children:/* @__PURE__ */ G(H,{id:`f9yJNM`})}),/* @__PURE__ */ G(`option`,{value:`contains`,children:/* @__PURE__ */ G(H,{id:`_5mghO`})}),/* @__PURE__ */ G(`option`,{value:`range`,children:/* @__PURE__ */ G(H,{id:`je-GuB`})}),/* @__PURE__ */ G(`option`,{value:`list`,children:/* @__PURE__ */ G(H,{id:`ZzrsKL`})})]}),o.browser?.index!==i&&(r.kind===`range`?/* @__PURE__ */ G(W,{children:[`min`,`max`].map(e=>/* @__PURE__ */ K(`label`,{className:`filter-number-bound`,children:[n(e===`min`?{id:`CW11B-`}:{id:`mOFgdC`}),/* @__PURE__ */ G(`input`,{"aria-label":n(e===`min`?{id:`H6isXc`,values:{0:i+1}}:{id:`x5ECoP`,values:{0:i+1}}),inputMode:`decimal`,value:r[e],onChange:t=>void c({type:`change`,index:i,patch:{[e]:t.currentTarget.value}})})]},e))}):/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-value-${i}`,children:r.kind===`list`?n({id:`PCjiXA`}):n({id:`wMHvYH`})}),r.kind===`list`?/* @__PURE__ */ G(`textarea`,{id:`${l}-value-${i}`,"aria-label":n({id:`H8IKGs`,values:{0:i+1}}),value:r.values.join(`
|
|
5
|
+
`),readOnly:r.values.some(e=>e.includes(`
|
|
6
|
+
`)),onChange:e=>void c({type:`change`,index:i,patch:{values:e.currentTarget.value.split(`
|
|
7
|
+
`)}})}):/* @__PURE__ */ G(`input`,{id:`${l}-value-${i}`,"aria-label":n({id:`H8IKGs`,values:{0:i+1}}),value:r.value,onChange:e=>void c({type:`change`,index:i,patch:{value:e.currentTarget.value}})}),r.kind!==`list`&&/* @__PURE__ */ K(`label`,{className:`filter-case`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:r.caseSensitive,onChange:e=>void c({type:`change`,index:i,patch:{caseSensitive:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`-8PP0T`})]})]})),/* @__PURE__ */ G(ia,{index:i}),o.browser?.index!==i&&r.kind===`list`&&r.values.some(e=>e.includes(`
|
|
8
|
+
`))&&/* @__PURE__ */ G(`p`,{className:`size-hint filter-values-hint`,children:/* @__PURE__ */ G(H,{id:`pHgLQr`})}),o.column===void 0&&/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":n({id:`8v5ISZ`,values:{0:i+1}}),disabled:(e?.length??o.conditions.length)===1,onClick:()=>void c({type:`remove`,index:i}),children:/* @__PURE__ */ G(H,{id:`t_YqKh`})})]},i))})}function oa(){let{_:e}=U(),t=r(ft),n=r(yt),a=r(vt),o=i(oe),s=i(ce),c=a.busy||!!n.browser?.busy;return/* @__PURE__ */ K(`div`,{className:`advanced-filter-groups`,children:[/* @__PURE__ */ G(`p`,{className:`size-hint`,children:/* @__PURE__ */ G(H,{id:`bFVQjR`})}),t.map(({group:r,conditions:i},a)=>/* @__PURE__ */ K(`div`,{className:`advanced-filter-group`,children:[a>0&&/* @__PURE__ */ G(`p`,{className:`advanced-filter-or`,children:/* @__PURE__ */ G(H,{id:`ZAVklK`})}),/* @__PURE__ */ K(`fieldset`,{disabled:c,"aria-label":e({id:`JH6mku`,values:{0:a+1}}),children:[/* @__PURE__ */ G(`legend`,{children:e({id:`43RbWy`,values:{0:a+1}})}),/* @__PURE__ */ G(aa,{indices:i.map(e=>e.index),grouped:n.advanced}),/* @__PURE__ */ K(`div`,{className:`advanced-filter-group-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:i.length>=8||n.conditions.length>=32,onClick:()=>void(n.advanced?o({type:`add-condition`,group:r}):s(`add`)),children:e(a===0?{id:`ADCve-`}:{id:`2SgRHg`,values:{0:a+1}})}),/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":e({id:`j8idG0`,values:{0:a+1}}),disabled:t.length===1,onClick:()=>void o({type:`remove-group`,group:r}),children:/* @__PURE__ */ G(H,{id:`qrXszS`})})]})]})]},r)),/* @__PURE__ */ G(`button`,{type:`button`,disabled:c||t.length>=8||n.conditions.length>=32,onClick:()=>void o(`add-group`),children:/* @__PURE__ */ G(H,{id:`A1yhyK`})}),/* @__PURE__ */ G(`p`,{className:`size-hint`,children:/* @__PURE__ */ G(H,{id:`C_K0Ja`})})]})}function sa(){let{i18n:e,_:t}=U(),n=r(w),a=r(yt),o=r(vt),{table:s,rules:c,range:l}=r(St),u=r(j).source!==null,d=i(ce),f=i(_n),p=V(null),m=V(null),h=z(),g=a.sheetId;return R(()=>{let e=p.current;if(!e||!g)return;let t=a.column===void 0?m.current:document.activeElement;return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.isConnected&&t.focus({preventScroll:!0})}},[g,a.column]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{ref:m,className:`tool-select paste-options-select`,"aria-label":t({id:`4AnZbD`}),value:``,disabled:o.busy||u||!n,onChange:e=>{let t=e.currentTarget.value;t===`open`?d(`open`):t===`selection`?f(`selection`):(t===`reapply`||t===`clear`)&&d(t)},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:s?t({id:`g0pd6N`,values:{table:s,0:c.length?` (${c.length})`:``}}):c.length?t({id:`E3-u01`,values:{0:c.length}}):t({id:`o7J4JM`})}),/* @__PURE__ */ G(`option`,{value:`selection`,children:/* @__PURE__ */ G(H,{id:`zhQBLN`})}),/* @__PURE__ */ G(`option`,{value:`open`,children:t(s?{id:`ydd6Gh`,values:{table:s}}:{id:`qGNf9H`})}),/* @__PURE__ */ G(`option`,{value:`reapply`,disabled:!c.length,children:t(s?{id:`Mo5eDU`,values:{table:s}}:{id:`vT-CRx`})}),/* @__PURE__ */ G(`option`,{value:`clear`,disabled:!c.length&&(s!==void 0||!l),children:t(s?{id:`f3OMYV`,values:{table:s}}:{id:`Q2mGA7`})})]}),(o.error||o.message)&&/* @__PURE__ */ G(`span`,{className:`filter-feedback`,title:q(e,o.error||o.message),"aria-label":t({id:`uhz8U_`}),role:o.error?`alert`:`status`,children:q(e,o.error||o.message)}),g&&/* @__PURE__ */ K(`dialog`,{ref:p,className:`selection-size-dialog filter-dialog`,"aria-labelledby":`${h}-title`,"aria-describedby":`${h}-help`,onKeyDown:X,onCancel:e=>{e.preventDefault(),d(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${h}-title`,children:a.table?t({id:`C8kSkE`,values:{0:a.table}}):t({id:`aVNbN8`})}),/* @__PURE__ */ K(`p`,{id:`${h}-help`,children:[a.table?t({id:`dipmRq`,values:{0:a.table}}):a.range?t({id:`8xv00d`,values:{0:Je(a.range.colStart),1:a.range.rowStart+1,2:Je(a.range.colEnd),3:a.range.rowEnd+1}}):t({id:`OPD48B`}),a.column===void 0?t({id:`BHfXY4`}):t({id:`hxXfm5`})]}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),d(`apply`)},children:[a.column===void 0?/* @__PURE__ */ G(oa,{}):/* @__PURE__ */ G(aa,{}),a.column!==void 0&&/* @__PURE__ */ G(`button`,{type:`button`,disabled:o.busy||!a.rules.some(e=>e.colIndex===a.column),onClick:()=>void d(`clear-column`),children:/* @__PURE__ */ G(H,{id:`f_vAyF`,values:{0:Je(a.column)}})}),a.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`size-error`,children:q(e,a.error)}),/* @__PURE__ */ K(`div`,{className:`size-actions`,children:[/* @__PURE__ */ G(`button`,{type:`submit`,disabled:o.busy||a.browser?.busy,children:/* @__PURE__ */ G(H,{id:`IJyMMV`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:o.busy,onClick:()=>void d(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})})]})]})]})]})}function ca(){let{_:e}=U(),t=[[`preserve`,e({id:`T4Sbho`})],[`general`,e({id:`Weq9zb`})],[`text`,e({id:`xeiujy`})],[`dateMdy`,e({id:`oMNtqO`})],[`dateDmy`,e({id:`kGMCQm`})],[`dateYmd`,e({id:`nvOImr`})],[`dateMyd`,e({id:`oXDjoV`})],[`dateDym`,e({id:`1olIxt`})],[`dateYdm`,e({id:`KrqHL4`})],[`skip`,e({id:`CI_GQy`})]],n=r(yr),a=i(Fn),o=Number(n.columnNumber)-1,s=!Number.isSafeInteger(o)||o<0||o>=16384,c=n.draft.columnTypes.find(e=>e.column===o)?.kind??`preserve`;return/* @__PURE__ */ K(`fieldset`,{disabled:n.status!==`idle`,children:[/* @__PURE__ */ G(`legend`,{children:/* @__PURE__ */ G(H,{id:`8ow7JB`})}),/* @__PURE__ */ K(`div`,{className:`text-columns-fields`,children:[/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`vJBsua`}),/* @__PURE__ */ G(`input`,{type:`number`,min:1,max:16384,step:1,value:n.columnNumber,onChange:e=>void a({type:`columnNumber`,value:e.currentTarget.value})})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`zXgopL`}),/* @__PURE__ */ G(`select`,{disabled:s,value:c,onChange:e=>void a({type:`columnType`,kind:e.currentTarget.value}),children:t.map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))})]})]}),/* @__PURE__ */ K(`p`,{className:`text-columns-hint`,children:[n.preview&&e({id:`_mqxGf`,values:{0:n.preview.sourceColumnCount}}),/* @__PURE__ */ G(H,{id:`62FGW_`})]}),n.draft.columnTypes.length>0&&/* @__PURE__ */ G(`ul`,{className:`text-columns-type-summary`,"aria-label":e({id:`28_CwG`}),children:n.draft.columnTypes.map(e=>/* @__PURE__ */ K(`li`,{children:[/* @__PURE__ */ G(H,{id:`eTvZsC`}),e.column+1,`: `,t.find(([t])=>t===e.kind)?.[1]]},e.column))})]})}function la(){let e=r(yr),t=i(Fn),n=e.draft.numberOptions;return/* @__PURE__ */ K(`details`,{className:`text-columns-number-options`,children:[/* @__PURE__ */ G(`summary`,{children:/* @__PURE__ */ G(H,{id:`gnZwjk`})}),/* @__PURE__ */ K(`fieldset`,{disabled:e.status!==`idle`,children:[/* @__PURE__ */ G(`legend`,{children:/* @__PURE__ */ G(H,{id:`-Xe3y_`})}),/* @__PURE__ */ K(`div`,{className:`text-columns-fields`,children:[/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`DoWJih`}),/* @__PURE__ */ K(`select`,{value:n.decimalSeparator,onChange:e=>void t({type:`draft`,patch:{numberOptions:{...n,decimalSeparator:e.currentTarget.value}}}),children:[/* @__PURE__ */ G(`option`,{value:`.`,children:/* @__PURE__ */ G(H,{id:`nMKyui`})}),/* @__PURE__ */ G(`option`,{value:`,`,children:/* @__PURE__ */ G(H,{id:`fkLtw5`})})]})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`Lt4H14`}),/* @__PURE__ */ K(`select`,{value:n.groupSeparator??``,onChange:e=>void t({type:`draft`,patch:{numberOptions:{...n,groupSeparator:e.currentTarget.value||null}}}),children:[/* @__PURE__ */ G(`option`,{value:``,children:/* @__PURE__ */ G(H,{id:`EdQY6l`})}),/* @__PURE__ */ G(`option`,{value:`,`,children:/* @__PURE__ */ G(H,{id:`fkLtw5`})}),/* @__PURE__ */ G(`option`,{value:`.`,children:/* @__PURE__ */ G(H,{id:`nMKyui`})}),/* @__PURE__ */ G(`option`,{value:` `,children:/* @__PURE__ */ G(H,{id:`pOE8Vh`})}),/* @__PURE__ */ G(`option`,{value:`\xA0`,children:/* @__PURE__ */ G(H,{id:`KKI6Zv`})}),/* @__PURE__ */ G(`option`,{value:` `,children:/* @__PURE__ */ G(H,{id:`w_uqf-`})}),/* @__PURE__ */ G(`option`,{value:`'`,children:/* @__PURE__ */ G(H,{id:`AJzRee`})})]})]})]}),/* @__PURE__ */ K(`label`,{className:`text-columns-check`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:n.trailingMinus,onChange:e=>void t({type:`draft`,patch:{numberOptions:{...n,trailingMinus:e.currentTarget.checked}}})}),/* @__PURE__ */ G(H,{id:`9_h-Y4`})]}),/* @__PURE__ */ G(`p`,{className:`text-columns-hint`,children:/* @__PURE__ */ G(H,{id:`LMBjM5`})})]})]})}function ua(){let{i18n:e,_:t}=U(),n=[[t({id:`aaTj9f`}),`,`],[t({id:`HuA3RU`}),` `],[t({id:`rrl4Qp`}),`;`],[t({id:`pOE8Vh`}),` `]],a=r(yr),o=i(Fn),s=r(j).source!==null,c=V(null),l=V(null),u=z(),d=a.target!==null,f=a.status===`applying`,{draft:p,preview:m}=a;return B(()=>{let e=l.current,t=c.current;if(d&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`select`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[d]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:c,type:`button`,className:`tool-button`,"aria-label":t({id:`fJyysq`}),title:t({id:`fJyysq`}),disabled:s||f,onClick:()=>void o(`open`),children:`⇥`}),d&&/* @__PURE__ */ K(`dialog`,{ref:l,className:`text-columns-dialog`,"aria-labelledby":`${u}-title`,"aria-describedby":`${u}-hint`,onKeyDown:X,onCancel:e=>{e.preventDefault(),o(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${u}-title`,children:/* @__PURE__ */ G(H,{id:`fJyysq`})}),/* @__PURE__ */ G(`p`,{id:`${u}-hint`,children:/* @__PURE__ */ G(H,{id:`r4TB0d`})}),/* @__PURE__ */ G(`p`,{className:`text-columns-source`,children:/* @__PURE__ */ G(H,{id:`4uX-bI`,values:{0:a.target&&`${P(a.target.source.rowStart,a.target.source.colStart)}:${P(a.target.source.rowEnd,a.target.source.colEnd)}`}})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),o(`apply`)},children:[/* @__PURE__ */ K(`div`,{className:`text-columns-fields`,children:[/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`vOmz96`}),/* @__PURE__ */ K(`select`,{value:p.kind,disabled:f,onChange:e=>void o({type:`draft`,patch:{kind:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`delimited`,children:/* @__PURE__ */ G(H,{id:`oxYuXt`})}),/* @__PURE__ */ G(`option`,{value:`fixedWidth`,children:/* @__PURE__ */ G(H,{id:`ay8rvx`})})]})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`xqYmay`}),/* @__PURE__ */ G(`input`,{value:p.destination,disabled:f,spellCheck:!1,onChange:e=>void o({type:`draft`,patch:{destination:e.currentTarget.value}})})]})]}),p.kind===`delimited`?/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`fieldset`,{disabled:f,children:[/* @__PURE__ */ G(`legend`,{children:/* @__PURE__ */ G(H,{id:`9bamiZ`})}),/* @__PURE__ */ G(`div`,{className:`text-columns-delimiters`,children:n.map(([e,t])=>/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:p.delimiters.includes(t),onChange:e=>void o({type:`delimiter`,value:t,enabled:e.currentTarget.checked})}),e]},t))})]}),/* @__PURE__ */ K(`div`,{className:`text-columns-fields`,children:[/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`E2Y17F`}),/* @__PURE__ */ G(`input`,{value:p.otherDelimiter,disabled:f,maxLength:16,onChange:e=>void o({type:`draft`,patch:{otherDelimiter:e.currentTarget.value}})})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`TSAWjn`}),/* @__PURE__ */ K(`select`,{value:p.qualifier??``,disabled:f,onChange:e=>void o({type:`draft`,patch:{qualifier:e.currentTarget.value||null}}),children:[/* @__PURE__ */ G(`option`,{value:`"`,children:/* @__PURE__ */ G(H,{id:`wRhcPw`})}),/* @__PURE__ */ G(`option`,{value:`'`,children:/* @__PURE__ */ G(H,{id:`CGJPDg`})}),/* @__PURE__ */ G(`option`,{value:``,children:/* @__PURE__ */ G(H,{id:`EdQY6l`})})]})]})]}),/* @__PURE__ */ K(`label`,{className:`text-columns-check`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,disabled:f,checked:p.mergeConsecutive,onChange:e=>void o({type:`draft`,patch:{mergeConsecutive:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`eEvGys`})]})]}):/* @__PURE__ */ K(`div`,{children:[/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`owOdhN`}),/* @__PURE__ */ G(`input`,{value:p.breakpoints,disabled:f,"aria-describedby":`${u}-break-hint`,onChange:e=>void o({type:`draft`,patch:{breakpoints:e.currentTarget.value}})})]}),/* @__PURE__ */ G(`p`,{id:`${u}-break-hint`,className:`text-columns-hint`,children:/* @__PURE__ */ G(H,{id:`uxonbb`})})]}),/* @__PURE__ */ G(ca,{}),/* @__PURE__ */ G(la,{}),/* @__PURE__ */ K(`div`,{className:`text-columns-preview`,"aria-busy":a.status===`previewing`,children:[/* @__PURE__ */ G(`div`,{role:`status`,children:f?t({id:`lIktZ3`}):a.status===`previewing`?t({id:`nSgEqx`}):t(m?{id:`hFUhUx`,values:{0:P(m.target.rowStart,m.target.colStart),1:P(m.target.rowEnd,m.target.colEnd)}}:{id:`mRbPqB`})}),m&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`div`,{className:`text-columns-table-scroll`,tabIndex:0,"aria-label":t({id:`92NTaO`}),children:/* @__PURE__ */ K(`table`,{children:[/* @__PURE__ */ G(`caption`,{children:/* @__PURE__ */ G(H,{id:`V5H54_`})}),/* @__PURE__ */ G(`thead`,{children:/* @__PURE__ */ K(`tr`,{children:[/* @__PURE__ */ G(`th`,{scope:`col`,children:/* @__PURE__ */ G(H,{id:`IqKCNQ`})}),m.sample[0]?.map((e,t)=>/* @__PURE__ */ G(`th`,{scope:`col`,children:P(m.target.rowStart,m.target.colStart+t)},t))]})}),/* @__PURE__ */ G(`tbody`,{children:m.sample.map((e,t)=>/* @__PURE__ */ K(`tr`,{children:[/* @__PURE__ */ G(`th`,{scope:`row`,children:m.target.rowStart+t+1}),e.map((e,t)=>/* @__PURE__ */ G(`td`,{children:e||/* @__PURE__ */ G(`span`,{className:`text-columns-hint`,children:/* @__PURE__ */ G(H,{id:`SlzWuE`})})},t))]},t))})]})}),m.sampleTruncated&&/* @__PURE__ */ G(`p`,{className:`text-columns-hint`,children:/* @__PURE__ */ G(H,{id:`Rr55-E`})}),m.overwrittenCells>0&&/* @__PURE__ */ K(`label`,{className:`text-columns-check text-columns-warning`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:a.overwrite,disabled:f,onChange:e=>void o({type:`overwrite`,value:e.currentTarget.checked})}),/* @__PURE__ */ G(H,{id:`8DFPLM`}),m.overwrittenCells,/* @__PURE__ */ G(H,{id:`06d1qf`})]})]})]}),a.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,a.error)}),/* @__PURE__ */ K(`div`,{className:`text-columns-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:f,onClick:()=>void o(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.status!==`idle`,onClick:()=>void o(`preview`),children:/* @__PURE__ */ G(H,{id:`oh9cEE`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:a.status!==`idle`||!m||m.overwrittenCells>0&&!a.overwrite,children:/* @__PURE__ */ G(H,{id:`AKq9zo`})})]})]})]})]})}function da(){let{i18n:e,_:t}=U(),n=r(_t),a=i(gn),o=r(j).source!==null,s=V(null),c=V(null),l=z(),u=n.target!==null,d=n.status===`applying`,{draft:f,preview:p,target:m}=n,h=m?Math.min(256,m.range.colEnd-m.range.colStart+1):0,g=m?Array.from({length:h},(e,t)=>m.range.colStart+t):[];B(()=>{let e=c.current,t=s.current;if(u&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`input`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[u]);async function _(e,t){await a({type:`locate`,row:e,occurrence:t})&&requestAnimationFrame(()=>s.current?.closest(`.workbook`)?.querySelector(`[data-workbook-grid="true"]`)?.focus({preventScroll:!0}))}return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:s,type:`button`,className:`tool-button`,"aria-label":t({id:`UEEaA4`}),title:t({id:`UEEaA4`}),disabled:o||d,onClick:()=>void a(`open`),children:`≠`}),u&&/* @__PURE__ */ K(`dialog`,{ref:c,className:`duplicates-dialog`,"aria-labelledby":`${l}-title`,"aria-describedby":`${l}-hint`,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${l}-title`,children:/* @__PURE__ */ G(H,{id:`UEEaA4`})}),/* @__PURE__ */ G(`p`,{id:`${l}-hint`,children:/* @__PURE__ */ G(H,{id:`toz93w`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`uWMwGl`,values:{0:m&&`${P(m.range.rowStart,m.range.colStart)}:${P(m.range.rowEnd,m.range.colEnd)}`}})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),a(`apply`)},children:[/* @__PURE__ */ K(`label`,{className:`duplicates-check`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:f.hasHeader,disabled:d,onChange:e=>void a({type:`draft`,patch:{hasHeader:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`wnTaAw`})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`ApqPN5`}),/* @__PURE__ */ K(`select`,{value:f.comparison,disabled:d,onChange:e=>void a({type:`draft`,patch:{comparison:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`ignoreCase`,children:/* @__PURE__ */ G(H,{id:`KPr6ld`})}),/* @__PURE__ */ G(`option`,{value:`exact`,children:/* @__PURE__ */ G(H,{id:`udbJOQ`})}),/* @__PURE__ */ G(`option`,{value:`trim`,children:/* @__PURE__ */ G(H,{id:`wG2Sa9`})}),/* @__PURE__ */ G(`option`,{value:`trimIgnoreCase`,children:/* @__PURE__ */ G(H,{id:`i_Xzwl`})})]})]}),/* @__PURE__ */ K(`fieldset`,{disabled:d,children:[/* @__PURE__ */ G(`legend`,{children:/* @__PURE__ */ G(H,{id:`qxdN8v`})}),/* @__PURE__ */ K(`div`,{className:`duplicates-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>void a({type:`draft`,patch:{columns:g}}),children:/* @__PURE__ */ G(H,{id:`wgNoIs`})}),/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>void a({type:`draft`,patch:{columns:[]}}),children:/* @__PURE__ */ G(H,{id:`yYxB17`})})]}),/* @__PURE__ */ G(`div`,{className:`duplicates-columns`,children:g.map((e,n)=>/* @__PURE__ */ K(`label`,{className:`duplicates-check`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:f.columns.includes(e),"aria-label":t({id:`zs4_0a`,values:{0:P(0,e).slice(0,-1)}}),onChange:t=>void a({type:`draft`,patch:{columns:t.currentTarget.checked?[...f.columns,e].sort((e,t)=>e-t):f.columns.filter(t=>t!==e)}})}),/* @__PURE__ */ G(H,{id:`o1F7G8`}),P(0,e).slice(0,-1),f.hasHeader&&p?.headers[n]?` — ${p.headers[n]}`:``]},e))})]}),/* @__PURE__ */ K(`div`,{"aria-busy":n.status===`previewing`,children:[/* @__PURE__ */ G(`p`,{role:`status`,children:d?t({id:`eiHuBO`}):n.status===`previewing`?t({id:`nSgEqx`}):t(p?{id:`lGESva`,values:{0:p.removedRows,1:p.uniqueRows}}:{id:`y5Izej`})}),p&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`UwUnP2`,values:{0:p.scannedRows,1:p.excludedRows}})}),p.sample.length>0&&/* @__PURE__ */ G(`div`,{className:`duplicates-table-scroll`,tabIndex:0,"aria-label":t({id:`UHJDnz`}),children:/* @__PURE__ */ K(`table`,{children:[/* @__PURE__ */ G(`caption`,{children:/* @__PURE__ */ G(H,{id:`_rpaNi`})}),/* @__PURE__ */ G(`thead`,{children:/* @__PURE__ */ K(`tr`,{children:[/* @__PURE__ */ G(`th`,{scope:`col`,children:/* @__PURE__ */ G(H,{id:`IqKCNQ`})}),/* @__PURE__ */ G(`th`,{scope:`col`,children:/* @__PURE__ */ G(H,{id:`pBbOIk`})}),/* @__PURE__ */ G(`th`,{scope:`col`,children:/* @__PURE__ */ G(H,{id:`d8wc1_`})})]})}),/* @__PURE__ */ G(`tbody`,{children:p.sample.map(e=>/* @__PURE__ */ K(`tr`,{children:[/* @__PURE__ */ G(`th`,{scope:`row`,children:/* @__PURE__ */ G(`button`,{type:`button`,className:`duplicates-row-link`,disabled:d,"aria-label":t({id:`-hSAzr`,values:{0:e.row+1}}),onClick:()=>void _(e.row,`duplicate`),children:e.row+1})}),/* @__PURE__ */ G(`td`,{children:/* @__PURE__ */ G(`button`,{type:`button`,className:`duplicates-row-link`,disabled:d,"aria-label":t({id:`VWg339`,values:{0:e.firstRow+1,1:e.row+1}}),onClick:()=>void _(e.row,`first`),children:e.firstRow+1})}),/* @__PURE__ */ G(`td`,{children:e.values.map(e=>e||t({id:`SlzWuE`})).join(` · `)})]},e.row))})]})}),p.removedRows>0&&/* @__PURE__ */ K(`nav`,{className:`duplicates-pagination`,"aria-label":t({id:`5oRu1T`}),children:[/* @__PURE__ */ G(`span`,{children:/* @__PURE__ */ G(H,{id:`oMp0l7`,values:{0:p.sampleOffset+1,1:p.sampleOffset+p.sample.length,2:p.removedRows}})}),p.removedRows>20&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:d||p.sampleOffset===0,onClick:()=>void a({type:`page`,offset:Math.max(0,p.sampleOffset-20)}),children:/* @__PURE__ */ G(H,{id:`aHKcKc`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:d||p.sampleOffset+p.sample.length>=p.removedRows,onClick:()=>void a({type:`page`,offset:p.sampleOffset+20}),children:/* @__PURE__ */ G(H,{id:`_dqduX`})})]})]}),p.sampleTruncated&&/* @__PURE__ */ G(`p`,{className:`duplicates-hint`,children:/* @__PURE__ */ G(H,{id:`pE2vYC`})}),p.removedRows>0&&/* @__PURE__ */ K(`label`,{className:`duplicates-check duplicates-warning`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:n.confirmed,disabled:d,onChange:e=>void a({type:`confirm`,value:e.currentTarget.checked})}),/* @__PURE__ */ G(H,{id:`8CAxTp`}),p.removedRows,/* @__PURE__ */ G(H,{id:`Tp1Gud`})]})]})]}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),/* @__PURE__ */ K(`div`,{className:`duplicates-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:d,onClick:()=>void a(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.status!==`idle`,onClick:()=>void a(`preview`),children:/* @__PURE__ */ G(H,{id:`oh9cEE`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.status!==`idle`||!p?.removedRows||!n.confirmed,children:/* @__PURE__ */ G(H,{id:`atNeRW`})})]})]})]})]})}function fa(){let{i18n:e,_:t}=U(),n=[[`insert-rows`,t({id:`PHvESz`})],[`insert-columns`,t({id:`8-YkhO`})],[`delete-rows`,t({id:`exUSTl`})],[`delete-columns`,t({id:`zTJjcX`})]],a=i(jn),o=r(nr),s=r(j).source!==null,c=r(Bn),l=r(or);return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{className:`tool-select paste-options-select`,"aria-label":t({id:`riTRt9`}),value:``,disabled:s||o.busy||c.busy||!!l.mutation,onChange:e=>{let t=n.find(([t])=>t===e.currentTarget.value);t&&a(t[0])},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`bYL9MP`})}),n.map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))]}),o.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`EhptVN`})}),o.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,o.error)})]})}function pa({openerRef:e}){let{_:t}=U(),n=z(),a=z(),o=r(qn),s=i(kn),c=V(null);return R(()=>{let t=c.current;if(!o.pending||!t)return;let n=e.current;return t.showModal?t.showModal():t.setAttribute(`open`,``),()=>{t.close?.(),n?.isConnected&&n.focus({preventScroll:!0})}},[o.pending,e]),o.pending?/* @__PURE__ */ K(`dialog`,{ref:c,className:`sheet-delete-dialog`,role:`alertdialog`,"aria-labelledby":n,"aria-describedby":a,onKeyDown:X,onCancel:e=>{e.preventDefault(),o.busy||s(`cancel`)},children:[/* @__PURE__ */ G(`h2`,{id:n,children:/* @__PURE__ */ G(H,{id:`zYv2fW`})}),/* @__PURE__ */ G(`p`,{id:a,children:/* @__PURE__ */ G(H,{id:`KN2oP5`})}),/* @__PURE__ */ K(`div`,{className:`sheet-delete-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:o.busy,onClick:()=>void s(`cancel`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:o.busy,onClick:()=>void s(`confirm`),children:o.busy?t({id:`MJKChL`}):t({id:`HNtOdD`})})]})]}):null}function ma(){let{i18n:e,_:t}=U(),n=[[`merge`,t({id:`HNtOdD`})],[`center`,t({id:`gfe9mz`})],[`unmerge`,t({id:`H59Tdt`})]],a=i(kn),o=r(qn),s=r(j).source!==null,c=V(null);return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{ref:c,className:`tool-select paste-options-select`,"aria-label":t({id:`HNtOdD`}),value:``,disabled:s||o.busy||o.pending!==null,onChange:e=>{let t=n.find(([t])=>t===e.currentTarget.value);t&&a(t[0])},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`zmLUNP`})}),n.map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))]}),o.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`l89DdM`})}),o.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,o.error)}),/* @__PURE__ */ G(pa,{openerRef:c})]})}var ha=[[`first-row`,{id:`xGBpPe`}],[`first-column`,{id:`LEDZLl`}],[`selection`,{id:`DnJVJ2`}],[`unfreeze`,{id:`r2PL7g`}]];function ga(){let{i18n:e,_:t}=U(),n=i(cn),a=r(We),o=r(Ht),s=r(w),c=r(N),l=c.status===`ready`&&c.request?.sheetId===s?.id,u=r(j).source!==null,d=!!(o&&o.sheetId===s?.id&&(o.rows||o.cols));return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{className:`tool-select paste-options-select`,"aria-label":t({id:`kN1kfu`}),value:``,disabled:!l||u||a.busy,onChange:e=>{let t=ha.find(([t])=>t===e.currentTarget.value);t&&n(t[0])},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:t(d?{id:`N48V6M`}:{id:`kN1kfu`})}),ha.map(([t,n])=>/* @__PURE__ */ G(`option`,{value:t,disabled:t===`unfreeze`&&!d,children:e._(n)},t))]}),a.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`0vwAro`})}),a.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,a.error)})]})}function _a(){let{_:e}=U(),t=r(je),n=r(Er),a=i(rn),o=t.result,s=o?.page;if(!s||!o||!s.matches.length)return null;let c=Math.floor((o.total-1)/100)*100,l=t.busy!==null;return/* @__PURE__ */ K(`section`,{className:`find-results`,"aria-label":e({id:`ZNslas`}),children:[/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`7ZtCCX`,values:{0:s.offset+1,1:s.offset+s.matches.length,2:o.total}})}),/* @__PURE__ */ G(`div`,{className:`find-results-scroll`,children:/* @__PURE__ */ K(`table`,{children:[/* @__PURE__ */ G(`thead`,{children:/* @__PURE__ */ K(`tr`,{children:[/* @__PURE__ */ G(`th`,{children:`#`}),/* @__PURE__ */ G(`th`,{children:/* @__PURE__ */ G(H,{id:`a1LXia`})}),/* @__PURE__ */ G(`th`,{children:/* @__PURE__ */ G(H,{id:`p_78dY`})})]})}),/* @__PURE__ */ G(`tbody`,{children:s.matches.map((t,r)=>{let i=s.offset+r,c=`${n.sheets.find(e=>e.id===t.sheetId)?.name??t.sheetId}!${fe(t)}`;return/* @__PURE__ */ K(`tr`,{"aria-selected":o.index===i,children:[/* @__PURE__ */ G(`td`,{children:i+1}),/* @__PURE__ */ G(`td`,{children:/* @__PURE__ */ G(`button`,{type:`button`,disabled:l,"aria-label":e({id:`CbUVmB`,values:{address:c,0:i+1}}),onClick:()=>void a({match:i}),children:c})}),/* @__PURE__ */ K(`td`,{children:[t.start+1,`–`,t.end]})]},i)})})]})}),/* @__PURE__ */ K(`nav`,{className:`find-actions`,"aria-label":e({id:`RMPln-`}),children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:l||s.offset===0,onClick:()=>void a({page:0}),children:/* @__PURE__ */ G(H,{id:`bAG4xT`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:l||s.offset===0,onClick:()=>void a({page:Math.max(0,s.offset-100)}),children:/* @__PURE__ */ G(H,{id:`aHKcKc`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:l||s.offset>=c,onClick:()=>void a({page:s.offset+100}),children:/* @__PURE__ */ G(H,{id:`_dqduX`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:l||s.offset>=c,onClick:()=>void a({page:c}),children:/* @__PURE__ */ G(H,{id:`viJSRT`})})]})]})}function va(){let{i18n:e,_:t}=U(),n=r(je),a=r(j).source!==null,o=r(Er),s=i(rn),c=V(null),l=V(null),u=V(null),d=z();R(()=>{let e=c.current;if(!n.open||!e)return;let t=l.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),u.current?.focus(),u.current?.select(),()=>{e.close?.(),(t?.closest(`.workbook`)?.querySelector(`[data-workbook-grid="true"]`)??t)?.focus({preventScroll:!0})}},[n.open]);let{form:f,result:p}=n,m=n.busy!==null,h=p?.current,g=o.sheets.find(e=>e.id===h?.sheetId);return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:l,type:`button`,className:`tool-button`,"aria-label":t({id:`MVxpbf`}),title:t({id:`uCjbh3`}),disabled:a||m,onClick:()=>void s({open:`find`}),children:`⌕`}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:c,className:`find-replace-dialog`,"aria-labelledby":`${d}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),s(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${d}-title`,children:/* @__PURE__ */ G(H,{id:`MVxpbf`})}),/* @__PURE__ */ G(`div`,{className:`find-tabs`,role:`tablist`,"aria-label":t({id:`-Htako`}),onKeyDown:e=>{if(m||![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault(),e.stopPropagation();let t=e.key===`Home`?`find`:e.key===`End`||n.tab===`find`?`replace`:`find`;s({open:t}),e.currentTarget.querySelector(`[data-find-tab="${t}"]`)?.focus()},children:[`find`,`replace`].map(e=>/* @__PURE__ */ G(`button`,{type:`button`,role:`tab`,id:`${d}-${e}`,"data-find-tab":e,"aria-controls":`${d}-panel`,"aria-selected":n.tab===e,tabIndex:n.tab===e?0:-1,disabled:m,onClick:()=>void s({open:e}),children:t(e===`find`?{id:`KujtjC`}:{id:`fqSfXY`})},e))}),/* @__PURE__ */ K(`form`,{id:`${d}-panel`,role:`tabpanel`,"aria-labelledby":`${d}-${n.tab}`,onSubmit:e=>{e.preventDefault(),s(`next`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${d}-needle`,children:/* @__PURE__ */ G(H,{id:`YcYwO9`})}),/* @__PURE__ */ G(`input`,{ref:u,id:`${d}-needle`,value:f.needle,disabled:n.busy===`replace`,autoComplete:`off`,spellCheck:!1,onChange:e=>void s({form:{needle:e.currentTarget.value}})}),n.tab===`replace`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${d}-replacement`,children:/* @__PURE__ */ G(H,{id:`7Vdedt`})}),/* @__PURE__ */ G(`input`,{id:`${d}-replacement`,value:f.replacement,disabled:n.busy===`replace`,autoComplete:`off`,spellCheck:!1,onChange:e=>void s({form:{replacement:e.currentTarget.value}})})]}),/* @__PURE__ */ K(`div`,{className:`find-options`,children:[/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`C0wXVT`}),/* @__PURE__ */ K(`select`,{value:f.scope,disabled:m,onChange:e=>void s({form:{scope:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`sheet`,children:/* @__PURE__ */ G(H,{id:`xCOeHz`})}),/* @__PURE__ */ G(`option`,{value:`workbook`,children:/* @__PURE__ */ G(H,{id:`GimQzY`})}),/* @__PURE__ */ G(`option`,{value:`current-selection`,children:/* @__PURE__ */ G(H,{id:`giznB_`})})]})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(H,{id:`iFGXi_`}),/* @__PURE__ */ K(`select`,{value:f.lookIn,disabled:m,onChange:e=>void s({form:{lookIn:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`formulas`,children:/* @__PURE__ */ G(H,{id:`KX3yaT`})}),/* @__PURE__ */ G(`option`,{value:`values`,children:/* @__PURE__ */ G(H,{id:`AInHa-`})})]})]})]}),/* @__PURE__ */ K(`div`,{className:`find-checks`,children:[/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:f.wildcards??!1,disabled:m,onChange:e=>void s({form:{wildcards:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`AcHaNt`})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:f.caseSensitive,disabled:m,onChange:e=>void s({form:{caseSensitive:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`-8PP0T`})]}),/* @__PURE__ */ K(`label`,{children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:f.wholeCell,disabled:m,onChange:e=>void s({form:{wholeCell:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`RQ7sH8`})]})]}),h&&/* @__PURE__ */ G(`p`,{className:`find-match`,role:`status`,children:/* @__PURE__ */ G(H,{id:`9coJct`,values:{0:p.index+1,1:p.total,2:g?.name,3:fe(h)}})}),n.notice&&/* @__PURE__ */ G(`p`,{role:`status`,children:q(e,n.notice)}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`find-error`,children:q(e,n.error)}),m&&/* @__PURE__ */ G(`p`,{role:`status`,children:n.busy===`find`?t({id:`5QVBgA`}):t({id:`H2zn3t`})}),/* @__PURE__ */ K(`div`,{className:`find-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:m||!h,onClick:()=>void s(`previous`),children:/* @__PURE__ */ G(H,{id:`DHhJ7s`})}),/* @__PURE__ */ G(`button`,{type:`submit`,className:`find-primary`,disabled:m||!f.needle,children:/* @__PURE__ */ G(H,{id:`WdgdFu`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:m||!f.needle,onClick:()=>void s(`find-all`),children:/* @__PURE__ */ G(H,{id:`itcYmR`})}),n.tab===`replace`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:m||!h,onClick:()=>void s(`replace-current`),children:/* @__PURE__ */ G(H,{id:`OjbUGq`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:m||!f.needle,onClick:()=>void s(`replace-all`),children:/* @__PURE__ */ G(H,{id:`ygUw8s`})})]}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy===`replace`,onClick:()=>void s(`close`),children:/* @__PURE__ */ G(H,{id:`yz7wBu`})})]})]}),/* @__PURE__ */ G(_a,{}),/* @__PURE__ */ K(`p`,{className:`find-hint`,children:[f.wildcards?t({id:`kcnNJt`}):t({id:`_44cFv`}),/* @__PURE__ */ G(H,{id:`_4nr6k`})]}),f.lookIn===`values`&&n.tab===`replace`&&/* @__PURE__ */ G(`p`,{className:`find-hint`,children:/* @__PURE__ */ G(H,{id:`Dhw0Mo`})})]})]})}function ya(){let{i18n:e,_:t}=U(),n=r(et),a=r($e),o=r(Ze),s=r(Qe),c=r(tt),l=i(ln),u=V(null),d=V(null),f=V(null),p=z();return R(()=>{let e=u.current;if(!n||!e)return;let t=f.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),d.current?.focus(),d.current?.select(),()=>{e.close?.(),(t?.closest(`.workbook`)?.querySelector(`[data-workbook-grid="true"]`)??t)?.focus({preventScroll:!0})}},[n]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:f,type:`button`,className:`tool-button`,"aria-label":t({id:`LmLruJ`}),title:t({id:`cGGtIm`}),disabled:!c,onClick:()=>l(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`↗`})}),n&&/* @__PURE__ */ K(`dialog`,{ref:u,className:`go-to-dialog`,"aria-labelledby":`${p}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),l(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${p}-title`,children:/* @__PURE__ */ G(H,{id:`LmLruJ`})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),l(`submit`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-reference`,children:/* @__PURE__ */ G(H,{id:`N2C89m`})}),/* @__PURE__ */ G(`input`,{ref:d,id:`${p}-reference`,value:a,maxLength:1024,autoComplete:`off`,spellCheck:!1,disabled:!c,"aria-invalid":!!o,"aria-describedby":`${p}-hint${o?` ${p}-error`:``}`,onKeyDown:e=>{e.key===`Enter`&&(e.nativeEvent.isComposing||e.keyCode===229)&&e.preventDefault()},onChange:e=>l({input:e.currentTarget.value})}),/* @__PURE__ */ G(`p`,{id:`${p}-hint`,className:`go-to-hint`,children:/* @__PURE__ */ G(H,{id:`iqC2n0`})}),/* @__PURE__ */ K(`section`,{"aria-labelledby":`${p}-recent`,children:[/* @__PURE__ */ G(`h3`,{id:`${p}-recent`,children:/* @__PURE__ */ G(H,{id:`mIFfLs`})}),s.length?/* @__PURE__ */ G(`ul`,{className:`go-to-recent`,children:s.map(e=>/* @__PURE__ */ G(`li`,{children:/* @__PURE__ */ G(`button`,{type:`button`,disabled:!c,onClick:()=>l({recent:e}),children:e})},e))}):/* @__PURE__ */ G(`p`,{className:`go-to-hint`,children:/* @__PURE__ */ G(H,{id:`-FE29b`})})]}),o&&/* @__PURE__ */ G(`p`,{id:`${p}-error`,className:`go-to-error`,role:`alert`,children:q(e,o)}),!c&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`e9OR_8`})}),/* @__PURE__ */ K(`div`,{className:`go-to-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>l(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,className:`go-to-primary`,disabled:!c||!a.trim(),children:/* @__PURE__ */ G(H,{id:`4pSxwB`})})]})]})]})]})}function ba(){let{i18n:e,_:t}=U(),n=r(rt),a=r(nt),o=i(un),s=V(null),c=V(null),l=V(null),u=z();return R(()=>{let e=s.current;if(!n.open||!e)return;let t=c.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),l.current?.focus(),()=>{e.close?.(),(t?.closest(`.workbook`)?.querySelector(`[data-workbook-grid="true"]`)??t)?.focus({preventScroll:!0})}},[n.open]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:c,type:`button`,className:`tool-button`,"aria-label":t({id:`7iutXp`}),title:t({id:`aHtZRs`}),disabled:!a,onClick:()=>void o(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`⌖`})}),n.notice&&/* @__PURE__ */ G(`span`,{role:`status`,className:`visually-hidden`,children:q(e,n.notice)}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`go-to-dialog`,"aria-labelledby":`${u}-title`,"aria-busy":n.busy,onKeyDown:X,onCancel:e=>{e.preventDefault(),o(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${u}-title`,children:/* @__PURE__ */ G(H,{id:`7iutXp`})}),/* @__PURE__ */ G(`p`,{className:`go-to-hint`,children:q(e,n.scope)}),/* @__PURE__ */ G(`p`,{className:`go-to-hint`,children:/* @__PURE__ */ G(H,{id:`X74D7p`})}),/* @__PURE__ */ K(`div`,{className:`go-to-special-options`,role:`group`,"aria-label":t({id:`6Vd6ar`}),children:[/* @__PURE__ */ G(`button`,{ref:l,disabled:!a||!n.continuous,onClick:()=>void o(`constants`),children:/* @__PURE__ */ G(H,{id:`An12YD`})}),/* @__PURE__ */ G(`button`,{disabled:!a||!n.continuous,onClick:()=>void o(`formulas`),children:/* @__PURE__ */ G(H,{id:`Su_lDy`})}),/* @__PURE__ */ G(`button`,{disabled:!a||!n.continuous,onClick:()=>void o(`blanks`),children:/* @__PURE__ */ G(H,{id:`IBUUvF`})})]}),!n.continuous&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`go-to-error`,children:/* @__PURE__ */ G(H,{id:`Ky8-OT`})}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`LDLYwZ`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`go-to-error`,children:q(e,n.error)}),/* @__PURE__ */ G(`div`,{className:`go-to-actions`,children:/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>void o(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})})})]})]})}var xa=[[`sum`,{id:`USf30b`}],[`average`,{id:`1FhUEz`}],[`count`,{id:`87mu_4`}]];function Sa(){let{i18n:e,_:t}=U(),n=i(En),a=r(Ut),o=r(Wt);return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button`,"aria-label":t({id:`quK02K`}),title:t({id:`Znyeto`}),disabled:!a,onClick:()=>void n(`sum`),children:`Σ`}),/* @__PURE__ */ K(`select`,{className:`tool-select paste-options-select`,"aria-label":t({id:`OcjuW_`}),value:``,disabled:!a,onChange:e=>{let t=xa.find(([t])=>t===e.currentTarget.value);t&&n(t[0])},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`OcjuW_`})}),xa.map(([t,n])=>/* @__PURE__ */ G(`option`,{value:t,children:e._(n)},t))]}),o.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`SGf-n6`})}),o.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,o.error)})]})}function Ca(){let{i18n:e,_:t}=U(),n=r(Fe),a=i(sn),o=V(null),s=z(),c=e.locale.toLowerCase().startsWith(`zh`);if(B(()=>{let e=o.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),(e.querySelector(`input`)??e.querySelector(`button[type="submit"]`))?.focus(),()=>{let t=e.returnValue===`draft`;e.close?.(),t||document.querySelector(`[data-insert-function-trigger]`)?.focus({preventScroll:!0})}},[n.open]),B(()=>{n.errorField!==null&&o.current?.querySelector(`[data-formula-argument-index="${n.errorField}"]`)?.focus()},[n.error,n.errorField]),!n.open||!n.spec)return null;let l=n.fields,u=n.spec.repeat?.start??n.spec.args.findIndex(e=>e.repeats),d=l.filter(e=>e.groupIndex===null&&(u<0||e.prototypeIndex<u)),f=l.filter(e=>e.groupIndex===null&&u>=0&&e.prototypeIndex>=u),p=e=>{let t=e.groupIndex===null?e.arg.name:`${e.arg.name} (${e.groupIndex+1})`,r=c&&e.arg.descriptionZh?e.arg.descriptionZh:e.arg.description;return/* @__PURE__ */ K(`div`,{className:`formula-argument-field`,"data-argument-name":e.arg.name,children:[/* @__PURE__ */ K(`label`,{htmlFor:`${s}-field-${e.index}`,children:[/* @__PURE__ */ G(`code`,{id:`${s}-field-name-${e.index}`,children:t}),/* @__PURE__ */ G(`span`,{children:e.arg.optional?/* @__PURE__ */ G(H,{id:`LLAa_9`}):/* @__PURE__ */ G(H,{id:`TMLAx2`})})]}),/* @__PURE__ */ G(`input`,{id:`${s}-field-${e.index}`,"data-formula-argument-index":e.index,value:e.value,disabled:n.busy,autoComplete:`off`,spellCheck:!1,"aria-labelledby":`${s}-field-name-${e.index}`,"aria-required":!e.arg.optional,"aria-invalid":n.errorField===e.index,"aria-describedby":`${s}-expression-hint${r?` ${s}-description-${e.index}`:``}`,onChange:t=>a({field:e.index,value:t.currentTarget.value})}),r&&/* @__PURE__ */ G(`p`,{id:`${s}-description-${e.index}`,children:r})]},e.index)};return/* @__PURE__ */ K(`dialog`,{ref:o,className:`formula-arguments-panel`,"aria-labelledby":`${s}-title`,"aria-busy":n.busy,onCancel:e=>{e.preventDefault(),a(`close`)},onKeyDown:e=>{e.key===`Escape`&&!e.nativeEvent.isComposing?(e.preventDefault(),e.stopPropagation(),a(`close`)):X(e)},children:[/* @__PURE__ */ K(`h2`,{id:`${s}-title`,children:[/* @__PURE__ */ G(H,{id:`dIbM9L`}),` · `,/* @__PURE__ */ G(`code`,{children:n.spec.name})]}),/* @__PURE__ */ G(Xr,{spec:n.spec,compact:!0}),/* @__PURE__ */ G(`p`,{id:`${s}-expression-hint`,className:`formula-arguments-hint`,children:/* @__PURE__ */ G(H,{id:`a96JJ9`})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),a(`confirm`)&&o.current&&(o.current.returnValue=`draft`)},children:[d.map(p),n.groups.map(e=>/* @__PURE__ */ K(`fieldset`,{className:`formula-argument-group`,children:[/* @__PURE__ */ G(`legend`,{children:/* @__PURE__ */ G(H,{id:`2ooIbd`,values:{0:e.index+1}})}),e.fields.map(p),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy||n.groupCount<=n.minGroups,onClick:()=>a({removeGroup:e.index}),children:/* @__PURE__ */ G(H,{id:`qrXszS`})})]},e.index)),n.spec.args.some(e=>e.repeats)&&/* @__PURE__ */ G(`button`,{type:`button`,className:`formula-arguments-add`,disabled:n.busy,onClick:()=>a(`add-group`),children:/* @__PURE__ */ G(H,{id:`_z1FM_`})}),f.map(p),!n.spec.args.length&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`mPPkxU`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),/* @__PURE__ */ K(`div`,{className:`formula-arguments-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>a(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy,title:t({id:`UTPdoU`}),children:/* @__PURE__ */ G(H,{id:`A4NYmf`})})]}),/* @__PURE__ */ G(`p`,{className:`formula-arguments-hint`,children:/* @__PURE__ */ G(H,{id:`dWfvwH`})})]})]})}function wa(){let{i18n:e,_:t}=U(),n=r(st),a=i(fn),o=i(sn),s=V(null),c=V(null),l=z();return B(()=>{let e=c.current,t=s.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`input`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[n.open]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:s,type:`button`,className:`tool-button`,"data-insert-function-trigger":!0,"aria-label":t({id:`FIxh24`}),title:t({id:`FIxh24`}),disabled:!n.available,onClick:()=>a(`open`),children:`ƒx`}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:c,className:`insert-function-panel`,"aria-labelledby":`${l}-title`,onKeyDown:e=>{e.key===`Escape`&&!e.nativeEvent.isComposing?(e.preventDefault(),e.stopPropagation(),a(`close`)):X(e)},onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${l}-title`,children:/* @__PURE__ */ G(H,{id:`FIxh24`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`Eu18n4`,values:{0:n.total}})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),a(`insert`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-search`,children:/* @__PURE__ */ G(H,{id:`Y02qkr`})}),/* @__PURE__ */ G(`input`,{id:`${l}-search`,type:`search`,autoComplete:`off`,value:n.query,placeholder:t({id:`cWjIjS`}),onChange:e=>a({query:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-category`,children:/* @__PURE__ */ G(H,{id:`K7tIrx`})}),/* @__PURE__ */ K(`select`,{id:`${l}-category`,value:n.category,onChange:e=>a({category:e.currentTarget.value}),children:[/* @__PURE__ */ G(`option`,{value:``,children:/* @__PURE__ */ G(H,{id:`xIfKEA`})}),n.categories.map(t=>/* @__PURE__ */ G(`option`,{value:t,children:q(e,t)},t))]}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-function`,children:/* @__PURE__ */ G(H,{id:`YMZBxa`})}),/* @__PURE__ */ G(`select`,{id:`${l}-function`,size:7,value:n.selected?.name??``,disabled:!n.functions.length,onChange:e=>a({name:e.currentTarget.value}),children:n.functions.map(e=>/* @__PURE__ */ G(`option`,{children:e.name},e.name))}),!n.functions.length&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`H4W5m7`})}),n.selected&&/* @__PURE__ */ G(`div`,{className:`insert-function-description`,"aria-live":`polite`,children:/* @__PURE__ */ G(Xr,{spec:n.selected})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),/* @__PURE__ */ K(`div`,{className:`insert-function-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,onClick:()=>a(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:!n.selected||n.selected.signatureAvailable===!1,onClick:()=>{n.selected&&o({open:n.selected.name})&&a(`close`)},children:/* @__PURE__ */ G(H,{id:`Yq71j6`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:!n.selected,children:/* @__PURE__ */ G(H,{id:`nFrAsL`})})]})]})]}),/* @__PURE__ */ G(Ca,{})]})}function Ta(){let{i18n:e,_:t}=U(),n=i(qt),a=r(O),o=r(k),s=r(sr),c=i(xr),l=r(He);return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{className:`tool-select paste-options-select`,"aria-label":t({id:`vi233w`}),value:``,disabled:!a,onChange:e=>{let t=e.currentTarget.value;(t===`sheet`||t===`workbook`)&&n(t)},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0,children:/* @__PURE__ */ G(H,{id:`vi233w`})}),/* @__PURE__ */ G(`option`,{value:`sheet`,children:/* @__PURE__ */ G(H,{id:`bysG12`})}),/* @__PURE__ */ G(`option`,{value:`workbook`,children:/* @__PURE__ */ G(H,{id:`QEhj9Y`})})]}),/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button`,"aria-label":t({id:`b0rV_w`}),title:t({id:`b0rV_w`}),"aria-pressed":s,disabled:!l,onClick:()=>c(),children:`=`}),o.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`zKfJY_`})}),!o.busy&&o.message&&/* @__PURE__ */ G(`span`,{role:`status`,children:q(e,o.message)}),o.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,o.error)})]})}function Ea(){let{i18n:e,_:t}=U(),n=r(fr),a=r(dr),o=i(Nn),s=V(null),c=V(null),l=z();R(()=>{let e=s.current;if(!n.open||!e)return;let t=c.current;return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`[data-spill-close]`)?.focus(),()=>{e.close?.(),(t?.closest(`.workbook`)?.querySelector(`[data-workbook-grid="true"]`)??t)?.focus({preventScroll:!0})}},[n.open]);let u=n.inspection,d=a&&!n.stale;return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:c,type:`button`,className:`tool-button`,"aria-label":t({id:`eVpqq3`}),title:t({id:`eVpqq3`}),disabled:!a,onClick:()=>void o(`open`),children:`#`}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`go-to-dialog`,"aria-labelledby":`${l}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),o(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${l}-title`,children:/* @__PURE__ */ G(H,{id:`eVpqq3`})}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`nVyzS0`})}),u?.kind===`none`&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`SUKJAe`})}),u&&u.kind!==`none`&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`--4TXR`,values:{0:fe(u.anchor)}})}),u?.kind===`active`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`6EnLCz`,values:{0:Gt(u.range)}})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`WFjFmc`,values:{0:u.range.rowEnd-u.range.rowStart+1,1:u.range.colEnd-u.range.colStart+1}})})]}),u?.kind===`blocked`&&/* @__PURE__ */ G(W,{children:/* @__PURE__ */ G(`p`,{role:`status`,children:u.blocker?t({id:`45DEY9`,values:{0:fe(u.blocker)}}):t({id:`z7hrVQ`})})}),u&&u.kind!==`none`&&/* @__PURE__ */ K(`div`,{className:`go-to-actions`,style:{justifyContent:`flex-start`,flexWrap:`wrap`,marginBottom:12},children:[u.kind===`active`&&/* @__PURE__ */ G(`button`,{type:`button`,disabled:!d,onClick:()=>void o(`range`),children:/* @__PURE__ */ G(H,{id:`WWtkCK`})}),u.kind===`blocked`&&u.blocker&&/* @__PURE__ */ G(`button`,{type:`button`,disabled:!d,onClick:()=>void o(`blocker`),children:/* @__PURE__ */ G(H,{id:`cvJgQp`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:!d,onClick:()=>void o(`anchor`),children:/* @__PURE__ */ G(H,{id:`BjAJOY`})})]}),/* @__PURE__ */ G(`p`,{className:`go-to-hint`,children:/* @__PURE__ */ G(H,{id:`gXsSRS`})}),n.stale&&/* @__PURE__ */ G(`p`,{role:`alert`,children:/* @__PURE__ */ G(H,{id:`ZdDnyu`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`go-to-error`,children:q(e,n.error)}),/* @__PURE__ */ K(`div`,{className:`go-to-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:!a,onClick:()=>void o(`refresh`),children:/* @__PURE__ */ G(H,{id:`lCF0wC`})}),/* @__PURE__ */ G(`button`,{type:`button`,"data-spill-close":!0,onClick:()=>void o(`close`),children:/* @__PURE__ */ G(H,{id:`yz7wBu`})})]})]})]})}function Da(){let{_:e}=U(),t=r(Tt),n=i(vn),a=z();return/* @__PURE__ */ K(`section`,{"aria-labelledby":`${a}-title`,children:[/* @__PURE__ */ G(`div`,{className:`named-range-heading`,children:/* @__PURE__ */ G(`h3`,{id:`${a}-title`,children:/* @__PURE__ */ G(H,{id:`8-4V8D`})})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`jgsMfy`})}),/* @__PURE__ */ K(`div`,{className:`named-range-list`,role:`group`,"aria-label":e({id:`LeMEjl`}),children:[!t.tables&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`BhOzmp`})}),t.tables?.length===0&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`-EEkxe`})}),t.tables?.map(r=>/* @__PURE__ */ K(`button`,{type:`button`,disabled:t.busy||!t.canLocateTable,"aria-label":e({id:`PD_gZm`,values:{0:r.name}}),onClick:e=>{let t=e.currentTarget.closest(`.workbook`);n({locateTable:r.name}).then(e=>{e&&requestAnimationFrame(()=>t?.querySelector(`[data-workbook-grid="true"]`)?.focus({preventScroll:!0}))})},children:[/* @__PURE__ */ G(`strong`,{children:r.name}),/* @__PURE__ */ K(`span`,{children:[r.sheet,`!`,r.range]})]},r.name))]})]})}function Oa(){let{i18n:e,_:t}=U(),n=r(Tt),a=r(Dt),o=r(Er).sheets,s=r(w),c=r(N),l=r(j).source!==null,u=i(vn),d=V(null),f=V(null),p=z(),m=r(Et),h=c.status===`ready`&&c.result?.kind===`visible-window`&&c.result.sheetId===s?.id&&c.result.namedRanges!==void 0;return B(()=>{let e=f.current,t=d.current;if(m&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`input`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[m]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:d,type:`button`,className:`tool-button`,"aria-label":t({id:`AfGIu2`}),title:t({id:`AfGIu2`}),disabled:!h||l||n.busy,onClick:()=>void u(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`≔`})}),m&&/* @__PURE__ */ K(`dialog`,{ref:f,className:`named-range-panel`,"aria-labelledby":`${p}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),u(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${p}-title`,children:/* @__PURE__ */ G(H,{id:`AfGIu2`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`eobJUT`})}),/* @__PURE__ */ K(`div`,{className:`named-range-list`,role:`group`,"aria-label":t({id:`rerNas`}),children:[a.length===0&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`J0WP18`})}),a.map(e=>{let r=e.target,i=o.find(e=>e.index===r?.sheet),a=r&&i?`${i.name}!${Gt({rowStart:r.range[0],colStart:r.range[1],rowEnd:r.range[2],colEnd:r.range[3]})}`:`#REF!`;return/* @__PURE__ */ K(`button`,{type:`button`,disabled:n.busy,"aria-label":t({id:`N6j2JH`,values:{0:e.name}}),"aria-pressed":n.editingName===e.name,onClick:()=>void u({edit:e.name}),children:[/* @__PURE__ */ G(`strong`,{children:e.name}),/* @__PURE__ */ G(`span`,{children:a})]},e.name)})]}),/* @__PURE__ */ G(Da,{}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),u(`save`)},children:[/* @__PURE__ */ K(`div`,{className:`named-range-heading`,children:[/* @__PURE__ */ G(`h3`,{children:n.editingName?t({id:`5UohOl`}):t({id:`U78DYJ`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void u(`new`),children:/* @__PURE__ */ G(H,{id:`6RS7qT`})})]}),/* @__PURE__ */ K(`fieldset`,{disabled:n.busy,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-name`,children:/* @__PURE__ */ G(H,{id:`6YtxFj`})}),/* @__PURE__ */ G(`input`,{id:`${p}-name`,value:n.name,required:!0,autoComplete:`off`,onChange:e=>void u({name:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-sheet`,children:/* @__PURE__ */ G(H,{id:`wrsYRH`})}),/* @__PURE__ */ G(`select`,{id:`${p}-sheet`,value:n.targetSheetId,onChange:e=>void u({targetSheetId:e.currentTarget.value}),children:o.map(e=>/* @__PURE__ */ G(`option`,{value:e.id,children:e.name},e.id))}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-range`,children:/* @__PURE__ */ G(H,{id:`XYGpzK`})}),/* @__PURE__ */ G(`input`,{id:`${p}-range`,value:n.range,required:!0,placeholder:`A1:A100`,"aria-describedby":`${p}-range-hint`,onChange:e=>void u({range:e.currentTarget.value})})]}),/* @__PURE__ */ G(`p`,{id:`${p}-range-hint`,children:n.range===`#REF!`?t({id:`xOJFdh`}):t({id:`_z-cgv`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`-yOx8u`})}),/* @__PURE__ */ K(`div`,{className:`named-range-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy||!n.editingName,onClick:()=>void u(`delete`),children:/* @__PURE__ */ G(H,{id:`g0yqtr`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void u(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy,children:n.editingName?t({id:`y3aU20`}):t({id:`8rySLA`})})]})]})]})]})}function ka(){let{_:e}=U(),t=[[`none`,e({id:`EdQY6l`})],[`sum`,e({id:`AxQiPW`})],[`average`,e({id:`3uQmjD`})],[`count`,e({id:`wBMjJ2`})],[`countNums`,e({id:`Qotkzv`})],[`max`,e({id:`mOFgdC`})],[`min`,e({id:`CW11B-`})],[`stdDev`,e({id:`DdiXJt`})],[`var`,e({id:`vXTvG8`})]],n=r(Pt),a=i(xn),o=z(),s=n.currentTable;return s?/* @__PURE__ */ K(`section`,{className:`table-panel-totals`,"aria-labelledby":`${o}-title`,children:[/* @__PURE__ */ K(`div`,{className:`table-panel-heading`,children:[/* @__PURE__ */ G(`h3`,{id:`${o}-title`,children:/* @__PURE__ */ G(H,{id:`RmbPoE`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void a(s.hasTotals?`hide-totals`:`show-totals`),children:s.hasTotals?e({id:`VCRyWf`}):e({id:`GyNlUh`})})]}),/* @__PURE__ */ K(`p`,{children:[s.hasTotals?e({id:`BFEFZF`}):e({id:`vaov4x`}),` `,/* @__PURE__ */ G(H,{id:`e42Ehe`})]}),s.hasTotals&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`fieldset`,{disabled:n.busy,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${o}-column`,children:/* @__PURE__ */ G(H,{id:`iR5h1B`})}),/* @__PURE__ */ G(`select`,{id:`${o}-column`,value:n.totalColumn,onChange:e=>void a({totalColumn:e.currentTarget.value}),children:s.columns.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:e},e))}),/* @__PURE__ */ G(`label`,{htmlFor:`${o}-function`,children:/* @__PURE__ */ G(H,{id:`1CyzJZ`})}),/* @__PURE__ */ K(`select`,{id:`${o}-function`,value:n.totalFunction,onChange:e=>{let n=t.find(([t])=>t===e.currentTarget.value);n&&a({totalFunction:n[0]})},children:[n.totalFunction===`custom`&&/* @__PURE__ */ G(`option`,{value:`custom`,disabled:!0,children:/* @__PURE__ */ G(H,{id:`eWzFsQ`})}),t.map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))]})]}),/* @__PURE__ */ G(`div`,{className:`table-panel-actions`,children:/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy||n.totalFunction===`custom`,onClick:()=>void a(`save-total`),children:/* @__PURE__ */ G(H,{id:`ZGLMJR`})})})]})]}):null}function Aa(){let e=r(Pt),t=i(xn),n=z(),a=e.currentTable;return a?/* @__PURE__ */ K(`section`,{className:`table-panel-columns`,"aria-labelledby":`${n}-title`,children:[/* @__PURE__ */ G(`h3`,{id:`${n}-title`,children:/* @__PURE__ */ G(H,{id:`m2w_cf`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`yXa-3j`})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),t(`save-column`)},children:[/* @__PURE__ */ K(`fieldset`,{disabled:e.busy,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${n}-column`,children:/* @__PURE__ */ G(H,{id:`WtgDbl`})}),/* @__PURE__ */ G(`select`,{id:`${n}-column`,value:e.column,onChange:e=>void t({column:e.currentTarget.value}),children:a.columns.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:e},e))}),/* @__PURE__ */ G(`label`,{htmlFor:`${n}-name`,children:/* @__PURE__ */ G(H,{id:`MnhpMi`})}),/* @__PURE__ */ G(`input`,{id:`${n}-name`,value:e.newColumnName,required:!0,autoComplete:`off`,onChange:e=>void t({newColumnName:e.currentTarget.value})})]}),/* @__PURE__ */ G(`div`,{className:`table-panel-actions`,children:/* @__PURE__ */ G(`button`,{type:`submit`,disabled:e.busy,children:/* @__PURE__ */ G(H,{id:`A4XwbS`})})})]})]}):null}function ja(){let e=r(Pt),t=i(xn),n=z();if(!e.currentTable)return null;let a=e.currentTable.style??f;return/* @__PURE__ */ K(`section`,{className:`table-panel-appearance`,"aria-labelledby":`${n}-title`,children:[/* @__PURE__ */ G(`h3`,{id:`${n}-title`,children:/* @__PURE__ */ G(H,{id:`eqSg9V`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`mh5Ywn`})}),/* @__PURE__ */ G(`p`,{id:`${n}-headers-hint`,children:/* @__PURE__ */ G(H,{id:`167oUv`})}),/* @__PURE__ */ K(`fieldset`,{disabled:e.busy,children:[/* @__PURE__ */ K(`label`,{className:`table-style-option`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:e.currentTable.hasHeaders,"aria-describedby":`${n}-headers-hint`,onChange:e=>void t(e.currentTarget.checked?`show-headers`:`hide-headers`)}),/* @__PURE__ */ G(H,{id:`Gi0VDy`})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${n}-preset`,children:/* @__PURE__ */ G(H,{id:`vxZiRd`})}),/* @__PURE__ */ K(`select`,{id:`${n}-preset`,value:a.preset,onChange:e=>{let n=e.currentTarget.value,r=h.find(e=>e===n);r&&t({style:{preset:r}})},children:[/* @__PURE__ */ G(`option`,{value:`none`,children:/* @__PURE__ */ G(H,{id:`EdQY6l`})}),/* @__PURE__ */ G(`option`,{value:`blue`,children:/* @__PURE__ */ G(H,{id:`Zn5crm`})}),/* @__PURE__ */ G(`option`,{value:`green`,children:/* @__PURE__ */ G(H,{id:`VmkjGB`})}),/* @__PURE__ */ G(`option`,{value:`gray`,children:/* @__PURE__ */ G(H,{id:`qS5__Q`})})]}),/* @__PURE__ */ K(`label`,{className:`table-style-option`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:a.bandedRows,disabled:a.preset===`none`,onChange:e=>void t({style:{bandedRows:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`1kXvRz`})]}),/* @__PURE__ */ K(`label`,{className:`table-style-option`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:a.bandedColumns??!1,disabled:a.preset===`none`,onChange:e=>void t({style:{bandedColumns:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`b_kzkz`})]}),/* @__PURE__ */ K(`label`,{className:`table-style-option`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:a.firstColumn,disabled:a.preset===`none`,onChange:e=>void t({style:{firstColumn:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`lxtrds`})]}),/* @__PURE__ */ K(`label`,{className:`table-style-option`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:a.lastColumn??!1,disabled:a.preset===`none`,onChange:e=>void t({style:{lastColumn:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`w5m-ye`})]})]})]})}function Ma(){let{i18n:e,_:t}=U(),n=r(Pt),a=r(Mt),o=i(xn),s=r(j).source!==null,c=V(null),l=V(null),u=V(null),d=z();return B(()=>{let e=l.current,t=c.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`input`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[n.open]),B(()=>{let e=l.current,t=u.current;if(n.busy||!n.open||!e||!t||!e.contains(t))return;let r=document.activeElement;(r===document.body||r===e)&&!t.matches(`:disabled`)&&t.focus({preventScroll:!0})},[n.busy,n.open]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:c,className:`tool-button`,type:`button`,"aria-label":t({id:`8-4V8D`}),title:t({id:`8-4V8D`}),disabled:!n.ready||s||n.busy,onClick:()=>void o(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`▤`})}),!n.open&&a.error&&/* @__PURE__ */ G(`span`,{role:`alert`,children:q(e,a.error)}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:l,className:`table-panel`,"aria-labelledby":`${d}-title`,onFocusCapture:e=>{e.target!==e.currentTarget&&(u.current=e.target)},onKeyDown:X,onCancel:e=>{e.preventDefault(),o(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${d}-title`,children:/* @__PURE__ */ G(H,{id:`8-4V8D`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`hTB_7t`})}),/* @__PURE__ */ K(`div`,{className:`table-panel-list`,role:`group`,"aria-label":t({id:`woFAQS`}),children:[n.tables.length===0&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`l1MCBK`})}),n.tables.map(e=>/* @__PURE__ */ K(`button`,{type:`button`,disabled:n.busy,"aria-label":t({id:`2yAzV6`,values:{0:e.name}}),"aria-pressed":n.editingName===e.name,onClick:()=>void o({edit:e.name}),children:[/* @__PURE__ */ G(`strong`,{children:e.name}),/* @__PURE__ */ G(`span`,{children:e.range})]},e.name))]}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),o(`save`)},children:[/* @__PURE__ */ K(`div`,{className:`table-panel-heading`,children:[/* @__PURE__ */ G(`h3`,{children:n.editingName?t({id:`F3O9gl`}):t({id:`wNbipR`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void o(`new`),children:/* @__PURE__ */ G(H,{id:`mujEVU`})})]}),/* @__PURE__ */ K(`fieldset`,{disabled:n.busy,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${d}-name`,children:/* @__PURE__ */ G(H,{id:`V-pw1j`})}),/* @__PURE__ */ G(`input`,{id:`${d}-name`,value:n.name,autoComplete:`off`,placeholder:t({id:`4bZ86B`}),required:!!n.editingName,onChange:e=>void o({name:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${d}-range`,children:/* @__PURE__ */ G(H,{id:`BJid06`})}),/* @__PURE__ */ G(`input`,{id:`${d}-range`,value:n.range,required:!0,"aria-describedby":`${d}-hint`,placeholder:`A1:C10`,onChange:e=>void o({range:e.currentTarget.value})})]}),/* @__PURE__ */ G(`p`,{id:`${d}-hint`,children:n.editingName?t({id:`usbGDQ`}):t({id:`ubIKLk`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`YzBiZq`})}),/* @__PURE__ */ K(`div`,{className:`table-panel-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy||!n.editingName,onClick:()=>void o(`convert`),children:/* @__PURE__ */ G(H,{id:`V5tMvA`})}),n.editingName&&/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void o(`append-row`),children:/* @__PURE__ */ G(H,{id:`ne8B8T`})}),n.editingName&&/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void o(`resize`),children:/* @__PURE__ */ G(H,{id:`00iwhf`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void o(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy,children:n.editingName?t({id:`4cTW4f`}):t({id:`wNbipR`})})]})]}),/* @__PURE__ */ G(ja,{}),/* @__PURE__ */ G(Aa,{}),/* @__PURE__ */ G(ka,{})]})]})}function Na({idPrefix:e,slot:t}){let{_:n}=U(),a=r(mt),o=i(mn),s=a.rule;if(s.kind!==`color-scale`&&s.kind!==`data-bar`&&s.kind!==`icon-set`)return null;let c=s[t],l={minThreshold:[n({id:`cD_FG_`}),n({id:`YRSvYF`})],midThreshold:[n({id:`kyMIqv`}),n({id:`ayCqyB`})],maxThreshold:[n({id:`7wqKgX`}),n({id:`_LiheW`})],lowerThreshold:[n({id:`4MYiOO`}),n({id:`3oiK7_`})],upperThreshold:[n({id:`Z54TLH`}),n({id:`_d9R2O`})]},u=`${e}-${t}-type`,d=`${e}-${t}-value`,f=c&&`value`in c;function p(e){let n=e===`auto`?void 0:e===`min`||e===`max`?{type:e}:{type:e,value:e===`formula`?`=0`:t===`upperThreshold`?`67`:t===`midThreshold`?`50`:t===`lowerThreshold`?`33`:`0`};o({type:`draft`,rule:{[t]:n}})}return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:u,children:l[t][0]}),/* @__PURE__ */ K(`select`,{id:u,value:c?.type??`auto`,onChange:e=>p(e.currentTarget.value),children:[/* @__PURE__ */ G(`option`,{value:`auto`,children:/* @__PURE__ */ G(H,{id:`Dnn2XG`})}),/* @__PURE__ */ G(`option`,{value:`min`,children:/* @__PURE__ */ G(H,{id:`drUX1_`})}),/* @__PURE__ */ G(`option`,{value:`max`,children:/* @__PURE__ */ G(H,{id:`4cECyK`})}),/* @__PURE__ */ G(`option`,{value:`number`,children:/* @__PURE__ */ G(H,{id:`HptUxX`})}),/* @__PURE__ */ G(`option`,{value:`percent`,children:/* @__PURE__ */ G(H,{id:`SrVzRe`})}),/* @__PURE__ */ G(`option`,{value:`percentile`,children:/* @__PURE__ */ G(H,{id:`PxNXDN`})}),/* @__PURE__ */ G(`option`,{value:`formula`,children:/* @__PURE__ */ G(H,{id:`lpxWKi`})})]}),f&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:d,children:l[t][1]}),/* @__PURE__ */ G(`input`,{id:d,value:c.value,spellCheck:!1,inputMode:c.type===`formula`?`text`:`decimal`,onChange:e=>void o({type:`draft`,rule:{[t]:{...c,value:e.currentTarget.value}}})})]})]})}function Pa({idPrefix:e}){let{_:t}=U(),{rule:n}=r(mt),a=i(mn);return n.kind!==`color-scale`&&n.kind!==`data-bar`&&n.kind!==`icon-set`?null:n.kind===`icon-set`?/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${e}-icon-set`,children:/* @__PURE__ */ G(H,{id:`qRSDH_`})}),/* @__PURE__ */ K(`select`,{id:`${e}-icon-set`,value:n.iconSet,onChange:e=>void a({type:`draft`,rule:{iconSet:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`three-arrows`,children:/* @__PURE__ */ G(H,{id:`2u3siP`})}),/* @__PURE__ */ G(`option`,{value:`three-traffic-lights`,children:/* @__PURE__ */ G(H,{id:`axnOH5`})}),/* @__PURE__ */ G(`option`,{value:`three-flags`,children:/* @__PURE__ */ G(H,{id:`SXGeQ1`})})]}),/* @__PURE__ */ G(Na,{idPrefix:e,slot:`lowerThreshold`}),/* @__PURE__ */ G(Na,{idPrefix:e,slot:`upperThreshold`}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-reverse-icons`,children:/* @__PURE__ */ G(H,{id:`mSnrhP`})}),/* @__PURE__ */ G(`input`,{id:`${e}-reverse-icons`,type:`checkbox`,checked:n.reverse??!1,onChange:e=>void a({type:`draft`,rule:{reverse:e.currentTarget.checked}})}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-only-icons`,children:/* @__PURE__ */ G(H,{id:`lHv58R`})}),/* @__PURE__ */ G(`input`,{id:`${e}-only-icons`,type:`checkbox`,checked:n.showValue===!1,onChange:e=>void a({type:`draft`,rule:{showValue:!e.currentTarget.checked}})}),/* @__PURE__ */ G(`p`,{children:t({id:`VSOLir`})})]}):/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(Na,{idPrefix:e,slot:`minThreshold`}),n.kind===`color-scale`&&n.midColor&&/* @__PURE__ */ G(Na,{idPrefix:e,slot:`midThreshold`}),/* @__PURE__ */ G(Na,{idPrefix:e,slot:`maxThreshold`}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`UNSVie`})})]})}function Fa({idPrefix:e}){let{_:t}=U(),{rule:n}=r(mt),a=i(mn);if(n.kind===`text`){let r=n.condition===`matches-wildcard`||n.condition===`not-matches-wildcard`;return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${e}-condition`,children:/* @__PURE__ */ G(H,{id:`sBBaEx`})}),/* @__PURE__ */ K(`select`,{id:`${e}-condition`,value:n.condition,onChange:e=>void a({type:`draft`,rule:{condition:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`contains`,children:/* @__PURE__ */ G(H,{id:`_5mghO`})}),/* @__PURE__ */ G(`option`,{value:`not-contains`,children:/* @__PURE__ */ G(H,{id:`HLIZFs`})}),/* @__PURE__ */ G(`option`,{value:`begins-with`,children:/* @__PURE__ */ G(H,{id:`zbp0MB`})}),/* @__PURE__ */ G(`option`,{value:`ends-with`,children:/* @__PURE__ */ G(H,{id:`VCfLFG`})}),/* @__PURE__ */ G(`option`,{value:`matches-wildcard`,children:/* @__PURE__ */ G(H,{id:`6naYPx`})}),/* @__PURE__ */ G(`option`,{value:`not-matches-wildcard`,children:/* @__PURE__ */ G(H,{id:`NICPwA`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-match-text`,children:/* @__PURE__ */ G(H,{id:`uAFbrK`})}),/* @__PURE__ */ G(`input`,{id:`${e}-match-text`,value:n.text,spellCheck:!1,"aria-describedby":`${e}-text-help`,onChange:e=>void a({type:`draft`,rule:{text:e.currentTarget.value}})}),/* @__PURE__ */ G(`p`,{id:`${e}-text-help`,children:t(r?{id:`0LzvWR`}:{id:`jPwUrQ`})})]})}return n.kind===`duplicate-values`?/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${e}-duplicates`,children:/* @__PURE__ */ G(H,{id:`FBVro3`})}),/* @__PURE__ */ K(`select`,{id:`${e}-duplicates`,value:n.mode,onChange:e=>void a({type:`draft`,rule:{mode:e.currentTarget.value===`unique`?`unique`:`duplicate`}}),children:[/* @__PURE__ */ G(`option`,{value:`duplicate`,children:/* @__PURE__ */ G(H,{id:`euc6Ns`})}),/* @__PURE__ */ G(`option`,{value:`unique`,children:/* @__PURE__ */ G(H,{id:`wSXm5S`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-compare-by`,children:/* @__PURE__ */ G(H,{id:`nLxKSL`})}),/* @__PURE__ */ K(`select`,{id:`${e}-compare-by`,value:n.compareBy??`value`,onChange:e=>void a({type:`draft`,rule:{compareBy:e.currentTarget.value===`display-text`?`display-text`:`value`}}),children:[/* @__PURE__ */ G(`option`,{value:`value`,children:/* @__PURE__ */ G(H,{id:`8pFplU`})}),/* @__PURE__ */ G(`option`,{value:`display-text`,children:/* @__PURE__ */ G(H,{id:`hjkLzt`})})]}),/* @__PURE__ */ G(`p`,{children:n.compareBy===`display-text`?t({id:`pC_Rp1`}):t({id:`LkMoxw`})})]}):null}function Ia(e){return[`cell-value`,`formula`,`top-bottom`,`color-scale`,`data-bar`,`text`,`duplicate-values`,`icon-set`].includes(e.kind)}function La(){let{i18n:e,_:t}=U(),n={gt:t({id:`JXaffl`}),lt:t({id:`haJ2Hb`}),eq:t({id:`pfKLo-`}),ne:t({id:`CTe2Gc`}),gte:t({id:`UPgfIN`}),lte:t({id:`5sJI_R`}),between:t({id:`XtFNg_`}),"not-between":t({id:`cnbhg_`})},a={contains:t({id:`_5mghO`}),"not-contains":t({id:`HLIZFs`}),"begins-with":t({id:`zbp0MB`}),"ends-with":t({id:`VCfLFG`}),"matches-wildcard":t({id:`6naYPx`}),"not-matches-wildcard":t({id:`NICPwA`})};function o(e){if(e.kind===`text`)return`${a[e.condition]} “${e.text}”`;if(e.kind===`duplicate-values`)return e.mode===`unique`?t({id:`QD3zaT`}):t({id:`cbqNXN`});if(e.kind===`cell-value`)return`${n[e.operator]??e.operator} ${e.value}${e.value2?` – ${e.value2}`:``}`;if(e.kind===`formula`)return e.formula;if(e.kind===`top-bottom`){let n=e.count;return e.direction===`top`?e.percent?t({id:`izlhQX`,values:{count:n}}):t({id:`GnPYFb`,values:{count:n}}):e.percent?t({id:`o5OmFm`,values:{count:n}}):t({id:`RAnflB`,values:{count:n}})}return e.kind===`color-scale`?e.midColor?t({id:`yCbhA6`}):t({id:`A8SR9V`}):e.kind===`data-bar`?t({id:`-kMZ8o`}):e.kind===`icon-set`?t({id:`l0y6n4`}):t({id:`E24Kfn`})}let s=r(mt),c=r(ht),l=r(j).source!==null,u=i(mn),d=V(null),f=V(null),p=z(),m=s.sheetId!==null,h=s.rule.kind===`cell-value`&&(s.rule.operator===`between`||s.rule.operator===`not-between`),g=`format`in s.rule?s.rule.format:null;return B(()=>{let e=f.current,t=d.current;if(m&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`input`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[m]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:d,type:`button`,className:`tool-button`,"aria-label":t({id:`BAOW-8`}),title:t({id:`BAOW-8`}),disabled:l||s.busy||!c,onClick:()=>void u(`open`),children:`◩`}),m&&/* @__PURE__ */ K(`dialog`,{ref:f,className:`conditional-format-panel`,"aria-labelledby":`${p}-title`,"aria-describedby":`${p}-hint`,onKeyDown:X,onCancel:e=>{e.preventDefault(),u(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${p}-title`,children:/* @__PURE__ */ G(H,{id:`BAOW-8`})}),/* @__PURE__ */ G(`p`,{id:`${p}-hint`,children:/* @__PURE__ */ G(H,{id:`QKU5be`})}),/* @__PURE__ */ K(`section`,{"aria-label":t({id:`fGdAh8`}),children:[/* @__PURE__ */ G(`h3`,{children:/* @__PURE__ */ G(H,{id:`fGdAh8`})}),!c?.rules.length&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`aJlCCf`})}),/* @__PURE__ */ G(`ul`,{children:c?.rules.map((e,n)=>/* @__PURE__ */ K(`li`,{children:[/* @__PURE__ */ K(`span`,{children:[ae(e.scope),` · `,o(e.rule),`stopIfTrue`in e.rule&&e.rule.stopIfTrue&&t({id:`qABLyn`}),Ia(e.rule)&&e.rule.enabled===!1&&t({id:`9S3wLJ`})]}),/* @__PURE__ */ K(`div`,{className:`conditional-rule-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy||!Ia(e.rule),"aria-label":t({id:`23JPFP`,values:{0:n+1}}),onClick:()=>void u({type:`edit`,id:e.id}),children:/* @__PURE__ */ G(H,{id:`ePK91l`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy||!Ia(e.rule),"aria-label":t({id:`j1PbXM`,values:{0:n+1}}),onClick:()=>void u({type:`duplicate`,id:e.id}),children:/* @__PURE__ */ G(H,{id:`he3ygx`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy||!Ia(e.rule),"aria-label":Ia(e.rule)&&e.rule.enabled===!1?t({id:`25Qdl_`,values:{0:n+1}}):t({id:`Zm7_S_`,values:{0:n+1}}),onClick:()=>void u({type:Ia(e.rule)&&e.rule.enabled===!1?`enable`:`disable`,id:e.id}),children:Ia(e.rule)&&e.rule.enabled===!1?t({id:`PaQ3df`}):t({id:`cO9-2L`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy||n===0,"aria-label":t({id:`IXuDer`,values:{0:n+1}}),onClick:()=>void u({type:`move-up`,id:e.id}),children:`↑`}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy||n===(c?.rules.length??0)-1,"aria-label":t({id:`8xss61`,values:{0:n+1}}),onClick:()=>void u({type:`move-down`,id:e.id}),children:`↓`}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy,"aria-label":t({id:`NcUUHs`,values:{0:n+1}}),onClick:()=>void u({type:`remove`,id:e.id}),children:/* @__PURE__ */ G(H,{id:`cnGeoo`})})]})]},e.id))}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy,onClick:()=>void u(`new`),children:/* @__PURE__ */ G(H,{id:`yBF5J5`})})]}),/* @__PURE__ */ K(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),u(`save`)},children:[/* @__PURE__ */ G(`h3`,{children:s.ruleId?t({id:`0doodQ`}):t({id:`yBF5J5`})}),/* @__PURE__ */ K(`fieldset`,{disabled:s.busy,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-range`,children:/* @__PURE__ */ G(H,{id:`p98xmP`})}),/* @__PURE__ */ G(`input`,{id:`${p}-range`,value:s.range,spellCheck:!1,placeholder:`A1:A10, C1:C10`,onChange:e=>void u({type:`draft`,range:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-kind`,children:/* @__PURE__ */ G(H,{id:`CgohER`})}),/* @__PURE__ */ K(`select`,{id:`${p}-kind`,value:s.rule.kind,onChange:e=>void u({type:`kind`,kind:e.currentTarget.value}),children:[/* @__PURE__ */ G(`option`,{value:`cell-value`,children:/* @__PURE__ */ G(H,{id:`2lCz8v`})}),/* @__PURE__ */ G(`option`,{value:`formula`,children:/* @__PURE__ */ G(H,{id:`lpxWKi`})}),/* @__PURE__ */ G(`option`,{value:`top-bottom`,children:/* @__PURE__ */ G(H,{id:`sLPyYh`})}),/* @__PURE__ */ G(`option`,{value:`text`,children:/* @__PURE__ */ G(H,{id:`xeiujy`})}),/* @__PURE__ */ G(`option`,{value:`duplicate-values`,children:/* @__PURE__ */ G(H,{id:`CLtx7m`})}),/* @__PURE__ */ G(`option`,{value:`color-scale`,children:/* @__PURE__ */ G(H,{id:`vkVzyy`})}),/* @__PURE__ */ G(`option`,{value:`data-bar`,children:/* @__PURE__ */ G(H,{id:`-kMZ8o`})}),/* @__PURE__ */ G(`option`,{value:`icon-set`,children:/* @__PURE__ */ G(H,{id:`l0y6n4`})})]}),/* @__PURE__ */ G(Fa,{idPrefix:p}),s.rule.kind===`cell-value`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-operator`,children:/* @__PURE__ */ G(H,{id:`wpT1VN`})}),/* @__PURE__ */ G(`select`,{id:`${p}-operator`,value:s.rule.operator,onChange:e=>void u({type:`draft`,rule:{operator:e.currentTarget.value}}),children:Object.entries(n).map(([e,t])=>/* @__PURE__ */ G(`option`,{value:e,children:t},e))}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-value`,children:t(h?{id:`CW11B-`}:{id:`wMHvYH`})}),/* @__PURE__ */ G(`input`,{id:`${p}-value`,inputMode:`decimal`,value:s.rule.value,onChange:e=>void u({type:`draft`,rule:{value:e.currentTarget.value}})}),h&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-value2`,children:/* @__PURE__ */ G(H,{id:`mOFgdC`})}),/* @__PURE__ */ G(`input`,{id:`${p}-value2`,inputMode:`decimal`,value:s.rule.value2??``,onChange:e=>void u({type:`draft`,rule:{value2:e.currentTarget.value}})})]})]}),s.rule.kind===`formula`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-formula`,children:/* @__PURE__ */ G(H,{id:`lpxWKi`})}),/* @__PURE__ */ G(`input`,{id:`${p}-formula`,value:s.rule.formula,spellCheck:!1,"aria-describedby":`${p}-formula-hint`,placeholder:`=$A1>10`,onChange:e=>void u({type:`draft`,rule:{formula:e.currentTarget.value}})}),/* @__PURE__ */ G(`p`,{id:`${p}-formula-hint`,children:/* @__PURE__ */ G(H,{id:`Li0Wel`})})]}),s.rule.kind===`top-bottom`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-direction`,children:/* @__PURE__ */ G(H,{id:`nhlurn`})}),/* @__PURE__ */ K(`select`,{id:`${p}-direction`,value:s.rule.direction,onChange:e=>void u({type:`draft`,rule:{direction:e.currentTarget.value===`bottom`?`bottom`:`top`}}),children:[/* @__PURE__ */ G(`option`,{value:`top`,children:/* @__PURE__ */ G(H,{id:`WWy8TN`})}),/* @__PURE__ */ G(`option`,{value:`bottom`,children:/* @__PURE__ */ G(H,{id:`zsiX7I`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-unit`,children:/* @__PURE__ */ G(H,{id:`cUSA-Z`})}),/* @__PURE__ */ K(`select`,{id:`${p}-unit`,value:s.rule.percent?`percent`:`items`,onChange:e=>void u({type:`draft`,rule:{percent:e.currentTarget.value===`percent`}}),children:[/* @__PURE__ */ G(`option`,{value:`items`,children:/* @__PURE__ */ G(H,{id:`BzfzPK`})}),/* @__PURE__ */ G(`option`,{value:`percent`,children:/* @__PURE__ */ G(H,{id:`_roQKz`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-count`,children:s.rule.percent?t({id:`_roQKz`}):t({id:`52e4Ly`})}),/* @__PURE__ */ G(`input`,{id:`${p}-count`,type:`number`,min:+!s.rule.percent,max:s.rule.percent?100:1e3,step:`1`,value:Number.isNaN(s.rule.count)?``:s.rule.count,onChange:e=>void u({type:`draft`,rule:{count:e.currentTarget.valueAsNumber}})})]}),(s.rule.kind===`color-scale`||s.rule.kind===`data-bar`)&&/* @__PURE__ */ K(W,{children:[s.rule.kind===`color-scale`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-scale-count`,children:/* @__PURE__ */ G(H,{id:`R1l97J`})}),/* @__PURE__ */ K(`select`,{id:`${p}-scale-count`,value:s.rule.midColor?`3`:`2`,onChange:e=>void u({type:`draft`,rule:{midColor:e.currentTarget.value===`3`?`#ffeb84`:void 0}}),children:[/* @__PURE__ */ G(`option`,{value:`2`,children:/* @__PURE__ */ G(H,{id:`_xrkTU`})}),/* @__PURE__ */ G(`option`,{value:`3`,children:/* @__PURE__ */ G(H,{id:`5E7eeF`})})]})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-low-color`,children:s.rule.kind===`color-scale`?t({id:`knie_b`}):t({id:`r44k1H`})}),/* @__PURE__ */ G(`input`,{id:`${p}-low-color`,type:`color`,value:s.rule.minColor??`#f8696b`,onChange:e=>void u({type:`draft`,rule:{minColor:e.currentTarget.value}})}),s.rule.kind===`color-scale`&&s.rule.midColor&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-mid-color`,children:/* @__PURE__ */ G(H,{id:`7FMdyi`})}),/* @__PURE__ */ G(`input`,{id:`${p}-mid-color`,type:`color`,value:s.rule.midColor,onChange:e=>void u({type:`draft`,rule:{midColor:e.currentTarget.value}})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-high-color`,children:s.rule.kind===`color-scale`?t({id:`nEhxD1`}):t({id:`JCVQI2`})}),/* @__PURE__ */ G(`input`,{id:`${p}-high-color`,type:`color`,value:s.rule.maxColor??`#638ec6`,onChange:e=>void u({type:`draft`,rule:{maxColor:e.currentTarget.value}})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`DwIi5W`})})]}),/* @__PURE__ */ G(Pa,{idPrefix:p}),g&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-stop`,children:/* @__PURE__ */ G(H,{id:`zlaIZ9`})}),/* @__PURE__ */ G(`input`,{id:`${p}-stop`,type:`checkbox`,checked:`stopIfTrue`in s.rule&&!!s.rule.stopIfTrue,onChange:e=>void u({type:`draft`,rule:{stopIfTrue:e.currentTarget.checked}})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`uIXWHE`})}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-fill`,children:/* @__PURE__ */ G(H,{id:`1c2Jwi`})}),/* @__PURE__ */ G(`input`,{id:`${p}-fill`,type:`color`,value:g.bgColor??`#ffc7ce`,onChange:e=>void u({type:`draft`,rule:{format:{...g,bgColor:e.currentTarget.value}}})}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-text`,children:/* @__PURE__ */ G(H,{id:`eKJQi9`})}),/* @__PURE__ */ G(`input`,{id:`${p}-text`,type:`color`,value:g.fgColor??`#9c0006`,onChange:e=>void u({type:`draft`,rule:{format:{...g,fgColor:e.currentTarget.value}}})})]})]}),s.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,s.error)}),s.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`MOuGRm`})}),/* @__PURE__ */ K(`div`,{className:`conditional-format-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:s.busy,onClick:()=>void u(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:s.busy,children:s.ruleId?t({id:`6KYDeP`}):t({id:`O8tK4v`})})]})]})]})]})}function Ra({id:e}){let t=r(gt),n=i(hn);return/* @__PURE__ */ K(W,{children:[t.kind===`custom-formula`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${e}-formula`,children:/* @__PURE__ */ G(H,{id:`dVXmWP`})}),/* @__PURE__ */ G(`input`,{id:`${e}-formula`,value:t.formula,required:!0,spellCheck:!1,onChange:e=>void n({formula:e.currentTarget.value})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`gQi2u8`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-show-input`,children:/* @__PURE__ */ G(H,{id:`0BuG9d`})}),/* @__PURE__ */ G(`input`,{id:`${e}-show-input`,type:`checkbox`,checked:t.showInputMessage,onChange:e=>void n({showInputMessage:e.currentTarget.checked})}),t.showInputMessage&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${e}-input-title`,children:/* @__PURE__ */ G(H,{id:`LwK6r0`})}),/* @__PURE__ */ G(`input`,{id:`${e}-input-title`,value:t.inputTitle,maxLength:64,onChange:e=>void n({inputTitle:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-input-message`,children:/* @__PURE__ */ G(H,{id:`krby4S`})}),/* @__PURE__ */ G(`textarea`,{id:`${e}-input-message`,value:t.inputMessage,rows:3,maxLength:510,onChange:e=>void n({inputMessage:e.currentTarget.value})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-error-style`,children:/* @__PURE__ */ G(H,{id:`y8VGPa`})}),/* @__PURE__ */ K(`select`,{id:`${e}-error-style`,value:t.errorStyle,onChange:e=>void n({errorStyle:e.currentTarget.value}),children:[/* @__PURE__ */ G(`option`,{value:`stop`,children:/* @__PURE__ */ G(H,{id:`ygCKqB`})}),/* @__PURE__ */ G(`option`,{value:`warning`,children:/* @__PURE__ */ G(H,{id:`r6y-jM`})}),/* @__PURE__ */ G(`option`,{value:`information`,children:/* @__PURE__ */ G(H,{id:`nSkB8g`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-error-title`,children:/* @__PURE__ */ G(H,{id:`718xCo`})}),/* @__PURE__ */ G(`input`,{id:`${e}-error-title`,value:t.errorTitle,maxLength:64,onChange:e=>void n({errorTitle:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${e}-error-message`,children:/* @__PURE__ */ G(H,{id:`xi4nE2`})}),/* @__PURE__ */ G(`textarea`,{id:`${e}-error-message`,value:t.errorMessage,rows:3,maxLength:510,onChange:e=>void n({errorMessage:e.currentTarget.value})}),t.errorStyle!==`stop`&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`2jjTif`})})]})}function za(){let{i18n:e,_:t}=U(),n=r(gt),a=r(j).source!==null,o=i(hn),s=V(null),c=V(null),l=z(),u=n.sheetId!==null,d=n.phase===`reading`,f=n.kind===`date`||n.kind===`time`,p=n.operator===`between`||n.operator===`not-between`,m=n.kind===`date`?`YYYY-MM-DD`:n.kind===`time`?`HH:mm:ss`:void 0,h=n.kind===`date`?t({id:`ECiFDS`}):t({id:`V8GuqL`}),g=n.kind===`date`?t({id:`H1Eshp`}):t({id:`h6KHUh`});return B(()=>{let e=c.current,t=s.current;if(u&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[u]),B(()=>{u&&!d&&c.current?.querySelector(`input`)?.focus()},[u,d]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:s,type:`button`,className:`tool-button`,"aria-label":t({id:`jmyfzI`}),title:t({id:`jmyfzI`}),disabled:a||n.busy,onClick:()=>void o(`open`),children:`✓`}),u&&/* @__PURE__ */ K(`dialog`,{ref:c,className:`data-validation-panel`,"aria-labelledby":`${l}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),o(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${l}-title`,children:/* @__PURE__ */ G(H,{id:`jmyfzI`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`4iEJfd`})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),o(`save`)},children:[/* @__PURE__ */ K(`fieldset`,{disabled:n.busy,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-range`,children:/* @__PURE__ */ G(H,{id:`p98xmP`})}),/* @__PURE__ */ G(`input`,{id:`${l}-range`,value:n.range,required:!0,onChange:e=>void o({range:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-kind`,children:/* @__PURE__ */ G(H,{id:`h7peZQ`})}),/* @__PURE__ */ K(`select`,{id:`${l}-kind`,value:n.kind,onChange:e=>void o({kind:e.currentTarget.value}),children:[/* @__PURE__ */ G(`option`,{value:`whole-number`,children:/* @__PURE__ */ G(H,{id:`YK4ZnP`})}),/* @__PURE__ */ G(`option`,{value:`decimal`,children:/* @__PURE__ */ G(H,{id:`Sla4dA`})}),/* @__PURE__ */ G(`option`,{value:`list`,children:/* @__PURE__ */ G(H,{id:`2BBAbc`})}),/* @__PURE__ */ G(`option`,{value:`date`,children:/* @__PURE__ */ G(H,{id:`mYGY3B`})}),/* @__PURE__ */ G(`option`,{value:`time`,children:/* @__PURE__ */ G(H,{id:`LhMjLm`})}),/* @__PURE__ */ G(`option`,{value:`text-length`,children:/* @__PURE__ */ G(H,{id:`WLTAm_`})}),/* @__PURE__ */ G(`option`,{value:`custom-formula`,children:/* @__PURE__ */ G(H,{id:`Phf9sK`})})]}),n.kind===`list`?/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-items`,children:/* @__PURE__ */ G(H,{id:`FuYWBY`})}),/* @__PURE__ */ G(`textarea`,{id:`${l}-items`,value:n.items,rows:5,required:!0,onChange:e=>void o({items:e.currentTarget.value})})]}):n.kind!==`custom-formula`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-operator`,children:/* @__PURE__ */ G(H,{id:`wpT1VN`})}),/* @__PURE__ */ K(`select`,{id:`${l}-operator`,value:n.operator,onChange:e=>{o({operator:e.currentTarget.value})},children:[/* @__PURE__ */ G(`option`,{value:`between`,children:/* @__PURE__ */ G(H,{id:`XtFNg_`})}),/* @__PURE__ */ G(`option`,{value:`not-between`,children:/* @__PURE__ */ G(H,{id:`cnbhg_`})}),/* @__PURE__ */ G(`option`,{value:`equal`,children:/* @__PURE__ */ G(H,{id:`pfKLo-`})}),/* @__PURE__ */ G(`option`,{value:`not-equal`,children:/* @__PURE__ */ G(H,{id:`CTe2Gc`})}),/* @__PURE__ */ G(`option`,{value:`greater-than`,children:/* @__PURE__ */ G(H,{id:`JXaffl`})}),/* @__PURE__ */ G(`option`,{value:`greater-than-or-equal`,children:/* @__PURE__ */ G(H,{id:`_sZgWl`})}),/* @__PURE__ */ G(`option`,{value:`less-than`,children:/* @__PURE__ */ G(H,{id:`haJ2Hb`})}),/* @__PURE__ */ G(`option`,{value:`less-than-or-equal`,children:/* @__PURE__ */ G(H,{id:`QUuzW2`})})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-min`,children:t(p?{id:`CW11B-`}:{id:`wMHvYH`})}),/* @__PURE__ */ G(`input`,{id:`${l}-min`,type:f?`text`:`number`,step:`any`,placeholder:m,"aria-describedby":f?`${l}-hint`:void 0,value:n.min,required:!0,onChange:e=>void o({min:e.currentTarget.value})}),p&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-max`,children:/* @__PURE__ */ G(H,{id:`mOFgdC`})}),/* @__PURE__ */ G(`input`,{id:`${l}-max`,type:f?`text`:`number`,step:`any`,placeholder:m,"aria-describedby":f?`${l}-hint`:void 0,value:n.max,required:!0,onChange:e=>void o({max:e.currentTarget.value})})]})]}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-blank`,children:/* @__PURE__ */ G(H,{id:`61OlHU`})}),/* @__PURE__ */ G(`input`,{id:`${l}-blank`,type:`checkbox`,checked:n.ignoreBlank,onChange:e=>void o({ignoreBlank:e.currentTarget.checked})}),/* @__PURE__ */ G(Ra,{id:l})]}),f&&/* @__PURE__ */ K(`p`,{id:`${l}-hint`,children:[h,n.operator===`between`?g:``]}),n.kind!==`list`&&n.kind!==`custom-formula`&&n.operator===`not-between`&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`_5uCWz`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:n.phase===`saving`?t({id:`wzo8rz`}):t({id:`T98Rxz`})}),/* @__PURE__ */ K(`div`,{className:`data-validation-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void o(`clear`),children:/* @__PURE__ */ G(H,{id:`NzAXiU`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.phase===`saving`,onClick:()=>void o(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy,children:/* @__PURE__ */ G(H,{id:`DB8zMK`})})]})]})]})]})}var Ba=[`#000000`,`#434343`,`#666666`,`#999999`,`#cccccc`,`#efefef`,`#ffffff`,`#c00000`,`#e06666`,`#f6b26b`,`#ffd966`,`#93c47d`,`#76a5af`,`#6fa8dc`,`#8e7cc3`,`#c27ba0`,`#f4cccc`,`#fce5cd`,`#fff2cc`,`#d9ead3`,`#d0e0e3`,`#cfe2f3`,`#d9d2e9`,`#ead1dc`];function Va({kind:e}){let{i18n:t,_:n}=U(),a=r(ne),o=r(Sr),s=r(S),c=r(j).source!==null,l=i(tn),u=V(null),d=V(null),f=z(),p=o?.kind===`palette`&&o.id===e,m=e===`fill-color`,h=n(m?{id:`wrok4H`}:{id:`MapzEo`}),g=m?s.bgColor:s.fgColor,_=a.last[e],v=/^#[\da-f]{6}$/i.test(a.draft);return B(()=>{let e=d.current,t=u.current;if(!p||!e||!t)return;e.showModal?e.showModal():e.setAttribute(`open`,``);let n=()=>{let n=t.getBoundingClientRect();e.style.left=`${Math.max(8,Math.min(n.left,innerWidth-e.offsetWidth-8))}px`,e.style.top=`${Math.max(8,Math.min(n.bottom+6,innerHeight-e.offsetHeight-8))}px`};n();let r=typeof ResizeObserver>`u`?null:new ResizeObserver(n);return r?.observe(e),window.addEventListener(`resize`,n),()=>{r?.disconnect(),window.removeEventListener(`resize`,n),e.close?.(),t.focus({preventScroll:!0})}},[p]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`span`,{className:`color-tool`,children:[/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button color-apply`,"aria-label":h,title:`${h}: ${_}`,disabled:c||a.busy,"aria-pressed":g?.toLowerCase()===_,style:{"--swatch":_},onClick:()=>void l({type:`quick`,kind:e}),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:m?`▰`:`A`})}),/* @__PURE__ */ G(`button`,{ref:u,type:`button`,className:`tool-button color-open`,"aria-label":n({id:`7qxXKS`,values:{0:h.toLowerCase()}}),title:n({id:`7qxXKS`,values:{0:h.toLowerCase()}}),"aria-haspopup":`dialog`,"aria-expanded":p,disabled:c||a.busy,onClick:()=>void l({type:`open`,kind:e}),children:`⌄`})]}),p&&/* @__PURE__ */ K(`dialog`,{ref:d,className:`color-palette`,"aria-labelledby":`${f}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),l(`close`)},onClick:e=>{if(e.target!==e.currentTarget)return;let t=e.currentTarget.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&l(`close`)},children:[/* @__PURE__ */ K(`header`,{children:[/* @__PURE__ */ G(`h2`,{id:`${f}-title`,children:h}),/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":n({id:`ooB4kZ`}),disabled:a.busy,onClick:()=>void l(`close`),children:`×`})]}),/* @__PURE__ */ G(`button`,{className:`color-reset`,type:`button`,disabled:a.busy,onClick:()=>void l({type:`choose`,value:null}),children:n(m?{id:`MaFhfZ`}:{id:`MwT8v8`})}),/* @__PURE__ */ G(`div`,{className:`color-swatches`,role:`group`,"aria-label":n({id:`CHhGMU`}),children:Ba.map(e=>/* @__PURE__ */ G(`button`,{type:`button`,title:e,"aria-label":n({id:`YvscKL`,values:{color:e}}),"aria-pressed":g?.toLowerCase()===e,disabled:a.busy,style:{backgroundColor:e},onClick:()=>void l({type:`choose`,value:e}),children:g?.toLowerCase()===e&&/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`✓`})},e))}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),l(`apply`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${f}-hex`,children:/* @__PURE__ */ G(H,{id:`S05wWG`})}),/* @__PURE__ */ K(`div`,{className:`color-custom`,children:[/* @__PURE__ */ G(`input`,{type:`color`,"aria-label":n({id:`9q0OPd`}),disabled:a.busy,value:v?a.draft.toLowerCase():_,onChange:e=>void l({type:`draft`,value:e.currentTarget.value})}),/* @__PURE__ */ G(`input`,{id:`${f}-hex`,type:`text`,"aria-label":n({id:`e4_f6h`}),spellCheck:!1,value:a.draft,disabled:a.busy,maxLength:7,"aria-invalid":!!a.error&&!v,"aria-describedby":a.error?`${f}-error`:void 0,onChange:e=>void l({type:`draft`,value:e.currentTarget.value})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:a.busy,children:/* @__PURE__ */ G(H,{id:`DB8zMK`})})]})]}),a.error&&/* @__PURE__ */ G(`p`,{id:`${f}-error`,role:`alert`,children:q(t,a.error)}),a.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`Slf_tF`})})]})]})}async function Ha(e,t){let n=document.activeElement===e;await t(),requestAnimationFrame(()=>{n&&e.isConnected&&!e.matches(`:disabled`)&&document.activeElement===document.body&&e.focus({preventScroll:!0})})}var Ua=[-90,-45,0,45,90,`vertical`];function Wa(){let{i18n:e,_:t}=U(),n=r(S),a=r(br),o=r(j).source!==null,s=i(In),c=o||a.busy,l=n.rotation??0;return/* @__PURE__ */ K(`span`,{className:`text-layout-tools`,children:[/* @__PURE__ */ K(`select`,{className:`tool-select text-layout-select`,"aria-label":t({id:`0j-RGO`}),title:t({id:`0j-RGO`}),value:n.align??`default`,disabled:c,onChange:e=>void Ha(e.currentTarget,()=>s({type:`horizontal-alignment`,value:e.currentTarget.value})),children:[/* @__PURE__ */ G(`option`,{value:`default`,children:/* @__PURE__ */ G(H,{id:`R9Khdg`})}),/* @__PURE__ */ G(`option`,{value:`left`,children:/* @__PURE__ */ G(H,{id:`UlKSMd`})}),/* @__PURE__ */ G(`option`,{value:`center`,children:/* @__PURE__ */ G(H,{id:`VTRXqB`})}),/* @__PURE__ */ G(`option`,{value:`right`,children:/* @__PURE__ */ G(H,{id:`nOPbWJ`})})]}),/* @__PURE__ */ K(`select`,{className:`tool-select text-layout-select`,"aria-label":t({id:`-ysFds`}),title:t({id:`-ysFds`}),value:n.verticalAlign??`default`,disabled:c,onChange:e=>void Ha(e.currentTarget,()=>s({type:`vertical-alignment`,value:e.currentTarget.value})),children:[/* @__PURE__ */ G(`option`,{value:`default`,children:/* @__PURE__ */ G(H,{id:`ovBPCi`})}),/* @__PURE__ */ G(`option`,{value:`top`,children:/* @__PURE__ */ G(H,{id:`WWy8TN`})}),/* @__PURE__ */ G(`option`,{value:`center`,children:/* @__PURE__ */ G(H,{id:`S1g3Ds`})}),/* @__PURE__ */ G(`option`,{value:`bottom`,children:/* @__PURE__ */ G(H,{id:`zsiX7I`})})]}),/* @__PURE__ */ K(`select`,{className:`tool-select text-layout-select`,"aria-label":t({id:`aTHRg7`}),title:t({id:`aTHRg7`}),value:l,disabled:c,onChange:e=>void Ha(e.currentTarget,()=>s({type:`text-rotation`,value:e.currentTarget.value===`vertical`?`vertical`:Number(e.currentTarget.value)})),children:[Ua.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:e===`vertical`?t({id:`mX_isJ`}):`${e}°`},e)),!Ua.some(e=>e===l)&&/* @__PURE__ */ K(`option`,{value:l,children:[l,`°`]})]}),a.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`bIuTzq`})}),a.error&&/* @__PURE__ */ K(`span`,{className:`text-layout-error`,role:`alert`,children:[q(e,a.error),/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button`,"aria-label":t({id:`AgLpDJ`}),onClick:()=>void s(`dismiss`),children:`×`})]})]})}function Ga(){let{i18n:e,_:t}=U(),n=r(S),a=r(Ne),o=r(j).source!==null,s=i(an),c=n.fontSize??u,l=o||a.busy,d=V(null),f=V(null),p=z(),h=a.witness!==null,g=Number(a.draft),_=Number.isInteger(g)&&g>=1&&g<=512;return B(()=>{let e=f.current,t=d.current;if(h&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`input`)?.select(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[h]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ K(`select`,{ref:d,"aria-label":t({id:`q3il6U`}),title:t({id:`Llc5yd`}),className:`tool-select font-size-select`,value:c,disabled:l,onChange:e=>void Ha(e.currentTarget,()=>s(e.currentTarget.value===`custom`?`open`:{type:`set`,value:Number(e.currentTarget.value)})),children:[m.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:e},e)),!m.some(e=>e===c)&&/* @__PURE__ */ G(`option`,{value:c,children:c}),/* @__PURE__ */ G(`option`,{value:`custom`,children:/* @__PURE__ */ G(H,{id:`PApEJe`})})]}),/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button`,"aria-label":t({id:`a_oQVj`}),title:t({id:`a_oQVj`}),disabled:l||c>=512,onClick:e=>void Ha(e.currentTarget,()=>s(`increase`)),children:`A+`}),/* @__PURE__ */ G(`button`,{type:`button`,className:`tool-button`,"aria-label":t({id:`p1hcK1`}),title:t({id:`p1hcK1`}),disabled:l||c<=1,onClick:e=>void Ha(e.currentTarget,()=>s(`decrease`)),children:`A−`}),!h&&a.busy&&/* @__PURE__ */ G(`span`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`wU4VnX`})}),h&&/* @__PURE__ */ K(`dialog`,{ref:f,className:`font-size-dialog`,"aria-labelledby":`${p}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),s(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${p}-title`,children:/* @__PURE__ */ G(H,{id:`mWNPPQ`})}),/* @__PURE__ */ G(`p`,{id:`${p}-hint`,children:/* @__PURE__ */ G(H,{id:`9XO9_9`})}),/* @__PURE__ */ K(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),s(`apply`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-size`,children:/* @__PURE__ */ G(H,{id:`9hlJ3Q`})}),/* @__PURE__ */ G(`input`,{id:`${p}-size`,type:`number`,min:`1`,max:`512`,step:`1`,"aria-label":t({id:`mWNPPQ`}),"aria-invalid":!!a.error&&!_,"aria-describedby":a.error?`${p}-error`:`${p}-hint`,value:a.draft,disabled:a.busy,onChange:e=>void s({type:`draft`,value:e.currentTarget.value})}),/* @__PURE__ */ K(`div`,{className:`font-size-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:a.busy,onClick:()=>void s(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:a.busy,children:/* @__PURE__ */ G(H,{id:`KG5a1r`})})]})]}),a.error&&/* @__PURE__ */ G(`p`,{id:`${p}-error`,role:`alert`,children:q(e,a.error)}),a.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`wU4VnX`})})]})]})}function Ka(){let{i18n:e,_:t}=U(),n=r(zt),a=i(wn),o=r(j).source!==null,s=V(null),c=V(null),l=z(),u=n.target!==null;return B(()=>{let e=c.current,t=s.current;if(u&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`select`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[u]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:s,type:`button`,className:`tool-button`,"aria-label":t({id:`vADP4K`}),title:t({id:`vADP4K`}),disabled:o||n.busy,onClick:()=>void a(`open`),children:`0.0`}),u&&/* @__PURE__ */ K(`dialog`,{ref:c,className:`number-format-dialog`,"aria-labelledby":`${l}-title`,"aria-describedby":`${l}-hint`,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${l}-title`,children:/* @__PURE__ */ G(H,{id:`bR2sEm`})}),/* @__PURE__ */ G(`p`,{id:`${l}-hint`,children:/* @__PURE__ */ G(H,{id:`JBq1UX`})}),/* @__PURE__ */ K(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),a(`apply`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-category`,children:/* @__PURE__ */ G(H,{id:`K7tIrx`})}),/* @__PURE__ */ K(`select`,{id:`${l}-category`,"aria-label":t({id:`iORKAp`}),disabled:n.busy,value:n.draft.category,onChange:e=>void a({type:`draft`,patch:{category:e.currentTarget.value}}),children:[/* @__PURE__ */ G(`option`,{value:`number`,children:/* @__PURE__ */ G(H,{id:`HptUxX`})}),/* @__PURE__ */ G(`option`,{value:`percent`,children:/* @__PURE__ */ G(H,{id:`_roQKz`})}),/* @__PURE__ */ G(`option`,{value:`currency`,children:/* @__PURE__ */ G(H,{id:`Q2lUR2`})}),/* @__PURE__ */ G(`option`,{value:`scientific`,children:/* @__PURE__ */ G(H,{id:`YdQd_4`})}),/* @__PURE__ */ G(`option`,{value:`fraction`,children:/* @__PURE__ */ G(H,{id:`jT3euW`})}),/* @__PURE__ */ G(`option`,{value:`time`,children:/* @__PURE__ */ G(H,{id:`LhMjLm`})}),/* @__PURE__ */ G(`option`,{value:`date`,children:/* @__PURE__ */ G(H,{id:`mYGY3B`})}),/* @__PURE__ */ G(`option`,{value:`text`,children:/* @__PURE__ */ G(H,{id:`xeiujy`})})]}),[`number`,`percent`,`currency`,`scientific`].includes(n.draft.category)&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-digits`,children:/* @__PURE__ */ G(H,{id:`kdhqMB`})}),/* @__PURE__ */ G(`input`,{id:`${l}-digits`,type:`number`,min:`0`,max:`15`,step:`1`,disabled:n.busy,value:n.draft.digits,"aria-describedby":n.error?`${l}-error`:void 0,onChange:e=>void a({type:`draft`,patch:{digits:e.currentTarget.value}})})]}),n.draft.category===`date`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{className:`number-format-wide`,htmlFor:`${l}-date`,children:/* @__PURE__ */ G(H,{id:`tYqKzq`})}),/* @__PURE__ */ K(`select`,{className:`number-format-wide`,id:`${l}-date`,disabled:n.busy,value:n.draft.datePattern,onChange:e=>void a({type:`draft`,patch:{datePattern:e.currentTarget.value}}),children:[_.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:e},e)),!_.some(e=>e===n.draft.datePattern)&&/* @__PURE__ */ G(`option`,{value:n.draft.datePattern,disabled:!0,children:/* @__PURE__ */ G(H,{id:`Wnlkt7`,values:{0:n.draft.datePattern}})})]}),/* @__PURE__ */ G(`p`,{className:`number-format-hint`,children:/* @__PURE__ */ G(H,{id:`0DLxHa`})})]}),n.draft.category===`text`&&/* @__PURE__ */ G(`p`,{className:`number-format-hint`,children:/* @__PURE__ */ G(H,{id:`a2DHYV`})}),n.draft.category===`fraction`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-denominator`,children:/* @__PURE__ */ G(H,{id:`IBsjha`})}),/* @__PURE__ */ K(`select`,{id:`${l}-denominator`,disabled:n.busy,value:n.draft.denominator,onChange:e=>void a({type:`draft`,patch:{denominator:e.currentTarget.value}}),children:[v.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:t(e===`one-digit`?{id:`dQI-bM`}:e===`two-digit`?{id:`yAU_1D`}:e===`three-digit`?{id:`eJdVkr`}:{id:`wcGDMa`,values:{value:e}})},e)),!v.some(e=>e===n.draft.denominator)&&/* @__PURE__ */ G(`option`,{value:n.draft.denominator,children:/* @__PURE__ */ G(H,{id:`gY57pY`,values:{0:n.draft.denominator}})})]})]}),n.draft.category===`time`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-pattern`,children:/* @__PURE__ */ G(H,{id:`n9nSNJ`})}),/* @__PURE__ */ K(`select`,{id:`${l}-pattern`,disabled:n.busy,value:n.draft.pattern,onChange:e=>void a({type:`draft`,patch:{pattern:e.currentTarget.value}}),children:[y.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:e},e)),!y.some(e=>e===n.draft.pattern)&&/* @__PURE__ */ G(`option`,{value:n.draft.pattern,disabled:!0,children:/* @__PURE__ */ G(H,{id:`Wnlkt7`,values:{0:n.draft.pattern}})})]}),/* @__PURE__ */ G(`p`,{className:`number-format-hint`,children:/* @__PURE__ */ G(H,{id:`KgjGE2`})})]}),n.draft.category===`number`&&/* @__PURE__ */ K(`label`,{className:`number-format-check`,children:[/* @__PURE__ */ G(`input`,{type:`checkbox`,checked:n.draft.thousands,disabled:n.busy,onChange:e=>void a({type:`draft`,patch:{thousands:e.currentTarget.checked}})}),/* @__PURE__ */ G(H,{id:`yOngy-`})]}),n.draft.category===`currency`&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-symbol`,children:/* @__PURE__ */ G(H,{id:`dXXJVW`})}),/* @__PURE__ */ G(`input`,{id:`${l}-symbol`,type:`text`,maxLength:16,disabled:n.busy,value:n.draft.symbol,"aria-describedby":`${l}-symbol-hint`,onChange:e=>void a({type:`draft`,patch:{symbol:e.currentTarget.value}})}),/* @__PURE__ */ G(`p`,{id:`${l}-symbol-hint`,className:`number-format-hint`,children:/* @__PURE__ */ G(H,{id:`OT1VRc`})})]}),/* @__PURE__ */ K(`div`,{className:`number-format-preview`,children:[/* @__PURE__ */ G(`span`,{children:/* @__PURE__ */ G(H,{id:`aWAan2`,values:{0:n.target?.addr}})}),/* @__PURE__ */ G(`div`,{role:`status`,"aria-label":t({id:`AN35sL`}),"aria-busy":n.preview===null,children:n.preview===null?t({id:`nSgEqx`}):`text`in n.preview?n.preview.text||t({id:`SlzWuE`}):q(e,n.preview.error)})]}),/* @__PURE__ */ K(`div`,{className:`number-format-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void a(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy,children:/* @__PURE__ */ G(H,{id:`2-gU4F`})})]})]}),n.error&&/* @__PURE__ */ G(`p`,{id:`${l}-error`,role:`alert`,children:q(e,n.error)}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`PXqLeb`})})]})]})}function qa(){let{i18n:e,_:t}=U(),n={thin:t({id:`RGjFMI`}),medium:t({id:`agPptk`}),thick:t({id:`JwqAmu`}),dashed:t({id:`NsYAid`}),dotted:t({id:`zKivET`}),double:t({id:`MOmObo`})},a={outside:t({id:`mBR-Se`}),inside:t({id:`H36Q1N`}),all:t({id:`bHKHqz`}),horizontal:t({id:`TKoOLT`}),vertical:t({id:`T_txGc`}),top:t({id:`_C4X2q`}),right:t({id:`0LXHNL`}),bottom:t({id:`CgYU7p`}),left:t({id:`DThqd8`}),none:t({id:`xr-IDS`})},c=r(D),l=i(en),u=r(j).source!==null,d=V(null),f=V(null),p=z(),m=c.target!==null,h=/^#[\da-f]{6}$/i.test(c.draft.color);return B(()=>{let e=f.current,t=d.current;if(m&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`select`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[m]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:d,className:`tool-button tool-dropdown-button`,type:`button`,"aria-label":t({id:`qUsbzg`}),title:t({id:`qUsbzg`}),disabled:u||c.busy,onClick:()=>void l(`open`),children:`▾`}),m&&/* @__PURE__ */ K(`dialog`,{ref:f,className:`border-panel`,"aria-labelledby":`${p}-title`,"aria-describedby":`${p}-hint`,onKeyDown:X,onCancel:e=>{e.preventDefault(),l(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${p}-title`,children:/* @__PURE__ */ G(H,{id:`b9vOOf`})}),/* @__PURE__ */ G(`p`,{id:`${p}-hint`,children:/* @__PURE__ */ G(H,{id:`VCVsUc`})}),/* @__PURE__ */ K(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),l(`apply`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${p}-position`,children:/* @__PURE__ */ G(H,{id:`p_78dY`})}),/* @__PURE__ */ G(`select`,{id:`${p}-position`,disabled:c.busy,value:c.draft.preset,onChange:e=>void l({type:`draft`,patch:{preset:e.currentTarget.value}}),children:o.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:a[e]},e))}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-style`,children:/* @__PURE__ */ G(H,{id:`IiXo9O`})}),/* @__PURE__ */ G(`select`,{id:`${p}-style`,disabled:c.busy||c.draft.preset===`none`,value:c.draft.style,onChange:e=>void l({type:`draft`,patch:{style:e.currentTarget.value}}),children:s.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:n[e]},e))}),/* @__PURE__ */ K(`fieldset`,{disabled:c.busy||c.draft.preset===`none`,children:[/* @__PURE__ */ G(`legend`,{children:/* @__PURE__ */ G(H,{id:`o_S4BG`})}),/* @__PURE__ */ G(`div`,{className:`border-swatches`,children:Ba.map(e=>/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":t({id:`ox7t_r`,values:{color:e}}),"aria-pressed":c.draft.color.toLowerCase()===e,style:{backgroundColor:e},onClick:()=>void l({type:`draft`,patch:{color:e}})},e))}),/* @__PURE__ */ K(`div`,{className:`border-custom-color`,children:[/* @__PURE__ */ G(`input`,{type:`color`,"aria-label":t({id:`kV58g3`}),value:h?c.draft.color:`#000000`,onChange:e=>void l({type:`draft`,patch:{color:e.currentTarget.value}})}),/* @__PURE__ */ G(`label`,{htmlFor:`${p}-color`,children:/* @__PURE__ */ G(H,{id:`VpExZs`})}),/* @__PURE__ */ G(`input`,{id:`${p}-color`,value:c.draft.color,spellCheck:!1,"aria-invalid":!h,"aria-describedby":c.error?`${p}-error`:void 0,onChange:e=>void l({type:`draft`,patch:{color:e.currentTarget.value}})})]})]}),/* @__PURE__ */ K(`div`,{className:`border-panel-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:c.busy,onClick:()=>void l(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:c.busy,children:/* @__PURE__ */ G(H,{id:`vbdECu`})})]})]}),c.error&&/* @__PURE__ */ G(`p`,{id:`${p}-error`,role:`alert`,children:q(e,c.error)}),c.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`UbUZ_0`})})]})]})}function Ja(){let{i18n:e,_:t}=U(),n=r(it),a=i(dn),o=V(null),s=V(null),c=z(),l=P(n.cell.row,n.cell.col),u=De(n.url);return B(()=>{let e=s.current,t=o.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`input[type="url"]`)?.focus(),()=>{e.close?.(),t?.isConnected&&t.focus({preventScroll:!0})}},[n.open]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:o,className:`tool-button`,type:`button`,"aria-label":t({id:`ySL-Jo`}),title:t({id:`P565an`}),disabled:!n.available||n.busy,onClick:()=>void a(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`↗`})}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`hyperlink-panel`,"aria-labelledby":`${c}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${c}-title`,children:n.existing?t({id:`4_5AQh`}):t({id:`qp_pPt`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`6KmQ8Y`,values:{address:l}})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),a(`save`)},children:[/* @__PURE__ */ K(`fieldset`,{disabled:n.busy,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${c}-url`,children:/* @__PURE__ */ G(H,{id:`8Ntmm5`})}),/* @__PURE__ */ G(`input`,{id:`${c}-url`,type:`url`,value:n.url,required:!0,maxLength:8192,placeholder:`https://example.com`,autoComplete:`off`,onChange:e=>void a({url:e.currentTarget.value})}),/* @__PURE__ */ G(`label`,{htmlFor:`${c}-text`,children:/* @__PURE__ */ G(H,{id:`yYR6za`})}),/* @__PURE__ */ G(`input`,{id:`${c}-text`,value:n.text,maxLength:32767,autoComplete:`off`,onChange:e=>void a({text:e.currentTarget.value})})]}),/* @__PURE__ */ G(`p`,{className:`hyperlink-hint`,children:/* @__PURE__ */ G(H,{id:`kCwoAp`})}),n.error&&/* @__PURE__ */ G(`p`,{className:`hyperlink-error`,role:`alert`,children:q(e,n.error)}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`fBx6gk`})}),/* @__PURE__ */ K(`div`,{className:`hyperlink-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy||!n.existing,onClick:()=>void a(`remove`),children:/* @__PURE__ */ G(H,{id:`484LKL`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void a(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy,children:n.existing?t({id:`y3aU20`}):t({id:`p0Iq25`})})]}),u&&!n.busy&&/* @__PURE__ */ G(`a`,{className:`hyperlink-open`,href:u,target:`_blank`,rel:`noopener noreferrer`,children:/* @__PURE__ */ G(H,{id:`YdDilE`})})]})]})]})}function Ya(){let{i18n:e,_:t}=U(),n=r(Rt),a=i(Cn),o=V(null),s=V(null),c=z(),l=P(n.cell.row,n.cell.col);return B(()=>{let e=s.current,t=o.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.isConnected&&t.focus({preventScroll:!0})}},[n.open]),B(()=>{n.open&&n.loaded&&!n.phase&&s.current?.querySelector(`textarea`)?.focus()},[n.open,n.loaded,n.phase]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:o,className:`tool-button`,type:`button`,"aria-label":t({id:`KiJn9B`}),title:t({id:`KiJn9B`}),disabled:!n.available||n.busy,onClick:()=>void a(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`▧`})}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`note-panel`,"aria-labelledby":`${c}-title`,"aria-busy":n.busy,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${c}-title`,children:n.existing?t({id:`H5X-EM`}):t({id:`ZjZR8L`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`hxm0Tq`,values:{address:l}})}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),a(`save`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${c}-text`,children:/* @__PURE__ */ G(H,{id:`eUhuIV`})}),/* @__PURE__ */ G(`textarea`,{id:`${c}-text`,rows:7,value:n.text,disabled:n.busy||!n.loaded,"aria-describedby":`${c}-hint`,onChange:e=>void a({text:e.currentTarget.value})}),/* @__PURE__ */ K(`p`,{id:`${c}-hint`,className:`note-hint`,children:[/* @__PURE__ */ G(H,{id:`Kth-Rn`,values:{NOTE_MAX_CHARACTERS:g}}),/* @__PURE__ */ K(`span`,{className:`note-count`,children:[Array.from(n.text).length,` / `,g]})]}),n.error&&/* @__PURE__ */ G(`p`,{className:`note-error`,role:`alert`,children:q(e,n.error)}),n.phase===`loading`&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`n-kY0b`})}),n.phase===`saving`&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`c5MaVU`})}),/* @__PURE__ */ K(`div`,{className:`note-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy||!n.existing,onClick:()=>void a(`remove`),children:/* @__PURE__ */ G(H,{id:`0nTPQw`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.phase===`saving`,onClick:()=>void a(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy||!n.loaded,children:n.existing?t({id:`nQO7BF`}):t({id:`ZjZR8L`})})]})]})]})]})}function Xa({thread:e}){let{i18n:t,_:n}=U();return e?/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`p`,{className:`comment-state`,role:`status`,children:e.resolved?/* @__PURE__ */ G(H,{id:`O6H89R`}):/* @__PURE__ */ G(H,{id:`6Ktvn1`})}),/* @__PURE__ */ G(`ol`,{className:`comment-timeline`,"aria-label":n({id:`BNT7SL`}),children:e.entries.map((e,n)=>/* @__PURE__ */ K(`li`,{className:`comment-entry comment-entry-${e.kind}`,children:[/* @__PURE__ */ K(`div`,{className:`comment-byline`,children:[/* @__PURE__ */ G(`strong`,{children:e.author}),/* @__PURE__ */ G(`time`,{dateTime:new Date(e.createdAt).toISOString(),children:new Intl.DateTimeFormat(t.locale,{dateStyle:`medium`,timeStyle:`short`}).format(e.createdAt)})]}),e.kind===`message`?/* @__PURE__ */ G(`p`,{className:`comment-body`,children:e.body}):/* @__PURE__ */ G(`p`,{children:e.kind===`resolve`?/* @__PURE__ */ G(H,{id:`ImQQer`}):/* @__PURE__ */ G(H,{id:`xgL40b`})})]},n))})]}):/* @__PURE__ */ G(`p`,{className:`comment-empty`,children:/* @__PURE__ */ G(H,{id:`isTFAZ`})})}function Za(){let{i18n:e,_:t}=U(),n=r(pt),a=i(pn),o=V(null),s=V(null),u=z(),d=P(n.cell.row,n.cell.col);return B(()=>{let e=s.current,t=o.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.isConnected&&t.focus({preventScroll:!0})}},[n.open]),B(()=>{let e=s.current;if(!n.open||!n.loaded||n.phase||!e)return;let t=e.querySelector(`input`);(t?.value?e.querySelector(`textarea:not(:disabled)`):t)?.focus()},[n.open,n.loaded,n.phase]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:o,className:`tool-button`,type:`button`,"aria-label":t({id:`VbyRUy`}),title:t({id:`VbyRUy`}),disabled:!n.available||n.busy,onClick:()=>void a(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`▤`})}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`comment-panel`,"aria-labelledby":`${u}-title`,"aria-busy":n.busy,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${u}-title`,children:/* @__PURE__ */ G(H,{id:`CCljia`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`g9qIf-`,values:{address:d}})}),n.loaded&&/* @__PURE__ */ G(Xa,{thread:n.thread}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),a(`post`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${u}-author`,children:/* @__PURE__ */ G(H,{id:`lgBND6`})}),/* @__PURE__ */ G(`input`,{id:`${u}-author`,value:n.author,disabled:n.busy||!n.loaded,"aria-describedby":`${u}-identity`,onChange:e=>void a({author:e.currentTarget.value})}),/* @__PURE__ */ G(`p`,{id:`${u}-identity`,className:`comment-hint`,children:/* @__PURE__ */ G(H,{id:`uEWvbF`,values:{COMMENT_AUTHOR_MAX:c}})}),/* @__PURE__ */ G(`label`,{htmlFor:`${u}-body`,children:n.thread?t({id:`MVmg5N`}):t({id:`4jvvK_`})}),/* @__PURE__ */ G(`textarea`,{id:`${u}-body`,rows:4,value:n.body,disabled:n.busy||!n.loaded||n.thread?.resolved,"aria-describedby":`${u}-hint`,onChange:e=>void a({body:e.currentTarget.value})}),/* @__PURE__ */ K(`p`,{id:`${u}-hint`,className:`comment-hint`,children:[/* @__PURE__ */ G(H,{id:`iNpz8V`}),/* @__PURE__ */ K(`span`,{className:`comment-count`,children:[Array.from(n.body).length,` / `,l]})]}),n.error&&/* @__PURE__ */ G(`p`,{className:`comment-error`,role:`alert`,children:q(e,n.error)}),n.phase===`loading`&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`vLMZdC`})}),n.phase===`saving`&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`RxZ9HJ`})}),/* @__PURE__ */ K(`div`,{className:`comment-actions`,children:[n.thread&&/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void a(n.thread?.resolved?`reopen`:`resolve`),children:n.thread.resolved?t({id:`-2Eao6`}):t({id:`pQqW2g`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.phase===`saving`,onClick:()=>void a(`close`),children:/* @__PURE__ */ G(H,{id:`mwtcGl`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy||!n.loaded||n.thread?.resolved,children:n.thread?t({id:`_aept4`}):t({id:`ASnGmQ`})})]})]})]})]})}function Qa(){let{i18n:e,_:t}=U(),n=r(jt),a=i(bn),o=V(null),s=V(null),c=z(),l=n.protection?.mode===`protected`;return B(()=>{let e=s.current,t=o.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`[data-protection-close]`)?.focus(),()=>{e.close?.(),t?.focus({preventScroll:!0})}},[n.open]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:o,type:`button`,className:`tool-button`,"aria-label":t({id:`-TWu4U`}),title:t({id:`-TWu4U`}),disabled:!n.available||n.busy,onClick:()=>void a(`open`),children:/* @__PURE__ */ K(`svg`,{"aria-hidden":`true`,width:`18`,height:`18`,viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,children:[/* @__PURE__ */ G(`path`,{d:`M10 2 3.5 4.5v5c0 4 3 6.7 6.5 8.5 3.5-1.8 6.5-4.5 6.5-8.5v-5Z`}),/* @__PURE__ */ G(`path`,{d:`m6.5 10 2.3 2.3 4.7-4.6`})]})}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`protection-panel`,"aria-labelledby":`${c}-title`,"aria-describedby":`${c}-hint`,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${c}-title`,children:/* @__PURE__ */ G(H,{id:`-TWu4U`})}),/* @__PURE__ */ G(`p`,{className:`protection-sheet`,children:n.sheetName}),/* @__PURE__ */ G(`p`,{id:`${c}-hint`,children:/* @__PURE__ */ G(H,{id:`DLU2oN`})}),n.protection&&/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`p`,{role:`status`,className:`protection-status`,children:t(l?{id:`E6OQlW`}:{id:`aj9DWs`})}),/* @__PURE__ */ G(`h3`,{children:/* @__PURE__ */ G(H,{id:`Vqa2As`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`LL5U4o`})}),/* @__PURE__ */ K(`ul`,{className:`protection-ranges`,"aria-label":t({id:`Vqa2As`}),children:[n.protection.unlockedRanges.length===0&&/* @__PURE__ */ G(`li`,{children:/* @__PURE__ */ G(H,{id:`Y9bkTR`})}),n.protection.unlockedRanges.map((e,r)=>{let i=Gt(e);return/* @__PURE__ */ K(`li`,{children:[/* @__PURE__ */ G(`code`,{children:i}),/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":t({id:`ibJT_S`,values:{address:i}}),disabled:n.busy||l,onClick:()=>void a({remove:r}),children:/* @__PURE__ */ G(H,{id:`t_YqKh`})})]},`${i}-${r}`)})]}),/* @__PURE__ */ K(`button`,{type:`button`,className:`protection-allow`,disabled:n.busy||l||!n.selection||n.protection.unlockedRanges.length>=256,onClick:()=>void a(`allow-selection`),children:[/* @__PURE__ */ G(H,{id:`igsf5M`}),n.selectionAddress&&/* @__PURE__ */ G(`code`,{children:n.selectionAddress})]}),!n.selection&&/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`FZmScW`})})]}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:n.phase===`reading`?t({id:`FG7Jjn`}):t({id:`YZfyZO`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),/* @__PURE__ */ K(`div`,{className:`protection-actions`,children:[/* @__PURE__ */ G(`button`,{"data-protection-close":!0,type:`button`,disabled:n.phase===`saving`,onClick:()=>void a(`close`),children:/* @__PURE__ */ G(H,{id:`yz7wBu`})}),/* @__PURE__ */ G(`button`,{type:`button`,className:`protection-primary`,disabled:n.busy||!n.protection,onClick:()=>void a(l?`unprotect`:`protect`),children:t(l?{id:`oisjJ1`}:{id:`kVXU2u`})})]})]})]})}function $a(){let{i18n:e,_:t}=U(),n=r(ge),a=i(nn),o=V(null),s=V(null),c=V(null),l=z();return B(()=>{let e=s.current,t=o.current;if(n.open&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),()=>{e.close?.(),t?.isConnected&&t.focus({preventScroll:!0})}},[n.open]),B(()=>{n.open&&n.loaded&&!n.phase&&c.current?.focus()},[n.open,n.loaded,n.phase]),/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{ref:o,type:`button`,className:`tool-button`,"aria-label":t({id:`xtIjJL`}),title:t({id:`xtIjJL`}),disabled:!n.available||n.busy,onClick:()=>void a(`open`),children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`ƒ+`})}),n.open&&/* @__PURE__ */ K(`dialog`,{ref:s,className:`custom-formula-panel`,"aria-labelledby":`${l}-title`,"aria-busy":n.busy,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`close`)},children:[/* @__PURE__ */ G(`h2`,{id:`${l}-title`,children:/* @__PURE__ */ G(H,{id:`xtIjJL`})}),/* @__PURE__ */ G(`p`,{className:`custom-formula-hint`,children:/* @__PURE__ */ G(H,{id:`ejTruI`})}),/* @__PURE__ */ K(`div`,{className:`custom-formula-library`,children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-saved`,children:/* @__PURE__ */ G(H,{id:`Zk2iCH`})}),/* @__PURE__ */ K(`select`,{id:`${l}-saved`,value:n.selected,disabled:n.busy||!n.loaded,onChange:e=>void a(e.currentTarget.value?{select:e.currentTarget.value}:`new`),children:[/* @__PURE__ */ G(`option`,{value:``,children:t({id:`nZsuDO`})}),n.definitions.map(e=>/* @__PURE__ */ K(`option`,{value:e.name,children:[e.name,`(`,e.parameters.join(`, `),`)`]},e.name))]}),n.loaded&&n.definitions.length===0&&/* @__PURE__ */ G(`p`,{className:`custom-formula-hint`,children:/* @__PURE__ */ G(H,{id:`xRbHOT`})})]}),/* @__PURE__ */ K(`form`,{onSubmit:e=>{e.preventDefault(),a(`save`)},children:[/* @__PURE__ */ G(`label`,{htmlFor:`${l}-name`,children:/* @__PURE__ */ G(H,{id:`AHOl4W`})}),/* @__PURE__ */ G(`input`,{ref:c,id:`${l}-name`,value:n.name,readOnly:!!n.selected,disabled:n.busy||!n.loaded,autoComplete:`off`,spellCheck:!1,onChange:e=>void a({draft:{name:e.currentTarget.value}})}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-parameters`,children:/* @__PURE__ */ G(H,{id:`9hYxj3`})}),/* @__PURE__ */ G(`input`,{id:`${l}-parameters`,value:n.parameters,disabled:n.busy||!n.loaded,autoComplete:`off`,spellCheck:!1,onChange:e=>void a({draft:{parameters:e.currentTarget.value}})}),/* @__PURE__ */ G(`label`,{htmlFor:`${l}-expression`,children:/* @__PURE__ */ G(H,{id:`vZh_GQ`})}),/* @__PURE__ */ G(`textarea`,{id:`${l}-expression`,rows:4,value:n.expression,spellCheck:!1,disabled:n.busy||!n.loaded,"aria-describedby":`${l}-hint`,onChange:e=>void a({draft:{expression:e.currentTarget.value}})}),/* @__PURE__ */ G(`p`,{id:`${l}-hint`,className:`custom-formula-hint`,children:/* @__PURE__ */ G(H,{id:`G7He-e`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,className:`custom-formula-error`,children:q(e,n.error)}),n.phase===`reading`&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`ruCp-9`})}),n.phase===`saving`&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`WFeJs8`})}),/* @__PURE__ */ K(`div`,{className:`custom-formula-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy||!n.selected,onClick:()=>void a(`remove`),children:/* @__PURE__ */ G(H,{id:`EzQ4N6`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.phase===`saving`,onClick:()=>void a(`close`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`submit`,disabled:n.busy||!n.loaded,children:n.selected?t({id:`B34wYQ`}):t({id:`1dAXgt`})})]})]})]})]})}var eo={Start:{id:`tXkhj_`},Insert:{id:`S8Yqbl`},Formulas:{id:`Su_lDy`},Data:{id:`HKH-W-`},View:{id:`jpctdh`}};function to({id:e}){let{i18n:t,_:n}=U(),a=r(Or),o=i(Wn);return/* @__PURE__ */ G(`div`,{className:`ribbon-tabs`,role:`tablist`,"aria-label":n({id:`FsbChj`}),children:b.map((n,r)=>/* @__PURE__ */ G(`button`,{id:`${e}-${n}`,"aria-controls":`${e}-panel`,"aria-selected":n===a,className:n===a?`ribbon-tab active`:`ribbon-tab`,role:`tab`,type:`button`,tabIndex:n===a?0:-1,onClick:()=>o(n),onKeyDown:e=>{let t;if(e.key===`ArrowRight`)t=(r+1)%b.length;else if(e.key===`ArrowLeft`)t=(r+b.length-1)%b.length;else if(e.key===`Home`)t=0;else if(e.key===`End`)t=b.length-1;else return;e.preventDefault(),o(b[t]),e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)[t]?.focus()},children:t._(eo[n])},n))})}var no=[`Arial`,`Calibri`,`Georgia`,`Times New Roman`];function Z({icon:e,label:t,onClick:n,pressed:r,disabled:i}){return/* @__PURE__ */ G(`button`,{"aria-label":t,"aria-pressed":r,className:`tool-button`,disabled:i,onClick:n,title:t,type:`button`,children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:e})})}function ro(){let{i18n:e,_:t}=U(),n=r(Or),a=e._(eo[n]),o=z(),s=n===`Start`,c=V(null);B(()=>{c.current&&(c.current.scrollLeft=0)},[n]);let l=r(S),u=i(T);return/* @__PURE__ */ K(`div`,{className:`ribbon-shell`,children:[/* @__PURE__ */ G(to,{id:o}),/* @__PURE__ */ G(`span`,{className:`toolbar-divider`,"aria-hidden":`true`}),/* @__PURE__ */ G(`div`,{className:`ribbon-panel`,id:`${o}-panel`,role:`tabpanel`,"aria-labelledby":`${o}-${n}`,children:/* @__PURE__ */ K(`div`,{ref:c,className:`ribbon-tools`,role:`toolbar`,"aria-label":t({id:`K7PUBD`,values:{tabLabel:a}}),children:[/* @__PURE__ */ K(`div`,{className:`ribbon-tool-group`,"data-inactive":!s,children:[/* @__PURE__ */ G(Wi,{}),/* @__PURE__ */ G(qi,{})]}),/* @__PURE__ */ G(Yi,{}),/* @__PURE__ */ K(`div`,{className:`ribbon-tool-group`,"data-inactive":!s&&n!==`Data`,children:[/* @__PURE__ */ G($i,{}),/* @__PURE__ */ G(ta,{}),/* @__PURE__ */ G(na,{}),/* @__PURE__ */ G(sa,{}),/* @__PURE__ */ G(ua,{}),/* @__PURE__ */ G(da,{}),/* @__PURE__ */ G(za,{}),/* @__PURE__ */ G(Qa,{})]}),/* @__PURE__ */ K(`div`,{className:`ribbon-tool-group`,"data-inactive":!s&&n!==`View`,children:[/* @__PURE__ */ G(Zi,{}),/* @__PURE__ */ G(Qi,{}),/* @__PURE__ */ G(ga,{}),/* @__PURE__ */ G(Ji,{})]}),/* @__PURE__ */ K(`div`,{className:`ribbon-tool-group`,"data-inactive":!s&&n!==`Insert`,children:[/* @__PURE__ */ G(fa,{}),/* @__PURE__ */ G(Ma,{}),/* @__PURE__ */ G(Ja,{}),/* @__PURE__ */ G(Ya,{}),/* @__PURE__ */ G(Za,{})]}),/* @__PURE__ */ K(`div`,{className:`ribbon-tool-group`,"data-inactive":!s,children:[/* @__PURE__ */ G(`span`,{className:`tool-separator`,"aria-hidden":`true`}),/* @__PURE__ */ G(`select`,{"aria-label":t({id:`oXmBnV`}),className:`tool-select font-family-select`,onChange:e=>void u({type:`font-family`,value:e.currentTarget.value}),value:l.fontFamily??`Arial`,children:no.map(e=>/* @__PURE__ */ G(`option`,{value:e,children:e},e))}),/* @__PURE__ */ G(Ga,{}),/* @__PURE__ */ G(Z,{icon:`B`,label:t({id:`KmydK6`}),onClick:()=>void u(`bold`),pressed:!!l.bold}),/* @__PURE__ */ G(Z,{icon:`𝐼`,label:t({id:`pzutoc`}),onClick:()=>void u(`italic`),pressed:!!l.italic}),/* @__PURE__ */ G(Z,{icon:`U̲`,label:t({id:`YyXtnN`}),onClick:()=>void u(`underline`),pressed:!!l.underline}),/* @__PURE__ */ G(Z,{icon:`S̶`,label:t({id:`WhOsNE`}),onClick:()=>void u(`strikethrough`),pressed:!!l.strikethrough}),/* @__PURE__ */ G(Z,{icon:`▦`,label:t({id:`b9vOOf`}),onClick:()=>void u(`all-borders`),pressed:Object.values(l.borders??{}).some(e=>e&&e.style!==`none`)}),/* @__PURE__ */ G(qa,{}),/* @__PURE__ */ G(Va,{kind:`fill-color`}),/* @__PURE__ */ G(Va,{kind:`text-color`}),/* @__PURE__ */ G(La,{}),/* @__PURE__ */ G(`span`,{className:`tool-separator`,"aria-hidden":`true`}),/* @__PURE__ */ G(Wa,{}),/* @__PURE__ */ G(Z,{icon:`⇤`,label:t({id:`OoCFeS`}),onClick:()=>void u(`decrease-indent`)}),/* @__PURE__ */ G(Z,{icon:`⇥`,label:t({id:`ECq8zV`}),onClick:()=>void u(`increase-indent`)}),/* @__PURE__ */ G(Z,{icon:`↵`,label:t({id:`ABs-Wx`}),onClick:()=>void u(`wrap-text`),pressed:!!l.wrap}),/* @__PURE__ */ G(ma,{}),/* @__PURE__ */ G(`span`,{className:`tool-separator`,"aria-hidden":`true`}),/* @__PURE__ */ G(Z,{icon:`,0`,label:t({id:`A-5jhW`}),onClick:()=>void u(`thousands-format`),pressed:(l.numberFormat?.kind===`number`||l.numberFormat?.kind===`decimal`)&&l.numberFormat.thousands===!0}),/* @__PURE__ */ G(Z,{icon:`%`,label:t({id:`CoziCm`}),onClick:()=>void u(`percent-format`),pressed:l.numberFormat?.kind===`percent`||l.numberFormat?.kind===`percentage`}),/* @__PURE__ */ G(Z,{icon:`$`,label:t({id:`Z4H86n`}),onClick:()=>void u(`currency-format`),pressed:l.numberFormat?.kind===`currency`}),/* @__PURE__ */ G(Z,{icon:`.0+`,label:t({id:`dev9M3`}),onClick:()=>void u(`increase-decimal`)}),/* @__PURE__ */ G(Z,{icon:`.0−`,label:t({id:`bvQ46H`}),onClick:()=>void u(`decrease-decimal`)}),/* @__PURE__ */ G(Z,{icon:`123`,label:t({id:`0H_eqi`}),onClick:()=>void u(`general-format`),pressed:!l.numberFormat||l.numberFormat.kind===`general`}),/* @__PURE__ */ G(Z,{icon:`▦`,label:t({id:`Lhd0oQ`}),onClick:()=>void u(`date-format`),pressed:l.numberFormat?.kind===`date`}),/* @__PURE__ */ G(Ka,{}),/* @__PURE__ */ G(Ki,{})]}),/* @__PURE__ */ K(`div`,{className:`ribbon-tool-group`,"data-inactive":!s&&n!==`Formulas`,children:[/* @__PURE__ */ G(Sa,{}),/* @__PURE__ */ G(wa,{}),/* @__PURE__ */ G($a,{}),/* @__PURE__ */ G(Ta,{}),/* @__PURE__ */ G(Ea,{}),/* @__PURE__ */ G(Oa,{})]}),/* @__PURE__ */ G(`div`,{className:`toolbar-spacer`}),/* @__PURE__ */ K(`div`,{className:`ribbon-tool-group`,"data-inactive":!s&&n!==`View`,children:[/* @__PURE__ */ G(va,{}),/* @__PURE__ */ G(ya,{}),/* @__PURE__ */ G(ba,{})]})]})})]})}function io(e){return Number.isSafeInteger(e)&&e>0?e:0}function ao(e){return Number.isFinite(e)?Math.trunc(e):0}function oo(e,t,n){return Math.max(t,Math.min(n,e))}function so(e){return e===void 0||!Number.isSafeInteger(e)||e<1?d:Math.min(e,d)}function co(e,t,n,r){if(t===0||n===0||e.rowEnd<e.rowStart||e.colEnd<e.colStart)return{rowStart:0,rowEnd:-1,colStart:0,colEnd:-1};let i=Math.max(1,ao(e.rowEnd)-ao(e.rowStart)+1),a=Math.max(1,ao(e.colEnd)-ao(e.colStart)+1),o=Math.min(t,i,r),s=Math.min(n,a,Math.max(1,Math.floor(r/o))),c=oo(ao(e.rowStart),0,t-o),l=oo(ao(e.colStart),0,n-s);return{rowStart:c,rowEnd:c+o-1,colStart:l,colEnd:l+s-1}}function lo(e,t){return e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd}function uo(e,t,n){return e.request?.kind===`visible-window`&&e.request.sheetId===t&&lo(e.request.window,n)}function fo(e){let t=r(N),{viewportHeight:n,viewportWidth:a,rowHeight:o,colWidth:s}=r(I),c=Mr(()=>({height:n,width:a,rowHeight:o,colWidth:s}),[n,a,o,s]),l=i(Zt),u=i(Ln),{sheetId:d}=e,f=io(e.rowCount),p=io(e.colCount),m=so(e.maxCells),h=e.window.rowStart,g=e.window.rowEnd,_=e.window.colStart,v=e.window.colEnd,y=Mr(()=>co({rowStart:h,rowEnd:g,colStart:_,colEnd:v},f,p,m),[p,v,_,g,h,m,f]),{colEnd:b,colStart:x,rowEnd:S,rowStart:C}=y;R(()=>{S<C||b<x?l():u({sheetId:d,window:{rowStart:C,rowEnd:S,colStart:x,colEnd:b},viewport:c,reason:`viewport`,retainResult:!0,maxCells:m})},[m,l,u,d,b,x,S,C,c]);let w=async()=>{if(S<C||b<x)return;let e=await u({sheetId:d,window:{rowStart:C,rowEnd:S,colStart:x,colEnd:b},viewport:c,reason:`viewport`,retainResult:!0,maxCells:m});if(e.status===`failed`)throw Error(e.error);if(e.status===`superseded`)throw Error(`Projection refresh was superseded.`)},T=uo(t,d,y),E=t.result?.kind===`visible-window`&&t.result.sheetId===d?t.result:void 0,D=E?.window??y,O=E!==void 0&&!lo(E.window,y);return{window:D,cells:E?.cells??[],mergedRanges:E?.mergedRanges,hasResult:E!==void 0,retained:O,status:T?t.status:`idle`,error:T?t.error:void 0,truncated:E?.truncated,refresh:w}}var po=/* @__PURE__ */ new WeakMap,Q=null;function mo(e){let t=po.get(e);if(!t)throw Error(`Unknown owner.`);return t}function ho(e){let t=mo(e);if(t.disposed)throw Error(`Owner has been disposed.`);return t}function go(e){let t=e?ho(e):null,n={disposed:!1,parent:e,children:[],cleanups:[],contexts:new Map(t?.contexts),root:void 0},r={get disposed(){return n.disposed}};return n.root=t?.root??{get disposed(){return n.disposed},onCleanup(e){return ho(r).cleanups.push(e),e}},po.set(r,n),t?.children.push(r),r}function _o(){return Q}function vo(){if(!Q)throw Error(`This operation requires an active owner.`);return ho(Q),Q}function yo(e,t){e&&ho(e);let n=Q;Q=e;try{return t()}finally{Q=n}}function bo(e){return mo(vo()).cleanups.push(e),e}function xo(e){if(e.length===1)throw e[0];if(e.length>1)throw AggregateError(e,`Owner cleanup failed.`)}function So(e){let t=e.children.splice(0),n=e.cleanups.splice(0),r=[];yo(null,()=>{for(let e=t.length-1;e>=0;e--)try{Co(t[e])}catch(e){r.push(e)}for(let e=n.length-1;e>=0;e--)try{n[e]()}catch(e){r.push(e)}}),xo(r)}function Co(e){let t=mo(e);if(!t.disposed){if(t.disposed=!0,t.parent){let n=mo(t.parent).children,r=n.indexOf(e);r!==-1&&n.splice(r,1),t.parent=null}try{So(t)}finally{t.contexts.clear()}}}function wo(e,t){return yo(e,()=>{try{return t(()=>Co(e))}catch(t){try{Co(e)}catch(e){throw AggregateError([t,e],`Owner creation failed.`)}throw t}})}function To(e){let t=Q?ho(Q):null,n=go(null);return t&&(mo(n).contexts=new Map(t.contexts)),wo(n,e)}function Eo(e){return wo(go(vo()),e)}function Do(e){return{id:Symbol(`context`),defaultValue:e}}function Oo(e){if(!Q)return e.defaultValue;let t=ho(Q).contexts;return t.has(e.id)?t.get(e.id):e.defaultValue}function ko(e,t,n){let r=mo(vo()),i=r.contexts.has(e.id),a=r.contexts.get(e.id);r.contexts.set(e.id,t);try{return n()}finally{r.disposed||(i?r.contexts.set(e.id,a):r.contexts.delete(e.id))}}var Ao=Do(void 0),jo=Do(void 0);function Mo(e,t){return ko(jo,e,t)}function No(e){vo();let t=e.store??Oo(Ao);if(!t)throw Error(`An atom binding requires withStore() or an explicit store.`);return t}function Po(e,t){return ko(Ao,e,t)}function Fo(e,t={}){let n=No(t),r=vo(),i=Oo(jo);if(!i)throw Error(`useAtomValue requires a canvas cell setup.`);let a=n.sub(e,i);return r.disposed?a():bo(a),()=>n.getter(e)}function Io(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Lo(e,t,n,r,i,a){let o=0;e.save();try{e.setTransform(i,0,0,i,(0-r.x)*i,(0-r.y)*i),e.beginPath();for(let t of n)e.rect(t.x,t.y,t.width,t.height);e.clip(),e.clearRect(r.x,r.y,r.width,r.height),a&&(e.fillStyle=a,e.fillRect(r.x,r.y,r.width,r.height));for(let i of t){let t=n.some(e=>Io(e,i.bounds));if(Io(i.bounds,r)&&t){e.save();try{let{x:t,y:n,width:r,height:a}=i.bounds;e.beginPath(),e.rect(t,n,r,a),e.clip(),i.paint(e,i.bounds),o++}finally{e.restore()}}}}finally{e.restore()}return o}function Ro(e,t,n,r,i){let a=(n.x-r.x)*i,o=(n.y-r.y)*i;if(n.width!==r.width||n.height!==r.height||![a,o,r.width*i,r.height*i].every(Number.isInteger))return;let s=Math.max(n.x,r.x),c=Math.max(n.y,r.y),l=Math.min(n.x+n.width,r.x+r.width),u=Math.min(n.y+n.height,r.y+r.height);if(l<=s||u<=c)return;let d=(l-s)*i,f=(u-c)*i;e.save();try{e.setTransform(1,0,0,1,0,0),e.beginPath(),e.rect((s-r.x)*i,(c-r.y)*i,d,f),e.clip(),e.globalCompositeOperation=`copy`,e.imageSmoothingEnabled=!1,e.drawImage(t,(s-n.x)*i,(c-n.y)*i,d,f,(s-r.x)*i,(c-r.y)*i,d,f)}finally{e.restore()}let p=[];return c>r.y&&p.push({x:r.x,y:r.y,width:r.width,height:c-r.y}),u<r.y+r.height&&p.push({x:r.x,y:u,width:r.width,height:r.y+r.height-u}),s>r.x&&p.push({x:r.x,y:c,width:s-r.x,height:u-c}),l<r.x+r.width&&p.push({x:l,y:c,width:r.x+r.width-l,height:u-c}),{exposed:p,pixels:d*f}}var zo=Do(void 0);function Bo(e,t){return ko(zo,e,t)}function Vo(e,t,n=!0){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=!1;function c(n){let r=e.getBoundingClientRect(),i=t();return{x:i.x+(r.width?(n.clientX-r.left)*i.width/r.width:-1),y:i.y+(r.height?(n.clientY-r.top)*i.height/r.height:-1)}}function l(t){if(e.ownerDocument.elementFromPoint(t.clientX,t.clientY)!==e)return;let{x:n,y:i}=c(t),a=Array.from(r);for(let e=a.length-1;e>=0;e--){let t=a[e],r=t.bounds;if(t.active&&n>=r.x&&i>=r.y&&n<r.x+r.width&&i<r.y+r.height)return t}}function u(t){i.delete(t),e.hasPointerCapture(t)&&e.releasePointerCapture(t)}function d(t,n,r){if(!t)return;let{x:a,y:o}=c(r),l={nativeEvent:r,x:a,y:o,localX:a-t.bounds.x,localY:o-t.bounds.y,capturePointer(){t.active&&!s&&(e.setPointerCapture(r.pointerId),i.set(r.pointerId,t))},releasePointer(){i.get(r.pointerId)===t&&u(r.pointerId)}};for(let e of Array.from(t.handlers.get(n)??[]))e(l)}function f(e,t){let n=a.get(e.pointerId);n!==t&&(a.delete(e.pointerId),d(n,`pointerleave`,e),t?.active&&!s&&(a.set(e.pointerId,t),d(t,`pointerenter`,e)))}function p(e){let t=e;if(s||t.type===`lostpointercapture`&&!i.has(t.pointerId))return;o.set(t.pointerId,t);let n=t.type;if(n===`lostpointercapture`||n===`pointercancel`){let e=i.get(t.pointerId)??a.get(t.pointerId);try{d(e,`pointercancel`,t)}finally{u(t.pointerId),f(t,void 0),o.delete(t.pointerId)}return}if(n===`pointerleave`){f(t,void 0),i.has(t.pointerId)||o.delete(t.pointerId);return}let r=l(t);f(t,r);let c=i.get(t.pointerId)??(r?.active?r:void 0);if(n===`pointerup`)try{d(c,`pointerup`,t)}finally{u(t.pointerId),t.pointerType===`touch`&&(f(t,void 0),o.delete(t.pointerId))}else(n===`pointerdown`||n===`pointermove`)&&d(c,n,t)}function m(){for(let e of o.values())f(e,l(e))}let h=[`pointerdown`,`pointermove`,`pointerup`,`pointercancel`,`pointerleave`,`lostpointercapture`];if(n){for(let t of h)e.addEventListener(t,p);e.ownerDocument.addEventListener(`scroll`,m,!0)}function g(e){if(!e.active)return;e.active=!1,r.delete(e);let t=[];for(let[n,r]of i){if(r!==e)continue;u(n);let i=o.get(n);try{i&&d(e,`pointercancel`,i)}catch(e){t.push(e)}}for(let[n,r]of a){if(r!==e)continue;a.delete(n);let i=o.get(n);try{i&&d(e,`pointerleave`,i)}catch(e){t.push(e)}}if(e.handlers.clear(),t.length)throw AggregateError(t,`Cell pointer cleanup failed.`)}return{add(e){let t={bounds:e,active:!0,handlers:/* @__PURE__ */ new Map};return r.add(t),t},remove:g,dispose(){s=!0;for(let t of h)e.removeEventListener(t,p);e.ownerDocument.removeEventListener(`scroll`,m,!0);for(let e of i.keys())u(e);r.clear(),a.clear(),o.clear()}}}function $(e){if(!Number.isFinite(e)||e<=0)throw Error(`Canvas dimensions must be positive.`)}function Ho(e,t){let n=e.getContext(`2d`);if(!n)throw Error(`A 2D canvas context is required.`);$(t.width),$(t.height);let r=t.pixelRatio??globalThis.devicePixelRatio??1;return $(r),To(i=>Po(t.store,()=>{let a=_o(),o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set,c={x:0,y:0,width:t.width,height:t.height},l=Vo(e,()=>c,t.pointerEvents!==!1);bo(l.dispose);let u,d=!0,f;function p(){a.disposed||f!==void 0||(f=requestAnimationFrame(()=>{f=void 0,h()}))}function m(e){a.disposed||e&&(e.x>=c.x+c.width||e.y>=c.y+c.height||e.x+e.width<=c.x||e.y+e.height<=c.y)||(e?d||s.add(e):(d=!0,s.clear()),p())}function h(){if(a.disposed)return;f!==void 0&&(cancelAnimationFrame(f),f=void 0);let i=u!==void 0&&(u.x!==c.x||u.y!==c.y);if(!d&&!s.size&&!i)return;let l=performance.now();try{let a=!d&&i&&t.reusePixels&&u?Ro(n,e,u,c,r):void 0,f=d||i&&!a?[c]:[...s,...a?.exposed??[]];d=!1,s.clear();let p=Lo(n,o,f,c,r,t.background);u={...c},t.onFrame?.({cells:p,elapsed:performance.now()-l,reusedPixels:a?.pixels??0})}catch(e){throw d=!0,e}}function g(t,n,i=r){if(a.disposed)throw Error(`Canvas region has been disposed.`);$(t),$(n),$(i),r=i,c={...c,width:t,height:n},e.width=Math.round(t*r),e.height=Math.round(n*r),e.style.width=`${t}px`,e.style.height=`${n}px`,m()}function _(e){if(a.disposed)throw Error(`Canvas region has been disposed.`);if($(e.width),$(e.height),!Number.isFinite(e.x)||!Number.isFinite(e.y))throw Error(`Canvas viewport coordinates must be finite.`);(e.x!==c.x||e.y!==c.y||e.width!==c.width||e.height!==c.height)&&((e.width!==c.width||e.height!==c.height)&&g(e.width,e.height),c={...e},p())}function v(e,n){if($(e.width),$(e.height),!Number.isFinite(e.x)||!Number.isFinite(e.y))throw Error(`Cell coordinates must be finite.`);let r=Object.freeze({...e});return yo(a,()=>Po(t.store,()=>Eo(e=>{let t=_o(),i=l.add(r),a,s=()=>{t.disposed||m(r)};bo(()=>{a&&o.delete(a);try{l.remove(i)}finally{m(r)}});let c=Bo(i,()=>Mo(s,n));if(bo(()=>l.remove(i)),typeof c!=`function`)throw Error(`Cell setup must return a painter.`);if(t.disposed)throw Error(`Cell was disposed during setup.`);return a={bounds:r,paint:c},o.add(a),s(),{invalidate:s,dispose:e,setBounds(e){if(!t.disposed){if($(e.width),$(e.height),!Number.isFinite(e.x)||!Number.isFinite(e.y))throw Error(`Cell coordinates must be finite.`);(r.x!==e.x||r.y!==e.y||r.width!==e.width||r.height!==e.height)&&(m(r),r=Object.freeze({...e}),i.bounds=r,a.bounds=r,s())}}}})))}return bo(()=>{f!==void 0&&cancelAnimationFrame(f),f=void 0,s.clear(),o.clear(),n.save();try{n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,e.width,e.height)}finally{n.restore()}}),g(t.width,t.height,r),{createCell:v,resize:g,setViewport:_,flush:h,dispose:i,invalidate:()=>m(),run:e=>yo(a,()=>Po(t.store,e))}}))}var Uo=[Yn,Ve,sr,bt,xt,Nt,vt,j];function Wo(e,t){let n=e.getter(Ve),r=n?.pickAnchor&&n.pickFocus?{rowStart:Math.min(n.pickAnchor.row,n.pickFocus.row),rowEnd:Math.max(n.pickAnchor.row,n.pickFocus.row),colStart:Math.min(n.pickAnchor.col,n.pickFocus.col),colEnd:Math.max(n.pickAnchor.col,n.pickFocus.col)}:void 0,i=r?[r]:t.selected?[t.selected]:e.getter(Yn),a=e.getter(sr),o=e.getter(bt),s=e.getter(xt),c=e.getter(Nt),l=e.getter(vt).busy||e.getter(j).source!==null;return(e,t)=>{let n=e.range,u=!1,d=0;for(let e of i)n.rowStart>e.rowEnd||n.rowEnd<e.rowStart||n.colStart>e.colEnd||n.colEnd<e.colStart||(u=!0,e.rowStart===n.rowStart&&(d|=1),e.colEnd===n.colEnd&&(d|=2),e.rowEnd===n.rowEnd&&(d|=4),e.colStart===n.colStart&&(d|=8));let f=c.find(e=>e.range.rowStart===n.rowStart&&n.colStart>=e.range.colStart&&n.colStart<=e.range.colEnd),p=!e.merged&&(f||o?.rowStart===n.rowStart&&n.colStart>=o.colStart&&n.colStart<=o.colEnd)?{table:f?.table,disabled:l,active:(f?.rules??s).some(e=>e.colIndex===n.colStart)}:void 0;return{hovered:t,selected:u,edges:d,reference:!!r,showFormulas:a,filter:p}}}function Go(e,t){return e.hovered===t.hovered&&e.selected===t.selected&&e.edges===t.edges&&e.reference===t.reference&&e.showFormulas===t.showFormulas&&!!e.filter==!!t.filter&&e.filter?.table===t.filter?.table&&e.filter?.disabled===t.filter?.disabled&&e.filter?.active===t.filter?.active}function Ko(e,t,n,r){let i=[0];for(let a=e;a<=t;a++){let t=n?.[a-e]??r;if(!Number.isFinite(t)||t<0)throw Error(`Cell sizes must be finite and non-negative.`);i.push(i[i.length-1]+t)}return{offset:n=>n<e?(n-e)*r:n>t+1?i[i.length-1]+(n-t-1)*r:i[n-e],hit:t=>{if(t<0||t>=i[i.length-1])return null;let n=0,r=i.length-1;for(;n<r;){let e=n+r+1>>>1;i[e]<=t?n=e:r=e-1}return e+n},size:i[i.length-1]}}function qo(e,t,n){return t>=e.rowStart&&t<=e.rowEnd&&n>=e.colStart&&n<=e.colEnd}function Jo(e,t={}){let n=t.origin??{x:0,y:0},r=e.window,i=Ko(r.rowStart,r.rowEnd,e.rowHeights,28),a=Ko(r.colStart,r.colEnd,e.columnWidths,120),o=t.rectangle??(e=>({x:n.x+a.offset(e.colStart),y:n.y+i.offset(e.rowStart),width:a.offset(e.colEnd+1)-a.offset(e.colStart),height:i.offset(e.rowEnd+1)-i.offset(e.rowStart)})),s=me({...e,projection:t.projection,scrollTop:t.scrollTop??0,scrollLeft:t.scrollLeft??0}),c=(e.mergeAnchors??e.cells.filter(e=>e.mergedSpan)).filter(e=>e.mergedSpan).map(e=>({cell:e,range:{rowStart:e.row,colStart:e.col,rowEnd:e.row+e.mergedSpan.rows-1,colEnd:e.col+e.mergedSpan.cols-1}})),l=e.mergedRanges??c.map(e=>e.range),u=new Map(e.cells.map(e=>[`${e.row}:${e.col}`,e])),d=[];function f(e,t,c=u.get(`${e.rowStart}:${e.colStart}`)){let l=o(e);if(l.width<=0||l.height<=0||l.x>=n.x+a.size||l.y>=n.y+i.size||l.x+l.width<=n.x||l.y+l.height<=n.y)return;let f=[];if(t)for(let t of[`top`,`right`,`bottom`,`left`]){let n=t===`top`||t===`bottom`,i=t===`top`?e.rowStart:t===`bottom`?e.rowEnd:t===`left`?e.colStart:e.colEnd,a=n?Math.max(e.colStart,r.colStart):Math.max(e.rowStart,r.rowStart),c=n?Math.min(e.colEnd,r.colEnd):Math.min(e.rowEnd,r.rowEnd);for(let e=a;e<=c;e++){let r=n?i:e,a=n?e:i,c=o({rowStart:r,rowEnd:r,colStart:a,colEnd:a});(n?c.width<=0:c.height<=0)||f.push({side:t,bounds:c,border:s(r,a).borders[t]})}}else{let t=s(e.rowStart,e.colStart,c?.format);for(let e of[`top`,`right`,`bottom`,`left`]){if(e===`top`&&t.suppressTop||e===`left`&&t.suppressLeft)continue;let n=t.borders[e];(e!==`top`&&e!==`left`||n&&n.style!==`none`)&&f.push({side:e,bounds:l,border:n})}}d.push({key:`${t?`m`:`c`}:${e.rowStart}:${e.colStart}`,bounds:l,range:e,cell:c,merged:t,borders:f,signature:JSON.stringify([l,c,f])})}for(let e=r.rowStart;e<=r.rowEnd;e++)if(i.offset(e+1)!==i.offset(e))for(let t=r.colStart;t<=r.colEnd;t++)a.offset(t+1)===a.offset(t)||l.some(n=>qo(n,e,t))||f({rowStart:e,rowEnd:e,colStart:t,colEnd:t},!1);for(let{cell:e,range:t}of c)f(t,!0,e);return{items:d,origin:n,width:a.size,height:i.size,rectangle:o,hit(e,t){let r=i.hit(t-n.y),o=a.hit(e-n.x);if(r===null||o===null)return null;let s=c.find(e=>qo(e.range,r,o));return s?{row:s.cell.row,col:s.cell.col}:{row:r,col:o}}}}function Yo(e,t){return e===t||!!(e&&t&&e.length===t.length&&e.every((e,n)=>e===t[n]))}function Xo(e,t){return e.cells===t.cells&&e.mergeAnchors===t.mergeAnchors&&e.mergedRanges===t.mergedRanges&&e.window.rowStart===t.window.rowStart&&e.window.rowEnd===t.window.rowEnd&&e.window.colStart===t.window.colStart&&e.window.colEnd===t.window.colEnd&&Yo(e.rowHeights,t.rowHeights)&&Yo(e.columnWidths,t.columnWidths)}function Zo(e){let t,n,r,i=``,a;return o=>{let s=e.getter(I),c=e.getter(F),l=e.getter(N).result,u=l?.kind===`visible-window`?l:void 0,d=[s.sheetId,s.rowCount,s.colCount,s.rowHeight,s.colWidth,u?.freeze?.rows?s.scrollTop===0:!1,u?.freeze?.cols?s.scrollLeft===0:!1].join(`:`);if(t&&Xo(t,o)&&n===c&&r===u&&i===d)return a;let f=u&&(u.cells===o.cells||u.frozen?.regions.some(e=>e.cells===o.cells)),p=M(s,c,o.window);return a=Jo(o,{origin:f?{x:p.left,y:p.top}:{x:o.window.colStart*120,y:o.window.rowStart*28},projection:u,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,rectangle:f?e=>{let t=M(s,c,e);return{x:t.left,y:t.top,width:t.width,height:t.height}}:void 0}),t=o,n=c,r=u,i=d,a}}function Qo(e,t,n){if(e.measureText(t).width<=n)return t;if(e.measureText(`…`).width>n)return``;let r=Array.from(t),i=0,a=r.length;for(;i<a;){let t=i+a+1>>>1;e.measureText(r.slice(0,t).join(``)+`…`).width<=n?i=t:a=t-1}return r.slice(0,i).join(``)+`…`}function $o(e,t,n,r){let i=[];for(let a of t.split(`
|
|
9
|
+
`)){let t=``;for(let o of a)if(t&&e.measureText(t+o).width>n){if(i.push(t),i.length>=r)return i;t=o}else t+=o;if(i.push(t),i.length>=r)break}return i}function es(e,t,n,r,i,a,o=!1){if(!r)return;let s=n?.format,c=!o&&!!De(n?.hyperlink),l=Math.min(512,Math.max(1,s?.fontSize??12)),u=s?.fontFamily&&/^[A-Za-z0-9, "'\-]+$/.test(s.fontFamily)?s.fontFamily:i.fontFamily,d=e=>`${s?.italic?`italic `:``}${s?.bold?`bold `:``}${e}px ${u}`,f=Math.max(0,Math.min(250,s?.indent??0))*8,p=Math.max(0,t.width-14-f-(a?22:0)),m=Math.max(0,t.height-7);if(p&&m){e.save();try{e.beginPath(),e.rect(t.x+7+f,t.y+3,p,m),e.clip(),e.font=d(l),e.fillStyle=c?i.selection:i.foreground,s?.fgColor&&(e.fillStyle=s.fgColor);let a=s?.overflow===`wrap`||s?.wrap,o=s?.rotation===`vertical`,u=l;s?.shrinkToFit&&!a&&!o&&(u*=Math.min(1,p/Math.max(1,e.measureText(r).width)),e.font=d(u));let h=u*1.2,g=Math.max(1,Math.ceil(m/h)),_=o?Array.from(r).slice(0,g):a?$o(e,r,p,g):[s?.overflow===`ellipsis`||s?.overflow===`clip`?Qo(e,r.replace(/\n/g,` `),p):r.replace(/\n/g,` `)],v=s?.align??(n?.valueKind===`number`?`right`:n?.valueKind===`boolean`||n?.valueKind===`error`?`center`:`left`),y=t.x+7+f,b=v===`right`?y+p:v===`center`||o?y+p/2:y,x=_.length*h,S=t.y+3+(s?.verticalAlign===`top`?0:s?.verticalAlign===`center`?(m-x)/2:m-x);if(e.textBaseline=`top`,e.textAlign=v===`right`?`right`:v===`center`||o?`center`:`left`,typeof s?.rotation==`number`&&s.rotation){let n=t.x+t.width/2,r=t.y+t.height/2;e.translate(n,r),e.rotate(Math.max(-90,Math.min(90,s.rotation))*Math.PI/180),e.translate(-n,-r)}_.forEach((t,n)=>{let r=S+n*h;if(e.fillText(t,b,r),s?.underline||c||s?.strikethrough){let n=e.measureText(t).width,i=e.textAlign===`right`?b-n:e.textAlign===`center`?b-n/2:b;e.strokeStyle=e.fillStyle,e.lineWidth=1;let a=[s?.underline||c?u:null,s?.strikethrough?u*.55:null];for(let t of a)t!==null&&(e.beginPath(),e.moveTo(i,r+t),e.lineTo(i+n,r+t),e.stroke())}})}finally{e.restore()}}}function ts(e,t,n){if(!n)return;let{x:r,y:i,width:a,height:o}=t;e.save(),e.beginPath(),e.rect(r,i,a,o),e.clip();let s=n.conditionalIcon;s&&(e.fillStyle=[`#c93639`,`#b57900`,`#21834a`][s.index],e.font=`700 14px Arial, sans-serif`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(s.set===`three-arrows`?[`↓`,`→`,`↑`][s.index]:s.set===`three-traffic-lights`?`●`:`⚑`,r+10,i+o/2)),n.noteIndicator&&(e.fillStyle=`#c93639`,e.beginPath(),e.moveTo(r+a-7,i+1),e.lineTo(r+a-1,i+1),e.lineTo(r+a-1,i+7),e.closePath(),e.fill()),(n.commentIndicator||n.commentThreadId)&&(e.fillStyle=`#6b4fbb`,e.beginPath(),e.arc(r+a-(n.noteIndicator?11:4),i+4,2.5,0,Math.PI*2),e.fill()),e.restore()}function ns(e,t,n){let{side:r,bounds:i}=t,a=t.border?.style===`none`?void 0:t.border,o=a?.style===`thick`||a?.style===`double`?3:a?.style===`medium`?2:1;e.strokeStyle=n,a?.color&&(e.strokeStyle=a.color),e.lineWidth=a?.style===`double`?1:o,e.setLineDash(a?.style===`dashed`?[4,3]:a?.style===`dotted`?[1,2]:[]);let s=r===`top`||r===`bottom`,c=r===`top`||r===`left`?1:-1,l=r===`top`?i.y:r===`bottom`?i.y+i.height:r===`left`?i.x:i.x+i.width;for(let t of a?.style===`double`?[.5,2.5]:[o/2]){let n=l+c*t;e.beginPath(),e.moveTo(s?i.x:n,s?n:i.y),e.lineTo(s?i.x+i.width:n,s?n:i.y+i.height),e.stroke()}e.setLineDash([])}function rs(e,t,n){let{item:r,appearance:i}=t,a=r.bounds,o=r.cell;e.fillStyle=n.background,o?.format?.bgColor&&(e.fillStyle=o.format.bgColor),e.fillRect(a.x,a.y,a.width,a.height),i.selected&&(e.fillStyle=n.selectionFill,e.fillRect(a.x,a.y,a.width,a.height)),i.hovered&&(e.fillStyle=n.hover,e.fillRect(a.x,a.y,a.width,a.height));let s=o?.dataBar;if(s){e.save(),e.globalAlpha=.6,e.fillStyle=s.color;let t=Math.max(0,a.width-4);e.fillRect(a.x+2+t*s.left/100,a.y+3,t*s.width/100,Math.max(0,a.height-6)),e.restore(),s.axis!==void 0&&(e.fillStyle=n.foreground,e.fillRect(a.x+2+t*s.axis/100,a.y+3,1,Math.max(0,a.height-6)))}o?.conditionalIcon?.showValue!==!1&&es(e,o?.conditionalIcon?{...a,x:a.x+15,width:Math.max(0,a.width-15)}:a,o,Ue(o,i.showFormulas),n,!!i.filter,i.showFormulas),ts(e,a,o);for(let t of r.borders)ns(e,t,n.gridline);if(i.filter){let t=a.x+a.width-21,r=a.y+a.height/2-10;e.fillStyle=n.background,e.fillRect(t,r,19,20),e.strokeStyle=i.filter.active?n.selection:n.gridline,e.lineWidth=1,e.strokeRect(t+.5,r+.5,18,19),e.fillStyle=i.filter.active?n.selection:n.foreground,e.globalAlpha=i.filter.disabled?.4:1,e.beginPath(),e.moveTo(t+5,r+8),e.lineTo(t+14,r+8),e.lineTo(t+9.5,r+13),e.closePath(),e.fill(),e.globalAlpha=1}i.edges&&(e.strokeStyle=i.reference?n.reference:n.selection,e.lineWidth=1,e.setLineDash(i.reference?[4,3]:[]),e.beginPath(),i.edges&1&&(e.moveTo(a.x,a.y+.5),e.lineTo(a.x+a.width,a.y+.5)),i.edges&2&&(e.moveTo(a.x+a.width-.5,a.y),e.lineTo(a.x+a.width-.5,a.y+a.height)),i.edges&4&&(e.moveTo(a.x,a.y+a.height-.5),e.lineTo(a.x+a.width,a.y+a.height-.5)),i.edges&8&&(e.moveTo(a.x+.5,a.y),e.lineTo(a.x+.5,a.y+a.height)),e.stroke(),e.setLineDash([]))}function is(e,t,n){function r(t){if(t.isPrimary===!1||t.pointerType===`touch`)return;let r=e.ownerDocument.elementFromPoint(t.clientX,t.clientY)===e;n.hover(r?n.hit(t.clientX,t.clientY):null)}function i(){n.hover(null)}function a(e){let t=n.hit(e.clientX,e.clientY),r=t&&n.model(t);if(!r?.appearance.filter)return;let{x:i,y:a}=n.point(e.clientX,e.clientY),o=r.item.bounds;return i>=o.x+o.width-22&&a>=o.y+o.height/2-10&&a<=o.y+o.height/2+10?r:void 0}function o(e){a(e)&&(e.stopPropagation(),e.preventDefault())}function s(e){let n=a(e);if(!n||(e.stopPropagation(),e.type===`dblclick`||n.appearance.filter?.disabled))return;let r=n.appearance.filter?.table;t.setter(ce,{type:`open-column`,col:n.item.range.colStart,...r?{table:r}:{}})}return e.ownerDocument.addEventListener(`pointermove`,r),e.addEventListener(`pointerleave`,i),e.addEventListener(`pointerdown`,o),e.addEventListener(`click`,s),e.addEventListener(`dblclick`,s),()=>{e.ownerDocument.removeEventListener(`pointermove`,r),e.removeEventListener(`pointerleave`,i),e.removeEventListener(`pointerdown`,o),e.removeEventListener(`click`,s),e.removeEventListener(`dblclick`,s)}}var as=/* @__PURE__ */ new WeakMap;function os(e,t){return as.set(e,t),()=>as.delete(e)}function ss(e,t,n){return e?as.get(e)?.(t,n)??null:null}var cs={background:`#ffffff`,foreground:`#252b37`,gridline:`#dce1e8`,selection:`#315cda`,selectionFill:`rgba(49,92,218,0.10)`,hover:`rgba(0,133,106,0.08)`,reference:`#00856a`,fontFamily:`Arial, sans-serif`};function ls(t,n,r){let{store:i}=r,a={...cs,...r.theme},o=/* @__PURE__ */ new Map,s=Ho(t,{store:i,width:1,height:1,reusePixels:r.reusePixels??!0,background:a.background,pixelRatio:r.pixelRatio,pointerEvents:!1,onFrame:r.onFrame}),c=r.viewport,l=n,u=Zo(i),d,f=0,p=!1,m,h=-1,g=-1,_=r.pixelRatio??globalThis.devicePixelRatio??1,v=Wo(i,l),y=[];function b(e){return o.get(`m:${e.row}:${e.col}`)??o.get(`c:${e.row}:${e.col}`)}function x(e,n){let r=t.getBoundingClientRect();return{x:d.origin.x+(c?.x??0)+(r.width?(e-r.left)*h/r.width:-1),y:d.origin.y+(c?.y??0)+(r.height?(n-r.top)*g/r.height:-1)}}function S(e,t){if(p||l.interactive===!1)return null;let n=x(e,t);return d.hit(n.x,n.y)}function C(e){let t=v(e.model.item,m===e.model.item.key);Go(t,e.model.appearance)||(e.model={...e.model,appearance:t},i.setter(e.entity,e.model))}function w(){if(!p){v=Wo(i,l);for(let e of o.values())C(e)}}function T(e){let n=e?b(e)?.model.item.key:void 0;if(m===n)return;let r=m;m=n,r&&o.has(r)&&C(o.get(r)),n&&o.has(n)&&C(o.get(n)),t.style.cursor=n?`cell`:`default`}function E(){let e=c??{x:0,y:0,width:d.width,height:d.height},n=r.pixelRatio??globalThis.devicePixelRatio??1;(h!==e.width||g!==e.height||_!==n)&&(h=e.width,g=e.height,_=n,s.resize(Math.max(1,h),Math.max(1,g),_),t.style.width=`${h}px`,t.style.height=`${g}px`),s.setViewport({x:d.origin.x+e.x,y:d.origin.y+e.y,width:Math.max(1,h),height:Math.max(1,g)}),t.dataset.viewportX=String(e.x),t.dataset.viewportY=String(e.y)}function D(e){c=e,E()}function O(n){if(p)throw Error(`Canvas cells have been disposed.`);let r=l;l=n;let h=u(n);if(d===h){(r.selected!==n.selected||r.interactive!==n.interactive)&&(n.interactive===!1&&(m=void 0),w()),E();return}d&&c&&(c={...c,x:c.x+d.origin.x-h.origin.x,y:c.y+d.origin.y-h.origin.y}),d=h,t.dataset.layoutBuilds=String(++f),E(),l.interactive===!1&&(m=void 0),v=Wo(i,l);let g=new Map(d.items.map(e=>[e.key,e]));for(let[e,t]of o)g.get(e)||(t.view.dispose(),o.delete(e));for(let t of d.items){let n=o.get(t.key),r={item:t,appearance:v(t,m===t.key)};if(n)n.view.setBounds(t.bounds),(n.model.item.signature!==t.signature||!Go(n.model.appearance,r.appearance))&&(n.model=r,i.setter(n.entity,r));else{let n=e(r),i=s.createCell(t.bounds,()=>{let e=Fo(n);return t=>rs(t,e(),a)});o.set(t.key,{entity:n,view:i,model:r})}}t.dataset.canvasCells=`true`,t.dataset.cellCount=String(o.size),t.dataset.rowStart=String(l.window.rowStart),t.dataset.colStart=String(l.window.colStart)}function k(){if(!p){p=!0;for(let e of y.reverse())e();s.dispose(),o.clear(),delete t.dataset.canvasCells,delete t.dataset.cellCount,delete t.dataset.rowStart,delete t.dataset.colStart}}try{O(n);for(let e of Uo)y.push(i.sub(e,w));y.push(os(t,S)),y.push(is(t,i,{hit:S,point:x,hover:T,model:e=>b(e)?.model}))}catch(e){throw k(),e}return{update:O,setViewport:D,hitTest:S,flush:s.flush,dispose:k}}function us(e,t){let n=e.parentElement,r=e.closest(`.sheet-scroll`),i=e.closest(`.frozen-pane`),a=e.closest(`.sheet-grid-frame`),o=i??r,s=()=>{if(!o){t.flush();return}let r=o.getBoundingClientRect(),s=n.getBoundingClientRect(),c=i?0:46,l=i?0:J,u=Math.max(1,o.clientWidth-c),d=Math.max(1,o.clientHeight-l),f=i?0:Math.min(128,Math.floor(u/4)),p=i?0:Math.min(128,Math.floor(d/4)),m=r.left+o.clientLeft+c-s.left-f,h=r.top+o.clientTop+l-s.top-p;if(!i&&a){let e=a.getBoundingClientRect();m=Math.min(m,e.right-s.left-u-2*f),h=Math.min(h,e.bottom-s.top-d-2*p)}e.style.position=`relative`,e.style.left=`${m}px`,e.style.top=`${h}px`,t.setViewport({x:m,y:h,width:u+2*f,height:d+2*p}),t.flush()};r?.addEventListener(`scroll`,s,{passive:!0});let c=new ResizeObserver(s);return o&&c.observe(o),s(),{sync:s,dispose(){c.disconnect(),r?.removeEventListener(`scroll`,s)}}}function ds(e){let{_:t}=U(),n=V(null),r=V(),i=V(),o=V(e);o.current=e;let s=a();return B(()=>{let e=n.current,t=getComputedStyle(e),a=(e,n)=>t.getPropertyValue(e).trim()||n,c=ls(e,o.current,{store:s,viewport:{x:0,y:0,width:1,height:1},theme:{background:a(`--surface`,`#fff`),foreground:a(`--text`,`#252b37`),gridline:a(`--gridline`,`#dce1e8`),selection:a(`--primary`,`#315cda`)},onFrame:t=>{e.dataset.paintedCells=String(t.cells),e.dataset.reusedPixels=String(t.reusedPixels??0)}});return r.current=c,i.current=us(e,c),()=>{i.current?.dispose(),i.current=void 0,r.current=void 0,c.dispose()}},[s]),B(()=>{r.current?.update(e),i.current?.sync()},[e]),/* @__PURE__ */ G(`canvas`,{ref:n,"aria-label":t({id:`RIXJ69`}),role:`img`,style:{display:`block`,touchAction:`none`}})}function fs(e){let{_:t}=U(),n={note:t({id:`h2sgft`}),comment:t({id:`ztfoOA`})},i=r(N).result,a=e.anchors??(i?.kind===`visible-window`?i.mergeAnchors:void 0),{renderer:o}=jr(Vr);return o===`canvas`?/* @__PURE__ */ G(ds,{...e,mergeAnchors:a}):/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(mi,{...e,metadataLabels:n}),/* @__PURE__ */ G(gi,{window:e.window,anchors:e.anchors,metadataLabels:n})]})}function ps({focusGrid:e}){let{i18n:t,_:n}=U(),a=r(j),o=r(Te),s=r(we),c=r(Ht),l=r(w),u=r(N).result,d=r(I),f=r(F),p=i(re),m=i(ve),h=i(Cr),g=i(ot),_=z(),v=V(null),y=Yr(v,`cell`),b=V(!1),x=V(!1),S=a.source?.cell??null,C=s.status===`pending`||s.status===`outcome-unknown`,T=Ce(s),E=a.source?.source===`formula-bar`,D=a.source?.source===`keyboard`;if(R(()=>{if(E)return;let e=v.current;if(e?.focus({preventScroll:!0}),D){let t=e?.value.length??0;e?.setSelectionRange(t,t)}else e?.select()},[S?.col,S?.row,E,D]),S===null||E)return null;let O=`cell-editor-${_}-r${S.row}-c${S.col}`,k=l?.id??``,ee=u?.kind===`visible-window`&&u.sheetId===k?ct(u.mergedRanges??[],S):void 0,A={...d,sheetId:k,rowCount:l?.rowCount??0,colCount:l?.colCount??0,rowHeight:J,colWidth:Y},te=M(A,f,ee??{rowStart:S.row,rowEnd:S.row,colStart:S.col,colEnd:S.col}),ne=c?.sheetId===k&&S.row<c.rows,ie=c?.sheetId===k&&S.col<c.cols,ae=t=>{(v.current===null||v.current.id===O)&&(document.activeElement===document.body||document.activeElement===v.current)&&((t===`completed`||t===`cancelled`)&&e(),t===`rejected`&&v.current?.focus({preventScroll:!0}))},oe=async e=>{if(!(b.current||C)){b.current=!0;try{let t=await p();e&&ae(t)}finally{b.current=!1}}},se=async e=>{if(!(b.current||C)){b.current=!0;try{let t=await m({key:e.key,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,isComposing:e.nativeEvent.isComposing});ae(t)}finally{b.current=!1}}},ce=e=>{if(e.stopPropagation(),!(e.nativeEvent.isComposing||e.keyCode===229)&&!y.onFormulaKey(e)){if(e.key===`Enter`&&e.altKey){e.preventDefault();let t=e.currentTarget,n=null;Ir(()=>{n=g({start:t.selectionStart,end:t.selectionEnd})}),n!==null&&t.setSelectionRange(n,n)}else(e.key===`Escape`||e.key===`Enter`||e.key===`Tab`)&&(e.preventDefault(),e.key===`Escape`&&(x.current=!0),se(e))}},le=e=>{x.current?x.current=!1:e.relatedTarget instanceof HTMLElement&&e.relatedTarget.dataset.formulaInput===`true`||e.currentTarget.contains(e.relatedTarget)||oe(!1)},ue=e=>e.stopPropagation(),de=J+te.top+(ne?A.scrollTop:0),fe=46+te.left+(ie?A.scrollLeft:0),pe=Math.max(te.height,Math.min(5,o.split(`
|
|
10
|
+
`).length)*18+6),me=A.scrollTop+J,he=A.scrollLeft+46,ge=c?.sheetId===k?c.height:0,_e=c?.sheetId===k?c.width:0,ye=me+(ne?0:ge)-de,be=he+(ie?0:_e)-fe,xe=fe+te.width-he-A.viewportWidth,Se=de+pe-me-A.viewportHeight,Ee={"--editor-top":`${de}px`,"--editor-height":`${pe}px`,"--editor-left":`${fe}px`,"--editor-width":`${te.width}px`,clipPath:`inset(${ye}px ${xe}px ${Se}px ${be}px)`};return/* @__PURE__ */ K(`div`,{className:`cell-editor`,"data-cell-editor":`true`,onBlur:le,onPointerDown:ue,style:Ee,children:[/* @__PURE__ */ G(`textarea`,{ref:v,"aria-label":n({id:`gUPL38`}),"aria-autocomplete":`list`,"aria-controls":y.activeOption?y.listId:void 0,"aria-activedescendant":y.activeOption,"aria-invalid":T?!0:void 0,"aria-describedby":T?`${O}-feedback`:y.signatureId,disabled:C,id:O,name:O,onChange:e=>h({draft:e.currentTarget.value,caret:e.currentTarget.selectionStart}),onSelect:y.onSelect,onKeyDown:ce,value:o,rows:1}),/* @__PURE__ */ G(Zr,{inputRef:v,id:y.listId,source:`cell`}),T&&/* @__PURE__ */ G(`div`,{className:`cell-editor-feedback`,id:`${O}-feedback`,role:`alert`,children:/* @__PURE__ */ G(`span`,{children:q(t,T.message)})})]})}function ms({focusGrid:e}){let{_:t}=U(),n=r(Lt),a=r(It),o=r(N),s=r(w),c=r(j),l=r(I),u=r(F),d=r(Ht),f=i(Jt),p=i(A);if(R(()=>{a.needsRefresh&&f()},[f,a.needsRefresh]),!n||!s||c.source||o.status!==`ready`||a.busy||a.rule?.kind!==`list`)return null;let m=o.result,h=m?.kind===`visible-window`?ct(m.mergedRanges??[],n):void 0,g={...l,sheetId:s.id,rowCount:s.rowCount,colCount:s.colCount,rowHeight:J,colWidth:Y},_=M(g,u,h??{rowStart:n.row,rowEnd:n.row,colStart:n.col,colEnd:n.col}),v=d?.sheetId===s.id&&n.row<d.rows,y=d?.sheetId===s.id&&n.col<d.cols,b=Math.min(22,_.width),x=Math.min(24,_.height),S=J+_.top+(v?g.scrollTop:0),C=46+_.left+_.width-b+(y?g.scrollLeft:0),T=g.scrollTop+J,E=g.scrollLeft+46,D=Math.max(0,T+(v?0:d?.height??0)-S),O=Math.max(0,E+(y?0:d?.width??0)-C),k=Math.max(0,C+b-E-g.viewportWidth),ee=Math.max(0,S+x-T-g.viewportHeight);return b<=O+k||x<=D+ee?null:/* @__PURE__ */ K(`select`,{className:`cell-validation-list`,"aria-label":t({id:`X-PXwn`}),title:t({id:`LglynE`}),value:``,style:{top:S,left:C,width:b,height:x,clipPath:`inset(${D}px ${k}px ${ee}px ${O}px)`},onPointerDown:e=>e.stopPropagation(),onDoubleClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),onChange:t=>{p(Number(t.currentTarget.value)).then(t=>{t===`completed`&&document.activeElement===document.body&&e()})},children:[/* @__PURE__ */ G(`option`,{value:``,disabled:!0}),a.rule.items.map((e,t)=>/* @__PURE__ */ G(`option`,{value:t,children:e},t))]})}function hs(){let{_:e}=U(),t=r(It).rule?.inputMessage;return!t||!t.title&&!t.message?null:/* @__PURE__ */ K(`aside`,{className:`validation-input-message`,"aria-label":e({id:`XhOOr1`}),children:[t.title&&/* @__PURE__ */ G(`strong`,{children:t.title}),t.message&&/* @__PURE__ */ G(`p`,{children:t.message})]})}function gs(){let{i18n:e,_:t}=U(),n=r(Ft),a=i(Sn),o=V(null),s=z(),c=n!==null&&n.style!==`stop`;if(B(()=>{let e=o.current,t=document.activeElement;if(c&&e)return e.showModal?e.showModal():e.setAttribute(`open`,``),e.querySelector(`button`)?.focus(),()=>{e.close?.(),t?.isConnected&&t.focus({preventScroll:!0})}},[c]),!n)return null;let l=n.title||(n.style===`stop`?t({id:`UeOiKl`}):n.style===`warning`?t({id:`RJr4Pz`}):t({id:`TBhrFT`}));return n.style===`stop`?/* @__PURE__ */ K(`aside`,{className:`validation-stop-message`,role:`status`,"aria-labelledby":`${s}-title`,children:[/* @__PURE__ */ G(`strong`,{id:`${s}-title`,children:l}),/* @__PURE__ */ G(`p`,{children:n.message||t({id:`3iQamk`})}),/* @__PURE__ */ G(`button`,{type:`button`,"aria-label":t({id:`8ChTcP`}),onClick:()=>void a(`cancel`),children:`×`})]}):/* @__PURE__ */ K(`dialog`,{ref:o,className:`validation-error-alert`,"aria-labelledby":`${s}-title`,onKeyDown:X,onCancel:e=>{e.preventDefault(),a(`cancel`)},children:[/* @__PURE__ */ G(`h2`,{id:`${s}-title`,children:l}),/* @__PURE__ */ G(`p`,{children:n.message||t({id:`3iQamk`})}),/* @__PURE__ */ G(`p`,{children:/* @__PURE__ */ G(H,{id:`aGFtVK`})}),n.error&&/* @__PURE__ */ G(`p`,{role:`alert`,children:q(e,n.error)}),n.busy&&/* @__PURE__ */ G(`p`,{role:`status`,children:/* @__PURE__ */ G(H,{id:`P6pmwo`})}),/* @__PURE__ */ K(`div`,{className:`validation-alert-actions`,children:[/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void a(`cancel`),children:/* @__PURE__ */ G(H,{id:`dEgA5A`})}),/* @__PURE__ */ G(`button`,{type:`button`,disabled:n.busy,onClick:()=>void a(`continue`),children:/* @__PURE__ */ G(H,{id:`xGVfLh`})})]})]})}function _s(){let e=r(Qt),t=r(I),n=r(F),i=r(Ht);if(!e||e.sheetId!==t.sheetId)return null;let a=e.axis===`row`?e.index:0,o=e.axis===`column`?e.index:0,s=M(t,n,{rowStart:a,rowEnd:a,colStart:o,colEnd:o}),c=i?.sheetId===e.sheetId&&e.index<(e.axis===`row`?i.rows:i.cols),l=e.axis===`row`?{top:J+s.top+e.pixels+(c?t.scrollTop:0),left:t.scrollLeft,width:t.viewportWidth+46}:{left:46+s.left+e.pixels+(c?t.scrollLeft:0),top:t.scrollTop,height:t.viewportHeight+J};return/* @__PURE__ */ G(`div`,{className:`resize-guide resize-guide-${e.axis}`,style:l,children:/* @__PURE__ */ K(`output`,{"aria-live":`polite`,children:[e.pixels,` px`]})})}var vs=48,ys=18;function bs(e,t,n){return{x:xs(e,n.left,n.right),y:xs(t,n.top,n.bottom)}}function xs(e,t,n){return e<t+vs?-Ss(t+vs-e):e>n-vs?Ss(e-(n-vs)):0}function Ss(e){let t=Math.min(1,Math.max(0,e/vs));return Math.ceil(ys*t*t)}function Cs(e){let t=V(null),n=V(null),r=V(e.onStep);r.current=e.onStep;let i=L(e=>{let r=t.current;(e===void 0||r?.pointerId===e)&&(t.current=null,n.current!==null&&(cancelAnimationFrame(n.current),n.current=null))},[]),a=L(()=>{n.current=null;let i=t.current,o=e.scrollRef.current;if(!e.enabled||i===null||o===null)return;let s=o.getBoundingClientRect(),c=bs(i.clientX,i.clientY,s);if(c.x===0&&c.y===0)return;let l=o.scrollLeft,u=o.scrollTop,d=Math.max(0,o.scrollWidth-o.clientWidth),f=Math.max(0,o.scrollHeight-o.clientHeight);o.scrollLeft=Math.max(0,Math.min(d,l+c.x)),o.scrollTop=Math.max(0,Math.min(f,u+c.y)),r.current({clientX:Math.max(s.left+1,Math.min(s.right-1,i.clientX)),clientY:Math.max(s.top+1,Math.min(s.bottom-1,i.clientY))}),(o.scrollLeft!==l||o.scrollTop!==u)&&(n.current=requestAnimationFrame(a))},[e.enabled,e.scrollRef]),o=L(()=>{n.current===null&&(n.current=requestAnimationFrame(a))},[a]),s=L(e=>{t.current=ws(e),o()},[o]),c=L(e=>{t.current?.pointerId===e.pointerId&&(t.current=ws(e),o())},[o]);return R(()=>(e.enabled||i(),i),[e.enabled,i]),{start:s,stop:i,track:c}}function ws(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY}}function Ts(e){try{e.target.releasePointerCapture(e.id)}catch{}}function Es(e){let{enabled:t=!0,getCellCoord:n,sheetId:a}=e,o=i(Ee),s=i(on),c=i(hr),l=i(Tr),u=V(null),d=r(Vt),f=L(()=>{let e=u.current;e!==null&&(u.current=null,Ts(e),o(!0))},[o]);R(()=>(t||f(),f),[f,t,a]),R(()=>{if(d.status===`active`&&d.interaction?.kind===`drag-selection`)return;let e=u.current;e!==null&&(u.current=null,Ts(e))},[d]);let p=L(e=>{if(!t||e.isPrimary===!1||e.button!==0)return!1;let r=n(e);if(r===null||(e.preventDefault(),f(),c({sheetId:a,coord:r,extend:e.shiftKey,append:e.ctrlKey||e.metaKey}).status!==`applied`))return!1;u.current={id:e.pointerId,target:e.currentTarget};try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}return!0},[f,t,n,a,c]),m=L(e=>{if(!t){f();return}let r=u.current;if(r===null||r.id!==e.pointerId)return;let i=n(e);i!==null&&l({sheetId:a,coord:i})},[f,t,n,a,l]),h=L(e=>{if(!t){f();return}let n=u.current;n!==null&&n.id===e.pointerId&&(u.current=null,Ts(n),s(`end-selection`))},[f,s,t]);return{onPointerCancel:L(e=>{let t=u.current;t!==null&&t.id===e.pointerId&&f()},[f]),onPointerDown:p,onPointerMove:m,onPointerUp:h}}function Ds(e){let t=e.target instanceof Element?e.target.closest(`[data-cell]`):null,n=e.target instanceof Element?e.target:null;return As(t)??ss(n,e.clientX,e.clientY)??Os(e.clientX,e.clientY)}function Os(e,t){let n=document.elementFromPoint?.(e,t);return ss(n,e,t)??As(n?.closest(`[data-cell]`))}function ks(e){let t=Math.max(0,e.clientX-e.bounds.left-e.rowHeaderWidth),n=Math.max(0,e.clientY-e.bounds.top-e.rowHeight),r=t+(t<(e.frozenWidth??0)?0:e.scrollLeft),i=n+(n<(e.frozenHeight??0)?0:e.scrollTop);if(r<0||i<0)return null;let a=Ke(i,e.rowCount,e.rowHeight,e.rowHeights),o=Ke(r,e.colCount,e.colWidth,e.colWidths);return a<e.rowCount&&o<e.colCount?{row:a,col:o}:null}function As(e){let[t,n]=e?.dataset.cell?.split(`:`).map(Number)??[];return Number.isInteger(t)&&Number.isInteger(n)?{row:t,col:n}:null}function js(){let e=r(it),t=i(Kt),n=i(dn);return{onKeyDown(t){return!e.available||t.nativeEvent.isComposing||t.altKey||t.shiftKey||!(t.metaKey||t.ctrlKey)||t.key.toLowerCase()!==`k`?!1:(t.preventDefault(),n(`open`),!0)},onPointerDown(e){if(e.button!==0||e.shiftKey||e.altKey||!(e.metaKey||e.ctrlKey))return!1;let n=Ds(e),r=n?De(t(n)??void 0):null;return r?(e.preventDefault(),window.open(r,`_blank`,`noopener,noreferrer`),!0):!1}}}function Ms(e){let t=r(w),n=r(Qn),a=r(j),o=r(ze),s=r(Pe),c=r(Vt),l=i(on),u=r(I),d=r(F),f=r(Ht),p=i(be),m=i(mr),h=i(ir),g=i(Tr),_=js(),v=V(null),y=V(null);bi(y);let b=L(()=>v.current?.focus({preventScroll:!0}),[]),x=Es({enabled:t!==null,getCellCoord:Ds,sheetId:t?.id??``}),S=L(({clientX:e,clientY:n})=>{if(t===null)return;let r=y.current,i=Os(e,n)??(r===null?null:ks({clientX:e,clientY:n,bounds:r.getBoundingClientRect(),scrollTop:r.scrollTop,scrollLeft:r.scrollLeft,rowHeight:J,colWidth:Y,colWidths:d.colWidthsBySheet[t.id],rowHeaderWidth:46,rowCount:t.rowCount,colCount:t.colCount,rowHeights:d.rowHeightsBySheet[t.id],frozenHeight:f?.sheetId===t.id?f.height:0,frozenWidth:f?.sheetId===t.id?f.width:0}));i!==null&&g({sheetId:t.id,coord:i})},[t,d,g,f]),C=Cs({enabled:t!==null,scrollRef:y,onStep:S}),T=C.stop,E=c.status===`active`&&c.interaction?.kind===`drag-selection`;return R(()=>{E||T()},[E,T]),R(()=>{let e=y.current;if(e===null)return;let t=Math.max(0,e.scrollHeight-e.clientHeight),n=Math.min(u.scrollTop,t);e.scrollTop!==n&&(e.scrollTop=n);let r=Math.max(0,e.scrollWidth-e.clientWidth),i=Math.min(u.scrollLeft,r);e.scrollLeft!==i&&(e.scrollLeft=i)},[u.scrollLeft,u.scrollTop]),{focusGrid:b,gridRef:v,onDoubleClick:n=>{if(t===null||e.retained||o||s.mode!==`idle`)return;let r=Ds(n);if(r===null)return;let i=n.currentTarget,c=()=>i.isConnected&&(document.activeElement===document.body||document.activeElement===v.current),l=e=>{if(e||!c()||a.source===null)return;let t=a.source.source===`formula-bar`?`[data-formula-input="true"]`:`[data-cell-editor] textarea`;v.current?.closest(`.workbook`)?.querySelector(t)?.focus({preventScroll:!0})},u=m({sheetId:t.id,cell:r,waitForPending:!0,isCurrent:c});typeof u==`boolean`?l(u):u.then(l)},onKeyDown:r=>{if(r.target instanceof HTMLElement&&r.target.closest(`button, input, textarea`)||t===null||a.source!==null||s.mode===`idle`&&_.onKeyDown(r))return;if(s.mode!==`idle`&&!r.nativeEvent.isComposing){if(r.key===`Enter`){r.preventDefault(),l(`apply`);return}if(r.key===`F2`||Is(r)){r.preventDefault();return}}let i=Ns(r,{...u,viewportHeight:Math.max(0,u.viewportHeight-(f?.sheetId===t.id?f.height:0))});i!==null&&(r.preventDefault(),p({sheetId:t.id,cell:{row:n.activeCell.row,col:n.activeCell.col},keyboard:i,allowEditing:!e.retained}))},onPointerCancel:e=>{C.stop(e.pointerId),x.onPointerCancel(e)},onPointerDown:t=>{if(e.retained||!o&&s.mode===`idle`&&_.onPointerDown(t))return;let n=Ds(t);n!==null&&(o||b(),x.onPointerDown(t)&&n!==null&&t.button===0&&t.isPrimary!==!1&&C.start(t))},onPointerMove:e=>{x.onPointerMove(e),C.track(e)},onPointerUp:e=>{C.stop(e.pointerId),x.onPointerUp(e)},onScroll:e=>{let{scrollLeft:t,scrollTop:n}=e.currentTarget;h({scrollTop:n,scrollLeft:t})},scrollRef:y}}function Ns(e,t){if(e.nativeEvent.isComposing)return null;let n={key:e.key,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey};return(e.ctrlKey||e.metaKey)&&!e.altKey&&[`z`,`y`].includes(e.key.toLowerCase())||(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&[`d`,`r`].includes(e.key.toLowerCase())?n:Ps(e.key)||e.key===`Home`||e.key===`End`?e.altKey?null:n:e.key===`Enter`||e.key===`Tab`?e.ctrlKey||e.metaKey||e.altKey?null:n:e.key===`PageUp`||e.key===`PageDown`?e.ctrlKey||e.metaKey||e.altKey?null:{...n,pageRowDelta:Fs(t)}:e.key===`Escape`||e.key===`F2`||e.key===`Backspace`||e.key===`Delete`?e.ctrlKey||e.metaKey||e.altKey?null:n:Is(e)?n:null}function Ps(e){return e===`ArrowUp`||e===`ArrowDown`||e===`ArrowLeft`||e===`ArrowRight`}function Fs(e){return Math.max(1,Math.floor(e.viewportHeight/e.rowHeight))}function Is(e){return e.key.length===1&&!e.nativeEvent.isComposing&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function Ls(e){let t=r(j).source!==null,n=i(Pn);function a(e){return!t&&!(e.target instanceof HTMLElement&&e.target.closest(`input, textarea, [contenteditable="true"]`))}let o=(t,r)=>{a(t)&&(t.preventDefault(),e||n({operation:r,write:Oi}))};return{onCopy:e=>o(e,`copy`),onCut:e=>o(e,`cut`),onPaste:t=>{if(!a(t)||(t.preventDefault(),e||!t.clipboardData.types.includes(`text/plain`)))return;let r=t.clipboardData.getData(`text/plain`),i=Di(t.clipboardData.getData(`text/html`));n({operation:`paste`,read:async()=>({text:r,token:i})})}}}function Rs(){let e=r(w),t=r(I),n=r(F),a=i(at),o=e?.id,s=e?.rowCount,c=e?.colCount;return R(()=>{o!==void 0&&s!==void 0&&c!==void 0&&a(_i(s,c,o))},[c,s,a,o]),qe(t,o?n.rowHeightsBySheet[o]:void 0,o?n.colWidthsBySheet[o]:void 0)}function zs(e){let t=e.closest(`.sheet-grid-frame`)?.querySelector(`.grid-surface`);if(!t)return null;let n=document.createElement(`table`);n.className=`spreadsheet-grid`,n.style.cssText=`position:absolute;visibility:hidden;pointer-events:none;`;let r=n.insertRow(),i=r.insertCell();i.className=`cell`,r.insertCell(),t.append(n);try{let e=getComputedStyle(i),t=e=>Number.parseFloat(e);return{fontFamily:e.fontFamily,fontSize:t(e.fontSize),lineHeight:t(e.lineHeight),paddingTop:t(e.paddingTop),paddingBottom:t(e.paddingBottom),paddingLeft:t(e.paddingLeft),paddingRight:t(e.paddingRight),borderTop:t(e.borderTopWidth),borderBottom:t(e.borderBottomWidth),borderLeft:t(e.borderLeftWidth),borderRight:t(e.borderRightWidth)}}finally{n.remove()}}function Bs({axis:e,index:t,label:n,focusGrid:a}){let{_:o}=U(),s=o(e===`row`?{id:`Q7BPyr`}:{id:`TTzfXy`}),c=r(w),l=r(Qt),u=i(Dn),d=r(N),f=r(j).source!==null,p=r(Zn),m=r(I),h=r(F),g=V(null),_=l?.sheetId===c?.id&&l?.axis===e&&l.index===t,v=_?l?.pointerId:void 0,y=f||p.busy||!!p.target||d.status!==`ready`,b=_?l.pixels:e===`row`?Xe(h,c?.id??``,t,m.rowHeight):Ye(h,c?.id??``,t,m.colWidth),x=n=>{if(y)return;let r=zs(n);r&&Promise.resolve(u({phase:`auto-fit`,axis:e,index:t,layout:r})).then(a)};return R(()=>{if(v===void 0)return;let e=()=>{u({phase:`cancel`,pointerId:v}),g.current?.hasPointerCapture(v)&&g.current.releasePointerCapture(v)},t=t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),e(),a())};return document.addEventListener(`keydown`,t,!0),window.addEventListener(`blur`,e),()=>{document.removeEventListener(`keydown`,t,!0),window.removeEventListener(`blur`,e),u({phase:`cancel`,pointerId:v})}},[v,u,a]),/* @__PURE__ */ G(`span`,{ref:g,className:`grid-resize-handle grid-resize-${e}`,role:`separator`,tabIndex:y?-1:0,"aria-label":o({id:`K5i09q`,values:{axisLabel:s,label:n}}),"aria-orientation":e===`row`?`horizontal`:`vertical`,"aria-valuemin":e===`row`?16:40,"aria-valuemax":e===`row`?512:1024,"aria-valuenow":b,"aria-disabled":y,title:o({id:`_7cr0t`,values:{axisLabel:s}}),onPointerDown:n=>{n.preventDefault(),n.stopPropagation(),!(y||n.button!==0||n.isPrimary===!1)&&u({phase:`start`,axis:e,index:t,pointerId:n.pointerId,position:e===`row`?n.clientY:n.clientX})===!0&&(n.currentTarget.focus({preventScroll:!0}),n.currentTarget.setPointerCapture(n.pointerId))},onPointerMove:t=>{t.stopPropagation(),u({phase:`move`,pointerId:t.pointerId,position:e===`row`?t.clientY:t.clientX})},onPointerUp:e=>{e.stopPropagation(),u({phase:`commit`,pointerId:e.pointerId}),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)},onPointerCancel:e=>{u({phase:`cancel`,pointerId:e.pointerId})},onLostPointerCapture:e=>{u({phase:`cancel`,pointerId:e.pointerId})},onClick:e=>e.stopPropagation(),onDoubleClick:e=>{e.preventDefault(),e.stopPropagation(),x(e.currentTarget)},onKeyDown:n=>{if(n.key===`Enter`){n.preventDefault(),n.stopPropagation(),x(n.currentTarget);return}let r=(e===`row`?[`ArrowUp`,`ArrowDown`]:[`ArrowLeft`,`ArrowRight`]).indexOf(n.key);r<0||y||(n.preventDefault(),n.stopPropagation(),u({phase:`start`,axis:e,index:t,pointerId:-1,position:0})===!0&&(u({phase:`move`,pointerId:-1,position:r===0?-10:10}),u({phase:`commit`,pointerId:-1})))}})}function Vs({axis:e,index:t,focusGrid:n,style:a}){let{_:o}=U(),s=r(w),c=r(Qn),l=i(Un),u=e===`row`?String(t+1):Je(t),d=e===`row`?t>=c.range.rowStart&&t<=c.range.rowEnd:t>=c.range.colStart&&t<=c.range.colEnd;return/* @__PURE__ */ K(`div`,{className:d?`sheet-heading heading-selected`:`sheet-heading`,style:a,children:[/* @__PURE__ */ G(`button`,{className:`sheet-heading-button`,role:e===`column`?`columnheader`:void 0,type:`button`,"aria-label":o(e===`row`?{id:`sfkwPx`,values:{label:u}}:{id:`q5g1ph`,values:{label:u}}),"aria-selected":e===`column`?d:void 0,"aria-pressed":e===`row`?d:void 0,onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:async r=>{s&&await l({kind:e,sheetId:s.id,index:t,extend:r.shiftKey})&&n()},children:u}),/* @__PURE__ */ G(Bs,{axis:e,index:t,label:u,focusGrid:n})]})}function Hs({rowStart:e,rowHeights:t,colStart:n,columnWidths:a,rowStyle:o,columnStyle:s,focusGrid:c}){let{_:l}=U(),u=r(w),d=r(Qn),f=i(Un),p=0;return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`button`,{className:`sheet-corner`,type:`button`,"aria-label":l({id:`hNjsIA`}),"aria-pressed":d.selection.kind===`all`,onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:async()=>{u&&await f({kind:`all`,sheetId:u.id})&&c()},children:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,children:`◢`})}),/* @__PURE__ */ G(`div`,{className:`column-headers`,role:`row`,style:s,children:a.map((e,t)=>e===0?null:(p++,/* @__PURE__ */ G(Vs,{axis:`column`,index:n+t,focusGrid:c,style:{gridColumn:p}},n+t)))}),/* @__PURE__ */ G(`div`,{className:`row-headers grid-window`,style:o,children:t.map((t,n)=>t===0?null:/* @__PURE__ */ G(Vs,{axis:`row`,index:e+n,focusGrid:c},e+n))})]})}function Us({focusGrid:e}){let t=r(N).result,n=r(I),i=r(F);if(t?.kind!==`visible-window`||t.sheetId!==n.sheetId||!t.frozen)return null;let{frozen:a,freeze:o}=t;if(!o||!o.rows&&!o.cols)return null;let s=Math.min(a.width,n.viewportWidth),c=Math.min(a.height,n.viewportHeight),l=J,u=e=>M(n,i,e),d=e=>Xe(i,t.sheetId,e,n.rowHeight),f=e=>Ye(i,t.sheetId,e,n.colWidth),p=/* @__PURE__ */ new Set,m=/* @__PURE__ */ new Set;for(let e of a.regions){if(e.pane!==`left`)for(let t=e.window.rowStart;t<=e.window.rowEnd;t++)p.add(t);if(e.pane!==`top`)for(let t=e.window.colStart;t<=e.window.colEnd;t++)m.add(t)}let h={corner:{top:l,left:46,width:s,height:c},top:{top:l,left:46+s,width:n.viewportWidth-s,height:c},left:{top:l+c,left:46,width:s,height:n.viewportHeight-c}};return/* @__PURE__ */ K(`div`,{className:`frozen-viewport`,style:{width:n.viewportWidth+46,height:n.viewportHeight+l},children:[[`top`,`left`,`corner`].map(e=>{let r=h[e];return r.width<=0||r.height<=0?null:/* @__PURE__ */ G(`div`,{className:`frozen-pane`,"data-frozen-pane":e,style:r,children:a.regions.filter(t=>t.pane===e).map(r=>{let i=r.window,a=u(i),o={position:`absolute`,transform:`none`,top:a.top-(e===`left`?n.scrollTop+c:0),left:a.left-(e===`top`?n.scrollLeft+s:0),height:a.height,"--grid-window-width":`${a.width}px`};return/* @__PURE__ */ G(`div`,{className:`grid-surface`,style:o,children:/* @__PURE__ */ G(fs,{window:i,anchors:r.mergeAnchors,cells:r.cells,mergedRanges:t.mergedRanges,rowHeights:Array.from({length:i.rowEnd-i.rowStart+1},(e,t)=>d(i.rowStart+t)),columnWidths:Array.from({length:i.colEnd-i.colStart+1},(e,t)=>f(i.colStart+t))})},`${i.rowStart}:${i.colStart}`)})},e)}),/* @__PURE__ */ G(`div`,{className:`frozen-column-headers`,style:{left:46,width:s,height:l},children:[...m].map(t=>{let n=u({rowStart:0,rowEnd:0,colStart:t,colEnd:t});return/* @__PURE__ */ G(Vs,{axis:`column`,index:t,focusGrid:e,style:{position:`absolute`,left:n.left,width:f(t),height:l}},t)})}),/* @__PURE__ */ G(`div`,{className:`frozen-row-headers`,style:{top:l,width:46,height:c},children:[...p].map(t=>{let n=u({rowStart:t,rowEnd:t,colStart:0,colEnd:0});return/* @__PURE__ */ G(Vs,{axis:`row`,index:t,focusGrid:e,style:{position:`absolute`,top:n.top,width:46,height:d(t)}},t)})})]})}var Ws=20;function Gs({focusGrid:e}){let{_:t}=U(),n=r(Ot),a=r(w),o=r(I),s=r(F),c=r(Ht),l=r(kt),u=r(j).source!==null,d=r(N),f=i(yn);if(!a||!n.rows.length&&!n.columns.length)return null;let p=At(n.rows),m=At(n.columns),h=Math.max(0,...p.map(e=>e.level)),g=Math.max(0,...m.map(e=>e.level)),_=h?(h+1)*Ws:0,v=g?(g+1)*Ws:Ws,y=l.busy||u||d.status!==`ready`,b=(t,n)=>{f({axis:t,action:{kind:`show-level`,level:n}}).then(e)};return/* @__PURE__ */ K(W,{children:[/* @__PURE__ */ G(`div`,{className:`outline-corner`,style:{width:_,height:v},"aria-label":t({id:`2nW6By`}),children:h>0&&Array.from({length:h+1},(e,n)=>/* @__PURE__ */ G(`button`,{type:`button`,disabled:y,"aria-label":t({id:`UyFS6j`,values:{0:n+1}}),onClick:()=>b(`row`,n+1),children:n+1},n))}),[[`row`,p],[`column`,m]].map(([n,r])=>{let i=n===`row`,l=i?a.rowCount:a.colCount,u=i?J:Y,d=(i?s.rowHeightsBySheet:s.colWidthsBySheet)[a.id],p=e=>Ge(e,l,u,d),m=i?J:46,h=i?o.scrollTop:o.scrollLeft,x=m+(i?o.viewportHeight:o.viewportWidth),S=c?.sheetId===a.id?i?c.rows:c.cols:0,C=m+p(S),w=(e,t)=>m+p(e)-(t?0:h);return/* @__PURE__ */ K(`div`,{className:`outline-gutter outline-${n}`,"aria-label":t(i?{id:`XoPzXO`}:{id:`VGFJ_s`}),style:i?{width:_}:{height:v},children:[!i&&g>0&&/* @__PURE__ */ G(`div`,{className:`outline-column-levels`,children:Array.from({length:g+1},(e,n)=>/* @__PURE__ */ G(`button`,{type:`button`,disabled:y,"aria-label":t({id:`21L4AA`,values:{0:n+1}}),onClick:()=>b(`column`,n+1),children:n+1},n))}),r.filter(e=>!e.hiddenByParent).map(r=>{let a=r.level*Ws-Ws/2,o=w(r.end+1,r.end<S),s=r.end<S?m:C,c=o>=s&&o<=x,l=Math.min(Math.max(o-9,s),x-Ws),u=[{start:r.start,end:Math.min(r.end+1,S),fixed:!0},{start:Math.max(r.start,S),end:r.end+1,fixed:!1}],d=t(i?{id:`IrT6uD`,values:{0:r.start+1,1:r.end+1}}:{id:`13oyIk`,values:{0:P(0,r.start).slice(0,-1),1:P(0,r.end).slice(0,-1)}});return/* @__PURE__ */ K(`div`,{children:[!r.collapsed&&u.map((e,t)=>{let n=Math.max(w(e.start,e.fixed),e.fixed?m:C),r=Math.min(w(e.end,e.fixed),e.fixed?C:x);return e.start>=e.end||r<=n?null:/* @__PURE__ */ G(`span`,{"aria-hidden":`true`,className:`outline-line`,style:i?{left:a,top:n,height:r-n}:{top:a,left:n,width:r-n}},t)}),c&&/* @__PURE__ */ G(`button`,{type:`button`,className:`outline-toggle`,disabled:y,style:i?{left:a-9,top:l}:{top:a-9,left:l},"aria-label":r.collapsed?t({id:`NSU8Gn`,values:{label:d,0:r.level}}):t({id:`nX8FNG`,values:{label:d,0:r.level}}),"aria-expanded":!r.collapsed,title:d,onClick:()=>void f({axis:n,action:{kind:`set-collapsed`,index:r.index,collapsed:!r.collapsed}}).then(e),children:r.collapsed?`+`:`−`})]},r.index)})]},n)})]})}function Ks(e,t,n,r){let i=M(t,n,e),a=(e,t,n,r,i,a,o)=>{let s=i?e:Math.max(o,e-n),c=t-(a?0:n);return{start:Math.max(0,s),end:Math.min(r,c),corner:c,visible:c>(a?0:o)&&c<=r}},o=a(i.left,i.left+i.width,t.scrollLeft,t.viewportWidth,e.colStart<(r?.cols??0),e.colEnd<(r?.cols??0),r?.width??0),s=a(i.top,i.top+i.height,t.scrollTop,t.viewportHeight,e.rowStart<(r?.rows??0),e.rowEnd<(r?.rows??0),r?.height??0);return{left:o.start,top:s.start,width:Math.max(0,o.end-o.start),height:Math.max(0,s.end-s.start),cornerX:o.corner,cornerY:s.corner,cornerVisible:o.visible&&s.visible&&i.width>0&&i.height>0}}function qs({scrollRef:e,focusGrid:t}){let{_:n}=U(),a=r(Qn),o=r(Xn),s=r(I),c=r(F),l=r(Ht),u=r(N),d=r(j),f=r(_e),p=r(Oe),m=p!==null,h=i(Se),g=V(null),_=V(null),v=l?.sheetId===s.sheetId?l:null,y=[`cell`,`range`].includes(a.selection.kind)&&o.length===1&&!d.source&&!f.busy&&u.status===`ready`&&u.result?.sheetId===a.selection.sheetId,b=({clientX:t,clientY:n})=>{let r=e.current;if(!r)return;let i=r.getBoundingClientRect(),a=ks({clientX:Math.max(i.left+46+1,Math.min(i.left+r.clientWidth-1,t)),clientY:Math.max(i.top+J+1,Math.min(i.top+r.clientHeight-1,n)),bounds:i,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft,rowHeaderWidth:46,rowCount:s.rowCount,colCount:s.colCount,rowHeight:s.rowHeight,colWidth:s.colWidth,rowHeights:c.rowHeightsBySheet[s.sheetId??``],colWidths:c.colWidthsBySheet[s.sheetId??``],frozenHeight:v?.height,frozenWidth:v?.width});a&&h({type:`move`,coord:a})},x=Cs({enabled:s.rowCount>0,scrollRef:e,onStep:b}),S=x.stop,C=L(()=>{S();let e=_.current?.id;_.current=null,e!==void 0&&g.current?.hasPointerCapture(e)&&g.current.releasePointerCapture(e)},[S]);R(()=>{if(!m)return;let e=e=>{e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),h({type:`cancel`})):(e.key===`Control`||e.key===`Meta`)&&h({type:`copy`,copy:e.ctrlKey||e.metaKey})},t=()=>{h({type:`cancel`})};return window.addEventListener(`keydown`,e,!0),window.addEventListener(`keyup`,e,!0),window.addEventListener(`blur`,t),()=>{window.removeEventListener(`keydown`,e,!0),window.removeEventListener(`keyup`,e,!0),window.removeEventListener(`blur`,t)}},[m,h]),R(()=>{m||(C(),h({type:`cancel`}))},[m,C,h]),R(()=>()=>{h({type:`cancel`})},[h]);let w=Ks(a.range,s,c,v),T=p&&Ks(p.range,s,c,v),E=(e,n=!1)=>{e.stopPropagation(),_.current?.id===e.pointerId&&(!n&&p?.direction&&b(e),C(),h(n?{type:`cancel`}:{type:`finish`,copy:e.ctrlKey||e.metaKey}),t())},D=J;return/* @__PURE__ */ K(`div`,{className:`fill-handle-viewport`,style:{width:s.viewportWidth+46,height:s.viewportHeight+D},children:[T&&p?.direction&&/* @__PURE__ */ G(`div`,{className:`fill-handle-preview`,"data-testid":`fill-preview`,style:{left:T.left+46,top:T.top+D,width:T.width,height:T.height}}),/* @__PURE__ */ G(`button`,{ref:g,type:`button`,"aria-label":n({id:`hxmq2l`}),tabIndex:-1,disabled:!y&&!p,title:n({id:`5jN07E`}),className:`fill-handle`,"data-mode":p?.copy?`copy`:`auto`,style:{left:46+w.cornerX-6,top:D+w.cornerY-6,visibility:(y||p)&&w.cornerVisible?`visible`:`hidden`},onDoubleClick:e=>{e.preventDefault(),e.stopPropagation(),y&&(C(),h({type:`extend-down`,copy:e.ctrlKey||e.metaKey}),t())},onPointerDown:e=>{e.stopPropagation(),y&&e.button===0&&e.isPrimary!==!1&&(e.preventDefault(),_.current={id:e.pointerId,x:e.clientX,y:e.clientY,moved:!1},e.currentTarget.setPointerCapture(e.pointerId),h({type:`start`,copy:e.ctrlKey||e.metaKey}))},onPointerMove:e=>{e.stopPropagation();let t=_.current;t?.id===e.pointerId&&(!t.moved&&Math.hypot(e.clientX-t.x,e.clientY-t.y)<3||(t.moved=!0,b(e),h({type:`copy`,copy:e.ctrlKey||e.metaKey}),x.start(e)))},onPointerUp:e=>E(e),onPointerCancel:e=>E(e,!0),onLostPointerCapture:()=>{_.current!==null&&(C(),h({type:`cancel`}))}})]})}function Js(e,t){return Array.from({length:Math.max(0,t-e+1)},(t,n)=>e+n+1)}function Ys(e,t){return e.status===`error`?/* @__PURE__ */ G(`div`,{className:`grid-projection-state`,role:`alert`,children:q(t,e.error?.message)}):e.status!==`ready`&&!e.hasResult?/* @__PURE__ */ G(`div`,{className:`grid-projection-state`,role:`status`,children:/* @__PURE__ */ G(H,{id:`XjTvlf`})}):null}function Xs({activeSheet:e}){let{i18n:t,_:n}=U(),i=r(Pe),a=r(Ht),o=r(F),s=Rs(),c=fo({sheetId:e.id,window:s,rowCount:e.rowCount,colCount:e.colCount}),l=Ms(c),u=Ls(c.retained),d=a?.sheetId===e.id?a.rows:0,f=a?.sheetId===e.id?a.cols:0,p={...c.window,rowStart:Math.max(c.window.rowStart,d),colStart:Math.max(c.window.colStart,f)},m=Js(p.rowStart,p.rowEnd),h=o.rowHeightsBySheet[e.id],g=Math.max(0,p.colEnd-p.colStart+1),_=Array.from({length:g},(t,n)=>Ye(o,e.id,p.colStart+n,Y)),v=t=>Ge(t,e.colCount,Y,o.colWidthsBySheet[e.id]),y=v(e.colCount),b=m.map((t,n)=>Xe(o,e.id,p.rowStart+n,J)),x=Ge(e.rowCount,e.rowCount,J,h),S=Ge(Math.max(c.window.rowStart,d),e.rowCount,J,h),C={"--grid-column-width":`${Y}px`,"--grid-row-height":`${J}px`,"--grid-row-header-width":`46px`,"--grid-sheet-content-width":`${y}px`,"--grid-sheet-height":`${x+J}px`,"--grid-sheet-width":`${y+46}px`},w={"--grid-window-offset":`${S}px`,"--grid-window-row-heights":b.filter(e=>e>0).map(e=>`${e}px`).join(` `)},T=`${v(p.colStart)}px`,E={"--grid-window-offset-x":T,"--grid-window-column-widths":_.filter(e=>e>0).map(e=>`${e}px`).join(` `)},D={...w,"--grid-window-offset-x":T,"--grid-window-width":`${v(Math.max(c.window.colEnd+1,f))-v(Math.max(c.window.colStart,f))}px`};return/* @__PURE__ */ K(`section`,{className:`worksheet-panel`,"aria-label":n({id:`4eM0MO`,values:{0:e.name}}),children:[/* @__PURE__ */ G(Gs,{focusGrid:l.focusGrid}),(x===0||y===0)&&/* @__PURE__ */ G(`div`,{className:`grid-visibility-state`,role:`status`,children:n(x===0?{id:`LmH6kB`}:{id:`9DsaKt`})}),/* @__PURE__ */ G(`div`,{ref:l.scrollRef,className:`sheet-scroll`,"data-testid":`sheet-scroll`,onScroll:l.onScroll,children:/* @__PURE__ */ K(`div`,{className:`sheet-grid-frame grid-viewport-frame`,"data-frozen-rows":d,"data-format-painter":i.mode===`idle`?void 0:i.mode,"data-frozen-cols":f,style:C,onCopy:u.onCopy,onCut:u.onCut,onPaste:u.onPaste,onDoubleClick:l.onDoubleClick,onKeyDown:l.onKeyDown,onPointerDown:l.onPointerDown,onPointerMove:l.onPointerMove,onPointerUp:l.onPointerUp,onPointerCancel:l.onPointerCancel,onLostPointerCapture:l.onPointerCancel,children:[/* @__PURE__ */ G(Hs,{rowStart:p.rowStart,rowHeights:b,colStart:p.colStart,columnWidths:_,rowStyle:w,columnStyle:E,focusGrid:l.focusGrid}),/* @__PURE__ */ G(`div`,{ref:l.gridRef,className:`grid-surface grid-window`,"data-workbook-grid":`true`,"data-row-count":e.rowCount,"data-projection-retained":c.retained?`true`:`false`,"aria-busy":c.retained,"aria-label":n({id:`v_70lO`,values:{0:e.name}}),style:D,tabIndex:c.retained?-1:0,children:Ys(c,t)??/* @__PURE__ */ G(fs,{interactive:!c.retained,cells:c.cells,mergedRanges:c.mergedRanges,window:p,rowHeights:b,columnWidths:_})}),/* @__PURE__ */ G(Us,{focusGrid:l.focusGrid}),/* @__PURE__ */ G(qs,{scrollRef:l.scrollRef,focusGrid:l.focusGrid}),/* @__PURE__ */ G(ps,{focusGrid:l.focusGrid}),/* @__PURE__ */ G(ms,{focusGrid:l.focusGrid}),/* @__PURE__ */ G(_s,{})]})}),/* @__PURE__ */ K(`div`,{className:`grid-validation-feedback`,children:[/* @__PURE__ */ G(hs,{}),/* @__PURE__ */ G(gs,{})]})]})}function Zs(){let e=r(w);return e===null?/* @__PURE__ */ G(`div`,{role:`alert`,children:/* @__PURE__ */ G(H,{id:`Qj0AKs`})}):/* @__PURE__ */ G(Xs,{activeSheet:e})}function Qs(){let{i18n:e,_:t}=U(),n=i(rn),a=i(ln),o=r(Pe),s=i(on);return/* @__PURE__ */ K(`div`,{className:`einfach-spreadsheet workbook`,lang:e.locale,"data-runtime-state":`ready`,onKeyDownCapture:e=>{e.key===`Escape`&&!e.nativeEvent.isComposing&&o.mode!==`idle`&&(e.preventDefault(),s(`exit`))},onKeyDown:e=>{if(e.nativeEvent.isComposing||e.altKey||e.target instanceof HTMLElement&&e.target.closest(`input, textarea, [contenteditable="true"], dialog`))return;let t=e.key.toLowerCase();!e.shiftKey&&(t===`f5`&&!e.ctrlKey&&!e.metaKey||(e.ctrlKey||e.metaKey)&&t===`g`)?a(`open`)&&e.preventDefault():(e.ctrlKey||e.metaKey)&&(t===`f`||t===`h`)&&(e.preventDefault(),n({open:t===`h`?`replace`:`find`}))},children:[/* @__PURE__ */ G(Bi,{}),/* @__PURE__ */ G(`div`,{className:`rust-runtime-status`,role:`status`,children:/* @__PURE__ */ G(H,{id:`awcQnW`})}),/* @__PURE__ */ G(ro,{}),/* @__PURE__ */ G(Ci,{}),/* @__PURE__ */ G(Zs,{}),/* @__PURE__ */ G(Li,{})]})}function $s({className:e,style:t,...n}){return/* @__PURE__ */ G(`div`,{className:`einfach-spreadsheet${e?` ${e}`:``}`,style:t,children:/* @__PURE__ */ G(Jr,{...n,children:/* @__PURE__ */ G(Qs,{})})})}function ec({children:e,connection:r,store:i,...a}){let o=Mr(()=>r===void 0?i??t():he({connection:r,store:i}).store,[r,i]);return/* @__PURE__ */ G(Hr,{...a,children:/* @__PURE__ */ G(n,{store:o,children:e})})}export{$s as Spreadsheet,Jr as WorkbookRuntimeProvider,ec as WorkbookStoreProvider,Qs as WorkbookView};
|