@gui-chat-plugin/spreadsheet 0.2.1 → 0.2.2
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/dist/core.cjs +1 -1
- package/dist/core.js +2 -257
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -9
- package/dist/samples-CoiZwUpO.cjs +1 -0
- package/dist/samples-DkxfVw3O.js +420 -0
- package/dist/style.css +3 -1
- package/dist/vue.cjs +95 -94
- package/dist/vue.js +15924 -17881
- package/package.json +15 -14
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./samples-CoiZwUpO.cjs`);exports.SYSTEM_PROMPT=e.i,exports.TOOL_DEFINITION=e.a,exports.TOOL_NAME=e.o,exports.executeSpreadsheet=e.n,exports.pluginCore=e.r,exports.samples=e.t;
|
package/dist/core.js
CHANGED
|
@@ -1,257 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name: s,
|
|
4
|
-
description: "Display an Excel-like spreadsheet with formulas and calculations.",
|
|
5
|
-
parameters: {
|
|
6
|
-
type: "object",
|
|
7
|
-
properties: {
|
|
8
|
-
title: {
|
|
9
|
-
type: "string",
|
|
10
|
-
description: "Title for the spreadsheet"
|
|
11
|
-
},
|
|
12
|
-
sheets: {
|
|
13
|
-
type: "array",
|
|
14
|
-
description: "Sheets to render as spreadsheet tabs. Each sheet includes a name and 2D array of cells (rows x columns).",
|
|
15
|
-
items: {
|
|
16
|
-
type: "object",
|
|
17
|
-
properties: {
|
|
18
|
-
name: {
|
|
19
|
-
type: "string",
|
|
20
|
-
description: "Sheet name (e.g., 'Sales Q1', 'Summary')"
|
|
21
|
-
},
|
|
22
|
-
data: {
|
|
23
|
-
type: "array",
|
|
24
|
-
description: `Rows of cells. Each cell is an object with 'v' (value) and 'f' (format). Use Excel-style A1 notation in formulas: columns are letters (A, B, C...), rows are 1-based numbers (1, 2, 3...). Values can be text, numbers, dates, or formulas. Examples: [{"v": "Product"}, {"v": 2024, "f": "#,##0"}, {"v": "01/15/2025", "f": "MM/DD/YYYY"}, {"v": "=B2*1.05", "f": "$#,##0.00"}]. Format codes: '$#,##0.00' (currency), '#,##0' (integer), '0.00%' (percent), '0.00' (decimal), 'MM/DD/YYYY' (date), 'DD-MMM-YYYY' (date), 'YYYY-MM-DD' (ISO date).`,
|
|
25
|
-
items: {
|
|
26
|
-
type: "array",
|
|
27
|
-
description: "Row of cells. Each cell is an object with value and format.",
|
|
28
|
-
items: {
|
|
29
|
-
type: "object",
|
|
30
|
-
description: "Cell object with value and optional format. If value is a string starting with '=', it's treated as a formula.",
|
|
31
|
-
properties: {
|
|
32
|
-
v: {
|
|
33
|
-
oneOf: [{ type: "string" }, { type: "number" }],
|
|
34
|
-
description: "Cell value. Can be text, number, date, or formula (string starting with '='). Examples: 'Revenue', 1500000, '01/15/2025', '=SUM(A1:A10)', '=B2-TODAY()'. Date strings like '01/15/2025' are automatically parsed to date serial numbers."
|
|
35
|
-
},
|
|
36
|
-
f: {
|
|
37
|
-
type: "string",
|
|
38
|
-
description: "Optional format code for displaying the value. Common formats: '$#,##0.00' (currency), '#,##0' (integer), '0.00%' (percent), '0.00' (decimal), 'MM/DD/YYYY' (date), 'DD-MMM-YYYY' (date), 'YYYY-MM-DD' (ISO date)"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
required: ["v"]
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
required: ["name", "data"]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
required: ["title", "sheets"]
|
|
51
|
-
}
|
|
52
|
-
}, o = `Use ${s} whenever the user needs a spreadsheet-style table, multi-step math, or dynamic what-if analysis—do not summarize in text. Build LIVE sheets where every cell is an object {"v": value, "f": format}. For formulas, set "v" to a string starting with "=" (e.g., {"v": "=B2*1.05", "f": "$#,##0.00"}). For dates, use date strings like "01/15/2025" or date formulas like "=TODAY()" or "=DATE(2025,1,15)". The spreadsheet auto-parses common date formats (MM/DD/YYYY, YYYY-MM-DD, DD-MMM-YYYY) into date serial numbers for calculations. Date arithmetic works: "=B2-TODAY()" calculates days between dates. Never pre-calculate; let the spreadsheet compute using cell refs, functions (SUM, AVERAGE, IF, TODAY, DATE, DATEDIF, etc.), and arithmetic. Standard formats: "$#,##0.00" currency, "#,##0" integer, "0.00%" percent, "0.00" decimal, "MM/DD/YYYY" date, "DD-MMM-YYYY" date, "YYYY-MM-DD" ISO date. Format is optional for plain text/numbers.`, v = async (i, a) => {
|
|
53
|
-
const { title: r } = a;
|
|
54
|
-
let { sheets: t } = a;
|
|
55
|
-
if (typeof t == "string")
|
|
56
|
-
try {
|
|
57
|
-
t = JSON.parse(t), console.warn(
|
|
58
|
-
"Sheets was provided as a string and has been parsed to an array"
|
|
59
|
-
);
|
|
60
|
-
} catch (e) {
|
|
61
|
-
throw new Error(
|
|
62
|
-
`Invalid sheets format: sheets must be an array, not a string. Parse error: ${e instanceof Error ? e.message : String(e)}`
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
if (!Array.isArray(t) || t.length === 0)
|
|
66
|
-
throw new Error(
|
|
67
|
-
"At least one sheet is required. Sheets must be an array of sheet objects."
|
|
68
|
-
);
|
|
69
|
-
for (const e of t)
|
|
70
|
-
if (!e.name || !e.data || e.data.length === 0)
|
|
71
|
-
throw new Error(
|
|
72
|
-
`Invalid sheet: ${e.name || "unnamed"}. Each sheet must have a name and data array.`
|
|
73
|
-
);
|
|
74
|
-
return {
|
|
75
|
-
message: `Created spreadsheet: ${r}`,
|
|
76
|
-
title: r,
|
|
77
|
-
data: { sheets: t },
|
|
78
|
-
instructions: "Acknowledge that the spreadsheet has been created and is displayed to the user."
|
|
79
|
-
};
|
|
80
|
-
}, l = {
|
|
81
|
-
toolDefinition: n,
|
|
82
|
-
execute: v,
|
|
83
|
-
generatingMessage: "Creating spreadsheet...",
|
|
84
|
-
waitingMessage: "Tell the user that the spreadsheet was created and will be presented shortly.",
|
|
85
|
-
isEnabled: () => !0,
|
|
86
|
-
systemPrompt: o
|
|
87
|
-
}, d = [
|
|
88
|
-
{
|
|
89
|
-
name: "Simple Budget",
|
|
90
|
-
args: {
|
|
91
|
-
title: "Monthly Budget",
|
|
92
|
-
sheets: [
|
|
93
|
-
{
|
|
94
|
-
name: "Budget",
|
|
95
|
-
data: [
|
|
96
|
-
[{ v: "Category" }, { v: "Amount" }],
|
|
97
|
-
[{ v: "Income" }, { v: 5e3, f: "$#,##0.00" }],
|
|
98
|
-
[{ v: "Rent" }, { v: -1500, f: "$#,##0.00" }],
|
|
99
|
-
[{ v: "Utilities" }, { v: -200, f: "$#,##0.00" }],
|
|
100
|
-
[{ v: "Food" }, { v: -600, f: "$#,##0.00" }],
|
|
101
|
-
[{ v: "Transport" }, { v: -300, f: "$#,##0.00" }],
|
|
102
|
-
[{ v: "Total" }, { v: "=SUM(B2:B6)", f: "$#,##0.00" }]
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: "Sales Report",
|
|
110
|
-
args: {
|
|
111
|
-
title: "Q1 Sales Report",
|
|
112
|
-
sheets: [
|
|
113
|
-
{
|
|
114
|
-
name: "Sales",
|
|
115
|
-
data: [
|
|
116
|
-
[{ v: "Product" }, { v: "Jan" }, { v: "Feb" }, { v: "Mar" }, { v: "Total" }],
|
|
117
|
-
[{ v: "Widget A" }, { v: 1200 }, { v: 1350 }, { v: 1500 }, { v: "=SUM(B2:D2)" }],
|
|
118
|
-
[{ v: "Widget B" }, { v: 800 }, { v: 920 }, { v: 1100 }, { v: "=SUM(B3:D3)" }],
|
|
119
|
-
[{ v: "Widget C" }, { v: 450 }, { v: 480 }, { v: 520 }, { v: "=SUM(B4:D4)" }],
|
|
120
|
-
[{ v: "Total" }, { v: "=SUM(B2:B4)" }, { v: "=SUM(C2:C4)" }, { v: "=SUM(D2:D4)" }, { v: "=SUM(E2:E4)" }]
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: "Loan Calculator",
|
|
128
|
-
args: {
|
|
129
|
-
title: "Loan Calculator",
|
|
130
|
-
sheets: [
|
|
131
|
-
{
|
|
132
|
-
name: "Calculator",
|
|
133
|
-
data: [
|
|
134
|
-
[{ v: "Loan Amount" }, { v: 25e4, f: "$#,##0" }],
|
|
135
|
-
[{ v: "Interest Rate" }, { v: 0.065, f: "0.00%" }],
|
|
136
|
-
[{ v: "Term (Years)" }, { v: 30 }],
|
|
137
|
-
[{ v: "" }, { v: "" }],
|
|
138
|
-
[{ v: "Monthly Payment" }, { v: "=PMT(B2/12, B3*12, -B1)", f: "$#,##0.00" }],
|
|
139
|
-
[{ v: "Total Interest" }, { v: "=B5*B3*12-B1", f: "$#,##0.00" }]
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: "World Population",
|
|
147
|
-
args: {
|
|
148
|
-
title: "世界人口(上位10)",
|
|
149
|
-
sheets: [
|
|
150
|
-
{
|
|
151
|
-
name: "世界人口(上位10)",
|
|
152
|
-
data: [
|
|
153
|
-
[
|
|
154
|
-
{ v: "順位" },
|
|
155
|
-
{ v: "国・地域" },
|
|
156
|
-
{ v: "人口(概数)", f: "#,##0" },
|
|
157
|
-
{ v: "上位10合計に占める割合" },
|
|
158
|
-
{ v: "世界人口に占める割合" }
|
|
159
|
-
],
|
|
160
|
-
[
|
|
161
|
-
{ v: 1, f: "#,##0" },
|
|
162
|
-
{ v: "インド" },
|
|
163
|
-
{ v: 1428627e3, f: "#,##0" },
|
|
164
|
-
{ v: "=C2/$C$12", f: "0.00%" },
|
|
165
|
-
{ v: "=C2/$C$13", f: "0.00%" }
|
|
166
|
-
],
|
|
167
|
-
[
|
|
168
|
-
{ v: 2, f: "#,##0" },
|
|
169
|
-
{ v: "中国" },
|
|
170
|
-
{ v: 1425671e3, f: "#,##0" },
|
|
171
|
-
{ v: "=C3/$C$12", f: "0.00%" },
|
|
172
|
-
{ v: "=C3/$C$13", f: "0.00%" }
|
|
173
|
-
],
|
|
174
|
-
[
|
|
175
|
-
{ v: 3, f: "#,##0" },
|
|
176
|
-
{ v: "アメリカ合衆国" },
|
|
177
|
-
{ v: 334e6, f: "#,##0" },
|
|
178
|
-
{ v: "=C4/$C$12", f: "0.00%" },
|
|
179
|
-
{ v: "=C4/$C$13", f: "0.00%" }
|
|
180
|
-
],
|
|
181
|
-
[
|
|
182
|
-
{ v: 4, f: "#,##0" },
|
|
183
|
-
{ v: "インドネシア" },
|
|
184
|
-
{ v: 277e6, f: "#,##0" },
|
|
185
|
-
{ v: "=C5/$C$12", f: "0.00%" },
|
|
186
|
-
{ v: "=C5/$C$13", f: "0.00%" }
|
|
187
|
-
],
|
|
188
|
-
[
|
|
189
|
-
{ v: 5, f: "#,##0" },
|
|
190
|
-
{ v: "パキスタン" },
|
|
191
|
-
{ v: 24e7, f: "#,##0" },
|
|
192
|
-
{ v: "=C6/$C$12", f: "0.00%" },
|
|
193
|
-
{ v: "=C6/$C$13", f: "0.00%" }
|
|
194
|
-
],
|
|
195
|
-
[
|
|
196
|
-
{ v: 6, f: "#,##0" },
|
|
197
|
-
{ v: "ナイジェリア" },
|
|
198
|
-
{ v: 219e6, f: "#,##0" },
|
|
199
|
-
{ v: "=C7/$C$12", f: "0.00%" },
|
|
200
|
-
{ v: "=C7/$C$13", f: "0.00%" }
|
|
201
|
-
],
|
|
202
|
-
[
|
|
203
|
-
{ v: 7, f: "#,##0" },
|
|
204
|
-
{ v: "ブラジル" },
|
|
205
|
-
{ v: 216e6, f: "#,##0" },
|
|
206
|
-
{ v: "=C8/$C$12", f: "0.00%" },
|
|
207
|
-
{ v: "=C8/$C$13", f: "0.00%" }
|
|
208
|
-
],
|
|
209
|
-
[
|
|
210
|
-
{ v: 8, f: "#,##0" },
|
|
211
|
-
{ v: "バングラデシュ" },
|
|
212
|
-
{ v: 172e6, f: "#,##0" },
|
|
213
|
-
{ v: "=C9/$C$12", f: "0.00%" },
|
|
214
|
-
{ v: "=C9/$C$13", f: "0.00%" }
|
|
215
|
-
],
|
|
216
|
-
[
|
|
217
|
-
{ v: 9, f: "#,##0" },
|
|
218
|
-
{ v: "ロシア" },
|
|
219
|
-
{ v: 146e6, f: "#,##0" },
|
|
220
|
-
{ v: "=C10/$C$12", f: "0.00%" },
|
|
221
|
-
{ v: "=C10/$C$13", f: "0.00%" }
|
|
222
|
-
],
|
|
223
|
-
[
|
|
224
|
-
{ v: 10, f: "#,##0" },
|
|
225
|
-
{ v: "メキシコ" },
|
|
226
|
-
{ v: 13e7, f: "#,##0" },
|
|
227
|
-
{ v: "=C11/$C$12", f: "0.00%" },
|
|
228
|
-
{ v: "=C11/$C$13", f: "0.00%" }
|
|
229
|
-
],
|
|
230
|
-
[
|
|
231
|
-
{ v: "" },
|
|
232
|
-
{ v: "合計(上位10)" },
|
|
233
|
-
{ v: "=SUM(C2:C11)", f: "#,##0" },
|
|
234
|
-
{ v: "" },
|
|
235
|
-
{ v: "" }
|
|
236
|
-
],
|
|
237
|
-
[
|
|
238
|
-
{ v: "" },
|
|
239
|
-
{ v: "世界推定人口(例)" },
|
|
240
|
-
{ v: 805e7, f: "#,##0" },
|
|
241
|
-
{ v: "" },
|
|
242
|
-
{ v: "" }
|
|
243
|
-
]
|
|
244
|
-
]
|
|
245
|
-
}
|
|
246
|
-
]
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
];
|
|
250
|
-
export {
|
|
251
|
-
o as SYSTEM_PROMPT,
|
|
252
|
-
n as TOOL_DEFINITION,
|
|
253
|
-
s as TOOL_NAME,
|
|
254
|
-
v as executeSpreadsheet,
|
|
255
|
-
l as pluginCore,
|
|
256
|
-
d as samples
|
|
257
|
-
};
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./samples-DkxfVw3O.js";
|
|
2
|
+
export { t as SYSTEM_PROMPT, e as TOOL_DEFINITION, r as TOOL_NAME, n as executeSpreadsheet, i as pluginCore, a as samples };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./samples-CoiZwUpO.cjs`);require(`./core.cjs`),exports.SYSTEM_PROMPT=e.i,exports.TOOL_DEFINITION=e.a,exports.TOOL_NAME=e.o,exports.executeSpreadsheet=e.n,exports.pluginCore=e.r,exports.samples=e.t;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
p as TOOL_DEFINITION,
|
|
5
|
-
r as TOOL_NAME,
|
|
6
|
-
o as executeSpreadsheet,
|
|
7
|
-
s as pluginCore,
|
|
8
|
-
t as samples
|
|
9
|
-
};
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./samples-DkxfVw3O.js";
|
|
2
|
+
import "./core.js";
|
|
3
|
+
export { t as SYSTEM_PROMPT, e as TOOL_DEFINITION, r as TOOL_NAME, n as executeSpreadsheet, i as pluginCore, a as samples };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`presentSpreadsheet`,t={type:`function`,name:e,description:`Display an Excel-like spreadsheet with formulas and calculations.`,parameters:{type:`object`,properties:{title:{type:`string`,description:`Title for the spreadsheet`},sheets:{type:`array`,description:`Sheets to render as spreadsheet tabs. Each sheet includes a name and 2D array of cells (rows x columns).`,items:{type:`object`,properties:{name:{type:`string`,description:`Sheet name (e.g., 'Sales Q1', 'Summary')`},data:{type:`array`,description:`Rows of cells. Each cell is an object with 'v' (value) and 'f' (format). Use Excel-style A1 notation in formulas: columns are letters (A, B, C...), rows are 1-based numbers (1, 2, 3...). Values can be text, numbers, dates, or formulas. Examples: [{"v": "Product"}, {"v": 2024, "f": "#,##0"}, {"v": "01/15/2025", "f": "MM/DD/YYYY"}, {"v": "=B2*1.05", "f": "$#,##0.00"}]. Format codes: '$#,##0.00' (currency), '#,##0' (integer), '0.00%' (percent), '0.00' (decimal), 'MM/DD/YYYY' (date), 'DD-MMM-YYYY' (date), 'YYYY-MM-DD' (ISO date).`,items:{type:`array`,description:`Row of cells. Each cell is an object with value and format.`,items:{type:`object`,description:`Cell object with value and optional format. If value is a string starting with '=', it's treated as a formula.`,properties:{v:{oneOf:[{type:`string`},{type:`number`}],description:`Cell value. Can be text, number, date, or formula (string starting with '='). Examples: 'Revenue', 1500000, '01/15/2025', '=SUM(A1:A10)', '=B2-TODAY()'. Date strings like '01/15/2025' are automatically parsed to date serial numbers.`},f:{type:`string`,description:`Optional format code for displaying the value. Common formats: '$#,##0.00' (currency), '#,##0' (integer), '0.00%' (percent), '0.00' (decimal), 'MM/DD/YYYY' (date), 'DD-MMM-YYYY' (date), 'YYYY-MM-DD' (ISO date)`}},required:[`v`]}}}},required:[`name`,`data`]}}},required:[`title`,`sheets`]}},n=`Use ${e} whenever the user needs a spreadsheet-style table, multi-step math, or dynamic what-if analysis—do not summarize in text. Build LIVE sheets where every cell is an object {"v": value, "f": format}. For formulas, set "v" to a string starting with "=" (e.g., {"v": "=B2*1.05", "f": "$#,##0.00"}). For dates, use date strings like "01/15/2025" or date formulas like "=TODAY()" or "=DATE(2025,1,15)". The spreadsheet auto-parses common date formats (MM/DD/YYYY, YYYY-MM-DD, DD-MMM-YYYY) into date serial numbers for calculations. Date arithmetic works: "=B2-TODAY()" calculates days between dates. Never pre-calculate; let the spreadsheet compute using cell refs, functions (SUM, AVERAGE, IF, TODAY, DATE, DATEDIF, etc.), and arithmetic. Standard formats: "$#,##0.00" currency, "#,##0" integer, "0.00%" percent, "0.00" decimal, "MM/DD/YYYY" date, "DD-MMM-YYYY" date, "YYYY-MM-DD" ISO date. Format is optional for plain text/numbers.`,r=async(e,t)=>{let{title:n}=t,{sheets:r}=t;if(typeof r==`string`)try{r=JSON.parse(r),console.warn(`Sheets was provided as a string and has been parsed to an array`)}catch(e){throw Error(`Invalid sheets format: sheets must be an array, not a string. Parse error: ${e instanceof Error?e.message:String(e)}`)}if(!Array.isArray(r)||r.length===0)throw Error(`At least one sheet is required. Sheets must be an array of sheet objects.`);for(let e of r)if(!e.name||!e.data||e.data.length===0)throw Error(`Invalid sheet: ${e.name||`unnamed`}. Each sheet must have a name and data array.`);return{message:`Created spreadsheet: ${n}`,title:n,data:{sheets:r},instructions:`Acknowledge that the spreadsheet has been created and is displayed to the user.`}},i={toolDefinition:t,execute:r,generatingMessage:`Creating spreadsheet...`,waitingMessage:`Tell the user that the spreadsheet was created and will be presented shortly.`,isEnabled:()=>!0,systemPrompt:n},a=[{name:`Simple Budget`,args:{title:`Monthly Budget`,sheets:[{name:`Budget`,data:[[{v:`Category`},{v:`Amount`}],[{v:`Income`},{v:5e3,f:`$#,##0.00`}],[{v:`Rent`},{v:-1500,f:`$#,##0.00`}],[{v:`Utilities`},{v:-200,f:`$#,##0.00`}],[{v:`Food`},{v:-600,f:`$#,##0.00`}],[{v:`Transport`},{v:-300,f:`$#,##0.00`}],[{v:`Total`},{v:`=SUM(B2:B6)`,f:`$#,##0.00`}]]}]}},{name:`Sales Report`,args:{title:`Q1 Sales Report`,sheets:[{name:`Sales`,data:[[{v:`Product`},{v:`Jan`},{v:`Feb`},{v:`Mar`},{v:`Total`}],[{v:`Widget A`},{v:1200},{v:1350},{v:1500},{v:`=SUM(B2:D2)`}],[{v:`Widget B`},{v:800},{v:920},{v:1100},{v:`=SUM(B3:D3)`}],[{v:`Widget C`},{v:450},{v:480},{v:520},{v:`=SUM(B4:D4)`}],[{v:`Total`},{v:`=SUM(B2:B4)`},{v:`=SUM(C2:C4)`},{v:`=SUM(D2:D4)`},{v:`=SUM(E2:E4)`}]]}]}},{name:`Loan Calculator`,args:{title:`Loan Calculator`,sheets:[{name:`Calculator`,data:[[{v:`Loan Amount`},{v:25e4,f:`$#,##0`}],[{v:`Interest Rate`},{v:.065,f:`0.00%`}],[{v:`Term (Years)`},{v:30}],[{v:``},{v:``}],[{v:`Monthly Payment`},{v:`=PMT(B2/12, B3*12, -B1)`,f:`$#,##0.00`}],[{v:`Total Interest`},{v:`=B5*B3*12-B1`,f:`$#,##0.00`}]]}]}},{name:`World Population`,args:{title:`世界人口(上位10)`,sheets:[{name:`世界人口(上位10)`,data:[[{v:`順位`},{v:`国・地域`},{v:`人口(概数)`,f:`#,##0`},{v:`上位10合計に占める割合`},{v:`世界人口に占める割合`}],[{v:1,f:`#,##0`},{v:`インド`},{v:1428627e3,f:`#,##0`},{v:`=C2/$C$12`,f:`0.00%`},{v:`=C2/$C$13`,f:`0.00%`}],[{v:2,f:`#,##0`},{v:`中国`},{v:1425671e3,f:`#,##0`},{v:`=C3/$C$12`,f:`0.00%`},{v:`=C3/$C$13`,f:`0.00%`}],[{v:3,f:`#,##0`},{v:`アメリカ合衆国`},{v:334e6,f:`#,##0`},{v:`=C4/$C$12`,f:`0.00%`},{v:`=C4/$C$13`,f:`0.00%`}],[{v:4,f:`#,##0`},{v:`インドネシア`},{v:277e6,f:`#,##0`},{v:`=C5/$C$12`,f:`0.00%`},{v:`=C5/$C$13`,f:`0.00%`}],[{v:5,f:`#,##0`},{v:`パキスタン`},{v:24e7,f:`#,##0`},{v:`=C6/$C$12`,f:`0.00%`},{v:`=C6/$C$13`,f:`0.00%`}],[{v:6,f:`#,##0`},{v:`ナイジェリア`},{v:219e6,f:`#,##0`},{v:`=C7/$C$12`,f:`0.00%`},{v:`=C7/$C$13`,f:`0.00%`}],[{v:7,f:`#,##0`},{v:`ブラジル`},{v:216e6,f:`#,##0`},{v:`=C8/$C$12`,f:`0.00%`},{v:`=C8/$C$13`,f:`0.00%`}],[{v:8,f:`#,##0`},{v:`バングラデシュ`},{v:172e6,f:`#,##0`},{v:`=C9/$C$12`,f:`0.00%`},{v:`=C9/$C$13`,f:`0.00%`}],[{v:9,f:`#,##0`},{v:`ロシア`},{v:146e6,f:`#,##0`},{v:`=C10/$C$12`,f:`0.00%`},{v:`=C10/$C$13`,f:`0.00%`}],[{v:10,f:`#,##0`},{v:`メキシコ`},{v:13e7,f:`#,##0`},{v:`=C11/$C$12`,f:`0.00%`},{v:`=C11/$C$13`,f:`0.00%`}],[{v:``},{v:`合計(上位10)`},{v:`=SUM(C2:C11)`,f:`#,##0`},{v:``},{v:``}],[{v:``},{v:`世界推定人口(例)`},{v:805e7,f:`#,##0`},{v:``},{v:``}]]}]}}];Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|