@tanstack/query-devtools 5.107.1 → 5.108.0
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/build/DevtoolsComponent-BGJcHYi5.cjs +2 -0
- package/build/DevtoolsComponent-KSaqMRUY.cjs +45 -0
- package/build/{DevtoolsComponent-C7hVCcUy.js → DevtoolsComponent-e0KiEsCw.js} +1 -1
- package/build/DevtoolsComponent-u2WBBkWz.js +3 -0
- package/build/DevtoolsComponent-u2WBBkWz.js.map +1 -0
- package/build/DevtoolsPanelComponent-1kShldEU.cjs +2 -0
- package/build/{DevtoolsPanelComponent-Dc49CXag.cjs → DevtoolsPanelComponent-CpAkTR9C.cjs} +11 -11
- package/build/{DevtoolsPanelComponent-XShN-s8X.js → DevtoolsPanelComponent-D9e2k2ne.js} +1 -1
- package/build/DevtoolsPanelComponent-DKq0vg7C.js +3 -0
- package/build/DevtoolsPanelComponent-DKq0vg7C.js.map +1 -0
- package/build/DevtoolsSubscriptionsProvider-BQAD7Uyk.js +1292 -0
- package/build/DevtoolsSubscriptionsProvider-BQAD7Uyk.js.map +1 -0
- package/build/DevtoolsSubscriptionsProvider-B_iiu5dm.cjs +1291 -0
- package/build/{Devtools-CXcMqCPe.js → DevtoolsSubscriptionsProvider-CtZ2t7t0.js} +949 -949
- package/build/dev.cjs +2 -2
- package/build/dev.js +2 -2
- package/build/index.cjs +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/utils-DC2pN79q.js.map +1 -1
- package/package.json +2 -2
- package/src/Devtools.tsx +52 -46
- package/src/DevtoolsComponent.tsx +6 -6
- package/src/DevtoolsPanelComponent.tsx +6 -6
- package/src/Explorer.tsx +13 -13
- package/src/TanstackQueryDevtools.tsx +2 -2
- package/src/TanstackQueryDevtoolsPanel.tsx +2 -2
- package/src/VirtualList.tsx +1 -1
- package/src/contexts/PiPContext.tsx +1 -1
- package/src/contexts/index.ts +13 -3
- package/src/createCacheSubscriptionRegistry.ts +4 -1
- package/src/providers/DevtoolsOfflineProvider.tsx +2 -2
- package/src/providers/DevtoolsStateProvider.tsx +1 -1
- package/src/providers/DevtoolsSubscriptionsProvider.tsx +2 -2
- package/src/utils.tsx +1 -1
- package/build/Devtools-B2jiIqEJ.js +0 -1292
- package/build/Devtools-B2jiIqEJ.js.map +0 -1
- package/build/Devtools-C6D0zIvx.cjs +0 -1291
- package/build/DevtoolsComponent-CfBgdmsl.cjs +0 -45
- package/build/DevtoolsComponent-D5toeyeh.cjs +0 -2
- package/build/DevtoolsComponent-DGRxtIwZ.js +0 -3
- package/build/DevtoolsComponent-DGRxtIwZ.js.map +0 -1
- package/build/DevtoolsPanelComponent-CPGCRAPs.js +0 -3
- package/build/DevtoolsPanelComponent-CPGCRAPs.js.map +0 -1
- package/build/DevtoolsPanelComponent-D_S99j7E.cjs +0 -2
- package/build/{Devtools-Dy8Npldt.cjs → DevtoolsSubscriptionsProvider-D9zXQvDq.cjs} +948 -948
|
@@ -56,181 +56,6 @@ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
|
56
56
|
for (prevEl of prev) if (!current.includes(prevEl)) handleRemoved(prevEl);
|
|
57
57
|
for (currEl of current) if (!prev.includes(currEl)) handleAdded(currEl);
|
|
58
58
|
}
|
|
59
|
-
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.9.18/node_modules/@solid-primitives/storage/dist/index.js
|
|
60
|
-
function createStorage(props) {
|
|
61
|
-
const [error, setError] = createSignal();
|
|
62
|
-
const handleError = props?.throw ? (err, fallback) => {
|
|
63
|
-
setError(err instanceof Error ? err : new Error(fallback));
|
|
64
|
-
throw err;
|
|
65
|
-
} : (err, fallback) => {
|
|
66
|
-
setError(err instanceof Error ? err : new Error(fallback));
|
|
67
|
-
};
|
|
68
|
-
const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
|
|
69
|
-
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
70
|
-
const signals = /* @__PURE__ */ new Map();
|
|
71
|
-
const store = new Proxy({}, { get(_, key) {
|
|
72
|
-
let node = signals.get(key);
|
|
73
|
-
if (!node) {
|
|
74
|
-
node = createSignal(void 0, { equals: false });
|
|
75
|
-
signals.set(key, node);
|
|
76
|
-
}
|
|
77
|
-
node[0]();
|
|
78
|
-
const value = apis.reduce((result, api) => {
|
|
79
|
-
if (result !== null || !api) return result;
|
|
80
|
-
try {
|
|
81
|
-
return api.getItem(`${prefix}${key}`);
|
|
82
|
-
} catch (err) {
|
|
83
|
-
handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
}, null);
|
|
87
|
-
if (value !== null && props?.deserializer) return props.deserializer(value, key, props.options);
|
|
88
|
-
return value;
|
|
89
|
-
} });
|
|
90
|
-
const setter = (key, value, options) => {
|
|
91
|
-
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
92
|
-
const apiKey = `${prefix}${key}`;
|
|
93
|
-
apis.forEach((api) => {
|
|
94
|
-
try {
|
|
95
|
-
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
96
|
-
} catch (err) {
|
|
97
|
-
handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
const node = signals.get(key);
|
|
101
|
-
node && node[1]();
|
|
102
|
-
};
|
|
103
|
-
const remove = (key) => apis.forEach((api) => {
|
|
104
|
-
try {
|
|
105
|
-
api.removeItem(`${prefix}${key}`);
|
|
106
|
-
} catch (err) {
|
|
107
|
-
handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
const clear = () => apis.forEach((api) => {
|
|
111
|
-
try {
|
|
112
|
-
api.clear();
|
|
113
|
-
} catch (err) {
|
|
114
|
-
handleError(err, `Error clearing ${api.name}`);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
const toJSON = () => {
|
|
118
|
-
const result = {};
|
|
119
|
-
const addValue = (key, value) => {
|
|
120
|
-
if (!result.hasOwnProperty(key)) {
|
|
121
|
-
const filteredValue = value && props?.deserializer ? props.deserializer(value, key, props.options) : value;
|
|
122
|
-
if (filteredValue) result[key] = filteredValue;
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
apis.forEach((api) => {
|
|
126
|
-
if (typeof api.getAll === "function") {
|
|
127
|
-
let values;
|
|
128
|
-
try {
|
|
129
|
-
values = api.getAll();
|
|
130
|
-
} catch (err) {
|
|
131
|
-
handleError(err, `Error getting all values from in ${api.name}`);
|
|
132
|
-
}
|
|
133
|
-
for (const key of values) addValue(key, values[key]);
|
|
134
|
-
} else {
|
|
135
|
-
let index = 0, key;
|
|
136
|
-
try {
|
|
137
|
-
while (key = api.key(index++)) if (!result.hasOwnProperty(key)) addValue(key, api.getItem(key));
|
|
138
|
-
} catch (err) {
|
|
139
|
-
handleError(err, `Error getting all values from ${api.name}`);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
return result;
|
|
144
|
-
};
|
|
145
|
-
props?.sync !== false && onMount(() => {
|
|
146
|
-
const listener = (ev) => {
|
|
147
|
-
let changed = false;
|
|
148
|
-
apis.forEach((api) => {
|
|
149
|
-
try {
|
|
150
|
-
if (api !== ev.storageArea && ev.key && ev.newValue !== api.getItem(ev.key)) {
|
|
151
|
-
ev.newValue ? api.setItem(ev.key, ev.newValue) : api.removeItem(ev.key);
|
|
152
|
-
changed = true;
|
|
153
|
-
}
|
|
154
|
-
} catch (err) {
|
|
155
|
-
handleError(err, `Error synching api ${api.name} from storage event (${ev.key}=${ev.newValue})`);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
changed && ev.key && signals.get(ev.key)?.[1]();
|
|
159
|
-
};
|
|
160
|
-
if ("addEventListener" in globalThis) {
|
|
161
|
-
globalThis.addEventListener("storage", listener);
|
|
162
|
-
onCleanup(() => globalThis.removeEventListener("storage", listener));
|
|
163
|
-
} else {
|
|
164
|
-
apis.forEach((api) => api.addEventListener?.("storage", listener));
|
|
165
|
-
onCleanup(() => apis.forEach((api) => api.removeEventListener?.("storage", listener)));
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
return [
|
|
169
|
-
store,
|
|
170
|
-
setter,
|
|
171
|
-
{
|
|
172
|
-
clear,
|
|
173
|
-
error,
|
|
174
|
-
remove,
|
|
175
|
-
toJSON
|
|
176
|
-
}
|
|
177
|
-
];
|
|
178
|
-
}
|
|
179
|
-
var createLocalStorage = createStorage;
|
|
180
|
-
var addClearMethod = (storage) => {
|
|
181
|
-
if (typeof storage.clear === "function") return storage;
|
|
182
|
-
storage.clear = () => {
|
|
183
|
-
let key;
|
|
184
|
-
while (key = storage.key(0)) storage.removeItem(key);
|
|
185
|
-
};
|
|
186
|
-
return storage;
|
|
187
|
-
};
|
|
188
|
-
var serializeCookieOptions = (options) => {
|
|
189
|
-
if (!options) return "";
|
|
190
|
-
let memo = "";
|
|
191
|
-
for (const key in options) {
|
|
192
|
-
if (!options.hasOwnProperty(key)) continue;
|
|
193
|
-
const value = options[key];
|
|
194
|
-
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
195
|
-
}
|
|
196
|
-
return memo;
|
|
197
|
-
};
|
|
198
|
-
var cookieStorage = addClearMethod({
|
|
199
|
-
_cookies: [globalThis.document, "cookie"],
|
|
200
|
-
getItem: (key) => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
201
|
-
setItem: (key, value, options) => {
|
|
202
|
-
const oldValue = cookieStorage.getItem(key);
|
|
203
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(options)}`;
|
|
204
|
-
const storageEvent = Object.assign(new Event("storage"), {
|
|
205
|
-
key,
|
|
206
|
-
oldValue,
|
|
207
|
-
newValue: value,
|
|
208
|
-
url: globalThis.document.URL,
|
|
209
|
-
storageArea: cookieStorage
|
|
210
|
-
});
|
|
211
|
-
window.dispatchEvent(storageEvent);
|
|
212
|
-
},
|
|
213
|
-
removeItem: (key) => {
|
|
214
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({ expires: /* @__PURE__ */ new Date(0) })}`;
|
|
215
|
-
},
|
|
216
|
-
key: (index) => {
|
|
217
|
-
let key = null;
|
|
218
|
-
let count = 0;
|
|
219
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g, (_, found) => {
|
|
220
|
-
if (!key && found && count++ === index) key = found;
|
|
221
|
-
return "";
|
|
222
|
-
});
|
|
223
|
-
return key;
|
|
224
|
-
},
|
|
225
|
-
get length() {
|
|
226
|
-
let length = 0;
|
|
227
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g, (found) => {
|
|
228
|
-
length += found ? 1 : 0;
|
|
229
|
-
return "";
|
|
230
|
-
});
|
|
231
|
-
return length;
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
59
|
// ../../node_modules/.pnpm/@solid-primitives+event-listener@2.4.6_solid-js@1.9.18/node_modules/@solid-primitives/event-listener/dist/eventListener.js
|
|
235
60
|
function makeEventListener(target, type, handler, options) {
|
|
236
61
|
target.addEventListener(type, handler, options);
|
|
@@ -6509,172 +6334,181 @@ var DropdownMenu = Object.assign(DropdownMenuRoot, {
|
|
|
6509
6334
|
SubTrigger: MenuSubTrigger,
|
|
6510
6335
|
Trigger: MenuTrigger
|
|
6511
6336
|
});
|
|
6512
|
-
//
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
/**
|
|
6521
|
-
* Returns the devtools configuration from context, such as the `client` and the `onlineManager`.
|
|
6522
|
-
* @returns The devtools configuration.
|
|
6523
|
-
*/
|
|
6524
|
-
function useQueryDevtoolsContext() {
|
|
6525
|
-
return useContext(QueryDevtoolsContext);
|
|
6526
|
-
}
|
|
6527
|
-
// src/contexts/DevtoolsOfflineContext.ts
|
|
6528
|
-
const DevtoolsOfflineContext = createContext();
|
|
6529
|
-
/**
|
|
6530
|
-
* Returns the devtools offline state provided by `DevtoolsOfflineProvider`.
|
|
6531
|
-
* @returns The offline state.
|
|
6532
|
-
* @throws {Error} If there is no `DevtoolsOfflineProvider` above.
|
|
6533
|
-
*/
|
|
6534
|
-
function useDevtoolsOffline() {
|
|
6535
|
-
const state = useContext(DevtoolsOfflineContext);
|
|
6536
|
-
if (!state) throw new Error("Missing DevtoolsOfflineProvider");
|
|
6537
|
-
return state;
|
|
6538
|
-
}
|
|
6539
|
-
// src/providers/DevtoolsOfflineProvider.tsx
|
|
6540
|
-
/**
|
|
6541
|
-
* Provides its children with the offline state of the devtools `onlineManager`, and a function
|
|
6542
|
-
* that toggles it.
|
|
6543
|
-
* @param props - The `children` to render.
|
|
6544
|
-
* @returns The `children`, wrapped in the context provider.
|
|
6545
|
-
*/
|
|
6546
|
-
function DevtoolsOfflineProvider(props) {
|
|
6547
|
-
const [offline, setOffline] = createSignal(false);
|
|
6548
|
-
const context = useQueryDevtoolsContext();
|
|
6549
|
-
createEffect(() => {
|
|
6550
|
-
const manager = context.onlineManager;
|
|
6551
|
-
setOffline(!manager.isOnline());
|
|
6552
|
-
const unsubscribe = manager.subscribe((online) => setOffline(!online));
|
|
6553
|
-
onCleanup(unsubscribe);
|
|
6554
|
-
});
|
|
6555
|
-
const state = {
|
|
6556
|
-
offline,
|
|
6557
|
-
toggleOffline: () => {
|
|
6558
|
-
const manager = context.onlineManager;
|
|
6559
|
-
manager.setOnline(!manager.isOnline());
|
|
6560
|
-
}
|
|
6337
|
+
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.9.18/node_modules/@solid-primitives/storage/dist/index.js
|
|
6338
|
+
function createStorage(props) {
|
|
6339
|
+
const [error, setError] = createSignal();
|
|
6340
|
+
const handleError = props?.throw ? (err, fallback) => {
|
|
6341
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
6342
|
+
throw err;
|
|
6343
|
+
} : (err, fallback) => {
|
|
6344
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
6561
6345
|
};
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6346
|
+
const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
|
|
6347
|
+
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
6348
|
+
const signals = /* @__PURE__ */ new Map();
|
|
6349
|
+
const store = new Proxy({}, { get(_, key) {
|
|
6350
|
+
let node = signals.get(key);
|
|
6351
|
+
if (!node) {
|
|
6352
|
+
node = createSignal(void 0, { equals: false });
|
|
6353
|
+
signals.set(key, node);
|
|
6566
6354
|
}
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6355
|
+
node[0]();
|
|
6356
|
+
const value = apis.reduce((result, api) => {
|
|
6357
|
+
if (result !== null || !api) return result;
|
|
6358
|
+
try {
|
|
6359
|
+
return api.getItem(`${prefix}${key}`);
|
|
6360
|
+
} catch (err) {
|
|
6361
|
+
handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
6362
|
+
return null;
|
|
6363
|
+
}
|
|
6364
|
+
}, null);
|
|
6365
|
+
if (value !== null && props?.deserializer) return props.deserializer(value, key, props.options);
|
|
6366
|
+
return value;
|
|
6367
|
+
} });
|
|
6368
|
+
const setter = (key, value, options) => {
|
|
6369
|
+
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
6370
|
+
const apiKey = `${prefix}${key}`;
|
|
6371
|
+
apis.forEach((api) => {
|
|
6372
|
+
try {
|
|
6373
|
+
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
6374
|
+
} catch (err) {
|
|
6375
|
+
handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
6376
|
+
}
|
|
6589
6377
|
});
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
/**
|
|
6593
|
-
* Updates every subscription whose `shouldUpdate` accepts the event.
|
|
6594
|
-
* @param cache - The cache to compute the values from.
|
|
6595
|
-
* @param event - The cache event.
|
|
6596
|
-
* @param schedule - Runs each update. Defaults to running it right away.
|
|
6597
|
-
*/
|
|
6598
|
-
function notify(cache, event, schedule = (update) => update()) {
|
|
6599
|
-
for (const [id, subscription] of subscriptions) {
|
|
6600
|
-
if (!subscription.shouldUpdate(event)) continue;
|
|
6601
|
-
schedule(() => {
|
|
6602
|
-
if (subscriptions.has(id)) subscription.update(cache);
|
|
6603
|
-
});
|
|
6604
|
-
}
|
|
6605
|
-
}
|
|
6606
|
-
return {
|
|
6607
|
-
register,
|
|
6608
|
-
notify
|
|
6609
|
-
};
|
|
6610
|
-
}
|
|
6611
|
-
// src/contexts/DevtoolsSubscriptionsContext.ts
|
|
6612
|
-
const DevtoolsSubscriptionsContext = createContext();
|
|
6613
|
-
/**
|
|
6614
|
-
* Returns the devtools cache subscription registries provided by `DevtoolsSubscriptionsProvider`.
|
|
6615
|
-
* @returns The cache subscription registries.
|
|
6616
|
-
* @throws {Error} If there is no `DevtoolsSubscriptionsProvider` above.
|
|
6617
|
-
*/
|
|
6618
|
-
function useDevtoolsSubscriptions() {
|
|
6619
|
-
const subscriptions = useContext(DevtoolsSubscriptionsContext);
|
|
6620
|
-
if (!subscriptions) throw new Error("Missing DevtoolsSubscriptionsProvider");
|
|
6621
|
-
return subscriptions;
|
|
6622
|
-
}
|
|
6623
|
-
// src/providers/DevtoolsSubscriptionsProvider.tsx
|
|
6624
|
-
/**
|
|
6625
|
-
* Provides the query and mutation cache subscription registries to its children.
|
|
6626
|
-
* @param props - The `children` to render.
|
|
6627
|
-
* @returns The `children`, wrapped in the context provider.
|
|
6628
|
-
*/
|
|
6629
|
-
function DevtoolsSubscriptionsProvider(props) {
|
|
6630
|
-
const subscriptions = {
|
|
6631
|
-
queryCacheSubscriptions: createCacheSubscriptionRegistry(),
|
|
6632
|
-
mutationCacheSubscriptions: createCacheSubscriptionRegistry()
|
|
6378
|
+
const node = signals.get(key);
|
|
6379
|
+
node && node[1]();
|
|
6633
6380
|
};
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6381
|
+
const remove = (key) => apis.forEach((api) => {
|
|
6382
|
+
try {
|
|
6383
|
+
api.removeItem(`${prefix}${key}`);
|
|
6384
|
+
} catch (err) {
|
|
6385
|
+
handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
6638
6386
|
}
|
|
6639
6387
|
});
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6388
|
+
const clear = () => apis.forEach((api) => {
|
|
6389
|
+
try {
|
|
6390
|
+
api.clear();
|
|
6391
|
+
} catch (err) {
|
|
6392
|
+
handleError(err, `Error clearing ${api.name}`);
|
|
6393
|
+
}
|
|
6394
|
+
});
|
|
6395
|
+
const toJSON = () => {
|
|
6396
|
+
const result = {};
|
|
6397
|
+
const addValue = (key, value) => {
|
|
6398
|
+
if (!result.hasOwnProperty(key)) {
|
|
6399
|
+
const filteredValue = value && props?.deserializer ? props.deserializer(value, key, props.options) : value;
|
|
6400
|
+
if (filteredValue) result[key] = filteredValue;
|
|
6401
|
+
}
|
|
6402
|
+
};
|
|
6403
|
+
apis.forEach((api) => {
|
|
6404
|
+
if (typeof api.getAll === "function") {
|
|
6405
|
+
let values;
|
|
6406
|
+
try {
|
|
6407
|
+
values = api.getAll();
|
|
6408
|
+
} catch (err) {
|
|
6409
|
+
handleError(err, `Error getting all values from in ${api.name}`);
|
|
6410
|
+
}
|
|
6411
|
+
for (const key of values) addValue(key, values[key]);
|
|
6412
|
+
} else {
|
|
6413
|
+
let index = 0, key;
|
|
6414
|
+
try {
|
|
6415
|
+
while (key = api.key(index++)) if (!result.hasOwnProperty(key)) addValue(key, api.getItem(key));
|
|
6416
|
+
} catch (err) {
|
|
6417
|
+
handleError(err, `Error getting all values from ${api.name}`);
|
|
6418
|
+
}
|
|
6419
|
+
}
|
|
6420
|
+
});
|
|
6421
|
+
return result;
|
|
6670
6422
|
};
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6423
|
+
props?.sync !== false && onMount(() => {
|
|
6424
|
+
const listener = (ev) => {
|
|
6425
|
+
let changed = false;
|
|
6426
|
+
apis.forEach((api) => {
|
|
6427
|
+
try {
|
|
6428
|
+
if (api !== ev.storageArea && ev.key && ev.newValue !== api.getItem(ev.key)) {
|
|
6429
|
+
ev.newValue ? api.setItem(ev.key, ev.newValue) : api.removeItem(ev.key);
|
|
6430
|
+
changed = true;
|
|
6431
|
+
}
|
|
6432
|
+
} catch (err) {
|
|
6433
|
+
handleError(err, `Error synching api ${api.name} from storage event (${ev.key}=${ev.newValue})`);
|
|
6434
|
+
}
|
|
6435
|
+
});
|
|
6436
|
+
changed && ev.key && signals.get(ev.key)?.[1]();
|
|
6437
|
+
};
|
|
6438
|
+
if ("addEventListener" in globalThis) {
|
|
6439
|
+
globalThis.addEventListener("storage", listener);
|
|
6440
|
+
onCleanup(() => globalThis.removeEventListener("storage", listener));
|
|
6441
|
+
} else {
|
|
6442
|
+
apis.forEach((api) => api.addEventListener?.("storage", listener));
|
|
6443
|
+
onCleanup(() => apis.forEach((api) => api.removeEventListener?.("storage", listener)));
|
|
6675
6444
|
}
|
|
6676
6445
|
});
|
|
6446
|
+
return [
|
|
6447
|
+
store,
|
|
6448
|
+
setter,
|
|
6449
|
+
{
|
|
6450
|
+
clear,
|
|
6451
|
+
error,
|
|
6452
|
+
remove,
|
|
6453
|
+
toJSON
|
|
6454
|
+
}
|
|
6455
|
+
];
|
|
6677
6456
|
}
|
|
6457
|
+
var createLocalStorage = createStorage;
|
|
6458
|
+
var addClearMethod = (storage) => {
|
|
6459
|
+
if (typeof storage.clear === "function") return storage;
|
|
6460
|
+
storage.clear = () => {
|
|
6461
|
+
let key;
|
|
6462
|
+
while (key = storage.key(0)) storage.removeItem(key);
|
|
6463
|
+
};
|
|
6464
|
+
return storage;
|
|
6465
|
+
};
|
|
6466
|
+
var serializeCookieOptions = (options) => {
|
|
6467
|
+
if (!options) return "";
|
|
6468
|
+
let memo = "";
|
|
6469
|
+
for (const key in options) {
|
|
6470
|
+
if (!options.hasOwnProperty(key)) continue;
|
|
6471
|
+
const value = options[key];
|
|
6472
|
+
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
6473
|
+
}
|
|
6474
|
+
return memo;
|
|
6475
|
+
};
|
|
6476
|
+
var cookieStorage = addClearMethod({
|
|
6477
|
+
_cookies: [globalThis.document, "cookie"],
|
|
6478
|
+
getItem: (key) => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
6479
|
+
setItem: (key, value, options) => {
|
|
6480
|
+
const oldValue = cookieStorage.getItem(key);
|
|
6481
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(options)}`;
|
|
6482
|
+
const storageEvent = Object.assign(new Event("storage"), {
|
|
6483
|
+
key,
|
|
6484
|
+
oldValue,
|
|
6485
|
+
newValue: value,
|
|
6486
|
+
url: globalThis.document.URL,
|
|
6487
|
+
storageArea: cookieStorage
|
|
6488
|
+
});
|
|
6489
|
+
window.dispatchEvent(storageEvent);
|
|
6490
|
+
},
|
|
6491
|
+
removeItem: (key) => {
|
|
6492
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({ expires: /* @__PURE__ */ new Date(0) })}`;
|
|
6493
|
+
},
|
|
6494
|
+
key: (index) => {
|
|
6495
|
+
let key = null;
|
|
6496
|
+
let count = 0;
|
|
6497
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g, (_, found) => {
|
|
6498
|
+
if (!key && found && count++ === index) key = found;
|
|
6499
|
+
return "";
|
|
6500
|
+
});
|
|
6501
|
+
return key;
|
|
6502
|
+
},
|
|
6503
|
+
get length() {
|
|
6504
|
+
let length = 0;
|
|
6505
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g, (found) => {
|
|
6506
|
+
length += found ? 1 : 0;
|
|
6507
|
+
return "";
|
|
6508
|
+
});
|
|
6509
|
+
return length;
|
|
6510
|
+
}
|
|
6511
|
+
});
|
|
6678
6512
|
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@9.1.2/node_modules/@tanstack/match-sorter-utils/dist/remove-accents.js
|
|
6679
6513
|
const characterMap = {
|
|
6680
6514
|
À: "A",
|
|
@@ -7278,6 +7112,20 @@ function getAccessorAttributes(accessor) {
|
|
|
7278
7112
|
...accessor
|
|
7279
7113
|
};
|
|
7280
7114
|
}
|
|
7115
|
+
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
7116
|
+
function r(e) {
|
|
7117
|
+
var t, f, n = "";
|
|
7118
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
7119
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
7120
|
+
var o = e.length;
|
|
7121
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
7122
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
7123
|
+
return n;
|
|
7124
|
+
}
|
|
7125
|
+
function clsx() {
|
|
7126
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
7127
|
+
return n;
|
|
7128
|
+
}
|
|
7281
7129
|
// ../../node_modules/.pnpm/goober@2.1.19_csstype@3.2.3/node_modules/goober/dist/goober.modern.js
|
|
7282
7130
|
let e = { data: "" };
|
|
7283
7131
|
let t = (t) => {
|
|
@@ -7343,20 +7191,6 @@ function u(e) {
|
|
|
7343
7191
|
}
|
|
7344
7192
|
u.bind({ g: 1 });
|
|
7345
7193
|
u.bind({ k: 1 });
|
|
7346
|
-
// ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
7347
|
-
function r(e) {
|
|
7348
|
-
var t, f, n = "";
|
|
7349
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
7350
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
7351
|
-
var o = e.length;
|
|
7352
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
7353
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
7354
|
-
return n;
|
|
7355
|
-
}
|
|
7356
|
-
function clsx() {
|
|
7357
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
7358
|
-
return n;
|
|
7359
|
-
}
|
|
7360
7194
|
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.1.2_solid-js@1.9.18/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
7361
7195
|
const noop = () => {};
|
|
7362
7196
|
/**
|
|
@@ -7564,352 +7398,349 @@ var TransitionGroup = (props) => {
|
|
|
7564
7398
|
}
|
|
7565
7399
|
});
|
|
7566
7400
|
};
|
|
7567
|
-
|
|
7568
|
-
const
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
900: "#101828"
|
|
7610
|
-
},
|
|
7611
|
-
blue: {
|
|
7612
|
-
25: "#F5FAFF",
|
|
7613
|
-
50: "#EFF8FF",
|
|
7614
|
-
100: "#D1E9FF",
|
|
7615
|
-
200: "#B2DDFF",
|
|
7616
|
-
300: "#84CAFF",
|
|
7617
|
-
400: "#53B1FD",
|
|
7618
|
-
500: "#2E90FA",
|
|
7619
|
-
600: "#1570EF",
|
|
7620
|
-
700: "#175CD3",
|
|
7621
|
-
800: "#1849A9",
|
|
7622
|
-
900: "#194185"
|
|
7623
|
-
},
|
|
7624
|
-
green: {
|
|
7625
|
-
25: "#F6FEF9",
|
|
7626
|
-
50: "#ECFDF3",
|
|
7627
|
-
100: "#D1FADF",
|
|
7628
|
-
200: "#A6F4C5",
|
|
7629
|
-
300: "#6CE9A6",
|
|
7630
|
-
400: "#32D583",
|
|
7631
|
-
500: "#12B76A",
|
|
7632
|
-
600: "#039855",
|
|
7633
|
-
700: "#027A48",
|
|
7634
|
-
800: "#05603A",
|
|
7635
|
-
900: "#054F31"
|
|
7636
|
-
},
|
|
7637
|
-
red: {
|
|
7638
|
-
50: "#fef2f2",
|
|
7639
|
-
100: "#fee2e2",
|
|
7640
|
-
200: "#fecaca",
|
|
7641
|
-
300: "#fca5a5",
|
|
7642
|
-
400: "#f87171",
|
|
7643
|
-
500: "#ef4444",
|
|
7644
|
-
600: "#dc2626",
|
|
7645
|
-
700: "#b91c1c",
|
|
7646
|
-
800: "#991b1b",
|
|
7647
|
-
900: "#7f1d1d",
|
|
7648
|
-
950: "#450a0a"
|
|
7649
|
-
},
|
|
7650
|
-
yellow: {
|
|
7651
|
-
25: "#FFFCF5",
|
|
7652
|
-
50: "#FFFAEB",
|
|
7653
|
-
100: "#FEF0C7",
|
|
7654
|
-
200: "#FEDF89",
|
|
7655
|
-
300: "#FEC84B",
|
|
7656
|
-
400: "#FDB022",
|
|
7657
|
-
500: "#F79009",
|
|
7658
|
-
600: "#DC6803",
|
|
7659
|
-
700: "#B54708",
|
|
7660
|
-
800: "#93370D",
|
|
7661
|
-
900: "#7A2E0E"
|
|
7662
|
-
},
|
|
7663
|
-
purple: {
|
|
7664
|
-
25: "#FAFAFF",
|
|
7665
|
-
50: "#F4F3FF",
|
|
7666
|
-
100: "#EBE9FE",
|
|
7667
|
-
200: "#D9D6FE",
|
|
7668
|
-
300: "#BDB4FE",
|
|
7669
|
-
400: "#9B8AFB",
|
|
7670
|
-
500: "#7A5AF8",
|
|
7671
|
-
600: "#6938EF",
|
|
7672
|
-
700: "#5925DC",
|
|
7673
|
-
800: "#4A1FB8",
|
|
7674
|
-
900: "#3E1C96"
|
|
7675
|
-
},
|
|
7676
|
-
teal: {
|
|
7677
|
-
25: "#F6FEFC",
|
|
7678
|
-
50: "#F0FDF9",
|
|
7679
|
-
100: "#CCFBEF",
|
|
7680
|
-
200: "#99F6E0",
|
|
7681
|
-
300: "#5FE9D0",
|
|
7682
|
-
400: "#2ED3B7",
|
|
7683
|
-
500: "#15B79E",
|
|
7684
|
-
600: "#0E9384",
|
|
7685
|
-
700: "#107569",
|
|
7686
|
-
800: "#125D56",
|
|
7687
|
-
900: "#134E48"
|
|
7688
|
-
},
|
|
7689
|
-
pink: {
|
|
7690
|
-
25: "#fdf2f8",
|
|
7691
|
-
50: "#fce7f3",
|
|
7692
|
-
100: "#fbcfe8",
|
|
7693
|
-
200: "#f9a8d4",
|
|
7694
|
-
300: "#f472b6",
|
|
7695
|
-
400: "#ec4899",
|
|
7696
|
-
500: "#db2777",
|
|
7697
|
-
600: "#be185d",
|
|
7698
|
-
700: "#9d174d",
|
|
7699
|
-
800: "#831843",
|
|
7700
|
-
900: "#500724"
|
|
7701
|
-
},
|
|
7702
|
-
cyan: {
|
|
7703
|
-
25: "#ecfeff",
|
|
7704
|
-
50: "#cffafe",
|
|
7705
|
-
100: "#a5f3fc",
|
|
7706
|
-
200: "#67e8f9",
|
|
7707
|
-
300: "#22d3ee",
|
|
7708
|
-
400: "#06b6d4",
|
|
7709
|
-
500: "#0891b2",
|
|
7710
|
-
600: "#0e7490",
|
|
7711
|
-
700: "#155e75",
|
|
7712
|
-
800: "#164e63",
|
|
7713
|
-
900: "#083344"
|
|
7401
|
+
const THEME_PREFERENCE = "system";
|
|
7402
|
+
const DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
7403
|
+
const DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
7404
|
+
const FILTER_SCOPES = [
|
|
7405
|
+
"key",
|
|
7406
|
+
"data",
|
|
7407
|
+
"all"
|
|
7408
|
+
];
|
|
7409
|
+
// src/contexts/QueryDevtoolsContext.ts
|
|
7410
|
+
const QueryDevtoolsContext = createContext({
|
|
7411
|
+
client: void 0,
|
|
7412
|
+
onlineManager: void 0,
|
|
7413
|
+
queryFlavor: "",
|
|
7414
|
+
version: "",
|
|
7415
|
+
shadowDOMTarget: void 0
|
|
7416
|
+
});
|
|
7417
|
+
/**
|
|
7418
|
+
* Returns the devtools configuration from context, such as the `client` and the `onlineManager`.
|
|
7419
|
+
* @returns The devtools configuration.
|
|
7420
|
+
*/
|
|
7421
|
+
function useQueryDevtoolsContext() {
|
|
7422
|
+
return useContext(QueryDevtoolsContext);
|
|
7423
|
+
}
|
|
7424
|
+
// src/contexts/PiPContext.tsx
|
|
7425
|
+
var PipOpenError = class extends Error {};
|
|
7426
|
+
const PiPContext = createContext(void 0);
|
|
7427
|
+
/**
|
|
7428
|
+
* Provides the picture-in-picture window of the devtools, and functions to
|
|
7429
|
+
* open and close it.
|
|
7430
|
+
* @param props - The `children` to render, the `localStore` and
|
|
7431
|
+
* `setLocalStore` that persist whether the window is open, and `disabled` to
|
|
7432
|
+
* turn picture-in-picture off.
|
|
7433
|
+
* @returns The context provider.
|
|
7434
|
+
*/
|
|
7435
|
+
const PiPProvider = (props) => {
|
|
7436
|
+
const [pipWindow, setPipWindow] = createSignal(null);
|
|
7437
|
+
const closePipWindow = () => {
|
|
7438
|
+
const w = pipWindow();
|
|
7439
|
+
if (w != null) {
|
|
7440
|
+
w.close();
|
|
7441
|
+
props.setLocalStore("pip_open", "false");
|
|
7442
|
+
setPipWindow(null);
|
|
7714
7443
|
}
|
|
7715
|
-
}
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
"
|
|
7753
|
-
"
|
|
7754
|
-
"
|
|
7755
|
-
"
|
|
7756
|
-
"
|
|
7757
|
-
"
|
|
7758
|
-
"
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7444
|
+
};
|
|
7445
|
+
const requestPipWindow = (width, height) => {
|
|
7446
|
+
if (pipWindow() != null) return;
|
|
7447
|
+
const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
|
|
7448
|
+
if (!pip) throw new PipOpenError("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
7449
|
+
pip.document.head.innerHTML = "";
|
|
7450
|
+
pip.document.body.innerHTML = "";
|
|
7451
|
+
clearDelegatedEvents(pip.document);
|
|
7452
|
+
pip.document.title = "TanStack Query Devtools";
|
|
7453
|
+
pip.document.body.style.margin = "0";
|
|
7454
|
+
pip.addEventListener("pagehide", () => {
|
|
7455
|
+
props.setLocalStore("pip_open", "false");
|
|
7456
|
+
setPipWindow(null);
|
|
7457
|
+
});
|
|
7458
|
+
[...(useQueryDevtoolsContext().shadowDOMTarget || document).styleSheets].forEach((styleSheet) => {
|
|
7459
|
+
try {
|
|
7460
|
+
const cssRules = [...styleSheet.cssRules].map((rule) => rule.cssText).join("");
|
|
7461
|
+
const style = document.createElement("style");
|
|
7462
|
+
const style_node = styleSheet.ownerNode;
|
|
7463
|
+
let style_id = "";
|
|
7464
|
+
if (style_node && "id" in style_node) style_id = style_node.id;
|
|
7465
|
+
if (style_id) style.setAttribute("id", style_id);
|
|
7466
|
+
style.textContent = cssRules;
|
|
7467
|
+
pip.document.head.appendChild(style);
|
|
7468
|
+
} catch (e) {
|
|
7469
|
+
const link = document.createElement("link");
|
|
7470
|
+
if (styleSheet.href == null) return;
|
|
7471
|
+
link.rel = "stylesheet";
|
|
7472
|
+
link.type = styleSheet.type;
|
|
7473
|
+
link.media = styleSheet.media.toString();
|
|
7474
|
+
link.href = styleSheet.href;
|
|
7475
|
+
pip.document.head.appendChild(link);
|
|
7476
|
+
}
|
|
7477
|
+
});
|
|
7478
|
+
delegateEvents([
|
|
7479
|
+
"focusin",
|
|
7480
|
+
"focusout",
|
|
7481
|
+
"pointermove",
|
|
7482
|
+
"keydown",
|
|
7483
|
+
"pointerdown",
|
|
7484
|
+
"pointerup",
|
|
7485
|
+
"click",
|
|
7486
|
+
"mousedown",
|
|
7487
|
+
"input"
|
|
7488
|
+
], pip.document);
|
|
7489
|
+
props.setLocalStore("pip_open", "true");
|
|
7490
|
+
setPipWindow(pip);
|
|
7491
|
+
};
|
|
7492
|
+
createEffect(() => {
|
|
7493
|
+
if ((props.localStore.pip_open ?? "false") === "true" && !props.disabled) try {
|
|
7494
|
+
requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || 500));
|
|
7495
|
+
} catch (error) {
|
|
7496
|
+
if (error instanceof PipOpenError) {
|
|
7497
|
+
console.error(error.message);
|
|
7498
|
+
props.setLocalStore("pip_open", "false");
|
|
7499
|
+
props.setLocalStore("open", "false");
|
|
7500
|
+
return;
|
|
7501
|
+
}
|
|
7502
|
+
throw error;
|
|
7771
7503
|
}
|
|
7772
|
-
}
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
4.5: "calc(var(--tsqd-font-size) * 1.125)",
|
|
7804
|
-
5: "calc(var(--tsqd-font-size) * 1.25)",
|
|
7805
|
-
5.5: "calc(var(--tsqd-font-size) * 1.375)",
|
|
7806
|
-
6: "calc(var(--tsqd-font-size) * 1.5)",
|
|
7807
|
-
6.5: "calc(var(--tsqd-font-size) * 1.625)",
|
|
7808
|
-
7: "calc(var(--tsqd-font-size) * 1.75)",
|
|
7809
|
-
8: "calc(var(--tsqd-font-size) * 2)",
|
|
7810
|
-
9: "calc(var(--tsqd-font-size) * 2.25)",
|
|
7811
|
-
10: "calc(var(--tsqd-font-size) * 2.5)",
|
|
7812
|
-
11: "calc(var(--tsqd-font-size) * 2.75)",
|
|
7813
|
-
12: "calc(var(--tsqd-font-size) * 3)",
|
|
7814
|
-
14: "calc(var(--tsqd-font-size) * 3.5)",
|
|
7815
|
-
16: "calc(var(--tsqd-font-size) * 4)",
|
|
7816
|
-
20: "calc(var(--tsqd-font-size) * 5)",
|
|
7817
|
-
24: "calc(var(--tsqd-font-size) * 6)",
|
|
7818
|
-
28: "calc(var(--tsqd-font-size) * 7)",
|
|
7819
|
-
32: "calc(var(--tsqd-font-size) * 8)",
|
|
7820
|
-
36: "calc(var(--tsqd-font-size) * 9)",
|
|
7821
|
-
40: "calc(var(--tsqd-font-size) * 10)",
|
|
7822
|
-
44: "calc(var(--tsqd-font-size) * 11)",
|
|
7823
|
-
48: "calc(var(--tsqd-font-size) * 12)",
|
|
7824
|
-
52: "calc(var(--tsqd-font-size) * 13)",
|
|
7825
|
-
56: "calc(var(--tsqd-font-size) * 14)",
|
|
7826
|
-
60: "calc(var(--tsqd-font-size) * 15)",
|
|
7827
|
-
64: "calc(var(--tsqd-font-size) * 16)",
|
|
7828
|
-
72: "calc(var(--tsqd-font-size) * 18)",
|
|
7829
|
-
80: "calc(var(--tsqd-font-size) * 20)",
|
|
7830
|
-
96: "calc(var(--tsqd-font-size) * 24)"
|
|
7831
|
-
},
|
|
7832
|
-
shadow: {
|
|
7833
|
-
xs: (_ = "rgb(0 0 0 / 0.1)") => `0 1px 2px 0 rgb(0 0 0 / 0.05)`,
|
|
7834
|
-
sm: (color = "rgb(0 0 0 / 0.1)") => `0 1px 3px 0 ${color}, 0 1px 2px -1px ${color}`,
|
|
7835
|
-
md: (color = "rgb(0 0 0 / 0.1)") => `0 4px 6px -1px ${color}, 0 2px 4px -2px ${color}`,
|
|
7836
|
-
lg: (color = "rgb(0 0 0 / 0.1)") => `0 10px 15px -3px ${color}, 0 4px 6px -4px ${color}`,
|
|
7837
|
-
xl: (color = "rgb(0 0 0 / 0.1)") => `0 20px 25px -5px ${color}, 0 8px 10px -6px ${color}`,
|
|
7838
|
-
"2xl": (color = "rgb(0 0 0 / 0.25)") => `0 25px 50px -12px ${color}`,
|
|
7839
|
-
inner: (color = "rgb(0 0 0 / 0.05)") => `inset 0 2px 4px 0 ${color}`,
|
|
7840
|
-
none: () => `none`
|
|
7841
|
-
},
|
|
7842
|
-
zIndices: {
|
|
7843
|
-
hide: -1,
|
|
7844
|
-
auto: "auto",
|
|
7845
|
-
base: 0,
|
|
7846
|
-
docked: 10,
|
|
7847
|
-
dropdown: 1e3,
|
|
7848
|
-
sticky: 1100,
|
|
7849
|
-
banner: 1200,
|
|
7850
|
-
overlay: 1300,
|
|
7851
|
-
modal: 1400,
|
|
7852
|
-
popover: 1500,
|
|
7853
|
-
skipLink: 1600,
|
|
7854
|
-
toast: 1700,
|
|
7855
|
-
tooltip: 1800
|
|
7856
|
-
}
|
|
7504
|
+
});
|
|
7505
|
+
createEffect(() => {
|
|
7506
|
+
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
7507
|
+
const w = pipWindow();
|
|
7508
|
+
if (gooberStyles && w) {
|
|
7509
|
+
const observer = new MutationObserver(() => {
|
|
7510
|
+
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
7511
|
+
if (pip_style) pip_style.textContent = gooberStyles.textContent;
|
|
7512
|
+
});
|
|
7513
|
+
observer.observe(gooberStyles, {
|
|
7514
|
+
childList: true,
|
|
7515
|
+
subtree: true,
|
|
7516
|
+
characterDataOldValue: true
|
|
7517
|
+
});
|
|
7518
|
+
onCleanup(() => {
|
|
7519
|
+
observer.disconnect();
|
|
7520
|
+
});
|
|
7521
|
+
}
|
|
7522
|
+
});
|
|
7523
|
+
const value = createMemo(() => ({
|
|
7524
|
+
pipWindow: pipWindow(),
|
|
7525
|
+
requestPipWindow,
|
|
7526
|
+
closePipWindow,
|
|
7527
|
+
disabled: props.disabled ?? false
|
|
7528
|
+
}));
|
|
7529
|
+
return createComponent(PiPContext.Provider, {
|
|
7530
|
+
value,
|
|
7531
|
+
get children() {
|
|
7532
|
+
return props.children;
|
|
7533
|
+
}
|
|
7534
|
+
});
|
|
7857
7535
|
};
|
|
7858
|
-
// src/icons/index.tsx
|
|
7859
|
-
var _tmpl$$3 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7860
|
-
var _tmpl$2$3 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7861
|
-
var _tmpl$3$2 = /*#__PURE__*/ template(`<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7862
|
-
var _tmpl$4$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7863
|
-
var _tmpl$5$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7864
|
-
var _tmpl$6$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(90deg)><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7865
|
-
var _tmpl$7$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(-90deg)><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7866
|
-
var _tmpl$8$2 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7867
|
-
var _tmpl$9$2 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7868
|
-
var _tmpl$0$2 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7869
|
-
var _tmpl$1$2 = /*#__PURE__*/ template(`<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`);
|
|
7870
|
-
var _tmpl$10$2 = /*#__PURE__*/ template(`<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`);
|
|
7871
|
-
var _tmpl$11$2 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7872
|
-
var _tmpl$12$2 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7873
|
-
var _tmpl$13$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>`);
|
|
7874
|
-
var _tmpl$14$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7875
|
-
var _tmpl$15$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7876
|
-
var _tmpl$16$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7877
|
-
var _tmpl$17$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
|
|
7878
|
-
var _tmpl$18$1 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7879
|
-
var _tmpl$19$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7880
|
-
var _tmpl$20$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>`);
|
|
7881
|
-
var _tmpl$21$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7882
|
-
var _tmpl$22$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7883
|
-
var _tmpl$23$1 = /*#__PURE__*/ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
|
|
7884
7536
|
/**
|
|
7885
|
-
*
|
|
7886
|
-
* @returns
|
|
7537
|
+
* Reads the picture-in-picture context provided by {@link PiPProvider}.
|
|
7538
|
+
* @returns An accessor of the picture-in-picture window and the functions to
|
|
7539
|
+
* open and close it.
|
|
7887
7540
|
*/
|
|
7888
|
-
|
|
7889
|
-
return
|
|
7890
|
-
|
|
7541
|
+
const usePiPWindow = () => {
|
|
7542
|
+
return createMemo(() => {
|
|
7543
|
+
const ctx = useContext(PiPContext);
|
|
7544
|
+
if (!ctx) throw new Error("usePiPWindow must be used within a PiPProvider");
|
|
7545
|
+
return ctx();
|
|
7546
|
+
});
|
|
7547
|
+
};
|
|
7548
|
+
// src/contexts/ThemeContext.ts
|
|
7549
|
+
const ThemeContext = createContext(() => "dark");
|
|
7891
7550
|
/**
|
|
7892
|
-
*
|
|
7893
|
-
* @returns
|
|
7551
|
+
* Returns the devtools theme from context.
|
|
7552
|
+
* @returns A getter for the current theme, `'light'` or `'dark'`. Defaults to `'dark'`.
|
|
7894
7553
|
*/
|
|
7895
|
-
function
|
|
7896
|
-
return
|
|
7554
|
+
function useTheme() {
|
|
7555
|
+
return useContext(ThemeContext);
|
|
7897
7556
|
}
|
|
7557
|
+
// src/explorerSearch.ts
|
|
7898
7558
|
/**
|
|
7899
|
-
*
|
|
7900
|
-
* @
|
|
7559
|
+
* Converts only primitive values to searchable text.
|
|
7560
|
+
* @param value - The inspected value.
|
|
7561
|
+
* @returns Primitive text, or undefined for objects and functions.
|
|
7901
7562
|
*/
|
|
7902
|
-
function
|
|
7903
|
-
|
|
7563
|
+
function primitiveText(value) {
|
|
7564
|
+
if (value === null) return "null";
|
|
7565
|
+
switch (typeof value) {
|
|
7566
|
+
case "string":
|
|
7567
|
+
case "number":
|
|
7568
|
+
case "boolean":
|
|
7569
|
+
case "bigint":
|
|
7570
|
+
case "symbol":
|
|
7571
|
+
case "undefined": return String(value);
|
|
7572
|
+
default: return;
|
|
7573
|
+
}
|
|
7904
7574
|
}
|
|
7905
7575
|
/**
|
|
7906
|
-
*
|
|
7907
|
-
*
|
|
7576
|
+
* Reads finite entries through native collection methods and own descriptors.
|
|
7577
|
+
* Accessors and user-defined iterators or key conversions are not evaluated.
|
|
7578
|
+
* @param value - The inspected value.
|
|
7579
|
+
* @returns Original entries, or undefined for opaque values.
|
|
7908
7580
|
*/
|
|
7909
|
-
function
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7581
|
+
function searchEntries(value) {
|
|
7582
|
+
try {
|
|
7583
|
+
if (value === null || typeof value !== "object" || ArrayBuffer.isView(value)) return;
|
|
7584
|
+
const type = getNativeObjectType(value);
|
|
7585
|
+
if (type === "String") return void 0;
|
|
7586
|
+
if (type === "Map") return Array.from(Map.prototype.entries.call(value), ([key, entry]) => ({
|
|
7587
|
+
key,
|
|
7588
|
+
label: primitiveText(key) ?? "[Object key]",
|
|
7589
|
+
value: entry
|
|
7590
|
+
}));
|
|
7591
|
+
if (type === "Set") return Array.from(Set.prototype.values.call(value), (entry, index) => ({
|
|
7592
|
+
key: String(index),
|
|
7593
|
+
label: String(index),
|
|
7594
|
+
value: entry
|
|
7595
|
+
}));
|
|
7596
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable).map(([key, descriptor]) => ({
|
|
7597
|
+
key,
|
|
7598
|
+
label: key,
|
|
7599
|
+
value: descriptor.value,
|
|
7600
|
+
accessor: !("value" in descriptor)
|
|
7601
|
+
}));
|
|
7602
|
+
if (!Array.isArray(value) && Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null && !entries.some((entry) => !entry.accessor && typeof entry.value !== "function")) return;
|
|
7603
|
+
return entries;
|
|
7604
|
+
} catch {
|
|
7605
|
+
return;
|
|
7606
|
+
}
|
|
7607
|
+
}
|
|
7608
|
+
const SEARCH_TEXT_SEPARATOR = "A";
|
|
7609
|
+
/**
|
|
7610
|
+
* Builds the text that `searchExplorer` matches: every entry label and
|
|
7611
|
+
* primitive value, lowercased. Visiting breadth-first reaches each object once
|
|
7612
|
+
* at its shallowest depth, so shared data is searched once with the same depth
|
|
7613
|
+
* bound.
|
|
7614
|
+
* @param rootValue - The data to build the search text of.
|
|
7615
|
+
* @returns Text that contains a lowercased term exactly when `searchExplorer` matches it.
|
|
7616
|
+
*/
|
|
7617
|
+
function createSearchText(rootValue) {
|
|
7618
|
+
const rootText = primitiveText(rootValue);
|
|
7619
|
+
if (rootText !== void 0) return rootText.toLowerCase();
|
|
7620
|
+
const parts = [];
|
|
7621
|
+
const seen = /* @__PURE__ */ new Set([rootValue]);
|
|
7622
|
+
const queue = [{
|
|
7623
|
+
value: rootValue,
|
|
7624
|
+
depth: 0
|
|
7625
|
+
}];
|
|
7626
|
+
for (const { value, depth } of queue) for (const entry of searchEntries(value) ?? []) {
|
|
7627
|
+
parts.push(entry.label.toLowerCase());
|
|
7628
|
+
if (entry.accessor) continue;
|
|
7629
|
+
const text = primitiveText(entry.value);
|
|
7630
|
+
if (text !== void 0) parts.push(text.toLowerCase());
|
|
7631
|
+
else if (depth < 500 && typeof entry.value === "object" && !seen.has(entry.value)) {
|
|
7632
|
+
seen.add(entry.value);
|
|
7633
|
+
queue.push({
|
|
7634
|
+
value: entry.value,
|
|
7635
|
+
depth: depth + 1
|
|
7636
|
+
});
|
|
7637
|
+
}
|
|
7638
|
+
}
|
|
7639
|
+
return parts.join(SEARCH_TEXT_SEPARATOR);
|
|
7640
|
+
}
|
|
7641
|
+
/**
|
|
7642
|
+
* Builds one search tree, stopping ancestor cycles while visiting shared siblings.
|
|
7643
|
+
* @param rootValue - The current root data.
|
|
7644
|
+
* @param term - The case-normalized literal search term.
|
|
7645
|
+
* @returns Match and safe rendering metadata for every original entry.
|
|
7646
|
+
*/
|
|
7647
|
+
function searchExplorer(rootValue, term) {
|
|
7648
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
7649
|
+
/**
|
|
7650
|
+
* Visits one original path with its current ancestors.
|
|
7651
|
+
* @param value - The entry value.
|
|
7652
|
+
* @param label - The entry label; absent for the synthetic root.
|
|
7653
|
+
* @param accessor - Whether reading the entry would invoke a getter.
|
|
7654
|
+
* @param depth - The current nesting depth.
|
|
7655
|
+
* @returns The entry's match metadata.
|
|
7656
|
+
*/
|
|
7657
|
+
function visit(value, label, accessor = false, depth = 0) {
|
|
7658
|
+
const labelMatch = label?.toLowerCase().includes(term) ?? false;
|
|
7659
|
+
const text = accessor ? void 0 : primitiveText(value);
|
|
7660
|
+
const valueMatch = text?.toLowerCase().includes(term) ?? false;
|
|
7661
|
+
const children = /* @__PURE__ */ new Map();
|
|
7662
|
+
const match = {
|
|
7663
|
+
label: labelMatch,
|
|
7664
|
+
value: valueMatch,
|
|
7665
|
+
hasMatch: labelMatch || valueMatch,
|
|
7666
|
+
kind: accessor ? "accessor" : text !== void 0 ? "value" : "opaque",
|
|
7667
|
+
children
|
|
7668
|
+
};
|
|
7669
|
+
if (accessor || text !== void 0) return match;
|
|
7670
|
+
if (depth > 500) return match;
|
|
7671
|
+
if (ancestors.has(value)) {
|
|
7672
|
+
match.kind = "circular";
|
|
7673
|
+
return match;
|
|
7674
|
+
}
|
|
7675
|
+
const entries = searchEntries(value);
|
|
7676
|
+
if (!entries) return match;
|
|
7677
|
+
match.kind = "branch";
|
|
7678
|
+
ancestors.add(value);
|
|
7679
|
+
for (const entry of entries) {
|
|
7680
|
+
const child = visit(entry.value, entry.label, entry.accessor, depth + 1);
|
|
7681
|
+
children.set(entry.key, child);
|
|
7682
|
+
match.hasMatch ||= child.hasMatch;
|
|
7683
|
+
}
|
|
7684
|
+
ancestors.delete(value);
|
|
7685
|
+
return match;
|
|
7686
|
+
}
|
|
7687
|
+
return visit(rootValue);
|
|
7688
|
+
}
|
|
7689
|
+
// src/icons/index.tsx
|
|
7690
|
+
var _tmpl$$3 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7691
|
+
var _tmpl$2$3 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7692
|
+
var _tmpl$3$2 = /*#__PURE__*/ template(`<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7693
|
+
var _tmpl$4$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7694
|
+
var _tmpl$5$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7695
|
+
var _tmpl$6$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(90deg)><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7696
|
+
var _tmpl$7$2 = /*#__PURE__*/ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg style=transform:rotate(-90deg)><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
|
|
7697
|
+
var _tmpl$8$2 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7698
|
+
var _tmpl$9$2 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7699
|
+
var _tmpl$0$2 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7700
|
+
var _tmpl$1$2 = /*#__PURE__*/ template(`<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`);
|
|
7701
|
+
var _tmpl$10$2 = /*#__PURE__*/ template(`<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`);
|
|
7702
|
+
var _tmpl$11$2 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7703
|
+
var _tmpl$12$2 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7704
|
+
var _tmpl$13$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>`);
|
|
7705
|
+
var _tmpl$14$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7706
|
+
var _tmpl$15$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7707
|
+
var _tmpl$16$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7708
|
+
var _tmpl$17$1 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
|
|
7709
|
+
var _tmpl$18$1 = /*#__PURE__*/ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7710
|
+
var _tmpl$19$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7711
|
+
var _tmpl$20$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>`);
|
|
7712
|
+
var _tmpl$21$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7713
|
+
var _tmpl$22$1 = /*#__PURE__*/ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
7714
|
+
var _tmpl$23$1 = /*#__PURE__*/ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
|
|
7715
|
+
/**
|
|
7716
|
+
* Renders the search icon.
|
|
7717
|
+
* @returns The icon's SVG element.
|
|
7718
|
+
*/
|
|
7719
|
+
function Search() {
|
|
7720
|
+
return _tmpl$$3();
|
|
7721
|
+
}
|
|
7722
|
+
/**
|
|
7723
|
+
* Renders the trash icon.
|
|
7724
|
+
* @returns The icon's SVG element.
|
|
7725
|
+
*/
|
|
7726
|
+
function Trash() {
|
|
7727
|
+
return _tmpl$2$3();
|
|
7728
|
+
}
|
|
7729
|
+
/**
|
|
7730
|
+
* Renders the chevron-down icon.
|
|
7731
|
+
* @returns The icon's SVG element.
|
|
7732
|
+
*/
|
|
7733
|
+
function ChevronDown() {
|
|
7734
|
+
return _tmpl$3$2();
|
|
7735
|
+
}
|
|
7736
|
+
/**
|
|
7737
|
+
* Renders the up arrow icon.
|
|
7738
|
+
* @returns The icon's SVG element.
|
|
7739
|
+
*/
|
|
7740
|
+
function ArrowUp() {
|
|
7741
|
+
return _tmpl$4$2();
|
|
7742
|
+
}
|
|
7743
|
+
/**
|
|
7913
7744
|
* Renders the down arrow icon.
|
|
7914
7745
|
* @returns The icon's SVG element.
|
|
7915
7746
|
*/
|
|
@@ -8162,279 +7993,297 @@ function TanstackLogo() {
|
|
|
8162
7993
|
return _el$27;
|
|
8163
7994
|
})();
|
|
8164
7995
|
}
|
|
8165
|
-
|
|
8166
|
-
const
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
"
|
|
8229
|
-
"
|
|
8230
|
-
"
|
|
8231
|
-
"
|
|
8232
|
-
"
|
|
8233
|
-
"
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
"
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
function primitiveText(value) {
|
|
8313
|
-
if (value === null) return "null";
|
|
8314
|
-
switch (typeof value) {
|
|
8315
|
-
case "string":
|
|
8316
|
-
case "number":
|
|
8317
|
-
case "boolean":
|
|
8318
|
-
case "bigint":
|
|
8319
|
-
case "symbol":
|
|
8320
|
-
case "undefined": return String(value);
|
|
8321
|
-
default: return;
|
|
8322
|
-
}
|
|
8323
|
-
}
|
|
8324
|
-
/**
|
|
8325
|
-
* Reads finite entries through native collection methods and own descriptors.
|
|
8326
|
-
* Accessors and user-defined iterators or key conversions are not evaluated.
|
|
8327
|
-
* @param value - The inspected value.
|
|
8328
|
-
* @returns Original entries, or undefined for opaque values.
|
|
8329
|
-
*/
|
|
8330
|
-
function searchEntries(value) {
|
|
8331
|
-
try {
|
|
8332
|
-
if (value === null || typeof value !== "object" || ArrayBuffer.isView(value)) return;
|
|
8333
|
-
const type = getNativeObjectType(value);
|
|
8334
|
-
if (type === "String") return void 0;
|
|
8335
|
-
if (type === "Map") return Array.from(Map.prototype.entries.call(value), ([key, entry]) => ({
|
|
8336
|
-
key,
|
|
8337
|
-
label: primitiveText(key) ?? "[Object key]",
|
|
8338
|
-
value: entry
|
|
8339
|
-
}));
|
|
8340
|
-
if (type === "Set") return Array.from(Set.prototype.values.call(value), (entry, index) => ({
|
|
8341
|
-
key: String(index),
|
|
8342
|
-
label: String(index),
|
|
8343
|
-
value: entry
|
|
8344
|
-
}));
|
|
8345
|
-
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable).map(([key, descriptor]) => ({
|
|
8346
|
-
key,
|
|
8347
|
-
label: key,
|
|
8348
|
-
value: descriptor.value,
|
|
8349
|
-
accessor: !("value" in descriptor)
|
|
8350
|
-
}));
|
|
8351
|
-
if (!Array.isArray(value) && Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null && !entries.some((entry) => !entry.accessor && typeof entry.value !== "function")) return;
|
|
8352
|
-
return entries;
|
|
8353
|
-
} catch {
|
|
8354
|
-
return;
|
|
8355
|
-
}
|
|
8356
|
-
}
|
|
8357
|
-
const SEARCH_TEXT_SEPARATOR = "A";
|
|
8358
|
-
/**
|
|
8359
|
-
* Builds the text that `searchExplorer` matches: every entry label and
|
|
8360
|
-
* primitive value, lowercased. Visiting breadth-first reaches each object once
|
|
8361
|
-
* at its shallowest depth, so shared data is searched once with the same depth
|
|
8362
|
-
* bound.
|
|
8363
|
-
* @param rootValue - The data to build the search text of.
|
|
8364
|
-
* @returns Text that contains a lowercased term exactly when `searchExplorer` matches it.
|
|
8365
|
-
*/
|
|
8366
|
-
function createSearchText(rootValue) {
|
|
8367
|
-
const rootText = primitiveText(rootValue);
|
|
8368
|
-
if (rootText !== void 0) return rootText.toLowerCase();
|
|
8369
|
-
const parts = [];
|
|
8370
|
-
const seen = /* @__PURE__ */ new Set([rootValue]);
|
|
8371
|
-
const queue = [{
|
|
8372
|
-
value: rootValue,
|
|
8373
|
-
depth: 0
|
|
8374
|
-
}];
|
|
8375
|
-
for (const { value, depth } of queue) for (const entry of searchEntries(value) ?? []) {
|
|
8376
|
-
parts.push(entry.label.toLowerCase());
|
|
8377
|
-
if (entry.accessor) continue;
|
|
8378
|
-
const text = primitiveText(entry.value);
|
|
8379
|
-
if (text !== void 0) parts.push(text.toLowerCase());
|
|
8380
|
-
else if (depth < 500 && typeof entry.value === "object" && !seen.has(entry.value)) {
|
|
8381
|
-
seen.add(entry.value);
|
|
8382
|
-
queue.push({
|
|
8383
|
-
value: entry.value,
|
|
8384
|
-
depth: depth + 1
|
|
8385
|
-
});
|
|
8386
|
-
}
|
|
8387
|
-
}
|
|
8388
|
-
return parts.join(SEARCH_TEXT_SEPARATOR);
|
|
8389
|
-
}
|
|
8390
|
-
/**
|
|
8391
|
-
* Builds one search tree, stopping ancestor cycles while visiting shared siblings.
|
|
8392
|
-
* @param rootValue - The current root data.
|
|
8393
|
-
* @param term - The case-normalized literal search term.
|
|
8394
|
-
* @returns Match and safe rendering metadata for every original entry.
|
|
8395
|
-
*/
|
|
8396
|
-
function searchExplorer(rootValue, term) {
|
|
8397
|
-
const ancestors = /* @__PURE__ */ new Set();
|
|
8398
|
-
/**
|
|
8399
|
-
* Visits one original path with its current ancestors.
|
|
8400
|
-
* @param value - The entry value.
|
|
8401
|
-
* @param label - The entry label; absent for the synthetic root.
|
|
8402
|
-
* @param accessor - Whether reading the entry would invoke a getter.
|
|
8403
|
-
* @param depth - The current nesting depth.
|
|
8404
|
-
* @returns The entry's match metadata.
|
|
8405
|
-
*/
|
|
8406
|
-
function visit(value, label, accessor = false, depth = 0) {
|
|
8407
|
-
const labelMatch = label?.toLowerCase().includes(term) ?? false;
|
|
8408
|
-
const text = accessor ? void 0 : primitiveText(value);
|
|
8409
|
-
const valueMatch = text?.toLowerCase().includes(term) ?? false;
|
|
8410
|
-
const children = /* @__PURE__ */ new Map();
|
|
8411
|
-
const match = {
|
|
8412
|
-
label: labelMatch,
|
|
8413
|
-
value: valueMatch,
|
|
8414
|
-
hasMatch: labelMatch || valueMatch,
|
|
8415
|
-
kind: accessor ? "accessor" : text !== void 0 ? "value" : "opaque",
|
|
8416
|
-
children
|
|
8417
|
-
};
|
|
8418
|
-
if (accessor || text !== void 0) return match;
|
|
8419
|
-
if (depth > 500) return match;
|
|
8420
|
-
if (ancestors.has(value)) {
|
|
8421
|
-
match.kind = "circular";
|
|
8422
|
-
return match;
|
|
7996
|
+
// src/theme.ts
|
|
7997
|
+
const tokens = {
|
|
7998
|
+
colors: {
|
|
7999
|
+
inherit: "inherit",
|
|
8000
|
+
current: "currentColor",
|
|
8001
|
+
transparent: "transparent",
|
|
8002
|
+
black: "#000000",
|
|
8003
|
+
white: "#ffffff",
|
|
8004
|
+
neutral: {
|
|
8005
|
+
50: "#f9fafb",
|
|
8006
|
+
100: "#f2f4f7",
|
|
8007
|
+
200: "#eaecf0",
|
|
8008
|
+
300: "#d0d5dd",
|
|
8009
|
+
400: "#98a2b3",
|
|
8010
|
+
500: "#667085",
|
|
8011
|
+
600: "#475467",
|
|
8012
|
+
700: "#344054",
|
|
8013
|
+
800: "#1d2939",
|
|
8014
|
+
900: "#101828"
|
|
8015
|
+
},
|
|
8016
|
+
darkGray: {
|
|
8017
|
+
50: "#525c7a",
|
|
8018
|
+
100: "#49536e",
|
|
8019
|
+
200: "#414962",
|
|
8020
|
+
300: "#394056",
|
|
8021
|
+
400: "#313749",
|
|
8022
|
+
500: "#292e3d",
|
|
8023
|
+
600: "#212530",
|
|
8024
|
+
700: "#191c24",
|
|
8025
|
+
800: "#111318",
|
|
8026
|
+
900: "#0b0d10"
|
|
8027
|
+
},
|
|
8028
|
+
gray: {
|
|
8029
|
+
50: "#f9fafb",
|
|
8030
|
+
100: "#f2f4f7",
|
|
8031
|
+
200: "#eaecf0",
|
|
8032
|
+
300: "#d0d5dd",
|
|
8033
|
+
400: "#98a2b3",
|
|
8034
|
+
500: "#667085",
|
|
8035
|
+
600: "#475467",
|
|
8036
|
+
700: "#344054",
|
|
8037
|
+
800: "#1d2939",
|
|
8038
|
+
900: "#101828"
|
|
8039
|
+
},
|
|
8040
|
+
blue: {
|
|
8041
|
+
25: "#F5FAFF",
|
|
8042
|
+
50: "#EFF8FF",
|
|
8043
|
+
100: "#D1E9FF",
|
|
8044
|
+
200: "#B2DDFF",
|
|
8045
|
+
300: "#84CAFF",
|
|
8046
|
+
400: "#53B1FD",
|
|
8047
|
+
500: "#2E90FA",
|
|
8048
|
+
600: "#1570EF",
|
|
8049
|
+
700: "#175CD3",
|
|
8050
|
+
800: "#1849A9",
|
|
8051
|
+
900: "#194185"
|
|
8052
|
+
},
|
|
8053
|
+
green: {
|
|
8054
|
+
25: "#F6FEF9",
|
|
8055
|
+
50: "#ECFDF3",
|
|
8056
|
+
100: "#D1FADF",
|
|
8057
|
+
200: "#A6F4C5",
|
|
8058
|
+
300: "#6CE9A6",
|
|
8059
|
+
400: "#32D583",
|
|
8060
|
+
500: "#12B76A",
|
|
8061
|
+
600: "#039855",
|
|
8062
|
+
700: "#027A48",
|
|
8063
|
+
800: "#05603A",
|
|
8064
|
+
900: "#054F31"
|
|
8065
|
+
},
|
|
8066
|
+
red: {
|
|
8067
|
+
50: "#fef2f2",
|
|
8068
|
+
100: "#fee2e2",
|
|
8069
|
+
200: "#fecaca",
|
|
8070
|
+
300: "#fca5a5",
|
|
8071
|
+
400: "#f87171",
|
|
8072
|
+
500: "#ef4444",
|
|
8073
|
+
600: "#dc2626",
|
|
8074
|
+
700: "#b91c1c",
|
|
8075
|
+
800: "#991b1b",
|
|
8076
|
+
900: "#7f1d1d",
|
|
8077
|
+
950: "#450a0a"
|
|
8078
|
+
},
|
|
8079
|
+
yellow: {
|
|
8080
|
+
25: "#FFFCF5",
|
|
8081
|
+
50: "#FFFAEB",
|
|
8082
|
+
100: "#FEF0C7",
|
|
8083
|
+
200: "#FEDF89",
|
|
8084
|
+
300: "#FEC84B",
|
|
8085
|
+
400: "#FDB022",
|
|
8086
|
+
500: "#F79009",
|
|
8087
|
+
600: "#DC6803",
|
|
8088
|
+
700: "#B54708",
|
|
8089
|
+
800: "#93370D",
|
|
8090
|
+
900: "#7A2E0E"
|
|
8091
|
+
},
|
|
8092
|
+
purple: {
|
|
8093
|
+
25: "#FAFAFF",
|
|
8094
|
+
50: "#F4F3FF",
|
|
8095
|
+
100: "#EBE9FE",
|
|
8096
|
+
200: "#D9D6FE",
|
|
8097
|
+
300: "#BDB4FE",
|
|
8098
|
+
400: "#9B8AFB",
|
|
8099
|
+
500: "#7A5AF8",
|
|
8100
|
+
600: "#6938EF",
|
|
8101
|
+
700: "#5925DC",
|
|
8102
|
+
800: "#4A1FB8",
|
|
8103
|
+
900: "#3E1C96"
|
|
8104
|
+
},
|
|
8105
|
+
teal: {
|
|
8106
|
+
25: "#F6FEFC",
|
|
8107
|
+
50: "#F0FDF9",
|
|
8108
|
+
100: "#CCFBEF",
|
|
8109
|
+
200: "#99F6E0",
|
|
8110
|
+
300: "#5FE9D0",
|
|
8111
|
+
400: "#2ED3B7",
|
|
8112
|
+
500: "#15B79E",
|
|
8113
|
+
600: "#0E9384",
|
|
8114
|
+
700: "#107569",
|
|
8115
|
+
800: "#125D56",
|
|
8116
|
+
900: "#134E48"
|
|
8117
|
+
},
|
|
8118
|
+
pink: {
|
|
8119
|
+
25: "#fdf2f8",
|
|
8120
|
+
50: "#fce7f3",
|
|
8121
|
+
100: "#fbcfe8",
|
|
8122
|
+
200: "#f9a8d4",
|
|
8123
|
+
300: "#f472b6",
|
|
8124
|
+
400: "#ec4899",
|
|
8125
|
+
500: "#db2777",
|
|
8126
|
+
600: "#be185d",
|
|
8127
|
+
700: "#9d174d",
|
|
8128
|
+
800: "#831843",
|
|
8129
|
+
900: "#500724"
|
|
8130
|
+
},
|
|
8131
|
+
cyan: {
|
|
8132
|
+
25: "#ecfeff",
|
|
8133
|
+
50: "#cffafe",
|
|
8134
|
+
100: "#a5f3fc",
|
|
8135
|
+
200: "#67e8f9",
|
|
8136
|
+
300: "#22d3ee",
|
|
8137
|
+
400: "#06b6d4",
|
|
8138
|
+
500: "#0891b2",
|
|
8139
|
+
600: "#0e7490",
|
|
8140
|
+
700: "#155e75",
|
|
8141
|
+
800: "#164e63",
|
|
8142
|
+
900: "#083344"
|
|
8423
8143
|
}
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8144
|
+
},
|
|
8145
|
+
alpha: {
|
|
8146
|
+
100: "ff",
|
|
8147
|
+
90: "e5",
|
|
8148
|
+
80: "cc",
|
|
8149
|
+
70: "b3",
|
|
8150
|
+
60: "99",
|
|
8151
|
+
50: "80",
|
|
8152
|
+
40: "66",
|
|
8153
|
+
30: "4d",
|
|
8154
|
+
20: "33",
|
|
8155
|
+
10: "1a",
|
|
8156
|
+
0: "00"
|
|
8157
|
+
},
|
|
8158
|
+
font: {
|
|
8159
|
+
size: {
|
|
8160
|
+
"2xs": "calc(var(--tsqd-font-size) * 0.625)",
|
|
8161
|
+
xs: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8162
|
+
sm: "calc(var(--tsqd-font-size) * 0.875)",
|
|
8163
|
+
md: "var(--tsqd-font-size)",
|
|
8164
|
+
lg: "calc(var(--tsqd-font-size) * 1.125)",
|
|
8165
|
+
xl: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8166
|
+
"2xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
8167
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.875)",
|
|
8168
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
8169
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
8170
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
8171
|
+
"7xl": "calc(var(--tsqd-font-size) * 4.5)",
|
|
8172
|
+
"8xl": "calc(var(--tsqd-font-size) * 6)",
|
|
8173
|
+
"9xl": "calc(var(--tsqd-font-size) * 8)"
|
|
8174
|
+
},
|
|
8175
|
+
lineHeight: {
|
|
8176
|
+
xs: "calc(var(--tsqd-font-size) * 1)",
|
|
8177
|
+
sm: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8178
|
+
md: "calc(var(--tsqd-font-size) * 1.5)",
|
|
8179
|
+
lg: "calc(var(--tsqd-font-size) * 1.75)",
|
|
8180
|
+
xl: "calc(var(--tsqd-font-size) * 2)",
|
|
8181
|
+
"2xl": "calc(var(--tsqd-font-size) * 2.25)",
|
|
8182
|
+
"3xl": "calc(var(--tsqd-font-size) * 2.5)",
|
|
8183
|
+
"4xl": "calc(var(--tsqd-font-size) * 2.75)",
|
|
8184
|
+
"5xl": "calc(var(--tsqd-font-size) * 3)",
|
|
8185
|
+
"6xl": "calc(var(--tsqd-font-size) * 3.25)",
|
|
8186
|
+
"7xl": "calc(var(--tsqd-font-size) * 3.5)",
|
|
8187
|
+
"8xl": "calc(var(--tsqd-font-size) * 3.75)",
|
|
8188
|
+
"9xl": "calc(var(--tsqd-font-size) * 4)"
|
|
8189
|
+
},
|
|
8190
|
+
weight: {
|
|
8191
|
+
thin: "100",
|
|
8192
|
+
extralight: "200",
|
|
8193
|
+
light: "300",
|
|
8194
|
+
normal: "400",
|
|
8195
|
+
medium: "500",
|
|
8196
|
+
semibold: "600",
|
|
8197
|
+
bold: "700",
|
|
8198
|
+
extrabold: "800",
|
|
8199
|
+
black: "900"
|
|
8432
8200
|
}
|
|
8433
|
-
|
|
8434
|
-
|
|
8201
|
+
},
|
|
8202
|
+
breakpoints: {
|
|
8203
|
+
xs: "320px",
|
|
8204
|
+
sm: "640px",
|
|
8205
|
+
md: "768px",
|
|
8206
|
+
lg: "1024px",
|
|
8207
|
+
xl: "1280px",
|
|
8208
|
+
"2xl": "1536px"
|
|
8209
|
+
},
|
|
8210
|
+
border: { radius: {
|
|
8211
|
+
none: "0px",
|
|
8212
|
+
xs: "calc(var(--tsqd-font-size) * 0.125)",
|
|
8213
|
+
sm: "calc(var(--tsqd-font-size) * 0.25)",
|
|
8214
|
+
md: "calc(var(--tsqd-font-size) * 0.375)",
|
|
8215
|
+
lg: "calc(var(--tsqd-font-size) * 0.5)",
|
|
8216
|
+
xl: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8217
|
+
"2xl": "calc(var(--tsqd-font-size) * 1)",
|
|
8218
|
+
"3xl": "calc(var(--tsqd-font-size) * 1.5)",
|
|
8219
|
+
full: "9999px"
|
|
8220
|
+
} },
|
|
8221
|
+
size: {
|
|
8222
|
+
0: "0px",
|
|
8223
|
+
.25: "calc(var(--tsqd-font-size) * 0.0625)",
|
|
8224
|
+
.5: "calc(var(--tsqd-font-size) * 0.125)",
|
|
8225
|
+
1: "calc(var(--tsqd-font-size) * 0.25)",
|
|
8226
|
+
1.5: "calc(var(--tsqd-font-size) * 0.375)",
|
|
8227
|
+
2: "calc(var(--tsqd-font-size) * 0.5)",
|
|
8228
|
+
2.5: "calc(var(--tsqd-font-size) * 0.625)",
|
|
8229
|
+
3: "calc(var(--tsqd-font-size) * 0.75)",
|
|
8230
|
+
3.5: "calc(var(--tsqd-font-size) * 0.875)",
|
|
8231
|
+
4: "calc(var(--tsqd-font-size) * 1)",
|
|
8232
|
+
4.5: "calc(var(--tsqd-font-size) * 1.125)",
|
|
8233
|
+
5: "calc(var(--tsqd-font-size) * 1.25)",
|
|
8234
|
+
5.5: "calc(var(--tsqd-font-size) * 1.375)",
|
|
8235
|
+
6: "calc(var(--tsqd-font-size) * 1.5)",
|
|
8236
|
+
6.5: "calc(var(--tsqd-font-size) * 1.625)",
|
|
8237
|
+
7: "calc(var(--tsqd-font-size) * 1.75)",
|
|
8238
|
+
8: "calc(var(--tsqd-font-size) * 2)",
|
|
8239
|
+
9: "calc(var(--tsqd-font-size) * 2.25)",
|
|
8240
|
+
10: "calc(var(--tsqd-font-size) * 2.5)",
|
|
8241
|
+
11: "calc(var(--tsqd-font-size) * 2.75)",
|
|
8242
|
+
12: "calc(var(--tsqd-font-size) * 3)",
|
|
8243
|
+
14: "calc(var(--tsqd-font-size) * 3.5)",
|
|
8244
|
+
16: "calc(var(--tsqd-font-size) * 4)",
|
|
8245
|
+
20: "calc(var(--tsqd-font-size) * 5)",
|
|
8246
|
+
24: "calc(var(--tsqd-font-size) * 6)",
|
|
8247
|
+
28: "calc(var(--tsqd-font-size) * 7)",
|
|
8248
|
+
32: "calc(var(--tsqd-font-size) * 8)",
|
|
8249
|
+
36: "calc(var(--tsqd-font-size) * 9)",
|
|
8250
|
+
40: "calc(var(--tsqd-font-size) * 10)",
|
|
8251
|
+
44: "calc(var(--tsqd-font-size) * 11)",
|
|
8252
|
+
48: "calc(var(--tsqd-font-size) * 12)",
|
|
8253
|
+
52: "calc(var(--tsqd-font-size) * 13)",
|
|
8254
|
+
56: "calc(var(--tsqd-font-size) * 14)",
|
|
8255
|
+
60: "calc(var(--tsqd-font-size) * 15)",
|
|
8256
|
+
64: "calc(var(--tsqd-font-size) * 16)",
|
|
8257
|
+
72: "calc(var(--tsqd-font-size) * 18)",
|
|
8258
|
+
80: "calc(var(--tsqd-font-size) * 20)",
|
|
8259
|
+
96: "calc(var(--tsqd-font-size) * 24)"
|
|
8260
|
+
},
|
|
8261
|
+
shadow: {
|
|
8262
|
+
xs: (_ = "rgb(0 0 0 / 0.1)") => `0 1px 2px 0 rgb(0 0 0 / 0.05)`,
|
|
8263
|
+
sm: (color = "rgb(0 0 0 / 0.1)") => `0 1px 3px 0 ${color}, 0 1px 2px -1px ${color}`,
|
|
8264
|
+
md: (color = "rgb(0 0 0 / 0.1)") => `0 4px 6px -1px ${color}, 0 2px 4px -2px ${color}`,
|
|
8265
|
+
lg: (color = "rgb(0 0 0 / 0.1)") => `0 10px 15px -3px ${color}, 0 4px 6px -4px ${color}`,
|
|
8266
|
+
xl: (color = "rgb(0 0 0 / 0.1)") => `0 20px 25px -5px ${color}, 0 8px 10px -6px ${color}`,
|
|
8267
|
+
"2xl": (color = "rgb(0 0 0 / 0.25)") => `0 25px 50px -12px ${color}`,
|
|
8268
|
+
inner: (color = "rgb(0 0 0 / 0.05)") => `inset 0 2px 4px 0 ${color}`,
|
|
8269
|
+
none: () => `none`
|
|
8270
|
+
},
|
|
8271
|
+
zIndices: {
|
|
8272
|
+
hide: -1,
|
|
8273
|
+
auto: "auto",
|
|
8274
|
+
base: 0,
|
|
8275
|
+
docked: 10,
|
|
8276
|
+
dropdown: 1e3,
|
|
8277
|
+
sticky: 1100,
|
|
8278
|
+
banner: 1200,
|
|
8279
|
+
overlay: 1300,
|
|
8280
|
+
modal: 1400,
|
|
8281
|
+
popover: 1500,
|
|
8282
|
+
skipLink: 1600,
|
|
8283
|
+
toast: 1700,
|
|
8284
|
+
tooltip: 1800
|
|
8435
8285
|
}
|
|
8436
|
-
|
|
8437
|
-
}
|
|
8286
|
+
};
|
|
8438
8287
|
// src/Explorer.tsx
|
|
8439
8288
|
var _tmpl$$2 = /*#__PURE__*/ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
8440
8289
|
var _tmpl$2$2 = /*#__PURE__*/ template(`<button title="Copy object to clipboard">`);
|
|
@@ -11076,6 +10925,42 @@ function VirtualList(props) {
|
|
|
11076
10925
|
return _el$;
|
|
11077
10926
|
})();
|
|
11078
10927
|
}
|
|
10928
|
+
// src/contexts/DevtoolsOfflineContext.ts
|
|
10929
|
+
const DevtoolsOfflineContext = createContext();
|
|
10930
|
+
/**
|
|
10931
|
+
* Returns the devtools offline state provided by `DevtoolsOfflineProvider`.
|
|
10932
|
+
* @returns The offline state.
|
|
10933
|
+
* @throws {Error} If there is no `DevtoolsOfflineProvider` above.
|
|
10934
|
+
*/
|
|
10935
|
+
function useDevtoolsOffline() {
|
|
10936
|
+
const state = useContext(DevtoolsOfflineContext);
|
|
10937
|
+
if (!state) throw new Error("Missing DevtoolsOfflineProvider");
|
|
10938
|
+
return state;
|
|
10939
|
+
}
|
|
10940
|
+
// src/contexts/DevtoolsStateContext.ts
|
|
10941
|
+
const DevtoolsStateContext = createContext();
|
|
10942
|
+
/**
|
|
10943
|
+
* Returns the devtools selection and panel state provided by `DevtoolsStateProvider`.
|
|
10944
|
+
* @returns The selection and panel state.
|
|
10945
|
+
* @throws {Error} If there is no `DevtoolsStateProvider` above.
|
|
10946
|
+
*/
|
|
10947
|
+
function useDevtoolsState() {
|
|
10948
|
+
const state = useContext(DevtoolsStateContext);
|
|
10949
|
+
if (!state) throw new Error("Missing DevtoolsStateProvider");
|
|
10950
|
+
return state;
|
|
10951
|
+
}
|
|
10952
|
+
// src/contexts/DevtoolsSubscriptionsContext.ts
|
|
10953
|
+
const DevtoolsSubscriptionsContext = createContext();
|
|
10954
|
+
/**
|
|
10955
|
+
* Returns the devtools cache subscription registries provided by `DevtoolsSubscriptionsProvider`.
|
|
10956
|
+
* @returns The cache subscription registries.
|
|
10957
|
+
* @throws {Error} If there is no `DevtoolsSubscriptionsProvider` above.
|
|
10958
|
+
*/
|
|
10959
|
+
function useDevtoolsSubscriptions() {
|
|
10960
|
+
const subscriptions = useContext(DevtoolsSubscriptionsContext);
|
|
10961
|
+
if (!subscriptions) throw new Error("Missing DevtoolsSubscriptionsProvider");
|
|
10962
|
+
return subscriptions;
|
|
10963
|
+
}
|
|
11079
10964
|
// src/Devtools.tsx
|
|
11080
10965
|
var _tmpl$ = /*#__PURE__*/ template(`<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`);
|
|
11081
10966
|
var _tmpl$2 = /*#__PURE__*/ template(`<div dir=ltr>`);
|
|
@@ -14281,4 +14166,119 @@ delegateEvents([
|
|
|
14281
14166
|
"keydown",
|
|
14282
14167
|
"input"
|
|
14283
14168
|
]);
|
|
14284
|
-
|
|
14169
|
+
// src/providers/DevtoolsOfflineProvider.tsx
|
|
14170
|
+
/**
|
|
14171
|
+
* Provides its children with the offline state of the devtools `onlineManager`, and a function
|
|
14172
|
+
* that toggles it.
|
|
14173
|
+
* @param props - The `children` to render.
|
|
14174
|
+
* @returns The `children`, wrapped in the context provider.
|
|
14175
|
+
*/
|
|
14176
|
+
function DevtoolsOfflineProvider(props) {
|
|
14177
|
+
const [offline, setOffline] = createSignal(false);
|
|
14178
|
+
const context = useQueryDevtoolsContext();
|
|
14179
|
+
createEffect(() => {
|
|
14180
|
+
const manager = context.onlineManager;
|
|
14181
|
+
setOffline(!manager.isOnline());
|
|
14182
|
+
const unsubscribe = manager.subscribe((online) => setOffline(!online));
|
|
14183
|
+
onCleanup(unsubscribe);
|
|
14184
|
+
});
|
|
14185
|
+
const state = {
|
|
14186
|
+
offline,
|
|
14187
|
+
toggleOffline: () => {
|
|
14188
|
+
const manager = context.onlineManager;
|
|
14189
|
+
manager.setOnline(!manager.isOnline());
|
|
14190
|
+
}
|
|
14191
|
+
};
|
|
14192
|
+
return createComponent(DevtoolsOfflineContext.Provider, {
|
|
14193
|
+
value: state,
|
|
14194
|
+
get children() {
|
|
14195
|
+
return props.children;
|
|
14196
|
+
}
|
|
14197
|
+
});
|
|
14198
|
+
}
|
|
14199
|
+
// src/providers/DevtoolsStateProvider.tsx
|
|
14200
|
+
/**
|
|
14201
|
+
* Provides the selected query and mutation and the panel width to its children.
|
|
14202
|
+
* @param props - The `children` to render.
|
|
14203
|
+
* @returns The `children`, wrapped in the context provider.
|
|
14204
|
+
*/
|
|
14205
|
+
function DevtoolsStateProvider(props) {
|
|
14206
|
+
const [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
14207
|
+
const [selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
14208
|
+
const [panelWidth, setPanelWidth] = createSignal(0);
|
|
14209
|
+
const state = {
|
|
14210
|
+
selectedQueryHash,
|
|
14211
|
+
setSelectedQueryHash,
|
|
14212
|
+
selectedMutationId,
|
|
14213
|
+
setSelectedMutationId,
|
|
14214
|
+
panelWidth,
|
|
14215
|
+
setPanelWidth
|
|
14216
|
+
};
|
|
14217
|
+
return createComponent(DevtoolsStateContext.Provider, {
|
|
14218
|
+
value: state,
|
|
14219
|
+
get children() {
|
|
14220
|
+
return props.children;
|
|
14221
|
+
}
|
|
14222
|
+
});
|
|
14223
|
+
}
|
|
14224
|
+
// src/createCacheSubscriptionRegistry.ts
|
|
14225
|
+
/**
|
|
14226
|
+
* Creates a registry of components subscribed to a cache, so each one only updates for the cache
|
|
14227
|
+
* events it cares about.
|
|
14228
|
+
* @returns The `register` and `notify` functions of the registry.
|
|
14229
|
+
*/
|
|
14230
|
+
function createCacheSubscriptionRegistry() {
|
|
14231
|
+
const subscriptions = /* @__PURE__ */ new Map();
|
|
14232
|
+
/**
|
|
14233
|
+
* Registers a subscription that is removed when the current owner is cleaned up.
|
|
14234
|
+
* @param callback - Computes the value from the cache.
|
|
14235
|
+
* @param setter - Receives the computed value on every update.
|
|
14236
|
+
* @param shouldUpdate - Decides whether an event updates this subscription. Defaults to every
|
|
14237
|
+
* event.
|
|
14238
|
+
*/
|
|
14239
|
+
function register(callback, setter, shouldUpdate = () => true) {
|
|
14240
|
+
const id = Symbol();
|
|
14241
|
+
subscriptions.set(id, {
|
|
14242
|
+
shouldUpdate,
|
|
14243
|
+
update: (cache) => setter(callback(cache))
|
|
14244
|
+
});
|
|
14245
|
+
onCleanup(() => subscriptions.delete(id));
|
|
14246
|
+
}
|
|
14247
|
+
/**
|
|
14248
|
+
* Updates every subscription whose `shouldUpdate` accepts the event.
|
|
14249
|
+
* @param cache - The cache to compute the values from.
|
|
14250
|
+
* @param event - The cache event.
|
|
14251
|
+
* @param schedule - Runs each update. Defaults to running it right away.
|
|
14252
|
+
*/
|
|
14253
|
+
function notify(cache, event, schedule = (update) => update()) {
|
|
14254
|
+
for (const [id, subscription] of subscriptions) {
|
|
14255
|
+
if (!subscription.shouldUpdate(event)) continue;
|
|
14256
|
+
schedule(() => {
|
|
14257
|
+
if (subscriptions.has(id)) subscription.update(cache);
|
|
14258
|
+
});
|
|
14259
|
+
}
|
|
14260
|
+
}
|
|
14261
|
+
return {
|
|
14262
|
+
register,
|
|
14263
|
+
notify
|
|
14264
|
+
};
|
|
14265
|
+
}
|
|
14266
|
+
// src/providers/DevtoolsSubscriptionsProvider.tsx
|
|
14267
|
+
/**
|
|
14268
|
+
* Provides the query and mutation cache subscription registries to its children.
|
|
14269
|
+
* @param props - The `children` to render.
|
|
14270
|
+
* @returns The `children`, wrapped in the context provider.
|
|
14271
|
+
*/
|
|
14272
|
+
function DevtoolsSubscriptionsProvider(props) {
|
|
14273
|
+
const subscriptions = {
|
|
14274
|
+
queryCacheSubscriptions: createCacheSubscriptionRegistry(),
|
|
14275
|
+
mutationCacheSubscriptions: createCacheSubscriptionRegistry()
|
|
14276
|
+
};
|
|
14277
|
+
return createComponent(DevtoolsSubscriptionsContext.Provider, {
|
|
14278
|
+
value: subscriptions,
|
|
14279
|
+
get children() {
|
|
14280
|
+
return props.children;
|
|
14281
|
+
}
|
|
14282
|
+
});
|
|
14283
|
+
}
|
|
14284
|
+
export { Devtools as a, PiPProvider as c, createLocalStorage as d, I18nProvider as f, ContentView as i, QueryDevtoolsContext as l, DevtoolsStateProvider as n, ParentPanel as o, DevtoolsOfflineProvider as r, ThemeContext as s, DevtoolsSubscriptionsProvider as t, THEME_PREFERENCE as u };
|