@sheetxl/studio-vanilla 0.4.21 → 0.4.22
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/browser/cjs/-AkvO2DXLOxJTxam.cjs +6 -0
- package/browser/cjs/3CSmmG7E8ziDB1mP.cjs +6 -0
- package/browser/cjs/7nEG2wj_Ohie6CwI.cjs +6 -0
- package/browser/cjs/{n6CXzSocLW_BCO8w.cjs → B0aLqzqegePPgpc2.cjs} +6 -6
- package/browser/cjs/B9GyERAqyIxdqS4D.cjs +145 -0
- package/browser/cjs/BO8oGaHWFtHyxmQ1.cjs +6 -0
- package/browser/cjs/BPODmSH7Z1MR1rHr.cjs +15 -0
- package/browser/cjs/BS0bGW4PmNinQUvL.cjs +42 -0
- package/browser/cjs/BY3tZiH_cfwBkpN8.cjs +6 -0
- package/browser/cjs/BYRBdz-9UGZ0b_AO.cjs +7 -0
- package/browser/cjs/BZvC7PqILOVRl2ij.cjs +6 -0
- package/browser/cjs/Bc6lVP0c3mEzf_yK.cjs +6 -0
- package/browser/cjs/Bdm_fGdkK4-pZ0tW.cjs +6 -0
- package/browser/cjs/Bi2-QXq5KvbsAXoB.cjs +6 -0
- package/browser/cjs/Bk2cFYnTKxP7WbLy.cjs +6 -0
- package/browser/cjs/BlojFx4yQfY8ahEJ.cjs +12 -0
- package/browser/cjs/BvEv8i6SisfC24C1.cjs +7 -0
- package/browser/cjs/Bzntg1YSzOszdwLy.cjs +6 -0
- package/browser/cjs/C9oIS5xxO9B7vS3W.cjs +6 -0
- package/browser/cjs/C9xTKWx1tr6NZFC8.cjs +6 -0
- package/browser/cjs/CCu9cK1DUD4oa3Nj.cjs +6 -0
- package/browser/cjs/CIeiC9TKv80O2_fQ.cjs +6 -0
- package/browser/cjs/COuRf_8YbqEsDQOC.cjs +6 -0
- package/browser/cjs/CQRZm8lGq26oKY31.cjs +6 -0
- package/browser/cjs/CYmpgLiDS0ZlbG11.cjs +6 -0
- package/browser/cjs/CZltonq1gEczLRHi.cjs +32 -0
- package/browser/cjs/Cf1j7hiCbQ8xo4_U.cjs +7 -0
- package/browser/cjs/CknjEH7DZBnqyPfk.cjs +6 -0
- package/browser/cjs/ClEc15AqSTFOf5zG.cjs +6 -0
- package/browser/cjs/CrUZUIz00uPDq4EA.cjs +6 -0
- package/browser/cjs/Cv1BFY5pqPtJd8qO.cjs +6 -0
- package/browser/cjs/CvvHAxM5SO6mwsyq.cjs +161 -0
- package/browser/cjs/Cvwrl86aXHFXJVZZ.cjs +6 -0
- package/browser/cjs/CwgzE59YUQ1eOTBi.cjs +6 -0
- package/browser/cjs/D3qzZXPgfAtKIAP9.cjs +11 -0
- package/browser/cjs/D7q2GFLhv9QRTZJe.cjs +6 -0
- package/browser/cjs/DB2WR3LaeOhkCAXY.cjs +6 -0
- package/browser/cjs/DFJ4dyRxiUF1XPPZ.cjs +15 -0
- package/browser/cjs/DJMpu6kYQUW3FWjs.cjs +6 -0
- package/browser/cjs/DL7DCFUaFkr2LYhZ.cjs +6 -0
- package/browser/cjs/DMMZr350oW-Zan7x.cjs +124 -0
- package/browser/cjs/DMfk3didwdGQLc0i.cjs +1501 -0
- package/browser/cjs/DaEdjRWwuNebE2hn.cjs +6 -0
- package/browser/cjs/Dd7vDdIeQaFScMRQ.cjs +6 -0
- package/browser/cjs/Df9S9eEGYxA_EcEr.cjs +6 -0
- package/browser/cjs/DgSAPPq-D_vlo9jE.cjs +6 -0
- package/browser/cjs/DmtZLv1wnSxRzPiR.cjs +6 -0
- package/browser/cjs/DqlFSswn_reXyFz8.cjs +6 -0
- package/browser/cjs/Dws_eDddoJKDPps_.cjs +6 -0
- package/browser/cjs/HyVntu9KkvdKrJEt.cjs +16 -0
- package/browser/cjs/Iek_K8QW1doYx_eo.cjs +6 -0
- package/browser/cjs/QJFc55OPrJyuRvDO.cjs +19 -0
- package/browser/cjs/QxU4KIgsHZuVigdy.cjs +329 -0
- package/browser/cjs/cOAjfOdF1cb-xgQG.cjs +6 -0
- package/browser/cjs/index.cjs +2 -80
- package/browser/cjs/kQ8wVygFJMcxlUv-.cjs +6 -0
- package/browser/cjs/tVbeAmLkaH_1Jy7R.cjs +6 -0
- package/browser/cjs/wNoDw92hvq2txBki.cjs +11 -0
- package/browser/esm/2d2eGHpsnUoCOFMT.mjs +47 -0
- package/browser/esm/AVmCEk8Fmiw2k_yK.mjs +425 -0
- package/browser/esm/B0A2aLiKDPGGU4k-.mjs +44515 -0
- package/browser/esm/BBov1fpR61VyhE3Z.mjs +10 -0
- package/browser/esm/BJD32_Zv5gkabGc0.mjs +10 -0
- package/browser/esm/BJqIPJDvrhWpZc4S.mjs +10 -0
- package/browser/esm/BKYjPTKdwG8Dn1_Z.mjs +21 -0
- package/browser/esm/BQfnqD12mz41DOr_.mjs +10 -0
- package/browser/esm/BSdVpOzJ8SL3EBhP.mjs +10 -0
- package/browser/esm/BVuoKgnuqrUwY6Fv.mjs +44 -0
- package/browser/esm/Ba4SdTfCAvYS7a3O.mjs +29 -0
- package/browser/esm/BajFlIH_X_nvDNfp.mjs +2344 -0
- package/browser/esm/Bb0W3ByMVowTViNK.mjs +10 -0
- package/browser/esm/BmyjN5txj3iMw_DE.mjs +10 -0
- package/browser/esm/BpFA0UU_TF4JO3dh.mjs +10 -0
- package/browser/esm/Btr2FDDtI_fht0WU.mjs +1466 -0
- package/browser/esm/Bzg-D_R4sXN-wyMx.mjs +10 -0
- package/browser/esm/C2xOGr0pDSHSMKoW.mjs +1366 -0
- package/browser/esm/CAal3t8F-VfdmgAH.mjs +10 -0
- package/browser/esm/CBPeZuyUIf9scEwn.mjs +2081 -0
- package/browser/esm/CCjuiVOyesh1IQpA.mjs +3936 -0
- package/browser/esm/CDnNRZ7jINT_Dr0K.mjs +46 -0
- package/browser/esm/CQaM4Ka20cP71fl0.mjs +10 -0
- package/browser/esm/CVlIOg6F8qrZdlQ1.mjs +10 -0
- package/browser/esm/Cbq2K4YGny5wwFEf.mjs +10 -0
- package/browser/esm/CfeqmUm-TkCE2XpK.mjs +260 -0
- package/browser/esm/Ckb6l6osoWh90VXn.mjs +10 -0
- package/browser/esm/CkccSfJEU471_Sui.mjs +1702 -0
- package/browser/esm/Cl0mB61JgZYfTh4S.mjs +24 -0
- package/browser/esm/Cm7pnWH_xgLwX_lZ.mjs +10 -0
- package/browser/esm/Co_HyodT3prcEvNJ.mjs +10 -0
- package/browser/esm/CsBIABPdnqpcZcvJ.mjs +10 -0
- package/browser/esm/CslKfn0zxkGKrM4-.mjs +48 -0
- package/browser/esm/Cx0a1WWRvJgDg4qb.mjs +21 -0
- package/browser/esm/D-QFKqWRP5dKwynV.mjs +10 -0
- package/browser/esm/DWgbhx4Y4WzyAP3Z.mjs +1575 -0
- package/browser/esm/DgFIjoPrM5dmrLHT.mjs +392 -0
- package/browser/esm/Dk_OZhcDLapTaNma.mjs +10 -0
- package/browser/esm/Dp--KMDeqecbq_Wc.mjs +10 -0
- package/browser/esm/Dva_qJrZGvFYbRxZ.mjs +21 -0
- package/browser/esm/DxJfUV0HFQT8g6H_.mjs +39 -0
- package/browser/esm/Dxqx7qwqE6wbYSpB.mjs +147 -0
- package/browser/esm/ObudKUELIfmbm87W.mjs +10 -0
- package/browser/esm/SGprYj0-SzDtrM3y.mjs +56 -0
- package/browser/esm/SmC3rmOCw-Ynredz.mjs +1672 -0
- package/browser/esm/T263hpnj_sMd1bmD.mjs +84 -0
- package/browser/esm/Ys1OCodY6sXUkZ6-.mjs +424 -0
- package/browser/esm/aqvSzH4m6bf7ODc6.mjs +10 -0
- package/browser/esm/d49_A3euUkzKZure.mjs +633 -0
- package/browser/esm/d8r4AqRUASAMCbBC.mjs +1352 -0
- package/browser/esm/fgXzhDR19HBK6PEW.mjs +20 -0
- package/browser/esm/g2unVUs-HBGBvXMs.mjs +12 -0
- package/browser/esm/gzl_ozUgkS0mr_32.mjs +13391 -0
- package/browser/esm/index.mjs +4 -176
- package/browser/esm/kbK4ZGVl1tl5F-UA.mjs +41 -0
- package/browser/esm/oAfM3SU0EgMxfDc0.mjs +3802 -0
- package/browser/esm/{NBuS53B7u8hItiXf.mjs → oUl7lbkOPMCi30tO.mjs} +937 -933
- package/browser/esm/tAl8qMu6C0Vlq5p-.mjs +5585 -0
- package/cdn/assets/1we1udiYEDagZ5XN.js +241 -0
- package/cdn/assets/8d4z_mUqWF_BnOt4.js +6481 -0
- package/cdn/assets/B-ol51_1jHaCVeGO.js +3802 -0
- package/cdn/assets/B2I5EC8Y3LkhqzOe.js +50 -0
- package/cdn/assets/B44RkeFF8g1ncaGw.js +49 -0
- package/cdn/assets/BBov1fpR61VyhE3Z.js +10 -0
- package/cdn/assets/BCEDMsB3yP73FGo4.js +260 -0
- package/cdn/assets/BERonPR_jlfR0j1B.js +46 -0
- package/cdn/assets/BJD32_Zv5gkabGc0.js +10 -0
- package/cdn/assets/BJqIPJDvrhWpZc4S.js +10 -0
- package/cdn/assets/BKYjPTKdwG8Dn1_Z.js +21 -0
- package/cdn/assets/BPQvYX3Tn3_XfM55.js +2346 -0
- package/cdn/assets/BQfnqD12mz41DOr_.js +10 -0
- package/cdn/assets/BSdVpOzJ8SL3EBhP.js +10 -0
- package/cdn/assets/BWHiFslK55rPiaTT.js +21 -0
- package/cdn/assets/BWhbbP9qvpjw1m3d.js +21 -0
- package/cdn/assets/B_gWDLoUXJ58kUTF.js +5585 -0
- package/cdn/assets/Bb0W3ByMVowTViNK.js +10 -0
- package/cdn/assets/Bk7mWQ4jJ591qT5U.js +1702 -0
- package/cdn/assets/BmyjN5txj3iMw_DE.js +10 -0
- package/cdn/assets/BnEb6t4xIVuW37yn.js +29 -0
- package/cdn/assets/BpFA0UU_TF4JO3dh.js +10 -0
- package/cdn/assets/Bzg-D_R4sXN-wyMx.js +10 -0
- package/cdn/assets/C2xOGr0pDSHSMKoW.js +1366 -0
- package/cdn/assets/CAal3t8F-VfdmgAH.js +10 -0
- package/cdn/assets/CGImeT9zAECbU9zM.js +43 -0
- package/cdn/assets/CIdfxx6BkkxIdU4J.js +36 -0
- package/cdn/assets/CQaM4Ka20cP71fl0.js +10 -0
- package/cdn/assets/CVgQlKevn28IBavQ.js +44342 -0
- package/cdn/assets/CVlIOg6F8qrZdlQ1.js +10 -0
- package/cdn/assets/Cbq2K4YGny5wwFEf.js +10 -0
- package/cdn/assets/CcE9nC_34k_5iKdO.js +425 -0
- package/cdn/assets/CcP-5SrDsnDeT6SQ.js +2083 -0
- package/cdn/assets/Ckb6l6osoWh90VXn.js +10 -0
- package/cdn/assets/Cl0mB61JgZYfTh4S.js +24 -0
- package/cdn/assets/Cm7pnWH_xgLwX_lZ.js +10 -0
- package/cdn/assets/Co_HyodT3prcEvNJ.js +10 -0
- package/cdn/assets/CsBIABPdnqpcZcvJ.js +10 -0
- package/cdn/assets/Ct1wZ_TFb7_zG9uz.js +22 -0
- package/cdn/assets/D-QFKqWRP5dKwynV.js +10 -0
- package/cdn/assets/D8hsneNA-W9ryUa9.js +27 -0
- package/cdn/assets/DBzbchpZyNJVqFwJ.js +1575 -0
- package/cdn/assets/DIBJnPf-ZLpoUAyv.js +90 -0
- package/cdn/assets/DKaNurhCUtSDI3-Y.js +3936 -0
- package/cdn/assets/DQmcuM6zJj_UBR4j.js +58 -0
- package/cdn/assets/DXWy4_H6I-dyOLr6.js +46 -0
- package/cdn/assets/DXlz010r4VFvz1TS.js +23 -0
- package/cdn/assets/Dk_OZhcDLapTaNma.js +10 -0
- package/cdn/assets/Dp--KMDeqecbq_Wc.js +10 -0
- package/cdn/assets/DqRiTlxxpGv8z6hB.js +392 -0
- package/cdn/assets/Dt6M8k8ljeGubAJ5.js +1466 -0
- package/cdn/assets/Dzb_e1lRgdeWlKbP.js +27 -0
- package/cdn/assets/ObudKUELIfmbm87W.js +10 -0
- package/cdn/assets/QtHcsa9O7bxZgew4.js +12 -0
- package/cdn/assets/SmC3rmOCw-Ynredz.js +1672 -0
- package/cdn/assets/UBuQw1PVtmH3a9bE.js +84 -0
- package/cdn/assets/Ys1OCodY6sXUkZ6-.js +424 -0
- package/cdn/assets/aqvSzH4m6bf7ODc6.js +10 -0
- package/cdn/assets/d49_A3euUkzKZure.js +633 -0
- package/cdn/assets/d8r4AqRUASAMCbBC.js +1352 -0
- package/cdn/assets/g2unVUs-HBGBvXMs.js +12 -0
- package/cdn/assets/gzl_ozUgkS0mr_32.js +13391 -0
- package/cdn/assets/o1yNcQczZA65rwUv.js +41 -0
- package/cdn/assets/u_xPkr1quUnZRgrA.js +149 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/cdn/assets/CY8njwo06MWkoPz2.js +0 -21
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./QxU4KIgsHZuVigdy.cjs"),G=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>$(a,i));e.reactExports.useEffect(()=>{m($(a,i))},[a,i]);const y=e.T(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:y,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),k={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},Z={Formulas:e.ke.Content.Formulas,Values:e.ke.Content.Values,Notes:e.ke.Content.Notes,Comments:e.ke.Content.Comments},W={...Z};delete W.Values;const Y={"By Rows":!0,"By Columns":!1},$=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},H=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...y}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),S=e.reactExports.useRef(null),w=e.reactExports.useRef(null),I=e.reactExports.useRef(null),F=e.reactExports.useRef(null),A=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[L,h]=e.reactExports.useState(!1),[C,N]=e.reactExports.useState(!1),[x,v]=e.reactExports.useState(d),[B,b]=e.reactExports.useState(!1),[D,P]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.ke.Content.Formulas]},scope:k.Sheet}),E=e.T(async(t,n,s,j)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.ke.Content.Values&&(u.findOptions.fields=[e.ke.Content.Formulas]),u.findOptions.reverse=!t;const q=await m({autoFocus:j,...u});b(q===0)},[o,m]);e.reactExports.useEffect(()=>{b(!1)},[o,C,x]);const M=e.T((t,n)=>{if(t.keyCode===e.to.Enter){if(!o.findText)return;let s=!0,j=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(j=!0),A(t,j?F.current:I.current)):A(t,s?w.current:S.current),E(s,n,j,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",h(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.ke.Content.Formulas]);const s=!(!f&&i===void 0);return s&&v(s),n}),D||K.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.ke.Content.Values):h(!0)},[x]),e.reactExports.useEffect(()=>{if(L&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void h(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),h(!1)},{once:!0})},[L,o]);const[U,{width:V}]=e.Mo();return e.jsxRuntimeExports.jsx(e.x8,{ref:K,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>P(!0),onBlur:()=>{P(!1),b(!1)},PaperProps:{elevation:D?3:1},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:U,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)v(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.Ee,{selected:C,onSelectToggle:t=>{N(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.p2(e.jsxRuntimeExports.jsx(e.y9,{}))}),e.jsxRuntimeExports.jsx(e.Ee,{selected:x,onSelectToggle:t=>{v(t)},preventFocus:!0,label:"Toggle Replace",icon:e.p2(e.jsxRuntimeExports.jsx(e.v9,{})),shortcut:{key:x?"F":"H",modifiers:[e.Z.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.Ee,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.g9,{}))}),e.jsxRuntimeExports.jsx(e.Ee,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.b9,{}))}),e.jsxRuntimeExports.jsx(e.Ee,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.z9,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>B?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>B?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>M(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.Ee,{selected:o.findOptions.reverse,onSelectToggle:t=>{E(!1,!1)},touchRippleRef:S,label:"",shortcut:{key:"Enter",modifiers:[e.Z.Shift]},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(G,{}):e.jsxRuntimeExports.jsx(Q,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.Ee,{selected:!o.findOptions.reverse,onSelectToggle:t=>{E(!0,!1)},touchRippleRef:w,label:"Next Match",shortcut:{key:"Enter"},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(J,{}):e.jsxRuntimeExports.jsx(X,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>M(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.Ee,{onSelectToggle:t=>{E(!0,!0)},touchRippleRef:I,label:"Replace",shortcut:{key:"Enter"},icon:e.p2(e.jsxRuntimeExports.jsx(e.x9,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.Ee,{onSelectToggle:t=>{E(!0,!0,!0)},touchRippleRef:F,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.Z.Ctrl,e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.V9,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:C,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.p6,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:k,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Y,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.ke.Content.Values?e.ke.Content.Formulas:o.findOptions.fields?.[0],options:x?W:Z,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=H,exports.ScopeOptions=k,exports.default=H;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./QxU4KIgsHZuVigdy.cjs"),Je=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",ys=new RegExp(`^[${Je}][-${Je}.0-9·̀-ͯ‿-⁀]*$`,"u");function os(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const Ye="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const z=function(i){return i===32||i===10||i===13||i===9},xs=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},re=os,ts=function(i){return os(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ns=[32,10,13,9],ws=ys,vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ss=rs,Cs=function(i){return rs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ks=bs,ge="http://www.w3.org/XML/1998/namespace",Zt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Zt},Ps={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,lt=-2,W=13,Ht=33,ot=10,St=60,Gt=61,j=62,X=63,Qt=93,pe=i=>i===34||i===39,as=[34,39],Ds=[...as,91,j],Es=[...as,St,Qt],Os=[Gt,X,...ns],Is=[...ns,j,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);break;case"xmlns":s!==Zt&&i.fail(`xmlns prefix must be bound to ${Zt}.`)}switch(s){case Zt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Zt}.`);break;case ge:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Vs=i=>ks.test(i),Ls=i=>ws.test(i),es={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ns{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Ss,this.nameCheck=Cs,this.isName=Vs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...As};const o=this.opt.additionalNamespaces;o!=null&&(function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])}(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=re,this.nameCheck=ts,this.isName=Ls,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ps),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[es[t]]=s}off(t){this[es[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===lt?ot:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===lt,c=a?ot:n;if(c===I||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
7
|
+
`,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case lt:this.text+=`${o.slice(s,this.prevI)}
|
|
8
|
+
`,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Ds);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Es);t!==I&&(this.text+=String.fromCodePoint(t),t===Qt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
|
|
9
|
+
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==j?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Qt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Qt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case j:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Qt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||z(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||z(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Ht:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:z(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===j){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=W}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Ht}sXMLDeclName(){const t=this.captureTo(Os);if(t===X)return this.state=Ht,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(z(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=Ht,void this.fail("XML declaration is incomplete.");z(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=Ht,void this.fail("XML declaration is incomplete.");z(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=Ht,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(z(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=Ht}sXMLDeclEnding(){this.getCodeNorm()===j?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case j:this.openTag();break;case 47:this.state=35;break;default:z(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(re(t)?(this.unget(),this.state=37):t===j?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:z(t)?this.state=38:t===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?this.openTag():re(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):z(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();z(t)?this.state=36:t===j?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():z(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Qt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case j:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
|
+
`),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
+
`),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:z(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Zt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,P=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],D={key:null,source:t};let b=null,d=!1;const E=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let F=0;F<m.length;F++)if(V==null||(V=m[F](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>E(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:E,copyToObject:(y,m,V,F)=>{const q=E(F??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const F=E(V??y,m);F!==void 0&&(b.source[y]=F)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const F=n.get(m);if(c={local:m,visitor:F,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,F&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const F=a.pop()??null;c=a[a.length-1]??null;const q=F?.destination;if(q){w.pop(),b=w[w.length-1]??D;const ht=F.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},Pe=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),D=o.convert(w,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const D=Pe(w,b=>t.files[b],s,o,n);a.set(w,D)}return a},Ms=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],De=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Ms[c]);let T=i("tint");if(T&&(s+=` ${u.T$1.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const $s=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./B9GyERAqyIxdqS4D.cjs")),T=Promise.resolve().then(()=>require("./Dd7vDdIeQaFScMRQ.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./wNoDw92hvq2txBki.cjs")).then(d=>d.i));let w=null,D=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],D=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const E=new D.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.Rm,m=y.beginPersist(),V={},F=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Ee=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=((M,be,xe,we,Xt=null)=>{if(!M)return null;const tt=Pe(M,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const Wt=bt[xt],kt=tt[Wt];et.set(Wt,kt)}return et})(ut,ne,f,E,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),M=dt?.target;if(!M)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);M.startsWith("/")||(M=xe+M),M=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})(M);const we=E?.getVisitorParamsState().get("dxfs");let Xt=ut.get(M);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((L,G,Kt,_,Q,Z,wt)=>{const h=new Rs,K=new u.He.TransposedBuilder;let H=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",P),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",P);if(l!==null){let p=_?.get(l);p||(Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",P),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",P),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",P),e.copyTo("minLength",P),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=De(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",P,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",P,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Icon,e.copyTo("iconId",P),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",P),e.copyTo("hour",P),e.copyTo("minute",P),e.copyTo("month",P),e.copyTo("second",P),e.copyTo("year",P)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.no.fastStringToRange(p,is).colStart,pt=u.no.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{H=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",P),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",P,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=H.topLeft?u.no.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",P,"xSplit"),e.copyToObject(p,"rowIndex",P,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.no.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=De(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",P),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",P),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",P,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",P,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",P,"outlineLevel"),e.copyTo("s",P,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Jt=null;const ms={onOpenTag:e=>{Jt===null&&(Jt="")},onText:e=>{Jt+=e},onEnd:()=>{const e=Kt(Jt);return Jt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,qt=[],_t=!1,Pt=null,Yt=null,de=null,nt=null,Me=null,$e=null;const Ts=pt?.get("richData")??[],je=u.no.normalizeA1ToR1C1,He=u.Kt.createConflatingRanges(),Fe=new Map,ve=[];let te=null;const Xe=u.Kt.createConflatingRanges();let ee,Dt=!1,B=-1,J=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Et="",Ot="",It="",Vt="",Lt="",Nt="",We="",qe="",_e="",ze="",Ue="",Ge="",Qe="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done($s);const k=g.length;if(k>0){const $=new Array(k);for(let N=0;N<k;N++){const at=g[N],Mt=u.no.rangeToString(at),$t=at.value[1],ie=u.no.resolveRelativeToA1($t,at.rowStart,at.colStart);$[N]=[Mt,ie]}r.formulas=$}const st=Xe.done(!0),R=st.length;if(R>0){const $=new Array(R);for(let N=0;N<R;N++){const at=st[N],Mt=u.no.rangeToString(at);$[N]=Mt}r.volatile=$}if(ve.length>0&&(r.dynamicArray=[...ve]),qt.length>0){qt.sort(u.Kt.createRangeComparator(u.w.Orientation.Column));const $=[];let N=null,at=-1,Mt=-1,$t=-1,ie=-1,vt=null;const Ze=qt.length;Ze>0&&(N=qt[0],at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value,$.push(N));for(let jt=1;jt<Ze;jt++)vt=qt[jt],ie!==vt.value||at!==vt.colStart||Mt!==vt.colEnd||$t+1!==vt.rowEnd?($.push(vt),N=vt,at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value):($t=vt.rowEnd,N.rowEnd=$t);let Ke=[];for(let jt=0;jt<$.length;jt++){const oe=$[jt];Ke.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Ke}const it=e.build();if(it){const $=it.tuples;r.data=$}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Pt=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,J);break;case"is":return void(Dt=!0)}return void(Dt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;J=u.no.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Dt=!0));let $=g.attributes.s;$!==void 0&&($=parseInt($),Rt&&Rt.value===$&&Rt.colEnd+1===J?Rt.colEnd=J:(Rt={colStart:J,rowStart:B,colEnd:J,rowEnd:B,value:$},qt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Et=g.attributes.customHeight,Et!==void 0&&(ft|=Ft.CustomHeight),Et!==qe&&(mt=!0,qe=Et),zt=g.attributes.ht,zt!==void 0&&(ft|=Ft.Ht),zt!==We&&(mt=!0,We=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Ft.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ft.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Ft.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ft.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ft.Collapsed),Nt!==Qe&&(mt=!0,Qe=Nt),ft!==0)if(Be+1!==B||mt){const it=Et!==void 0&&(Et==="1"||Et==="true"),$=It!==void 0&&(It==="1"||It==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:$,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Dt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,J,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Dt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.no.cellToString({colIndex:J,rowIndex:B})}`));break;case"str":case"inlineStr":Dt=!0}gt!==null&&e.addValue(B,J,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Pt)if(Me===Pt)nt=$e;else{if(nt=Fe.get(Pt),!nt){const k=[];de=je(g,B,J,k),nt=[de,k,g],Fe.set(Pt,nt)}Me=Pt,$e=nt}if(_t){const k=[];de=je(g,B,J,k),nt=[de,k,g]}if(nt)return He.append(B,J,nt),nt=null,_t=!1,Pt=null,void(Yt=null);Dt?C?.onText(g):rt||l?.onText(g)}}})(K,L,h.createEventHandler(L,()=>{},Z),Z,ms,wt)})(tt,(L,G=!1)=>ae(L,M,G)??null,us,we,0,L=>{o&&(L=M+": "+L,o?.(L))},q),Bt=ss(M,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./cOAjfOdF1cb-xgQG.cjs"));globalThis.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Kt=new TextDecoder("utf-8");let _=0;const Q=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Z){if(_>=Q.byteLength)return void Z.close();const wt=Q.subarray(_,Math.min(_+G,Q.byteLength)),h=Kt.decode(wt,{stream:_+G<Q.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${M}'`,L),new Error(`Error parsing sheet: '${M}'`,{cause:L})}const Wt=fe(M,ut);let kt,Re=new Map;if(Wt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;Wt.forEach((_,Q)=>{_.type===L&&(kt=ae(Q,M,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Kt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Wt.forEach((_,Q)=>{_.type===Kt&&(G=ae(Q,M,!1,ut))}),G||kt){const _=kt??[],Q=G?.comments;if(Q){const Z=G?.authors;for(let wt=0;wt<Q.length;wt++){const h=Q[wt];let K=h.authorId!==void 0?Z[h.authorId]:void 0;if((!K||K.startsWith("tc="))&&(K=ls(K.substring(3)),Re.has(K)))continue;let H=ce.get(K);H||(H=Ve.get(K)),H||(H={id:u.Yt.uuidV4(),displayName:K},Ve.set(H.displayName,H),ce.set(H.id,H)),K=H?.id??null;const ue={id:u.Yt.uuidV4(),personId:K,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Ee.push(et())}else Xt=Y?ss(M,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),F.add(et),m.toResourceId(et)},yt):Pe(M,ne,f,E,yt);return Xt},yt={paramMap:q,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,E,yt),Ut("richdata",d,f,E,yt),new Map),Ve=new Map,Le=Ut("people",d,f,E);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,E,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.Bl(Ne);let he=Ut("styles",d,f,E,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.te(he)));const ps=Ut("workbooks",d,f,E,yt);await Promise.all(Ee);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.Iy(gs);return F.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let E="Unable to parse XLSX.";throw d instanceof u.ne&&(E="Unable to open XLSX. There are too many rows or columns."),new Error(E,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./B9GyERAqyIxdqS4D.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((D,b)=>{const d={t:"z"},E=b.getCell().getStyle();if(!E.isNormal()){let f=E.getNumberFormat();f!==u.Pt.Type.General&&(f===u.Pt.Type.ShortDate?f="m/d/yyyy":f===u.Pt.Type.MediumDate?f="d-mmm-yy":f===u.Pt.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.Pt.Type.ShortTime?f="h:mm":f===u.Pt.Type.MediumTime?f="h:mm AM/PM":f===u.Pt.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(D!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=D;break;case u.M.String:d.t="s",d.v=D;break;case u.M.Boolean:d.t="b",d.v=D;break;case u.M.Error:d.t="e",d.v=D.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const D=[];T["!merges"]=D;for(let b=0;b<S.merges.length;b++)D.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const D=[];T["!cols"]=D;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let E=0;E<b.length;E++){const f=b[E];for(let m=D.length;m<=f.min-1;m++)D.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)D.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.Yt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=De,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Yt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DELAY:{s:"Returns the input value after a delay.",p:{time:{d:"the delay time in milliseconds. Default is 1000ms (1 second)."},input:{d:"returns the input."},label:{d:"optional label for the delay function.",v:"No label"}},h:"Testing"},WAIT:{s:"Starts waiting for event",p:{type:{d:"the type of message."},input:{d:"an optional dependency."}},h:"Testing"}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./QxU4KIgsHZuVigdy.cjs");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:f,createWorkbookOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./DFJ4dyRxiUF1XPPZ.cjs")).then(n=>n.p),w=new TextDecoder().decode(a);let p=-1;const t=new y.Iy(h),u=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row}),c=d?.onProgress;let e=0;const r={...i,transform:(n,g)=>{i?.transform&&(n=i.transform(n,g));const s=g;s===0&&p++;let l=n??"";return u.pushAt(p,s,l),e++,e%1e5==0&&c?.(e),n}};return o.parse(w,r).data,u.apply({textParser:!0,...f}),t},exports.toBufferCSV=async(a,d)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:f=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:w={}}=d||{},p=await Promise.resolve().then(()=>require("./DFJ4dyRxiUF1XPPZ.cjs")).then(s=>s.p);if(!a)throw new Error("workbook must be specified");let t=null;if(o===null?t=a.getSelectedSheet():typeof o=="number"?t=a.getSheets().search()[o]:typeof o=="string"&&(t=a.getSheets().getByName(o)),!t)throw new Error("invalid sheetKey specified");let u=null;const c=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!f){const s=i?r.getRowStart():0,l=f?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const m=l.getCoords(),S=l.getCell();u!==m.rowIndex&&(e&&c.push(e),e=[],u=m.rowIndex);const x=S.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&c.push(e);const n={...w},g=p.unparse(c,n);return new TextEncoder().encode(g).buffer};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ct,pt={exports:{}};const _t=function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[(ct||(ct=1,pt.exports=function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},gt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),L()){let f=function(O,A){_(t.transformHeader)&&(O=t.transformHeader(O,A)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;L()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var A=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),v<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(A[y]=A[y]||[],A[y].push(g)):A[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),A}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function L(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,L()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,A,b,y,g)=>{var U,d,S,I;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<g.length;Z++){for(var W,tt=g[Z],F=0,q=0,x=0,D=(S=void 0,new st({comments:y,delimiter:tt,newline:A,preview:10}).parse(O)),H=0;H<D.data.length;H++)b&&C(D.data[H])?x++:(q+=W=D.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<D.data.length&&(q/=D.data.length-x),(d===void 0||F<=d)&&(I===void 0||I<q)&&1.99<q&&(d=F,U=tt,I=q)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
|
|
7
|
+
`)).length&&c[0].length<E[0].length,E.length===1||h)return`
|
|
8
|
+
`;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
|
|
9
|
+
`&&f++;return f>=E.length/2?`\r
|
|
10
|
+
`:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,v=t.fastMode,M=null,w=!1,m=t.quoteChar==null?'"':t.quoteChar,T=m;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
|
|
11
|
+
`&&i!=="\r"&&i!==`\r
|
|
12
|
+
`&&(i=`
|
|
13
|
+
`);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,L=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(v||v!==!1&&u.indexOf(m)===-1){for(var A=u.split(i),b=0;b<A.length;b++){if(f=A[b],o+=f.length,b!==A.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),q(),j)return F()}else I(f.split(e));if(l&&l<=b)return c=c.slice(0,l),F(!0)}}return F()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=Z((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=Z(g),u.substring(d+1+S,d+1+S+L)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+L),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(q(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return F();o=g+L,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+L),h&&(q(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function I(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&q()),F()}function tt(x){o=x,I(f),f=[],g=u.indexOf(i,o)}function F(x){if(t.header&&!p&&c.length&&!w){var D=c[0],H=Object.create(null),ot=new Set(D);let ft=!1;for(let G=0;G<D.length;G++){let N=D[G];if(H[N=_(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),D[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,D[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function q(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function mt(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=mt,r.id=gt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
|
|
14
|
+
`,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",L=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(L&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(L?p:s[c]).length,f=!1,O=L?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!L&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&L){for(var A=[],b=0;b<E;b++){var y=z?p[b]:b;A.push(s[c][y])}f=A.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=L&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((L,z)=>{for(var h=0;h<z.length;h++)if(-1<L.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
|
|
15
|
+
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a}()),pt.exports)]);exports.p=_t;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={CUBEKPIMEMBER:{s:"Returns a key performance indicator (KPI) property and displays the KPI name in the cell.",p:{connection:{d:"is the name of a connection to an OLAP cube"},kpiName:{d:"is the KPI name"},kpiProperty:{d:"is the KPI property"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBER:{s:"Returns a member or tuple from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member or tuple in the OLAP cube"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBERPROPERTY:{s:"Returns the value of a member property from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member in the OLAP cube"},kpiProperty:{d:"is the property name"}},h:"Unimplemented"},CUBERANKEDMEMBER:{s:"Returns the nth, or ranked, member in a set.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the set from which the element is to be retrieved"},rank:{d:"is the rank of the element to be retrieved"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBESET:{s:"Defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Excel.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the expression for the set"},caption:{d:"is the caption to be displayed in the cell"},sortOrder:{d:"is the sort order"},sortBy:{d:"is the sort by"}},h:"Unimplemented"},CUBESETCOUNT:{s:"Returns the number of items in a set.",p:{set:{d:"is the set whose elements are to be counted"}},h:"Unimplemented"},CUBEVALUE:{s:"Returns an aggregated value from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{}},h:"Unimplemented"}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={"BETA.DIST":{s:"Returns the beta probability distribution function",p:{x:{d:"is the value between A and B at which to evaluate the function"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}}},BETADIST:{s:"Returns the cumulative beta probability density function",p:{x:{d:"is the value between A and B at which to evaluate the function"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}},c:"Compatibility"},"BETA.INV":{s:"Returns the inverse of the cumulative beta probability density function (BETA.DIST)",p:{probability:{d:"is a probability associated with the beta distribution"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}}},BETAINV:{s:"Returns the inverse of the cumulative beta probability density function (BETADIST)",p:{probability:{d:"is a probability associated with the beta distribution"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}},c:"Compatibility"},"BINOM.DIST":{s:"Returns the individual term binomial distribution probability",p:{numberS:{d:"is the number of successes in trials"},trials:{d:"is the number of independent trials"},probabilityS:{d:"is the probability of success on each trial"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}}},BINOMDIST:{s:"Returns the individual term binomial distribution probability",p:{numberS:{d:"is the number of successes in trials"},trials:{d:"is the number of independent trials"},probabilityS:{d:"is the probability of success on each trial"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}},c:"Compatibility"},"BINOM.DIST.RANGE":{s:"Returns the probability of a trial result using a binomial distribution",p:{trials:{d:"is the number of independent trials"},probabilityS:{d:"is the probability of success on each trial"},numberS:{d:"is the number of successes in trials"},numberS2:{d:"if provided this function returns the probability that the number of successful trials shall lie between number_s and number_s2",v:"numberS"}}},"BINOM.INV":{s:"Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value",p:{trials:{d:"is the number of Bernoulli trials"},probabilityS:{d:"is the probability of success on each trial, a number between 0 and 1 inclusive"},alpha:{d:"is the criterion value, a number between 0 and 1 inclusive"}}},"CHISQ.DIST":{s:"Returns the left-tailed probability of the chi-squared distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE",v:!1}}},CHIDIST:{s:"Returns the right-tailed probability of the chi-squared distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"CHISQ.DIST.RT":{s:"Returns the right-tailed probability of the chi-squared distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"CHISQ.INV":{s:"Returns the inverse of the left-tailed probability of the chi-squared distribution",p:{probability:{d:"is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},CHIINV:{s:"Returns the inverse of the right-tailed probability of the chi-squared distribution",p:{probability:{d:"is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"CHISQ.INV.RT":{s:"Returns the right-tailed probability of the chi-squared distribution",p:{probability:{d:"is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"CHISQ.TEST":{s:"Returns the test for independence: the value from the chi-squared distribution for the statistic and the appropriate degrees of freedom",p:{actualRange:{d:"is the range of data that contains observations to test against expected values"},expectedRange:{d:"is the range of data that contains the ratio of the product of row totals and column totals to the grand total"}}},CHITEST:{s:"Returns the test for independence: the value from the chi-squared distribution for the statistic and the appropriate degrees of freedom",p:{actualRange:{d:"is the range of data that contains observations to test against expected values"},expectedRange:{d:"is the range of data that contains the ratio of the product of row totals and column totals to the grand total"}},c:"Compatibility"},"CONFIDENCE.NORM":{s:"Returns the confidence interval for a population mean, using a normal distribution",p:{alpha:{d:"is the significance level used to compute the confidence level, a number greater than 0 and less than 1"},standardDev:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},size:{d:"is the sample size"}}},CONFIDENCE:{s:"Returns the confidence interval for a population mean, using a normal distribution",p:{alpha:{d:"is the significance level used to compute the confidence level, a number greater than 0 and less than 1"},std:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},dev:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},size:{d:"is the sample size"}},c:"Compatibility"},"CONFIDENCE.T":{s:"Returns the confidence interval for a population mean, using a Student's T distribution",p:{alpha:{d:"is the significance level used to compute the confidence level, a number greater than 0 and less than 1"},standardDev:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},size:{d:"is the sample size"}}},CORREL:{s:"Returns the correlation coefficient between two data sets",p:{array1:{d:"is a cell range of values. The values should be numbers, names, arrays, or references that contain numbers"},array2:{d:"is a second cell range of values. The values should be numbers, names, arrays, or references that contain numbers"}}},"COVARIANCE.P":{s:"Returns population covariance, the average of the products of deviations for each data point pair in two data sets",p:{array1:{d:"is the first cell range of integers and must be numbers, arrays, or references that contain numbers"},array2:{d:"is the second cell range of integers and must be numbers, arrays, or references that contain numbers"}}},COVARIANCE:{s:"Returns population covariance, the average of the products of deviations for each data point pair in two data sets",p:{array1:{d:"is the first cell range of integers and must be numbers, arrays, or references that contain numbers"},array2:{d:"is the second cell range of integers and must be numbers, arrays, or references that contain numbers"}},c:"Compatibility"},"COVARIANCE.S":{s:"Returns sample covariance, the average of the products of deviations for each data point pair in two data sets",p:{array1:{d:"is the first cell range of integers and must be numbers, arrays, or references that contain numbers"},array2:{d:"is the second cell range of integers and must be numbers, arrays, or references that contain numbers"}}},CRITBINOM:{s:"Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value",p:{trails:{d:"is the number of Bernoulli trials"},probabilityS:{d:"is the probability of success on each trial, a number between 0 and 1 inclusive"},alpha:{d:"is the criterion value, a number between 0 and 1 inclusive"}},c:"Compatibility",h:"Unimplemented"},DEVSQ:{s:"Returns the sum of squares of deviations of data points from their sample mean",p:{number:{d:"number1,number2,... are 1 to 255 arguments, or an array or array reference, on which you want DEVSQ to calculate"}}},"EXPON.DIST":{s:"Returns the exponential distribution",p:{x:{d:"is the value of the function, a nonnegative number"},lambda:{d:"is the parameter value, a positive number"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}}},EXPONDIST:{s:"Returns the exponential distribution",p:{x:{d:"is the value of the function, a nonnegative number"},lambda:{d:"is the parameter value, a positive number"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}},c:"Compatibility"},"F.DIST":{s:"Returns the (left-tailed) F probability distribution (degree of diversity) for two data sets",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}}},FDIST:{s:"Returns the (left-tailed) F probability distribution (degree of diversity) for two data sets",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"F.DIST.RT":{s:"Returns the (right-tailed) F probability distribution (degree of diversity) for two data sets",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"F.INV":{s:"Returns the inverse of the (left-tailed) F probability distribution: if p = F.DIST(x,...), then F.INV(p,...) = x",p:{probability:{d:"is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},FINV:{s:"Returns the inverse of the (left-tailed) F probability distribution: if p = F.DIST(x,...), then F.INV(p,...) = x",p:{probability:{d:"is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"F.INV.RT":{s:"Returns the inverse of the (right-tailed) F probability distribution: if p = F.DIST.RT(x,...), then F.INV.RT(p,...) = x",p:{probability:{d:"is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"F.TEST":{s:"Returns the result of an F-test, the two-tailed probability that the variances in Array1 and Array2 are not significantly different",p:{array1:{d:"is the first array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"},array2:{d:"is the second array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"}}},FTEST:{s:"Returns the result of an F-test, the two-tailed probability that the variances in Array1 and Array2 are not significantly different",p:{array1:{d:"is the first array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"},array2:{d:"is the second array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"}},c:"Compatibility"},FISHER:{s:"Returns the Fisher transformation",p:{x:{d:"is the value for which you want the transformation, a number between -1 and 1, excluding -1 and 1"}}},FISHERINV:{s:"Returns the inverse of the Fisher transformation: if y = FISHER(x), then FISHERINV(y) = x",p:{y:{d:"is the value for which you want to perform the inverse of the transformation"}}},FORECAST:{s:"Calculates, or predicts, a future value along a linear trend by using existing values",p:{x:{d:"is the data point for which you want to predict a value and must be a numeric value"},knownYs:{d:"is the dependent array or range of numeric data",v:null},knownXs:{d:"is the independent array or range of numeric data. The variance of Known_x's must not be zero",v:null}},c:"Compatibility"},"FORECAST.ETS":{s:"Returns the forecasted value for a specific future target date using exponential smoothing method",p:{targetDate:{d:"is the data point for which you want to predict a value. It should carry on the pattern of values in the timeline"},values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},seasonality:{d:"is a number value that indicates the length of the seasonal pattern in the data. It must be between 0 and 1, where 0 means no seasonality and 1 means full seasonality",v:.95},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.ETS.CONFINT":{s:"Retursn a confidence interval for the forecasted value at the specified target date",p:{targetDate:{d:"is the data point for which you want to predict a value. It should carry on the pattern of values in the timeline"},values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},confiedenceLevel:{d:"is a number value that indicates the confidence level for the forecasted value. It must be between 0 and 1, where 0 means no confidence and 1 means full confidence",v:.95},seasonality:{d:"is a number value that indicates the length of the seasonal pattern in the data. It must be between 0 and 1, where 0 means no seasonality and 1 means full seasonality",v:.95},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.ETS.SEASONALITY":{s:"Returns the length of the repetitive pattern in the data for the specific time series.",p:{values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.ETS.STAT":{s:"Returns the requested statistic for the forecast",p:{values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},statisticType:{d:"is a number between 1 and 8 that indicates the type of statistic to return:"},seasonality:{d:"is a number value that indicates the length of the seasonal pattern in the data. It must be between 0 and 1, where 0 means no seasonality and 1 means full seasonality",v:1},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.LINEAR":{s:"Calculates, or predicts, a future value along a linear trend by using existing values",p:{x:{d:"is the data point for which you want to predict a value and must be a numeric value"},knownYs:{d:"is the dependent array or range of numeric data"},knownXs:{d:"is the independent array or range of numeric data. The variance of Known_x's must not be zero",v:null}},h:"Unimplemented"},FREQUENCY:{s:"Calculates how often values occur within a range of values and then returns a vertical array of numbers having one more element than Bins_array",p:{dataArray:{d:"is an array of or reference to a set of values for which you want to count frequencies (blanks and text are ignored)"},binsArray:{d:"is an array of or reference to intervals into which you want to group the values in data_array"}}},GAMMA:{s:"Returns the Gamma function value",p:{x:{d:"is the value for which you want to calculate Gamma"}}},"GAMMA.DIST":{s:"Returns the gamma distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},alpha:{d:"is a parameter to the distribution, a positive number"},beta:{d:"is a parameter to the distribution, a positive number. If beta = 1, GAMMA.DIST returns the standard gamma distribution"},cumulative:{d:"is a logical value: return the cumulative distribution function = TRUE; return the probability mass function = FALSE",v:!1}}},"GAMMA.INV":{s:"Returns the inverse of the gamma cumulative distribution: if p = GAMMA.DIST(x,...), then GAMMA.INV(p,...) = x",p:{probability:{d:"is the probability associated with the gamma distribution, a number between 0 and 1, inclusive"},alpha:{d:"is a parameter to the distribution, a positive number"},beta:{d:"is a parameter to the distribution, a positive number. If beta = 1, GAMMA.DIST returns the standard gamma distribution"}}},GAMMALN:{s:"Returns the natural logarithm of the gamma function",p:{x:{d:"is the value for which you want to calculate GAMMALN, a positive number"}}},"GAMMALN.PRECISE":{s:"Returns the natural logarithm of the gamma function",p:{x:{d:"is the value for which you want to calculate GAMMALN.PRECISE, a positive number"}}},GAUSS:{s:"Returns 0.5 less than the standard normal cumulative distribution",p:{x:{d:"is the value for which you want the distribution"}}},GEOMEAN:{s:"Returns the geometric mean of an array or range of positive numeric data",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the mean"}}},GROWTH:{s:"Returns numbers in an exponential growth trend matching known data points",p:{knownYs:{d:"is the set of y-values you already know in the relationship y = b*m^x, an array or range of positive numbers"},knownXs:{d:"is an optional set of x-values that you may already know in the relationship y = b*m^x, an array or range the same size as Known_y's",v:null},newXs:{d:"are new x-values for which you want GROWTH to return corresponding y-values",v:null},useConst:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 1 if Const = FALSE",v:!0}}},HARMEAN:{s:"Returns the harmonic mean of a data set of positive numbers: the reciprocal of the arithmetic mean of reciprocals",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the harmonic mean"}}},"HYPGEOM.DIST":{s:"Returns the hypergeometric distribution",p:{sampleS:{d:"is the number of successes in the sample"},numberSample:{d:"is the size of the sample"},populationS:{d:"is the number of successes in the population"},numberPop:{d:"is the population size"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},INTERCEPT:{s:"Calculates the point at which a line will intersect the y-axis by using a best-fit regression line plotted through the known x-values and y-values",p:{knownYs:{d:"is the dependent set of observations or data and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"is the independent set of observations or data and can be numbers or names, arrays, or references that contain numbers"}}},KURT:{s:"Returns the kurtosis of a data set",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the kurtosis"}}},LINEST:{s:"Returns statistics that describe a linear trend matching known data points, by fitting a straight line using the least squares method",p:{knownYs:{d:"is the set of y-values you already know in the relationship y = mx + b"},knownXs:{d:"is an optional set of x-values that you may already know in the relationship y = mx + b",v:null},constant:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 0 if Const = FALSE",v:!0},stats:{d:"is a logical value: return additional regression statistics = TRUE; return m-coefficients and the constant b = FALSE",v:!1}}},LOGEST:{s:"Returns statistics that describe an exponential curve matching known data points",p:{knownYs:{d:"is the set of y-values you already know in the relationship y = b*m^x"},knownXs:{d:"is an optional set of x-values that you may already know in the relationship y = b*m^x",v:null},constant:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 1 if Const = FALSE",v:!0},stats:{d:"is a logical value: return additional regression statistics = TRUE; return m-coefficients and the constant b = FALSE",v:!1}},h:"Unimplemented Buggy"},"LOGNORM.DIST":{s:"Returns the lognormal distribution of x, where ln(x) is normally distributed with parameters Mean and Standard_dev",p:{x:{d:"is the value at which to evaluate the function, a positive number"},mean:{d:"is the mean of ln(x)"},standardDev:{d:"is the standard deviation of ln(x), a positive number"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},"LOGNORM.INV":{s:"Returns the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with parameters Mean and Standard_dev",p:{probability:{d:"is a probability associated with the lognormal distribution, a number between 0 and 1, inclusive"},mean:{d:"is the mean of ln(x)"},standardDev:{d:"is the standard deviation of ln(x), a positive number"}}},"MODE.MULT":{s:"Returns a vertical array of the most frequently occurring, or repetitive, values in an array or range of data. For a horizontal array, use =TRANSPOSE(MODE.MULT(number1,number2,...))",p:{number:{d:'<div class="param-538">number1,number2,... are 1 to 255 numbers, or names, arrays, or references that contain numbers for which you want the mode</div>'}},h:"Unimplemented"},"MODE.SNGL":{s:"Returns the most frequently occurring, or repetitive, value in an array or range of data",p:{number:{d:"number1,number2,... are 1 to 255 numbers, or names, arrays, or references that contain numbers for which you want the mode"}},h:"Unimplemented"},"NEGBINOM.DIST":{s:"Returns the negative binomial distribution, the probability that there will be Number_f failures before the Number_s-th success, with Probability_s probability of a success",p:{numberF:{d:"is the number of failures"},numberS:{d:"is the threshold number of successes"},probabilityS:{d:"is the probability of a success; a number between 0 and 1"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}}},"NORM.DIST":{s:"Returns the normal distribution for the specified mean and standard deviation",p:{x:{d:"is the value for which you want the distribution"},mean:{d:"is the arithmetic mean of the distribution"},standardDev:{d:"is the standard deviation of the distribution, a positive number"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},"NORM.INV":{s:"Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation",p:{probability:{d:"is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive"},mean:{d:"is the arithmetic mean of the distribution"},standardDev:{d:"is the standard deviation of the distribution, a positive number"}}},"NORM.S.DIST":{s:"Returns the standard normal distribution (has a mean of zero and a standard deviation of one)",p:{z:{d:"is the value for which you want the distribution"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}}},"NORM.S.INV":{s:"Returns the inverse of the standard normal cumulative distribution (has a mean of zero and a standard deviation of one)",p:{probability:{d:"is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive"}}},PEARSON:{s:"Returns the Pearson product moment correlation coefficient, r",p:{array1:{d:"is a set of independent values"},array2:{d:"is a set of dependent values"}}},"PERCENTILE.EXC":{s:"Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive",p:{array:{d:"is the array or range of data that defines relative standing"},k:{d:"is the percentile value that is between 0 through 1, inclusive"}},h:"Unimplemented"},"PERCENTILE.INC":{s:"Returns the k-th percentile of values in a range, where k is in the range 0..1, inclusive",p:{array:{d:"is the array or range of data that defines relative standing"},k:{d:"is the percentile value that is between 0 through 1, inclusive"}},h:"Unimplemented"},"PERCENTRANK.EXC":{s:"Returns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set",p:{array:{d:"is the array or range of data with numeric values that defines relative standing"},x:{d:"is the value for which you want to know the rank"},significance:{d:"is an optional value that identifies the number of significant digits for the returned percentage",v:3}},h:"Unimplemented"},"PERCENTRANK.INC":{s:"Returns the rank of a value in a data set as a percentage (0..1, inclusive) of the data set",p:{array:{d:"is the array or range of data with numeric values that defines relative standing"},x:{d:"is the value for which you want to know the rank"},significance:{d:"is an optional value that identifies the number of significant digits for the returned percentage",v:3}},h:"Unimplemented"},PHI:{s:"Returns the value of the density function for a standard normal distribution",p:{x:{d:"is the number for which you want the density of the standard normal distribution"}}},"POISSON.DIST":{s:"Returns the Poisson distribution",p:{x:{d:"is the number of events"},mean:{d:"is the expected numeric value, a positive number"},cumulative:{d:"is a logical value: for the cumulative Poisson probability, use TRUE; for the Poisson probability mass function, use FALSE"}}},PROB:{s:"Returns the probability that values in a range are between two limits or equal to a lower limit",p:{xRange:{d:"is the range of numeric values of x with which there are associated probabilities"},probRange:{d:"is the set of probabilities associated with values in X_range, values between 0 and 1 and excluding 0"},lowerLimit:{d:"is the lower bound on the value for which you want a probability"},upperLimit:{d:"is the optional upper bound on the value. If omitted, PROB returns the probability that X_range values are equal to Lower_limit"}}},"QUARTILE.EXC":{s:"Returns the quartile of a data set, based on percentile values from 0..1, exclusive",p:{array:{d:"is the array or cell range of numeric values for which you want the quartile value"},quart:{d:"is a number: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4"}},h:"Unimplemented"},"QUARTILE.INC":{s:"Returns the quartile of a data set, based on percentile values from 0..1, inclusive",p:{array:{d:"is the array or cell range of numeric values for which you want the quartile value"},quart:{d:"is a number: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4"}},h:"Unimplemented"},"RANK.AVG":{s:"Returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the average rank is returned",p:{number:{d:"is the number for which you want to find the rank"},ref:{d:"is an array of, or a reference to, a list of numbers. Nonnumeric values are ignored"},order:{d:"is a number: rank in the list sorted descending = 0; rank in the list sorted ascending = any nonzero value",v:0}},h:"Unimplemented"},"RANK.EQ":{s:"Returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the top rank of that set of values is returned",p:{number:{d:"is the number for which you want to find the rank"},ref:{d:"is an array of, or a reference to, a list of numbers. Nonnumeric values are ignored"},order:{d:"is a number: rank in the list sorted descending = 0; rank in the list sorted ascending = any nonzero value",v:0}},h:"Unimplemented"},RSQ:{s:"Returns the square of the Pearson product moment correlation coefficient through the given data points",p:{knownYs:{d:"is an array or range of data points and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"is an array or range of data points and can be numbers or names, arrays, or references that contain numbers"}},h:"Unimplemented"},SKEW:{s:"Returns the skewness of a distribution: a characterization of the degree of asymmetry of a distribution around its mean",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the skewness"}},h:"Unimplemented"},"SKEW.P":{s:"Returns the skewness of a distribution based on a population: a characterization of the degree of asymmetry of a distribution around its mean",p:{number:{d:"number1,number2,... are 1 to 254 numbers or names, arrays, or references that contain numbers for which you want the population skewness"}},h:"Unimplemented"},SLOPE:{s:"Returns the slope of the linear regression line through the given data points",p:{knownYs:{d:"is an array or cell range of numeric dependent data points and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"iis the set of independent data points and can be numbers or names, arrays, or references that contain numbers"}}},STANDARDIZE:{s:"Returns a normalized value from a distribution characterized by a mean and standard deviation",p:{x:{d:"is the value you want to normalize"},mean:{d:"is the arithmetic mean of the distribution"},standardDev:{d:"is the standard deviation of the distribution, a positive number"}}},"STDEV.P":{s:"Calculates standard deviation based on the entire population given as arguments (ignores logical values and text)",p:{number:{d:"number1,number2,... are 1 to 255 numbers corresponding to a population and can be numbers or references that contain numbers"}},h:"Unimplemented"},"STDEV.S":{s:"Estimates standard deviation based on a sample (ignores logical values and text in the sample)",p:{number:{d:"number1,number2,... are 1 to 255 numbers corresponding to a sample of a population and can be numbers or references that contain numbers"}}},STDEVA:{s:"Estimates standard deviation based on a sample, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 values corresponding to a sample of a population and can be values or names or references to values"}},h:"Unimplemented"},STDEVPA:{s:"Calculates standard deviation based on an entire population, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 values corresponding to a population and can be values, names, arrays, or references that contain values"}},h:"Unimplemented"},STEYX:{s:"Returns the standard error of the predicted y-value for each x in a regression",p:{knownYs:{d:"is an array or range of dependent data points and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"is an array or range of independent data points and can be numbers or names, arrays, or references that contain numbers"}},h:"Unimplemented"},"T.DIST":{s:"Returns the left-tailed Student's t-distribution",p:{x:{d:"is the numeric value at which to evaluate the distribution"},degFreedom:{d:"is an integer indicating the number of degrees of freedom that characterize the distribution"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},"T.DIST.2T":{s:"Returns the two-tailed Student's t-distribution",p:{x:{d:"is the numeric value at which to evaluate the distribution"},degFreedom:{d:"is an integer indicating the number of degrees of freedom that characterize the distribution"}}},"T.DIST.RT":{s:"Returns the right-tailed Student's t-distribution",p:{x:{d:"is the numeric value at which to evaluate the distribution"},degFreedom:{d:"is an integer indicating the number of degrees of freedom that characterize the distribution"}}},"T.INV":{s:"Returns the left-tailed inverse of the Student's t-distribution",p:{probability:{d:"is the probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive"},degFreedom:{d:"is a positive integer indicating the number of degrees of freedom to characterize the distribution"}}},"T.INV.2T":{s:"Returns the two-tailed inverse of the Student's t-distribution",p:{probability:{d:"is the probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive"},degFreedom:{d:"is a positive integer indicating the number of degrees of freedom to characterize the distribution"}}},"T.TEST":{s:"Returns the probability associated with a Student's t-Test",p:{array1:{d:"is the first data set"},array2:{d:"is the second data set"},tails:{d:"specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2"},type:{d:"is the kind of t-test: paired = 1, two-sample equal variance (homoscedastic) = 2, two-sample unequal variance = 3"}},h:"Unimplemented"},TREND:{s:"Returns numbers in a linear trend matching known data points, using the least squares method",p:{knownYs:{d:"is a range or array of y-values you already know in the relationship y = mx + b"},knownXs:{d:"is an optional range or array of x-values that you know in the relationship y = mx + b, an array the same size as Known_y's",v:null},newXs:{d:"is a range or array of new x-values for which you want TREND to return corresponding y-values",v:null},consts:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 0 if Const = FALSE",v:!0}},h:"Unimplemented"},TRIMMEAN:{s:"Returns the mean of the interior portion of a set of data values",p:{array:{d:"is the range or array of values to trim and average"},percent:{d:"is the fractional number of data points to exclude from the top and bottom of the data set"}},h:"Unimplemented"},"VAR.P":{s:"Calculates variance based on the entire population (ignores logical values and text in the population)",p:{number:{d:"number1,number2,... are 1 to 255 numeric arguments corresponding to a population"}}},"VAR.S":{s:"Estimates variance based on a sample (ignores logical values and text in the sample)",p:{number:{d:"number1,number2,... are 1 to 255 numeric arguments corresponding to a sample of a population"}}},VARA:{s:"Estimates variance based on a sample, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 value arguments corresponding to a sample of a population"}}},VARPA:{s:"Calculates variance based on the entire population, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 value arguments corresponding to a population"}}},"WEIBULL.DIST":{s:"Returns the Weibull distribution",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},alpha:{d:"is a parameter to the distribution, a positive number"},beta:{d:"is a parameter to the distribution, a positive number"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}}},"Z.TEST":{s:"Returns the one-tailed P-value of a z-test",p:{array:{d:"is the array or range of data against which to test X"},x:{d:"is the value to test"},sigma:{d:"is the population (known) standard deviation. If omitted, the sample standard deviation is used",v:0}}}};
|