@axdspub/axiom-ui-forms 0.2.10 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +440 -272
- package/library/axiom-ui-forms.d.ts +107 -33
- package/library/esm/_virtual/index10.js +2 -2
- package/library/esm/_virtual/index12.js +2 -6
- package/library/esm/_virtual/index12.js.map +1 -1
- package/library/esm/_virtual/index13.js +2 -6
- package/library/esm/_virtual/index13.js.map +1 -1
- package/library/esm/_virtual/index3.js +2 -2
- package/library/esm/_virtual/index3.js.map +1 -1
- package/library/esm/_virtual/index6.js +2 -2
- package/library/esm/_virtual/index7.js +6 -2
- package/library/esm/_virtual/index7.js.map +1 -1
- package/library/esm/_virtual/index8.js +6 -2
- package/library/esm/_virtual/index8.js.map +1 -1
- package/library/esm/_virtual/index9.js +2 -2
- package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js +1 -1
- package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js.map +1 -1
- package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +23 -1
- package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
- package/library/esm/node_modules/ajv/dist/compile/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/discriminator/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
- package/library/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/library/esm/node_modules/jotai/esm/react.js +135 -0
- package/library/esm/node_modules/jotai/esm/react.js.map +1 -0
- package/library/esm/node_modules/jotai/esm/vanilla/internals.js +551 -0
- package/library/esm/node_modules/jotai/esm/vanilla/internals.js.map +1 -0
- package/library/esm/node_modules/jotai/esm/vanilla.js +111 -0
- package/library/esm/node_modules/jotai/esm/vanilla.js.map +1 -0
- package/library/esm/node_modules/react-router/dist/development/chunk-HA7DTUK3.js +1 -1
- package/library/esm/node_modules/unified/lib/index.js +1 -1
- package/library/esm/src/Form/Components/FieldCreator.js +20 -5
- package/library/esm/src/Form/Components/FieldCreator.js.map +1 -1
- package/library/esm/src/Form/Components/FieldLabel.js +1 -1
- package/library/esm/src/Form/Components/FieldLabel.js.map +1 -1
- package/library/esm/src/Form/Components/InlineMarkdown.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Boolean.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Constant.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Date.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/DateTime.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/GeoJSON.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/GeoJSONInputLoader.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Geometry.js +1 -1
- package/library/esm/src/Form/Components/Inputs/Geometry.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/GeometryInputLoader.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/JSON.js +64 -33
- package/library/esm/src/Form/Components/Inputs/JSON.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/JSONInputLoader.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/LongString.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Number.js +34 -9
- package/library/esm/src/Form/Components/Inputs/Number.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Object.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/OneOfInput.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/RadioGroup.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/SingleSelect.js +2 -1
- package/library/esm/src/Form/Components/Inputs/SingleSelect.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/String.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Time.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/index.js +11 -0
- package/library/esm/src/Form/Components/Inputs/index.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/inputMap.js.map +1 -1
- package/library/esm/src/Form/Creator/FormContextProvider.js.map +1 -1
- package/library/esm/src/Form/Creator/FormCreator.js +17 -8
- package/library/esm/src/Form/Creator/FormCreator.js.map +1 -1
- package/library/esm/src/Form/Creator/FormFields.js +1 -1
- package/library/esm/src/Form/Creator/FormFields.js.map +1 -1
- package/library/esm/src/Form/Creator/FormHeader.js.map +1 -1
- package/library/esm/src/Form/Creator/FormSection.js.map +1 -1
- package/library/esm/src/Form/Creator/FormSectionContextProvider.js.map +1 -1
- package/library/esm/src/Form/Creator/NavElement.js.map +1 -1
- package/library/esm/src/Form/Creator/Page.js +44 -8
- package/library/esm/src/Form/Creator/Page.js.map +1 -1
- package/library/esm/src/Form/Creator/Wizard.js +78 -21
- package/library/esm/src/Form/Creator/Wizard.js.map +1 -1
- package/library/esm/src/Form/Manage/CopyableJSONOutput.js +3 -3
- package/library/esm/src/Form/Manage/CopyableJSONOutput.js.map +1 -1
- package/library/esm/src/library.js +9 -14
- package/library/esm/src/library.js.map +1 -1
- package/library/esm/src/utils/getters.js +33 -3
- package/library/esm/src/utils/getters.js.map +1 -1
- package/library/esm/src/utils/manipulators.js +80 -3
- package/library/esm/src/utils/manipulators.js.map +1 -1
- package/library/esm/src/utils/resolveRefs.js +44 -0
- package/library/esm/src/utils/resolveRefs.js.map +1 -0
- package/library/esm/src/utils/responsive/layoutState.js +18 -0
- package/library/esm/src/utils/responsive/layoutState.js.map +1 -0
- package/library/esm/src/utils/schemaToFormHelpers.js +157 -39
- package/library/esm/src/utils/schemaToFormHelpers.js.map +1 -1
- package/library/esm/src/utils/validators.js +4 -2
- package/library/esm/src/utils/validators.js.map +1 -1
- package/package.json +131 -129
- package/library/esm/src/Form/resolveRefs.js +0 -26
- package/library/esm/src/Form/resolveRefs.js.map +0 -1
@@ -0,0 +1,551 @@
|
|
1
|
+
const isSelfAtom = (atom, a) => atom.unstable_is ? atom.unstable_is(a) : a === atom;
|
2
|
+
const hasInitialValue = (atom) => "init" in atom;
|
3
|
+
const isActuallyWritableAtom = (atom) => !!atom.write;
|
4
|
+
const isAtomStateInitialized = (atomState) => "v" in atomState || "e" in atomState;
|
5
|
+
const returnAtomValue = (atomState) => {
|
6
|
+
if ("e" in atomState) {
|
7
|
+
throw atomState.e;
|
8
|
+
}
|
9
|
+
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && !("v" in atomState)) {
|
10
|
+
throw new Error("[Bug] atom state is not initialized");
|
11
|
+
}
|
12
|
+
return atomState.v;
|
13
|
+
};
|
14
|
+
const PROMISE_STATE = Symbol();
|
15
|
+
const getPromiseState = (promise) => promise[PROMISE_STATE];
|
16
|
+
const isPendingPromise = (value) => {
|
17
|
+
var _a;
|
18
|
+
return isPromiseLike(value) && !((_a = getPromiseState(value)) == null ? void 0 : _a[1]);
|
19
|
+
};
|
20
|
+
const cancelPromise = (promise, nextValue) => {
|
21
|
+
const promiseState = getPromiseState(promise);
|
22
|
+
if (promiseState) {
|
23
|
+
promiseState[1] = true;
|
24
|
+
promiseState[0].forEach((fn) => fn(nextValue));
|
25
|
+
} else if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production") {
|
26
|
+
throw new Error("[Bug] cancelable promise not found");
|
27
|
+
}
|
28
|
+
};
|
29
|
+
const patchPromiseForCancelability = (promise) => {
|
30
|
+
if (getPromiseState(promise)) {
|
31
|
+
return;
|
32
|
+
}
|
33
|
+
const promiseState = [/* @__PURE__ */ new Set(), false];
|
34
|
+
promise[PROMISE_STATE] = promiseState;
|
35
|
+
const settle = () => {
|
36
|
+
promiseState[1] = true;
|
37
|
+
};
|
38
|
+
promise.then(settle, settle);
|
39
|
+
promise.onCancel = (fn) => {
|
40
|
+
promiseState[0].add(fn);
|
41
|
+
};
|
42
|
+
};
|
43
|
+
const isPromiseLike = (p) => typeof (p == null ? void 0 : p.then) === "function";
|
44
|
+
const addPendingPromiseToDependency = (atom, promise, dependencyAtomState) => {
|
45
|
+
if (!dependencyAtomState.p.has(atom)) {
|
46
|
+
dependencyAtomState.p.add(atom);
|
47
|
+
promise.then(
|
48
|
+
() => {
|
49
|
+
dependencyAtomState.p.delete(atom);
|
50
|
+
},
|
51
|
+
() => {
|
52
|
+
dependencyAtomState.p.delete(atom);
|
53
|
+
}
|
54
|
+
);
|
55
|
+
}
|
56
|
+
};
|
57
|
+
const setAtomStateValueOrPromise = (atom, valueOrPromise, ensureAtomState) => {
|
58
|
+
const atomState = ensureAtomState(atom);
|
59
|
+
const hasPrevValue = "v" in atomState;
|
60
|
+
const prevValue = atomState.v;
|
61
|
+
const pendingPromise = isPendingPromise(atomState.v) ? atomState.v : null;
|
62
|
+
if (isPromiseLike(valueOrPromise)) {
|
63
|
+
patchPromiseForCancelability(valueOrPromise);
|
64
|
+
for (const a of atomState.d.keys()) {
|
65
|
+
addPendingPromiseToDependency(atom, valueOrPromise, ensureAtomState(a));
|
66
|
+
}
|
67
|
+
}
|
68
|
+
atomState.v = valueOrPromise;
|
69
|
+
delete atomState.e;
|
70
|
+
if (!hasPrevValue || !Object.is(prevValue, atomState.v)) {
|
71
|
+
++atomState.n;
|
72
|
+
if (pendingPromise) {
|
73
|
+
cancelPromise(pendingPromise, valueOrPromise);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
};
|
77
|
+
const getMountedOrPendingDependents = (atom, atomState, mountedMap) => {
|
78
|
+
var _a;
|
79
|
+
const dependents = /* @__PURE__ */ new Set();
|
80
|
+
for (const a of ((_a = mountedMap.get(atom)) == null ? void 0 : _a.t) || []) {
|
81
|
+
if (mountedMap.has(a)) {
|
82
|
+
dependents.add(a);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
for (const atomWithPendingPromise of atomState.p) {
|
86
|
+
dependents.add(atomWithPendingPromise);
|
87
|
+
}
|
88
|
+
return dependents;
|
89
|
+
};
|
90
|
+
const createStoreHook = () => {
|
91
|
+
const callbacks = /* @__PURE__ */ new Set();
|
92
|
+
const notify = () => {
|
93
|
+
callbacks.forEach((fn) => fn());
|
94
|
+
};
|
95
|
+
notify.add = (fn) => {
|
96
|
+
callbacks.add(fn);
|
97
|
+
return () => {
|
98
|
+
callbacks.delete(fn);
|
99
|
+
};
|
100
|
+
};
|
101
|
+
return notify;
|
102
|
+
};
|
103
|
+
const createStoreHookForAtoms = () => {
|
104
|
+
const all = {};
|
105
|
+
const callbacks = /* @__PURE__ */ new WeakMap();
|
106
|
+
const notify = (atom) => {
|
107
|
+
var _a, _b;
|
108
|
+
(_a = callbacks.get(all)) == null ? void 0 : _a.forEach((fn) => fn(atom));
|
109
|
+
(_b = callbacks.get(atom)) == null ? void 0 : _b.forEach((fn) => fn());
|
110
|
+
};
|
111
|
+
notify.add = (atom, fn) => {
|
112
|
+
const key = atom || all;
|
113
|
+
const fns = (callbacks.has(key) ? callbacks : callbacks.set(key, /* @__PURE__ */ new Set())).get(key);
|
114
|
+
fns.add(fn);
|
115
|
+
return () => {
|
116
|
+
fns == null ? void 0 : fns.delete(fn);
|
117
|
+
if (!fns.size) {
|
118
|
+
callbacks.delete(key);
|
119
|
+
}
|
120
|
+
};
|
121
|
+
};
|
122
|
+
return notify;
|
123
|
+
};
|
124
|
+
const initializeStoreHooks = (storeHooks) => {
|
125
|
+
storeHooks.c || (storeHooks.c = createStoreHookForAtoms());
|
126
|
+
storeHooks.m || (storeHooks.m = createStoreHookForAtoms());
|
127
|
+
storeHooks.u || (storeHooks.u = createStoreHookForAtoms());
|
128
|
+
storeHooks.f || (storeHooks.f = createStoreHook());
|
129
|
+
return storeHooks;
|
130
|
+
};
|
131
|
+
const BUILDING_BLOCKS = Symbol();
|
132
|
+
const buildStore = (atomStateMap = /* @__PURE__ */ new WeakMap(), mountedMap = /* @__PURE__ */ new WeakMap(), invalidatedAtoms = /* @__PURE__ */ new WeakMap(), changedAtoms = /* @__PURE__ */ new Set(), mountCallbacks = /* @__PURE__ */ new Set(), unmountCallbacks = /* @__PURE__ */ new Set(), storeHooks = {}, atomRead = (atom, ...params) => atom.read(...params), atomWrite = (atom, ...params) => atom.write(...params), atomOnInit = (atom, store) => {
|
133
|
+
var _a;
|
134
|
+
return (_a = atom.unstable_onInit) == null ? void 0 : _a.call(atom, store);
|
135
|
+
}, atomOnMount = (atom, setAtom) => {
|
136
|
+
var _a;
|
137
|
+
return (_a = atom.onMount) == null ? void 0 : _a.call(atom, setAtom);
|
138
|
+
}, ...buildingBlockFunctions) => {
|
139
|
+
const ensureAtomState = buildingBlockFunctions[0] || ((atom) => {
|
140
|
+
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && !atom) {
|
141
|
+
throw new Error("Atom is undefined or null");
|
142
|
+
}
|
143
|
+
let atomState = atomStateMap.get(atom);
|
144
|
+
if (!atomState) {
|
145
|
+
atomState = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 };
|
146
|
+
atomStateMap.set(atom, atomState);
|
147
|
+
atomOnInit == null ? void 0 : atomOnInit(atom, store);
|
148
|
+
}
|
149
|
+
return atomState;
|
150
|
+
});
|
151
|
+
const flushCallbacks = buildingBlockFunctions[1] || (() => {
|
152
|
+
let hasError;
|
153
|
+
let error;
|
154
|
+
const call = (fn) => {
|
155
|
+
try {
|
156
|
+
fn();
|
157
|
+
} catch (e) {
|
158
|
+
if (!hasError) {
|
159
|
+
hasError = true;
|
160
|
+
error = e;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
};
|
164
|
+
do {
|
165
|
+
if (storeHooks.f) {
|
166
|
+
call(storeHooks.f);
|
167
|
+
}
|
168
|
+
const callbacks = /* @__PURE__ */ new Set();
|
169
|
+
const add = callbacks.add.bind(callbacks);
|
170
|
+
changedAtoms.forEach((atom) => {
|
171
|
+
var _a;
|
172
|
+
return (_a = mountedMap.get(atom)) == null ? void 0 : _a.l.forEach(add);
|
173
|
+
});
|
174
|
+
changedAtoms.clear();
|
175
|
+
unmountCallbacks.forEach(add);
|
176
|
+
unmountCallbacks.clear();
|
177
|
+
mountCallbacks.forEach(add);
|
178
|
+
mountCallbacks.clear();
|
179
|
+
callbacks.forEach(call);
|
180
|
+
if (changedAtoms.size) {
|
181
|
+
recomputeInvalidatedAtoms();
|
182
|
+
}
|
183
|
+
} while (changedAtoms.size || unmountCallbacks.size || mountCallbacks.size);
|
184
|
+
if (hasError) {
|
185
|
+
throw error;
|
186
|
+
}
|
187
|
+
});
|
188
|
+
const recomputeInvalidatedAtoms = buildingBlockFunctions[2] || (() => {
|
189
|
+
var _a;
|
190
|
+
const topSortedReversed = [];
|
191
|
+
const visiting = /* @__PURE__ */ new WeakSet();
|
192
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
193
|
+
const stack = Array.from(changedAtoms);
|
194
|
+
while (stack.length) {
|
195
|
+
const a = stack[stack.length - 1];
|
196
|
+
const aState = ensureAtomState(a);
|
197
|
+
if (visited.has(a)) {
|
198
|
+
stack.pop();
|
199
|
+
continue;
|
200
|
+
}
|
201
|
+
if (visiting.has(a)) {
|
202
|
+
if (invalidatedAtoms.get(a) === aState.n) {
|
203
|
+
topSortedReversed.push([a, aState, aState.n]);
|
204
|
+
} else if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && invalidatedAtoms.has(a)) {
|
205
|
+
throw new Error("[Bug] invalidated atom exists");
|
206
|
+
}
|
207
|
+
visited.add(a);
|
208
|
+
stack.pop();
|
209
|
+
continue;
|
210
|
+
}
|
211
|
+
visiting.add(a);
|
212
|
+
for (const d of getMountedOrPendingDependents(a, aState, mountedMap)) {
|
213
|
+
if (!visiting.has(d)) {
|
214
|
+
stack.push(d);
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
for (let i = topSortedReversed.length - 1; i >= 0; --i) {
|
219
|
+
const [a, aState, prevEpochNumber] = topSortedReversed[i];
|
220
|
+
let hasChangedDeps = false;
|
221
|
+
for (const dep of aState.d.keys()) {
|
222
|
+
if (dep !== a && changedAtoms.has(dep)) {
|
223
|
+
hasChangedDeps = true;
|
224
|
+
break;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
if (hasChangedDeps) {
|
228
|
+
readAtomState(a);
|
229
|
+
mountDependencies(a);
|
230
|
+
if (prevEpochNumber !== aState.n) {
|
231
|
+
changedAtoms.add(a);
|
232
|
+
(_a = storeHooks.c) == null ? void 0 : _a.call(storeHooks, a);
|
233
|
+
}
|
234
|
+
}
|
235
|
+
invalidatedAtoms.delete(a);
|
236
|
+
}
|
237
|
+
});
|
238
|
+
const readAtomState = buildingBlockFunctions[3] || ((atom) => {
|
239
|
+
var _a, _b;
|
240
|
+
const atomState = ensureAtomState(atom);
|
241
|
+
if (isAtomStateInitialized(atomState)) {
|
242
|
+
if (mountedMap.has(atom) && invalidatedAtoms.get(atom) !== atomState.n) {
|
243
|
+
return atomState;
|
244
|
+
}
|
245
|
+
if (Array.from(atomState.d).every(
|
246
|
+
([a, n]) => (
|
247
|
+
// Recursively, read the atom state of the dependency, and
|
248
|
+
// check if the atom epoch number is unchanged
|
249
|
+
readAtomState(a).n === n
|
250
|
+
)
|
251
|
+
)) {
|
252
|
+
return atomState;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
atomState.d.clear();
|
256
|
+
let isSync = true;
|
257
|
+
const mountDependenciesIfAsync = () => {
|
258
|
+
if (mountedMap.has(atom)) {
|
259
|
+
mountDependencies(atom);
|
260
|
+
recomputeInvalidatedAtoms();
|
261
|
+
flushCallbacks();
|
262
|
+
}
|
263
|
+
};
|
264
|
+
const getter = (a) => {
|
265
|
+
var _a2;
|
266
|
+
if (isSelfAtom(atom, a)) {
|
267
|
+
const aState2 = ensureAtomState(a);
|
268
|
+
if (!isAtomStateInitialized(aState2)) {
|
269
|
+
if (hasInitialValue(a)) {
|
270
|
+
setAtomStateValueOrPromise(a, a.init, ensureAtomState);
|
271
|
+
} else {
|
272
|
+
throw new Error("no atom init");
|
273
|
+
}
|
274
|
+
}
|
275
|
+
return returnAtomValue(aState2);
|
276
|
+
}
|
277
|
+
const aState = readAtomState(a);
|
278
|
+
try {
|
279
|
+
return returnAtomValue(aState);
|
280
|
+
} finally {
|
281
|
+
atomState.d.set(a, aState.n);
|
282
|
+
if (isPendingPromise(atomState.v)) {
|
283
|
+
addPendingPromiseToDependency(atom, atomState.v, aState);
|
284
|
+
}
|
285
|
+
(_a2 = mountedMap.get(a)) == null ? void 0 : _a2.t.add(atom);
|
286
|
+
if (!isSync) {
|
287
|
+
mountDependenciesIfAsync();
|
288
|
+
}
|
289
|
+
}
|
290
|
+
};
|
291
|
+
let controller;
|
292
|
+
let setSelf;
|
293
|
+
const options = {
|
294
|
+
get signal() {
|
295
|
+
if (!controller) {
|
296
|
+
controller = new AbortController();
|
297
|
+
}
|
298
|
+
return controller.signal;
|
299
|
+
},
|
300
|
+
get setSelf() {
|
301
|
+
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && !isActuallyWritableAtom(atom)) {
|
302
|
+
console.warn("setSelf function cannot be used with read-only atom");
|
303
|
+
}
|
304
|
+
if (!setSelf && isActuallyWritableAtom(atom)) {
|
305
|
+
setSelf = (...args) => {
|
306
|
+
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && isSync) {
|
307
|
+
console.warn("setSelf function cannot be called in sync");
|
308
|
+
}
|
309
|
+
if (!isSync) {
|
310
|
+
try {
|
311
|
+
return writeAtomState(atom, ...args);
|
312
|
+
} finally {
|
313
|
+
recomputeInvalidatedAtoms();
|
314
|
+
flushCallbacks();
|
315
|
+
}
|
316
|
+
}
|
317
|
+
};
|
318
|
+
}
|
319
|
+
return setSelf;
|
320
|
+
}
|
321
|
+
};
|
322
|
+
const prevEpochNumber = atomState.n;
|
323
|
+
try {
|
324
|
+
const valueOrPromise = atomRead(atom, getter, options);
|
325
|
+
setAtomStateValueOrPromise(atom, valueOrPromise, ensureAtomState);
|
326
|
+
if (isPromiseLike(valueOrPromise)) {
|
327
|
+
(_a = valueOrPromise.onCancel) == null ? void 0 : _a.call(valueOrPromise, () => controller == null ? void 0 : controller.abort());
|
328
|
+
valueOrPromise.then(
|
329
|
+
mountDependenciesIfAsync,
|
330
|
+
mountDependenciesIfAsync
|
331
|
+
);
|
332
|
+
}
|
333
|
+
return atomState;
|
334
|
+
} catch (error) {
|
335
|
+
delete atomState.v;
|
336
|
+
atomState.e = error;
|
337
|
+
++atomState.n;
|
338
|
+
return atomState;
|
339
|
+
} finally {
|
340
|
+
isSync = false;
|
341
|
+
if (prevEpochNumber !== atomState.n && invalidatedAtoms.get(atom) === prevEpochNumber) {
|
342
|
+
invalidatedAtoms.set(atom, atomState.n);
|
343
|
+
changedAtoms.add(atom);
|
344
|
+
(_b = storeHooks.c) == null ? void 0 : _b.call(storeHooks, atom);
|
345
|
+
}
|
346
|
+
}
|
347
|
+
});
|
348
|
+
const invalidateDependents = buildingBlockFunctions[4] || ((atom) => {
|
349
|
+
const stack = [atom];
|
350
|
+
while (stack.length) {
|
351
|
+
const a = stack.pop();
|
352
|
+
const aState = ensureAtomState(a);
|
353
|
+
for (const d of getMountedOrPendingDependents(a, aState, mountedMap)) {
|
354
|
+
const dState = ensureAtomState(d);
|
355
|
+
invalidatedAtoms.set(d, dState.n);
|
356
|
+
stack.push(d);
|
357
|
+
}
|
358
|
+
}
|
359
|
+
});
|
360
|
+
const writeAtomState = buildingBlockFunctions[5] || ((atom, ...args) => {
|
361
|
+
let isSync = true;
|
362
|
+
const getter = (a) => returnAtomValue(readAtomState(a));
|
363
|
+
const setter = (a, ...args2) => {
|
364
|
+
var _a;
|
365
|
+
const aState = ensureAtomState(a);
|
366
|
+
try {
|
367
|
+
if (isSelfAtom(atom, a)) {
|
368
|
+
if (!hasInitialValue(a)) {
|
369
|
+
throw new Error("atom not writable");
|
370
|
+
}
|
371
|
+
const prevEpochNumber = aState.n;
|
372
|
+
const v = args2[0];
|
373
|
+
setAtomStateValueOrPromise(a, v, ensureAtomState);
|
374
|
+
mountDependencies(a);
|
375
|
+
if (prevEpochNumber !== aState.n) {
|
376
|
+
changedAtoms.add(a);
|
377
|
+
(_a = storeHooks.c) == null ? void 0 : _a.call(storeHooks, a);
|
378
|
+
invalidateDependents(a);
|
379
|
+
}
|
380
|
+
return void 0;
|
381
|
+
} else {
|
382
|
+
return writeAtomState(a, ...args2);
|
383
|
+
}
|
384
|
+
} finally {
|
385
|
+
if (!isSync) {
|
386
|
+
recomputeInvalidatedAtoms();
|
387
|
+
flushCallbacks();
|
388
|
+
}
|
389
|
+
}
|
390
|
+
};
|
391
|
+
try {
|
392
|
+
return atomWrite(atom, getter, setter, ...args);
|
393
|
+
} finally {
|
394
|
+
isSync = false;
|
395
|
+
}
|
396
|
+
});
|
397
|
+
const mountDependencies = buildingBlockFunctions[6] || ((atom) => {
|
398
|
+
var _a;
|
399
|
+
const atomState = ensureAtomState(atom);
|
400
|
+
const mounted = mountedMap.get(atom);
|
401
|
+
if (mounted && !isPendingPromise(atomState.v)) {
|
402
|
+
for (const [a, n] of atomState.d) {
|
403
|
+
if (!mounted.d.has(a)) {
|
404
|
+
const aState = ensureAtomState(a);
|
405
|
+
const aMounted = mountAtom(a);
|
406
|
+
aMounted.t.add(atom);
|
407
|
+
mounted.d.add(a);
|
408
|
+
if (n !== aState.n) {
|
409
|
+
changedAtoms.add(a);
|
410
|
+
(_a = storeHooks.c) == null ? void 0 : _a.call(storeHooks, a);
|
411
|
+
invalidateDependents(a);
|
412
|
+
}
|
413
|
+
}
|
414
|
+
}
|
415
|
+
for (const a of mounted.d || []) {
|
416
|
+
if (!atomState.d.has(a)) {
|
417
|
+
mounted.d.delete(a);
|
418
|
+
const aMounted = unmountAtom(a);
|
419
|
+
aMounted == null ? void 0 : aMounted.t.delete(atom);
|
420
|
+
}
|
421
|
+
}
|
422
|
+
}
|
423
|
+
});
|
424
|
+
const mountAtom = buildingBlockFunctions[7] || ((atom) => {
|
425
|
+
var _a;
|
426
|
+
const atomState = ensureAtomState(atom);
|
427
|
+
let mounted = mountedMap.get(atom);
|
428
|
+
if (!mounted) {
|
429
|
+
readAtomState(atom);
|
430
|
+
for (const a of atomState.d.keys()) {
|
431
|
+
const aMounted = mountAtom(a);
|
432
|
+
aMounted.t.add(atom);
|
433
|
+
}
|
434
|
+
mounted = {
|
435
|
+
l: /* @__PURE__ */ new Set(),
|
436
|
+
d: new Set(atomState.d.keys()),
|
437
|
+
t: /* @__PURE__ */ new Set()
|
438
|
+
};
|
439
|
+
mountedMap.set(atom, mounted);
|
440
|
+
(_a = storeHooks.m) == null ? void 0 : _a.call(storeHooks, atom);
|
441
|
+
if (isActuallyWritableAtom(atom)) {
|
442
|
+
const processOnMount = () => {
|
443
|
+
let isSync = true;
|
444
|
+
const setAtom = (...args) => {
|
445
|
+
try {
|
446
|
+
return writeAtomState(atom, ...args);
|
447
|
+
} finally {
|
448
|
+
if (!isSync) {
|
449
|
+
recomputeInvalidatedAtoms();
|
450
|
+
flushCallbacks();
|
451
|
+
}
|
452
|
+
}
|
453
|
+
};
|
454
|
+
try {
|
455
|
+
const onUnmount = atomOnMount(atom, setAtom);
|
456
|
+
if (onUnmount) {
|
457
|
+
mounted.u = () => {
|
458
|
+
isSync = true;
|
459
|
+
try {
|
460
|
+
onUnmount();
|
461
|
+
} finally {
|
462
|
+
isSync = false;
|
463
|
+
}
|
464
|
+
};
|
465
|
+
}
|
466
|
+
} finally {
|
467
|
+
isSync = false;
|
468
|
+
}
|
469
|
+
};
|
470
|
+
mountCallbacks.add(processOnMount);
|
471
|
+
}
|
472
|
+
}
|
473
|
+
return mounted;
|
474
|
+
});
|
475
|
+
const unmountAtom = buildingBlockFunctions[8] || ((atom) => {
|
476
|
+
var _a;
|
477
|
+
const atomState = ensureAtomState(atom);
|
478
|
+
let mounted = mountedMap.get(atom);
|
479
|
+
if (mounted && !mounted.l.size && !Array.from(mounted.t).some((a) => {
|
480
|
+
var _a2;
|
481
|
+
return (_a2 = mountedMap.get(a)) == null ? void 0 : _a2.d.has(atom);
|
482
|
+
})) {
|
483
|
+
if (mounted.u) {
|
484
|
+
unmountCallbacks.add(mounted.u);
|
485
|
+
}
|
486
|
+
mounted = void 0;
|
487
|
+
mountedMap.delete(atom);
|
488
|
+
(_a = storeHooks.u) == null ? void 0 : _a.call(storeHooks, atom);
|
489
|
+
for (const a of atomState.d.keys()) {
|
490
|
+
const aMounted = unmountAtom(a);
|
491
|
+
aMounted == null ? void 0 : aMounted.t.delete(atom);
|
492
|
+
}
|
493
|
+
return void 0;
|
494
|
+
}
|
495
|
+
return mounted;
|
496
|
+
});
|
497
|
+
const buildingBlocks = [
|
498
|
+
// store state
|
499
|
+
atomStateMap,
|
500
|
+
mountedMap,
|
501
|
+
invalidatedAtoms,
|
502
|
+
changedAtoms,
|
503
|
+
mountCallbacks,
|
504
|
+
unmountCallbacks,
|
505
|
+
storeHooks,
|
506
|
+
// atom intercepters
|
507
|
+
atomRead,
|
508
|
+
atomWrite,
|
509
|
+
atomOnInit,
|
510
|
+
atomOnMount,
|
511
|
+
// building-block functions
|
512
|
+
ensureAtomState,
|
513
|
+
flushCallbacks,
|
514
|
+
recomputeInvalidatedAtoms,
|
515
|
+
readAtomState,
|
516
|
+
invalidateDependents,
|
517
|
+
writeAtomState,
|
518
|
+
mountDependencies,
|
519
|
+
mountAtom,
|
520
|
+
unmountAtom
|
521
|
+
];
|
522
|
+
const store = {
|
523
|
+
get: (atom) => returnAtomValue(readAtomState(atom)),
|
524
|
+
set: (atom, ...args) => {
|
525
|
+
try {
|
526
|
+
return writeAtomState(atom, ...args);
|
527
|
+
} finally {
|
528
|
+
recomputeInvalidatedAtoms();
|
529
|
+
flushCallbacks();
|
530
|
+
}
|
531
|
+
},
|
532
|
+
sub: (atom, listener) => {
|
533
|
+
const mounted = mountAtom(atom);
|
534
|
+
const listeners = mounted.l;
|
535
|
+
listeners.add(listener);
|
536
|
+
flushCallbacks();
|
537
|
+
return () => {
|
538
|
+
listeners.delete(listener);
|
539
|
+
unmountAtom(atom);
|
540
|
+
flushCallbacks();
|
541
|
+
};
|
542
|
+
}
|
543
|
+
};
|
544
|
+
Object.defineProperty(store, BUILDING_BLOCKS, { value: buildingBlocks });
|
545
|
+
return store;
|
546
|
+
};
|
547
|
+
const INTERNAL_buildStoreRev1 = buildStore;
|
548
|
+
const INTERNAL_initializeStoreHooks = initializeStoreHooks;
|
549
|
+
|
550
|
+
export { INTERNAL_buildStoreRev1, INTERNAL_initializeStoreHooks };
|
551
|
+
//# sourceMappingURL=internals.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"internals.js","sources":["../../../../../../node_modules/jotai/esm/vanilla/internals.mjs"],"sourcesContent":["const isSelfAtom = (atom, a) => atom.unstable_is ? atom.unstable_is(a) : a === atom;\nconst hasInitialValue = (atom) => \"init\" in atom;\nconst isActuallyWritableAtom = (atom) => !!atom.write;\nconst isAtomStateInitialized = (atomState) => \"v\" in atomState || \"e\" in atomState;\nconst returnAtomValue = (atomState) => {\n if (\"e\" in atomState) {\n throw atomState.e;\n }\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !(\"v\" in atomState)) {\n throw new Error(\"[Bug] atom state is not initialized\");\n }\n return atomState.v;\n};\nconst PROMISE_STATE = Symbol();\nconst getPromiseState = (promise) => promise[PROMISE_STATE];\nconst isPendingPromise = (value) => {\n var _a;\n return isPromiseLike(value) && !((_a = getPromiseState(value)) == null ? void 0 : _a[1]);\n};\nconst cancelPromise = (promise, nextValue) => {\n const promiseState = getPromiseState(promise);\n if (promiseState) {\n promiseState[1] = true;\n promiseState[0].forEach((fn) => fn(nextValue));\n } else if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") {\n throw new Error(\"[Bug] cancelable promise not found\");\n }\n};\nconst patchPromiseForCancelability = (promise) => {\n if (getPromiseState(promise)) {\n return;\n }\n const promiseState = [/* @__PURE__ */ new Set(), false];\n promise[PROMISE_STATE] = promiseState;\n const settle = () => {\n promiseState[1] = true;\n };\n promise.then(settle, settle);\n promise.onCancel = (fn) => {\n promiseState[0].add(fn);\n };\n};\nconst isPromiseLike = (p) => typeof (p == null ? void 0 : p.then) === \"function\";\nconst addPendingPromiseToDependency = (atom, promise, dependencyAtomState) => {\n if (!dependencyAtomState.p.has(atom)) {\n dependencyAtomState.p.add(atom);\n promise.then(\n () => {\n dependencyAtomState.p.delete(atom);\n },\n () => {\n dependencyAtomState.p.delete(atom);\n }\n );\n }\n};\nconst setAtomStateValueOrPromise = (atom, valueOrPromise, ensureAtomState) => {\n const atomState = ensureAtomState(atom);\n const hasPrevValue = \"v\" in atomState;\n const prevValue = atomState.v;\n const pendingPromise = isPendingPromise(atomState.v) ? atomState.v : null;\n if (isPromiseLike(valueOrPromise)) {\n patchPromiseForCancelability(valueOrPromise);\n for (const a of atomState.d.keys()) {\n addPendingPromiseToDependency(atom, valueOrPromise, ensureAtomState(a));\n }\n }\n atomState.v = valueOrPromise;\n delete atomState.e;\n if (!hasPrevValue || !Object.is(prevValue, atomState.v)) {\n ++atomState.n;\n if (pendingPromise) {\n cancelPromise(pendingPromise, valueOrPromise);\n }\n }\n};\nconst getMountedOrPendingDependents = (atom, atomState, mountedMap) => {\n var _a;\n const dependents = /* @__PURE__ */ new Set();\n for (const a of ((_a = mountedMap.get(atom)) == null ? void 0 : _a.t) || []) {\n if (mountedMap.has(a)) {\n dependents.add(a);\n }\n }\n for (const atomWithPendingPromise of atomState.p) {\n dependents.add(atomWithPendingPromise);\n }\n return dependents;\n};\nconst createStoreHook = () => {\n const callbacks = /* @__PURE__ */ new Set();\n const notify = () => {\n callbacks.forEach((fn) => fn());\n };\n notify.add = (fn) => {\n callbacks.add(fn);\n return () => {\n callbacks.delete(fn);\n };\n };\n return notify;\n};\nconst createStoreHookForAtoms = () => {\n const all = {};\n const callbacks = /* @__PURE__ */ new WeakMap();\n const notify = (atom) => {\n var _a, _b;\n (_a = callbacks.get(all)) == null ? void 0 : _a.forEach((fn) => fn(atom));\n (_b = callbacks.get(atom)) == null ? void 0 : _b.forEach((fn) => fn());\n };\n notify.add = (atom, fn) => {\n const key = atom || all;\n const fns = (callbacks.has(key) ? callbacks : callbacks.set(key, /* @__PURE__ */ new Set())).get(key);\n fns.add(fn);\n return () => {\n fns == null ? void 0 : fns.delete(fn);\n if (!fns.size) {\n callbacks.delete(key);\n }\n };\n };\n return notify;\n};\nconst initializeStoreHooks = (storeHooks) => {\n storeHooks.c || (storeHooks.c = createStoreHookForAtoms());\n storeHooks.m || (storeHooks.m = createStoreHookForAtoms());\n storeHooks.u || (storeHooks.u = createStoreHookForAtoms());\n storeHooks.f || (storeHooks.f = createStoreHook());\n return storeHooks;\n};\nconst BUILDING_BLOCKS = Symbol();\nconst getBuildingBlocks = (store) => store[BUILDING_BLOCKS];\nconst buildStore = (atomStateMap = /* @__PURE__ */ new WeakMap(), mountedMap = /* @__PURE__ */ new WeakMap(), invalidatedAtoms = /* @__PURE__ */ new WeakMap(), changedAtoms = /* @__PURE__ */ new Set(), mountCallbacks = /* @__PURE__ */ new Set(), unmountCallbacks = /* @__PURE__ */ new Set(), storeHooks = {}, atomRead = (atom, ...params) => atom.read(...params), atomWrite = (atom, ...params) => atom.write(...params), atomOnInit = (atom, store) => {\n var _a;\n return (_a = atom.unstable_onInit) == null ? void 0 : _a.call(atom, store);\n}, atomOnMount = (atom, setAtom) => {\n var _a;\n return (_a = atom.onMount) == null ? void 0 : _a.call(atom, setAtom);\n}, ...buildingBlockFunctions) => {\n const ensureAtomState = buildingBlockFunctions[0] || ((atom) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !atom) {\n throw new Error(\"Atom is undefined or null\");\n }\n let atomState = atomStateMap.get(atom);\n if (!atomState) {\n atomState = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 };\n atomStateMap.set(atom, atomState);\n atomOnInit == null ? void 0 : atomOnInit(atom, store);\n }\n return atomState;\n });\n const flushCallbacks = buildingBlockFunctions[1] || (() => {\n let hasError;\n let error;\n const call = (fn) => {\n try {\n fn();\n } catch (e) {\n if (!hasError) {\n hasError = true;\n error = e;\n }\n }\n };\n do {\n if (storeHooks.f) {\n call(storeHooks.f);\n }\n const callbacks = /* @__PURE__ */ new Set();\n const add = callbacks.add.bind(callbacks);\n changedAtoms.forEach((atom) => {\n var _a;\n return (_a = mountedMap.get(atom)) == null ? void 0 : _a.l.forEach(add);\n });\n changedAtoms.clear();\n unmountCallbacks.forEach(add);\n unmountCallbacks.clear();\n mountCallbacks.forEach(add);\n mountCallbacks.clear();\n callbacks.forEach(call);\n if (changedAtoms.size) {\n recomputeInvalidatedAtoms();\n }\n } while (changedAtoms.size || unmountCallbacks.size || mountCallbacks.size);\n if (hasError) {\n throw error;\n }\n });\n const recomputeInvalidatedAtoms = buildingBlockFunctions[2] || (() => {\n var _a;\n const topSortedReversed = [];\n const visiting = /* @__PURE__ */ new WeakSet();\n const visited = /* @__PURE__ */ new WeakSet();\n const stack = Array.from(changedAtoms);\n while (stack.length) {\n const a = stack[stack.length - 1];\n const aState = ensureAtomState(a);\n if (visited.has(a)) {\n stack.pop();\n continue;\n }\n if (visiting.has(a)) {\n if (invalidatedAtoms.get(a) === aState.n) {\n topSortedReversed.push([a, aState, aState.n]);\n } else if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && invalidatedAtoms.has(a)) {\n throw new Error(\"[Bug] invalidated atom exists\");\n }\n visited.add(a);\n stack.pop();\n continue;\n }\n visiting.add(a);\n for (const d of getMountedOrPendingDependents(a, aState, mountedMap)) {\n if (!visiting.has(d)) {\n stack.push(d);\n }\n }\n }\n for (let i = topSortedReversed.length - 1; i >= 0; --i) {\n const [a, aState, prevEpochNumber] = topSortedReversed[i];\n let hasChangedDeps = false;\n for (const dep of aState.d.keys()) {\n if (dep !== a && changedAtoms.has(dep)) {\n hasChangedDeps = true;\n break;\n }\n }\n if (hasChangedDeps) {\n readAtomState(a);\n mountDependencies(a);\n if (prevEpochNumber !== aState.n) {\n changedAtoms.add(a);\n (_a = storeHooks.c) == null ? void 0 : _a.call(storeHooks, a);\n }\n }\n invalidatedAtoms.delete(a);\n }\n });\n const readAtomState = buildingBlockFunctions[3] || ((atom) => {\n var _a, _b;\n const atomState = ensureAtomState(atom);\n if (isAtomStateInitialized(atomState)) {\n if (mountedMap.has(atom) && invalidatedAtoms.get(atom) !== atomState.n) {\n return atomState;\n }\n if (Array.from(atomState.d).every(\n ([a, n]) => (\n // Recursively, read the atom state of the dependency, and\n // check if the atom epoch number is unchanged\n readAtomState(a).n === n\n )\n )) {\n return atomState;\n }\n }\n atomState.d.clear();\n let isSync = true;\n const mountDependenciesIfAsync = () => {\n if (mountedMap.has(atom)) {\n mountDependencies(atom);\n recomputeInvalidatedAtoms();\n flushCallbacks();\n }\n };\n const getter = (a) => {\n var _a2;\n if (isSelfAtom(atom, a)) {\n const aState2 = ensureAtomState(a);\n if (!isAtomStateInitialized(aState2)) {\n if (hasInitialValue(a)) {\n setAtomStateValueOrPromise(a, a.init, ensureAtomState);\n } else {\n throw new Error(\"no atom init\");\n }\n }\n return returnAtomValue(aState2);\n }\n const aState = readAtomState(a);\n try {\n return returnAtomValue(aState);\n } finally {\n atomState.d.set(a, aState.n);\n if (isPendingPromise(atomState.v)) {\n addPendingPromiseToDependency(atom, atomState.v, aState);\n }\n (_a2 = mountedMap.get(a)) == null ? void 0 : _a2.t.add(atom);\n if (!isSync) {\n mountDependenciesIfAsync();\n }\n }\n };\n let controller;\n let setSelf;\n const options = {\n get signal() {\n if (!controller) {\n controller = new AbortController();\n }\n return controller.signal;\n },\n get setSelf() {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && !isActuallyWritableAtom(atom)) {\n console.warn(\"setSelf function cannot be used with read-only atom\");\n }\n if (!setSelf && isActuallyWritableAtom(atom)) {\n setSelf = (...args) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && isSync) {\n console.warn(\"setSelf function cannot be called in sync\");\n }\n if (!isSync) {\n try {\n return writeAtomState(atom, ...args);\n } finally {\n recomputeInvalidatedAtoms();\n flushCallbacks();\n }\n }\n };\n }\n return setSelf;\n }\n };\n const prevEpochNumber = atomState.n;\n try {\n const valueOrPromise = atomRead(atom, getter, options);\n setAtomStateValueOrPromise(atom, valueOrPromise, ensureAtomState);\n if (isPromiseLike(valueOrPromise)) {\n (_a = valueOrPromise.onCancel) == null ? void 0 : _a.call(valueOrPromise, () => controller == null ? void 0 : controller.abort());\n valueOrPromise.then(\n mountDependenciesIfAsync,\n mountDependenciesIfAsync\n );\n }\n return atomState;\n } catch (error) {\n delete atomState.v;\n atomState.e = error;\n ++atomState.n;\n return atomState;\n } finally {\n isSync = false;\n if (prevEpochNumber !== atomState.n && invalidatedAtoms.get(atom) === prevEpochNumber) {\n invalidatedAtoms.set(atom, atomState.n);\n changedAtoms.add(atom);\n (_b = storeHooks.c) == null ? void 0 : _b.call(storeHooks, atom);\n }\n }\n });\n const invalidateDependents = buildingBlockFunctions[4] || ((atom) => {\n const stack = [atom];\n while (stack.length) {\n const a = stack.pop();\n const aState = ensureAtomState(a);\n for (const d of getMountedOrPendingDependents(a, aState, mountedMap)) {\n const dState = ensureAtomState(d);\n invalidatedAtoms.set(d, dState.n);\n stack.push(d);\n }\n }\n });\n const writeAtomState = buildingBlockFunctions[5] || ((atom, ...args) => {\n let isSync = true;\n const getter = (a) => returnAtomValue(readAtomState(a));\n const setter = (a, ...args2) => {\n var _a;\n const aState = ensureAtomState(a);\n try {\n if (isSelfAtom(atom, a)) {\n if (!hasInitialValue(a)) {\n throw new Error(\"atom not writable\");\n }\n const prevEpochNumber = aState.n;\n const v = args2[0];\n setAtomStateValueOrPromise(a, v, ensureAtomState);\n mountDependencies(a);\n if (prevEpochNumber !== aState.n) {\n changedAtoms.add(a);\n (_a = storeHooks.c) == null ? void 0 : _a.call(storeHooks, a);\n invalidateDependents(a);\n }\n return void 0;\n } else {\n return writeAtomState(a, ...args2);\n }\n } finally {\n if (!isSync) {\n recomputeInvalidatedAtoms();\n flushCallbacks();\n }\n }\n };\n try {\n return atomWrite(atom, getter, setter, ...args);\n } finally {\n isSync = false;\n }\n });\n const mountDependencies = buildingBlockFunctions[6] || ((atom) => {\n var _a;\n const atomState = ensureAtomState(atom);\n const mounted = mountedMap.get(atom);\n if (mounted && !isPendingPromise(atomState.v)) {\n for (const [a, n] of atomState.d) {\n if (!mounted.d.has(a)) {\n const aState = ensureAtomState(a);\n const aMounted = mountAtom(a);\n aMounted.t.add(atom);\n mounted.d.add(a);\n if (n !== aState.n) {\n changedAtoms.add(a);\n (_a = storeHooks.c) == null ? void 0 : _a.call(storeHooks, a);\n invalidateDependents(a);\n }\n }\n }\n for (const a of mounted.d || []) {\n if (!atomState.d.has(a)) {\n mounted.d.delete(a);\n const aMounted = unmountAtom(a);\n aMounted == null ? void 0 : aMounted.t.delete(atom);\n }\n }\n }\n });\n const mountAtom = buildingBlockFunctions[7] || ((atom) => {\n var _a;\n const atomState = ensureAtomState(atom);\n let mounted = mountedMap.get(atom);\n if (!mounted) {\n readAtomState(atom);\n for (const a of atomState.d.keys()) {\n const aMounted = mountAtom(a);\n aMounted.t.add(atom);\n }\n mounted = {\n l: /* @__PURE__ */ new Set(),\n d: new Set(atomState.d.keys()),\n t: /* @__PURE__ */ new Set()\n };\n mountedMap.set(atom, mounted);\n (_a = storeHooks.m) == null ? void 0 : _a.call(storeHooks, atom);\n if (isActuallyWritableAtom(atom)) {\n const processOnMount = () => {\n let isSync = true;\n const setAtom = (...args) => {\n try {\n return writeAtomState(atom, ...args);\n } finally {\n if (!isSync) {\n recomputeInvalidatedAtoms();\n flushCallbacks();\n }\n }\n };\n try {\n const onUnmount = atomOnMount(atom, setAtom);\n if (onUnmount) {\n mounted.u = () => {\n isSync = true;\n try {\n onUnmount();\n } finally {\n isSync = false;\n }\n };\n }\n } finally {\n isSync = false;\n }\n };\n mountCallbacks.add(processOnMount);\n }\n }\n return mounted;\n });\n const unmountAtom = buildingBlockFunctions[8] || ((atom) => {\n var _a;\n const atomState = ensureAtomState(atom);\n let mounted = mountedMap.get(atom);\n if (mounted && !mounted.l.size && !Array.from(mounted.t).some((a) => {\n var _a2;\n return (_a2 = mountedMap.get(a)) == null ? void 0 : _a2.d.has(atom);\n })) {\n if (mounted.u) {\n unmountCallbacks.add(mounted.u);\n }\n mounted = void 0;\n mountedMap.delete(atom);\n (_a = storeHooks.u) == null ? void 0 : _a.call(storeHooks, atom);\n for (const a of atomState.d.keys()) {\n const aMounted = unmountAtom(a);\n aMounted == null ? void 0 : aMounted.t.delete(atom);\n }\n return void 0;\n }\n return mounted;\n });\n const buildingBlocks = [\n // store state\n atomStateMap,\n mountedMap,\n invalidatedAtoms,\n changedAtoms,\n mountCallbacks,\n unmountCallbacks,\n storeHooks,\n // atom intercepters\n atomRead,\n atomWrite,\n atomOnInit,\n atomOnMount,\n // building-block functions\n ensureAtomState,\n flushCallbacks,\n recomputeInvalidatedAtoms,\n readAtomState,\n invalidateDependents,\n writeAtomState,\n mountDependencies,\n mountAtom,\n unmountAtom\n ];\n const store = {\n get: (atom) => returnAtomValue(readAtomState(atom)),\n set: (atom, ...args) => {\n try {\n return writeAtomState(atom, ...args);\n } finally {\n recomputeInvalidatedAtoms();\n flushCallbacks();\n }\n },\n sub: (atom, listener) => {\n const mounted = mountAtom(atom);\n const listeners = mounted.l;\n listeners.add(listener);\n flushCallbacks();\n return () => {\n listeners.delete(listener);\n unmountAtom(atom);\n flushCallbacks();\n };\n }\n };\n Object.defineProperty(store, BUILDING_BLOCKS, { value: buildingBlocks });\n return store;\n};\nconst INTERNAL_buildStoreRev1 = buildStore;\nconst INTERNAL_getBuildingBlocksRev1 = getBuildingBlocks;\nconst INTERNAL_initializeStoreHooks = initializeStoreHooks;\nconst INTERNAL_isSelfAtom = isSelfAtom;\nconst INTERNAL_hasInitialValue = hasInitialValue;\nconst INTERNAL_isActuallyWritableAtom = isActuallyWritableAtom;\nconst INTERNAL_isAtomStateInitialized = isAtomStateInitialized;\nconst INTERNAL_returnAtomValue = returnAtomValue;\nconst INTERNAL_getPromiseState = getPromiseState;\nconst INTERNAL_isPendingPromise = isPendingPromise;\nconst INTERNAL_cancelPromise = cancelPromise;\nconst INTERNAL_patchPromiseForCancelability = patchPromiseForCancelability;\nconst INTERNAL_isPromiseLike = isPromiseLike;\nconst INTERNAL_addPendingPromiseToDependency = addPendingPromiseToDependency;\nconst INTERNAL_setAtomStateValueOrPromise = setAtomStateValueOrPromise;\nconst INTERNAL_getMountedOrPendingDependents = getMountedOrPendingDependents;\n\nexport { INTERNAL_addPendingPromiseToDependency, INTERNAL_buildStoreRev1, INTERNAL_cancelPromise, INTERNAL_getBuildingBlocksRev1, INTERNAL_getMountedOrPendingDependents, INTERNAL_getPromiseState, INTERNAL_hasInitialValue, INTERNAL_initializeStoreHooks, INTERNAL_isActuallyWritableAtom, INTERNAL_isAtomStateInitialized, INTERNAL_isPendingPromise, INTERNAL_isPromiseLike, INTERNAL_isSelfAtom, INTERNAL_patchPromiseForCancelability, INTERNAL_returnAtomValue, INTERNAL_setAtomStateValueOrPromise };\n"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI;AACnF,MAAM,eAAe,GAAG,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI;AAChD,MAAM,sBAAsB,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK;AACrD,MAAM,sBAAsB,GAAG,CAAC,SAAS,KAAK,GAAG,IAAI,SAAS,IAAI,GAAG,IAAI,SAAS;AAClF,MAAM,eAAe,GAAG,CAAC,SAAS,KAAK;AACvC,EAAE,IAAI,GAAG,IAAI,SAAS,EAAE;AACxB,IAAI,MAAM,SAAS,CAAC,CAAC;AACrB;AACA,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,MAAM,MAAM,YAAY,IAAI,EAAE,GAAG,IAAI,SAAS,CAAC,EAAE;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