@8sheets/data-grid 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +36 -0
- package/README.md +52 -2
- package/a11y/cell-alt-text.js +1 -0
- package/api/overlay.js +1 -0
- package/api/serialize.js +1 -0
- package/api/skins.js +1 -0
- package/api/style-refs.js +1 -0
- package/api/watermark-xml.js +2 -0
- package/calc/adjust.js +1 -0
- package/calc/cell-set.js +1 -0
- package/calc/compile.js +1 -0
- package/calc/engine.js +1 -0
- package/calc/fill-shape.js +2 -0
- package/calc/functions/array.js +1 -0
- package/calc/functions/database.js +1 -0
- package/calc/functions/date.js +1 -0
- package/calc/functions/engineering.js +1 -0
- package/calc/functions/financial.js +1 -0
- package/calc/functions/helpers.js +1 -0
- package/calc/functions/index.js +1 -0
- package/calc/functions/info.js +1 -0
- package/calc/functions/logical.js +1 -0
- package/calc/functions/lookup.js +1 -0
- package/calc/functions/math.js +1 -0
- package/calc/functions/registry.js +1 -0
- package/calc/functions/stat.js +1 -0
- package/calc/functions/text.js +1 -0
- package/calc/parser.js +3 -0
- package/calc/values.js +1 -0
- package/calcx/ai/client.js +1 -0
- package/calcx/ai/functions.js +15 -0
- package/calcx/ai/settings.js +1 -0
- package/calcx/async.js +1 -0
- package/calcx/culture/format-locale.js +1 -0
- package/calcx/culture/lcid.js +1 -0
- package/calcx/external-read.js +1 -0
- package/calcx/external-write.js +3 -0
- package/calcx/external.js +1 -0
- package/calcx/functions/dynamic.js +1 -0
- package/calcx/functions/ets.js +1 -0
- package/calcx/functions/index.js +1 -0
- package/calcx/functions/misc.js +1 -0
- package/calcx/functions/text.js +1 -0
- package/calcx/functions/xml.js +1 -0
- package/calcx/refresh.js +1 -0
- package/cells/auto-merge.js +1 -0
- package/cells/axis-limits.js +1 -0
- package/cells/axis-ops.js +1 -0
- package/cells/background-xml.js +1 -0
- package/cells/background.js +1 -0
- package/cells/book-css.js +206 -0
- package/cells/book-read.js +1 -0
- package/cells/book-view.js +1 -0
- package/cells/cell-defaults.js +1 -0
- package/cells/cell-extras.js +1 -0
- package/cells/cell-options-ui.js +1 -0
- package/cells/cell-styles-xml.js +1 -0
- package/cells/cf-engine.js +1 -0
- package/cells/cf-file.js +1 -0
- package/cells/cf-paint.js +1 -0
- package/cells/consolidate-links.js +1 -0
- package/cells/docprops-xml.js +2 -0
- package/cells/filter-file.js +1 -0
- package/cells/find-engine.js +2 -0
- package/cells/find.js +1 -0
- package/cells/format-code.js +1 -0
- package/cells/format-panes.js +3 -0
- package/cells/format-tabs.js +102 -0
- package/cells/goto.js +1 -0
- package/cells/header-colors.js +1 -0
- package/cells/mask.js +1 -0
- package/cells/menu-extras.js +1 -0
- package/cells/name-box.js +1 -0
- package/cells/note-xml.js +1 -0
- package/cells/options.js +1 -0
- package/cells/outline-column.js +1 -0
- package/cells/paint.js +1 -0
- package/cells/panes.js +1 -0
- package/cells/rich-data-xml.js +2 -0
- package/cells/rich-data.js +1 -0
- package/cells/rich-runs.js +2 -0
- package/cells/rich-values.js +1 -0
- package/cells/rich-xml.js +1 -0
- package/cells/rounded.js +1 -0
- package/cells/sections.js +2 -0
- package/cells/selection-modes.js +1 -0
- package/cells/style-xml.js +1 -0
- package/cells/text-layout.js +8 -0
- package/cells/undo-group.js +1 -0
- package/cells/validation-alert.js +2 -0
- package/cells/view-options.js +1 -0
- package/cells/view-xml.js +1 -0
- package/celltypes/barcode-tables.js +31 -0
- package/celltypes/barcode.js +2 -0
- package/celltypes/base.js +1 -0
- package/celltypes/cell-buttons.js +1 -0
- package/celltypes/cell-types.js +2 -0
- package/celltypes/data-object.js +1 -0
- package/celltypes/diagonal.js +1 -0
- package/celltypes/dropdowns-more.js +13 -0
- package/celltypes/dropdowns.js +42 -0
- package/celltypes/file-cell.js +2 -0
- package/celltypes/glyphs.js +1 -0
- package/celltypes/persist.js +2 -0
- package/celltypes/range-template.js +2 -0
- package/charts/chartex.js +3 -0
- package/charts/geo/geo-xml.js +1 -0
- package/charts/geo/map-state.js +1 -0
- package/charts/patterns.js +1 -0
- package/core/address.js +1 -0
- package/core/axis.js +1 -0
- package/core/base64.js +1 -0
- package/core/changes.js +1 -0
- package/core/color.js +1 -0
- package/core/cond-format.js +1 -0
- package/core/custom-views.js +1 -0
- package/core/default-names.js +1 -0
- package/core/formula-refs.js +1 -0
- package/core/formula-store.js +1 -0
- package/core/input.js +1 -0
- package/core/math.js +1 -0
- package/core/numfmt.js +1 -0
- package/core/online.js +1 -0
- package/core/protection.js +1 -0
- package/core/regexp.js +1 -0
- package/core/sheet-group.js +1 -0
- package/core/sheet.js +1 -0
- package/core/sparklines.js +1 -0
- package/core/sparse.js +1 -0
- package/core/strings.js +1 -0
- package/core/styles.js +1 -0
- package/core/table-presets.js +7 -0
- package/core/tables.js +2 -0
- package/core/tsv.js +4 -0
- package/core/whatif.js +1 -0
- package/core/workbook.js +1 -0
- package/datasheets/bind.js +1 -0
- package/datasheets/calendar.js +1 -0
- package/datasheets/cross.js +1 -0
- package/datasheets/data-core.js +1 -0
- package/datasheets/data.js +1 -0
- package/datasheets/formula.js +1 -0
- package/datasheets/gantt-paint.js +1 -0
- package/datasheets/gantt-resources.js +1 -0
- package/datasheets/gantt-shapes.js +1 -0
- package/datasheets/gantt.js +1 -0
- package/datasheets/manager.js +1 -0
- package/datasheets/path-binding.js +2 -0
- package/datasheets/persist-writer.js +2 -0
- package/datasheets/persist.js +1 -0
- package/datasheets/query-function.js +1 -0
- package/datasheets/remote.js +3 -0
- package/datasheets/report-entry.js +1 -0
- package/datasheets/report.js +1 -0
- package/datasheets/rules.js +1 -0
- package/datasheets/sort.js +1 -0
- package/datasheets/table-sheet.js +1 -0
- package/datasheets/view.js +3 -0
- package/datasheets/virtual-sheet.js +1 -0
- package/datasheets/window.js +1 -0
- package/extras/getdata/persist.js +2 -0
- package/extras/getdata/rows.js +1 -0
- package/extras/getdata/steps.js +1 -0
- package/i18n/dom.js +1 -0
- package/i18n/en/a11y.js +1 -0
- package/i18n/en/cells.js +1 -0
- package/i18n/en/charts.js +1 -0
- package/i18n/en/common.js +1 -0
- package/i18n/en/datasheets.js +1 -0
- package/i18n/en/format.js +1 -0
- package/i18n/en/misc.js +1 -0
- package/i18n/en/pivot.js +1 -0
- package/i18n/en/proofing.js +1 -0
- package/i18n/en/ribbon.js +1 -0
- package/i18n/en/shapes.js +1 -0
- package/i18n/en/shell.js +1 -0
- package/i18n/en/touch.js +1 -0
- package/i18n/en.js +1 -0
- package/i18n/index.js +1 -0
- package/i18n/key-text.js +1 -0
- package/i18n/languages.js +1 -0
- package/i18n/pl/a11y.js +1 -0
- package/i18n/pl/cells.js +1 -0
- package/i18n/pl/charts.js +1 -0
- package/i18n/pl/common.js +1 -0
- package/i18n/pl/datasheets.js +1 -0
- package/i18n/pl/format.js +1 -0
- package/i18n/pl/misc.js +1 -0
- package/i18n/pl/pivot.js +1 -0
- package/i18n/pl/proofing.js +1 -0
- package/i18n/pl/ribbon.js +1 -0
- package/i18n/pl/shapes.js +1 -0
- package/i18n/pl/shell.js +1 -0
- package/i18n/pl/touch.js +1 -0
- package/i18n/pl.js +1 -0
- package/io/client.js +1 -0
- package/io/crc32.js +1 -0
- package/io/crypto/aes.js +1 -0
- package/io/crypto/agile.js +2 -0
- package/io/crypto/cfb-read.js +1 -0
- package/io/crypto/cfb-write.js +1 -0
- package/io/crypto/dataspaces.js +1 -0
- package/io/crypto/errors.js +1 -0
- package/io/crypto/hash.js +1 -0
- package/io/crypto/index.js +1 -0
- package/io/crypto/package-read.js +1 -0
- package/io/crypto/package-write.js +1 -0
- package/io/crypto/spool.js +1 -0
- package/io/crypto/standard.js +1 -0
- package/io/csv.js +8 -0
- package/io/export-blocks.js +1 -0
- package/io/foreign-parts.js +1 -0
- package/io/foreign-sheets.js +2 -0
- package/io/io.worker.js +1 -0
- package/io/package-paths.js +1 -0
- package/io/plan.js +1 -0
- package/io/text-split.js +3 -0
- package/io/xlsx-read.js +1 -0
- package/io/xlsx-styles.js +2 -0
- package/io/xlsx-tail.js +1 -0
- package/io/xlsx-write.js +2 -0
- package/io/xml-escape.js +1 -0
- package/io/xml-scan.js +1 -0
- package/io/zip-reader.js +1 -0
- package/io/zip-writer.js +1 -0
- package/objects/chart-model.js +1 -0
- package/objects/dml.js +5 -0
- package/objects/drawing-xml.js +1 -0
- package/objects/picture-url.js +1 -0
- package/package.json +57 -4
- package/pivot/engine.js +1 -0
- package/pivot/xml.js +2 -0
- package/print/page-setup.js +1 -0
- package/print/paginate.js +1 -0
- package/print/pdf.js +35 -0
- package/print/render-page.js +3 -0
- package/render/patterns.js +1 -0
- package/shapes/form-xml.js +1 -0
- package/shapes/watermark.js +1 -0
- package/slicers/custom-styles.js +1 -0
- package/slicers/date-filters.js +1 -0
- package/slicers/format.js +2 -0
- package/slicers/pivot-file.js +1 -0
- package/slicers/structured.js +1 -0
- package/slicers/table-file.js +1 -0
- package/slicers/write.js +1 -0
- package/sparklines/colors.js +1 -0
- package/sparklines/data.js +1 -0
- package/sparklines/descriptor.js +1 -0
- package/sparklines/excel-paint.js +1 -0
- package/sparklines/functions.js +1 -0
- package/sparklines/paint-core.js +1 -0
- package/sparklines/paint-measure.js +1 -0
- package/sparklines/paint-other.js +2 -0
- package/sparklines/paint-series.js +1 -0
- package/sparklines/paint.js +1 -0
- package/sparklines/print.js +1 -0
- package/sparklines/rule.js +1 -0
- package/table-view/api.js +1 -0
- package/table-view/cell-editor.js +1 -0
- package/table-view/cell-format.js +1 -0
- package/table-view/chrome.js +1 -0
- package/table-view/client.js +1 -0
- package/table-view/column-drag.js +1 -0
- package/table-view/column-input.js +1 -0
- package/table-view/column-window.js +1 -0
- package/table-view/events.js +1 -0
- package/table-view/files.js +1 -0
- package/table-view/grid-keys.js +2 -0
- package/table-view/index.d.ts +4 -0
- package/table-view/index.js +1 -0
- package/table-view/labels.js +1 -0
- package/table-view/model.js +1 -0
- package/table-view/mount.js +1 -0
- package/table-view/panel.js +1 -0
- package/table-view/pivot.js +1 -0
- package/table-view/public.d.ts +841 -0
- package/table-view/quick-filter.js +1 -0
- package/table-view/reader.worker.js +1 -0
- package/table-view/remote.js +1 -0
- package/table-view/row-cache.js +1 -0
- package/table-view/row-selection.js +1 -0
- package/table-view/table-css.js +1207 -0
- package/table-view/totals.js +1 -0
- package/table-view/version.js +1 -0
- package/table-view/worksheet-table.js +1 -0
- package/ui/dialogs.js +3 -0
- package/ui/dom.js +1 -0
- package/ui/icons.js +1 -0
- package/ui/menu-base.js +1 -0
- package/ui/protection-ui.js +1 -0
- package/ui/ui-scale.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aggregate as l}from"../datasheets/view.js";import{formatNumber as d}from"../core/numfmt.js";const N=["sum","average","min","max","count"],v=(e,o)=>typeof e=="number"&&Number.isFinite(e)?d(o||"General",e):"",A=e=>Array.isArray(e?.rules)&&e.rules.some(o=>o?.type==="bar"||o?.type==="scale");function G(e,o,g,x){const{view:n,table:y}=e,u=new Map((g??[]).map(t=>[t.field,t])),m=o.map(t=>[t.field,x?u.get(t.field)?.total??null:null,A(u.get(t.field))]);if(!m.some(([,t,f])=>t||f))return{};const p=n.revision+"|"+y.revision+"|"+n.filteredCount+"|"+JSON.stringify(m);if(e.extrasKey===p)return e.extras;const r={};return o.forEach((t,f)=>{const[c,i,b]=m[f];if(N.includes(i)){const s=l(t.col,i,n.perm,0,n.filteredCount),a=i==="count"?"#,##0":i==="average"&&(!t.format||t.format==="General")?"#,##0.##":t.format;(r.totals??={})[c]=v(s,a)}if(b){const s=l(t.col,"min",n.perm,0,n.filteredCount),a=l(t.col,"max",n.perm,0,n.filteredCount);Number.isFinite(s)&&Number.isFinite(a)&&((r.stats??={})[c]={min:s,max:a})}}),e.extrasKey=p,e.extras=r,r}export{N as TOTAL_AGGS,G as columnExtras,A as needsRange};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="1.0.1";export{o as VERSION};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DataManager as D}from"../datasheets/data.js";import{getFormatter as _}from"../core/numfmt.js";import{BOOL as L,EMPTY as x,ERR as E,FORMULA as O,KIND_MASK as w,NUM as C,STR as b}from"../core/sheet.js";import{tokenize as S,toDisplayFormula as T}from"../calc/parser.js";import{ERR_BY_INDEX as B}from"../calc/values.js";function U(p,f,e,M,v=1,R){const c=new D(p).addTable("Records"),m=e.r0+v,k=Math.max(0,e.r1-m+1),y=new Set;for(let o=e.c0;o<=e.c1;o++){const a=M?.[o-e.c0]||v&&(f.kind(e.r0,o)&w)===b&&p.strings.get(f.value(e.r0,o))||`Column ${o-e.c0+1}`;let l=a;for(let s=2;y.has(l.toLowerCase());s++)l=`${a} (${s})`;y.add(l.toLowerCase());let t=x,n="General";for(let s=m;s<=e.r1;s++){const u=f.kind(s,o)&w;if(u){if(!t)t=u,n=p.styles.get(f.style(s,o)).numFmt;else if(t!==u){t=-1;break}}}const i=t===C&&_(n).isDate?"date":{[b]:"string",[L]:"boolean",[C]:"number"}[t]??"any";c.addField({name:l,type:i,format:n})}c._reserve(k),c.rowCount=k;for(const[o,a]of c.fields.entries()){const l=e.c0+o;for(let t=m;t<=e.r1;t++){const n=f.kind(t,l)&w;if(!n)continue;const i=f.value(t,l);a.isString?a.data[t-m]=i:a.put(t-m,n===b?p.strings.get(i):n===L?!!i:n===E?B[i]:i)}}c._afterLoad(k);for(const[o,a]of c.fields.entries()){const l=e.c0+o;let t=null,n=!0,i=!1;for(let r=m;r<=e.r1;r++){if(!(f.kind(r,l)&O)){n=!1;continue}i=!0;const d=f.formula(r,l)?.f;(!d||t!==null&&d!==t)&&(n=!1),t=d}if(!i||(a.readOnly=!0,!n||!t))continue;let s="",u=!0,F;try{F=S(t)}catch{continue}for(const r of F)if(r.t==="table"){const d=T(r.v.spec);if(r.v.name&&r.v.name.toLowerCase()!==R?.toLowerCase()||!d.startsWith("[@")){u=!1;break}s+=d}else if(["op","num","ws","eof"].includes(r.t))s+=t.slice(r.s,r.e);else{u=!1;break}u&&c.setFormula(a.name,s)}return c}export{U as worksheetTable};
|
package/ui/dialogs.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{scaleToApp as K}from"./ui-scale.js";import{openFillEffects as N}from"../cells/cell-options-ui.js";import{overlayRoot as R}from"../api/overlay.js";import{applyBorderEdges as $,borderTab as j,formatCodeProblem as D,numberTab as I}from"../cells/format-tabs.js";import{alignmentTab as q,fillTab as H,fontTab as X,protectionTab as _}from"../cells/format-panes.js";import{setBorderRadius as G}from"../cells/rounded.js";import{getFormatter as L}from"../core/numfmt.js";import{MAX_COLS as U,MAX_ROWS as V}from"../core/address.js";import{FORMULA as W,KIND_MASK as z,STR as J}from"../core/sheet.js";import{el as s}from"./dom.js";import{t as d}from"../i18n/index.js";const w=[];function k(r,f,i,o,{onClose:a,width:n,className:c}={}){const e=s("dialog",{class:c?`dlg ${c}`:"dlg"});n&&(e.style.width=`${n}px`),K(r,e);const p=typeof document<"u"?document.activeElement:null,g=w.at(-1)??null,u={dlg:e};let b=!1;const E=()=>{b=!0,e.open&&e.close(),e.remove();const t=w.indexOf(u);t>=0&&w.splice(t,1)};r.signal?.addEventListener("abort",E,{once:!0});const h=(t="close")=>{if(b)return;b=!0,r.signal?.removeEventListener("abort",E),e.open&&e.close(),e.remove();const x=w.indexOf(u);x>=0&&w.splice(x,1),a?.(t);const m=w.at(-1)??null;m===null?r.controller.focusGrid():m===g&&(p&&g.dlg.contains(p)?p:g.dlg).focus()},v=o.find(t=>t.cancel)??o.find(t=>t.label==="Cancel")??o.find(t=>t.label==="Close")??null,F=()=>{b||v?.action?.()!==!1&&h("escape")},C=s("div",{class:"dlg-foot"},...o.map(t=>s("button",{class:`dlg-btn${t.primary?" primary":""}${t.left?" dlg-left":""}`,textContent:d(t.label),type:"button",on:{click:()=>{t.action?.()!==!1&&h(t.label)}}})));e.append(s("h2",{class:"dlg-title",textContent:d(f)}),s("div",{class:"dlg-body"},i),C),e.addEventListener("cancel",t=>{t.preventDefault(),F()}),e.addEventListener("keydown",t=>{if(t.stopPropagation(),t.key==="Escape"&&!t.isComposing&&!t.defaultPrevented){t.preventDefault(),F();return}const x=t.target.tagName==="BUTTON"&&!C.contains(t.target);if(t.key==="Enter"&&!t.isComposing&&t.target.tagName!=="TEXTAREA"&&!x&&!t.defaultPrevented){const m=o.find(T=>T.primary);m&&(t.preventDefault(),m.action?.()!==!1&&h(m.label))}}),R().append(e);for(const t of e.querySelectorAll(".dlg-tabs"))Q(t);if(w.push(u),e.showModal(),c?.includes("xl-dlg"))e.tabIndex=-1,e.focus();else if(C.contains(document.activeElement))C.querySelector(".dlg-btn.primary")?.focus();else{const t=document.activeElement;t instanceof HTMLInputElement&&e.contains(t)&&/^(text|number|search|)$/.test(t.type)&&t.value!==""&&t.select()}return{dlg:e,close:h}}function Q(r){const f=()=>[...r.querySelectorAll('[role="tab"]')].filter(o=>!o.hidden),i=()=>{const o=f(),a=o.find(n=>n.getAttribute("aria-selected")==="true")??o[0];for(const n of o)n.tabIndex=n===a?0:-1};i(),new MutationObserver(i).observe(r,{attributes:!0,subtree:!0,attributeFilter:["aria-selected","hidden"]}),r.addEventListener("keydown",o=>{if(o.key!=="ArrowLeft"&&o.key!=="ArrowRight"&&o.key!=="Home"&&o.key!=="End")return;const a=f(),n=a.indexOf(document.activeElement);if(n<0)return;o.preventDefault();const c=o.key==="Home"?0:o.key==="End"?a.length-1:(n+(o.key==="ArrowLeft"?-1:1)+a.length)%a.length;a[c].focus(),a[c].click()})}function de(r,f="Number",i={}){const{commands:o,grid:a,book:n}=r,c=i.base??o.activeStyle(),e=a.selection,p=n.sheet.kind(e.row,e.col)&z,g=p===1?n.sheet.value(e.row,e.col):1234.5,u={},b={},E=s("div",{class:"dlg-tabs",role:"tablist"}),h=s("div",{class:"dlg-panes"}),v=(l,y)=>{const O=s("button",{type:"button",role:"tab",class:"dlg-tab",textContent:d(`fc.tab|${l}`),dataset:{tab:l},on:{click:()=>F(l)}});b[l]={btn:O,content:y},E.append(O),h.append(y)},F=l=>{for(const[y,O]of Object.entries(b))O.btn.setAttribute("aria-selected",String(y===l)),O.content.hidden=y!==l;b[l].content.onShow?.()},C=l=>{try{return p===2?L(l).text(n.strings.get(n.sheet.value(e.row,e.col))):L(l).number(g).replace(/\u0001.?\u0001/g," ")}catch{return""}},t=[...new Set(n.styles.list.map(l=>l.numFmt))];v("Number",I(c.numFmt,C,l=>{u.numFmt=l},t));const x=n.sheet.mergeAt(e.row,e.col)!==null;let m;v("Alignment",q(c,u,x,l=>{m=l})),v("Font",X(c,n.styles.get(0),u,r.objects?.theme?.majorFont));const T=e.ranges.length===1&&e.ranges[0].r0===e.ranges[0].r1&&e.ranges[0].c0===e.ranges[0].c1;let A=null;v("Border",j(c.borders,!T,l=>{A=l}));const S=s("input",{class:"dlg-input short",value:(c.ext?.radius??[]).join(" "),"aria-label":d("Corner radius in points"),spellcheck:!1}),P=s("select",{class:"dlg-input fc-grow","aria-label":d("Corner radius applies to")},s("option",{value:"all",textContent:d("Every cell")}),s("option",{value:"outer",textContent:d("Outer corners of the selection")}));b.Border.content.append(s("div",{class:"dlg-row fc-radius"},d("Rounded corners (points, not in Excel):"),S,P)),v("Fill",H(c,u,(l,y)=>N(r,l,y))),v("Protection",_(c,u));const B=s("div",{class:"fc-body"},E,h),M=r.controller.isEditing;if(M)for(const[l,y]of Object.entries(b))l!=="Font"&&(y.btn.hidden=!0);k(r,"dlg|Format Cells",B,[{label:"Cancel"},{label:"OK",primary:!0,action:()=>{u.numFmt===c.numFmt&&delete u.numFmt,M&&delete u.numFmt;const l=u.numFmt?D(u.numFmt):null;if(l)return Y(r,"dlg|Format Cells",d("This number format can't be used. {problem}",{problem:d(l)})),!1;if(i.onPick){i.onPick(u);return}Object.keys(u).length&&o.apply(u),m!==void 0&&m!==x&&o.toggleMerge(m?"merge":"unmerge"),A!==null&&$(r,A),S.value.trim()!==(c.ext?.radius??[]).join(" ")&&G(n,e.ranges,S.value,P.value),r.afterCommand()}}],{width:616,className:"xl-dlg fc-dlg"}),F(M?"Font":f)}function ue(r,f,i,o,a,n,c){const e=s("input",{class:"dlg-input",type:"number",min:a,max:n,step:"any",value:o,"aria-label":d(i)}),p=k(r,f,s("label",{class:"dlg-row"},`${d(i)} `,e),[{label:"Cancel"},{label:"OK",primary:!0,action:()=>{const g=Number(e.value);return!Number.isFinite(g)||g<a||g>n?(e.setCustomValidity(d("Enter a number from {min} to {max}",{min:a,max:n})),e.reportValidity(),!1):(c(g),!0)}}],{width:320});return e.select(),p}function fe(r,f,i,o,a){const n=s("input",{class:"dlg-input",value:o,"aria-label":d(i),spellcheck:!1});k(r,f,s("label",{class:"dlg-row"},`${d(i)} `,n),[{label:"Cancel"},{label:"OK",primary:!0,action:()=>{a(n.value.trim())}}],{width:420}),n.select()}import{openGoTo as ye}from"../cells/goto.js";import{openFind as he}from"../cells/find.js";function Y(r,f,i,{width:o=380}={}){return new Promise(a=>{k(r,f,s("div",{class:"dlg-col"},...d(String(i)).split(`
|
|
2
|
+
`).map(n=>s("p",{class:"dlg-message",textContent:n}))),[{label:"OK",primary:!0}],{width:o,onClose:()=>a()})})}function me(r,f,i,{ok:o="OK",cancel:a="Cancel",width:n=380}={}){return new Promise(c=>{let e=!1;k(r,f,s("div",{class:"dlg-col"},...d(String(i)).split(`
|
|
3
|
+
`).map(p=>s("p",{class:"dlg-message",textContent:p}))),[{label:a,cancel:!0},{label:o,primary:!0,action:()=>{e=!0}}],{width:n,onClose:()=>c(e)})})}function pe(r,f,i){return new Promise(o=>{let a=null;const n=s("input",{type:"password",class:"dlg-input",autocomplete:"off","aria-label":d("Password")});k(r,f,s("div",{class:"dlg-col"},s("p",{textContent:d(i)}),n),[{label:"Cancel"},{label:"OK",primary:!0,action:()=>{a=n.value}}],{width:340,onClose:()=>o(a)}),n.focus()})}export{W as FORMULA,U as MAX_COLS,V as MAX_ROWS,J as STR,pe as askPassword,me as confirmModal,s as el,he as openFind,de as openFormatCells,ye as openGoTo,k as openModal,ue as promptNumber,fe as promptText,Y as showMessage};
|
package/ui/dom.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const c=(n,a={},...r)=>{const t=document.createElement(n);for(const[e,s]of Object.entries(a))if(e==="class")t.className=s;else if(e==="on")for(const[i,l]of Object.entries(s))t.addEventListener(i,l);else e==="dataset"?Object.assign(t.dataset,s):e in t&&!e.startsWith("aria")?t[e]=s:t.setAttribute(e,s);return t.append(...r.filter(e=>e!=null&&e!==!1)),t},o={"&":"&","<":"<",">":">"},f=n=>String(n).replace(/[&<>]/g,a=>o[a]);export{c as el,f as escapeHtml};
|
package/ui/icons.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="#107c41",a="#c0392b",t="#2f6fd0",$="#e0a800",e='fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"',i=l=>+l.toFixed(2),h=(l,c)=>`fill="none" stroke="${l}" stroke-width="${c}" stroke-linecap="round" stroke-linejoin="round"`,M=(l,c,r=o)=>`<path d="M${i(l-2.2)} ${c}h4.4M${l} ${i(c-2.2)}v4.4" ${h(r,1.6)}/>`,f=(l,c)=>`<path d="M${i(l-1.9)} ${i(c-1.9)}l3.8 3.8m0-3.8-3.8 3.8" ${h(a,1.6)}/>`,x=(l,c,r,d=t)=>{let s="";for(let k=0;k<8;k++){const y=k*Math.PI/4;s+=`M${i(l+r*Math.cos(y))} ${i(c+r*Math.sin(y))}L${i(l+(r+1.3)*Math.cos(y))} ${i(c+(r+1.3)*Math.sin(y))}`}return`<circle cx="${l}" cy="${c}" r="${r}" fill="none" stroke="${d}" stroke-width="1.3"/><path d="${s}" stroke="${d}" stroke-width="1.7"/><circle cx="${l}" cy="${c}" r="${i(r*.35)}" fill="${d}"/>`},p=(l,c,r,d,s,k=t,y=1.4)=>{const g=w=>w*Math.PI/180,T=w=>[i(l+r*Math.cos(g(w))),i(c+r*Math.sin(g(w)))],[W,j]=T(d),[b,S]=T(d+s),P=Math.atan2(-Math.cos(g(d+s)),Math.sin(g(d+s))),O=w=>`${i(b+2.3*Math.cos(P+w*g(38)))} ${i(S+2.3*Math.sin(P+w*g(38)))}`;return`<path d="M${W} ${j}A${r} ${r} 0 ${s>180?1:0} 1 ${b} ${S}" ${h(k,y)}/><path d="M${O(1)}L${b} ${S}L${O(-1)}" ${h(k,y)}/>`},R=(l,c,r,d=t,s=1.4)=>p(l,c,r,190,150,d,s)+p(l,c,r,10,150,d,s),n=(l,c,r,d,s=1.2)=>`<rect x="${l}" y="${c}" width="${r}" height="${d}" fill="none" stroke="currentColor" stroke-width="${s}"/><path d="M${l} ${i(c+d/3)}h${r}M${l} ${i(c+2*d/3)}h${r}M${i(l+r/3)} ${c}v${d}M${i(l+2*r/3)} ${c}v${d}" stroke="currentColor" stroke-width="0.7"/>`,u=(l,c,r,d)=>`<rect x="${l}" y="${c}" width="${r}" height="${d}" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="${l}" y="${c}" width="${r}" height="${i(d*.28)}" fill="${t}"/><path d="M${l} ${i(c+d*.64)}h${r}M${i(l+r/3)} ${i(c+d*.28)}v${i(d*.72)}M${i(l+2*r/3)} ${i(c+d*.28)}v${i(d*.72)}" stroke="currentColor" stroke-width="0.7"/>`,C=(l,c,r)=>`<rect x="${l}" y="${c}" width="${r}" height="${r}" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="${l}" y="${c}" width="${r}" height="${i(r*.27)}" fill="${t}"/><rect x="${l}" y="${c}" width="${i(r*.3)}" height="${r}" fill="${t}" fill-opacity="0.45"/><path d="M${l} ${i(c+r*.63)}h${r}" stroke="currentColor" stroke-width="0.7"/>`,v=(l,c,r,d="currentColor")=>`<text x="${l}" y="${c}" font-size="${r}" font-style="italic" font-family="Georgia,serif" fill="${d}">fx</text>`,G=`<path ${e} d="M2.5 3.5h11l-4.3 5.2v4.8l-2.4-1.2V8.7z"/>`,D=`<ellipse cx="7" cy="4.6" rx="4.5" ry="1.6" ${e}/><path ${e} d="M2.5 4.6v9.8a4.5 1.6 0 0 0 9 0V4.6M2.5 9.5a4.5 1.6 0 0 0 9 0"/>`,z=`<path ${e} d="M8.5 17.5H3V2.5h7l3 3V9"/><path ${e} d="M10 2.5v3h3"/>`,H=(l,c,r,d)=>`<g transform="translate(${l} ${c}) scale(${r})"><path ${h(d,i(1.4/r))} d="M8.5 11.5a3 3 0 0 0 4.3 0l2.7-2.7a3 3 0 0 0-4.3-4.3l-1 1"/><path ${h(d,i(1.4/r))} d="M11.5 8.5a3 3 0 0 0-4.3 0l-2.7 2.7a3 3 0 0 0 4.3 4.3l1 1"/></g>`,V=(l,c,r,d="currentColor")=>`<circle cx="${l}" cy="${c}" r="${r}" fill="none" stroke="${d}" stroke-width="1.3"/><path d="M${i(l+r*.72)} ${i(c+r*.72)}l2.6 2.6" ${h(d,1.6)}/>`,F=`<rect ${e} x="3" y="4" width="14" height="13" rx="1"/><path ${e} d="M3 8h14M7 2.5v3M13 2.5v3"/>`,m=l=>`<rect ${e} x="2.5" y="3" width="15" height="14" rx="1"/><path d="M2.5 6.5h15M6.25 3v3.5M10 3v3.5M13.75 3v3.5" stroke="currentColor" stroke-width="0.8"/><text x="10" y="15.3" text-anchor="middle" font-size="8.5" font-weight="700" font-family="-apple-system,Arial" fill="${t}">${l}</text>`,A=(l,c)=>`<rect x="${l}" y="3.5" width="7.5" height="3" fill="${t}"/><rect x="${c}" y="9" width="7.5" height="3" fill="${t}"/>`,L=(l,c,r,d=t)=>`<path d="M${i(l-4*r)} ${c}c${i(1.6*r)}-${i(2.6*r)} ${i(3.6*r)}-${i(4*r)} ${i(4*r)}-${i(4*r)}s${i(2.4*r)} ${i(1.4*r)} ${i(4*r)} ${i(4*r)}c-${i(1.6*r)} ${i(2.6*r)}-${i(3.6*r)} ${i(4*r)}-${i(4*r)} ${i(4*r)}s-${i(2.4*r)}-${i(1.4*r)}-${i(4*r)}-${i(4*r)}z" ${h("currentColor",1.2)}/><circle cx="${l}" cy="${c}" r="${i(1.6*r)}" fill="${d}"/>`,B={caret:'<path d="M2 3.5 5 6.5 8 3.5" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>',open:`<path ${e} d="M2.5 15.5V5a1 1 0 0 1 1-1h4l1.5 2h7a1 1 0 0 1 1 1v1.5M2.5 15.5h12.8l2.2-7H5.2z"/>`,save:`<path ${e} d="M4 3h9.5L16.5 6v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V4a1 1 0 0 1 .5-1z"/><path ${e} d="M6.5 3v4h6V3M6 17v-6h8v6"/>`,undo:`<path ${e} d="M7 4 3.5 7.5 7 11M3.5 7.5H12a4.5 4.5 0 0 1 0 9H8"/>`,redo:`<path ${e} d="M13 4l3.5 3.5L13 11M16.5 7.5H8a4.5 4.5 0 0 0 0 9h4"/>`,sun:`<circle ${e} cx="10" cy="10" r="3.2"/><path ${e} d="M10 2.5v2M10 15.5v2M2.5 10h2M15.5 10h2M4.7 4.7l1.4 1.4M13.9 13.9l1.4 1.4M4.7 15.3l1.4-1.4M13.9 6.1l1.4-1.4"/>`,moon:`<path ${e} d="M16 11.6A6.5 6.5 0 1 1 8.4 4a5.2 5.2 0 0 0 7.6 7.6z"/>`,cross:`<path ${e} d="M5 5l10 10M15 5 5 15"/>`,check:`<path ${e} d="M4 10.5 8 14.5 16 5.5"/>`,left:`<path ${e} d="M12.5 4.5 7 10l5.5 5.5"/>`,right:`<path ${e} d="M7.5 4.5 13 10l-5.5 5.5"/>`,plus:`<path ${e} d="M10 4.5v11M4.5 10h11"/>`,paste:`<rect ${e} x="4" y="4" width="11" height="13" rx="1"/><rect fill="${$}" x="7" y="2.5" width="5" height="3" rx="1"/><path ${e} d="M7 9h5M7 12h5"/>`,cut:`<circle ${e} cx="6" cy="15" r="2"/><circle ${e} cx="14" cy="15" r="2"/><path ${e} d="M7.2 13.4 14 3.5M12.8 13.4 6 3.5"/>`,copy:`<rect ${e} x="7" y="3" width="9" height="11" rx="1"/><path ${e} d="M13 14v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h2"/>`,painter:`<path ${e} d="M4 3.5h10v4H4zM14 5.5h2v4H9.5v2"/><rect fill="${$}" x="8.3" y="11.5" width="2.4" height="5.5" rx="0.6"/>`,growFont:'<text x="1.5" y="15" font-size="13" font-family="Georgia,serif" fill="currentColor">A</text><path d="M13 7l2.5-3L18 7" fill="none" stroke="currentColor" stroke-width="1.2"/>',shrinkFont:'<text x="1.5" y="15" font-size="11" font-family="Georgia,serif" fill="currentColor">A</text><path d="M12.5 4l2.5 3 2.5-3" fill="none" stroke="currentColor" stroke-width="1.2"/>',bold:'<text x="5" y="15" font-size="14" font-weight="800" font-family="Georgia,serif" fill="currentColor">B</text>',italic:'<text x="6.5" y="15" font-size="14" font-style="italic" font-family="Georgia,serif" fill="currentColor">I</text>',underline:'<text x="5" y="13" font-size="12.5" font-family="Georgia,serif" fill="currentColor">U</text><path d="M4.5 16h11" stroke="currentColor" stroke-width="1.3"/>',borders:`<rect ${e} x="3.5" y="3.5" width="13" height="13"/><path d="M10 3.5v13M3.5 10h13" stroke="currentColor" stroke-width="0.8" stroke-dasharray="1.5 1.5"/>`,fillColor:`<path ${e} d="M9 3.5 4 9l5 5 5.5-5.5zM14.5 8.5l1.8 3a1.6 1.6 0 1 1-3.2 0"/>`,fontColor:'<text x="4.5" y="13.5" font-size="13.5" font-weight="700" font-family="Georgia,serif" fill="currentColor">A</text>',textEffects:'<text x="4.5" y="14" font-size="13.5" font-weight="700" font-family="Georgia,serif" fill="none" stroke="#5B9BD5" stroke-width="2.4" opacity=".55">A</text><text x="4.5" y="14" font-size="13.5" font-weight="700" font-family="Georgia,serif" fill="currentColor">A</text>',alignTop:`<path ${e} d="M3.5 3.5h13M6 7h8M6 10h8"/>`,alignMiddle:`<path ${e} d="M6 7.5h8M3.5 10h13M6 12.5h8"/>`,alignBottom:`<path ${e} d="M6 10h8M6 13h8M3.5 16.5h13"/>`,alignLeft:`<path ${e} d="M3.5 5h13M3.5 8.5h8.5M3.5 12h13M3.5 15.5h8.5"/>`,alignCenter:`<path ${e} d="M3.5 5h13M6 8.5h8M3.5 12h13M6 15.5h8"/>`,alignRight:`<path ${e} d="M3.5 5h13M8 8.5h8.5M3.5 12h13M8 15.5h8.5"/>`,orientation:`<path ${e} d="M4 15 13 5M11 4.5l2.5.2.2 2.5M4 17h12"/>`,indentLess:`<path ${e} d="M3.5 4.5h13M10 8h6.5M10 11.5h6.5M3.5 15.5h13M7 7.5 4 10l3 2.5"/>`,indentMore:`<path ${e} d="M3.5 4.5h13M10 8h6.5M10 11.5h6.5M3.5 15.5h13M4 7.5 7 10l-3 2.5"/>`,wrap:`<path ${e} d="M3.5 5h13M3.5 10h10.5a2.5 2.5 0 0 1 0 5H10M11.5 13l-2 2 2 2M3.5 15h3.5"/>`,merge:`<rect ${e} x="3" y="4.5" width="14" height="11" rx="0.8"/><path ${e} d="M5.5 10h9M7.5 8l-2 2 2 2M12.5 8l2 2-2 2"/>`,currency:'<text x="5.5" y="15" font-size="14" font-family="-apple-system,Arial" fill="currentColor">$</text>',percent:'<text x="3" y="15" font-size="14" font-family="-apple-system,Arial" fill="currentColor">%</text>',comma:'<text x="7" y="13" font-size="17" font-weight="700" font-family="Georgia,serif" fill="currentColor">,</text>',decMore:`<text x="1" y="9" font-size="7" fill="currentColor">.00</text><text x="10" y="17" font-size="7" fill="currentColor">.0</text><path d="M3 13h5M6 11l2 2-2 2" fill="none" stroke="${t}" stroke-width="1"/>`,decLess:`<text x="1" y="9" font-size="7" fill="currentColor">.0</text><text x="10" y="17" font-size="7" fill="currentColor">.00</text><path d="M8 13H3M5 11l-2 2 2 2" fill="none" stroke="${t}" stroke-width="1"/>`,condFormat:`<rect x="3" y="4" width="14" height="12" rx="1" fill="none" stroke="currentColor"/><rect x="3" y="4" width="4.6" height="4" fill="${a}"/><rect x="7.7" y="8" width="4.6" height="4" fill="${a}"/><path d="M3 8h14M3 12h14M7.7 4v12M12.3 4v12" stroke="currentColor" stroke-width="0.7"/>`,table:`<rect x="3" y="4" width="14" height="12" rx="1" fill="none" stroke="currentColor"/><rect x="3" y="4" width="14" height="3" fill="${t}"/><path d="M3 10h14M3 13h14M7.7 7v9M12.3 7v9" stroke="currentColor" stroke-width="0.7"/>`,cellStyles:`<rect x="3" y="4" width="14" height="12" rx="1" fill="none" stroke="currentColor"/><path d="M6 13 14 5l1.5 1.5-8 8H6z" fill="${t}"/>`,insertCells:`<rect x="3" y="4" width="14" height="12" fill="none" stroke="currentColor"/><path d="M3 10h14M10 4v12" stroke="currentColor" stroke-width="0.7"/><path d="M5 7h3M6.5 5.5v3" stroke="${o}" stroke-width="1.5"/>`,deleteCells:`<rect x="3" y="4" width="14" height="12" fill="none" stroke="currentColor"/><path d="M3 10h14M10 4v12" stroke="currentColor" stroke-width="0.7"/><path d="M5 6l3 3M8 6l-3 3" stroke="${a}" stroke-width="1.5"/>`,formatCells:`<rect x="3" y="4" width="14" height="12" fill="none" stroke="currentColor"/><path d="M3 8.5h14M9 4v12" stroke="currentColor" stroke-width="0.7"/><rect x="3" y="4" width="6" height="4.5" fill="${t}"/>`,sum:`<path ${e} d="M15 4.5H5l5.5 5.5L5 15.5h10"/>`,fillDown:`<rect x="4" y="3" width="12" height="14" fill="none" stroke="currentColor"/><path d="M10 6v7M7 10.5l3 3 3-3" fill="none" stroke="${t}" stroke-width="1.5"/>`,eraser:`<path d="M3.5 13 10 6.5l6 5-5 5H7z" fill="${a}" opacity="0.8"/><path ${e} d="M7 16.5h10"/>`,sort:`<path ${e} d="M6 4v12M3.5 13.5 6 16l2.5-2.5"/><text x="10" y="9" font-size="7.5" font-weight="700" fill="${t}">A</text><text x="10" y="17" font-size="7.5" font-weight="700" fill="currentColor">Z</text>`,find:`<circle ${e} cx="11.5" cy="8.5" r="5"/><path ${e} d="M8 12 3.5 16.5"/>`,generic:`<rect ${e} x="3.5" y="4" width="13" height="12" rx="1"/><path d="M3.5 8h13M8 8v8" stroke="currentColor" stroke-width="0.8"/>`,chart:`<path ${e} d="M3.5 3.5v13h13"/><rect x="6" y="9" width="2.4" height="6" fill="${t}"/><rect x="10" y="6" width="2.4" height="9" fill="${o}"/><rect x="14" y="11" width="2.4" height="4" fill="${$}"/>`,picture:`<rect ${e} x="3" y="4.5" width="14" height="11" rx="1"/><path ${e} d="m3.5 13.5 4-4 3 3 2-2 4 4"/><circle cx="13" cy="8" r="1.2" fill="${$}"/>`,shapes:`<circle cx="7" cy="7" r="4" fill="${t}"/><rect x="8" y="9" width="8.5" height="8" fill="none" stroke="currentColor" stroke-width="1.3"/>`,function:'<text x="4" y="15.5" font-size="15" font-style="italic" font-family="Georgia,serif" fill="currentColor">fx</text>',freeze:`<rect x="3" y="3.5" width="14" height="13" fill="none" stroke="currentColor"/><rect x="3" y="3.5" width="14" height="4" fill="${t}" opacity="0.75"/><rect x="3" y="3.5" width="4.5" height="13" fill="${t}" opacity="0.75"/><path d="M3 12h14M12 3.5v13" stroke="currentColor" stroke-width="0.6"/>`,freezeRow:`<rect x="3" y="3.5" width="14" height="13" fill="none" stroke="currentColor"/><rect x="3" y="3.5" width="14" height="4" fill="${t}" opacity="0.75"/><path d="M3 12h14M8 3.5v13M12.5 3.5v13" stroke="currentColor" stroke-width="0.6"/>`,freezeCol:`<rect x="3" y="3.5" width="14" height="13" fill="none" stroke="currentColor"/><rect x="3" y="3.5" width="4.5" height="13" fill="${t}" opacity="0.75"/><path d="M3 8h14M3 12h14M12 3.5v13" stroke="currentColor" stroke-width="0.6"/>`,link:`<path ${e} d="M8.5 11.5a3 3 0 0 0 4.3 0l2.7-2.7a3 3 0 0 0-4.3-4.3l-1 1"/><path ${e} d="M11.5 8.5a3 3 0 0 0-4.3 0l-2.7 2.7a3 3 0 0 0 4.3 4.3l1-1"/>`,note:`<path d="M3.5 4h13v9H9l-3.5 3v-3h-2z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/><path d="M10 6.5v4M8 8.5h4" stroke="${o}" stroke-width="1.4"/>`,textBox:`<rect ${e} x="3" y="4" width="14" height="12" rx="1"/><text x="6.2" y="14" font-size="9.5" font-weight="700" font-family="Georgia,serif" fill="${t}">A</text>`,filter:`<path ${e} d="M3.5 4.5h13l-5 6v5l-3-1.5v-3.5z"/>`,textColumns:`<rect x="3" y="4" width="5.5" height="12" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="11.5" y="4" width="5.5" height="12" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M8.5 10h3M10 8.5l1.5 1.5L10 11.5" fill="none" stroke="${t}" stroke-width="1.2"/>`,duplicates:`<rect x="3" y="3" width="10" height="6" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="3" y="11" width="10" height="6" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="m14 8 3.5 3.5m0-3.5L14 11.5" stroke="${a}" stroke-width="1.5"/>`,flash:`<path d="M11.5 2.5 5 11h4.2L8 17.5l7-9h-4.3z" fill="${$}"/>`,validate:`<rect x="3" y="4" width="14" height="12" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="m6 10 3 3 5-6" fill="none" stroke="${o}" stroke-width="1.7"/>`,goal:`<circle ${e} cx="10" cy="10" r="7"/><circle ${e} cx="10" cy="10" r="3.5"/><circle cx="10" cy="10" r="1.2" fill="${a}"/>`,group:`<path ${e} d="M5 4v12M5 4h2M5 16h2M5 10h2"/><rect x="9" y="4" width="8" height="3" fill="${t}"/><rect x="9" y="8.5" width="8" height="3" fill="${t}"/><rect x="9" y="13" width="8" height="3" fill="${t}"/>`,ungroup:`<path ${e} d="M5 4v12"/><path d="m3 8 4 4m0-4-4 4" stroke="${a}" stroke-width="1.3"/><rect x="9" y="4" width="8" height="3" fill="${t}"/><rect x="9" y="8.5" width="8" height="3" fill="${t}"/><rect x="9" y="13" width="8" height="3" fill="${t}"/>`,outline:`<rect x="3" y="4" width="4" height="12" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M4.2 7h1.6M4.2 10h1.6M4.2 13h1.6" stroke="currentColor"/><path d="M9.5 6h7.5M11.5 10h5.5M13.5 14h3.5" stroke="${t}" stroke-width="1.5"/>`,subtotal:`<rect x="3" y="4" width="14" height="12" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M3 8.5h14M3 12.5h14" stroke="currentColor" stroke-width="0.7"/><path d="M12.8 13.4h-3l1.8 1.6-1.8 1.5" fill="none" stroke="${o}" stroke-width="0" /><rect x="3" y="12.5" width="14" height="3.5" fill="${o}" opacity="0.5"/>`,protect:`<rect ${e} x="4.5" y="9" width="11" height="8" rx="1"/><path ${e} d="M7 9V6.5a3 3 0 0 1 6 0V9"/><circle cx="10" cy="12.7" r="1.1" fill="${$}"/>`,unprotect:`<rect ${e} x="4.5" y="9" width="11" height="8" rx="1"/><path ${e} d="M7 9V6.5a3 3 0 0 1 5.8-1"/><circle cx="10" cy="12.7" r="1.1" fill="${$}"/>`,names:`<path ${e} d="M3.5 5.5h9l4 4.5-4 4.5h-9z"/><circle cx="6.5" cy="10" r="1" fill="${t}"/>`,nameDefine:`<path ${e} d="M3.5 5.5h9l4 4.5-4 4.5h-9z"/><path d="M6 10h4M8 8v4" stroke="${o}" stroke-width="1.4"/>`,trace:`<rect x="3" y="3" width="5" height="4" fill="none" stroke="currentColor" stroke-width="1.1"/><rect x="12" y="13" width="5" height="4" fill="none" stroke="currentColor" stroke-width="1.1"/><path d="M6 7.5 13 13M13 13l-.6-2.5M13 13l-2.5-.3" fill="none" stroke="${t}" stroke-width="1.2"/>`,arrowsOff:`<path d="M4 14 14 6M14 6l-3 .2M14 6l-.4 3" fill="none" stroke="${t}" stroke-width="1.2"/><path d="m3.5 4.5 13 11" stroke="${a}" stroke-width="1.5"/>`,showFormulas:`<rect x="3" y="4" width="14" height="12" fill="none" stroke="currentColor" stroke-width="1.2"/><text x="5.5" y="14" font-size="10" font-style="italic" font-family="Georgia,serif" fill="${t}">fx</text>`,calculate:`<rect ${e} x="4.5" y="3" width="11" height="14" rx="1"/><rect x="6.5" y="5" width="7" height="2.5" fill="${t}"/><path d="M7 10.5h1M10 10.5h1M13 10.5h.1M7 13.5h1M10 13.5h1M13 13.5h.1" stroke="currentColor" stroke-width="1.4"/>`,databar:`<path ${e} d="M3.5 3.5v13h13"/><rect x="5" y="6" width="9" height="2.3" fill="${t}"/><rect x="5" y="10" width="6" height="2.3" fill="${t}"/><rect x="5" y="14" width="3" height="1.6" fill="${t}"/>`,line:`<path ${e} d="M3.5 3.5v13h13"/><path d="m5.5 13 3-4 3 2.5 4-6" fill="none" stroke="${t}" stroke-width="1.4"/>`,pie:`<path d="M10 3a7 7 0 1 0 7 7h-7z" fill="${t}"/><path d="M12 3a6 6 0 0 1 5.5 5.5H12z" fill="${$}"/>`,scatter:`<path ${e} d="M3.5 3.5v13h13"/><circle cx="7" cy="12" r="1.2" fill="${t}"/><circle cx="10" cy="8" r="1.2" fill="${t}"/><circle cx="13" cy="10" r="1.2" fill="${t}"/><circle cx="15" cy="6" r="1.2" fill="${t}"/>`,otherChart:`<path d="M10 3v14M3.5 7l13 6M16.5 7l-13 6" stroke="currentColor" stroke-width="0.7"/><path d="M10 5 15 8l-1 5-4 2-4-3 .5-4z" fill="${t}" opacity="0.7"/>`,spark:`<rect x="3" y="6" width="14" height="8" fill="none" stroke="currentColor" stroke-width="1.1"/><path d="m4.5 11.5 2.5-3 2.5 2 2-3.5 3.5 2" fill="none" stroke="${t}" stroke-width="1.2"/>`,front:`<rect x="8" y="8" width="9" height="9" fill="none" stroke="currentColor" stroke-width="1.1"/><rect x="3" y="3" width="9" height="9" fill="${t}"/>`,back:`<rect x="3" y="3" width="9" height="9" fill="${t}" opacity="0.5"/><rect x="8" y="8" width="9" height="9" fill="none" stroke="currentColor" stroke-width="1.2"/>`,trash:`<path ${e} d="M4.5 6h11M8 6V4h4v2M6 6l.8 10.5h6.4L14 6"/>`,pivot:`<rect x="3" y="3" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M3 7h14M7 3v14" stroke="currentColor" stroke-width="1"/><path d="M10 13.5h4M14 13.5l-1.5-1.5M14 13.5 12.5 15M10 10v3.5" fill="none" stroke="${o}" stroke-width="1.2"/>`,ruler:`<rect ${e} x="3" y="7" width="14" height="6" rx="0.5"/><path d="M6 7v2M9 7v3M12 7v2M15 7v3" stroke="currentColor" stroke-width="0.9"/>`,split:`<rect x="3" y="3.5" width="14" height="13" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M10 3.5v13M3 10h14" stroke="${t}" stroke-width="1.4"/>`,script:`<rect ${e} x="3" y="3.5" width="14" height="13" rx="1"/><path d="m6 8 2.2 2L6 12" fill="none" stroke="${t}" stroke-width="1.3"/><path d="M10 12.5h4" stroke="currentColor" stroke-width="1.2"/>`,zoom:`<circle ${e} cx="9" cy="9" r="5"/><path ${e} d="M13 13l3.5 3.5M7 9h4M9 7v4"/>`,margins:`<rect ${e} x="4" y="2.5" width="12" height="15" rx="0.5"/><path d="M7 2.5v15M13 2.5v15M4 5.5h12M4 14.5h12" stroke="${t}" stroke-width="0.9" stroke-dasharray="1.5 1.2"/>`,pageOrientation:`<path ${e} d="M7 13.5H3V2.5h7.5v6"/><rect x="7" y="8.5" width="10.5" height="8" rx="0.5" fill="${t}" fill-opacity="0.25" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/>`,paperSize:`<path ${e} d="M8.5 2.5h5l3 3v7.5h-8z"/><path d="M8.5 16.3h8M10 15l-1.5 1.3 1.5 1.3M15 15l1.5 1.3-1.5 1.3M4.8 2.5v10.5M3.5 4l1.3-1.5L6.1 4M3.5 11.5l1.3 1.5 1.3-1.5" ${h(t,1.1)}/>`,printArea:`<rect ${e} x="3.5" y="2.5" width="13" height="15" rx="0.5"/><rect x="6" y="5.5" width="8" height="7" fill="${t}" fill-opacity="0.3" stroke="${t}" stroke-width="1.1" stroke-dasharray="1.6 1.1"/>`,pageBreaks:`<path ${e} d="M4.5 8V2.5h11V8M4.5 12v5.5h11V12"/><path d="M2.5 10h15" stroke="${t}" stroke-width="1.4" stroke-dasharray="2.2 1.6"/>`,printTitles:`<path ${e} d="M8.5 13H2.5V2.5H11v4"/><rect x="2.5" y="2.5" width="8.5" height="2.6" fill="${t}"/><rect ${e} x="8.5" y="6.5" width="9" height="11"/><rect x="8.5" y="6.5" width="9" height="2.6" fill="${t}"/><path d="M10.5 12h5M10.5 14.8h5" stroke="currentColor" stroke-width="0.8"/>`,pageSetup:`${z}${x(13.8,13.8,2.6)}`,fitWidth:`<path ${e} d="M3 4.5v11M17 4.5v11"/><path d="M5.5 10h9M8 7.5 5.5 10 8 12.5M12 7.5l2.5 2.5-2.5 2.5" ${h(t,1.4)}/>`,fitHeight:`<path ${e} d="M4.5 3h11M4.5 17h11"/><path d="M10 5.5v9M7.5 8 10 5.5 12.5 8M7.5 12l2.5 2.5 2.5-2.5" ${h(t,1.4)}/>`,scale:`<rect ${e} x="3" y="10.5" width="6.5" height="6.5" rx="0.5"/><path d="M3 7.5V3h14v14h-4.5" fill="none" stroke="currentColor" stroke-width="1" stroke-dasharray="1.6 1.2"/><path d="M8 12 15 5M10.5 5H15v4.5" ${h(t,1.4)}/>`,sheetRtl:`<rect ${e} x="3" y="3" width="14" height="9" rx="0.5"/><path d="M7.7 3v9M12.3 3v9M3 7.5h14" stroke="currentColor" stroke-width="0.7"/><path d="M16 15.5H4.5M7 13l-2.5 2.5L7 18" ${h(t,1.4)}/>`,sheetLtr:`<rect ${e} x="3" y="3" width="14" height="9" rx="0.5"/><path d="M7.7 3v9M12.3 3v9M3 7.5h14" stroke="currentColor" stroke-width="0.7"/><path d="M4 15.5h11.5M13 13l2.5 2.5L13 18" ${h(t,1.4)}/>`,themes:`<rect ${e} x="2.5" y="2.5" width="15" height="15" rx="2"/><text x="4.4" y="10.8" font-size="8.5" font-family="Georgia,serif" fill="currentColor">Aa</text><rect x="5" y="12.8" width="3" height="2.6" fill="${t}"/><rect x="8.5" y="12.8" width="3" height="2.6" fill="${o}"/><rect x="12" y="12.8" width="3" height="2.6" fill="${$}"/>`,themeColors:`<path ${e} d="M10 3a7 7 0 1 0 0 14c1.2 0 1.6-.8 1.2-1.7-.5-1 .2-2.3 1.5-2.3H15a2.5 2.5 0 0 0 2.5-2.5C17.5 6.2 14.2 3 10 3z"/><circle cx="6.3" cy="9.3" r="1.4" fill="${a}"/><circle cx="8.8" cy="6.1" r="1.4" fill="${$}"/><circle cx="12.9" cy="6.5" r="1.4" fill="${o}"/><circle cx="6.8" cy="13.2" r="1.4" fill="${t}"/>`,themeFonts:`<text x="1.5" y="15.5" font-size="14" font-family="Georgia,serif" fill="currentColor">A</text><text x="11" y="15.5" font-size="10" font-family="-apple-system,Arial" fill="${t}">a</text>`,background:`<rect ${e} x="3" y="4" width="14" height="12" rx="1"/><path d="M3.6 15.4 7.5 11l3 3 2.2-2.2 3.7 3.6z" fill="${o}" fill-opacity="0.6"/><circle cx="13" cy="7.5" r="1.3" fill="${$}"/><path d="M3 8h14M7.7 4v12M12.3 4v12" stroke="currentColor" stroke-width="0.6"/>`,backgroundDelete:`<rect ${e} x="2.5" y="3.5" width="12" height="10" rx="1"/><path ${e} d="m3 12 3.5-3.5 2.5 2.5 1.8-1.8 3.2 3.2"/>${f(15.5,15.5)}`,fnRecent:`<path ${e} d="M4.2 6.5A6.8 6.8 0 1 1 3.2 10"/><path ${e} d="M3.6 3.4l.6 3.3 3.2-.7"/><path d="M10 6.2v4l2.8 1.8" ${h(t,1.4)}/>`,fnFinancial:`<rect ${e} x="2.5" y="5.5" width="15" height="9" rx="1"/><circle cx="10" cy="10" r="2.4" fill="none" stroke="${o}" stroke-width="1.4"/><path d="M5 8v4M15 8v4" stroke="currentColor" stroke-width="1"/>`,fnLogical:`<path ${e} d="M10 2.5 17.5 10 10 17.5 2.5 10z"/><text x="10" y="13.6" text-anchor="middle" font-size="9.5" font-weight="700" font-family="-apple-system,Arial" fill="${t}">?</text>`,fnText:`<text x="10" y="15.5" text-anchor="middle" font-size="13" font-family="Georgia,serif" fill="currentColor">A</text><path d="M3 4.5v3M5 4.5v3M15 4.5v3M17 4.5v3" ${h(t,1.4)}/>`,fnDate:`<path ${e} d="M10.5 16.5H3.5v-12h13v5.5"/><path ${e} d="M3.5 8h13M7 2.5v3.5M13 2.5v3.5"/><circle cx="14.5" cy="14.5" r="3.4" fill="none" stroke="${t}" stroke-width="1.2"/><path d="M14.5 12.8v1.8l1.2.9" ${h(t,1.1)}/>`,fnLookup:`${n(2.5,2.5,10,9,1.1)}<circle cx="13" cy="12.5" r="3.3" fill="none" stroke="${t}" stroke-width="1.4"/><path d="M15.4 14.9 17.6 17.1" ${h(t,1.6)}/>`,fnMath:`<path ${e} d="M2.5 11.5h2.2l2.3 5L11 3.5h6.5"/><path d="M11.5 9l4 4.5M15.5 9l-4 4.5" ${h(t,1.4)}/>`,fnMore:`${v(2.5,11.5,11)}<circle cx="10" cy="15.8" r="1.2" fill="${t}"/><circle cx="13.5" cy="15.8" r="1.2" fill="${t}"/><circle cx="17" cy="15.8" r="1.2" fill="${t}"/>`,evaluate:`${v(2,12,11.5)}${V(13.2,12.5,2.9,t)}`,formulaEditor:`<rect ${e} x="2.5" y="3.5" width="15" height="13" rx="1"/><path d="M2.5 7h15" stroke="currentColor" stroke-width="0.8"/>${v(4.5,14.5,8.5)}<path d="M14 9.5v5" ${h(t,1.4)}/>`,aiAssist:`<path d="M9 2.5l1.7 4.8L15.5 9l-4.8 1.7L9 15.5l-1.7-4.8L2.5 9l4.8-1.7z" fill="${t}"/><path d="M15 12.5l.8 1.9 1.9.8-1.9.8-.8 1.9-.8-1.9-1.9-.8 1.9-.8z" fill="${$}"/>`,aiSettings:`<path d="M7 2.5l1.2 3.3 3.3 1.2-3.3 1.2L7 11.5 5.8 8.2 2.5 7l3.3-1.2z" fill="${t}"/>${x(13.8,13.8,2.6,"currentColor")}`,formulaLanguage:`${v(2,11.5,11)}<circle cx="14.2" cy="13.8" r="3.3" fill="none" stroke="${t}" stroke-width="1.2"/><ellipse cx="14.2" cy="13.8" rx="1.4" ry="3.3" fill="none" stroke="${t}" stroke-width="0.9"/><path d="M10.9 13.8h6.6" stroke="${t}" stroke-width="0.9"/>`,errorCheck:`<path ${e} d="M10 3 17.5 16.5h-15z"/><path d="M10 8v4" ${h(a,1.6)}/><circle cx="10" cy="14.2" r="0.9" fill="${a}"/>`,tracePrecedents:`<circle cx="4.8" cy="4.8" r="2" fill="${t}"/><path d="M6.5 6.5 12 12M8.8 12H12V8.8" ${h(t,1.3)}/><rect ${e} x="12.5" y="12.5" width="5" height="5"/>`,traceDependents:`<rect ${e} x="2.5" y="2.5" width="5" height="5"/><path d="M8 8l7.5 7.5M12.3 15.5h3.2v-3.2" ${h(o,1.3)}/>`,traceError:`<path d="M5.5 2.5l3.6 6.2H1.9z" fill="${a}"/><path d="M8.5 10.5l7 6M12 16.5h3.5V13" ${h(a,1.3)}/>`,traceLinks:`<path d="M5 5l10 3M5 5l3 10M15 8l-7 7" stroke="currentColor" stroke-width="1"/><circle cx="5" cy="5" r="2.3" fill="${t}"/><circle cx="15" cy="8" r="2.3" fill="${o}"/><circle cx="8" cy="15" r="2.3" fill="${$}"/>`,watch:`<rect ${e} x="2.5" y="3.5" width="15" height="13" rx="1"/><path d="M2.5 7h15" stroke="currentColor" stroke-width="0.8"/>${L(10,11.7,1,t)}`,calcOptions:`<rect ${e} x="2.5" y="2.5" width="8.5" height="15" rx="1"/><rect x="4.2" y="4.3" width="5.1" height="2.4" fill="${t}"/><path d="M4.6 10h.1M6.8 10h.1M9 10h.1M4.6 12.7h.1M6.8 12.7h.1M9 12.7h.1M4.6 15.3h.1M6.8 15.3h.1M9 15.3h.1" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><path d="M13.5 5.5h4M13.5 10h4M13.5 14.5h4" ${h(t,1.4)}/>`,calcSheet:`${n(2.5,4,8,12,1.1)}<rect ${e} x="12" y="5.5" width="5.5" height="12" rx="0.8"/><rect x="13.2" y="7" width="3.1" height="2" fill="${t}"/><path d="M13.6 11.6h.1M16 11.6h.1M13.6 14.6h.1M16 14.6h.1" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>`,settings:`${x(10,10,4.8,"currentColor")}<circle cx="10" cy="10" r="1.8" fill="${t}"/>`,nameUse:`<path ${e} d="M2.5 3.5h7.5l3 3-3 3H2.5z"/><path d="M5.5 10v4.5h4M8 12.6l1.8 1.9L8 16.4" ${h(t,1.3)}/><path d="M12.5 13.3h5M12.5 15.8h5" ${h(t,1.4)}/>`,nameCreate:`<rect x="2.5" y="8.5" width="15" height="9" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="2.5" y="8.5" width="15" height="2.8" fill="${t}"/><path d="M2.5 14.4h15M7.5 11.3v6.2M12.5 11.3v6.2" stroke="currentColor" stroke-width="0.7"/><path ${e} d="M5.5 2.5h6.5l2.3 2.3L12 7H5.5z"/>`,statistics:`<path ${e} d="M4 2.5h9l3 3v12H4z"/><rect x="6.5" y="12" width="2" height="3.5" fill="${t}"/><rect x="9.5" y="9" width="2" height="6.5" fill="${o}"/><rect x="12.5" y="11" width="2" height="4.5" fill="${$}"/>`,getData:`${D}<path d="M12.5 10h5M15.3 7.6 17.7 10l-2.4 2.4" ${h(o,1.5)}/>`,dataSource:`${D}<circle cx="15" cy="13.5" r="2.9" fill="none" stroke="${t}" stroke-width="1.2"/><ellipse cx="15" cy="13.5" rx="1.2" ry="2.9" fill="none" stroke="${t}" stroke-width="0.9"/><path d="M12.1 13.5h5.8" stroke="${t}" stroke-width="0.9"/>`,reload:`${D}${p(15,13.5,2.6,250,280,t,1.3)}`,cellType:`<rect ${e} x="2.5" y="6" width="15" height="8" rx="1"/><path d="M12.5 6v8" stroke="currentColor" stroke-width="1"/><path d="M13.7 9.2l1.3 1.5 1.3-1.5" ${h(t,1.3)}/><path d="M5 10h5" stroke="currentColor" stroke-width="1"/>`,consolidate:`<rect ${e} x="2.5" y="2.5" width="5.5" height="4.5"/><rect ${e} x="2.5" y="13" width="5.5" height="4.5"/><rect x="12" y="7.5" width="5.5" height="5" fill="${t}" fill-opacity="0.35" stroke="currentColor" stroke-width="1.3"/><path d="M8.5 5.5 11.5 9M8.5 14.5l3-3.5" ${h(t,1.3)}/>`,sortZA:`<path ${e} d="M6 4v12M3.5 13.5 6 16l2.5-2.5"/><text x="10" y="9" font-size="7.5" font-weight="700" fill="${t}">Z</text><text x="10" y="17" font-size="7.5" font-weight="700" fill="currentColor">A</text>`,sortCustom:`<path ${e} d="M5 3.5v13M2.5 14 5 16.5 7.5 14"/><path d="M9.5 5h8M9.5 10h5.5M9.5 15h3" ${h(t,1.6)}/>`,sortClear:`<path ${e} d="M4.5 4v12M2.5 13.8 4.5 16l2-2.2"/><text x="7.5" y="9" font-size="7" font-weight="700" fill="${t}">A</text><text x="7.5" y="17" font-size="7" font-weight="700" fill="currentColor">Z</text>${f(15.5,13.5)}`,sortFilter:`<path ${e} d="M4 4v12M2 13.8 4 16l2-2.2"/><text x="6.5" y="9" font-size="7" font-weight="700" fill="${t}">A</text><text x="6.5" y="17" font-size="7" font-weight="700" fill="currentColor">Z</text><path ${e} d="M11.5 5.5h6.5l-2.5 3v4l-1.5-.8V8.5z"/>`,filterClear:`${G}${f(15.5,14.5)}`,filterReapply:`${G}${p(15,14.5,2.6,250,280,o,1.3)}`,filterAdvanced:`${G}${x(14.8,14.3,2.2)}`,chartFilter:`<path ${e} d="M2.5 3v14.5H17"/><rect x="5" y="10" width="2.2" height="5.5" fill="${t}"/><rect x="8.5" y="7" width="2.2" height="8.5" fill="${o}"/><path ${e} d="M11.5 3h6.5l-2.4 2.9v3.6l-1.7-.9V5.9z"/>`,refresh:R(10,10,6),refreshAll:`${R(10,10,7)}${n(7,7.5,6,5,1)}`,editLinks:`${H(-1.5,-1.5,.8,"currentColor")}<path d="M10.5 17.5l.6-2.6 5-5 2 2-5 5z" ${h(t,1.2)}/>`,switchRowCol:`<rect x="7" y="2.5" width="10.5" height="3.2" fill="${t}"/><rect x="2.5" y="7" width="3.2" height="10.5" fill="${o}"/><path ${e} d="M9 15.5a6.5 6.5 0 0 1 6.5-6.5M13.8 7.4 15.6 9l-1.8 1.6M7.4 13.8 9 15.6l1.6-1.8"/>`,noteSticky:`<path d="M3.5 3.5h13v8.5l-4.5 4.5h-8.5z" fill="${$}" fill-opacity="0.35" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/><path ${e} d="M16.5 12H12v4.5"/><path d="M6.5 7h7M6.5 10h4" stroke="currentColor" stroke-width="1"/>`,showComments:`<path ${e} d="M2.5 3h10v6.5H7l-2.5 2v-2h-2z"/><path d="M14.5 7.5h3v7h-2v2l-2.5-2H8v-3" ${h(t,1.3)}/>`,changes:`${z}<path d="M5 6h4M5 9h5M5 12h3" stroke="currentColor" stroke-width="0.9"/><circle cx="14" cy="14" r="3.4" fill="none" stroke="${t}" stroke-width="1.2"/><path d="M14 12.2v1.9l1.3.9" ${h(t,1.1)}/>`,protectWorkbook:`<path ${e} d="M8 16.5H4.5a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2H14v6"/><path ${e} d="M2.5 14.5a2 2 0 0 1 2-2H8"/><rect x="9.5" y="11" width="8" height="6.5" rx="1" fill="${$}" fill-opacity="0.45" stroke="currentColor" stroke-width="1.3"/><path ${e} d="M11.3 11V9.4a2.2 2.2 0 0 1 4.4 0V11"/>`,unprotectWorkbook:`<path ${e} d="M8 16.5H4.5a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2H14v6"/><path ${e} d="M2.5 14.5a2 2 0 0 1 2-2H8"/><rect x="9.5" y="11" width="8" height="6.5" rx="1" fill="${$}" fill-opacity="0.45" stroke="currentColor" stroke-width="1.3"/><path ${e} d="M11.3 11V9.4a2.2 2.2 0 0 1 4.3-.6"/>`,spelling:`<text x="1.5" y="9.5" font-size="7.5" font-weight="700" font-family="-apple-system,Arial" fill="currentColor">ABC</text><path d="m5 13.5 3 3 7-7" ${h(o,1.7)}/>`,language:`<circle ${e} cx="10" cy="10" r="7"/><ellipse cx="10" cy="10" rx="3" ry="7" fill="none" stroke="${t}" stroke-width="1.1"/><path d="M3 10h14M4.2 6.3h11.6M4.2 13.7h11.6" stroke="${t}" stroke-width="0.9"/>`,autoCorrect:`<text x="1.5" y="9.5" font-size="7.5" font-weight="700" font-family="-apple-system,Arial" fill="currentColor">ABC</text><path d="M4 13c2.5 3.5 9.5 3.5 12 0M13.3 12.6l2.7.4.3-2.6" ${h(t,1.4)}/>`,accessibility:`<circle ${e} cx="10" cy="10" r="7.5"/><circle cx="10" cy="6" r="1.3" fill="${t}"/><path d="M6 8.5h8M10 8.5v3.5l-2.2 4M10 12l2.2 4" ${h(t,1.3)}/>`,slicer:`<rect ${e} x="3.5" y="2.5" width="13" height="15" rx="1"/><path d="M6 5.3h5" stroke="currentColor" stroke-width="1.2"/><rect x="6" y="7.5" width="8" height="2.4" rx="0.5" fill="${t}"/><rect x="6" y="11" width="8" height="2.4" rx="0.5" fill="${t}"/><rect x="6" y="14.4" width="8" height="1.8" rx="0.5" fill="none" stroke="currentColor" stroke-width="0.9"/>`,timeline:`<rect ${e} x="2.5" y="4.5" width="15" height="11" rx="1"/><path d="M4.5 8h11M6 8v1.6M9 8v1.6M12 8v1.6M15 8v1.6" stroke="currentColor" stroke-width="0.9"/><rect x="7" y="11" width="6.5" height="2.4" rx="0.5" fill="${t}"/>`,insertTable:`${u(2.5,3,11.5,10.5)}${M(15.5,15.5)}`,dataChart:`${n(2.5,3,7,14,1.1)}<rect x="11" y="11" width="1.8" height="6" fill="${t}"/><rect x="13.4" y="6.5" width="1.8" height="10.5" fill="${o}"/><rect x="15.8" y="13" width="1.8" height="4" fill="${$}"/>`,tableSheet:`${u(2.5,2.5,15,11)}<path d="M4.5 13.5v3.2h5.5l1.2-3.2" ${h(t,1.3)}/>`,ganttSheet:`<rect ${e} x="2.5" y="3" width="15" height="14" rx="1"/><path d="M6.5 3v14" stroke="currentColor" stroke-width="0.7"/><rect x="7.5" y="5.2" width="5" height="2.4" fill="${t}"/><rect x="10" y="8.8" width="5" height="2.4" fill="${o}"/><rect x="12" y="12.4" width="4.5" height="2.4" fill="${$}"/>`,reportSheet:`<path ${e} d="M3.5 2.5h10l3 3v12h-13z"/><rect x="5.5" y="5" width="7" height="2" fill="${t}"/><path d="M5.5 9.5h9" stroke="currentColor" stroke-width="0.8"/><rect x="6" y="12.5" width="1.8" height="3" fill="${o}"/><rect x="9" y="11" width="1.8" height="4.5" fill="${o}"/><rect x="12" y="13.3" width="1.8" height="2.2" fill="${o}"/>`,fieldList:`<rect ${e} x="3.5" y="2.5" width="13" height="15" rx="1"/><rect x="5.5" y="4.8" width="2.4" height="2.4" fill="${t}"/><rect x="5.5" y="8.8" width="2.4" height="2.4" fill="${t}"/><rect x="5.5" y="12.8" width="2.4" height="2.4" fill="none" stroke="currentColor" stroke-width="0.9"/><path d="M9.5 6h5M9.5 10h5M9.5 14h5" stroke="currentColor" stroke-width="1.1"/>`,headerFooter:`<rect ${e} x="3.5" y="2.5" width="13" height="15" rx="0.5"/><rect x="5.5" y="4.5" width="9" height="2" fill="${t}"/><rect x="5.5" y="13.5" width="9" height="2" fill="${t}"/><path d="M5.5 9h9M5.5 11h6" stroke="currentColor" stroke-width="0.8"/>`,symbol:'<text x="10" y="16" text-anchor="middle" font-size="15.5" font-family="Georgia,serif" fill="currentColor">Ω</text>',wordArt:`<text x="10" y="16.5" text-anchor="middle" font-size="17" font-weight="700" font-style="italic" font-family="Georgia,serif" fill="${t}" stroke="currentColor" stroke-width="0.5">A</text>`,checkbox:`<rect ${e} x="2.5" y="5.5" width="9" height="9" rx="1.5"/><path d="m4.8 10 2 2 3-3.6" ${h(t,1.6)}/><path d="M13.5 10h4" ${h("currentColor",1.3)}/>`,viewNormal:n(2.5,3.5,15,13,1.2),pageBreakPreview:`<path d="M2.5 7.8h15M2.5 12.2h15M6.3 3.5v13M13.8 3.5v13" stroke="currentColor" stroke-width="0.6"/><rect x="2.5" y="3.5" width="15" height="13" fill="none" stroke="${t}" stroke-width="1.6"/><path d="M10 3.5v13" stroke="${t}" stroke-width="1.6" stroke-dasharray="2 1.5"/>`,viewPageLayout:`<path d="M2.5 3h15" stroke="currentColor" stroke-width="1.2"/><path d="M5 3v1.8M8.3 3v1.2M11.7 3v1.2M15 3v1.8" stroke="currentColor" stroke-width="0.9"/><rect ${e} x="4.5" y="6.5" width="11" height="11" rx="0.5"/><path d="M6.8 9.5h6.4M6.8 12h6.4M6.8 14.5h4" stroke="${t}" stroke-width="0.9"/>`,customViews:`<rect ${e} x="2.5" y="3.5" width="15" height="13" rx="1"/><path d="M2.5 7h15" stroke="currentColor" stroke-width="0.8"/><path d="M11.5 7v6.5l1.75-1.4 1.75 1.4V7z" fill="${t}"/>`,viewOptions:`${L(8.5,8,1.05)}${x(14.3,14.3,2.3,"currentColor")}`,focusCell:`<rect x="7" y="7" width="6" height="6" fill="${t}" fill-opacity="0.3" stroke="${t}" stroke-width="1.3"/><path d="M10 2.5v3M10 14.5v3M2.5 10h3M14.5 10h3" ${h("currentColor",1.3)}/>`,editOptions:`<path ${e} d="M3 17l.8-3.4 8-8 2.6 2.6-8 8zM10.2 7.2l2.6 2.6"/>${x(15,15,2.2)}`,keyboard:`<rect ${e} x="2" y="5.5" width="16" height="9.5" rx="1.2"/><path d="M5 8.5h.1M7.7 8.5h.1M10.4 8.5h.1M13.1 8.5h.1M15.3 8.5h.1M5 11.8h.1M15.3 11.8h.1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M7.5 11.8h5" ${h(t,1.4)}/>`,fullScreen:`<path ${e} d="M3 7.5V3h4.5M12.5 3H17v4.5M17 12.5V17h-4.5M7.5 17H3v-4.5"/><path d="M4 4l3.5 3.5M16 4l-3.5 3.5M16 16l-3.5-3.5M4 16l3.5-3.5" ${h(t,1.3)}/>`,ribbonToggle:`<rect ${e} x="2.5" y="3.5" width="15" height="13" rx="1"/><rect x="2.5" y="3.5" width="15" height="4.5" fill="${t}" fill-opacity="0.35"/><path d="M2.5 8h15" stroke="currentColor" stroke-width="1"/><path d="M7.5 13.5 10 11l2.5 2.5" ${h(t,1.4)}/>`,zoomDialog:`<circle cx="8.5" cy="8.5" r="5.5" fill="${t}" fill-opacity="0.2" stroke="currentColor" stroke-width="1.3"/><path ${e} d="M12.5 12.5 17 17"/>`,zoom100:`<rect ${e} x="2" y="5" width="16" height="10" rx="2"/><text x="10" y="12.8" text-anchor="middle" font-size="7.5" font-weight="700" font-family="-apple-system,Arial" fill="${t}">100</text>`,zoomSelection:`<rect x="2.5" y="2.5" width="8" height="6" fill="${t}" fill-opacity="0.25" stroke="${t}" stroke-width="1.1" stroke-dasharray="1.6 1.1"/>${V(11.5,11.5,4)}`,zoomOut:`<circle ${e} cx="9" cy="9" r="5"/><path ${e} d="M13 13l3.5 3.5M7 9h4"/>`,zoomFit:`<path ${e} d="M3 6.5V3h3.5M13.5 3H17v3.5M17 13.5V17h-3.5M6.5 17H3v-3.5"/><path d="M6 10h8M8 8l-2 2 2 2M12 8l2 2-2 2" ${h(t,1.3)}/>`,record:`<circle ${e} cx="10" cy="10" r="7"/><circle cx="10" cy="10" r="3.5" fill="${a}"/>`,recordStop:`<circle ${e} cx="10" cy="10" r="7"/><rect x="7" y="7" width="6" height="6" rx="0.8" fill="${a}"/>`,cellOptions:`<rect ${e} x="2.5" y="4.5" width="15" height="11" rx="1"/><rect x="5" y="7" width="10" height="6" fill="none" stroke="${t}" stroke-width="1.1" stroke-dasharray="1.5 1.1"/><path d="M7 10h6" stroke="currentColor" stroke-width="1.2"/>`,chartElement:`<rect ${e} x="2.5" y="4.5" width="12" height="12.5" rx="1"/><path d="M5 7.5h7" ${h(t,1.4)}/><rect x="5" y="11" width="1.8" height="4" fill="currentColor"/><rect x="8" y="9.5" width="1.8" height="5.5" fill="currentColor"/><rect x="11" y="12" width="1.8" height="3" fill="currentColor"/>${M(16,4.5)}`,quickLayout:`<rect ${e} x="2.5" y="2.5" width="15" height="15" rx="1"/><rect x="4.5" y="4.5" width="11" height="2" fill="${t}"/><rect x="4.5" y="9" width="7" height="6.5" fill="none" stroke="currentColor" stroke-width="1"/><path d="M13.5 10h2M13.5 12.5h2M13.5 15h2" ${h(t,1.2)}/>`,chartColors:`<rect x="3" y="3.5" width="14" height="3.5" rx="0.8" fill="${t}"/><rect x="3" y="8.25" width="14" height="3.5" rx="0.8" fill="${o}"/><rect x="3" y="13" width="14" height="3.5" rx="0.8" fill="${$}"/>`,chartStyles:`<rect ${e} x="2.5" y="3" width="15" height="14" rx="2"/><rect x="5" y="9" width="2.4" height="5.5" fill="${t}"/><rect x="8.8" y="6" width="2.4" height="8.5" fill="${t}" fill-opacity="0.6"/><rect x="12.6" y="10.5" width="2.4" height="4" fill="${t}" fill-opacity="0.35"/>`,changeChartType:`<rect x="2.5" y="6" width="2" height="5" fill="${t}"/><rect x="5.5" y="3" width="2" height="8" fill="${t}"/><path d="M9.5 4.5c2.5 0 4 1 4.5 3.2M12.4 6.7l1.6 1.4 1.3-1.7" ${h("currentColor",1.2)}/><path d="M13.5 10a3.75 3.75 0 1 0 3.75 3.75H13.5z" fill="${o}"/>`,chartTemplates:`<path ${e} d="M4 2.5h9l3 3v12H4z"/><path ${e} d="M13 2.5v3h3"/><rect x="6.5" y="11" width="2" height="4" fill="${t}"/><rect x="9.5" y="8" width="2" height="7" fill="${o}"/><rect x="12.5" y="12" width="2" height="3" fill="${$}"/>`,formatSelection:`<rect x="4" y="4" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1" stroke-dasharray="1.6 1.2"/><rect x="2.5" y="2.5" width="3" height="3" fill="${t}"/><rect x="14.5" y="2.5" width="3" height="3" fill="${t}"/><rect x="2.5" y="14.5" width="3" height="3" fill="${t}"/><rect x="14.5" y="14.5" width="3" height="3" fill="${t}"/>`,moveChart:`<rect ${e} x="2.5" y="3" width="10" height="9" rx="0.8"/><rect x="4.5" y="7" width="1.8" height="3.5" fill="${t}"/><rect x="7.3" y="5" width="1.8" height="5.5" fill="${o}"/><path d="M8 15.5h9.5M15 13l2.5 2.5L15 18" ${h(t,1.4)}/>`,selectData:`${n(2.5,3,15,14,1.1)}<rect x="7.5" y="7.67" width="10" height="9.33" fill="${t}" fill-opacity="0.2" stroke="${t}" stroke-width="1.3" stroke-dasharray="1.6 1.1"/>`,addData:`<path ${e} d="M3 3v14h14"/><rect x="5.5" y="9" width="2.4" height="6" fill="${t}"/><rect x="9" y="6.5" width="2.4" height="8.5" fill="${t}"/><rect x="12.5" y="11" width="2.4" height="4" fill="${o}"/>${M(15.5,5)}`,shapeOutline:`<path ${e} d="M4.5 13.5 5.3 10.2 12.5 3l2.5 2.5-7.2 7.2z"/><rect x="3" y="15.5" width="14" height="2.2" fill="${t}"/>`,lineWeight:'<path d="M3 4.5h14" stroke="currentColor" stroke-width="0.8"/><path d="M3 9h14" stroke="currentColor" stroke-width="1.7"/><path d="M3 14.5h14" stroke="currentColor" stroke-width="3.2"/>',formatPane:`<rect ${e} x="2.5" y="3.5" width="15" height="13" rx="1"/><rect x="11" y="3.5" width="6.5" height="13" fill="${t}" fill-opacity="0.3"/><path d="M11 3.5v13" stroke="currentColor" stroke-width="1"/><path d="M12.5 7h3.5M12.5 10h3.5M12.5 13h2.5" stroke="${t}" stroke-width="1.1"/>`,selectionPane:`<rect ${e} x="3" y="2.5" width="14" height="15" rx="1"/><rect x="4.5" y="8.5" width="11" height="3" fill="${t}" fill-opacity="0.3"/><rect x="5.5" y="4.8" width="2.4" height="2.4" fill="currentColor"/><circle cx="6.7" cy="10" r="1.2" fill="${t}"/><rect x="5.5" y="12.8" width="2.4" height="2.4" fill="none" stroke="currentColor" stroke-width="0.9"/><path d="M9.5 6h5M9.5 10h5M9.5 14h5" stroke="currentColor" stroke-width="1.1"/>`,alignObjects:`<path ${e} d="M3.5 2.5v15"/><rect x="5.5" y="4.5" width="10" height="4" rx="0.5" fill="${t}"/><rect x="5.5" y="11.5" width="6" height="4" rx="0.5" fill="${t}" fill-opacity="0.6"/>`,groupObjects:`<rect x="2.5" y="2.5" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1" stroke-dasharray="1.6 1.2"/><circle cx="7.5" cy="7.5" r="3" fill="${t}"/><rect x="9.5" y="9.5" width="5.5" height="5.5" fill="none" stroke="currentColor" stroke-width="1.3"/>`,crop:'<path d="M6 2.5v11.5h11.5M2.5 6H14v11.5" fill="none" stroke="currentColor" stroke-width="1.6"/>',brightness:`<circle cx="10" cy="10" r="3.6" fill="${$}"/><path d="M10 2v2.6M10 15.4V18M2 10h2.6M15.4 10H18M4.3 4.3l1.9 1.9M13.8 13.8l1.9 1.9M4.3 15.7l1.9-1.9M13.8 6.2l1.9-1.9" ${h("currentColor",1.3)}/>`,transparency:`<rect x="3" y="3" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M3 3h3.5v3.5H3zM10 3h3.5v3.5H10zM6.5 6.5H10V10H6.5zM13.5 6.5H17V10h-3.5zM3 10h3.5v3.5H3zM10 10h3.5v3.5H10zM6.5 13.5H10V17H6.5zM13.5 13.5H17V17h-3.5z" fill="${t}" fill-opacity="0.55"/>`,reset:`<rect x="6" y="6.5" width="11" height="9" rx="1" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M3.5 9.5a5 5 0 0 1 5-5h2" ${h(t,1.3)}/><path d="m8.8 2.8 1.9 1.7-1.9 1.7" ${h(t,1.3)}/>`,altText:`<rect x="2.5" y="4" width="15" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.2"/><text x="10" y="13.2" text-anchor="middle" font-size="7" font-weight="700" font-family="Helvetica,Arial,sans-serif" fill="${t}">ALT</text>`,rotate:`<rect x="7" y="7" width="6" height="6" fill="${t}" fill-opacity="0.55" transform="rotate(20 10 10)"/>${p(10,10,6.8,300,290,"currentColor",1.3)}`,objectSize:`<rect x="5.5" y="5.5" width="9" height="9" fill="${t}" fill-opacity="0.3" stroke="currentColor" stroke-width="1.2"/><path d="M5.5 2.5h9M7 1.3 5.5 2.5 7 3.7M13 1.3l1.5 1.2L13 3.7M17.5 5.5v9M16.3 7l1.2-1.5L18.7 7M16.3 13l1.2 1.5 1.2-1.5" ${h(t,1)}/>`,forward:`<rect x="2.5" y="7.5" width="8" height="8" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="6.5" y="4" width="8" height="8" fill="${t}"/><path d="M16.8 16.5V9M15.1 10.7l1.7-1.7 1.7 1.7" ${h("currentColor",1.3)}/>`,backward:`<rect x="6.5" y="4" width="8" height="8" fill="${t}" fill-opacity="0.5"/><rect x="2.5" y="7.5" width="8" height="8" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M16.8 9v7.5M15.1 14.8l1.7 1.7 1.7-1.7" ${h("currentColor",1.3)}/>`,resizeTable:`${u(2.5,2.5,11,10)}<path d="M11.5 11.5l6 6M17.5 13.5v4h-4" ${h(t,1.3)}/>`,autoFormat:`${u(2.5,4,10.5,10)}<path d="M16.3 2.5 13.3 8h2.6l-1.6 5.5 4.2-6.6h-2.7l1.6-4.4z" fill="${$}"/>`,convertRange:`${u(2.5,2.5,8,7)}${n(11.5,11,6,6.5,1)}<path d="M6 10.5v4h4M8.4 12.6l1.8 1.9-1.8 1.9" ${h(t,1.3)}/>`,toTable:`${n(2.5,2.5,8,7,1)}${u(11.5,10.5,6,7)}<path d="M6 10.5v4h4M8.4 12.6l1.8 1.9-1.8 1.9" ${h(o,1.3)}/>`,tableStyles:`<rect x="2.5" y="3.5" width="15" height="13" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="2.5" y="3.5" width="15" height="3" fill="${t}"/><rect x="2.5" y="9" width="15" height="2.5" fill="${t}" fill-opacity="0.3"/><rect x="2.5" y="14" width="15" height="2.5" fill="${t}" fill-opacity="0.3"/>`,fieldSettings:`<rect ${e} x="2.5" y="3" width="11" height="4" rx="1"/><path d="M4.5 10.5h6M4.5 13.5h4" stroke="currentColor" stroke-width="1.1"/>${x(14.5,13.5,2.6)}`,pivotClear:`${C(2.5,2.5,11)}<path d="M10.5 15.5l4-4 3.2 2.7-3.3 3.3h-2.3z" fill="${a}" opacity="0.85"/>`,selectPivot:`${C(5,5,10)}<rect x="2.5" y="2.5" width="15" height="15" fill="none" stroke="${t}" stroke-width="1.2" stroke-dasharray="1.6 1.2"/>`,movePivot:`${C(2.5,2.5,10)}<path d="M14.5 10.5v7M11 14h7M13.2 11.8l1.3-1.3 1.3 1.3M13.2 16.2l1.3 1.3 1.3-1.3M12.3 12.7 11 14l1.3 1.3M16.7 12.7 18 14l-1.3 1.3" ${h(t,1.1)}/>`,pivotDelete:`${C(2.5,2.5,11)}${f(15.5,15.5)}`,changeSource:`${n(2.5,2.5,10.5,10,1.1)}${p(14.5,14.5,2.8,250,280,t,1.3)}`,calcField:`<rect ${e} x="2.5" y="3" width="15" height="5" rx="1.2"/><path d="M5 5.5h6" ${h(t,1.3)}/>${v(4.5,16.5,9.5,t)}`,pivotSubtotals:`<path d="M3 4h14M5.5 7h11.5M5.5 13.5h11.5" stroke="currentColor" stroke-width="1.1"/><rect x="3" y="9" width="14" height="2.4" fill="${o}" fill-opacity="0.65"/><rect x="3" y="15.2" width="14" height="2.4" fill="${o}" fill-opacity="0.65"/>`,grandTotals:`<rect x="13" y="2.5" width="4.5" height="15" fill="${o}" fill-opacity="0.55"/><rect x="2.5" y="13" width="15" height="4.5" fill="${o}" fill-opacity="0.55"/>${n(2.5,2.5,15,15,1.2)}`,totals:`<path ${e} d="M14 3H5.5l4.5 4.5-4.5 4.5H14"/><rect x="3" y="14.5" width="14" height="3" fill="${o}"/>`,reportLayout:`<rect x="2.5" y="2.5" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="2.5" y="2.5" width="15" height="3" fill="${t}"/><path d="M4.5 8.5h4M6.5 11.5h3M6.5 14.5h3M11.5 8.5h4M12.5 11.5h3M12.5 14.5h3" stroke="currentColor" stroke-width="1.1"/>`,pivotStyles:`<rect x="2.5" y="2.5" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="2.5" y="2.5" width="15" height="3.2" fill="${t}"/><rect x="2.5" y="5.7" width="4" height="11.8" fill="${t}" fill-opacity="0.45"/><rect x="6.5" y="8.6" width="11" height="2.8" fill="${t}" fill-opacity="0.2"/><rect x="6.5" y="14.3" width="11" height="2.8" fill="${t}" fill-opacity="0.2"/>`,sparkEdit:`<rect x="2.5" y="4" width="12" height="7" fill="none" stroke="currentColor" stroke-width="1.1"/><path d="m4 9 2.2-2.4 2.2 1.6 2-2.5 2.5 1.6" ${h(t,1.2)}/><path d="M9 17.5l.6-2.5 6-6 1.9 1.9-6 6z" ${h(t,1.2)}/>`,sparkLine:`<rect ${e} x="2.5" y="5" width="15" height="10" rx="0.5"/><path d="m4.5 12 3-3.5 3 2 3-4 1.5 1.2" ${h(t,1.4)}/><circle cx="15.3" cy="8" r="1.2" fill="${a}"/>`,sparkColumn:`<rect ${e} x="2.5" y="5" width="15" height="10" rx="0.5"/><rect x="4.6" y="9" width="2" height="4.5" fill="${t}"/><rect x="7.7" y="7" width="2" height="6.5" fill="${t}"/><rect x="10.8" y="10.5" width="2" height="3" fill="${t}"/><rect x="13.9" y="6.5" width="2" height="7" fill="${t}"/>`,sparkStyle:`<rect x="2.5" y="2.5" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.1"/><path d="M2.5 7.5h15M2.5 12.5h15" stroke="currentColor" stroke-width="0.7"/><path d="m4 6 3-2 3 1.5 3-2 3 1.3" ${h(t,1.2)}/><path d="m4 11 3-2 3 1.5 3-2 3 1.3" ${h(o,1.2)}/><path d="m4 16 3-2 3 1.5 3-2 3 1.3" ${h(a,1.2)}/>`,sparkColor:`<path d="m3 11 3.5-4 3 2.5 3-4.5 4.5 3" ${h("currentColor",1.4)}/><rect x="3" y="14.5" width="14" height="2.6" fill="${a}"/>`,markerColor:`<path d="m3.5 10.5 4-4 4.5 3.5 4.5-4.5" ${h("currentColor",1)}/><circle cx="7.5" cy="6.5" r="1.6" fill="${$}"/><circle cx="12" cy="10" r="1.6" fill="${$}"/><circle cx="16.5" cy="5.5" r="1.6" fill="${$}"/><rect x="3" y="14.5" width="14" height="2.6" fill="${t}"/>`,addRow:`<rect ${e} x="7" y="3" width="10.5" height="14" rx="0.5"/><path d="M7 7.7h10.5M7 12.3h10.5" stroke="currentColor" stroke-width="0.8"/><rect x="7" y="12.3" width="10.5" height="4.7" fill="${o}" fill-opacity="0.35"/>${M(3.8,14.6)}`,deleteRow:`<rect ${e} x="7" y="3" width="10.5" height="14" rx="0.5"/><path d="M7 7.7h10.5M7 12.3h10.5" stroke="currentColor" stroke-width="0.8"/><rect x="7" y="7.7" width="10.5" height="4.6" fill="${a}" fill-opacity="0.35"/>${f(3.8,10)}`,rowNumbers:`<rect x="2.5" y="3" width="15" height="14" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="2.5" y="3" width="4.5" height="14" fill="${t}" fill-opacity="0.35"/><path d="M2.5 7.7h15M2.5 12.3h15M7 3v14" stroke="currentColor" stroke-width="0.8"/>`,rowActions:`<rect ${e} x="2.5" y="6.5" width="15" height="7" rx="1"/><path d="M5 10h3.5" stroke="currentColor" stroke-width="1.2"/><circle cx="11" cy="10" r="1.1" fill="${t}"/><circle cx="13.4" cy="10" r="1.1" fill="${t}"/><circle cx="15.8" cy="10" r="1.1" fill="${t}"/>`,expand:`<rect ${e} x="2.5" y="2.5" width="7" height="7" rx="1"/><path d="M4 6h4M6 4v4" ${h(t,1.4)}/><path d="M6 9.5v6h3M12 6h5.5M12 15.5h5.5" ${h("currentColor",1.1)}/>`,collapse:`<rect ${e} x="2.5" y="2.5" width="7" height="7" rx="1"/><path d="M4 6h4" ${h(t,1.4)}/><path d="M12 6h5.5" ${h("currentColor",1.1)}/>`,columns:`<rect ${e} x="2.5" y="3" width="4" height="14"/><rect x="8" y="3" width="4" height="14" fill="${t}"/><rect ${e} x="13.5" y="3" width="4" height="14"/>`,crossColumn:`<rect x="2.5" y="3" width="15" height="14" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="2.5" y="3" width="15" height="3" fill="${t}"/><rect x="2.5" y="6" width="15" height="2.6" fill="${t}" fill-opacity="0.45"/><path d="M10 6v11M6.25 8.6v8.4M13.75 8.6v8.4" stroke="currentColor" stroke-width="0.8"/>`,formulaColumn:`<rect x="2.5" y="3" width="15" height="14" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="11" y="3" width="6.5" height="14" fill="${t}" fill-opacity="0.35"/>${v(3.5,13.5,9.5)}`,relationships:`<rect ${e} x="2.5" y="2.5" width="7" height="5.5" rx="0.5"/><rect ${e} x="10.5" y="12" width="7" height="5.5" rx="0.5"/><path d="M6 8v6.8h4.5M8.6 13.2l1.9 1.6-1.9 1.6" ${h(t,1.3)}/>`,layout:`<circle cx="3.5" cy="4.5" r="1" fill="${t}"/><circle cx="6.5" cy="8.5" r="1" fill="${t}"/><circle cx="6.5" cy="12.5" r="1" fill="${t}"/><circle cx="3.5" cy="16.5" r="1" fill="${t}"/><path d="M6 4.5h11.5M9 8.5h8.5M9 12.5h8.5M6 16.5h11.5" stroke="currentColor" stroke-width="1.3"/>`,styleRule:`<rect x="3" y="3" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="3" y="7.7" width="14" height="4.6" fill="${a}" fill-opacity="0.75"/><path d="M7.7 3v14M12.3 3v14" stroke="currentColor" stroke-width="0.7"/>`,columnRules:`<rect x="3" y="3" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="7.7" y="3" width="4.6" height="14" fill="${a}" fill-opacity="0.75"/><path d="M3 7.7h14M3 12.3h14" stroke="currentColor" stroke-width="0.7"/>`,addTask:`${A(2.5,6)}${M(15,15)}`,milestone:`<path d="M8 2.5 13.5 8 8 13.5 2.5 8z" fill="${t}"/>${M(15.5,15.5)}`,deleteTask:`${A(2.5,6)}${f(15.5,15.5)}`,taskIndent:`${A(2.5,8.5)}<path d="M2.5 15.5h6M6.5 13.5l2 2-2 2" ${h("currentColor",1.3)}/>`,taskOutdent:`${A(8.5,2.5)}<path d="M8.5 15.5h-6M4.5 13.5l-2 2 2 2" ${h("currentColor",1.3)}/>`,taskMode:`<path ${e} d="M7.5 2.5h5l-.8 4.5 2.8 3H5.5l2.8-3z"/><path ${e} d="M10 10v7.5"/>`,progress:`<rect ${e} x="2.5" y="7" width="15" height="6" rx="1"/><rect x="2.5" y="7" width="9.5" height="6" rx="1" fill="${o}"/>`,scaleHours:m("H"),scaleDays:m("D"),scaleWeeks:m("W"),scaleMonths:m("M"),scaleQuarters:m("Q"),scaleYears:m("Y"),today:`${F}<rect x="8" y="10" width="4" height="4" fill="${a}"/>`,calendar:`${F}<path d="M6 11h.1M10 11h.1M14 11h.1M6 14h.1M10 14h.1M14 14h.1" stroke="${t}" stroke-width="1.7" stroke-linecap="round"/>`,criticalPath:`<rect x="2.5" y="3.5" width="6" height="3" fill="${a}"/><rect x="8.5" y="9" width="5" height="3" fill="${a}"/><rect x="12.5" y="14.5" width="5" height="3" fill="${a}"/><path d="M8.5 5h2v4M13.5 10.5h1.5v4" ${h("currentColor",1)}/>`,taskLinks:`<rect x="2.5" y="3.5" width="7" height="3" fill="${t}"/><rect x="10.5" y="13.5" width="7" height="3" fill="${t}"/><path d="M9.5 5h3v7M11 10.5l1.5 1.8 1.5-1.8" ${h("currentColor",1.3)}/>`,progressLine:`<rect x="2.5" y="3.5" width="9" height="2.6" fill="${t}"/><rect x="5" y="8.7" width="10" height="2.6" fill="${t}"/><rect x="8" y="13.9" width="9.5" height="2.6" fill="${t}"/><path d="M10 2.5v3l-2 2.5 3 3-1 3v3.5" ${h(a,1.4)}/>`,baseline:`<rect x="3" y="3.5" width="8" height="2.6" fill="${t}"/><rect x="3" y="6.8" width="8" height="1.4" fill="currentColor" fill-opacity="0.5"/><rect x="8.5" y="11" width="8.5" height="2.6" fill="${t}"/><rect x="7" y="14.3" width="8.5" height="1.4" fill="currentColor" fill-opacity="0.5"/>`,resources:`<circle ${e} cx="7.5" cy="7" r="2.6"/><path ${e} d="M2.5 16.5a5 5 0 0 1 10 0"/><circle cx="14" cy="7.5" r="2.2" fill="none" stroke="${t}" stroke-width="1.3"/><path d="M13.5 11.5a4 4 0 0 1 4 4" ${h(t,1.3)}/>`,level:`<rect x="2.5" y="4" width="8" height="3" fill="${t}"/><rect x="9.5" y="12" width="8" height="3" fill="${t}"/><path d="M2.5 13.5h5M5.5 11.5l2 2-2 2" ${h("currentColor",1.3)}/>`,levelClear:`<rect x="2.5" y="4" width="8" height="3" fill="${t}"/><rect x="2.5" y="12" width="8" height="3" fill="${t}"/>${f(15,13.5)}`,barStyles:`<rect x="2.5" y="3.5" width="10" height="3" rx="0.5" fill="${t}"/><rect x="5" y="8.5" width="10" height="3" rx="0.5" fill="${o}"/><rect x="7.5" y="13.5" width="10" height="3" rx="0.5" fill="${$}"/>`,reportDesign:`${z}<path d="M10 17.5l.6-2.5 5.5-5.5 1.9 1.9-5.5 5.5z" ${h(t,1.2)}/>`,preview:`${z}${V(13.2,13.2,3,t)}`,paginated:`<path ${e} d="M7 14H2.5V2.5H11V5"/><rect ${e} x="7" y="5" width="10.5" height="12.5" rx="0.5"/><text x="12.25" y="14.3" text-anchor="middle" font-size="7.5" font-weight="700" font-family="-apple-system,Arial" fill="${t}">2</text>`,parameters:`<path d="M3 5h14M3 10h14M3 15h14" stroke="currentColor" stroke-width="1.1"/><circle cx="7" cy="5" r="1.8" fill="${t}"/><circle cx="13" cy="10" r="1.8" fill="${t}"/><circle cx="9" cy="15" r="1.8" fill="${t}"/>`,print:`<path ${e} d="M5.5 7V2.5h9V7"/><path ${e} d="M5.5 14h-3V7h15v7h-3"/><rect ${e} x="5.5" y="11" width="9" height="6.5"/><circle cx="15" cy="9.3" r="0.8" fill="${o}"/>`,printPage:`<path ${e} d="M5.5 7V2.5h9V7"/><path ${e} d="M5.5 14h-3V7h15v7h-3"/><rect x="5.5" y="11" width="9" height="6.5" fill="${t}" fill-opacity="0.35" stroke="currentColor" stroke-width="1.3"/><text x="10" y="16.6" text-anchor="middle" font-size="5.5" font-weight="700" font-family="-apple-system,Arial" fill="currentColor">1</text>`,bindCell:`<rect ${e} x="2.5" y="3" width="10" height="7" rx="0.5"/>${H(6.5,6.5,.6,t)}`,unbind:`<rect ${e} x="2.5" y="3" width="10" height="7" rx="0.5"/>${H(6.5,6.5,.6,"currentColor")}<path d="M10 17.5l7.5-7.5" ${h(a,1.4)}/>`,dataEntry:`<rect ${e} x="3" y="2.5" width="14" height="15" rx="1"/><path d="M5.5 6h3M5.5 10h3M5.5 14h3" stroke="currentColor" stroke-width="1.1"/><rect x="10" y="4.8" width="4.8" height="2.4" fill="none" stroke="${t}" stroke-width="1"/><rect x="10" y="8.8" width="4.8" height="2.4" fill="none" stroke="${t}" stroke-width="1"/><rect x="10" y="12.8" width="4.8" height="2.4" fill="none" stroke="${t}" stroke-width="1"/>`,export:`<path ${e} d="M8 17.5H3V2.5h7l3 3v3"/><path ${e} d="M10 2.5v3h3"/><path d="M9.5 13.5h8M15 11l2.5 2.5L15 16" ${h(o,1.4)}/>`,recommendedPivot:`${C(2.5,4.5,11)}<text x="14.3" y="10.5" font-size="9.5" font-weight="700" font-family="-apple-system,Arial" fill="${t}">?</text>`,forms:`<rect ${e} x="4" y="2.5" width="12" height="15" rx="1"/><rect x="6.5" y="5.5" width="2.5" height="2.5" fill="none" stroke="${o}" stroke-width="1.1"/><rect x="6.5" y="10.5" width="2.5" height="2.5" fill="${o}"/><path d="M10.5 6.8h3.5M10.5 11.8h3.5M6.5 15h4" stroke="currentColor" stroke-width="1"/>`,fromPicture:`${n(2.5,2.5,10,8,1.1)}<rect x="9.5" y="11" width="8" height="6.5" rx="1" fill="none" stroke="${t}" stroke-width="1.2"/><circle cx="13.5" cy="14.3" r="1.6" fill="none" stroke="${t}" stroke-width="1.1"/>`,models3d:`<path d="M10 2.5l6.5 3.5v7.5L10 17l-6.5-3.5V6z" ${h(t,1.3)}/><path d="M3.5 6 10 9.5 16.5 6M10 9.5V17" ${h(t,1.1)}/>`,audio:`<path ${e} d="M3.5 8h3l4-3.5v11l-4-3.5h-3z"/><path d="M13 7.5a3.5 3.5 0 0 1 0 5M15 5.5a6.5 6.5 0 0 1 0 9" ${h(t,1.2)}/>`,video:`<rect ${e} x="2.5" y="5" width="11" height="10" rx="1.5"/><path d="M13.5 9 17.5 6.5v7l-4-2.5" ${h(t,1.2)}/>`,trackChanges:`<path ${e} d="M4 3.5h8l3 3v10H4z"/><path d="M6.5 9h6M6.5 12h4" ${h(t,1.1)}/><path d="M13.5 13.5 17 17" ${h(t,1.3)}/>`,iconsLib:`<path d="M10 16.5s-6-3.6-6-7.8A3.2 3.2 0 0 1 10 6.6a3.2 3.2 0 0 1 6 2.1c0 4.2-6 7.8-6 7.8z" ${h(o,1.3)}/><path d="M10 6.6V3.5" ${h(o,1.2)}/>`,smartArt:`<rect x="7" y="2.5" width="6" height="4" fill="${o}"/><rect x="2.5" y="13" width="6" height="4" fill="${o}" fill-opacity="0.6"/><rect x="11.5" y="13" width="6" height="4" fill="${o}" fill-opacity="0.6"/><path d="M10 6.5v3.5M5.5 13v-3h9v3" ${h("currentColor",1.1)}/>`,screenshot:`<rect x="2.5" y="3" width="12" height="9" fill="none" stroke="currentColor" stroke-width="1.1" stroke-dasharray="2 1.5"/><rect x="8" y="10.5" width="9.5" height="7" rx="1" fill="none" stroke="${t}" stroke-width="1.2"/><circle cx="12.75" cy="14" r="1.8" fill="none" stroke="${t}" stroke-width="1.1"/>`,recommendedCharts:`<rect x="3" y="7" width="3.5" height="10" fill="none" stroke="currentColor" stroke-width="1.2"/><rect x="7.5" y="11" width="3.5" height="6" fill="none" stroke="currentColor" stroke-width="1.2"/><text x="12" y="11" font-size="10" font-weight="700" font-family="-apple-system,Arial" fill="${t}">?</text>`,chartHierarchy:`<rect x="2.5" y="3" width="8" height="14" fill="${t}"/><rect x="11.5" y="3" width="6" height="8" fill="${t}" fill-opacity="0.6"/><rect x="11.5" y="12" width="6" height="5" fill="${t}" fill-opacity="0.35"/>`,chartStatistic:`<path ${e} d="M3.5 3.5v13h13"/><rect x="5" y="10" width="2.6" height="5.5" fill="${t}"/><rect x="7.6" y="5" width="2.6" height="10.5" fill="${t}" fill-opacity="0.75"/><rect x="10.2" y="8" width="2.6" height="7.5" fill="${t}"/><rect x="12.8" y="12" width="2.6" height="3.5" fill="${t}" fill-opacity="0.75"/>`,chartWaterfall:`<path ${e} d="M3.5 3.5v13h13"/><rect x="5" y="7" width="2.4" height="8.5" fill="${t}"/><rect x="8.2" y="4.5" width="2.4" height="2.5" fill="${o}"/><rect x="11.4" y="4.5" width="2.4" height="5" fill="${a}"/><rect x="14.6" y="9.5" width="1.9" height="6" fill="${t}"/>`,chartCombo:`<path ${e} d="M3.5 3.5v13h13"/><rect x="5.5" y="10" width="2.4" height="5.5" fill="${t}"/><rect x="9.5" y="8" width="2.4" height="7.5" fill="${t}"/><rect x="13.5" y="11" width="2.4" height="4.5" fill="${t}"/><path d="M5 7.5l4-3 4 2.5 3.5-3" ${h($,1.4)}/>`,maps:`<circle cx="10" cy="9" r="6.5" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M5.5 6.5c2 0 2 2 3.5 2.5s.5 2.5 2 3M12 3c-.5 1.5 1.5 2.5 3.5 2.5" ${h(o,1.4)}/><path d="M6.5 17.5h7M10 15.5v2" stroke="currentColor" stroke-width="1.2"/>`,pivotChart:`${C(2.5,2.5,9)}<rect x="13" y="10.5" width="2" height="7" fill="${t}"/><rect x="16" y="7" width="2" height="10.5" fill="${t}"/>`,insertObject:`<rect ${e} x="2.5" y="2.5" width="10" height="12"/><rect x="7.5" y="7.5" width="10" height="10" fill="none" stroke="${t}" stroke-width="1.2"/><path d="M10 12.5h5M12.5 10v5" ${h(t,1.1)}/>`,equation:`<text x="10" y="15.5" text-anchor="middle" font-size="16" font-family="Georgia,'Times New Roman',serif" fill="currentColor">π</text>`,python:`<rect ${e} x="2.5" y="3.5" width="15" height="13" rx="2"/><text x="10" y="13.3" text-anchor="middle" font-size="7.5" font-weight="700" font-family="-apple-system,Arial" fill="${t}">Py</text>`,pythonReset:p(10,10,6,200,280,"currentColor",1.3),pythonEditor:`<rect ${e} x="2.5" y="3.5" width="15" height="13" rx="1"/><path d="M6.5 8 4.5 10l2 2M13.5 8l2 2-2 2" ${h(t,1.2)}/><path d="M11 7l-2 6" ${h("currentColor",1.1)}/>`,pythonInit:`${z}${x(13.5,13.5,2.4)}`,queries:`<rect ${e} x="3" y="3" width="14" height="14" rx="1"/><rect x="3" y="3" width="3" height="14" fill="${t}" fill-opacity="0.5"/><path d="M8.5 7h6M8.5 10h6M8.5 13h6" stroke="currentColor" stroke-width="1"/>`,connProperties:`<rect ${e} x="4" y="2.5" width="12" height="15" rx="1"/><path d="M7 6.5h6M7 9.5h6M7 12.5h3" stroke="currentColor" stroke-width="1"/>${H(6,7,.55,t)}`,stocks:`<path ${e} d="M3 7.5 10 3l7 4.5zM3 16.5h14M5 15V9.5M8.3 15V9.5M11.7 15V9.5M15 15V9.5"/>`,currencies:`<rect ${e} x="2.5" y="4" width="11" height="8" rx="1"/><circle cx="8" cy="8" r="2" fill="none" stroke="currentColor" stroke-width="1.1"/><ellipse cx="14" cy="12" rx="3.5" ry="1.4" fill="none" stroke="currentColor" stroke-width="1.2"/><path ${e} d="M10.5 12v3.5a3.5 1.4 0 0 0 7 0V12"/>`,geography:`<path ${e} d="M2.5 5 7 3l6 2 4.5-2v12L13 17l-6-2-4.5 2zM7 3v12M13 5v12"/>`,cleanData:`${n(2.5,3,10,10,1.1)}<path d="M17.5 2.5 12.5 10" ${h("currentColor",1.3)}/><path d="M12.5 10l-2.5 1.5-1 4 3.5-2 1.5-2.5z" fill="${t}"/>`,analyzeData:`<rect ${e} x="2.5" y="2.5" width="15" height="15" rx="1"/>${V(9,9,4.2,"currentColor")}<rect x="7" y="8.5" width="1.5" height="2.5" fill="${t}"/><rect x="9.3" y="7" width="1.5" height="4" fill="${t}"/>`,showDetail:`<path d="M8.5 6h9M8.5 10h9M8.5 14h9" stroke="currentColor" stroke-width="1"/>${M(4.5,6)}`,hideDetail:`<path d="M8.5 6h9M8.5 10h9M8.5 14h9" stroke="currentColor" stroke-width="1"/><path d="M2.5 6h4" ${h(a,1.6)}/>`,analysisTools:x(10,10,4.5,"currentColor"),thesaurus:`<path ${e} d="M10 5.5C8 4 5.5 3.5 2.5 4v11.5c3-.5 5.5 0 7.5 1.5 2-1.5 4.5-2 7.5-1.5V4c-3-.5-5.5 0-7.5 1.5zM10 5.5V17"/>`,deleteComment:`<path ${e} d="M3.5 4h13v9H9l-3.5 3v-3h-2z"/><path d="m8 6.5 4 4m0-4-4 4" ${h(a,1.4)}/>`,prevComment:`<path ${e} d="M3.5 4h13v9H9l-3.5 3v-3h-2z"/><path d="M13 8.5H7.5M9.5 6.5l-2 2 2 2" ${h(t,1.3)}/>`,nextComment:`<path ${e} d="M3.5 4h13v9H9l-3.5 3v-3h-2z"/><path d="M7 8.5h5.5M10.5 6.5l2 2-2 2" ${h(t,1.3)}/>`,notes:`<path d="M3.5 3.5h13v8.5l-4.5 4.5h-8.5z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/><path ${e} d="M16.5 12H12v4.5"/>`,readOnly:`<path d="M3.5 16.5l1-3.5 8-8 2.5 2.5-8 8z" ${h("currentColor",1.2)}/><circle cx="14.5" cy="14.5" r="3" fill="none" stroke="${a}" stroke-width="1.2"/><path d="m12.4 16.6 4.2-4.2" ${h(a,1.2)}/>`,hideInk:`<rect ${e} x="2.5" y="3" width="15" height="14" rx="1"/><path d="M2.5 17 17.5 3" ${h("currentColor",1)}/><path d="M4.5 12.5c2-3 3.5-3 4.5-1s2.5 2 4.5-1 2.5-2.5 3 0" ${h(a,1.4)}/>`,sheetViewKeep:`<rect ${e} x="3.5" y="3.5" width="13" height="13" rx="1"/><path ${e} d="M6.5 3.5v4h7v-4M6.5 16.5v-5h7v5"/>`,sheetViewExit:`${L(8.5,9,1,"currentColor")}${f(15.5,14.5)}`,sheetViewNew:`${L(8.5,9,1,"currentColor")}${M(15.5,14.5)}`,sheetViewOptions:`<path d="M3 5h1.5M3 10h1.5M3 15h1.5M7 5h10M7 10h10M7 15h10" ${h("currentColor",1.2)}/>`,showOptions:`<rect x="3" y="3.5" width="4.5" height="4.5" fill="none" stroke="currentColor" stroke-width="1.1"/><path d="m3.9 5.8 1.1 1.1 1.7-2.2" ${h(o,1.1)}/><rect x="3" y="12" width="4.5" height="4.5" fill="none" stroke="currentColor" stroke-width="1.1"/><path d="M10 5.8h7.5M10 14.3h7.5" ${h("currentColor",1.2)}/>`,newWindow:`<rect ${e} x="2.5" y="5.5" width="12" height="11"/><path d="M2.5 8.5h12" stroke="currentColor" stroke-width="0.9"/>${M(15.3,4.7)}`,arrangeAll:`<rect ${e} x="3" y="2.5" width="14" height="15"/><path d="M3 10h14" stroke="currentColor" stroke-width="1.2"/><path d="M3 5h14M3 12.5h14" stroke="currentColor" stroke-width="0.8"/>`,hideWindow:`<rect ${e} x="3" y="3" width="14" height="14"/><path d="M3 17 17 3" ${h("currentColor",1.1)}/>`,unhideWindow:`<rect ${e} x="3" y="3" width="14" height="14"/><path d="M3 6.5h14" stroke="currentColor" stroke-width="0.9"/>`,sideBySide:`<rect ${e} x="2.5" y="4" width="7" height="12"/><rect ${e} x="10.5" y="4" width="7" height="12"/><path d="M2.5 7h7M10.5 7h7" stroke="currentColor" stroke-width="0.8"/>`,syncScroll:`<rect ${e} x="2.5" y="4" width="8" height="12"/><path d="M14.5 3v14M12.5 5l2-2 2 2M12.5 15l2 2 2-2" ${h(t,1.2)}/>`,resetWindow:`<rect ${e} x="2.5" y="7" width="7" height="10"/><rect ${e} x="10.5" y="7" width="7" height="10"/><path d="M6 4.5h8M12.5 3l1.5 1.5L12.5 6" ${h(t,1.1)}/>`,switchWindows:`<rect ${e} x="6.5" y="2.5" width="11" height="8.5"/><rect ${e} x="2.5" y="8.5" width="11" height="9"/><path d="M4.5 6.5V4.5h2" ${h(t,1.2)}/>`,panesSizes:`${n(2.5,3.5,12,11,1.1)}<path d="M14 16.5h4M16.5 15l1.5 1.5-1.5 1.5M17 2.5v4M15.5 5l1.5 1.5L18.5 5" ${h(t,1.1)}/>`,macros:`<rect ${e} x="2.5" y="3" width="13" height="12" rx="1"/><path d="M5 6.5h8M5 9h6M5 11.5h4" stroke="currentColor" stroke-width="0.9"/><path d="M11.5 12.5h6v5h-6z" fill="${a}"/>`};function E(l,c=18){const r=B[l]??B.generic;return`<svg class="${l==="caret"?"caret":""}" width="${c}" height="${c}" viewBox="${l==="caret"?"0 0 10 10":"0 0 20 20"}" aria-hidden="true">${r}</svg>`}export{E as icon};
|
package/ui/menu-base.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{overlayRoot as h}from"../api/overlay.js";import{decorateMenuItem as g}from"../cells/menu-extras.js";import{tint as b}from"../core/color.js";import{t as d}from"../i18n/index.js";import{icon as E}from"./icons.js";import{placeAt as u,scaleToApp as p}from"./ui-scale.js";const F={Cut:"cut",Copy:"copy",Paste:"paste","Paste Special…":"paste","Insert…":"insertCells",Insert:"insertCells","Insert Rows":"insertCells","Insert Columns":"insertCells","Insert Sheet":"insertCells","Delete…":"deleteCells",Delete:"deleteCells","Delete Rows":"deleteCells","Delete Columns":"deleteCells","Delete Sheet":"deleteCells","Clear Contents":"eraser",Filter:"filter",Sort:"sort","Sort A to Z":"sort","Sort Z to A":"sortZA","Custom Sort…":"sortCustom","Clear Filter":"filterClear",Reapply:"filterReapply","Format Cells…":"formatCells","Column Width…":"formatCells","Row Height…":"formatCells","New Comment":"note","Reply to Comment":"note","Delete Comment":"deleteComment","New Note":"notes","Edit Note":"notes","Delete Note":"deleteComment","Define Name…":"nameDefine","Link…":"link","Cell Alt Text…":"altText","Rich Text…":"textEffects","Default Value…":"cellOptions","Bring to Front":"front","Send to Back":"back","Bring Forward":"forward","Send Backward":"backward","Merge & Center":"merge","Merge Across":"merge","Merge Cells":"merge","Unmerge Cells":"merge","Find…":"find",Rename:"nameDefine","Protect Sheet…":"protect",Hide:"hideWindow",Unhide:"unhideWindow","Unhide…":"unhideWindow"},f=["#FFFFFF","#000000","#E8E8E8","#0E2841","#156082","#E97132","#196B24","#0F9ED5","#A02B93","#4EA72E"],C=["#C00000","#FF0000","#FFC000","#FFFF00","#92D050","#00B050","#00B0F0","#0070C0","#002060","#7030A0"];function A(){const a=[];for(const n of[.8,.6,.4,-.25,-.5])for(const t of f){const e=t==="#000000"||t==="#0E2841";a.push(b(t,t==="#FFFFFF"?-Math.abs(n)*.6:e&&n<0?Math.abs(n):n))}return{theme:[...f,...a],standard:C}}function k(a){const n=String(a).replace(/\s*\([^)]*\)\s*$/,"").split(/[^A-Za-z0-9]+/).filter(Boolean),t=(e,o)=>{const i=e===e.toUpperCase()&&e.length>1?e[0]+e.slice(1).toLowerCase():e;return o===0?i[0].toLowerCase()+i.slice(1):i[0].toUpperCase()+i.slice(1)};return n.map(t).join("")}const y=Symbol("cancelled");function w(a,n,t,e,o){return n&&a.actionGate?a.actionGate(n,t,e,o):e()}class M{constructor(n){this.app=n,this.menu=null,n.signal?.addEventListener("abort",()=>{this.menu?.remove(),this.menu=null,this.menuBar?.remove(),this.menuBar=null}),n.listen(document,"pointerdown",t=>{this.menu&&!this.menu.contains(t.target)&&!this.menuBar?.contains(t.target)&&this.closeMenu()},!0),n.listen(document,"keydown",t=>{t.key==="Escape"&&this.menu&&!document.activeElement?.closest?.(".bk-sub-menu")&&this.closeMenu()},!0)}openMenuAt(n,t,e){this.openMenu({getBoundingClientRect:()=>({left:n,bottom:t})},e);const o=this.menu.getBoundingClientRect();if(u(this.menu,null,Math.min(t,window.innerHeight-o.height-6)),e.miniBar){const i=e.miniBar(this);p(this.app,i),h().append(i);const r=this.menu.getBoundingClientRect(),s=i.getBoundingClientRect(),l=r.top-s.height-6>=4?r.top-s.height-6:r.bottom+6;u(i,Math.max(4,Math.min(r.left,window.innerWidth-s.width-6)),l),this.menuBar=i}}openMenu(n,t){this.closeMenu(),this.menuOpener=document.activeElement,this.menuAnchor=n instanceof Element?n:null,this.menuAnchor?.setAttribute("aria-expanded","true");const e=document.createElement("div");e.className="menu",e.role="menu",t.palette?this._fillPalette(e,t):t.build?t.build(e):this._fillItems(e,t),p(this.app,e),h().append(e);const o=n.getBoundingClientRect(),i=e.getBoundingClientRect();u(e,Math.min(o.left,window.innerWidth-i.width-6),o.bottom+3),this.menu=e}buildMenu(n){const t=document.createElement("div");return t.className="menu",t.role="menu",n.palette?this._fillPalette(t,n):this._fillItems(t,n),t}_fillItems(n,t){for(const e of t.items){if(e===null){n.append(document.createElement("hr"));continue}const o=e[2],i=e.id===void 0&&!o?.raw&&e[0]?`${this.menuAnchor?.dataset.command??"menu"}.${k(o?.name??e[0])}`:null,r=this.menuAnchor?.dataset.command?"ribbon":"menu";if(i&&this.hiddenIds?.has(i))continue;const s=document.createElement("button");s.textContent=o?.raw?e[0]:o?.text??d(e[0]);const l=o?.icon??(o?.raw?void 0:F[e[0]]);l&&(s.insertAdjacentHTML("afterbegin",`<span class="mi-ic">${E(l,16)}</span>`),n.classList.add("menu-icons")),o?.raw||(s.dataset.item=e[0]),n.append(s),!(o&&g(this,s,o))&&(i&&(s.dataset.command=i),s.addEventListener("click",()=>{o?.keepOpen||this.closeMenu(),w(this.app,i,void 0,()=>e[1](),r),this.app.afterCommand(),o?.keepOpen&&o.checked!==void 0&&s.setAttribute("aria-checked",String(!!(typeof o.checked=="function"?o.checked():o.checked)))}))}if(this.hiddenIds?.size){for(const e of[...n.querySelectorAll(":scope > hr")]){const o=e.previousElementSibling;(!o||o.tagName==="HR")&&e.remove()}for(;n.lastElementChild?.tagName==="HR";)n.lastElementChild.remove()}}_fillPalette(n,t){const e=l=>{const c=document.createElement("div");c.className="palette-label",c.textContent=d(l),n.append(c)},o=(l,c)=>{const m=document.createElement("button");m.style.background=c,m.title=c,m.setAttribute("aria-label",c),m.addEventListener("click",()=>{this.closeMenu(),t.pick(c)}),l.append(m)},i=document.createElement("button");i.textContent=d(t.none),i.addEventListener("click",()=>{this.closeMenu(),t.pick(null)}),n.append(i),e("Theme Colors");const r=document.createElement("div");r.className="palette";for(const l of A().theme)o(r,l);n.append(r),e("Standard Colors");const s=document.createElement("div");s.className="palette";for(const l of C)o(s,l);if(n.append(s),t.more){const l=document.createElement("button");l.textContent=d(t.more[0]),l.addEventListener("click",()=>{this.closeMenu(),t.more[1]()}),n.append(l)}}closeMenu(){if(this.menuBar?.remove(),this.menuBar=null,this.menu){const n=this.menu.contains(document.activeElement);this.menu.remove(),this.menu=null,this.menuAnchor?.setAttribute("aria-expanded","false"),this.menuAnchor=null;const t=this.menuOpener;this.menuOpener=null,(n||document.activeElement===document.body)&&(!t?.isConnected||t===document.body||t===this.app.el?.("key-sink")?this.app.controller?.focusGrid():t.focus({preventScroll:!0}))}}}class D extends M{constructor(n){super(n),this.active="Home",this.lastFixedTab="Home",this.controls={},this.context=[]}sync(){}render(){}contextChanged(){}selectionKindChanged(){}_renderTabs(){}}export{y as CANCELLED,M as MenuHost,D as NoRibbon,k as controlName,A as paletteColors,w as runControl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{allows as w,hashPassword as b,hasPassword as g,rangesEditable as m,SHEET_OPTIONS as v,structureLocked as y,verifyPassword as C,withoutPassword as E}from"../core/protection.js";import{el as c,openModal as p}from"./dialogs.js";import{t as l,tc as W}from"../i18n/index.js";const K=new Set(["entry","edit","clear","paste","paste-special","fill","replace","goal-seek","convert-number"]),S={format:"formatCells",borders:"formatCells",merge:"formatCells","format-rule":"formatCells",sort:"sort",filter:"autoFilter",pivot:"pivotTables","clear-pivot":"pivotTables",scenario:"scenarios"};function k(e,t="The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet."){p(e,"Protected",c("p",{textContent:l(t)}),[{label:"OK",primary:!0}],{width:380})}function I(e){return t=>{const{book:n,grid:s}=e,r=n.sheet,i=n.guardHint;if(n.guardHint=null,r.isChartSheet&&i?.option!=="objects")return!1;if(!r.protection||t==="outline"&&r.protectionExtras?.outline)return!0;let o;return i?.option?o=w(r,i.option)&&(!i.ranges||m(n,r,i.ranges)):K.has(t)?o=m(n,r,i?.ranges??s.selection.ranges):S[t]?o=w(r,S[t]):o=!1,o||k(e),o}}function _(e,t){return w(e.book.sheet,t)?!0:(k(e),!1)}function j(e){return y(e.book)?(k(e,"The workbook is protected, so sheets can't be added, moved, renamed, hidden or deleted."),!1):!0}function P(e){const t=c("input",{class:"dlg-input",type:"password",autocomplete:"new-password","aria-label":l(e)}),n=c("input",{class:"dlg-input",type:"password",autocomplete:"new-password","aria-label":l("Confirm password")}),s=c("div",{class:"dlg-error",role:"alert"});return{first:t,second:n,error:s,nodes:[c("label",{class:"dlg-row"},`${l(e)} `,t),c("label",{class:"dlg-row"},`${l("Confirm password:")} `,n),s],check(){return t.value!==n.value?(s.textContent=l("The passwords don't match."),!1):!0}}}function x(e,t,n,s){const r=c("input",{class:"dlg-input",type:"password",autocomplete:"current-password","aria-label":l("Password")}),i=c("div",{class:"dlg-error",role:"alert"});p(e,t,c("div",{},c("label",{class:"dlg-row"},`${l("Password:")} `,r),i),[{label:"Cancel"},{label:"OK",primary:!0,action:()=>{const o=r.value;return n(o).then(u=>{u&&s()}),!0}}],{width:340}),r.focus()}function f(e){e.book.dirty=!0,e.grid.invalidate(),e.ribbon.render(),e.shell.syncTitle()}function L(e){const{book:t,shell:n}=e,s=t.sheet;if(s.protection){const o=()=>{s.protection=null,s.protectionChanged=!0,n.setStatus("Sheet unprotected."),f(e)};if(!g(s.protection)){o();return}x(e,"Unprotect Sheet",async u=>{const d=await C(s.protection,u);return d||n.setStatus("The password you supplied is not correct."),d},o);return}const r=P("Password to unprotect (optional):"),i=v.map(([o,u,d])=>{const a=c("input",{type:"checkbox",checked:d});return{key:o,input:a,node:c("label",{class:"dlg-row dlg-check"},a,` ${W("protect",u)}`)}});p(e,"Protect Sheet",c("div",{},...r.nodes,c("div",{class:"dlg-label",textContent:l("Allow all users of this worksheet to:")}),c("div",{class:"dlg-scroll"},...i.map(o=>o.node))),[{label:"Cancel"},{label:"OK",primary:!0,action:()=>{if(!r.check())return!1;const o={sheet:"1"};for(const[a,,T]of v){const h=i.find(O=>O.key===a).input.checked;a==="objects"||a==="scenarios"||T?h||(o[a]="1"):h&&(o[a]="0")}const u=r.first.value,d=a=>{s.protection={...a,...o},s.protectionChanged=!0,n.setStatus("Sheet protected."),f(e)};return u?b(u).then(d):d({}),!0}}],{width:400}),r.first.focus()}function N(e){const{book:t,shell:n}=e;if(y(t)){const r=()=>{t.protection=null,t.protectionChanged=!0,n.setStatus("Workbook unprotected."),f(e)};if(!g(t.protection,"workbook")){r();return}x(e,"Unprotect Workbook",async i=>{const o=await C(t.protection,i,"workbook");return o||n.setStatus("The password you supplied is not correct."),o},r);return}const s=P("Password (optional):");p(e,"Protect Workbook",c("div",{},c("p",{textContent:l("Protects the structure: sheets can't be added, moved, renamed, hidden or deleted.")}),...s.nodes),[{label:"Cancel"},{label:"OK",primary:!0,action:()=>{if(!s.check())return!1;const r=o=>{t.protection={...E(t.protection??{}),...o,lockStructure:"1"},t.protectionChanged=!0,n.setStatus("Workbook protected."),f(e)},i=s.first.value;return i?b(i,"workbook").then(r):r({}),!0}}],{width:380}),s.first.focus()}export{_ as guardOption,j as guardStructure,L as openProtectSheet,N as openProtectWorkbook,I as protectionGuard,k as showBlocked};
|
package/ui/ui-scale.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const s=[.8,.9,1,1.1,1.25,1.5],r=.75,c=2,l="8sheets.uiScale";function i(){try{const t=Number(localStorage.getItem(l));return t>=r&&t<=c?t:null}catch{return null}}function a(t,n,{remember:e=!1}={}){const o=Math.min(c,Math.max(r,Number(n)||1));if(t.uiScale=o,t.el("app")?.style.setProperty("--ui-scale",String(o)),e)try{localStorage.setItem(l,String(o))}catch{}return t.ribbon?.render?.(),t.grid?.invalidate?.(),o}function u(t,n){const e=t?.uiScale??1;e!==1&&(n.style.zoom=String(e))}function S(t,n,e){const o=t.currentCSSZoom??1;n!==null&&(t.style.left=`${n/o}px`),e!==null&&(t.style.top=`${e/o}px`)}export{s as UI_SCALES,c as UI_SCALE_MAX,r as UI_SCALE_MIN,S as placeAt,u as scaleToApp,a as setUiScale,i as storedUiScale};
|