tempest-react-sdk 0.41.0 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/tempest.mjs +3 -3
- package/dist/auth/create-tempest-auth.cjs +1 -1
- package/dist/auth/create-tempest-auth.cjs.map +1 -1
- package/dist/auth/create-tempest-auth.js +34 -30
- package/dist/auth/create-tempest-auth.js.map +1 -1
- package/dist/br.cjs +1 -1
- package/dist/br.cjs.map +1 -1
- package/dist/br.d.ts +0 -13
- package/dist/br.js +14 -15
- package/dist/br.js.map +1 -1
- package/dist/charts/palette.cjs +1 -1
- package/dist/charts/palette.cjs.map +1 -1
- package/dist/charts/palette.js +4 -4
- package/dist/charts/palette.js.map +1 -1
- package/dist/charts.cjs +1 -1
- package/dist/charts.d.ts +0 -3
- package/dist/charts.js +8 -8
- package/dist/http/api-client.cjs +1 -1
- package/dist/http/api-client.cjs.map +1 -1
- package/dist/http/api-client.js +58 -30
- package/dist/http/api-client.js.map +1 -1
- package/dist/http/resumable-upload.cjs +1 -1
- package/dist/http/resumable-upload.js +6 -6
- package/dist/icons/generated/aliases.cjs +1 -1
- package/dist/icons/generated/aliases.cjs.map +1 -1
- package/dist/icons/generated/aliases.js +9 -0
- package/dist/icons/generated/aliases.js.map +1 -1
- package/dist/icons/generated/icon-names.cjs +1 -1
- package/dist/icons/generated/icon-names.cjs.map +1 -1
- package/dist/icons/generated/icon-names.js +1 -1
- package/dist/icons/generated/icon-names.js.map +1 -1
- package/dist/icons/generated/shard-a.cjs +1 -1
- package/dist/icons/generated/shard-a.cjs.map +1 -1
- package/dist/icons/generated/shard-a.js +61 -61
- package/dist/icons/generated/shard-a.js.map +1 -1
- package/dist/icons/generated/shard-b.cjs +1 -1
- package/dist/icons/generated/shard-b.cjs.map +1 -1
- package/dist/icons/generated/shard-b.js +15 -13
- package/dist/icons/generated/shard-b.js.map +1 -1
- package/dist/icons/generated/shard-e.cjs +1 -1
- package/dist/icons/generated/shard-e.cjs.map +1 -1
- package/dist/icons/generated/shard-e.js +20 -19
- package/dist/icons/generated/shard-e.js.map +1 -1
- package/dist/icons/generated/shard-f.cjs +1 -1
- package/dist/icons/generated/shard-f.cjs.map +1 -1
- package/dist/icons/generated/shard-f.js +140 -134
- package/dist/icons/generated/shard-f.js.map +1 -1
- package/dist/icons/generated/shard-h.cjs +1 -1
- package/dist/icons/generated/shard-h.cjs.map +1 -1
- package/dist/icons/generated/shard-h.js +13 -14
- package/dist/icons/generated/shard-h.js.map +1 -1
- package/dist/icons/generated/shard-l.cjs +1 -1
- package/dist/icons/generated/shard-l.cjs.map +1 -1
- package/dist/icons/generated/shard-l.js +73 -69
- package/dist/icons/generated/shard-l.js.map +1 -1
- package/dist/icons/generated/shard-m.cjs +1 -1
- package/dist/icons/generated/shard-m.cjs.map +1 -1
- package/dist/icons/generated/shard-m.js +101 -98
- package/dist/icons/generated/shard-m.js.map +1 -1
- package/dist/icons/generated/shard-p.cjs +1 -1
- package/dist/icons/generated/shard-p.cjs.map +1 -1
- package/dist/icons/generated/shard-p.js +19 -20
- package/dist/icons/generated/shard-p.js.map +1 -1
- package/dist/icons/generated/shard-r.cjs +1 -1
- package/dist/icons/generated/shard-r.cjs.map +1 -1
- package/dist/icons/generated/shard-r.js +19 -17
- package/dist/icons/generated/shard-r.js.map +1 -1
- package/dist/icons/generated/shard-s.cjs +1 -1
- package/dist/icons/generated/shard-s.cjs.map +1 -1
- package/dist/icons/generated/shard-s.js +160 -159
- package/dist/icons/generated/shard-s.js.map +1 -1
- package/dist/icons/generated/shard-u.cjs +1 -1
- package/dist/icons/generated/shard-u.cjs.map +1 -1
- package/dist/icons/generated/shard-u.js +11 -10
- package/dist/icons/generated/shard-u.js.map +1 -1
- package/dist/icons/material-symbols.cjs +2 -0
- package/dist/icons/material-symbols.cjs.map +1 -0
- package/dist/icons/material-symbols.js +32 -0
- package/dist/icons/material-symbols.js.map +1 -0
- package/dist/icons/shard-cache.cjs.map +1 -1
- package/dist/icons/shard-cache.js.map +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.d.ts +74 -5
- package/dist/icons.js +2 -1
- package/dist/imaging/encode.cjs +1 -1
- package/dist/imaging/encode.cjs.map +1 -1
- package/dist/imaging/encode.js +1 -4
- package/dist/imaging/encode.js.map +1 -1
- package/dist/imaging.cjs +1 -1
- package/dist/imaging.d.ts +0 -7
- package/dist/imaging.js +6 -6
- package/dist/tabular/compact.cjs +1 -1
- package/dist/tabular/compact.cjs.map +1 -1
- package/dist/tabular/compact.js +8 -8
- package/dist/tabular/compact.js.map +1 -1
- package/dist/tabular/manifest.cjs +1 -1
- package/dist/tabular/manifest.cjs.map +1 -1
- package/dist/tabular/manifest.js +13 -14
- package/dist/tabular/manifest.js.map +1 -1
- package/dist/tabular.cjs +1 -1
- package/dist/tabular.d.ts +0 -9
- package/dist/tabular.js +5 -5
- package/dist/tempest-react-sdk.cjs +1 -1
- package/dist/tempest-react-sdk.d.ts +72 -305
- package/dist/tempest-react-sdk.js +183 -188
- package/dist/vision/index.cjs +1 -1
- package/dist/vision/index.cjs.map +1 -1
- package/dist/vision/index.js +1 -1
- package/dist/vision/index.js.map +1 -1
- package/dist/vision/preprocess/pipeline.cjs +1 -1
- package/dist/vision/preprocess/pipeline.cjs.map +1 -1
- package/dist/vision/preprocess/pipeline.js +43 -28
- package/dist/vision/preprocess/pipeline.js.map +1 -1
- package/dist/vision.d.ts +6 -3
- package/dist/vite.cjs +1 -1
- package/dist/vite.d.ts +0 -25
- package/dist/vite.js +6 -6
- package/package.json +5 -5
|
@@ -133,191 +133,186 @@ import { useNotificationInbox as Yt } from "./components/NotificationCenter/use-
|
|
|
133
133
|
import { VirtualList as Xt } from "./components/VirtualList/VirtualList.js";
|
|
134
134
|
import { compareValues as Zt } from "./utils/compare-values.js";
|
|
135
135
|
import { VirtualTable as Qt } from "./components/VirtualTable/VirtualTable.js";
|
|
136
|
-
import { QRCapacityError as $t, encodeQR as en, matrixToPath as tn
|
|
137
|
-
import { QRCode as
|
|
138
|
-
import { CopyButton as
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
171
|
-
import {
|
|
172
|
-
import {
|
|
173
|
-
import {
|
|
174
|
-
import {
|
|
175
|
-
import {
|
|
176
|
-
import {
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import {
|
|
182
|
-
import {
|
|
183
|
-
import {
|
|
184
|
-
import {
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
207
|
-
import {
|
|
208
|
-
import {
|
|
209
|
-
import {
|
|
210
|
-
import {
|
|
211
|
-
import {
|
|
212
|
-
import {
|
|
213
|
-
import {
|
|
214
|
-
import {
|
|
215
|
-
import {
|
|
216
|
-
import {
|
|
217
|
-
import {
|
|
218
|
-
import {
|
|
219
|
-
import {
|
|
220
|
-
import {
|
|
221
|
-
import {
|
|
222
|
-
import {
|
|
223
|
-
import {
|
|
224
|
-
import {
|
|
225
|
-
import {
|
|
226
|
-
import {
|
|
227
|
-
import {
|
|
228
|
-
import {
|
|
229
|
-
import {
|
|
230
|
-
import {
|
|
231
|
-
import {
|
|
232
|
-
import {
|
|
233
|
-
import {
|
|
234
|
-
import {
|
|
235
|
-
import {
|
|
236
|
-
import {
|
|
237
|
-
import {
|
|
238
|
-
import {
|
|
239
|
-
import {
|
|
240
|
-
import {
|
|
241
|
-
import {
|
|
242
|
-
import {
|
|
243
|
-
import {
|
|
244
|
-
import {
|
|
245
|
-
import {
|
|
246
|
-
import {
|
|
247
|
-
import {
|
|
248
|
-
import {
|
|
249
|
-
import {
|
|
250
|
-
import {
|
|
251
|
-
import {
|
|
252
|
-
import {
|
|
253
|
-
import {
|
|
254
|
-
import {
|
|
255
|
-
import {
|
|
256
|
-
import {
|
|
257
|
-
import {
|
|
258
|
-
import {
|
|
259
|
-
import {
|
|
260
|
-
import {
|
|
261
|
-
import {
|
|
262
|
-
import {
|
|
263
|
-
import {
|
|
264
|
-
import {
|
|
265
|
-
import {
|
|
266
|
-
import {
|
|
267
|
-
import {
|
|
268
|
-
import {
|
|
269
|
-
import {
|
|
270
|
-
import {
|
|
271
|
-
import {
|
|
272
|
-
import {
|
|
273
|
-
import {
|
|
274
|
-
import {
|
|
275
|
-
import {
|
|
276
|
-
import {
|
|
277
|
-
import {
|
|
278
|
-
import {
|
|
279
|
-
import {
|
|
280
|
-
import {
|
|
281
|
-
import {
|
|
282
|
-
import {
|
|
283
|
-
import {
|
|
284
|
-
import {
|
|
285
|
-
import {
|
|
286
|
-
import {
|
|
287
|
-
import {
|
|
288
|
-
import {
|
|
289
|
-
import {
|
|
290
|
-
import {
|
|
291
|
-
import {
|
|
292
|
-
import {
|
|
293
|
-
import {
|
|
294
|
-
import {
|
|
295
|
-
import {
|
|
296
|
-
import {
|
|
297
|
-
import {
|
|
298
|
-
import {
|
|
299
|
-
import {
|
|
300
|
-
import {
|
|
301
|
-
import {
|
|
302
|
-
import {
|
|
303
|
-
import {
|
|
304
|
-
import {
|
|
305
|
-
import {
|
|
306
|
-
import {
|
|
307
|
-
import {
|
|
308
|
-
import {
|
|
309
|
-
import {
|
|
310
|
-
import {
|
|
311
|
-
import {
|
|
312
|
-
import {
|
|
313
|
-
import {
|
|
314
|
-
import {
|
|
315
|
-
import {
|
|
316
|
-
import {
|
|
317
|
-
import {
|
|
318
|
-
import { DIVERGING_STEP_COUNT as Ac, ORDINAL_START_STEP as jc, SEQUENTIAL_STEP_COUNT as Mc, divergingScale as Nc, scaleSteps as Pc, sequentialScale as Fc } from "./charts/scales.js";
|
|
319
|
-
import { cachedResponseBytes as Ic } from "./perf/cache-size.js";
|
|
320
|
-
import { readDeviceProfile as Lc } from "./perf/device.js";
|
|
321
|
-
import { formatDurationMs as Rc } from "./perf/format.js";
|
|
322
|
-
import { createInferenceProfiler as zc } from "./perf/profiler.js";
|
|
323
|
-
export { Br as AIChat, Fr as AIChatComposer, zr as AIChatTurn, yr as ALL_BARCODE_FORMATS, or as AUDIO_MIME_CANDIDATES, ua as AccessControlProvider, t as Accordion, n as Alert, r as AppBar, vo as AppProviders, Wa as AppRouter, o as AppShell, s as AspectRatio, rr as AudioPlayer, vr as AudioRecorder, Ki as AuthGuard, c as Avatar, l as AvatarGroup, i as BREAKPOINTS, u as Badge, d as Banner, Dr as BarcodeScanner, f as BottomNavigation, p as BottomSheet, m as Breadcrumbs, Ka as BrowserRouter, h as Button, va as CACHE_TIME, ls as CEPInput, us as CNPJInput, ds as CPFInput, Mn as Calendar, pa as Can, g as Card, Rn as Carousel, _ as Center, er as Chat, $n as ChatComposer, v as Checkbox, y as ChipInput, hn as ClickOutside, ln as CodeBlock, En as Collapsible, b as Combobox, kn as Command, gn as ConditionalWrapper, S as ConfirmDialog, I as Container, Dn as ContextMenu, hs as Controller, an as CopyButton, br as DEFAULT_BARCODE_FORMATS, Ps as DEFAULT_CAR_SPEED_KMH, zi as DEFAULT_CHUNK_SIZE, Fs as DEFAULT_CIRCUITY_FACTOR, Is as DEFAULT_MODE_DURATION_FACTORS, Zi as DEFAULT_PUB_KEY_CRED_PARAMS, Ac as DIVERGING_STEP_COUNT, bn as DataList, zn as DataTable, w as DatePicker, Fn as DateRangePicker, xn as DescriptionList, T as Divider, E as Drawer, D as DropdownMenu, O as Dropzone, ks as EARTH_RADIUS_KM, k as EmptyState, _o as ErrorBoundary, A as ErrorState, vn as ErrorText, xc as FeatureFlagsProvider, j as FileUpload, Xr as FilterBar, Vn as FloatingActionButton, _n as For, M as Form, N as FormActions, es as FormField, gs as FormProvider, P as FormRow, F as FormSection, ga as GoogleSignIn, L as Grid, qa as HashRouter, yt as Hide, On as HoverCard, mo as I18nProvider, yn as Image, Wt as ImageCropper, C as Input, B as InstallBanner, V as InstallButton, et as Kanban, nt as Kbd, Tn as Label, Kn as Lightbox, Ja as Link, Bn as ListTile, Hs as MERCATOR_MAX_LATITUDE, Rr as Markdown, Wr as Masonry, Ya as MemoryRouter, Ln as Menubar, x as Modal, rt as ModalsProvider, dn as Money, fs as MoneyInput, Pn as MultiSelect, ot as NProgressBar, Xa as NavLink, at as Navbar, Za as Navigate, In as NavigationMenu, Hn as NavigationRail, Jt as NotificationCenter, jc as ORDINAL_START_STEP, Je as OfflineIndicator, Qa as Outlet, ct as Page, lt as Pagination, Qi as PasskeyError, ut as PasswordInput, ps as PhoneInput, ft as PinInput, pt as Popover, mn as Portal, mt as Progress, $t as QRCapacityError, rn as QRCode, Sa as QueryProvider, ya as REFETCH_TIME, ht as Radio, gt as RadioGroup, _t as RangeSlider, vt as RatingStars, Wn as RefreshIndicator, un as RelativeTime, jn as Resizable, $a as Route, Ua as RouteGuard, eo as Routes, Mc as SEQUENTIAL_STEP_COUNT, ba as STALE_TIME, xt as SafeArea, Kt as Scheduler, An as ScrollArea, St as SearchBar, Ct as SegmentedControl, wt as Select, bt as Show, Tt as Sidebar, qn as SignaturePad, Et as Skeleton, Nn as Slider, Dt as Spacer, Gt as Sparkline, Ot as Spinner, R as Stack, kt as Stat, At as Stepper, Pt as StepperInput, Ft as Switch, Qe as SyncStatusBadge, Xs as THEME_STYLE_ID, Bi as TUS_VERSION, Lt as Table, Rt as Tabs, It as Tag, gc as TelemetryProvider, ji as TempestApiError, Pa as TempestDataProvider, zt as Textarea, uo as ThemeProvider, Un as TimePicker, Bt as Timeline, Ht as ToastProvider, Sn as Toggle, Cn as ToggleGroup, wn as ToggleGroupItem, Vt as Tooltip, Gr as Tour, Ys as TrajectoryMap, Ur as Transfer, fn as TreeView, pn as TruncateText, $e as UpdatePrompt, Vo as VIDEO_MIME_CANDIDATES, Xt as VirtualList, Qt as VirtualTable, Ze as VisuallyHidden, Co as WebPushClient, wo as WebPushPermissionDeniedError, To as WebPushUnsupportedError, Gn as Wizard, Or as aiChatStrings, oe as announce, tt as applyKanbanMove, Zs as applyTheme, Vr as applyTransferMove, vi as assertNever, $i as base64UrlToBytes, As as bearingDeg, gr as blobToWav, zs as boundingBox, Bs as boundsCenter, Mi as buildApiError, Ae as buildOpenInChromeIntent, ea as bytesToBase64Url, Ic as cachedResponseBytes, ii as camelCase, ai as capitalize, Jn as chatStrings, ui as chunk, jt as clamp, ws as clampLatitude, fr as classifyMediaError, ta as classifyPasskeyError, se as clearAnnouncer, Fo as clearCaches, e as cn, Zt as compareValues, mc as consoleSink, vc as consoleTelemetryAdapter, $s as contrastRatio, Pi as createApiClient, Lo as createAudioPlayer, sr as createAudioRecorder, Gi as createAuthStore, xr as createBarcodeDetector, ec as createColorScale, Na as createDataProvider, yo as createEventStream, Tc as createGrowthBookFeatureFlagsAdapter, po as createI18n, wc as createInMemoryFlags, zc as createInferenceProfiler, Ec as createLaunchDarklyFeatureFlagsAdapter, ur as createLevelMeter, Vi as createLocalUploadStorage, hc as createLogger, ir as createMediaRecorder, Ks as createOSRMBackend, ja as createOfflineStore, Xo as createOfflineSync, Ao as createPartialResponse, na as createPasskeyClient, qs as createPositionTracker, bc as createPostHogTelemetryAdapter, xa as createQueryKeys, Xi as createRefreshQueue, Hi as createResumableUpload, ma as createRoleAccessControl, lo as createSelectors, yc as createSentryTelemetryAdapter, co as createStore, la as createTempestAuth, cc as createTheme, Ho as createVideoRecorder, Ss as createWebSocket, Yn as dayLabel, Ci as debounce, qi as decodeJWT, mi as deepMerge, Ga as defineRoutes, Kr as describeFilter, Nc as divergingScale, Ls as durationFactor, Ca as emptyOffsetPage, en as encodeQR, _r as encodeWav, dt as estimatePasswordStrength, Be as estimateStorage, Rs as estimateTravel, Vs as expandBounds, qr as filtersFromSearchParams, Jr as filtersToSearchParams, Us as fitProjection, Mt as formatBytes, is as formatCEP, as as formatCNPJ, Zr as formatCPF, Nt as formatCompactNumber, Qr as formatCurrency, $r as formatDate, ei as formatDateTime, Rc as formatDurationMs, ti as formatPercent, ni as formatPhone, Li as generateIdempotencyKey, fc as getInitialTheme, Sr as getSupportedBarcodeFormats, uc as getThemePreset, di as groupBy, Xn as groupMessages, js as haversineKm, tc as hexToOklch, nc as hexToRgb, rc as hexToRgbaString, Zo as higherVersionWins, Io as inspectCaches, No as installBackgroundSync, Do as installNotificationClickHandler, jo as installPrecache, Oo as installPushHandler, Mo as installRuntimeCache, ko as installSkipWaitingListener, je as isAndroid, Me as isAndroidWithoutPromptApi, Ni as isApiError, tr as isAudioOutputSelectionSupported, cr as isAudioRecordingSupported, Cr as isBarcodeDetectionSupported, ra as isConditionalMediationAvailable, Ts as isCoordinate, wa as isCursorPage, yi as isDefined, hi as isEmpty, kr as isGenerating, Ne as isIOS, Ji as isJWTExpired, pr as isMediaCaptureSupported, bi as isNumber, Ta as isOffsetPage, ia as isPasskeySupported, xi as isPlainObject, aa as isPlatformAuthenticatorAvailable, xo as isPushSupported, Ko as isScreenCaptureSupported, Dc as isShareSupported, Jo as isSpeechRecognitionSupported, Pe as isStandalone, Si as isString, Es as isValidLatitude, Ds as isValidLongitude, Uo as isVideoRecordingSupported, oi as kebabCase, Ar as lastAssistantId, Qo as lastWriteWins, Yi as lazyWithRetry, Ia as listQueryKey, tn as matrixToPath, wi as memoizeOne, mr as missingCaptureApiError, Ue as moveItem, wr as normalizeBarcode, Os as normalizeLongitude, st as nprogress, ic as oklchToHex, gi as omit, Ti as once, La as oneQueryKey, Yr as operatorsFor, Lr as parseMarkdown, Fi as parseResponse, Ms as pathLengthKm, ha as permissionsFromToken, Ma as persistQueryClientOffline, _i as pick, lr as pickAudioMimeType, ar as pickRecordingMimeType, Wo as pickVideoMimeType, Ro as playAudio, si as pluralize, Ws as projectMercator, ki as randomId, fi as range, Lc as readDeviceProfile, Qs as readThemeToken, ac as readableForeground, to as redirect, Po as registerPeriodicSync, Ie as registerServiceWorker, oc as relativeLuminance, qt as relativeTime, ka as removeById, Ve as requestPersistentStorage, on as resolveLanguage, Ri as retry, sc as rgbToHex, jr as roleLabel, Ir as safeLinkUrl, Pc as scaleSteps, nn as selectMode, Fc as sequentialScale, nr as setAudioOutput, Oc as share, kc as shareOrDownloadBlob, Le as skipWaiting, Di as sleep, ci as slugify, Hr as splitTransferSides, zo as stopAudio, ri as storage, Mr as tailSignature, lc as themeContrast, pc as themeInitScript, dc as themePresets, Ei as throttle, Zn as timeLabel, Ns as toRadians, sn as tokenize, cn as tokenizeLines, li as truncate, Nr as turnTime, Qn as typingLabel, pi as uniqueBy, os as unmask, Gs as unprojectMercator, Re as unregisterAllServiceWorkers, Ui as uploadFingerprint, Ii as uploadWithProgress, Aa as upsertById, So as urlBase64ToUint8Array, da as useAccessControl, ce as useAnnounce, Y as useAsync, Bo as useAudio, dr as useAudioRecorder, Er as useBarcodeScanner, z as useBeforeInstallPrompt, a as useBreakpoint, fa as useCan, Ee as useClickOutside, W as useClientFilter, ee as useClipboard, be as useCounter, Ra as useCreate, Da as useCursorQuery, Fa as useDataProvider, H as useDebounce, ue as useDeepMemo, za as useDelete, ve as useDisclosure, xe as useDocumentTitle, Z as useDocumentVisibility, $o as useErrorHandler, K as useEventListener, bo as useEventStream, Se as useFavicon, Sc as useFeatureFlag, _s as useFieldArray, Cc as useFlagValue, ae as useFocusTrap, vs as useForm, ys as useFormContext, bs as useFormState, re as useGeolocation, ge as useHover, ho as useI18n, ne as useIdle, Fe as useInstallPrompt, Q as useIntersectionObserver, fe as useInterval, De as useIsFirstRender, te as useKeyboardShortcut, Ba as useList, ye as useListState, q as useLocalStorage, no as useLocation, _e as useLongPress, ke as useLongPressHandlers, Ce as useMap, ro as useMatch, qe as useMediaDevices, Ke as useMediaPermission, G as useMediaQuery, hr as useMicrophone, it as useModals, io as useNavigate, Yt as useNotificationInbox, _a as useOAuthCallback, Oe as useObjectUrl, Oa as useOfflineMutation, Ye as useOfflineSync, Va as useOne, X as useOnline, Ea as usePaginatedQuery, U as usePagination, ao as useParams, oa as usePasskeyCapabilities, sa as usePasskeyRegistration, ca as usePasskeySignIn, Wi as usePoll, Js as usePositionTracker, de as usePrevious, Eo as usePushSubscription, Te as useQueue, $ as useResizeObserver, oo as useRouteError, qo as useScreenCapture, ie as useScrollLock, Ge as useScrollOverflow, so as useSearchParams, ze as useServiceWorkerUpdate, we as useSet, We as useSortable, Yo as useSpeechRecognition, le as useStableCallback, He as useStorageEstimate, Xe as useSyncStatus, _c as useTelemetry, fo as useTheme, me as useThrottle, pe as useTimeout, Ut as useToast, J as useToggle, Tr as useTorch, go as useTranslate, Ha as useUpdate, ms as useViaCEP, Go as useVideoRecorder, xs as useWatch, Cs as useWebSocket, he as useWindowSize, rs as useZodForm, ss as validateCNPJ, cs as validateCPF, ts as validateForm, Pr as visibleTurns, Oi as withTimeout, Ai as writeXlsx, ns as zodResolver };
|
|
136
|
+
import { QRCapacityError as $t, encodeQR as en, matrixToPath as tn } from "./components/QRCode/qr-encode.js";
|
|
137
|
+
import { QRCode as nn } from "./components/QRCode/QRCode.js";
|
|
138
|
+
import { CopyButton as rn } from "./components/CopyButton/CopyButton.js";
|
|
139
|
+
import { CodeBlock as an } from "./components/CodeBlock/CodeBlock.js";
|
|
140
|
+
import { RelativeTime as on } from "./components/RelativeTime/RelativeTime.js";
|
|
141
|
+
import { Money as sn } from "./components/Money/Money.js";
|
|
142
|
+
import { TreeView as cn } from "./components/TreeView/TreeView.js";
|
|
143
|
+
import { TruncateText as ln } from "./components/TruncateText/TruncateText.js";
|
|
144
|
+
import { Portal as un } from "./components/Portal/Portal.js";
|
|
145
|
+
import { ClickOutside as dn } from "./components/ClickOutside/ClickOutside.js";
|
|
146
|
+
import { ConditionalWrapper as fn } from "./components/ConditionalWrapper/ConditionalWrapper.js";
|
|
147
|
+
import { For as pn } from "./components/For/For.js";
|
|
148
|
+
import { ErrorText as mn } from "./components/ErrorText/ErrorText.js";
|
|
149
|
+
import { Image as hn } from "./components/Image/Image.js";
|
|
150
|
+
import { DataList as gn } from "./components/DataList/DataList.js";
|
|
151
|
+
import { DescriptionList as _n } from "./components/DescriptionList/DescriptionList.js";
|
|
152
|
+
import { Toggle as vn } from "./components/Toggle/Toggle.js";
|
|
153
|
+
import { ToggleGroup as yn, ToggleGroupItem as bn } from "./components/ToggleGroup/ToggleGroup.js";
|
|
154
|
+
import { Label as xn } from "./components/Label/Label.js";
|
|
155
|
+
import { Collapsible as Sn } from "./components/Collapsible/Collapsible.js";
|
|
156
|
+
import { ContextMenu as Cn } from "./components/ContextMenu/ContextMenu.js";
|
|
157
|
+
import { HoverCard as wn } from "./components/HoverCard/HoverCard.js";
|
|
158
|
+
import { Command as Tn } from "./components/Command/Command.js";
|
|
159
|
+
import { ScrollArea as En } from "./components/ScrollArea/ScrollArea.js";
|
|
160
|
+
import { Resizable as Dn } from "./components/Resizable/Resizable.js";
|
|
161
|
+
import { Calendar as On } from "./components/Calendar/Calendar.js";
|
|
162
|
+
import { Slider as kn } from "./components/Slider/Slider.js";
|
|
163
|
+
import { MultiSelect as An } from "./components/MultiSelect/MultiSelect.js";
|
|
164
|
+
import { DateRangePicker as jn } from "./components/DateRangePicker/DateRangePicker.js";
|
|
165
|
+
import { NavigationMenu as Mn } from "./components/NavigationMenu/NavigationMenu.js";
|
|
166
|
+
import { Menubar as Nn } from "./components/Menubar/Menubar.js";
|
|
167
|
+
import { Carousel as Pn } from "./components/Carousel/Carousel.js";
|
|
168
|
+
import { DataTable as Fn } from "./components/DataTable/DataTable.js";
|
|
169
|
+
import { ListTile as In } from "./components/ListTile/ListTile.js";
|
|
170
|
+
import { FloatingActionButton as Ln } from "./components/FloatingActionButton/FloatingActionButton.js";
|
|
171
|
+
import { NavigationRail as Rn } from "./components/NavigationRail/NavigationRail.js";
|
|
172
|
+
import { TimePicker as zn } from "./components/TimePicker/TimePicker.js";
|
|
173
|
+
import { RefreshIndicator as Bn } from "./components/RefreshIndicator/RefreshIndicator.js";
|
|
174
|
+
import { Wizard as Vn } from "./components/Wizard/Wizard.js";
|
|
175
|
+
import { Lightbox as Hn } from "./components/Lightbox/Lightbox.js";
|
|
176
|
+
import { SignaturePad as Un } from "./components/SignaturePad/SignaturePad.js";
|
|
177
|
+
import { ChatComposer as Wn } from "./components/Chat/ChatComposer.js";
|
|
178
|
+
import { Chat as Gn } from "./components/Chat/Chat.js";
|
|
179
|
+
import { isAudioOutputSelectionSupported as Kn, setAudioOutput as qn } from "./audio/audio-output.js";
|
|
180
|
+
import { AudioPlayer as Jn } from "./components/AudioPlayer/AudioPlayer.js";
|
|
181
|
+
import { createMediaRecorder as Yn } from "./capture/media-recorder.js";
|
|
182
|
+
import { AUDIO_MIME_CANDIDATES as Xn, createAudioRecorder as Zn, isAudioRecordingSupported as Qn, pickAudioMimeType as $n } from "./audio/audio-recorder.js";
|
|
183
|
+
import { createLevelMeter as er } from "./audio/level-meter.js";
|
|
184
|
+
import { useAudioRecorder as tr } from "./audio/use-audio-recorder.js";
|
|
185
|
+
import { isMediaCaptureSupported as nr } from "./audio/media-access.js";
|
|
186
|
+
import { useMicrophone as rr } from "./audio/use-microphone.js";
|
|
187
|
+
import { blobToWav as ir, encodeWav as ar } from "./audio/wav.js";
|
|
188
|
+
import { AudioRecorder as or } from "./components/AudioRecorder/AudioRecorder.js";
|
|
189
|
+
import { ALL_BARCODE_FORMATS as sr, DEFAULT_BARCODE_FORMATS as cr, createBarcodeDetector as lr, getSupportedBarcodeFormats as ur, isBarcodeDetectionSupported as dr, normalizeBarcode as fr } from "./capture/barcode.js";
|
|
190
|
+
import { useTorch as pr } from "./capture/use-torch.js";
|
|
191
|
+
import { useBarcodeScanner as mr } from "./capture/use-barcode-scanner.js";
|
|
192
|
+
import { BarcodeScanner as hr } from "./components/BarcodeScanner/BarcodeScanner.js";
|
|
193
|
+
import { aiChatStrings as gr, isGenerating as _r, lastAssistantId as vr, roleLabel as yr, tailSignature as br, turnTime as xr, visibleTurns as Sr } from "./components/AIChat/ai-chat-turns.js";
|
|
194
|
+
import { AIChatComposer as Cr } from "./components/AIChat/AIChatComposer.js";
|
|
195
|
+
import { Markdown as wr } from "./components/Markdown/Markdown.js";
|
|
196
|
+
import { AIChatTurn as Tr } from "./components/AIChat/AIChatTurn.js";
|
|
197
|
+
import { AIChat as Er } from "./components/AIChat/AIChat.js";
|
|
198
|
+
import { Transfer as Dr } from "./components/Transfer/Transfer.js";
|
|
199
|
+
import { Masonry as Or } from "./components/Masonry/Masonry.js";
|
|
200
|
+
import { Tour as kr } from "./components/Tour/Tour.js";
|
|
201
|
+
import { describeFilter as Ar, filtersFromSearchParams as jr, filtersToSearchParams as Mr, operatorsFor as Nr } from "./components/FilterBar/filter-model.js";
|
|
202
|
+
import { FilterBar as Pr } from "./components/FilterBar/FilterBar.js";
|
|
203
|
+
import { formatCPF as Fr, formatCurrency as Ir, formatDate as Lr, formatDateTime as Rr, formatPercent as zr, formatPhone as Br } from "./utils/format.js";
|
|
204
|
+
import { storage as Vr } from "./utils/storage.js";
|
|
205
|
+
import { camelCase as Hr, capitalize as Ur, kebabCase as Wr, pluralize as Gr, slugify as Kr, truncate as qr } from "./utils/strings.js";
|
|
206
|
+
import { chunk as Jr, groupBy as Yr, range as Xr, uniqueBy as Zr } from "./utils/arrays.js";
|
|
207
|
+
import { deepMerge as Qr, isEmpty as $r, omit as ei, pick as ti } from "./utils/objects.js";
|
|
208
|
+
import { assertNever as ni, isDefined as ri, isNumber as ii, isPlainObject as ai, isString as oi } from "./utils/guards.js";
|
|
209
|
+
import { debounce as si, memoizeOne as ci, once as li, throttle as ui } from "./utils/functions.js";
|
|
210
|
+
import { sleep as di, withTimeout as fi } from "./utils/promises.js";
|
|
211
|
+
import { randomId as pi } from "./utils/ids.js";
|
|
212
|
+
import { writeXlsx as mi } from "./utils/xlsx.js";
|
|
213
|
+
import { TempestApiError as hi, isApiError as gi } from "./http/errors.js";
|
|
214
|
+
import { retry as _i } from "./http/retry.js";
|
|
215
|
+
import { createApiClient as vi } from "./http/api-client.js";
|
|
216
|
+
import { parseResponse as yi } from "./http/parse-response.js";
|
|
217
|
+
import { uploadWithProgress as bi } from "./http/upload-with-progress.js";
|
|
218
|
+
import { generateIdempotencyKey as xi } from "./http/idempotency.js";
|
|
219
|
+
import { DEFAULT_CHUNK_SIZE as Si, createLocalUploadStorage as Ci, createResumableUpload as wi, uploadFingerprint as Ti } from "./http/resumable-upload.js";
|
|
220
|
+
import { usePoll as Ei } from "./http/use-poll.js";
|
|
221
|
+
import { createAuthStore as Di } from "./auth/create-auth-store.js";
|
|
222
|
+
import { AuthGuard as Oi } from "./auth/AuthGuard.js";
|
|
223
|
+
import { decodeJWT as ki, isJWTExpired as Ai } from "./auth/jwt.js";
|
|
224
|
+
import { lazyWithRetry as ji } from "./auth/lazy-with-retry.js";
|
|
225
|
+
import { createRefreshQueue as Mi } from "./auth/refresh-queue.js";
|
|
226
|
+
import { DEFAULT_PUB_KEY_CRED_PARAMS as Ni, PasskeyError as Pi, base64UrlToBytes as Fi, bytesToBase64Url as Ii, classifyPasskeyError as Li, createPasskeyClient as Ri, isConditionalMediationAvailable as zi, isPasskeySupported as Bi, isPlatformAuthenticatorAvailable as Vi } from "./auth/passkey.js";
|
|
227
|
+
import { usePasskeyCapabilities as Hi, usePasskeyRegistration as Ui, usePasskeySignIn as Wi } from "./auth/use-passkey.js";
|
|
228
|
+
import { createTempestAuth as Gi } from "./auth/create-tempest-auth.js";
|
|
229
|
+
import { AccessControlProvider as Ki, useAccessControl as qi } from "./access/access-control-context.js";
|
|
230
|
+
import { useCan as Ji } from "./access/use-can.js";
|
|
231
|
+
import { Can as Yi } from "./access/Can.js";
|
|
232
|
+
import { createRoleAccessControl as Xi } from "./access/create-role-access-control.js";
|
|
233
|
+
import { permissionsFromToken as Zi } from "./access/permissions-from-token.js";
|
|
234
|
+
import { GoogleSignIn as Qi } from "./oauth/GoogleSignIn.js";
|
|
235
|
+
import { useOAuthCallback as $i } from "./oauth/use-oauth-callback.js";
|
|
236
|
+
import { CACHE_TIME as ea, REFETCH_TIME as ta, STALE_TIME as na } from "./query/constants.js";
|
|
237
|
+
import { createQueryKeys as ra } from "./query/create-query-keys.js";
|
|
238
|
+
import { QueryProvider as ia } from "./query/QueryProvider.js";
|
|
239
|
+
import { emptyOffsetPage as aa, isCursorPage as oa, isOffsetPage as sa } from "./query/pagination.js";
|
|
240
|
+
import { usePaginatedQuery as ca } from "./query/use-paginated-query.js";
|
|
241
|
+
import { useCursorQuery as la } from "./query/use-cursor-query.js";
|
|
242
|
+
import { useOfflineMutation as ua } from "./query/use-offline-mutation.js";
|
|
243
|
+
import { removeById as da, upsertById as fa } from "./query/optimistic.js";
|
|
244
|
+
import { createOfflineStore as pa } from "./offline/create-offline-store.js";
|
|
245
|
+
import { persistQueryClientOffline as ma } from "./query/offline-persistence.js";
|
|
246
|
+
import { createDataProvider as ha } from "./data/create-data-provider.js";
|
|
247
|
+
import { TempestDataProvider as ga, useDataProvider as _a } from "./data/data-provider-context.js";
|
|
248
|
+
import { listQueryKey as va, oneQueryKey as ya, useCreate as ba, useDelete as xa, useList as Sa, useOne as Ca, useUpdate as wa } from "./data/use-resource.js";
|
|
249
|
+
import { RouteGuard as Ta } from "./router/RouteGuard.js";
|
|
250
|
+
import { AppRouter as Ea, defineRoutes as Da } from "./router/AppRouter.js";
|
|
251
|
+
import { BrowserRouter as Oa, HashRouter as ka, Link as Aa, MemoryRouter as ja, NavLink as Ma, Navigate as Na, Outlet as Pa, Route as Fa, Routes as Ia, redirect as La, useLocation as Ra, useMatch as za, useNavigate as Ba, useParams as Va, useRouteError as Ha, useSearchParams as Ua } from "./router/index.js";
|
|
252
|
+
import { createStore as Wa } from "./store/create-store.js";
|
|
253
|
+
import { createSelectors as Ga } from "./store/create-selectors.js";
|
|
254
|
+
import { ThemeProvider as Ka, useTheme as qa } from "./theme/ThemeProvider.js";
|
|
255
|
+
import { createI18n as Ja } from "./i18n/create-i18n.js";
|
|
256
|
+
import { I18nProvider as Ya, useI18n as Xa, useTranslate as Za } from "./i18n/I18nProvider.js";
|
|
257
|
+
import { ErrorBoundary as Qa } from "./error-boundary/ErrorBoundary.js";
|
|
258
|
+
import { AppProviders as $a } from "./app/AppProviders.js";
|
|
259
|
+
import { createEventStream as eo } from "./sse/create-event-stream.js";
|
|
260
|
+
import { useEventStream as to } from "./sse/use-event-stream.js";
|
|
261
|
+
import { isPushSupported as no, urlBase64ToUint8Array as ro } from "./push/utils.js";
|
|
262
|
+
import { WebPushClient as io, WebPushPermissionDeniedError as ao, WebPushUnsupportedError as oo } from "./push/web-push-client.js";
|
|
263
|
+
import { usePushSubscription as so } from "./push/use-push-subscription.js";
|
|
264
|
+
import { installNotificationClickHandler as co, installPushHandler as lo, installSkipWaitingListener as uo } from "./sw/create-push-handler.js";
|
|
265
|
+
import { createPartialResponse as fo, installPrecache as po, installRuntimeCache as mo } from "./sw/cache.js";
|
|
266
|
+
import { installBackgroundSync as ho } from "./sw/background-sync.js";
|
|
267
|
+
import { registerPeriodicSync as go } from "./sw/periodic-sync.js";
|
|
268
|
+
import { clearCaches as _o, inspectCaches as vo } from "./sw/cache-inspect.js";
|
|
269
|
+
import { createAudioPlayer as yo, playAudio as bo, stopAudio as xo } from "./audio/audio-player.js";
|
|
270
|
+
import { useAudio as So } from "./audio/use-audio.js";
|
|
271
|
+
import { createVideoRecorder as Co, isVideoRecordingSupported as wo, pickVideoMimeType as To } from "./capture/video-recorder.js";
|
|
272
|
+
import { useVideoRecorder as Eo } from "./capture/use-video-recorder.js";
|
|
273
|
+
import { isScreenCaptureSupported as Do, useScreenCapture as Oo } from "./capture/use-screen-capture.js";
|
|
274
|
+
import { isSpeechRecognitionSupported as ko, useSpeechRecognition as Ao } from "./capture/use-speech-recognition.js";
|
|
275
|
+
import { createOfflineSync as jo } from "./offline/create-offline-sync.js";
|
|
276
|
+
import { higherVersionWins as Mo, lastWriteWins as No } from "./offline/conflict.js";
|
|
277
|
+
import { useErrorHandler as Po } from "./error-boundary/use-error-handler.js";
|
|
278
|
+
import { FormField as Fo } from "./forms/FormField.js";
|
|
279
|
+
import { validateForm as Io } from "./forms/validate-form.js";
|
|
280
|
+
import { zodResolver as Lo } from "./forms/zod-resolver.js";
|
|
281
|
+
import { useZodForm as Ro } from "./forms/use-zod-form.js";
|
|
282
|
+
import { formatCEP as zo, formatCNPJ as Bo, unmask as Vo, validateCNPJ as Ho, validateCPF as Uo } from "./forms/br-validators.js";
|
|
283
|
+
import { CEPInput as Wo, CNPJInput as Go, CPFInput as Ko, MoneyInput as qo, PhoneInput as Jo } from "./forms/masked-inputs.js";
|
|
284
|
+
import { useViaCEP as Yo } from "./forms/use-viacep.js";
|
|
285
|
+
import { Controller as Xo, FormProvider as Zo, useFieldArray as Qo, useForm as $o, useFormContext as es, useFormState as ts, useWatch as ns } from "./forms/index.js";
|
|
286
|
+
import { createWebSocket as rs } from "./ws/create-web-socket.js";
|
|
287
|
+
import { useWebSocket as is } from "./ws/use-web-socket.js";
|
|
288
|
+
import { clampLatitude as as, isCoordinate as os, isValidLatitude as ss, isValidLongitude as cs, normalizeLongitude as ls } from "./geo/types.js";
|
|
289
|
+
import { EARTH_RADIUS_KM as us, bearingDeg as ds, haversineKm as fs, pathLengthKm as ps, toRadians as ms } from "./geo/distance.js";
|
|
290
|
+
import { DEFAULT_CAR_SPEED_KMH as hs, DEFAULT_CIRCUITY_FACTOR as gs, DEFAULT_MODE_DURATION_FACTORS as _s, estimateTravel as vs } from "./geo/estimate.js";
|
|
291
|
+
import { boundingBox as ys, boundsCenter as bs, expandBounds as xs } from "./geo/bounds.js";
|
|
292
|
+
import { fitProjection as Ss, projectMercator as Cs, unprojectMercator as ws } from "./geo/projection.js";
|
|
293
|
+
import { createOSRMBackend as Ts } from "./geo/routing.js";
|
|
294
|
+
import { createPositionTracker as Es } from "./geo/create-position-tracker.js";
|
|
295
|
+
import { usePositionTracker as Ds } from "./geo/use-position-tracker.js";
|
|
296
|
+
import { TrajectoryMap as Os } from "./geo/TrajectoryMap.js";
|
|
297
|
+
import { applyTheme as ks, readThemeToken as As } from "./theme/apply-theme.js";
|
|
298
|
+
import { contrastRatio as js, createColorScale as Ms, hexToOklch as Ns, hexToRgb as Ps, hexToRgbaString as Fs, oklchToHex as Is, readableForeground as Ls, relativeLuminance as Rs, rgbToHex as zs } from "./theme/color.js";
|
|
299
|
+
import { createTheme as Bs, themeContrast as Vs } from "./theme/create-theme.js";
|
|
300
|
+
import { getThemePreset as Hs, themePresets as Us } from "./theme/theme-presets.js";
|
|
301
|
+
import { getInitialTheme as Ws, themeInitScript as Gs } from "./theme/initial-theme.js";
|
|
302
|
+
import { consoleSink as Ks, createLogger as qs } from "./logger/logger.js";
|
|
303
|
+
import { TelemetryProvider as Js, useTelemetry as Ys } from "./telemetry/TelemetryProvider.js";
|
|
304
|
+
import { consoleTelemetryAdapter as Xs } from "./telemetry/console-adapter.js";
|
|
305
|
+
import { createSentryTelemetryAdapter as Zs } from "./telemetry/sentry-adapter.js";
|
|
306
|
+
import { createPostHogTelemetryAdapter as Qs } from "./telemetry/posthog-adapter.js";
|
|
307
|
+
import { FeatureFlagsProvider as $s, useFeatureFlag as ec, useFlagValue as tc } from "./feature-flags/FeatureFlagsProvider.js";
|
|
308
|
+
import { createInMemoryFlags as nc } from "./feature-flags/in-memory-adapter.js";
|
|
309
|
+
import { createGrowthBookFeatureFlagsAdapter as rc } from "./feature-flags/growthbook-adapter.js";
|
|
310
|
+
import { createLaunchDarklyFeatureFlagsAdapter as ic } from "./feature-flags/launchdarkly-adapter.js";
|
|
311
|
+
import { isShareSupported as ac, share as oc } from "./share/share.js";
|
|
312
|
+
import { shareOrDownloadBlob as sc } from "./share/share-or-download.js";
|
|
313
|
+
import { DIVERGING_STEP_COUNT as cc, ORDINAL_START_STEP as lc, SEQUENTIAL_STEP_COUNT as uc, divergingScale as dc, scaleSteps as fc, sequentialScale as pc } from "./charts/scales.js";
|
|
314
|
+
import { cachedResponseBytes as mc } from "./perf/cache-size.js";
|
|
315
|
+
import { readDeviceProfile as hc } from "./perf/device.js";
|
|
316
|
+
import { formatDurationMs as gc } from "./perf/format.js";
|
|
317
|
+
import { createInferenceProfiler as _c } from "./perf/profiler.js";
|
|
318
|
+
export { Er as AIChat, Cr as AIChatComposer, Tr as AIChatTurn, sr as ALL_BARCODE_FORMATS, Xn as AUDIO_MIME_CANDIDATES, Ki as AccessControlProvider, t as Accordion, n as Alert, r as AppBar, $a as AppProviders, Ea as AppRouter, o as AppShell, s as AspectRatio, Jn as AudioPlayer, or as AudioRecorder, Oi as AuthGuard, c as Avatar, l as AvatarGroup, i as BREAKPOINTS, u as Badge, d as Banner, hr as BarcodeScanner, f as BottomNavigation, p as BottomSheet, m as Breadcrumbs, Oa as BrowserRouter, h as Button, ea as CACHE_TIME, Wo as CEPInput, Go as CNPJInput, Ko as CPFInput, On as Calendar, Yi as Can, g as Card, Pn as Carousel, _ as Center, Gn as Chat, Wn as ChatComposer, v as Checkbox, y as ChipInput, dn as ClickOutside, an as CodeBlock, Sn as Collapsible, b as Combobox, Tn as Command, fn as ConditionalWrapper, S as ConfirmDialog, I as Container, Cn as ContextMenu, Xo as Controller, rn as CopyButton, cr as DEFAULT_BARCODE_FORMATS, hs as DEFAULT_CAR_SPEED_KMH, Si as DEFAULT_CHUNK_SIZE, gs as DEFAULT_CIRCUITY_FACTOR, _s as DEFAULT_MODE_DURATION_FACTORS, Ni as DEFAULT_PUB_KEY_CRED_PARAMS, cc as DIVERGING_STEP_COUNT, gn as DataList, Fn as DataTable, w as DatePicker, jn as DateRangePicker, _n as DescriptionList, T as Divider, E as Drawer, D as DropdownMenu, O as Dropzone, us as EARTH_RADIUS_KM, k as EmptyState, Qa as ErrorBoundary, A as ErrorState, mn as ErrorText, $s as FeatureFlagsProvider, j as FileUpload, Pr as FilterBar, Ln as FloatingActionButton, pn as For, M as Form, N as FormActions, Fo as FormField, Zo as FormProvider, P as FormRow, F as FormSection, Qi as GoogleSignIn, L as Grid, ka as HashRouter, yt as Hide, wn as HoverCard, Ya as I18nProvider, hn as Image, Wt as ImageCropper, C as Input, B as InstallBanner, V as InstallButton, et as Kanban, nt as Kbd, xn as Label, Hn as Lightbox, Aa as Link, In as ListTile, wr as Markdown, Or as Masonry, ja as MemoryRouter, Nn as Menubar, x as Modal, rt as ModalsProvider, sn as Money, qo as MoneyInput, An as MultiSelect, ot as NProgressBar, Ma as NavLink, at as Navbar, Na as Navigate, Mn as NavigationMenu, Rn as NavigationRail, Jt as NotificationCenter, lc as ORDINAL_START_STEP, Je as OfflineIndicator, Pa as Outlet, ct as Page, lt as Pagination, Pi as PasskeyError, ut as PasswordInput, Jo as PhoneInput, ft as PinInput, pt as Popover, un as Portal, mt as Progress, $t as QRCapacityError, nn as QRCode, ia as QueryProvider, ta as REFETCH_TIME, ht as Radio, gt as RadioGroup, _t as RangeSlider, vt as RatingStars, Bn as RefreshIndicator, on as RelativeTime, Dn as Resizable, Fa as Route, Ta as RouteGuard, Ia as Routes, uc as SEQUENTIAL_STEP_COUNT, na as STALE_TIME, xt as SafeArea, Kt as Scheduler, En as ScrollArea, St as SearchBar, Ct as SegmentedControl, wt as Select, bt as Show, Tt as Sidebar, Un as SignaturePad, Et as Skeleton, kn as Slider, Dt as Spacer, Gt as Sparkline, Ot as Spinner, R as Stack, kt as Stat, At as Stepper, Pt as StepperInput, Ft as Switch, Qe as SyncStatusBadge, Lt as Table, Rt as Tabs, It as Tag, Js as TelemetryProvider, hi as TempestApiError, ga as TempestDataProvider, zt as Textarea, Ka as ThemeProvider, zn as TimePicker, Bt as Timeline, Ht as ToastProvider, vn as Toggle, yn as ToggleGroup, bn as ToggleGroupItem, Vt as Tooltip, kr as Tour, Os as TrajectoryMap, Dr as Transfer, cn as TreeView, ln as TruncateText, $e as UpdatePrompt, Xt as VirtualList, Qt as VirtualTable, Ze as VisuallyHidden, io as WebPushClient, ao as WebPushPermissionDeniedError, oo as WebPushUnsupportedError, Vn as Wizard, gr as aiChatStrings, oe as announce, tt as applyKanbanMove, ks as applyTheme, ni as assertNever, Fi as base64UrlToBytes, ds as bearingDeg, ir as blobToWav, ys as boundingBox, bs as boundsCenter, Ae as buildOpenInChromeIntent, Ii as bytesToBase64Url, mc as cachedResponseBytes, Hr as camelCase, Ur as capitalize, Jr as chunk, jt as clamp, as as clampLatitude, Li as classifyPasskeyError, se as clearAnnouncer, _o as clearCaches, e as cn, Zt as compareValues, Ks as consoleSink, Xs as consoleTelemetryAdapter, js as contrastRatio, vi as createApiClient, yo as createAudioPlayer, Zn as createAudioRecorder, Di as createAuthStore, lr as createBarcodeDetector, Ms as createColorScale, ha as createDataProvider, eo as createEventStream, rc as createGrowthBookFeatureFlagsAdapter, Ja as createI18n, nc as createInMemoryFlags, _c as createInferenceProfiler, ic as createLaunchDarklyFeatureFlagsAdapter, er as createLevelMeter, Ci as createLocalUploadStorage, qs as createLogger, Yn as createMediaRecorder, Ts as createOSRMBackend, pa as createOfflineStore, jo as createOfflineSync, fo as createPartialResponse, Ri as createPasskeyClient, Es as createPositionTracker, Qs as createPostHogTelemetryAdapter, ra as createQueryKeys, Mi as createRefreshQueue, wi as createResumableUpload, Xi as createRoleAccessControl, Ga as createSelectors, Zs as createSentryTelemetryAdapter, Wa as createStore, Gi as createTempestAuth, Bs as createTheme, Co as createVideoRecorder, rs as createWebSocket, si as debounce, ki as decodeJWT, Qr as deepMerge, Da as defineRoutes, Ar as describeFilter, dc as divergingScale, aa as emptyOffsetPage, en as encodeQR, ar as encodeWav, dt as estimatePasswordStrength, Be as estimateStorage, vs as estimateTravel, xs as expandBounds, jr as filtersFromSearchParams, Mr as filtersToSearchParams, Ss as fitProjection, Mt as formatBytes, zo as formatCEP, Bo as formatCNPJ, Fr as formatCPF, Nt as formatCompactNumber, Ir as formatCurrency, Lr as formatDate, Rr as formatDateTime, gc as formatDurationMs, zr as formatPercent, Br as formatPhone, xi as generateIdempotencyKey, Ws as getInitialTheme, ur as getSupportedBarcodeFormats, Hs as getThemePreset, Yr as groupBy, fs as haversineKm, Ns as hexToOklch, Ps as hexToRgb, Fs as hexToRgbaString, Mo as higherVersionWins, vo as inspectCaches, ho as installBackgroundSync, co as installNotificationClickHandler, po as installPrecache, lo as installPushHandler, mo as installRuntimeCache, uo as installSkipWaitingListener, je as isAndroid, Me as isAndroidWithoutPromptApi, gi as isApiError, Kn as isAudioOutputSelectionSupported, Qn as isAudioRecordingSupported, dr as isBarcodeDetectionSupported, zi as isConditionalMediationAvailable, os as isCoordinate, oa as isCursorPage, ri as isDefined, $r as isEmpty, _r as isGenerating, Ne as isIOS, Ai as isJWTExpired, nr as isMediaCaptureSupported, ii as isNumber, sa as isOffsetPage, Bi as isPasskeySupported, ai as isPlainObject, Vi as isPlatformAuthenticatorAvailable, no as isPushSupported, Do as isScreenCaptureSupported, ac as isShareSupported, ko as isSpeechRecognitionSupported, Pe as isStandalone, oi as isString, ss as isValidLatitude, cs as isValidLongitude, wo as isVideoRecordingSupported, Wr as kebabCase, vr as lastAssistantId, No as lastWriteWins, ji as lazyWithRetry, va as listQueryKey, tn as matrixToPath, ci as memoizeOne, Ue as moveItem, fr as normalizeBarcode, ls as normalizeLongitude, st as nprogress, Is as oklchToHex, ei as omit, li as once, ya as oneQueryKey, Nr as operatorsFor, yi as parseResponse, ps as pathLengthKm, Zi as permissionsFromToken, ma as persistQueryClientOffline, ti as pick, $n as pickAudioMimeType, To as pickVideoMimeType, bo as playAudio, Gr as pluralize, Cs as projectMercator, pi as randomId, Xr as range, hc as readDeviceProfile, As as readThemeToken, Ls as readableForeground, La as redirect, go as registerPeriodicSync, Ie as registerServiceWorker, Rs as relativeLuminance, qt as relativeTime, da as removeById, Ve as requestPersistentStorage, _i as retry, zs as rgbToHex, yr as roleLabel, fc as scaleSteps, pc as sequentialScale, qn as setAudioOutput, oc as share, sc as shareOrDownloadBlob, Le as skipWaiting, di as sleep, Kr as slugify, xo as stopAudio, Vr as storage, br as tailSignature, Vs as themeContrast, Gs as themeInitScript, Us as themePresets, ui as throttle, ms as toRadians, qr as truncate, xr as turnTime, Zr as uniqueBy, Vo as unmask, ws as unprojectMercator, Re as unregisterAllServiceWorkers, Ti as uploadFingerprint, bi as uploadWithProgress, fa as upsertById, ro as urlBase64ToUint8Array, qi as useAccessControl, ce as useAnnounce, Y as useAsync, So as useAudio, tr as useAudioRecorder, mr as useBarcodeScanner, z as useBeforeInstallPrompt, a as useBreakpoint, Ji as useCan, Ee as useClickOutside, W as useClientFilter, ee as useClipboard, be as useCounter, ba as useCreate, la as useCursorQuery, _a as useDataProvider, H as useDebounce, ue as useDeepMemo, xa as useDelete, ve as useDisclosure, xe as useDocumentTitle, Z as useDocumentVisibility, Po as useErrorHandler, K as useEventListener, to as useEventStream, Se as useFavicon, ec as useFeatureFlag, Qo as useFieldArray, tc as useFlagValue, ae as useFocusTrap, $o as useForm, es as useFormContext, ts as useFormState, re as useGeolocation, ge as useHover, Xa as useI18n, ne as useIdle, Fe as useInstallPrompt, Q as useIntersectionObserver, fe as useInterval, De as useIsFirstRender, te as useKeyboardShortcut, Sa as useList, ye as useListState, q as useLocalStorage, Ra as useLocation, _e as useLongPress, ke as useLongPressHandlers, Ce as useMap, za as useMatch, qe as useMediaDevices, Ke as useMediaPermission, G as useMediaQuery, rr as useMicrophone, it as useModals, Ba as useNavigate, Yt as useNotificationInbox, $i as useOAuthCallback, Oe as useObjectUrl, ua as useOfflineMutation, Ye as useOfflineSync, Ca as useOne, X as useOnline, ca as usePaginatedQuery, U as usePagination, Va as useParams, Hi as usePasskeyCapabilities, Ui as usePasskeyRegistration, Wi as usePasskeySignIn, Ei as usePoll, Ds as usePositionTracker, de as usePrevious, so as usePushSubscription, Te as useQueue, $ as useResizeObserver, Ha as useRouteError, Oo as useScreenCapture, ie as useScrollLock, Ge as useScrollOverflow, Ua as useSearchParams, ze as useServiceWorkerUpdate, we as useSet, We as useSortable, Ao as useSpeechRecognition, le as useStableCallback, He as useStorageEstimate, Xe as useSyncStatus, Ys as useTelemetry, qa as useTheme, me as useThrottle, pe as useTimeout, Ut as useToast, J as useToggle, pr as useTorch, Za as useTranslate, wa as useUpdate, Yo as useViaCEP, Eo as useVideoRecorder, ns as useWatch, is as useWebSocket, he as useWindowSize, Ro as useZodForm, Ho as validateCNPJ, Uo as validateCPF, Io as validateForm, Sr as visibleTurns, fi as withTimeout, mi as writeXlsx, Lo as zodResolver };
|
package/dist/vision/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./core/exceptions.cjs"),t=require("./types.cjs"),n=require("./core/timing.cjs"),r=require("./results.cjs"),i=require("./labels.cjs"),a=require("./core/graph.cjs"),o=require("./core/metadata.cjs"),s=require("./core/providers.cjs"),c=require("./core/session.cjs"),l=require("./io/image.cjs"),u=require("./fusion.cjs"),d=require("./preprocess/image.cjs"),f=require("./preprocess/pipeline.cjs"),p=require("./postprocess/classification.cjs"),m=require("./postprocess/detection.cjs"),h=require("./postprocess/segmentation.cjs"),g=require("./tasks/base.cjs"),_=require("./tasks/classifier.cjs"),v=require("./tasks/detectClassify.cjs"),y=require("./tasks/detector.cjs"),b=require("./tasks/segmenter.cjs");var x=`0.7.
|
|
1
|
+
const e=require("./core/exceptions.cjs"),t=require("./types.cjs"),n=require("./core/timing.cjs"),r=require("./results.cjs"),i=require("./labels.cjs"),a=require("./core/graph.cjs"),o=require("./core/metadata.cjs"),s=require("./core/providers.cjs"),c=require("./core/session.cjs"),l=require("./io/image.cjs"),u=require("./fusion.cjs"),d=require("./preprocess/image.cjs"),f=require("./preprocess/pipeline.cjs"),p=require("./postprocess/classification.cjs"),m=require("./postprocess/detection.cjs"),h=require("./postprocess/segmentation.cjs"),g=require("./tasks/base.cjs"),_=require("./tasks/classifier.cjs"),v=require("./tasks/detectClassify.cjs"),y=require("./tasks/detector.cjs"),b=require("./tasks/segmenter.cjs");var x=`0.7.1`;exports.BoundingBox=t.BoundingBox,exports.Boxes=r.Boxes,exports.COCO_CLASSES=i.COCO_CLASSES,exports.ClassificationResults=r.ClassificationResults,exports.Classifier=_.Classifier,exports.DEFAULT_PROVIDERS=s.DEFAULT_PROVIDERS,exports.DetectClassify=v.DetectClassify,exports.DetectClassifyResults=r.DetectClassifyResults,exports.DetectionResults=r.DetectionResults,exports.Detector=y.Detector,exports.FUSION_KIND_DETECT_CLASSIFY=u.FUSION_KIND_DETECT_CLASSIFY,exports.FusionError=e.FusionError,exports.INPUT_IMAGE=u.INPUT_IMAGE,exports.INPUT_PAD=u.INPUT_PAD,exports.INPUT_SCALE=u.INPUT_SCALE,exports.INPUT_SOURCE=u.INPUT_SOURCE,exports.ImageLoadError=e.ImageLoadError,exports.InferenceError=e.InferenceError,exports.LabelMapError=e.LabelMapError,exports.LetterboxPipeline=f.LetterboxPipeline,exports.METADATA_PREFIX=u.METADATA_PREFIX,exports.Mask=t.Mask,exports.Masks=r.Masks,exports.ModelLoadError=e.ModelLoadError,exports.NoDetectionsError=e.NoDetectionsError,exports.OUTPUT_BOXES=u.OUTPUT_BOXES,exports.OUTPUT_CLASSES=u.OUTPUT_CLASSES,exports.OUTPUT_NUM_DETECTIONS=u.OUTPUT_NUM_DETECTIONS,exports.OUTPUT_PROBS=u.OUTPUT_PROBS,exports.OUTPUT_SCORES=u.OUTPUT_SCORES,exports.OrtSession=c.OrtSession,exports.OrtVisionError=e.OrtVisionError,exports.Probs=r.Probs,exports.ProviderNotAvailableError=e.ProviderNotAvailableError,exports.RGBImage=t.RGBImage,exports.ResizePipeline=f.ResizePipeline,exports.SegmentationResults=r.SegmentationResults,exports.Segmenter=b.Segmenter,exports.SpeedTimer=n.SpeedTimer,exports.VERSION=x,exports.VisionTask=g.VisionTask,exports.batchedNms=m.batchedNms,exports.classificationNumClasses=a.classificationNumClasses,exports.declaredShapesFrom=a.declaredShapesFrom,exports.decodeYolo=m.decodeYolo,exports.decodeYoloAnchors=m.decodeYoloAnchors,exports.decodeYoloSeg=h.decodeYoloSeg,exports.defaultLabels=i.defaultLabels,exports.detectionNumClasses=a.detectionNumClasses,exports.fromCv2=d.fromCv2,exports.letterbox=d.letterbox,exports.letterboxToTensorData=f.letterboxToTensorData,exports.loadImage=l.loadImage,exports.modelNames=o.modelNames,exports.nms=m.nms,exports.normalize=d.normalize,exports.parseNames=o.parseNames,exports.readFusionSpec=u.readFusionSpec,exports.readModelMetadata=o.readModelMetadata,exports.requireDetections=g.requireDetections,exports.resize=d.resize,exports.resizeToTensorData=f.resizeToTensorData,exports.resolveInputSize=a.resolveInputSize,exports.resolveLabels=i.resolveLabels,exports.resolveProviders=s.resolveProviders,exports.softmax=p.softmax,exports.spatialInputSize=a.spatialInputSize,exports.toCHW=d.toCHW,exports.toCv2=d.toCv2,exports.toFloat32=d.toFloat32,exports.toFloat32Tensor=d.toFloat32Tensor,exports.toTensor=d.toTensor,exports.topK=p.topK,exports.writePlanarFloat32=f.writePlanarFloat32,exports.zeroTensorData=f.zeroTensorData;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/vision/index.ts"],"sourcesContent":["/**\n * `tempest-react-sdk/vision` — browser computer-vision inference with ONNX\n * Runtime Web (classification, detection, segmentation).\n *\n * Vendored from `@mauriciobenjamin700/ort-vision-sdk-web@0.7.
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/vision/index.ts"],"sourcesContent":["/**\n * `tempest-react-sdk/vision` — browser computer-vision inference with ONNX\n * Runtime Web (classification, detection, segmentation).\n *\n * Vendored from `@mauriciobenjamin700/ort-vision-sdk-web@0.7.1` (MIT, same\n * author) so it ships inside this SDK without an extra package install.\n * `onnxruntime-web` stays an optional peer dependency — install it (and ship\n * the matching `.wasm` files) only when you use this subpath.\n *\n * Do not hand-edit — regenerate with `npm run vendor:vision`.\n */\n\nexport {\n BoundingBox,\n Mask,\n RGBImage,\n type ClassProbability,\n type ClassificationResult,\n type DetectionResult,\n type SegmentationResult,\n} from \"./types\";\n\nexport {\n Boxes,\n ClassificationResults,\n DetectClassifyResults,\n DetectionResults,\n Masks,\n Probs,\n SegmentationResults,\n} from \"./results\";\n\nexport {\n COCO_CLASSES,\n type LabelSpec,\n type ResolveLabelsOptions,\n defaultLabels,\n resolveLabels,\n} from \"./labels\";\n\nexport {\n FusionError,\n ImageLoadError,\n InferenceError,\n LabelMapError,\n ModelLoadError,\n NoDetectionsError,\n OrtVisionError,\n ProviderNotAvailableError,\n} from \"./core/exceptions\";\n\nexport { type ModelSource, type OrtSessionOptions, OrtSession } from \"./core/session\";\nexport {\n type DeclaredDim,\n type DeclaredShape,\n type ResolveInputSizeOptions,\n classificationNumClasses,\n declaredShapesFrom,\n detectionNumClasses,\n resolveInputSize,\n spatialInputSize,\n} from \"./core/graph\";\nexport { modelNames, parseNames, readModelMetadata } from \"./core/metadata\";\nexport { DEFAULT_PROVIDERS, resolveProviders } from \"./core/providers\";\nexport { type Speed, SpeedTimer } from \"./core/timing\";\n\nexport { type ImageInput, loadImage } from \"./io/image\";\n\nexport {\n FUSION_KIND_DETECT_CLASSIFY,\n INPUT_IMAGE,\n INPUT_PAD,\n INPUT_SCALE,\n INPUT_SOURCE,\n METADATA_PREFIX,\n OUTPUT_BOXES,\n OUTPUT_CLASSES,\n OUTPUT_NUM_DETECTIONS,\n OUTPUT_PROBS,\n OUTPUT_SCORES,\n type CropSource,\n type FusionSpec,\n readFusionSpec,\n} from \"./fusion\";\n\nexport {\n type LetterboxResult,\n fromCv2,\n letterbox,\n normalize,\n resize,\n toCHW,\n toCv2,\n toFloat32,\n toFloat32Tensor,\n toTensor,\n} from \"./preprocess/image\";\n\nexport {\n type FusedLetterboxResult,\n type FusedResizeResult,\n LetterboxPipeline,\n ResizePipeline,\n letterboxToTensorData,\n resizeToTensorData,\n writePlanarFloat32,\n zeroTensorData,\n} from \"./preprocess/pipeline\";\n\nexport { type TopKResult, softmax, topK } from \"./postprocess/classification\";\n\nexport {\n type DecodeYoloAnchorsOptions,\n type DecodeYoloOptions,\n type DecodedAnchors,\n type DecodedDetection,\n batchedNms,\n decodeYolo,\n decodeYoloAnchors,\n nms,\n} from \"./postprocess/detection\";\n\nexport {\n type DecodeYoloSegOptions,\n type DecodedSegmentation,\n decodeYoloSeg,\n} from \"./postprocess/segmentation\";\n\nexport { VisionTask, requireDetections } from \"./tasks/base\";\nexport {\n type ClassifierOptions,\n type ClassifierPredictOptions,\n Classifier,\n} from \"./tasks/classifier\";\nexport {\n type DetectClassifyOptions,\n type DetectClassifyPredictOptions,\n DetectClassify,\n} from \"./tasks/detectClassify\";\nexport {\n type DetectorHead,\n type DetectorOptions,\n type DetectorPredictOptions,\n Detector,\n} from \"./tasks/detector\";\nexport {\n type SegmenterHead,\n type SegmenterOptions,\n type SegmenterPredictOptions,\n Segmenter,\n} from \"./tasks/segmenter\";\n\nexport const VERSION: string = \"0.7.1\";\n"],"mappings":"0sBAwJA,IAAa,EAAkB"}
|
package/dist/vision/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { DetectClassify as _e } from "./tasks/detectClassify.js";
|
|
|
20
20
|
import { Detector as ve } from "./tasks/detector.js";
|
|
21
21
|
import { Segmenter as ye } from "./tasks/segmenter.js";
|
|
22
22
|
//#region src/vision/index.ts
|
|
23
|
-
var be = "0.7.
|
|
23
|
+
var be = "0.7.1";
|
|
24
24
|
//#endregion
|
|
25
25
|
export { c as BoundingBox, f as Boxes, y as COCO_CLASSES, p as ClassificationResults, ge as Classifier, A as DEFAULT_PROVIDERS, _e as DetectClassify, m as DetectClassifyResults, h as DetectionResults, ve as Detector, P as FUSION_KIND_DETECT_CLASSIFY, e as FusionError, F as INPUT_IMAGE, I as INPUT_PAD, L as INPUT_SCALE, R as INPUT_SOURCE, t as ImageLoadError, n as InferenceError, r as LabelMapError, te as LetterboxPipeline, z as METADATA_PREFIX, l as Mask, g as Masks, i as ModelLoadError, a as NoDetectionsError, B as OUTPUT_BOXES, V as OUTPUT_CLASSES, H as OUTPUT_NUM_DETECTIONS, U as OUTPUT_PROBS, W as OUTPUT_SCORES, M as OrtSession, o as OrtVisionError, _ as Probs, s as ProviderNotAvailableError, u as RGBImage, ne as ResizePipeline, v as SegmentationResults, ye as Segmenter, d as SpeedTimer, be as VERSION, me as VisionTask, le as batchedNms, S as classificationNumClasses, C as declaredShapesFrom, ue as decodeYolo, de as decodeYoloAnchors, pe as decodeYoloSeg, b as defaultLabels, w as detectionNumClasses, K as fromCv2, q as letterbox, re as letterboxToTensorData, N as loadImage, D as modelNames, fe as nms, J as normalize, O as parseNames, G as readFusionSpec, k as readModelMetadata, he as requireDetections, Y as resize, ie as resizeToTensorData, T as resolveInputSize, x as resolveLabels, j as resolveProviders, se as softmax, E as spatialInputSize, X as toCHW, Z as toCv2, Q as toFloat32, $ as toFloat32Tensor, ee as toTensor, ce as topK, ae as writePlanarFloat32, oe as zeroTensorData };
|
|
26
26
|
|
package/dist/vision/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/vision/index.ts"],"sourcesContent":["/**\n * `tempest-react-sdk/vision` — browser computer-vision inference with ONNX\n * Runtime Web (classification, detection, segmentation).\n *\n * Vendored from `@mauriciobenjamin700/ort-vision-sdk-web@0.7.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/vision/index.ts"],"sourcesContent":["/**\n * `tempest-react-sdk/vision` — browser computer-vision inference with ONNX\n * Runtime Web (classification, detection, segmentation).\n *\n * Vendored from `@mauriciobenjamin700/ort-vision-sdk-web@0.7.1` (MIT, same\n * author) so it ships inside this SDK without an extra package install.\n * `onnxruntime-web` stays an optional peer dependency — install it (and ship\n * the matching `.wasm` files) only when you use this subpath.\n *\n * Do not hand-edit — regenerate with `npm run vendor:vision`.\n */\n\nexport {\n BoundingBox,\n Mask,\n RGBImage,\n type ClassProbability,\n type ClassificationResult,\n type DetectionResult,\n type SegmentationResult,\n} from \"./types\";\n\nexport {\n Boxes,\n ClassificationResults,\n DetectClassifyResults,\n DetectionResults,\n Masks,\n Probs,\n SegmentationResults,\n} from \"./results\";\n\nexport {\n COCO_CLASSES,\n type LabelSpec,\n type ResolveLabelsOptions,\n defaultLabels,\n resolveLabels,\n} from \"./labels\";\n\nexport {\n FusionError,\n ImageLoadError,\n InferenceError,\n LabelMapError,\n ModelLoadError,\n NoDetectionsError,\n OrtVisionError,\n ProviderNotAvailableError,\n} from \"./core/exceptions\";\n\nexport { type ModelSource, type OrtSessionOptions, OrtSession } from \"./core/session\";\nexport {\n type DeclaredDim,\n type DeclaredShape,\n type ResolveInputSizeOptions,\n classificationNumClasses,\n declaredShapesFrom,\n detectionNumClasses,\n resolveInputSize,\n spatialInputSize,\n} from \"./core/graph\";\nexport { modelNames, parseNames, readModelMetadata } from \"./core/metadata\";\nexport { DEFAULT_PROVIDERS, resolveProviders } from \"./core/providers\";\nexport { type Speed, SpeedTimer } from \"./core/timing\";\n\nexport { type ImageInput, loadImage } from \"./io/image\";\n\nexport {\n FUSION_KIND_DETECT_CLASSIFY,\n INPUT_IMAGE,\n INPUT_PAD,\n INPUT_SCALE,\n INPUT_SOURCE,\n METADATA_PREFIX,\n OUTPUT_BOXES,\n OUTPUT_CLASSES,\n OUTPUT_NUM_DETECTIONS,\n OUTPUT_PROBS,\n OUTPUT_SCORES,\n type CropSource,\n type FusionSpec,\n readFusionSpec,\n} from \"./fusion\";\n\nexport {\n type LetterboxResult,\n fromCv2,\n letterbox,\n normalize,\n resize,\n toCHW,\n toCv2,\n toFloat32,\n toFloat32Tensor,\n toTensor,\n} from \"./preprocess/image\";\n\nexport {\n type FusedLetterboxResult,\n type FusedResizeResult,\n LetterboxPipeline,\n ResizePipeline,\n letterboxToTensorData,\n resizeToTensorData,\n writePlanarFloat32,\n zeroTensorData,\n} from \"./preprocess/pipeline\";\n\nexport { type TopKResult, softmax, topK } from \"./postprocess/classification\";\n\nexport {\n type DecodeYoloAnchorsOptions,\n type DecodeYoloOptions,\n type DecodedAnchors,\n type DecodedDetection,\n batchedNms,\n decodeYolo,\n decodeYoloAnchors,\n nms,\n} from \"./postprocess/detection\";\n\nexport {\n type DecodeYoloSegOptions,\n type DecodedSegmentation,\n decodeYoloSeg,\n} from \"./postprocess/segmentation\";\n\nexport { VisionTask, requireDetections } from \"./tasks/base\";\nexport {\n type ClassifierOptions,\n type ClassifierPredictOptions,\n Classifier,\n} from \"./tasks/classifier\";\nexport {\n type DetectClassifyOptions,\n type DetectClassifyPredictOptions,\n DetectClassify,\n} from \"./tasks/detectClassify\";\nexport {\n type DetectorHead,\n type DetectorOptions,\n type DetectorPredictOptions,\n Detector,\n} from \"./tasks/detector\";\nexport {\n type SegmenterHead,\n type SegmenterOptions,\n type SegmenterPredictOptions,\n Segmenter,\n} from \"./tasks/segmenter\";\n\nexport const VERSION: string = \"0.7.1\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwJA,IAAa,KAAkB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../core/canvas.cjs");var t=1/255,n=class{_targetWidth;_targetHeight;_fill;_target;_targetContext;_buffer;_source=null;_sourceContext=null;
|
|
1
|
+
const e=require("../core/canvas.cjs");var t=1/255,n=class{_size;_buffer;_inUse=!1;constructor(e){this._size=e,this._buffer=new Float32Array(e)}claim(){return this._inUse?{data:new Float32Array(this._size),reused:!1}:(this._buffer.length!==this._size&&(this._buffer=new Float32Array(this._size)),this._inUse=!0,{data:this._buffer,reused:!0})}release(){this._inUse=!1}},r=class{_targetWidth;_targetHeight;_fill;_target;_targetContext;_buffer;_source=null;_sourceContext=null;constructor(t,r,i=[114,114,114]){if(t<=0||r<=0)throw Error(`Invalid letterbox target ${t}x${r}.`);this._targetWidth=t,this._targetHeight=r,this._fill=i,this._target=e.createCanvas(t,r),this._targetContext=e.get2DContext(this._target,{willReadFrequently:!0}),this._targetContext.imageSmoothingEnabled=!0,this._targetContext.imageSmoothingQuality=`high`,this._buffer=new n(3*r*t)}get targetSize(){return[this._targetWidth,this._targetHeight]}run(n){let r=this._targetWidth,i=this._targetHeight,a=Math.min(r/n.width,i/n.height),o=Math.round(n.width*a),s=Math.round(n.height*a),c=Math.floor((r-o)/2),l=Math.floor((i-s)/2);this._ensureSource(n.width,n.height).putImageData(e.rgbToImageData(n),0,0);let u=this._targetContext;(c>0||l>0||o!==r||s!==i)&&(u.fillStyle=`rgb(${this._fill[0]},${this._fill[1]},${this._fill[2]})`,u.fillRect(0,0,r,i)),u.drawImage(this._source,0,0,n.width,n.height,c,l,o,s);let d=u.getImageData(0,0,r,i).data,{data:f,reused:p}=this._buffer.claim(),m=r*i;for(let e=0,n=0;e<m;e++,n+=4)f[e]=d[n]*t,f[m+e]=d[n+1]*t,f[2*m+e]=d[n+2]*t;return{data:f,scale:a,padLeft:c,padTop:l,reused:p}}release(){this._buffer.release()}_ensureSource(t,n){return(this._source===null||this._source.width!==t||this._source.height!==n)&&(this._source=e.createCanvas(t,n),this._sourceContext=e.get2DContext(this._source)),this._sourceContext}};function i(e,n,r,i,a,o,s=4){let c=n*r,l=i[0],u=i[1],d=i[2],f=a[0],p=a[1],m=a[2];for(let n=0,r=0;n<c;n++,r+=s)o[n]=(e[r]*t-l)/f,o[c+n]=(e[r+1]*t-u)/p,o[2*c+n]=(e[r+2]*t-d)/m}var a=class{_targetWidth;_targetHeight;_mean;_std;_buffer;_target=null;_targetContext=null;_source=null;_sourceContext=null;constructor(e,t,r=[0,0,0],i=[1,1,1]){if(e<=0||t<=0)throw Error(`Invalid resize target ${e}x${t}.`);this._targetWidth=e,this._targetHeight=t,this._mean=r,this._std=i,this._buffer=new n(3*t*e)}get targetSize(){return[this._targetWidth,this._targetHeight]}run(t){let n=this._targetWidth,r=this._targetHeight,{data:a,reused:o}=this._buffer.claim();if(t.width===n&&t.height===r)return i(t.data,n,r,this._mean,this._std,a,3),{data:a,reused:o};this._ensureSource(t.width,t.height).putImageData(e.rgbToImageData(t),0,0);let s=this._ensureTarget();s.drawImage(this._source,0,0,n,r);let c=s.getImageData(0,0,n,r).data;return i(c,n,r,this._mean,this._std,a),{data:a,reused:o}}release(){this._buffer.release()}_ensureTarget(){return this._target===null&&(this._target=e.createCanvas(this._targetWidth,this._targetHeight),this._targetContext=e.get2DContext(this._target,{willReadFrequently:!0}),this._targetContext.imageSmoothingEnabled=!0,this._targetContext.imageSmoothingQuality=`high`),this._targetContext}_ensureSource(t,n){return(this._source===null||this._source.width!==t||this._source.height!==n)&&(this._source=e.createCanvas(t,n),this._sourceContext=e.get2DContext(this._source)),this._sourceContext}};function o(e,t,n,r=[0,0,0],i=[1,1,1]){return new a(t,n,r,i).run(e)}function s(e,t){return new Float32Array(3*t*e)}function c(e,t,n,i=[114,114,114]){return new r(t,n,i).run(e)}exports.LetterboxPipeline=r,exports.ResizePipeline=a,exports.letterboxToTensorData=c,exports.resizeToTensorData=o,exports.writePlanarFloat32=i,exports.zeroTensorData=s;
|
|
2
2
|
//# sourceMappingURL=pipeline.cjs.map
|