@sheetxl/sdk 0.4.12 → 0.4.14
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/8JuguQ-v_wjzRAJQ.cjs +6 -0
- package/browser/cjs/B06_i0NVsMlV7sL3.cjs +15 -0
- package/browser/cjs/BMzm6e19THp5R5SS.cjs +6 -0
- package/browser/cjs/{Dg4inQb_qTGcwKWj.cjs → BSQ6GwaDgEhp4-Jm.cjs} +3 -4
- package/browser/cjs/BSaEFx_1qH-bqkxA.cjs +32 -0
- package/browser/cjs/BeFLdMQtixEQOMIf.cjs +6 -0
- package/browser/cjs/Bypbx3PA2wZ-MxR7.cjs +1501 -0
- package/browser/cjs/C4rkyi5ne70h0eUM.cjs +13 -0
- package/browser/cjs/CK7GKaY19eDwb72K.cjs +6 -0
- package/browser/cjs/CQtudwvjokdRI8w7.cjs +6 -0
- package/browser/cjs/CZpCJ_mGf8uvTyHs.cjs +6 -0
- package/browser/cjs/CeW7HtHiebPU1ZrI.cjs +6 -0
- package/browser/cjs/CpD5wln4iVlrPfkY.cjs +6 -0
- package/browser/cjs/CxNcIlUbtVSt64Tm.cjs +6 -0
- package/browser/cjs/D0KawW_CBCzUbAwf.cjs +6 -0
- package/browser/cjs/D1hmSqsrlX7CR2o_.cjs +6 -0
- package/browser/cjs/D4c1Sr1XvF3nMs-j.cjs +6 -0
- package/browser/cjs/D6h0MMq-X27_iD6g.cjs +6 -0
- package/browser/cjs/DE3tCi_X6QIZF8tS.cjs +6 -0
- package/browser/cjs/DNRSQjR0UdY_4fl9.cjs +6 -0
- package/browser/cjs/DSUl7vRzR8mV1Myf.cjs +6 -0
- package/browser/cjs/DTAOALsCBhuSuEiG.cjs +6 -0
- package/browser/cjs/DaV0-3D2kIZdcEfA.cjs +6 -0
- package/browser/cjs/DejSF-jvG3xB_8YE.cjs +60 -0
- package/browser/cjs/Depd1YehybNaiyCe.cjs +6 -0
- package/browser/cjs/Dq9JXD1VUC_eXNv8.cjs +7 -0
- package/browser/cjs/DveSU-1M1dKih8ss.cjs +6 -0
- package/browser/cjs/QgxQTHhUBOvKb5Sp.cjs +6 -0
- package/browser/cjs/index.cjs +3 -4
- package/browser/cjs/is67OzV6HSQv8hND.cjs +6 -0
- package/browser/cjs/mD326DVwUY2qz53z.cjs +6 -0
- package/browser/cjs/p9-P5tsRY2aEac88.cjs +124 -0
- package/browser/cjs/rdaInA-ytvORY7dI.cjs +6 -0
- package/browser/cjs/v59Hlj7XX2HjAklI.cjs +6 -0
- package/{node/esm/Ru2U-PXJ-wtFJVIi.mjs → browser/esm/0y8470lJoPLFzYRG.mjs} +1 -1
- package/{node/esm/Cb2A-sSxQbrq7_st.mjs → browser/esm/6ofNyUJ2bff5hQAb.mjs} +1 -1
- package/browser/esm/8jrILMSMxtRYp4Ml.mjs +10 -0
- package/browser/esm/{9jeiH8SVL_ZJYLxo.mjs → B1U-ZkWRkC7EsWhJ.mjs} +7 -2
- package/browser/esm/BaQ-kJ0S48-mIDOB.mjs +10 -0
- package/browser/esm/Bg1s7CT60pr7m6Wv.mjs +24266 -0
- package/browser/esm/BjMYkedmgsLBSeIL.mjs +24 -0
- package/{node/esm/Cl6j-EVdzk8MvmYu.mjs → browser/esm/BwAtcwzMrBFQsJrt.mjs} +1 -1
- package/browser/esm/CA81BqhGVQdWnnU-.mjs +3974 -0
- package/browser/esm/CASK_saDBb0E8-gc.mjs +5651 -0
- package/browser/esm/CEPVn5ObLgMnhFuG.mjs +10 -0
- package/{node/esm/RjYTditNvvkkhvec.mjs → browser/esm/CJSlOHcd-GRplhJb.mjs} +1 -1
- package/browser/esm/CXCFBAK8GNqcf4NZ.mjs +426 -0
- package/browser/esm/CZH9NjmkPt5qOZvo.mjs +10 -0
- package/{node/esm/DqzaLjnlgJ73P6fj.mjs → browser/esm/Co_XNsi04fa0kXfc.mjs} +1 -1
- package/browser/esm/D2d6F8a0L2i5KG9B.mjs +1575 -0
- package/{node/esm/CEBBIejO4nn_eoLE.mjs → browser/esm/D5MCJciGCVt9S3_d.mjs} +1 -1
- package/{node/esm/D-7D30G3TPv5yZHW.mjs → browser/esm/D5m4uOGT4rzpeawH.mjs} +1 -1
- package/browser/esm/D799n_-syMIKHsZB.mjs +21 -0
- package/browser/esm/D7vGd1TA1pYs2r8i.mjs +10 -0
- package/{node/esm/_50UNzbNjsJJ5JeA.mjs → browser/esm/DDcxalm5bxkWR6yr.mjs} +1 -1
- package/{node/esm/Bkj8joA7ej1p4iQv.mjs → browser/esm/DGSd15RAMHKU4TTh.mjs} +1 -1
- package/browser/esm/DML06qJVWAeMmTeF.mjs +29 -0
- package/{node/esm/CEBaRGnJ6Pau61Z3.mjs → browser/esm/Dq1c2fRK8fy1wIZ0.mjs} +1 -1
- package/{node/esm/BJvhZja9zXr81ch6.mjs → browser/esm/Ds3gLJ0AViDNAZBb.mjs} +1 -1
- package/{node/esm/KTvP9pq_hIePsIcs.mjs → browser/esm/Dv-eMLsSU3GgM0IG.mjs} +1 -1
- package/{node/esm/CfSD4cLmkg0FqnhQ.mjs → browser/esm/IF7Bu3bAljYlYAhG.mjs} +1 -1
- package/browser/esm/Ijz2AYZo5041p_E0.mjs +820 -0
- package/{node/esm/DdQQdRO6WRU-o7fW.mjs → browser/esm/_9LudTdmURafvtbM.mjs} +1 -1
- package/{node/esm/DaA9EfLaa4eAL5v5.mjs → browser/esm/c0yMyZrKHAQcuk34.mjs} +1 -1
- package/browser/esm/c8TPaGQuorNwRY5P.mjs +472 -0
- package/browser/esm/flS4x_DXemCnqZYx.mjs +10 -0
- package/browser/esm/index.mjs +84 -2
- package/{node/esm/R6sbyZ3F8U46a2pT.mjs → browser/esm/utnJnW2cCjLr_J5j.mjs} +1 -1
- package/licenses/dependencies.txt +3 -3
- package/node/esm/0y8470lJoPLFzYRG.mjs +10 -0
- package/node/esm/6ofNyUJ2bff5hQAb.mjs +10 -0
- package/node/esm/{C2nQBB-2yJ1qfKsG.mjs → BAJg2qwLifwsMs48.mjs} +1 -1
- package/node/esm/{wYdBXNtyuqNnNqw7.mjs → BVwiUEUE8Kq6Q-Md.mjs} +2 -2
- package/node/esm/{ChgW0mo5gCgLQ4qn.mjs → Be8IGMeEVQrqyIbz.mjs} +1 -1
- package/node/esm/{BQb_TIMVKb4ap8qn.mjs → BkSSbBdHw5fSDT9u.mjs} +1 -1
- package/node/esm/{CSr4e1I9DtTv2w79.mjs → BlMT23s2F34fCyyF.mjs} +1 -1
- package/node/esm/BwAtcwzMrBFQsJrt.mjs +10 -0
- package/node/esm/CJSlOHcd-GRplhJb.mjs +10 -0
- package/node/esm/{BPhIhbwKpbuhJ5n5.mjs → Cg0Rg6HBC4czGxnY.mjs} +1 -1
- package/node/esm/{BnQS3_N8ZEyMLfgn.mjs → Ciz3vgy9vMXs8dGv.mjs} +1 -1
- package/node/esm/{BK_7sJa3fTDIKVsK.mjs → CmZcNpOTEY__HcNE.mjs} +2 -2
- package/node/esm/Co_XNsi04fa0kXfc.mjs +10 -0
- package/node/esm/{Bs1vmYEblngyWvkW.mjs → D-ebNw7-IJtP0UVf.mjs} +1 -1
- package/node/esm/{DPWAK-dKa7BGHzhV.mjs → D1IiK4HwSFrtL98j.mjs} +1 -1
- package/node/esm/D5MCJciGCVt9S3_d.mjs +10 -0
- package/node/esm/D5m4uOGT4rzpeawH.mjs +10 -0
- package/node/esm/DDcxalm5bxkWR6yr.mjs +10 -0
- package/{browser/esm/B-xoX7KIAUytU1_U.mjs → node/esm/DGSd15RAMHKU4TTh.mjs} +5 -2
- package/node/esm/Dbv1kS3xRdworJhn.mjs +80 -0
- package/node/esm/{BW1-l-HQdvRTQ7Bm.mjs → DmYC6rfHbxzRi-xv.mjs} +4 -4
- package/node/esm/Dq1c2fRK8fy1wIZ0.mjs +10 -0
- package/node/esm/Ds3gLJ0AViDNAZBb.mjs +10 -0
- package/node/esm/Dv-eMLsSU3GgM0IG.mjs +10 -0
- package/node/esm/{ebMdiumtVWrujqaH.mjs → Dw228_AFFTiN-qSG.mjs} +1 -1
- package/node/esm/{BtDgmaUXSuZwZauR.mjs → HHRD6y1sXoRYiRM-.mjs} +2 -2
- package/node/esm/IF7Bu3bAljYlYAhG.mjs +10 -0
- package/node/esm/_9LudTdmURafvtbM.mjs +10 -0
- package/node/esm/c0yMyZrKHAQcuk34.mjs +10 -0
- package/node/esm/{Cvzp8bwJnKvjvZSp.mjs → igBKvoiyyirwpnsa.mjs} +1 -1
- package/node/esm/index.mjs +3449 -3202
- package/node/esm/utnJnW2cCjLr_J5j.mjs +10 -0
- package/package.json +4 -4
- package/browser/cjs/39ybckEYrSwofEL8.cjs +0 -7
- package/browser/cjs/7F9Y23ZviM83MrLB.cjs +0 -7
- package/browser/cjs/9OWmR6t6tmtR3HKs.cjs +0 -7
- package/browser/cjs/AoftwE84s7sGV4YJ.cjs +0 -7
- package/browser/cjs/BJZM9I81r8nRPehZ.cjs +0 -7
- package/browser/cjs/BLHJddfDq44WHNs6.cjs +0 -7
- package/browser/cjs/BdbcopQNFs0VAYoZ.cjs +0 -7
- package/browser/cjs/C2McR1ZSNpfPMaI1.cjs +0 -7
- package/browser/cjs/CAC1euA3bA1IpMhZ.cjs +0 -7
- package/browser/cjs/CDwPpmyZAYF_aBaX.cjs +0 -7
- package/browser/cjs/CP2yuwDM2Fzm2bQy.cjs +0 -7
- package/browser/cjs/CSn-hMrEUwFcYpBT.cjs +0 -13
- package/browser/cjs/CeuXJMoeKjSnby5j.cjs +0 -7
- package/browser/cjs/Ch5W6IQIqcVy3CUV.cjs +0 -10
- package/browser/cjs/CtaH9jllSQmzD2AZ.cjs +0 -7
- package/browser/cjs/Ctw9E_2VE0l2P6Yk.cjs +0 -7
- package/browser/cjs/Czl-z-_3jRiufzFq.cjs +0 -7
- package/browser/cjs/D-HLMUqMDuHV5fFD.cjs +0 -7
- package/browser/cjs/D5pK8FbUHJmgHMVR.cjs +0 -7
- package/browser/cjs/DA7BmT8kgTnFcBps.cjs +0 -7
- package/browser/cjs/DBBaD9qGTCHmDZzt.cjs +0 -7
- package/browser/cjs/DD24B_zQQtT3iqLe.cjs +0 -7
- package/browser/cjs/DKwnqzohEhfP9-D8.cjs +0 -7
- package/browser/cjs/DO-igV-beWuURc9q.cjs +0 -7
- package/browser/cjs/DR2yNdWmKOx4XEn_.cjs +0 -7
- package/browser/cjs/D_PNelhiuhC_pYQe.cjs +0 -7
- package/browser/cjs/KlMBkdsOI1TbINZi.cjs +0 -7
- package/browser/cjs/Me1cXPMFZnMqu9Ni.cjs +0 -10
- package/browser/cjs/P1V-5yUNwU9r5yLw.cjs +0 -7
- package/browser/cjs/Vkjfeba56sx1eWi0.cjs +0 -7
- package/browser/cjs/dwUVhGNDSgZfRm3P.cjs +0 -7
- package/browser/cjs/txLIAZHRWIU9kf0I.cjs +0 -7
- package/browser/esm/30SRICLt1PAxlGS8.mjs +0 -7
- package/browser/esm/B_bzVKesE_JRp6EW.mjs +0 -7
- package/browser/esm/BbO1W_XgpJnqTSty.mjs +0 -7
- package/browser/esm/BngRU84kl6oeKeYG.mjs +0 -7
- package/browser/esm/BuJVzVii6s-ETLFo.mjs +0 -7
- package/browser/esm/ByHA0yF73W3Lubv1.mjs +0 -13
- package/browser/esm/C9XmeyBj3CidGuuQ.mjs +0 -7
- package/browser/esm/CGlSMtRCaIAn2kcK.mjs +0 -7
- package/browser/esm/CNZEHpuUipSLJnir.mjs +0 -7
- package/browser/esm/CUDgLpRqpHPjfaCi.mjs +0 -7
- package/browser/esm/ChB6ZgoNr49oUuh9.mjs +0 -7
- package/browser/esm/D0HYMuygnYvY7Atx.mjs +0 -7
- package/browser/esm/D1PWaFTHEZfGGXTb.mjs +0 -7
- package/browser/esm/D2zmZcBdOoyixeUA.mjs +0 -7
- package/browser/esm/D525g_2eyexUf3Zf.mjs +0 -7
- package/browser/esm/DMJw8DmfeX6u2glN.mjs +0 -7
- package/browser/esm/DfHQEyIlLlv5P49Q.mjs +0 -7
- package/browser/esm/Dhvtq8jHg8BxOR0C.mjs +0 -7
- package/browser/esm/DkPPc6PpShDjAHJV.mjs +0 -7
- package/browser/esm/DqEqprkW8poZvfjh.mjs +0 -7
- package/browser/esm/DtSj65a0yyYL8HUw.mjs +0 -7
- package/browser/esm/Dw0Okzcg5hIcHUcc.mjs +0 -7
- package/browser/esm/Dzo7yK5H2NRkocTa.mjs +0 -7
- package/browser/esm/G_2bOLOa20d7iobX.mjs +0 -7
- package/browser/esm/MRXgg6FvbB08Ze4M.mjs +0 -7
- package/browser/esm/SePiM6uWrcY09dym.mjs +0 -7
- package/browser/esm/eCZnrKI7SxPgdErZ.mjs +0 -7
- package/browser/esm/nE8H93zlwoi3F8Ii.mjs +0 -10
- package/browser/esm/ui3SG2ZyuCKIR0An.mjs +0 -7
- package/browser/esm/vk7TdrD0zPqtT8_n.mjs +0 -7
- package/browser/esm/yM_d2jrPPN_EupI0.mjs +0 -10
- package/node/esm/CWUmgm7_b5VypIPN.mjs +0 -80
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.14
|
|
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={ACCRINT:{p:{issue:{d:"is the security's issue date, expressed as a serial date number"},firstInterest:{d:"is the security's first interest date, expressed as a serial date number"},settlement:{d:"is the security's settlement date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0},calcMethod:{d:"is a logical value: to accrued interest from issue date = TRUE; to calculate from last coupon payment date = FALSE",v:!0}}},ACCRINTM:{s:"Returns the accrued interest for a security that pays interest at maturity",p:{issue:{d:"is the security's issue date, expressed as a serial date number"},settlement:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},AMORLINC:{s:"Returns the prorated linear depreciation of an asset for each accounting period.",p:{cost:{d:"is the cost of the asset"},datePurchased:{d:"is the date the asset is purchased"},firstPeriod:{d:"is the date of the end of the first period"},salvarge:{d:"is the salvage value at the end of life of the asset."},period:{d:"is the period"},rate:{d:"is the rate of depreciation"},basis:{d:"year_basis : 0 for year of 360 days, 1 for actual, 3 for year of 365 days.",v:0}},h:"Unimplemented"},COUPDAYBS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPDAYS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}}},COUPNCD:{s:"Returns the next coupon date after the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPNUM:{s:"Returns the number of coupons payable between the settlement date and maturity date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPPCD:{s:"Returns the previous coupon date before the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},CUMIPMT:{s:"Returns the cumulative interest paid between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},CUMPRINC:{s:"Returns the cumulative principal paid on a loan between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},DB:{s:"Returns the depreciation of an asset for a specified period using the fixed-declining balance method",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},month:{d:"is the number of months in the first year",v:12}}},DDB:{s:"Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},factor:{d:"is the rate at which the balance declines",v:2}}},DISC:{s:"Returns the discount rate for a security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}}},DOLLARDE:{s:"Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number",p:{fractionalDollar:{d:"is a number expressed as a fraction"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DOLLARFR:{s:"Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction",p:{decimalDollar:{d:"is a decimal number"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DURATION:{s:"Returns the annual duration of a security with periodic interest payments",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},EFFECT:{s:"Returns the effective annual interest rate",p:{nominalRate:{d:"is the nominal interest rate"},npery:{d:"is the number of compounding periods per year"}}},FV:{s:"Returns the future value of an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value of the investment",v:0},type:{d:"Indicates when pmts are due.",v:0}}},FVSCHEDULE:{s:"Returns the future value of an initial principal after applying a series of compound interest rates",p:{principal:{d:"is the present value"},schedule:{d:"is an array of interest rates to apply"}}},INTRATE:{s:"Returns the interest rate for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},IPMT:{s:"Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},per:{d:"is the period for which you want to find the interest and must be in the range 1 to Nper"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value representing the timing of payment: at the end of the period = 0, at the beginning of the period = 1",v:0}}},IRR:{s:"Returns the internal rate of return for a series of cash flows",p:{values:{d:"is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return"},guess:{d:"is a number that you guess is close to the result of IRR",v:.1}},h:"Unimplemented"},ISPMT:{s:"Returns the interest paid during a specific period of an investment",p:{rate:{d:"is the interest rate"},per:{d:"period for which you want to find the interest"},nper:{d:"number of payment periods in an investment"},pv:{d:"lump sum amount that a series of future payments is right now"}}},MDURATION:{s:"Returns the Macauley modified duration for a security with an assumed par value of $100",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},MIRR:{s:"Returns the internal rate of return for a series of periodic cash flows, considering both cost of investment and interest on reinvestment of cash",p:{values:{d:"is an array or a reference to cells that contain numbers that represent a series of payments (negative) and income (positive) at regular periods"},financeRate:{d:"is the interest rate you pay on the money used in the cash flows"},reinvestRate:{d:"is the interest rate you receive on the cash flows as you reinvest them"}}},NOMINAL:{s:"Returns the annual nominal interest rate",p:{effectiveRate:{d:"is the effective interest rate"},npery:{d:"is the number of compounding periods per year@param npery"}}},NPER:{s:"Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value, or the lump-sum amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},NPV:{s:"Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values)",p:{rate:{d:"is the rate of discount over the length of one period"},value:{d:"value1,value2,... are 1 to 254 payments and income, equally spaced in time and occurring at the end of each period"}}},ODDFPRICE:{s:"Returns the price per $100 face value of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDFYIELD:{s:"Returns the yield of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLPRICE:{s:"Returns the price per $100 face value of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLYIELD:{s:"Returns the yield of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PDURATION:{s:"Returns the number of periods required by an investment to reach a specified value",p:{rate:{d:"is the interest rate"},pv:{d:"is the present value of the investment"},fv:{d:"is the desired future value of the investment"}}},PMT:{s:"Calculates the payment for a loan based on constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},PRICE:{s:"Returns the price per $100 face value of a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PRICEDISC:{s:"Returns the price per $100 face value of a discounted security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},discount:{d:"is the security's discount rate"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:0}}},PRICEMAT:{s:"Returns the price per $100 face value of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PV:{s:"Returns the present value of an investment: the total amount that a series of future payments is worth now",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods in an investment"},pmt:{d:"is the payment made each period and cannot change over the life of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},RATE:{s:"Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR",p:{nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period and cannot change over the life of the loan or investment"},pv:{d:"is the present value: the total amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0},guess:{d:"is your guess for what the rate will be",v:.1}}},RECEIVED:{s:"Returns the amount received at maturity for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},discount:{d:"is the security's discount rate"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},RRI:{s:"Returns an equivalent interest rate for the growth of an investment",p:{nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value of the investment"}}},SLN:{s:"Returns the straight-line depreciation of an asset for one period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"}}},STOCKHISTORY:{s:"Returns an array of historical quote data for a symbol and date range you specify.",p:{stock:{d:"Symbol of financial instrument to be considered or a Stock data type."},startDate:{d:"First date to return data from."},endDate:{d:"Last date to return data from."},interval:{d:"A number indicating the granularity of the data; 0 - Daily, 1 - Weekly, 2 - Monthly",v:0},headers:{d:"A logical value to add column header data; 0 - No column header, 1 - Show column header, 2 - Show instrument identifier and column header",v:1},properties:{d:"properties1,properties2,... A number indicating which column of data to return; 0 through 5",v:"[0, 1, 2, 3, 4]"}},h:"Unimplemented"},SYD:{s:"Returns the sum-of-years' digits depreciation of an asset for a specified period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},per:{d:"is the period and must use the same units as Life"}}},TBILLEQ:{s:"Returns the bond-equivalent yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLPRICE:{s:"Returns the price per $100 face value for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLYIELD:{s:"Returns the yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},pr:{d:"is the Treasury Bill's price per $100 face value"}}},VDB:{s:"Returns the depreciation of an asset for any period you specify, including partial periods, using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},factor:{d:"is the rate at which the balance declines",v:2},noSwitch:{d:"switch to straight-line depreciation when depreciation is greater than the declining balance = FALSE; do not switch = TRUE",v:!1}},h:"Unimplemented"},XIRR:{s:"Returns the internal rate of return for a schedule of cash flows",p:{values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"},guess:{d:"is a number that you guess is close to the result of XIRR",v:.1}},h:"Unimplemented"},XNPV:{s:"Returns the net present value for a schedule of cash flows",p:{rate:{d:"is the discount rate to apply to the cash flows"},values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"}}},YIELD:{s:"Returns the yield on a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDDISC:{s:"Returns the annual yield for a discounted security. For example, a treasury bill",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDMAT:{s:"Returns the annual yield of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"}};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.14
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/const yt=require("./DejSF-jvG3xB_8YE.cjs");function kt(Y,H){for(var k=0;k<H.length;k++){const P=H[k];if(typeof P!="string"&&!Array.isArray(P)){for(const N in P)if(N!=="default"&&!(N in Y)){const Q=Object.getOwnPropertyDescriptor(P,N);Q&&Object.defineProperty(Y,N,Q.get?Q:{enumerable:!0,get:()=>P[N]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=function Y(){var H,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,N=k.IS_PAPA_WORKER||!1,Q={},mt=0,o={};function B(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 c=this._config.newline;c||(r=this._config.quoteChar||'"',c=this._handle.guessLineEndings(e,r)),e=[...e.split(c).slice(n)].join(c)}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,N)k.postMessage({results:r,workerId:o.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):N&&this._config.error&&k.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=o.RemoteChunkSize),B.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=J(this._chunkLoaded,this),e.onerror=J(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(c){this._chunkError(c.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){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=i.getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1)(e),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=o.LocalChunkSize),B.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=J(this._chunkLoaded,this),e.onerror=J(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,c=(this._config.chunkSize&&(c=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,c)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:c}})},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;B.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){B.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){B.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){B.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=J(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(c){this._streamError(c)}},this),this._streamError=J(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=J(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=J(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,c=Math.pow(2,53),R=-c,I=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,z=/^((\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)))$/,p=this,E=0,a=0,F=!1,u=!1,g=[],s={data:[],errors:[],meta:{}};function O(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function C(){if(s&&n&&(M("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(l){return!O(l)})),T()){let l=function(S,L){_(t.transformHeader)&&(S=t.transformHeader(S,L)),g.push(S)};if(s)if(Array.isArray(s.data[0])){for(var h=0;T()&&h<s.data.length;h++)s.data[h].forEach(l);s.data.splice(0,1)}else s.data.forEach(l)}function d(l,S){for(var L=t.header?{}:[],b=0;b<l.length;b++){var y=b,m=l[b];m=((U,f)=>(v=>(t.dynamicTypingFunction&&t.dynamicTyping[v]===void 0&&(t.dynamicTyping[v]=t.dynamicTypingFunction(v)),(t.dynamicTyping[v]||t.dynamicTyping)===!0))(U)?f==="true"||f==="TRUE"||f!=="false"&&f!=="FALSE"&&((v=>{if(I.test(v)&&(v=parseFloat(v),R<v&&v<c))return 1})(f)?parseFloat(f):z.test(f)?new Date(f):f===""?null:f):f)(y=t.header?b>=g.length?"__parsed_extra":g[b]:y,m=t.transform?t.transform(m,y):m),y==="__parsed_extra"?(L[y]=L[y]||[],L[y].push(m)):L[y]=m}return t.header&&(b>g.length?M("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+b,a+S):b<g.length&&M("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+b,a+S)),L}var w;s&&(t.header||t.dynamicTyping||t.transform)&&(w=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(d),w=s.data.length):s.data=d(s.data,0),t.header&&s.meta&&(s.meta.fields=g),a+=w)}function T(){return t.header&&g.length===0}function M(h,d,w,l){h={type:h,code:d,message:w},l!==void 0&&(h.row=l),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,T()?C():(C(),s.data.length!==0&&(E+=h.data.length,t.preview&&E>t.preview?i.abort():(s.data=s.data[0],r(s,p))))}),this.parse=function(h,d,w){var l=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,l)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((l=((S,L,b,y,m)=>{var U,f,v,$;m=m||[","," ","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var Z=0;Z<m.length;Z++){for(var K,tt=m[Z],A=0,D=0,x=0,j=(v=void 0,new st({comments:y,delimiter:tt,newline:L,preview:10}).parse(S)),W=0;W<j.data.length;W++)b&&O(j.data[W])?x++:(D+=K=j.data[W].length,v===void 0?v=K:0<K&&(A+=Math.abs(K-v),v=K));0<j.data.length&&(D/=j.data.length-x),(f===void 0||A<=f)&&($===void 0||$<D)&&1.99<D&&(f=A,U=tt,$=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=l.bestDelimiter:(n=!0,t.delimiter=o.DefaultDelimiter),s.meta.delimiter=t.delimiter),l=at(t),t.preview&&t.header&&l.preview++,e=h,i=new st(l),s=i.parse(e,d,w),C(),F?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return F},this.pause=function(){F=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){p.streamer._halted?(F=!1,p.streamer.parseChunk(e,!0)):setTimeout(p.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,d){h=h.substring(0,1048576),d=new RegExp(V(d)+"([^]*?)"+V(d),"gm");var w=(h=h.replace(d,"")).split("\r");if(h=1<(d=h.split(`
|
|
7
|
+
`)).length&&d[0].length<w[0].length,w.length===1||h)return`
|
|
8
|
+
`;for(var l=0,S=0;S<w.length;S++)w[S][0]===`
|
|
9
|
+
`&&l++;return l>=w.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,c=t.preview,R=t.fastMode,I=null,z=!1,p=t.quoteChar==null?'"':t.quoteChar,E=p;if(t.escapeChar!==void 0&&(E=t.escapeChar),(typeof e!="string"||-1<o.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<o.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
|
|
11
|
+
`&&i!=="\r"&&i!==`\r
|
|
12
|
+
`&&(i=`
|
|
13
|
+
`);var a=0,F=!1;this.parse=function(u,g,s){if(typeof u!="string")throw new Error("Input must be a string");var O=u.length,C=e.length,T=i.length,M=n.length,h=_(r),d=[],w=[],l=[],S=a=0;if(!u)return A();if(R||R!==!1&&u.indexOf(p)===-1){for(var L=u.split(i),b=0;b<L.length;b++){if(l=L[b],a+=l.length,b!==L.length-1)a+=i.length;else if(s)return A();if(!n||l.substring(0,M)!==n){if(h){if(d=[],$(l.split(e)),D(),F)return A()}else $(l.split(e));if(c&&c<=b)return d=d.slice(0,c),A(!0)}}return A()}for(var y=u.indexOf(e,a),m=u.indexOf(i,a),U=new RegExp(V(E)+V(p),"g"),f=u.indexOf(p,a);;)if(u[a]===p)for(f=a,a++;;){if((f=u.indexOf(p,f+1))===-1)return s||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:d.length,index:a}),K();if(f===O-1)return K(u.substring(a,f).replace(U,p));if(p===E&&u[f+1]===E)f++;else if(p===E||f===0||u[f-1]!==E){y!==-1&&y<f+1&&(y=u.indexOf(e,f+1));var v=Z((m=m!==-1&&m<f+1?u.indexOf(i,f+1):m)===-1?y:Math.min(y,m));if(u.substr(f+1+v,C)===e){l.push(u.substring(a,f).replace(U,p)),u[a=f+1+v+C]!==p&&(f=u.indexOf(p,a)),y=u.indexOf(e,a),m=u.indexOf(i,a);break}if(v=Z(m),u.substring(f+1+v,f+1+v+T)===i){if(l.push(u.substring(a,f).replace(U,p)),tt(f+1+v+T),y=u.indexOf(e,a),f=u.indexOf(p,a),h&&(D(),F))return A();if(c&&d.length>=c)return A(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:d.length,index:a}),f++}}else if(n&&l.length===0&&u.substring(a,a+M)===n){if(m===-1)return A();a=m+T,m=u.indexOf(i,a),y=u.indexOf(e,a)}else if(y!==-1&&(y<m||m===-1))l.push(u.substring(a,y)),a=y+C,y=u.indexOf(e,a);else{if(m===-1)break;if(l.push(u.substring(a,m)),tt(m+T),h&&(D(),F))return A();if(c&&d.length>=c)return A(!0)}return K();function $(x){d.push(x),S=a}function Z(x){var j=0;return x!==-1&&(x=u.substring(f+1,x))&&x.trim()===""?x.length:j}function K(x){return s||(x===void 0&&(x=u.substring(a)),l.push(x),a=O,$(l),h&&D()),A()}function tt(x){a=x,$(l),l=[],m=u.indexOf(i,a)}function A(x){if(t.header&&!g&&d.length&&!z){var j=d[0],W=Object.create(null),ot=new Set(j);let lt=!1;for(let G=0;G<j.length;G++){let q=j[G];if(W[q=_(t.transformHeader)?t.transformHeader(q,G):q]){let et,dt=W[q];for(;et=q+"_"+dt,dt++,ot.has(et););ot.add(et),j[G]=et,W[q]++,lt=!0,(I=I===null?{}:I)[et]=q}else W[q]=1,j[G]=q;ot.add(q)}lt&&console.warn("Duplicate headers found and renamed."),z=!0}return{data:d,errors:w,meta:{delimiter:e,linebreak:i,aborted:F,truncated:!!x,cursor:S+(g||0),renamedHeaders:I}}}function D(){r(A()),d=[],w=[]}},this.abort=function(){F=!0},this.getCharIndex=function(){return a}}function _t(t){var e=t.data,i=Q[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:ft,resume:ft};if(_(i.userStep)){for(var c=0;c<e.results.data.length&&(i.userStep({data:e.results.data[c],errors:e.results.errors,meta:e.results.meta},r),!n);c++);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=Q[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete Q[t]}function ft(){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 J(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return o.parse=function(t,e){var i=(e=e||{}).dynamicTyping||!1;if(_(i)&&(e.dynamicTypingFunction=i,i={}),e.dynamicTyping=i,e.transform=!!_(e.transform)&&e.transform,!e.worker||!o.WORKERS_SUPPORTED)return i=null,o.NODE_STREAM_INPUT,typeof t=="string"?(t=(n=>n.charCodeAt(0)!==65279?n:n.slice(1))(t),i=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?i=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(i=new rt(e)),i.stream(t);(i=(()=>{var n;return!!o.WORKERS_SUPPORTED&&(n=(()=>{var r=k.URL||k.webkitURL||null,c=Y.toString();return o.BLOB_URL||(o.BLOB_URL=r.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; ","(",c,")();"],{type:"text/javascript"})))})(),(n=new k.Worker(n)).onmessage=_t,n.id=mt++,Q[n.id]=n)})()).userStep=e.step,i.userChunk=e.chunk,i.userComplete=e.complete,i.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,i.postMessage({input:t,config:e,workerId:i.id})},o.unparse=function(t,e){var i=!1,n=!0,r=",",c=`\r
|
|
14
|
+
`,R='"',I=R+R,z=!1,p=null,E=!1,a=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||o.BAD_DELIMITERS.filter(function(g){return e.delimiter.indexOf(g)!==-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"||(z=e.skipEmptyLines),typeof e.newline=="string"&&(c=e.newline),typeof e.quoteChar=="string"&&(R=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");p=e.columns}e.escapeChar!==void 0&&(I=e.escapeChar+R),e.escapeFormulae instanceof RegExp?E=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(E=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(R),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return F(null,t,z);if(typeof t[0]=="object")return F(p||Object.keys(t[0]),t,z)}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||p),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])),F(t.fields||[],t.data||[],z);throw new Error("Unable to serialize unrecognized input");function F(g,s,O){var C="",T=(typeof g=="string"&&(g=JSON.parse(g)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(g)&&0<g.length),M=!Array.isArray(s[0]);if(T&&n){for(var h=0;h<g.length;h++)0<h&&(C+=r),C+=u(g[h],h);0<s.length&&(C+=c)}for(var d=0;d<s.length;d++){var w=(T?g:s[d]).length,l=!1,S=T?Object.keys(s[d]).length===0:s[d].length===0;if(O&&!T&&(l=O==="greedy"?s[d].join("").trim()==="":s[d].length===1&&s[d][0].length===0),O==="greedy"&&T){for(var L=[],b=0;b<w;b++){var y=M?g[b]:b;L.push(s[d][y])}l=L.join("").trim()===""}if(!l){for(var m=0;m<w;m++){0<m&&!S&&(C+=r);var U=T&&M?g[m]:m;C+=u(s[d][U],m)}d<s.length-1&&(!O||0<w&&!S)&&(C+=c)}}return C}function u(g,s){var O,C;return g==null?"":g.constructor===Date?JSON.stringify(g).slice(1,25):(C=!1,E&&typeof g=="string"&&E.test(g)&&(g="'"+g,C=!0),O=g.toString().replace(a,I),(C=C||i===!0||typeof i=="function"&&i(g,s)||Array.isArray(i)&&i[s]||((T,M)=>{for(var h=0;h<M.length;h++)if(-1<T.indexOf(M[h]))return!0;return!1})(O,o.BAD_DELIMITERS)||-1<O.indexOf(r)||O.charAt(0)===" "||O.charAt(O.length-1)===" ")?R+O+R:O)}},o.RECORD_SEP="",o.UNIT_SEP="",o.BYTE_ORDER_MARK="\uFEFF",o.BAD_DELIMITERS=["\r",`
|
|
15
|
+
`,'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!P&&!!k.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=st,o.ParserHandle=ht,o.NetworkStreamer=it,o.FileStreamer=rt,o.StringStreamer=X,o.ReadableStreamStreamer=nt,k.jQuery&&((H=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(c){if(H(this).prop("tagName").toUpperCase()!=="INPUT"||H(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var R=0;R<this.files.length;R++)i.push({file:this.files[R],inputElem:this,instanceConfig:H.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var c,R,I,z,p=i[0];if(_(t.before)){var E=t.before(p.file,p.inputElem);if(typeof E=="object"){if(E.action==="abort")return c="AbortError",R=p.file,I=p.inputElem,z=E.reason,void(_(t.error)&&t.error({name:c},R,I,z));if(E.action==="skip")return void r();typeof E.config=="object"&&(p.instanceConfig=H.extend(p.instanceConfig,E.config))}else if(E==="skip")return void r()}var a=p.instanceConfig.complete;p.instanceConfig.complete=function(F){_(a)&&a(F,p.file,p.inputElem),r()},o.parse(p.file,p.instanceConfig)}}function r(){i.splice(0,1),n()}}),N&&(k.onmessage=function(t){t=t.data,o.WORKER_ID===void 0&&t&&(o.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:o.WORKER_ID,results:o.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=o.parse(t.input,t.config))&&k.postMessage({workerId:o.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(B.prototype)).constructor=it,(rt.prototype=Object.create(B.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(B.prototype)).constructor=nt,o}()),pt.exports);const bt=kt({__proto__:null,default:yt.getDefaultExportFromCjs(gt)},[gt]);exports.papaparse_min=bt;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.14
|
|
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={ERF:{s:"Returns the error function",p:{lowerLimit:{d:"is the lower bound for integrating ERF"},upperLimit:{d:"is the upper bound for integrating ERF",v:0}}},"ERF.PRECISE":{s:"Returns the error function",p:{x:{d:"is the lower bound for integrating ERF.PRECISE"}}},ERFC:{s:"Returns the complementary error function",p:{x:{d:"is the lower bound for integrating ERF"}}}};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.14
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.getCrypto=async function(){return window.crypto};
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.getCrypto=async function(){return window.crypto};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.14
|
|
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 he=require("./C4rkyi5ne70h0eUM.cjs");var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
|
|
7
|
+
interface FirstTest {
|
|
8
|
+
isTrue?: boolean;
|
|
9
|
+
}
|
|
10
|
+
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./QgxQTHhUBOvKb5Sp.cjs"))).initialize()}catch(e){throw W=null,e}finally{W=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const k=(e.disableBundle||e.declarationsOnly)??!1,x=[Ce(),ke()],j=await Promise.all(x),X=j[0],s=j[1];let K="",M=null;const U=[],Y={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},z="script",O=`${z}.ts`,G="lib.d.ts",_="global.d.ts",F={[O]:a,[G]:`
|
|
11
|
+
/**
|
|
12
|
+
* Represents the completion of an asynchronous operation
|
|
13
|
+
*/
|
|
14
|
+
interface Promise<T> {
|
|
15
|
+
/**
|
|
16
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
17
|
+
* resolved value cannot be modified from the callback.
|
|
18
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
19
|
+
* @returns A Promise for the completion of the callback.
|
|
20
|
+
*/
|
|
21
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
22
|
+
}
|
|
23
|
+
`,[_]:X},Q={getSourceFile:(t,d,E,l)=>s.createSourceFile(t,F[t],s.ScriptTarget.Latest,!0),fileExists:t=>F[t]!==void 0,readFile:t=>F[t],writeFile:(t,d)=>{F[t]=d},getCurrentDirectory:()=>"./",getCanonicalFileName:t=>t,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:t=>G,getNewLine:()=>`
|
|
24
|
+
`},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$t.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./v59Hlj7XX2HjAklI.cjs"));return A=await o(),g(),A}catch(o){throw console.error("Failed to import or initialize esbuild:",o),H=null,m(o),o}}(),N="@sheetxl/primitives",T=`
|
|
25
|
+
export const FormulaContext = globalThis.${l}?.FormulaContext;
|
|
26
|
+
export const ScalarType = globalThis.${l}?.ScalarType;
|
|
27
|
+
export const Observable = globalThis.${l}?.Observable;
|
|
28
|
+
export const IRange = globalThis.${l}?.IRange;
|
|
29
|
+
export const FormulaError = globalThis.${l}?.FormulaError;
|
|
30
|
+
// Add more exports as needed
|
|
31
|
+
`,L={name:"sheetxl-esbuild-in-memory",setup(g){const m="sheetxl-"+new Date().getTime();g.onResolve({filter:new RegExp(`^(${E.replace("/","\\/")}|${N})$`)},o=>({path:o.path,namespace:m})),g.onResolve({filter:/.*/},o=>{if(o.namespace!==m)return console.warn(`esbuild: Treating import "${o.path}" as external.`),{path:o.path,external:!0}}),g.onLoad({filter:/.*/,namespace:m},o=>{let h;if(o.path===E)h=d;else{if(o.path!==N)return{errors:[{text:`Cannot load unknown path in ${m}: ${o.path}`}]};h=T}return{contents:h,loader:"ts"}})}},b=await c.build({entryPoints:[E],bundle:!0,write:!1,format:"esm",plugins:[L],sourcemap:"inline",tsconfigRaw:we,minify:!0,platform:"neutral"});if(b.outputFiles&&b.outputFiles.length>0)return b.outputFiles[0].text;throw b.errors&&b.errors.length>0?new Error(`esbuild bundling failed: ${b.errors.map(g=>g.text).join(`
|
|
32
|
+
`)}`):new Error("esbuild did not produce an output file.")}catch(c){throw console.error("esbuild bundling process failed:",c),c}}(0,K,z))}catch{console.warn("Error bundling script")}const re={functions:U,commitId:q,source:a,name:"Script",language:"typescript",compiled:K};return M&&(re.autoRun=M),re};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.14
|
|
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={ASC:{s:"Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},ARRAYTOTEXT:{s:"Returns a text representation of an array",p:{array:{d:"the array to represent as text"},format:{d:"0 for relaxed format, 1 for strict format",v:0}}},CHAR:{s:"Returns the character specified by the code number from the character set for your computer",p:{number:{d:"is a number between 1 and 255 specifying which character you want"}}},CLEAN:{s:"Removes all nonprintable characters from text",p:{text:{d:"is the text you want to clean"}}},CODE:{s:"Returns the Unicode value of the first character in a text string",p:{text:{d:"is the text string whose Unicode value you want"}}},CONCAT:{s:"Concatenates a list or range of text strings",p:{text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},CONCATENATE:{s:"Joins several text strings into one text string",p:{text:{d:"text1, text2,... are 1 to 252 text strings or ranges to be joined"}},c:"Compatibility"},DETECTLANGUAGE:{s:"Detects the language of a given text.",p:{text:{d:"is the text to detect the language of"}},h:"Unimplemented"},DBCS:{s:"Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},DOLLAR:{s:"Converts a number to text in currency format",p:{number:{d:"is the number to convert"},decimals:{d:"is the number of digits to the right of the decimal point",v:2}}},EXACT:{s:"Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive",p:{text1:{d:"is the first text string"},text2:{d:"is the second text string"}}},FIND:{s:"Returns the starting position of one text string within another text string. FIND is case-sensitive",p:{findText:{d:"Returns the starting position of one text string within another text string. FIND is case-sensitive"},withinText:{d:"is the text you want to search"},startNum:{d:"specifies the character at which to start the search. The first character in Within_text is character number 1",v:1}}},FINDB:{s:"Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.",p:{findText:{d:"is the text you want to find"},withinText:{d:"is the text you want to search"},startNum:{d:"is the position in within_text to start searching",v:1}},h:"DBCS"},FIXED:{s:"Rounds a number to the specified number of decimals and returns the result as text with or without commas",p:{number:{d:"is the number you want to round and convert to text"},decimals:{d:"is the number of digits to the right of the decimal point",v:2},noCommas:{d:"is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE",v:!1}}},LEFT:{s:"Returns the specified number of characters from the start of a text string",p:{text:{d:"is the text string from which you want to extract characters"},numChars:{d:"specifies how many characters you want LEFT to extract",v:1}}},LEFTB:{s:"Returns the leftmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}},h:"DBCS"},LEN:{s:"Returns the number of characters in a text string",p:{text:{d:"is the text whose length you want to find. Spaces count as characters"}}},LENB:{s:"Returns the number of bytes in a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"}}},LOWER:{s:"Converts all letters in a text string to lowercase",p:{text:{d:"is the text you want to convert to lowercase. Characters in Text that are not letters are not changed"}}},MID:{s:"Returns the characters from the middle of a text string, given a starting position and length",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numChars:{d:"specifies how many characters to return from Text"}}},MIDB:{s:"Returns characters from the middle of a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numBytes:{d:"is the number of bytes to extract"}},h:"DBCS"},NUMBERVALUE:{s:"Converts text to number in a locale-independent manner",p:{text:{d:"is the text string you want to convert"},decimalSeparator:{d:"is the character that separates the integer part from the decimal part of the number",v:"."},groupSeparator:{d:"is the character that separates groups of thousands",v:","}}},PERCENTOF:{s:"Returns the percentage of a subset of a given data set",p:{dataSubset:{d:"is the subset"},dataAll:{d:"is the data set"}},h:"Unimplemented"},PHONETIC:{s:"Returns the phonetic spelling of a text string",p:{reference:{d:"Text string or a reference to a single cell or a range of cells that contain a furigana text string"}},h:"Unimplemented"},PROPER:{s:"Converts the first letter of each word in a text string to uppercase",p:{text:{d:"is the text string you want to convert"}}},REGEXEXTRACT:{s:"Extracts substrings of 'text' based on the provided REGEX 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},returnMode:{d:"Specify which matches to return",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXREPLACE:{s:"Returns 'text', with 'replacement' in place of matches with 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},replacement:{d:"The replacement string"},occurrence:{d:"The occurrence of the match to replace",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXTEST:{s:"Checks whether the input matches the pattern, and returns TRUE or FALSE",p:{text:{d:"is the text string to be checked"},pattern:{d:"is the regular expression to be applied"},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REPLACE:{s:"Replaces part of a text string with a different text string",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numChars:{d:"is the number of characters to replace"},newText:{d:"is the text string that will replace old_text"}}},REPLACEB:{s:"Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numBytes:{d:"is the number of bytes to replace"},newText:{d:"is the text string that will replace old_text"}},h:"DBCS"},REPT:{s:"Repeats text a given number of times",p:{text:{d:"is the text you want to repeat"},numberTimes:{d:"is the number of times you want to repeat text"}}},RIGHT:{s:"Returns the specified number of characters from the end of a text string",p:{text:{d:"is the text string that contains the characters you want to extract"},numChars:{d:"specifies how many characters you want to extract",v:1}}},RIGHTB:{s:"Returns the rightmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}}},SEARCH:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startNum:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}}},SEARCHB:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startBytes:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}},h:"DBCS"},SUBSTITUTE:{s:"Replaces existing text with new text in a text string",p:{text:{d:"is the text or the reference to a cell containing text in which you want to substitute characters"},oldText:{d:"is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text"},newText:{d:"is the text you want to replace Old_text with"},instanceNum:{d:"specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced"}}},T:{s:"Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not",p:{value:{d:"is the value to test"}}},TEXT:{s:"Converts a value to text in a specific number format",p:{value:{d:"is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value"},formatText:{d:"is a text string that defines the number format to use"}}},TEXTAFTER:{s:"Returns text that's after delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Searches the text for a delimiter match. By default, a case-sensitive match is done.",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TEXTJOIN:{s:"Concatenates a list or range of text strings using a delimiter",p:{delimiter:{d:"Character or string to insert between each text item"},ignoreEmpty:{d:"if TRUE(default), ignores empty cells"},text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},TEXTSPLIT:{s:"Splits text into rows or columns using delimiters.",p:{text:{d:"The text to split"},colDelimiter:{d:"The column delimiter(s) - can be string or array of strings"},rowDelimiter:{d:"The row delimiter(s), null/undefined means no row splitting",v:null},ignoreEmpty:{d:"Whether to ignore empty values (defaults to `false`)",v:!1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},padWith:{d:"Value to use for padding if matrix is uneven (defaults to `#N/A`)",v:"undefined"}}},TEXTBEFORE:{s:"Returns text that's before delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TRANSLATE:{s:"Translate a text string from one language to another using the Microsoft Translator service.",p:{text:{d:"The text to translate."},sourceLanguage:{d:"Specifiy the source language your text is currently in. Expressed as a two-letter language code."},targetLanguage:{d:"Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code."}},h:"Unimplemented"},TRIM:{s:"Removes all spaces from text except for single spaces between words.",p:{text:{d:"The text from which you want to remove extra spaces."}}},UNICHAR:{s:"Returns the Unicode character referenced by the given numeric value",p:{number:{d:"is the Unicode number representing a character"}}},UNICODE:{s:"Returns the number (code point) corresponding to the first character of the text",p:{text:{d:"is the character that you want the Unicode value of"}}},UPPER:{s:"Converts a text string to all uppercase letters",p:{text:{d:"is the text you want converted to uppercase, a reference or a text string"}}},VALUE:{s:"Converts a text string that represents a number to a number",p:{text:{d:"is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert"}}},VALUETOTEXT:{s:"Returns a text representation of a value",p:{value:{d:"the value to represent as text"},format:{d:"the format of the text",v:0}}}};
|